@font-face {
    font-family: Montserrat;
    src: url("/static/fonts/montserrat-regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("/static/fonts/montserrat-bold.ttf") format("truetype");
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --ink: #101522;
    --text: #293448;
    --muted: #68758a;
    --line: #e1e6ef;
    --paper: #f6f8fb;
    --paper-blue: #eef2ff;
    --blue: #4967ed;
    --blue-dark: #314ed1;
    --green: #198362;
    --search-bg: var(--paper);
    --search-bg-active: #fff;
    --search-border: var(--line);
    --search-border-active: #93a5ee;
    --search-shadow: 0 0 0 3px rgb(63 95 231 / 9%);
    --search-icon: #8490a3;
    --radius: 16px;
    --radius-lg: 24px;
    --shell: 1420px;
    --shadow-sm: 0 10px 30px rgb(23 35 72 / 7%);
    --shadow-md: 0 20px 55px rgb(23 35 72 / 12%);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background:
        linear-gradient(90deg, rgb(73 103 237 / 2%), transparent 18%, transparent 82%, rgb(73 103 237 / 2%)),
        #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

body > main {
    flex: 1 0 auto;
}

body > footer {
    flex: 0 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--ink);
    line-height: 1.15;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 3.5vw, 42px);
    letter-spacing: -1.4px;
}

.shell {
    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
}

.header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--line);
}

.header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo__mark {
    width: 38px;
    height: 38px;
    color: white;
    border-radius: 11px;
    background: transparent;
}

.logo__mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.logo__text {
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: .9;
}

.logo__text > span {
    color: var(--blue);
}

.logo__text small {
    margin-top: 6px;
    display: block;
    color: #9098a8;
    font-size: 7px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-nav a {
    color: #465064;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.desktop-nav a:hover,
.text-link:hover,
.footer a:hover {
    color: var(--blue);
}

.header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    width: 138px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--search-border);
    border-radius: 10px;
    background: var(--search-bg);
}

.header-search:focus-within {
    border-color: var(--search-border-active);
    background: var(--search-bg-active);
    box-shadow: var(--search-shadow);
}

.header-search svg {
    width: 16px;
    fill: none;
    stroke: var(--search-icon);
    stroke-width: 1.6;
}

.header-search input {
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 11px;
}

