@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
    font-display: swap;
    font-weight: 100 900;
}

:root {
    color-scheme: light;
    --ink: #0d1728;
    --ink-soft: #526274;
    --canvas: #f6f9fc;
    --line: rgb(73 92 121 / 0.16);
    --accent: #2473f2;
    --accent-soft: #13a8ba;
    --accent-warm: #e59a36;
    --accent-rose: #e75d76;
    --header: 4.6rem;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "ss01" 1, "ss02" 1, "tnum" 1;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 70;
    top: 1rem;
    left: 1rem;
    transform: translateY(-160%);
    border-radius: 999rem;
    padding: 0.7rem 1rem;
    background: var(--ink);
    color: #f8fbff;
    font-weight: 720;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgb(36 115 242 / 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgb(36 115 242 / 0.035) 1px, transparent 1px),
        radial-gradient(circle at 18% 22%, rgb(36 115 242 / 0.16), transparent 26rem),
        radial-gradient(circle at 88% 72%, rgb(19 168 186 / 0.13), transparent 24rem),
        linear-gradient(135deg, #f8fbff 0%, #edf6fb 46%, #fff8ea 100%);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.shape {
    position: absolute;
    border: 1px solid rgb(36 115 242 / 0.18);
    background: rgb(255 255 255 / 0.42);
    box-shadow: 0 1.5rem 5rem rgb(24 42 67 / 0.08);
}

.shape--one {
    top: 18vh;
    right: 15vw;
    width: 9rem;
    height: 9rem;
    border-radius: 2rem;
    transform: rotate(-10deg);
}

.shape--two {
    right: -3rem;
    bottom: 13vh;
    width: 16rem;
    height: 16rem;
    border-radius: 999rem;
}

.shape--three {
    bottom: 7vh;
    left: 7vw;
    width: 11rem;
    height: 7rem;
    border-radius: 2.2rem;
    transform: rotate(8deg);
}

.topbar {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    display: flex;
    min-height: var(--header);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 3.4vw, 3.25rem);
    border-bottom: 1px solid rgb(73 92 121 / 0.12);
    background: rgb(246 249 252 / 0.76);
    backdrop-filter: blur(22px);
}

.brand {
    display: inline-grid;
    gap: 0.1rem;
    color: var(--ink);
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 870;
    letter-spacing: -0.045em;
    line-height: 0.9;
    text-decoration: none;
}

.brand__name {
    display: block;
}

.brand__tagline {
    display: block;
    width: 100%;
    color: var(--ink);
    font-size: 0.24em;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
}

.brand__tagline::after {
    display: inline-block;
    width: 100%;
    content: "";
}

.topbar .brand__tagline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    letter-spacing: 0;
    text-align: initial;
    text-align-last: initial;
}

.topbar .brand__tagline::after {
    content: none;
}

.topbar .brand__tagline span {
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 690;
}

.nav a {
    border-radius: 999rem;
    padding: 0.6rem 0.78rem;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
    background: rgb(255 255 255 / 0.78);
    outline: 0;
}

.portal-link {
    color: var(--ink);
}

.stage {
    position: fixed;
    z-index: 1;
    inset: 0;
    min-height: 100dvh;
    overflow: hidden;
}

.panel {
    position: absolute;
    inset: 0;
    display: grid;
    min-height: 100dvh;
    align-items: center;
    padding: calc(var(--header) + clamp(1.5rem, 4vw, 3rem)) clamp(1.2rem, 5vw, 5.25rem) clamp(2rem, 7vw, 5rem);
    opacity: 0;
    pointer-events: none;
    transform: translateY(2.4rem) scale(0.985);
    transition:
        opacity 520ms var(--ease),
        transform 680ms var(--ease),
        visibility 520ms var(--ease);
    visibility: hidden;
}

.panel--references,
.panel--solution {
    align-items: center;
    padding-top: calc(var(--header) + clamp(1.5rem, 4vw, 3rem));
}

.panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.panel.is-leaving-up {
    transform: translateY(-2.4rem) scale(0.985);
}

.panel__inner {
    width: min(98rem, 100%);
    max-width: 100%;
    justify-self: center;
}

.panel--hero .panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.5fr);
    gap: clamp(2.25rem, 5vw, 5.75rem);
    align-items: end;
}

.panel--references .panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vh, 3.5rem);
    align-content: center;
}

.panel--solution .panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.48fr);
    column-gap: clamp(2.4rem, 5vw, 5.75rem);
    align-items: end;
}

.panel--hero .eyebrow,
.panel--hero h1 {
    grid-column: 1;
}

.panel--hero .lead,
.panel--hero .button {
    grid-column: 2;
}

.panel--hero .lead {
    align-self: end;
    margin-bottom: 0;
}

.panel--solution .eyebrow,
.panel--solution h2 {
    grid-column: 1;
}

.panel--solution p:not(.eyebrow) {
    grid-column: 1;
    max-width: 38rem;
    margin-top: clamp(0.2rem, 1vw, 0.7rem);
    margin-bottom: 0;
}

.panel--solution .plain-list {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: end;
}

.panel--solution .text-link {
    grid-column: 1;
}

.panel--references .references-carousel {
    grid-column: 1;
    width: 100%;
}

.references-heading h2 {
    max-width: 17ch;
    margin-bottom: 0;
}

.eyebrow {
    margin: 0 0 1.05rem;
    color: color-mix(in srgb, var(--accent) 82%, var(--ink));
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
    color: var(--ink);
    font-weight: 860;
    letter-spacing: -0.065em;
    line-height: 0.95;
}

h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 7vw, 7rem);
}

h2 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 6.25vw, 6.15rem);
}

