:root {
    --ink: #0b1426;
    --ink-soft: #5f7087;
    --canvas: #f5f8fc;
    --line: rgb(84 111 145 / 0.18);
    --accent: #2475ed;
    --accent-soft: #00a9ce;
    --header: 5rem;
    --ease: cubic-bezier(0.2, 0.82, 0.24, 1);
}

body {
    font-optical-sizing: auto;
}

.page-background {
    background:
        linear-gradient(90deg, rgb(36 117 237 / 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgb(36 117 237 / 0.04) 1px, transparent 1px),
        radial-gradient(circle at 14% 18%, rgb(36 117 237 / 0.2), transparent 29rem),
        radial-gradient(circle at 86% 74%, rgb(0 169 206 / 0.14), transparent 28rem),
        radial-gradient(circle at 78% 16%, rgb(117 85 233 / 0.1), transparent 23rem),
        linear-gradient(135deg, #f7faff 0%, #eef6ff 50%, #fffaf0 100%);
    background-size: 5rem 5rem, 5rem 5rem, auto, auto, auto, auto;
}

.shape {
    border-color: rgb(93 120 154 / 0.19);
    background: linear-gradient(145deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.32));
    box-shadow: 0 2rem 5rem rgb(35 67 108 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.topbar {
    border-bottom-color: rgb(93 120 154 / 0.15);
    background: rgb(248 251 255 / 0.76);
    box-shadow: 0 0.45rem 1.6rem rgb(15 35 65 / 0.04);
    -webkit-backdrop-filter: saturate(150%) blur(24px);
    backdrop-filter: saturate(150%) blur(24px);
}

.nav a {
    transition: color 160ms ease, background-color 160ms ease, transform 180ms var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
    background: rgb(255 255 255 / 0.82);
}

.nav a:active,
.button:active,
.text-link:active,
.references-carousel__controls button:active {
    transform: scale(0.96);
}

.portal-link {
    border: 1px solid rgb(11 20 38 / 0.13);
    background: rgb(255 255 255 / 0.74);
    box-shadow: 0 0.4rem 1.25rem rgb(15 35 65 / 0.07);
}

h1,
h2 {
    font-weight: 760;
    letter-spacing: -0.07em;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.button {
    min-height: 3.3rem;
    padding-inline: 1.35rem;
    background: linear-gradient(135deg, #287cf2, #05a9c9);
    box-shadow: 0 0.9rem 2.2rem rgb(31 111 224 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.24);
    transition: transform 200ms var(--ease), box-shadow 200ms ease, filter 200ms ease;
}

.button:hover,
.button:focus-visible {
    box-shadow: 0 1.1rem 2.7rem rgb(31 111 224 / 0.31), inset 0 1px 0 rgb(255 255 255 / 0.22);
}

.plain-list {
    border: 1px solid rgb(93 120 154 / 0.16);
    border-radius: 1.5rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: rgb(255 255 255 / 0.64);
    box-shadow: 0 1.1rem 3rem rgb(35 67 108 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.reference-slide {
    border-color: rgb(93 120 154 / 0.16);
    background: rgb(255 255 255 / 0.7);
    box-shadow: 0 1rem 3rem rgb(35 67 108 / 0.075), inset 0 1px 0 rgb(255 255 255 / 0.9);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 220ms ease,
        transform 220ms var(--ease);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.reference-slide:hover,
.reference-slide:focus-visible {
    border-color: rgb(36 117 237 / 0.28);
    background: rgb(255 255 255 / 0.94);
    box-shadow: 0 1.3rem 3.5rem rgb(35 67 108 / 0.13);
}

.references-carousel__controls button {
    border-color: rgb(93 120 154 / 0.18);
    background: rgb(255 255 255 / 0.7);
    box-shadow: 0 0.45rem 1.4rem rgb(35 67 108 / 0.06);
}

.section-nav {
    border: 1px solid rgb(93 120 154 / 0.14);
    border-radius: 999px;
    padding: 0.75rem 0.5rem;
    background: rgb(255 255 255 / 0.54);
    box-shadow: 0 0.6rem 2rem rgb(35 67 108 / 0.07);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.section-nav button {
    background: rgb(11 20 38 / 0.2);
}

@media (max-width: 62rem) {
    .plain-list {
        max-width: 36rem;
    }
}

@media (max-width: 38rem) {
    :root {
        --header: 4.5rem;
    }

    .topbar {
        padding-inline: 1rem;
    }

    .panel {
        padding-right: 2.2rem;
    }

    .plain-list {
        border-radius: 1.15rem;
        padding: 1rem;
    }

    .section-nav {
        right: 0.45rem;
        padding: 0.55rem 0.38rem;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .topbar,
    .plain-list,
    .reference-slide,
    .section-nav {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --ink-soft: #40516a;
        --line: #8296af;
    }

    .plain-list,
    .reference-slide,
    .section-nav {
        border-width: 2px;
    }
}

/* Navigation stays available without scripting; compact viewports use native scrolling. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2475ed; outline-offset: 4px; }
.topbar .menu-button { display: none; }
@media (min-width: 60.01rem) { .nav .nav-mobile-only { display: none; } }
.panel { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 60rem) {
    .js-ready .topbar .menu-button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.5rem; cursor: pointer; }
    .js-ready .topbar .nav { position: fixed; top: var(--header); left: .75rem; right: .75rem; display: grid; align-content: start; gap: .25rem; max-height: calc(100dvh - var(--header) - .75rem); overflow-y: auto; overscroll-behavior: contain; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f8fbff; box-shadow: 0 1rem 3rem #10274726; }
    .topbar .nav a { display: flex; align-items: center; min-height: 44px; padding: .75rem 1rem; line-height: 1.3; }
    .no-js .topbar { position: relative; flex-wrap: wrap; padding-block: 1rem; }
    .no-js .nav { flex-wrap: wrap; }
    .no-js .nav a { display: block; }
}
@media (max-width: 62rem), (max-height: 45rem) {
    html, body { overflow: auto; scrollbar-width: auto; }
    html::-webkit-scrollbar, body::-webkit-scrollbar { display: initial; }
    .stage { position: relative; overflow: visible; min-height: 0; }
    .panel, .panel.is-leaving-up { position: relative; inset: auto; min-height: 0; padding: 3rem 1.25rem; opacity: 1; visibility: visible; transform: none; pointer-events: auto; overflow: visible; }
    .panel:first-child { padding-top: calc(var(--header) + 2.5rem); min-height: 90svh; align-content: center; }
    .panel__inner { display: block !important; }
    .panel h1 { max-width: 15ch; font-size: clamp(2.65rem, 10vw, 5.2rem); }
    .panel h2 { max-width: 22ch; font-size: clamp(2rem, 7.5vw, 4rem); }
    .panel .plain-list { margin-top: 1.5rem; max-width: none; }
    .panel .text-link { margin-top: 1.5rem; }
    .section-nav { display: none; }
}
.no-js .stage { position: relative; overflow: visible; }
.no-js, .no-js body { overflow: auto; }
.no-js .panel { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .panel { transition: none; transform: none; } }

/* Keep desktop links visible across the compact-layout threshold. */
@media (min-width: 60.01rem) { .topbar .nav a:not(.nav-mobile-only) { display: flex; } }
.references-carousel__controls { flex-wrap: wrap; }

.topbar .menu-button__lines { display: flex; width: 20px; flex-direction: column; gap: 4px; }
.topbar .menu-button__lines i { display: block; height: 2px; width: 20px; background: currentColor; border-radius: 2px; }
.topbar .menu-button[aria-expanded="true"] .menu-button__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar .menu-button[aria-expanded="true"] .menu-button__lines i:nth-child(2) { opacity: 0; }
.topbar .menu-button[aria-expanded="true"] .menu-button__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Center the homepage links independently of the logo and portal action. */
.topbar .topbar-portal { display: none; }
@media (min-width: 60.01rem) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .topbar .brand { justify-self: start; }
    .topbar .nav { justify-self: center; }
    .topbar .topbar-portal {
        display: inline-flex;
        justify-self: end;
        align-items: center;
        min-height: 44px;
        padding: .6rem .9rem;
        border-radius: 999rem;
        font-size: .92rem;
        font-weight: 690;
        line-height: 1.5;
        text-decoration: none;
    }
    .topbar .topbar-portal:hover,
    .topbar .topbar-portal:focus-visible { background: #fff; }
}