.header-search input:focus {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.header-cta {
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    background: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu {
    display: none;
}

.hero {
    border-bottom: 1px solid var(--line);
}

.hero__copy {
    max-width: 960px;
    margin-inline: auto;
    text-align: center;
}

.eyebrow,
.section-kicker {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #91a5ff;
}

.hero h1 {
    max-width: 940px;
    margin: 18px auto 22px;
    font-size: clamp(44px, 5.2vw, 78px);
    letter-spacing: -3.5px;
    color: white;
}

.hero__lead {
    max-width: 680px;
    margin-inline: auto;
    color: #bdc7dc;
    font-size: 17px;
}

.hero__actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero .text-link {
    color: white;
}

.hero .text-link:hover {
    color: #aebcff;
}

.button {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    color: white;
    background: var(--blue);
}

.button--primary:hover {
    background: var(--blue-dark);
}

.hero__actions .button--primary {
    color: white;
    background: #4967ed;
}

.hero__actions .button--primary:hover {
    background: #314ed1;
}

.button--light {
    color: var(--ink);
    background: white;
}

.text-link {
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.section {
    padding: 90px 0;
}

.section-heading {
    margin-bottom: 38px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
}

.section-heading h2 {
    margin: 10px 0 0;
}

.section-heading > p {
    max-width: 450px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category-tile {
    min-height: 240px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    text-decoration: none;
}

.category-tile__index {
    color: #a2a9b6;
    font-size: 9px;
    font-weight: 700;
}

.category-tile__icon {
    width: 38px;
    height: 38px;
    margin: 23px 0 18px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--blue);
    background: var(--paper-blue);
    font-size: 13px;
    font-weight: 800;
}

.category-tile strong {
    color: var(--ink);
    font-size: 16px;
}

.category-tile p {
    margin: 8px 0 22px;
    color: var(--muted);
    font-size: 11px;
}

.category-tile__meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: #7d8797;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.resource-card {
    min-width: 0;
    overflow: hidden;
    padding: 23px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.resource-card__media {
    width: calc(100% + 46px);
    height: 150px;
    margin: -23px -23px 22px;
    padding: 0;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    cursor: zoom-in;
}

.resource-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-card__media:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -4px;
}

.image-viewer {
    width: min(94vw, 1440px);
    max-width: none;
    max-height: 94dvh;
    margin: auto;
    padding: 52px 22px 22px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 20px;
    color: white;
    background: #0d121d;
    box-shadow: 0 30px 90px rgb(0 0 0 / 42%);
}

.image-viewer[open] {
    display: grid;
    animation: image-viewer-in .3s var(--ease-out) both;
}

.image-viewer::backdrop {
    background: rgb(5 8 14 / 82%);
    backdrop-filter: blur(8px);
}

.image-viewer[open]::backdrop {
    animation: image-viewer-backdrop-in .3s ease-out both;
}

.image-viewer figure {
    min-width: 0;
    min-height: 0;
    margin: 0;
    display: grid;
    place-items: center;
    gap: 12px;
}

.image-viewer[open] figure {
    animation: image-viewer-content-in .42s var(--ease-out) both;
}

.image-viewer.is-closing {
    animation: image-viewer-out .2s ease-in both;
}

.image-viewer.is-closing::backdrop {
    animation: image-viewer-backdrop-out .2s ease-in both;
}

.image-viewer.is-closing figure {
    animation: image-viewer-content-out .18s ease-in both;
}

.image-viewer img {
    display: block;
    max-width: 100%;
    max-height: calc(94dvh - 102px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.image-viewer figcaption {
    min-height: 16px;
    color: #cbd2df;
    font-size: 11px;
    text-align: center;
}

.image-viewer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    color: white;
    background: rgb(255 255 255 / 10%);
    cursor: pointer;
    font: 400 26px/1 sans-serif;
    transition: background .2s ease, transform .2s ease;
}

.image-viewer__close:hover {
    background: rgb(255 255 255 / 18%);
    transform: scale(1.05);
}

.image-viewer__close:focus-visible {
    outline: 3px solid #89a0ff;
    outline-offset: 2px;
}

@keyframes image-viewer-in {
    from { opacity: 0; transform: translateY(18px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes image-viewer-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(12px) scale(.985); }
}

@keyframes image-viewer-content-in {
    from { opacity: 0; transform: scale(.94); filter: blur(5px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes image-viewer-content-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.97); }
}

@keyframes image-viewer-backdrop-in {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes image-viewer-backdrop-out {
    from { opacity: 1; backdrop-filter: blur(8px); }
    to { opacity: 0; backdrop-filter: blur(0); }
}

.resource-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--blue);
    background: var(--paper-blue);
    font-size: 11px;
    font-weight: 900;
}

.resource-mark--mint {
    color: #14795a;
    background: #edf8f4;
}

.resource-mark--orange {
    color: #b45f22;
    background: #fff4eb;
}

.resource-mark--violet {
    color: #6b4bc2;
    background: #f4f0ff;
}

.resource-mark--navy {
    color: #34445f;
    background: #eff2f6;
}

.verified {
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.verified i {
    width: 6px;
    height: 6px;
    margin-right: 4px;
    display: inline-block;
    border-radius: 50%;
    background: currentcolor;
}

.resource-card__body {
    margin-top: 24px;
}

.resource-category {
    margin: 0 0 5px;
    color: var(--blue) !important;
    font-size: 8px !important;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.resource-card h3 {
    margin-bottom: 9px;
    font-size: 19px;
}

.resource-card__body > p {
    min-height: 58px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.resource-tags {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resource-tags span {
    padding: 4px 8px;
    border-radius: 6px;
    color: #70798a;
    background: var(--paper);
    font-size: 8px;
}

.card-link {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.card-link:hover {
    color: var(--blue);
}

.cta {
    padding: 42px 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border-radius: var(--radius-lg);
    color: white;
}

.section-kicker--light {
    color: #9eb0ff;
}

.cta h2 {
    margin: 10px 0 8px;
    color: white;
    font-size: clamp(26px, 3vw, 36px);
}

.cta p {
    max-width: 680px;
    margin: 0;
    color: #bac2d0;
    font-size: 12px;
}

.cta .button {
    flex: 0 0 auto;
}

.page-hero {
    border-bottom: 1px solid #26345f;
}

.page-hero__inner,
.page-hero > .shell {
    min-height: 340px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;
}

.page-hero__inner > div:first-child {
    max-width: 760px;
}

.page-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(40px, 5vw, 62px);
    letter-spacing: -2.7px;
    color: white;
}

.page-hero p {
    max-width: 700px;
    margin: 0;
    color: #bdc7dc;
    font-size: 14px;
}

.page-hero .section-kicker {
    color: #91a5ff;
}

.page-hero__count,
.about-orbit,
.contact-badge {
    min-width: 150px;
    padding-left: 24px;
    display: flex;
    border-left: 1px solid rgb(255 255 255 / 18%);
}

.page-hero__count {
    align-items: center;
    gap: 10px;
}

.page-hero__count strong,
.about-orbit > span {
    color: #89a0ff;
    font-size: 38px;
}

.page-hero__count span,
.about-orbit small,
.contact-badge small {
    color: #aeb9d0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
    line-height: 1.5;
    text-transform: uppercase;
}

.catalog-toolbar {
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 10px;
}

.catalog-toolbar p {
    margin: 0;
}

.catalog-note {
    margin-top: 25px;
}

.catalog-note,
.nettest__note {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--muted);
    font-size: 9px;
}

.catalog-note > span,
.nettest__note > span {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: var(--paper-blue);
    font-weight: 800;
}

.catalog-note p,
.nettest__note p {
    margin: 0;
}

.about-orbit {
    flex-direction: column;
    align-items: start;
    gap: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
}

.about-story > p,
.contact-info > p {
    color: var(--muted);
    font-size: 13px;
}

.principles article {
    padding: 24px 0;
    display: grid;
    grid-template-columns: 50px 1fr;
    border-bottom: 1px solid var(--line);
}

.principles article:first-child {
    padding-top: 0;
}

.principles article > span,
.values__grid b {
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
}

.principles h3 {
    margin-bottom: 7px;
    font-size: 17px;
}

.principles p,
.values__grid p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.values__grid article {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.values__grid h3 {
    margin: 38px 0 9px;
    font-size: 17px;
}

.contact-badge {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    text-align: left;
}

.contact-badge > span {
    color: var(--blue);
    font-size: 28px;
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.contact-line {
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 13px;
    border-block: 1px solid var(--line);
}

.contact-line > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: white;
    background: var(--blue);
    font-weight: 800;
}

.contact-line small {
    display: block;
    color: var(--muted);
    font-size: 8px;
}

.contact-line b {
    font-size: 11px;
}

.contact-promise {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: start;
}

.contact-promise i {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: #eaf7f2;
    font-size: 9px;
    font-style: normal;
}

.contact-promise p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.contact-form {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
}

.form-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.form-head span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.form-head b {
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

label {
    margin-bottom: 16px;
    display: grid;
    gap: 6px;
    color: #424a5d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #dce1e8;
    border-radius: 9px;
    outline: 0;
    color: var(--text);
    background: white;
    font-size: 11px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #93a5ee;
    box-shadow: 0 0 0 3px rgb(63 95 231 / 8%);
}

textarea {
    min-height: 125px;
    resize: vertical;
}

.contact-form .button {
    width: 100%;
}

.form-policy {
    margin: 12px 0 0;
    color: #8a93a3;
    font-size: 8px;
    text-align: center;
}

.notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #bfe4d7;
    border-radius: 9px;
    color: #17694d;
    background: #edf8f4;
    font-size: 10px;
    font-weight: 700;
}

.page-hero--search > .shell {
    min-height: 310px;
    display: block;
    padding-top: 68px;
}

.search-page-form {
    max-width: 650px;
    height: 52px;
    padding: 4px;
    display: flex;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
}

.search-page-form input {
    height: 100%;
    border: 0;
}

.search-page-form button {
    min-width: 105px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: var(--blue);
    font-size: 10px;
    font-weight: 800;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 11px;
}

.search-empty {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.search-empty > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--blue);
    background: var(--paper-blue);
    font-size: 24px;
}

.search-empty h2 {
    margin: 16px 0 4px;
}

.search-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.error-page {
    flex: 1;
    padding: 80px 0;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--paper);
}

main:has(> .error-page) {
    display: flex;
}

.error-page > .shell > span {
    color: var(--blue);
    font-size: 80px;
    font-weight: 900;
}

.error-page p {
    margin: 0 0 22px;
    color: var(--muted);
}

.footer {
    color: #8791a3;
}

.footer__top {
    padding: 60px 0 45px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.logo--footer .logo__text {
    color: white;
}

.footer__brand > p {
    max-width: 320px;
    margin: 20px 0 0;
    font-size: 10px;
}

.footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.footer__nav > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__nav b {
    margin-bottom: 6px;
    color: white;
    font-size: 9px;
    text-transform: uppercase;
}

.footer__nav a,
.footer__nav span {
    font-size: 9px;
    text-decoration: none;
}

.footer__bottom {
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgb(255 255 255 / 9%);
    font-size: 8px;
}

.footer__bottom a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1040px) {
    .desktop-nav {
        gap: 15px;
    }

    .header-search {
        display: none;
    }

    .category-tiles,
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .shell {
        width: min(calc(100% - 34px), var(--shell));
    }

    .header__inner {
        min-height: 68px;
    }

    .desktop-nav,
    .header__actions {
        display: none;
    }

    .mobile-menu {
        position: relative;
        margin-left: auto;
        display: block;
    }

    .mobile-menu summary {
        width: 40px;
        height: 40px;
        display: grid;
        place-content: center;
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 9px;
        list-style: none;
        cursor: pointer;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu summary span {
        width: 17px;
        height: 2px;
        display: block;
        background: var(--ink);
    }

    .mobile-menu__panel {
        position: absolute;
        top: 48px;
        right: 0;
        width: min(330px, calc(100vw - 34px));
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: white;
        box-shadow: 0 15px 35px rgb(17 24 39 / 12%);
    }

    .mobile-menu__panel form {
        display: flex;
        gap: 6px;
    }

    .mobile-menu__panel form button {
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        color: white;
        background: var(--blue);
        font-size: 9px;
        font-weight: 800;
    }

    .mobile-menu__panel nav {
        margin-top: 12px;
        display: grid;
    }

    .mobile-menu__panel nav a {
        padding: 9px 3px;
        border-bottom: 1px solid var(--line);
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .cta {
        align-items: start;
        flex-direction: column;
        gap: 25px;
    }

    .page-hero__inner,
    .page-hero > .shell {
        min-height: 380px;
    }

    .page-hero__count,
    .about-orbit,
    .contact-badge {
        min-width: 125px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    .logo__mark {
        width: 35px;
        height: 35px;
    }

    .logo__text {
        font-size: 18px;
    }

    .hero__copy {
        text-align: left;
    }

    .hero h1 {
        margin: 14px 0 18px;
        font-size: 40px;
        letter-spacing: -2px;
    }

    .hero__lead {
        margin-inline: 0;
        font-size: 14px;
    }

    .hero__actions {
        margin-top: 27px;
        align-items: start;
        flex-direction: column;
        justify-content: start;
        gap: 17px;
    }

    .hero__actions .button {
        width: 100%;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .category-tiles,
    .resource-grid,
    .values__grid {
        grid-template-columns: 1fr;
    }

    .category-tile {
        min-height: 205px;
    }

    .resource-card__body > p {
        min-height: 0;
    }

    .cta {
        padding: 30px 24px;
    }

    .cta .button {
        width: 100%;
    }

    .page-hero__inner,
    .page-hero > .shell {
        min-height: 330px;
        align-items: start;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
    }

    .page-hero__count,
    .about-orbit,
    .contact-badge {
        min-width: 0;
        padding: 0;
        flex-direction: row;
        align-items: center;
        border: 0;
    }

    .page-hero h1 {
        font-size: 39px;
        letter-spacing: -2px;
    }

    .catalog-toolbar {
        flex-direction: column;
        gap: 3px;
    }

    .contact-form {
        padding: 22px;
    }

    .form-head {
        gap: 10px;
        flex-direction: column;
    }

    .contact-line b {
        font-size: 9px;
    }

    .footer__nav {
        gap: 25px;
    }

    .footer__bottom {
        padding: 18px 0;
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Internet connection test */
.nettest {
    padding: 56px 0 88px;
    background: linear-gradient(180deg, var(--paper) 0, transparent 420px);
}

.nettest__shell {
    display: grid;
    gap: 24px;
}

.nettest__hero {
    min-height: 330px;
    padding: clamp(34px, 5vw, 68px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: center;
    gap: 52px;
    border: 1px solid #263b74;
    border-radius: var(--radius-lg);
    color: white;
    background: linear-gradient(315deg, #0e1629 0%, #172441 58%, #21356b 100%);
    box-shadow: 0 26px 70px rgb(17 30 70 / 22%);
}

.nettest__hero::before,
.nettest__hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgb(255 255 255 / 11%);
    border-radius: 50%;
    pointer-events: none;
}

.nettest__hero::before {
    width: 350px;
    height: 350px;
    right: -112px;
    bottom: -210px;
}

.nettest__hero::after {
    width: 190px;
    height: 190px;
    right: 38px;
    top: -125px;
}

.nettest__hero-copy,
.nettest__dial {
    position: relative;
    z-index: 1;
}

.nettest__hero .section-kicker {
    color: #9cb2ff;
}

.nettest__hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: white;
    font-size: clamp(38px, 5.4vw, 72px);
    letter-spacing: -3px;
}

.nettest__hero-copy > p {
    max-width: 710px;
    margin: 0;
    color: #c7d0e3;
    font-size: clamp(14px, 1.7vw, 18px);
}

.nettest__controls {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nettest__start {
    min-width: 190px;
    border: 0;
    cursor: pointer;
}

.nettest__start:disabled {
    cursor: wait;
    opacity: .72;
}

.nettest__status {
    color: #aebbd2;
    font-size: 12px;
    font-weight: 700;
}

@property --nettest-fill {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --nettest-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: -135deg;
}

.nettest__dial {
    --nettest-fill: 0;
    --nettest-angle: -135deg;
    width: min(260px, 100%);
    aspect-ratio: 1;
    position: relative;
    justify-self: end;
    border-radius: 50%;
    background: #0c1530;
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 8%),
        0 0 0 12px rgb(255 255 255 / 4%),
        0 26px 60px -18px rgb(4 10 28 / 75%);
    transition:
        --nettest-fill .45s var(--ease-out),
        --nettest-angle .55s var(--ease-out);
}

.nettest__dial::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgb(139 163 255 / 20%),
        0 0 36px rgb(139 163 255 / 22%);
}

.nettest.is-running .nettest__dial::after {
    animation: nettest-dial-pulse 1.6s ease-in-out infinite;
}

.nettest__gauge {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.nettest__gauge-track,
.nettest__gauge-value {
    fill: none;
    stroke-linecap: round;
    stroke-width: 12;
}

.nettest__gauge-track {
    stroke: rgb(255 255 255 / 9%);
}

.nettest__gauge-value {
    stroke: url("#nettest-gauge-gradient");
    stroke-dasharray: 100 200;
    stroke-dashoffset: calc(100 - var(--nettest-fill));
    filter: drop-shadow(0 0 7px rgb(120 145 255 / 45%));
}

.nettest__gauge-ticks line {
    stroke: rgb(255 255 255 / 15%);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.nettest__gauge-ticks line.is-major {
    stroke: rgb(255 255 255 / 32%);
    stroke-width: 2.5;
}

.nettest__gauge-scale text {
    fill: #8496bd;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-anchor: middle;
    dominant-baseline: central;
}

.nettest__gauge-kind,
.nettest__gauge-unit {
    fill: #91a5cb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-anchor: middle;
    dominant-baseline: central;
    text-transform: uppercase;
    transform: translateX(-.8px);
}

.nettest__gauge-read {
    fill: #fff;
    font-size: 34px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1.5px;
    text-anchor: middle;
    dominant-baseline: central;
}

.nettest__gauge-read.is-long {
    font-size: 27px;
}

.nettest__dial.is-empty .nettest__gauge-read {
    fill: #6d7fa6;
}

.nettest__gauge-needle {
    fill: #f2f5ff;
    transform: rotate(var(--nettest-angle));
    transform-box: view-box;
    transform-origin: 50% 50%;
    filter: drop-shadow(0 2px 4px rgb(2 6 20 / 60%));
}

.nettest__progress-wrap {
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nettest__progress-wrap > div {
    margin-bottom: 9px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.nettest__progress-wrap b {
    color: var(--blue);
}

.nettest__progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    display: block;
    border: 0;
    border-radius: 99px;
    background: var(--paper-blue);
    appearance: none;
}

.nettest__progress::-webkit-progress-bar {
    border-radius: 99px;
    background: var(--paper-blue);
}

.nettest__progress::-webkit-progress-value {
    border-radius: 99px;
    background: linear-gradient(90deg, #4967ed, #7892ff);
    transition: width .35s var(--ease-out);
}

.nettest__progress::-moz-progress-bar {
    border-radius: 99px;
    background: linear-gradient(90deg, #4967ed, #7892ff);
}

.nettest__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nettest__metrics article {
    min-height: 142px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nettest__metric-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--blue);
    background: var(--paper-blue);
    font-size: 21px;
    font-weight: 800;
}

.nettest__metrics small,
.nettest__metrics b {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.nettest__metrics strong {
    display: inline-block;
    margin: 3px 4px 1px 0;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1.7px;
    line-height: 1;
}

.nettest__details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.nettest__panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nettest__panel-head {
    margin-bottom: 17px;
    padding-bottom: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--line);
}

.nettest__panel-head span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.nettest__panel-head small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.nettest__facts {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.nettest__facts > div {
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.nettest__facts dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.nettest__facts dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.nettest__fingerprint > p {
    margin: -2px 0 17px;
    color: var(--muted);
    font-size: 11px;
}

.nettest__fingerprint-value {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}

.nettest__fingerprint-value code {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    color: var(--blue-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
}

.nettest__fingerprint-value button {
    min-height: 34px;
    padding: 8px 11px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.nettest__fingerprint-value button:disabled {
    cursor: wait;
    opacity: .55;
}

.nettest__facts--compact {
    margin-top: 12px;
}

@keyframes nettest-dial-pulse {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

[data-theme="dark"] .nettest {
    background: linear-gradient(180deg, #10182a 0, #0b1020 440px);
}

[data-theme="dark"] .nettest__progress-wrap,
[data-theme="dark"] .nettest__metrics article,
[data-theme="dark"] .nettest__panel {
    border-color: var(--line);
    background: #141c2c;
    box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, var(--shadow-sm);
}

[data-theme="dark"] .nettest__fingerprint-value {
    border-color: #334058;
    background: #0e1625;
}

[data-theme="dark"] .nettest__fingerprint-value code {
    color: #9eb0ff;
}

[data-theme="dark"] .nettest__fingerprint-value button {
    color: var(--ink);
    border-color: #36425a;
    background: #1a2436;
}

@media (max-width: 980px) {
    .nettest__hero {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 32px;
    }

    .nettest__dial {
        width: min(215px, 100%);
    }

    .nettest__metrics {
        grid-template-columns: 1fr 1fr;
    }

    .nettest__details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nettest {
        padding: 28px 0 58px;
    }

    .nettest__hero {
        min-height: 0;
        min-width: 0;
        padding: 30px 24px 34px;
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .nettest__hero-copy,
    .nettest__controls,
    .nettest__start {
        min-width: 0;
        max-width: 100%;
    }

    .nettest__hero h1 {
        letter-spacing: -1.8px;
    }

    .nettest__dial {
        width: min(200px, 100%);
        justify-self: center;
        grid-row: 1;
    }

    .nettest__controls {
        align-items: stretch;
        flex-direction: column;
    }

    .nettest__start {
        width: 100%;
    }

    .nettest__metrics article {
        min-height: 126px;
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nettest__panel {
        padding: 20px;
    }

    .nettest__facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .nettest__metrics {
        grid-template-columns: 1fr;
    }

    .nettest__metrics article {
        min-height: 104px;
        align-items: center;
        flex-direction: row;
    }

    .nettest__panel-head,
    .nettest__fingerprint-value {
        align-items: stretch;
        flex-direction: column;
    }

    .nettest__fingerprint-value button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nettest__dial {
        transition: none;
    }

    .nettest.is-running .nettest__dial::after {
        animation: none;
    }

    .nettest__progress::-webkit-progress-value {
        transition: none;
    }
}

/* Interaction and motion layer. */

::selection {
    color: white;
    background: var(--blue);
}

.header {
    border-bottom-color: rgb(225 230 239 / 78%);
    background: rgb(255 255 255 / 84%);
    backdrop-filter: blur(18px) saturate(1.25);
    transition:
        transform .45s var(--ease-out),
        opacity .3s ease,
        visibility .45s,
        box-shadow .3s ease,
        background-color .3s ease;
    will-change: transform, opacity;
}

.header.is-scrolled {
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 10px 35px rgb(20 29 55 / 7%);
}

.header.is-at-footer {
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(-100% - 12px));
    pointer-events: none;
}

.logo__mark {
    position: relative;
    overflow: hidden;
    box-shadow: none;
    transition: transform .4s var(--ease-out);
}

.logo:hover .logo__mark {
    transform: rotate(-5deg) scale(1.04);
    box-shadow: none;
}

.desktop-nav a {
    position: relative;
    padding: 28px 0;
    transition: color .25s ease;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    height: 2px;
    border-radius: 10px;
    background: var(--blue);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity .2s ease, transform .3s var(--ease-out);
}

.desktop-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-search,
.header-cta,
.button,
.search-page-form button {
    transition:
        transform .3s var(--ease-out),
        border-color .25s ease,
        background-color .25s ease,
        box-shadow .3s ease,
        color .25s ease;
}

.header-search:hover {
    border-color: var(--search-border-active);
    background: var(--search-bg-active);
}

.header-cta:hover,
.button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
}

.header-cta:hover {
    color: white;
    background: var(--blue);
    box-shadow: 0 9px 22px rgb(73 103 237 / 22%);
}

.button--primary {
    box-shadow: 0 10px 25px rgb(73 103 237 / 28%);
}

.button--primary:hover {
    box-shadow: 0 14px 32px rgb(73 103 237 / 34%);
}

.button span,
.text-link span,
.card-link span,
.category-tile__meta b {
    display: inline-block;
    transition: transform .3s var(--ease-out);
}

.button:hover span,
.text-link:hover span,
.card-link:hover span,
.category-tile:hover .category-tile__meta b {
    transform: translateX(4px);
}

.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgb(96 125 255 / 24%), transparent 29%),
        radial-gradient(circle at 84% 78%, rgb(61 84 198 / 23%), transparent 31%),
        linear-gradient(135deg, #10172e 0%, #17234a 52%, #111a38 100%);
}

.hero::before,
.page-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero::after,
.page-hero::after {
    position: absolute;
    z-index: -1;
    width: 430px;
    height: 430px;
    top: 50%;
    left: 50%;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 90px rgb(255 255 255 / 2%),
        0 0 0 180px rgb(255 255 255 / 1.5%);
    animation: hero-orbit 14s ease-in-out infinite alternate;
}

.hero {
    padding: 116px 0 112px;
}

.hero__copy {
    position: relative;
}

.eyebrow,
.section-kicker {
    letter-spacing: 1.6px;
}

.hero .eyebrow {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgb(153 173 255 / 24%);
    border-radius: 999px;
    background: rgb(255 255 255 / 5%);
    backdrop-filter: blur(6px);
}

.hero h1 {
    margin-top: 22px;
    text-wrap: balance;
    text-shadow: 0 16px 45px rgb(0 0 0 / 20%);
}

.hero__lead {
    text-wrap: balance;
}

.section-heading h2,
.page-hero h1,
.cta h2 {
    text-wrap: balance;
}

.section--soft,
.section--catalog {
    border-block: 1px solid #edf0f5;
    background:
        radial-gradient(circle at 90% 10%, rgb(73 103 237 / 6%), transparent 25%),
        var(--paper);
}

.category-tile,
.values__grid article,
.catalog-note,
.nettest__note {
    box-shadow: 0 1px 0 rgb(255 255 255 / 85%) inset;
}

.category-tile,
.resource-card,
.values__grid article,
.contact-form,
.catalog-note,
.nettest__note {
    transition:
        transform .45s var(--ease-out),
        border-color .3s ease,
        box-shadow .45s var(--ease-out);
}

.category-tile:hover,
.resource-card:hover,
.values__grid article:hover {
    border-color: #c9d2f7;
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.category-tile {
    position: relative;
    overflow: hidden;
}

.category-tile::after {
    position: absolute;
    width: 120px;
    height: 120px;
    right: -58px;
    bottom: -58px;
    border-radius: 50%;
    background: var(--paper-blue);
    content: "";
    transition: transform .55s var(--ease-out), opacity .4s ease;
}

.category-tile:hover::after {
    opacity: .8;
    transform: scale(1.35);
}

.category-tile > * {
    position: relative;
    z-index: 1;
}

.category-tile__icon,
.resource-mark {
    transition: transform .45s var(--ease-out), box-shadow .35s ease;
}

.category-tile:hover .category-tile__icon,
.resource-card:hover .resource-mark {
    transform: rotate(-5deg) scale(1.06);
    box-shadow: 0 9px 20px rgb(73 103 237 / 13%);
}

.resource-card {
    box-shadow: var(--shadow-sm);
}

.resource-card--clickable {
    cursor: pointer;
}

.resource-card--clickable:focus-visible {
    outline: 3px solid rgb(73 103 237 / 38%);
    outline-offset: 3px;
}

.resource-card__media img {
    transition: transform .7s var(--ease-out), filter .5s ease;
}

.resource-card:hover .resource-card__media img {
    transform: scale(1.045);
    filter: saturate(1.04);
}

.verified i {
    box-shadow: 0 0 0 4px rgb(25 131 98 / 10%);
    animation: verified-pulse 2.8s ease-in-out infinite;
}

.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 20%, rgb(73 103 237 / 32%), transparent 30%),
        linear-gradient(135deg, #101522, #18203a);
    box-shadow: 0 25px 65px rgb(16 21 34 / 18%);
}

.cta::after {
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 240px;
    right: -90px;
    bottom: -150px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 55px rgb(255 255 255 / 3%);
}

.page-hero__count strong,
.about-orbit > span {
    text-shadow: 0 10px 30px rgb(73 103 237 / 30%);
}

.contact-form {
    box-shadow: var(--shadow-sm);
}

.contact-form:focus-within {
    border-color: #cbd4fb;
    box-shadow: var(--shadow-md);
}

.footer {
    background: #0d121d;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .75s var(--ease-out),
        transform .75s var(--ease-out);
}

.category-tiles .reveal-ready:nth-child(2),
.resource-grid .reveal-ready:nth-child(2),
.values__grid .reveal-ready:nth-child(2) {
    transition-delay: 70ms;
}

.category-tiles .reveal-ready:nth-child(3),
.resource-grid .reveal-ready:nth-child(3),
.values__grid .reveal-ready:nth-child(3) {
    transition-delay: 140ms;
}

.category-tiles .reveal-ready:nth-child(4),
.resource-grid .reveal-ready:nth-child(4),
.values__grid .reveal-ready:nth-child(4) {
    transition-delay: 210ms;
}

@keyframes hero-orbit {
    from { transform: translate(-50%, -50%) scale(.96); }
    to { transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes verified-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgb(25 131 98 / 9%); }
    50% { box-shadow: 0 0 0 6px rgb(25 131 98 / 3%); }
}

@media (max-width: 800px) {
    .hero {
        padding: 88px 0 84px;
    }

    .mobile-menu__panel {
        transform-origin: top right;
        animation: menu-in .28s var(--ease-out);
    }

    @keyframes menu-in {
        from { opacity: 0; transform: translateY(-7px) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 72px 0 68px;
    }

    .hero::after,
    .page-hero::after {
        width: 260px;
        height: 260px;
    }

    .category-tile:hover,
    .resource-card:hover,
    .values__grid article:hover {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
    }
}

/* Color theme controls and dark palette. */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    transition:
        color .3s ease,
        background-color .3s ease,
        border-color .3s ease,
        transform .3s var(--ease-out),
        box-shadow .3s ease;
}

.theme-toggle:hover {
    border-color: #aab8ef;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:focus-visible {
    outline: 3px solid rgb(73 103 237 / 25%);
    outline-offset: 2px;
}

.theme-toggle__icon {
    position: relative;
    width: 19px;
    height: 19px;
    display: block;
}

.theme-toggle svg {
    position: absolute;
    inset: 0;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: opacity .35s ease, transform .45s var(--ease-out);
}

.theme-toggle__moon {
    opacity: 0;
    transform: rotate(-35deg) scale(.55);
}

[data-theme="dark"] .theme-toggle__sun {
    opacity: 0;
    transform: rotate(70deg) scale(.55);
}

[data-theme="dark"] .theme-toggle__moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle--mobile {
    width: 100%;
    margin-top: 10px;
    padding: 0 12px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
}

::view-transition-old(root) {
    animation: viewdux-theme-out .4s ease both;
}

::view-transition-new(root) {
    animation: viewdux-theme-in .4s ease both;
}

@keyframes viewdux-theme-out {
    to { opacity: 0; }
}

@keyframes viewdux-theme-in {
    from { opacity: 0; }
}

.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition-property:
        color,
        background-color,
        border-color,
        outline-color,
        box-shadow,
        fill,
        stroke,
        opacity,
        filter,
        transform;
    transition-duration: .35s;
    transition-timing-function: ease;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f2f5fb;
    --text: #d3dbea;
    --muted: #95a2b8;
    --line: #293449;
    --paper: #111827;
    --paper-blue: #192544;
    --blue: #839aff;
    --blue-dark: #6e86f5;
    --green: #58cba1;
    --search-bg: #121a2b;
    --search-bg-active: #182238;
    --search-border: var(--line);
    --search-border-active: #52669b;
    --search-shadow: 0 0 0 3px rgb(105 129 230 / 16%);
    --search-icon: #929fb4;
    --shadow-sm: 0 12px 34px rgb(0 0 0 / 22%);
    --shadow-md: 0 24px 62px rgb(0 0 0 / 34%);
}

[data-theme="dark"] body {
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0, rgb(73 103 237 / 10%), transparent 28%),
        linear-gradient(90deg, rgb(73 103 237 / 3%), transparent 20%, transparent 80%, rgb(73 103 237 / 3%)),
        #0b1020;
}

[data-theme="dark"] .header {
    border-bottom-color: rgb(45 57 78 / 82%);
    background: rgb(11 16 32 / 84%);
}

[data-theme="dark"] .header.is-scrolled {
    background: rgb(11 16 32 / 95%);
    box-shadow: 0 12px 38px rgb(0 0 0 / 26%);
}

[data-theme="dark"] .logo__text small,
[data-theme="dark"] .category-tile__index,
[data-theme="dark"] .category-tile__meta,
[data-theme="dark"] .resource-tags span,
[data-theme="dark"] .form-policy {
    color: #8996aa;
}

[data-theme="dark"] .desktop-nav a,
[data-theme="dark"] label {
    color: #b6c0d1;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .mobile-menu summary {
    color: var(--ink);
    border-color: var(--line);
    background: #121a2b;
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: #52669b;
    background: #182238;
}

[data-theme="dark"] .header-search input,
[data-theme="dark"] .header-search input:focus {
    color: var(--text);
    border: 0;
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .header-cta {
    color: white;
    background: var(--blue-dark);
}

[data-theme="dark"] .button--light {
    color: #111827;
    background: #eef2ff;
}

[data-theme="dark"] .section--soft,
[data-theme="dark"] .section--catalog {
    border-block-color: #202b3f;
    background:
        radial-gradient(circle at 90% 10%, rgb(100 126 255 / 9%), transparent 26%),
        var(--paper);
}

[data-theme="dark"] .category-tile,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .values__grid article,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .catalog-note,
[data-theme="dark"] .nettest__note {
    border-color: var(--line);
    background: #141c2c;
    box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, var(--shadow-sm);
}

[data-theme="dark"] .category-tile:hover,
[data-theme="dark"] .resource-card:hover,
[data-theme="dark"] .values__grid article:hover {
    border-color: #4d6095;
}

[data-theme="dark"] .resource-card__media {
    background: #0d1422;
}

[data-theme="dark"] .resource-mark--mint {
    color: #71d7b3;
    background: #15342e;
}

[data-theme="dark"] .resource-mark--orange {
    color: #f0ac74;
    background: #38271d;
}

[data-theme="dark"] .resource-mark--violet {
    color: #bda7ff;
    background: #29213f;
}

[data-theme="dark"] .resource-mark--navy {
    color: #b8c5da;
    background: #202b3c;
}

[data-theme="dark"] .resource-tags span,
[data-theme="dark"] .catalog-note > span,
[data-theme="dark"] .nettest__note > span,
[data-theme="dark"] .search-empty > span {
    background: #1c2638;
}

[data-theme="dark"] .contact-promise i {
    color: #73d9b5;
    background: #16352e;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .search-page-form {
    color: var(--text);
    border-color: #344057;
    background: #0f1726;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #748198;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #6981e6;
    box-shadow: 0 0 0 3px rgb(105 129 230 / 18%);
}

[data-theme="dark"] .notice {
    color: #8fe0c1;
    border-color: #285b4c;
    background: #143128;
}

[data-theme="dark"] .cta {
    border: 1px solid #344a7b;
    background:
        radial-gradient(circle at 88% 18%, rgb(112 139 255 / 32%), transparent 34%),
        radial-gradient(circle at 12% 110%, rgb(73 103 237 / 16%), transparent 42%),
        linear-gradient(135deg, #172238 0%, #1e2d50 55%, #263b74 100%);
    box-shadow:
        0 28px 72px rgb(0 0 0 / 36%),
        0 1px 0 rgb(255 255 255 / 8%) inset;
}

[data-theme="dark"] .cta p {
    color: #c4cede;
}

[data-theme="dark"] .cta .button--light {
    box-shadow: 0 12px 30px rgb(3 8 20 / 24%);
}

[data-theme="dark"] .error-page {
    background: var(--paper);
}

[data-theme="dark"] .mobile-menu__panel {
    border-color: var(--line);
    background: #111827;
    box-shadow: 0 20px 48px rgb(0 0 0 / 42%);
}

[data-theme="dark"] .footer {
    border-top: 1px solid #1d2940;
    background: #080d18;
}

@media (prefers-reduced-motion: reduce) {
    .theme-switching *,
    .theme-switching *::before,
    .theme-switching *::after {
        transition: none;
    }
}