.lead,
.panel p:not(.eyebrow) {
    max-width: 40rem;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.45vw, 1.36rem);
    line-height: 1.56;
}

.button {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    margin-top: clamp(1.5rem, 3vw, 2.2rem);
    border-radius: 999rem;
    padding: 0.9rem 1.15rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    color: #ffffff;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1.2rem 2.5rem rgb(36 115 242 / 0.16);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.reference-slide:hover,
.reference-slide:focus-visible {
    outline: 0;
    transform: translateY(-1px);
}

.references-carousel {
    width: 100%;
    min-width: 0;
}

.references-carousel__viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.references-carousel__track {
    display: flex;
    gap: clamp(1rem, 2vw, 1.4rem);
    align-items: stretch;
    will-change: transform;
    transition: transform 560ms var(--ease);
}

.reference-slide {
    display: grid;
    flex: 0 0 calc((100% - (3 * clamp(1rem, 2vw, 1.4rem))) / 4);
    min-height: clamp(8rem, 12vw, 10rem);
    align-content: center;
    gap: 0.9rem;
    justify-items: start;
    border: 1px solid rgb(73 92 121 / 0.12);
    border-radius: 1.35rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    background: rgb(255 255 255 / 0.44);
    color: var(--ink);
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    font-weight: 820;
    box-shadow: 0 1rem 3rem rgb(24 42 67 / 0.06);
    text-decoration: none;
    transition: transform 220ms var(--ease);
}

.reference-slide img {
    display: block;
    width: auto;
    max-width: 10rem;
    height: clamp(2rem, 4vw, 3.35rem);
    object-fit: contain;
    filter: saturate(0.9) contrast(1.04);
}

.references-carousel__controls {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    margin-top: 1.2rem;
}

.references-carousel__controls button {
    display: inline-grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid rgb(73 92 121 / 0.16);
    border-radius: 999rem;
    padding: 0;
    background: rgb(255 255 255 / 0.62);
    color: var(--ink);
    cursor: pointer;
    font-size: 0;
    font-weight: 800;
    transition:
        transform 220ms var(--ease),
        background 220ms var(--ease);
}

.references-carousel__controls button:hover,
.references-carousel__controls button:focus-visible {
    background: #ffffff;
    outline: 0;
    transform: translateY(-1px);
}

.references-carousel__controls button::before {
    font-size: 1.15rem;
    line-height: 1;
}

.references-carousel__controls [data-references-prev]::before {
    content: "‹";
}

.references-carousel__controls [data-references-next]::before {
    content: "›";
}

.plain-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-size: clamp(1rem, 1.08vw, 1.12rem);
    font-weight: 680;
    line-height: 1.34;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding-left: 1.25rem;
}

.plain-list li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: clamp(1.4rem, 3vw, 2rem);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 780;
    text-decoration: none;
    transition: transform 220ms var(--ease);
}

.text-link::after {
    content: "";
    width: 1.6rem;
    height: 1px;
    margin: auto 0 auto 0.7rem;
    background: currentColor;
}

.section-nav {
    position: fixed;
    z-index: 60;
    top: 50%;
    right: clamp(0.75rem, 2.2vw, 1.6rem);
    display: grid;
    gap: 0.55rem;
    transform: translateY(-50%);
}

.section-nav button {
    width: 0.56rem;
    height: 0.56rem;
    border: 0;
    border-radius: 999rem;
    padding: 0;
    background: rgb(13 23 40 / 0.24);
    cursor: pointer;
    transition:
        width 220ms var(--ease),
        background 220ms var(--ease),
        transform 220ms var(--ease);
}

.section-nav button.is-active {
    width: 1.85rem;
    background: var(--accent);
}

.section-nav button:hover,
.section-nav button:focus-visible {
    transform: translateX(-0.12rem);
    outline: 0;
}

.section-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 62rem) {
    .nav a:not(.portal-link) {
        display: none;
    }

    .panel {
        padding-inline: 1.15rem;
    }

    .panel--hero .panel__inner,
    .panel--references .panel__inner,
    .panel--solution .panel__inner {
        display: block;
    }

    .panel--hero .button {
        margin-top: 1.5rem;
    }

    .panel--references .references-carousel {
        margin-top: 2.4rem;
    }

    .panel--solution .plain-list {
        margin-top: 1.6rem;
    }

    .panel--solution p:not(.eyebrow) {
        margin-bottom: 0;
    }

    h1 {
        max-width: 10ch;
        font-size: clamp(3.1rem, 15vw, 5.2rem);
    }

    h2 {
        max-width: 11ch;
        font-size: clamp(2.7rem, 12vw, 4.4rem);
    }

    .references-carousel {
        width: 100%;
    }

    .reference-slide {
        flex-basis: calc((100% - (2 * clamp(1rem, 2vw, 1.4rem))) / 3);
    }

    .section-nav {
        right: 0.65rem;
    }
}

@media (max-width: 38rem) {
    .topbar {
        min-height: 4.2rem;
    }

    .portal-link {
        font-size: 0.86rem;
    }

    .panel {
        align-items: center;
        padding-top: calc(var(--header) + 1.25rem);
        padding-bottom: 1.5rem;
    }

    h1 {
        font-size: clamp(2.85rem, 15vw, 4.45rem);
    }

    h2 {
        font-size: clamp(2.3rem, 11vw, 3.6rem);
    }

    .lead,
    .panel p:not(.eyebrow) {
        font-size: 1rem;
        line-height: 1.5;
    }

    .plain-list {
        gap: 0.72rem;
        font-size: 0.95rem;
    }

    .reference-slide {
        flex-basis: min(72vw, 15rem);
    }
}

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