/* ==================================================================
   Digital Wizards — inside the Matrix
   Black with a breath of green; everything visible is phosphor light
   pulled out of the dark. Blue only where a choice is offered.
   ================================================================== */

:root {
    --ink:       #030504;
    --ink-2:     #071009;
    --light:     #dcffe9;
    --light-2:   #7fb597;
    --green:     #00ff8f;
    --green-dim: #0b5a38;
    --blue:      #00a1ff;

    --hair:    rgba(0, 255, 143, .14);
    --hair-50: rgba(11, 90, 56, .9);
    --dim:     rgba(0, 255, 143, .12);
    --glow:    0 0 18px rgba(0, 255, 143, .35);

    --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --f-body:    'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    --f-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --expo:  cubic-bezier(.16, 1, .3, 1);
    --pow3:  cubic-bezier(.215, .61, .355, 1);

    --gutter: clamp(24px, 4vw, 48px);
    --col-gap: clamp(16px, 2vw, 32px);
    --nav-h: 76px;

    --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55 0 0 0 0 1 0 0 0 0 .75 0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--ink);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--light);
    font-family: var(--f-body);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; color: var(--light); }

::selection { background: var(--light); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 2px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a221c; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
    position: fixed; top: 12px; left: 12px; z-index: 200;
    padding: .6rem 1rem; background: var(--light); color: var(--ink);
    border-radius: 6px; transform: translateY(-160%);
    transition: transform .4s var(--expo);
}
.skip:focus-visible { transform: none; }

/* --------------------------------------------------------- the plate tooth */
.grain {
    position: fixed; inset: -50%;
    z-index: 120;
    pointer-events: none;
    background-image: var(--noise);
    background-size: 240px 240px;
    opacity: .07;
    mix-blend-mode: overlay;
}

.scan {
    position: fixed; inset: 0;
    z-index: 121;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 255, 143, .04) 2px 3px);
}

.code-reveal {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s var(--pow3);
}
.code-reveal.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .code-reveal { display: none; }
}

/* ------------------------------------------------------------- type */
.wrap {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.display, .display-s, .hero__title, .svc__title, .foot__word {
    font-family: var(--f-display);
    font-optical-sizing: auto;
    letter-spacing: -.03em;
}
.display {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .95;
    font-weight: 560;
    font-variation-settings: 'opsz' 96;
}
.display-s {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    line-height: 1;
    font-weight: 540;
    font-variation-settings: 'opsz' 96;
}
.w-light { font-weight: 300; color: var(--green); }
.display .w-light, .display-s .w-light, .hero__title .w-light { text-shadow: var(--glow); }

.caption {
    font-family: var(--f-mono);
    font-style: normal;
    font-weight: 400;
    font-size: .85rem;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--light-2);
}

.tags {
    font-family: var(--f-mono);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .12em;
    color: var(--light-2);
    margin: 0;
}
.tags span { margin-inline: .35em; color: var(--green-dim); }

.word { display: inline-block; will-change: filter, opacity; }

/* ------------------------------------------------------------- links + buttons */
.pill {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5em;
    padding: .82rem 1.45rem;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: .98rem;
    line-height: 1;
    letter-spacing: .005em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .45s var(--expo), background-color .3s var(--pow3), box-shadow .45s var(--expo);
}
.pill:hover {
    background: color-mix(in srgb, var(--green) 92%, #000);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px rgba(0, 255, 143, .35);
}
.pill:active { transform: translateY(0); }
.pill--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

.tlink {
    position: relative;
    display: inline-block;
    color: var(--light);
    padding-bottom: 3px;
    background-image:
        linear-gradient(var(--green), var(--green)),
        linear-gradient(var(--hair-50), var(--hair-50));
    background-size: 0% 1px, 100% 1px;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size .7s var(--expo), color .3s;
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px, 100% 1px; }
.tlink--blue {
    color: var(--blue);
    background-image:
        linear-gradient(var(--blue), var(--blue)),
        linear-gradient(rgba(0, 161, 255, .3), rgba(0, 161, 255, .3));
}

/* ------------------------------------------------------------- nav */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 80;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background-color .5s var(--pow3), border-color .5s var(--pow3), backdrop-filter .5s;
    will-change: transform;
}
.nav.is-solid {
    background: rgba(3, 5, 4, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(11, 90, 56, .4);
}
.nav.is-solid.over-hero {
    background: rgba(3, 5, 4, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.nav__inner {
    height: 100%;
    max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; gap: 2rem;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
    margin-left: auto;
    display: flex; gap: clamp(1.25rem, 2.4vw, 2.4rem);
    font-size: .95rem;
}
.nav__links a {
    color: var(--light-2);
    transition: color .3s;
    position: relative;
}
.nav__links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: var(--green); transform: scaleX(0); transform-origin: right;
    transition: transform .6s var(--expo);
}
.nav__links a:hover { color: var(--light); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .7rem 1.2rem; font-size: .92rem; }

.nav__burger {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    background: none; border: 0; padding: 0; cursor: pointer;
    position: relative;
}
.nav__burger span {
    position: absolute; left: 11px; right: 11px; height: 1px; background: var(--light);
    transition: transform .6s var(--expo);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child  { top: 25px; }
.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: 70;
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .5s var(--pow3), visibility 0s linear .5s;
}
.menu::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: var(--noise); background-size: 240px; opacity: .06;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--pow3), visibility 0s; }
.menu__links { display: flex; flex-direction: column; gap: .2rem; position: relative; margin-top: auto; }
.menu__links a {
    display: block;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 11vw, 4.4rem);
    letter-spacing: -.03em;
    line-height: 1.08;
    clip-path: inset(100% 0 0 0);
    transform: translateY(30%);
    transition: clip-path .9s var(--expo), transform .9s var(--expo);
}
.menu__links a:last-child { color: var(--green); font-weight: 300; text-shadow: var(--glow); }
.menu.is-open .menu__links a { clip-path: inset(0 0 -10% 0); transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .14s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .20s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .26s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .32s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .38s; }
.menu.is-open .menu__links a:nth-child(7) { transition-delay: .44s; }
.menu__foot { margin-top: auto; position: relative; }

/* ------------------------------------------------------------- 1. hero */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
}
.hero__canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: -3;
    will-change: opacity;
}
.hero__fallback {
    display: none;
    position: absolute; inset: 0; z-index: -3;
    background:
        radial-gradient(60% 50% at 62% 46%, rgba(0, 255, 143, .08), transparent 70%),
        radial-gradient(40% 35% at 40% 60%, rgba(11, 90, 56, .2), transparent 70%),
        var(--ink);
}
.hero__fallback::after {
    content: ''; position: absolute; inset: 0;
    background-image: var(--noise); background-size: 240px; opacity: .08;
}
.no-webgl .hero__fallback, html:not(.js) .hero__fallback { display: block; }
/* keeps the headline legible over the rain without a box */
.hero__scrim {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(70% 60% at 22% 52%, rgba(3, 5, 4, .78), rgba(3, 5, 4, .35) 55%, transparent 80%);
}
.hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18vh;
    z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(3, 5, 4, 0), var(--ink));
}

.hero__wrap {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: center;
    padding-top: var(--nav-h);
}
.hero__content { grid-column: 1 / span 11; position: relative; }

.hero__title {
    font-size: clamp(2.8rem, 8.2vw, 7rem);
    line-height: .95;
    font-weight: 560;
    font-variation-settings: 'opsz' 96;
    letter-spacing: -.03em;
    font-kerning: normal;
    font-feature-settings: "kern";
    margin: 0;
    will-change: transform, filter, opacity;
}
.hero__line { display: block; }
/* words are the only boxes: lines break between words, never inside one */
.hw { display: inline-block; white-space: nowrap; }
/* letters stay inline so kerning and the H1's tracking apply untouched */
.ch {
    position: relative;
    transition: color .5s var(--pow3), text-shadow .5s var(--pow3);
}
.ch.is-scrambling { visibility: hidden; }
.ch.is-scrambling::after {
    content: attr(data-g);
    visibility: visible;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: .66em;
    letter-spacing: 0;
    line-height: 1;
    color: var(--green-dim);
    text-shadow: none;
    pointer-events: none;
}
.ch.is-hot { color: var(--green); text-shadow: var(--glow); }

/* bullet-time mode: headline and follow-up share one screen-fixed slot */
.hero--bt .hero__stack { display: grid; }
.hero--bt .hero__title, .hero--bt .hero__follow { grid-area: 1 / 1; align-self: center; }
.hero--bt .hero__follow { margin-top: 0; }

.hero__follow { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); will-change: transform, opacity; }
.hero__intro {
    max-width: 50ch;
    color: var(--light-2);
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}
.hero--bt .hero__intro { color: var(--light); font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.45; max-width: 36ch; }
.hero__intro strong { color: var(--green); font-weight: 500; }
.hero__actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }

.hero__cue {
    position: absolute; right: var(--gutter); bottom: 26px;
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__cue-line {
    display: block; width: 1px; height: 64px; background: var(--hair-50); overflow: hidden;
}
.hero__cue-line span {
    display: block; width: 100%; height: 100%;
    background: var(--green);
    transform: scaleY(.12); transform-origin: top;
}

/* ------------------------------------------------------------- 2. manifesto */
.manifesto {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-block: 14vh;
}
.manifesto__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
}
.manifesto__text {
    grid-column: 2 / 10;
    max-width: 22ch;
    margin: 0;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.6vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-variation-settings: 'opsz' 60;
}
.mw { color: var(--light); }
.m-it .mw { font-weight: 300; color: var(--green); }
.manifesto__note { grid-column: 10 / 13; margin: 0; justify-self: end; text-align: right; max-width: 18ch; }

/* ------------------------------------------------------------- 3. work */
.anchor-alias { position: absolute; top: 0; }
.work { position: relative; padding-top: 16vh; }
.work__head { padding-bottom: 6vh; }
.work__head .display { font-size: clamp(3rem, 9vw, 6rem); }
.work__head .caption { margin-top: 1rem; }

/* 3D card carousel. Without .car--on (no JS) it is a plain vertical list. */
.carousel { position: relative; --card-w: min(30vw, 440px); }
.car__stage, .car__controls { display: none; }
.car__details { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.car--on .car__stage {
    display: block;
    position: relative;
    height: calc(var(--card-w) * 9 / 14 + 30px + 120px);
    perspective: 1800px;
    perspective-origin: 50% 45%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline-offset: -3px;
}
.car--on .car__stage.is-dragging { cursor: grabbing; }
.car__ring {
    position: absolute; left: 50%; top: 60px;
    width: var(--card-w);
    height: calc(var(--card-w) * 9 / 14 + 30px);
    margin-left: calc(var(--card-w) / -2);
    transform-style: preserve-3d;
    will-change: transform;
}
.car__card {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.car__card .frame {
    filter: brightness(.45) blur(2px);
    transform: scale(1);
    transition: filter .6s var(--pow3), transform .8s var(--expo), border-color .5s var(--pow3);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.car__card.is-active .frame { filter: none; transform: scale(1.08); border-color: var(--green); }
.car__card img { pointer-events: none; }
.car__label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 2.6rem 1.1rem .9rem;
    font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em;
    color: var(--light);
    background: linear-gradient(to top, rgba(3, 5, 4, .92), rgba(3, 5, 4, 0));
    pointer-events: none;
}
.car--on .car__controls {
    display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.2rem);
    margin-top: .5rem;
}
.car__btn {
    background: none; border: 0; padding: .6rem .4rem; cursor: pointer;
    color: var(--light-2);
    white-space: nowrap;
    transition: color .3s;
}
.car__btn:hover { color: var(--green); }
.car__ticks { display: flex; gap: 6px; }
.car__tick {
    width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
    position: relative;
}
.car__tick::before {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 1px; height: 10px; margin: -5px 0 0;
    background: var(--green-dim);
    transition: height .4s var(--expo), margin .4s var(--expo), background-color .3s;
}
.car__tick:hover::before { background: var(--light-2); }
.car__tick[aria-current="true"]::before { height: 20px; margin-top: -10px; background: var(--green); box-shadow: 0 0 8px rgba(0, 255, 143, .6); }

.car--on .car__details { gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.car--on .car__detail {
    grid-area: 1 / 1;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: opacity .5s var(--pow3), transform .5s var(--pow3), visibility 0s linear .5s;
}
.car--on .car__detail.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .5s var(--pow3) .1s, transform .5s var(--pow3) .1s, visibility 0s;
}
.car__detail { max-width: 68ch; margin-inline: auto; text-align: center; }
.car__name {
    font-family: var(--f-display); font-weight: 500;
    font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.025em; line-height: 1.02;
}
.car__domain { display: inline-block; margin-top: .6rem; transition: color .3s; }
.car__domain:hover { color: var(--green); }
.car__desc { margin: 1.2rem auto; color: var(--light-2); font-size: 1rem; line-height: 1.62; max-width: 64ch; }
.car__detail .tags { margin-bottom: 1.4rem; }
html:not(.js) .car__detail, .carousel:not(.car--on) .car__detail { text-align: left; margin-inline: 0; }
.carousel:not(.car--on) .car__desc { margin-inline: 0; }

.frame {
    margin: 0;
    border: 1px solid var(--green-dim);
    border-radius: 10px;
    background: var(--ink-2);
    overflow: hidden;
    transition: border-color .4s var(--pow3);
}

.frame__bar {
    height: 30px; display: flex; align-items: center; gap: 6px; padding-inline: 12px;
    border-bottom: 1px solid var(--hair);
}
.frame__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--light-2); opacity: .45; }
.frame__view { position: relative; aspect-ratio: 14 / 9; overflow: hidden; background: var(--ink-2); }
.frame__view img {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
}
.frame__view::after {
    content: ''; position: absolute; left: 0; right: 0; top: -45%; height: 45%; z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(0, 255, 143, .16) 0 1px, transparent 1px 3px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent);
    opacity: 0;
}
.car__card.is-active:hover .frame__view::after { animation: sweep .9s var(--pow3) 1; }
@keyframes sweep {
    0%   { top: -45%; opacity: 1; }
    100% { top: 100%; opacity: 1; }
}
.frame.is-fallback img { display: none; }
.frame__plate {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(1rem, 2.5vw, 2rem);
    overflow: hidden;
}
.frame__plate::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--noise); background-size: 240px; opacity: .07;
}
.frame__plate-name {
    position: absolute; left: -.04em; top: 50%; transform: translateY(-55%);
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(3rem, 7vw, 7rem);
    letter-spacing: -.045em; line-height: .85;
    color: rgba(0, 255, 143, .08);
    white-space: nowrap;
}
.frame__plate-line { position: relative; margin: 0; }

/* also pulled */
.also { padding-block: 20vh 6vh; position: relative; }
.also .display-s { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.marquee {
    overflow: hidden;
    padding-block: 1.4rem;
    border-top: 1px solid var(--hair);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { border-bottom: 1px solid var(--hair); }
.marquee__track {
    display: flex; width: max-content;
    animation: marquee 70s linear infinite;
}
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 82s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; flex: none; }
.mq {
    flex: none;
    width: clamp(18rem, 30vw, 27rem);
    padding-right: clamp(2.5rem, 5vw, 4.5rem);
    display: flex; flex-direction: column; gap: .35rem;
}
.mq__domain {
    font-family: var(--f-display); font-weight: 500; font-size: 1.6rem;
    letter-spacing: -.02em; line-height: 1.1;
}
.mq__desc { font-size: .78rem; text-transform: none; letter-spacing: .02em; line-height: 1.6; }
@keyframes marquee { to { transform: translateX(-25%); } }

.industries { padding-top: clamp(4rem, 9vw, 7rem); }
.industries__title {
    font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em;
    margin-bottom: 1rem;
}
.industries__line { font-size: clamp(.85rem, 1.2vw, 1rem); max-width: none; line-height: 2.1; }
.industries__line span { color: var(--green); margin-inline: .5em; }

/* ------------------------------------------------------------- 3b. apps */
.apps { padding-block: 18vh 6vh; overflow-x: clip; }
.apps__head .display { font-size: clamp(3rem, 9vw, 6rem); }
.apps__head .caption { margin-top: 1rem; }
.app-list { margin-top: clamp(3rem, 7vw, 6rem); display: grid; row-gap: clamp(5rem, 11vw, 9rem); }
.app {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: center;
}
.app__text  { grid-column: 1 / 6; grid-row: 1; }
.app__stage { grid-column: 7 / 13; grid-row: 1; }
.app--flip .app__text  { grid-column: 8 / 13; }
.app--flip .app__stage { grid-column: 1 / 7; }
.app__name {
    font-family: var(--f-display); font-weight: 500;
    font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.03em; line-height: 1;
}
.app__line { margin: .8rem 0 0; }
.app__desc { margin: 1.4rem 0 1.2rem; color: var(--light-2); max-width: 54ch; }
.app .tags { margin-bottom: 1.5rem; }

/* three CSS phones: centre in front, sides tilted behind */
.app__stage { --pw: clamp(150px, 17vw, 250px); }
.phones {
    position: relative;
    height: calc(var(--pw) * 2.17 + 24px);
    display: flex; justify-content: center; align-items: center;
}
.phone-slot { position: absolute; top: 50%; left: 50%; width: var(--pw); margin-left: calc(var(--pw) / -2); will-change: transform; }
.phone-slot--c { z-index: 3; margin-top: calc(var(--pw) * -1.085); }
.phone-slot--l, .phone-slot--r { z-index: 1; width: calc(var(--pw) * .84); margin-left: calc(var(--pw) * -.42); margin-top: calc(var(--pw) * -.91 + 14px); }
.phone-slot--l .phone { translate: calc(var(--pw) * -.62) 0; rotate: -6deg; filter: brightness(.55); }
.phone-slot--r .phone { translate: calc(var(--pw) * .62) 0; rotate: 6deg; filter: brightness(.55); }
.phone {
    position: relative;
    margin: 0;
    padding: 7px;
    border-radius: 38px;
    background: #050907;
    border: 1px solid var(--green-dim);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95), inset 0 0 0 2px #0a120d;
    transition: translate .7s var(--expo), filter .5s var(--pow3);
}
.phone__screen {
    position: relative;
    border-radius: 31px;
    overflow: hidden;
    background: var(--ink-2);
    aspect-ratio: 720 / 1560;
}
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone--island .phone__screen::after {
    content: ''; position: absolute; top: 2.2%; left: 50%; z-index: 2;
    width: 30%; height: 3.6%;
    margin-left: -15%;
    border-radius: 999px;
    background: #000;
}
/* web captures have no status bar: give them one so the island never covers content */
.phone--web .phone__screen { background: #000; }
.phone--web .phone__screen img { position: absolute; left: 0; right: 0; bottom: 0; top: 6.4%; height: 93.6%; }
@media (hover: hover) and (pointer: fine) {
    .app__stage:hover .phone-slot--l .phone { translate: calc(var(--pw) * -.62 - 12px) 0; filter: brightness(.7); }
    .app__stage:hover .phone-slot--r .phone { translate: calc(var(--pw) * .62 + 12px) 0; filter: brightness(.7); }
}

/* ------------------------------------------------------------- 4. services */
.services { padding-block: 22vh 10vh; }
.services__note { margin-top: 1.1rem; }
.svc-list { margin-top: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--hair); }
.svc {
    position: relative;
    border-top: 1px solid var(--hair);
    padding-block: clamp(2.2rem, 4.4vw, 3.6rem);
    overflow: hidden;
}
.svc__line {
    position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(0, 255, 143, .5);
    transform: scaleX(0); transform-origin: left;
    opacity: .9;
}
.svc__ghost {
    position: absolute; right: 3vw; top: 50%;
    transform: translateY(-50%);
    font-family: var(--f-display); font-weight: 300;
    font-size: 9rem; line-height: 1; letter-spacing: -.04em;
    color: var(--green);
    opacity: 0;
    pointer-events: none; white-space: nowrap;
    transition: opacity .8s var(--expo), transform 1.2s var(--expo);
}
.svc__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
}
.svc__title {
    grid-column: 1 / 7;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    font-weight: 500; line-height: 1.02;
    transition: transform .8s var(--expo), color .4s var(--pow3);
}
.svc__body { grid-column: 7 / 12; color: var(--light-2); padding-top: .35rem; }
.svc__body p:first-child { margin-bottom: .9rem; }
@media (hover: hover) and (pointer: fine) {
    .svc:hover .svc__title { transform: translateX(12px); color: var(--green); }
    .svc:hover .svc__ghost { opacity: .05; transform: translateY(-50%) translateX(-1.5vw); }
}

/* ------------------------------------------------------------- 5. ai */
.ai { position: relative; padding-top: 6vh; }
.ai__pin { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 2vh) 6vh; }
.ai__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: var(--col-gap);
    row-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.ai__head { grid-column: 1 / 5; grid-row: 1 / 3; align-self: start; }
.ai__head .display { font-size: clamp(2.8rem, 5.2vw, 5rem); }
.ai__head .caption { margin-top: 1.2rem; max-width: 22ch; }
.ai__diagram { grid-column: 5 / 13; grid-row: 1; }
.ai__caps { grid-column: 7 / 13; grid-row: 2; }

.pipe { width: 100%; height: auto; overflow: visible; }
.pipe__base use, .pipe__base path { fill: none; stroke: var(--green-dim); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pipe__draw {
    fill: none; stroke: var(--green); stroke-width: 1.4; vector-effect: non-scaling-stroke;
    stroke-dasharray: 1; stroke-dashoffset: 0;
}
.js .pipe__draw { stroke-dashoffset: 1; }
.pipe__dots circle { fill: var(--light); }
.pipe__dots { opacity: 0; transition: opacity .6s; }
.ai.is-active .pipe__dots { opacity: .9; }
.node__disc { fill: var(--ink); stroke: var(--green-dim); stroke-width: 1; transition: fill .6s var(--expo), stroke .6s; }
.node__glyph { fill: none; stroke: var(--light-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s var(--expo); }
.node__glyph circle, .node__glyph ellipse { fill: none; }
.node__body { transform-box: fill-box; transform-origin: center; transition: transform .8s var(--expo); }
.node__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; fill: var(--light-2); transition: fill .6s; }
.node.is-on .node__disc { fill: #06140d; stroke: var(--blue); stroke-width: 1.5; }
.node.is-on .node__glyph { stroke: var(--green); }
.node.is-on .node__body { transform: scale(1.15); }
.node.is-on .node__label { fill: var(--green); }
html:not(.js) .node .node__disc { fill: var(--ink-2); }

.cap { max-width: 60ch; }
.cap + .cap { margin-top: 2.5rem; }
.cap__title {
    font-family: var(--f-display); font-weight: 500;
    font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -.02em; line-height: 1.1;
    margin-bottom: .9rem;
}
.cap p { color: var(--light-2); font-size: 1rem; }
.cap .tags { margin-top: .4rem; }

.ai__lists {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding-block: 14vh 8vh;
}
.dash-col:first-child { grid-column: 1 / 6; }
.dash-col:last-child  { grid-column: 7 / 13; }
.dash-col__title {
    font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; letter-spacing: -.015em;
    margin-bottom: 1.6rem;
}
.dash-list li {
    position: relative; padding: .7rem 0 .7rem 28px;
    color: var(--light-2); font-size: 1rem; line-height: 1.55;
    border-bottom: 1px solid rgba(11, 90, 56, .18);
}
.dash-list li::before {
    content: ''; position: absolute; left: 0; top: 1.48rem;
    width: 10px; height: 1px; background: var(--green-dim);
}

/* ------------------------------------------------------------- 6. about */
.about { padding-top: 16vh; padding-bottom: 4vh; }
.about__grid {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap); align-items: start;
}
.about__head { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--nav-h) + 4vh); }
.about__head .display { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.about__text { grid-column: 6 / 13; max-width: 68ch; }
.about__text p { color: var(--light-2); }
.about__text .pill { margin-top: 1.2rem; }


/* ------------------------------------------------------------- 7. faq */
.faq { padding-block: 22vh 10vh; }
.faq__grid {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
}
.faq__head { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 4vh); }
.faq__head .display { font-size: clamp(2.8rem, 5.4vw, 5rem); }
.faq__head .caption { margin-top: 1.2rem; max-width: 26ch; }
.faq__list { grid-column: 6 / 13; border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.55rem 0;
    background: none; border: 0; cursor: pointer;
    text-align: left;
}
.faq__q {
    font-family: var(--f-display); font-weight: 500;
    font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.3;
    transition: transform .6s var(--expo), color .3s;
}
.faq-trigger:hover .faq__q { transform: translateX(6px); color: var(--green); }
.faq__item.is-open .faq__q { color: var(--green); }
.faq__x { position: relative; flex: none; width: 18px; height: 18px; transition: transform .5s var(--expo); }
.faq__x i { position: absolute; background: var(--green); }
.faq__x i:first-child { left: 0; right: 0; top: 50%; height: 1px; }
.faq__x i:last-child  { top: 0; bottom: 0; left: 50%; width: 1px; }
.faq__item.is-open .faq__x { transform: rotate(135deg); }

.faq-answer {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .5s var(--expo);
}
.faq-answer__clip { overflow: hidden; min-height: 0; }
.faq-answer__body { padding: 0 2.5rem 1.7rem 0; color: var(--light-2); max-width: 64ch; }
.js .faq-answer { grid-template-rows: 0fr; }
.js .faq-answer__clip { visibility: hidden; transition: visibility 0s linear .5s; }
.js .faq__item.is-open .faq-answer { grid-template-rows: 1fr; }
.js .faq__item.is-open .faq-answer__clip { visibility: visible; transition: none; }

.faq__more { margin-top: 2.6rem; color: var(--light-2); }
.faq__more .tlink { margin-left: .3em; }

/* ------------------------------------------------------------- 8. contact */
.contact { padding-block: 14vh 18vh; }
.contact .display { font-size: clamp(3rem, 8vw, 6rem); }
.contact__lede { margin-top: 1.6rem; color: var(--light-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 48ch; }
.contact__grid {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    margin-top: clamp(3.5rem, 7vw, 6rem);
}
.contact__info { grid-column: 1 / 6; }
.contact__form { grid-column: 7 / 13; position: relative; }

.contact__email {
    position: relative; display: inline-block;
    font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -.015em;
    padding-bottom: 4px;
    word-break: break-all;
}
.contact__email::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--green); transform-origin: left;
    transition: transform 1.1s var(--expo);
}
.js .contact__email::after { transform: scaleX(0); }
.js .contact__email.is-drawn::after { transform: scaleX(1); }
.contact__email:hover::after { transform: scaleX(1); }

.contact__next {
    font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em;
    margin: 3.2rem 0 1.2rem;
}
.steps { position: relative; padding-left: 30px; }
.steps__rail { position: absolute; left: 4px; top: 1.15rem; bottom: 1.15rem; width: 1px; background: var(--green-dim); }
.steps__rail span { position: absolute; inset: 0; background: var(--green); transform-origin: top; }
.js .steps__rail span { transform: scaleY(0); }
.step { position: relative; padding: .55rem 0; color: var(--light-2); }
.step__dot {
    position: absolute; left: -30px; top: 1rem;
    width: 9px; height: 9px; border-radius: 50%;
    border: 1px solid var(--blue);
    background: var(--blue);
    transition: background-color .6s var(--expo);
}
.js .step__dot { background: var(--ink); }
.js .step.is-filled .step__dot { background: var(--blue); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.field { position: relative; margin-bottom: 2.1rem; }
.field label {
    display: block;
    font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--light-2);
    margin-bottom: .35rem;
    transition: color .3s;
}
.field input, .field textarea {
    display: block; width: 100%;
    background: transparent;
    border: 0; border-bottom: 1px solid rgba(11, 90, 56, .6);
    border-radius: 0;
    color: var(--light);
    font-family: var(--f-body); font-size: 1.05rem; line-height: 1.5;
    padding: .55rem 0 .75rem;
    transition: border-color .4s;
    -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(127, 181, 151, .38); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--light); }
.field:focus-within label { color: var(--green); }
.field__ink {
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--green);
    transform: scaleX(0); transform-origin: left;
    transition: transform .7s var(--expo);
    pointer-events: none;
}
.field input:focus ~ .field__ink, .field textarea:focus ~ .field__ink { transform: scaleX(1); }
.field input:-webkit-autofill {
    -webkit-text-fill-color: var(--light);
    -webkit-box-shadow: 0 0 0 1000px var(--ink) inset;
    caret-color: var(--light);
}
.form-foot { display: flex; align-items: center; gap: 1.6rem 2rem; flex-wrap: wrap; margin-top: .5rem; }
.form-alt { margin: 0; color: var(--light-2); font-size: .95rem; }
.form-legal {
    flex: 0 0 100%; order: 1;
    margin: -.4rem 0 0; max-width: 60ch;
    font-size: .72rem; line-height: 1.7; letter-spacing: .08em;
    color: var(--light-2);
}
.form-legal a { color: var(--light); text-decoration: underline; text-decoration-color: var(--green-dim); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.form-legal a:hover { color: var(--green); text-decoration-color: var(--green); }

/* reCAPTCHA v3 badge hidden; the required disclosure sits under the submit button */
.grecaptcha-badge { visibility: hidden; }
.form-error {
    border-top: 1px solid var(--green-dim);
    padding-top: 1rem;
    margin: 0 0 2rem;
    color: var(--light);
}
.sent { padding-block: 1rem; }
.sent .display-s { margin-bottom: 1.2rem; }
.sent p { color: var(--light-2); }

/* ------------------------------------------------------------- 9. footer */
.foot { padding-top: 10vh; border-top: 1px solid var(--hair); overflow: hidden; }
.foot__mark { padding-inline: var(--gutter); }
.foot__mark img { height: 40px; width: auto; margin-bottom: 1.5rem; }
.foot__word {
    margin: 0;
    font-weight: 800;
    font-size: clamp(4rem, 14vw, 13rem);
    line-height: .82;
    letter-spacing: -.055em;
    color: var(--green);
    opacity: .16;
    white-space: nowrap;
    max-width: none;
    font-variation-settings: 'opsz' 96;
}
.js .foot__word { opacity: .07; }
.foot__cols {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.foot__cols > :nth-child(1) { grid-column: 1 / 6; }
.foot__cols > :nth-child(2) { grid-column: 7 / 10; }
.foot__cols > :nth-child(3) { grid-column: 10 / 13; }
.foot__desc { color: var(--light-2); max-width: 40ch; }
.foot__h { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--light-2); margin-bottom: .9rem; }
.foot__links li { margin-bottom: .35rem; }
.foot__links a { color: var(--light); transition: color .3s; }
.foot__links a:hover { color: var(--green); }
.foot__base {
    position: relative;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding-block: 1.4rem 2rem;
    font-size: .88rem; color: var(--light-2);
}
.foot__base::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--hair); }
.foot__base p { margin: 0; }


/* ------------------------------------------------------------- motion gates
   Only when JS is running and motion is welcome. Without JS, or with reduced
   motion, every word and row is already burnished. */
@media (prefers-reduced-motion: no-preference) {
    .js .hero__title { visibility: hidden; }
    .js .hero__title.is-live { visibility: visible; }
    .js .mw { color: var(--dim); }
    .js .manifesto__note { opacity: 0; }
    .js .svc { opacity: .25; }
    .js .dash-list li { color: rgba(127, 181, 151, .55); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
    .marquee__set[aria-hidden] { display: none; }
    .marquee__set { flex-wrap: wrap; row-gap: 1.6rem; padding-inline: var(--gutter); }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .js .pipe__draw { stroke-dashoffset: 0; }
    .pipe__dots { display: none; }
    .js .contact__email::after, .js .steps__rail span { transform: none; }
    .js .step__dot { background: var(--blue); }
    .js .foot__word { opacity: .16; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .ai__head { grid-column: 1 / 13; grid-row: 1; margin-bottom: 1rem; }
    .ai__diagram { grid-column: 1 / 13; grid-row: 2; }
    .ai__caps { grid-column: 3 / 13; grid-row: 3; }
    .ai__grid { grid-template-rows: auto auto auto; }
    .ai__head .caption { max-width: none; }
}

@media (max-width: 899px) {
    :root { --nav-h: 64px; }
    .nav__links { display: none; }
    .nav__cta { display: none; }
    .nav__burger { display: block; }
    .nav__logo img { height: 30px; }

    .hero__content { grid-column: 1 / -1; }
    .hero__wrap { align-items: center; }
    .hero__actions { gap: 1.5rem; }
    .hero__cue { bottom: 20px; }
    .hero__cue-line { height: 44px; }

    .manifesto__text { grid-column: 1 / -1; }
    .manifesto__note { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 2.2rem; }


    .svc__title, .svc__body { grid-column: 1 / -1; }
    .svc__body { padding-top: 1rem; }
    .svc__ghost { display: none; }

    .ai__caps { grid-column: 1 / -1; }
    .app__text, .app--flip .app__text { grid-column: 1 / -1; grid-row: 2; }
    .app__stage, .app--flip .app__stage { grid-column: 1 / -1; grid-row: 1; margin-bottom: 2.4rem; --pw: min(42vw, 190px); }
    .node__label { font-size: 22px; }
    .ai__diagram { margin-inline: -8px; }
    .dash-col:first-child, .dash-col:last-child { grid-column: 1 / -1; }
    .dash-col + .dash-col { margin-top: 3.5rem; }

    .about__head, .about__text { grid-column: 1 / -1; }
    .about__head { position: static; margin-bottom: 2.4rem; }


    .faq__head { grid-column: 1 / -1; position: static; margin-bottom: 3rem; }
    .faq__list { grid-column: 1 / -1; }
    .faq__q { font-size: 1.12rem; }

    .contact__info, .contact__form { grid-column: 1 / -1; }
    .contact__form { margin-top: 3.5rem; }
    .field-row { grid-template-columns: 1fr; }

    .foot__cols > :nth-child(n) { grid-column: 1 / -1; }
    .foot__cols > * + * { margin-top: 2.2rem; }
}

@media (max-width: 759px) {
    .carousel { --card-w: 78vw; }
    .car__ring { top: 40px; }
    .car--on .car__stage { height: calc(var(--card-w) * 9 / 14 + 30px + 80px); }
    .car__ticks { gap: 0; }
    .car__tick { width: 24px; height: 24px; }
    .car--on .car__controls { gap: .6rem; }
    .car__btn { letter-spacing: .06em; }
}

/* AI capabilities stacked for the pinned crossfade (class set by site.js) */
.ai--pinned .ai__caps { display: grid; }
.ai--pinned .cap { grid-area: 1 / 1; margin: 0; }

/* screenshots fade in once fetched (site.js) */
.js .frame__view img { opacity: 0; transition: opacity 1.2s var(--pow3); }
.js .frame.is-loaded .frame__view img { opacity: 1; }

/* short, visible section intros that say plainly what each stylised heading covers */
.section-intro { margin: .9rem 0 0; max-width: 60ch; color: var(--light-2); font-size: 1rem; }

/* FAQ group labels inside the single accordion */
.faq__cat { margin: 2.6rem 0 .4rem; color: var(--green); }
.faq__list > .faq__cat:first-child { margin-top: 1.4rem; }

@media (max-width: 459px) {
    .car__btn-label { display: none; }
    .car__btn { padding: .6rem .5rem; font-size: 1.1rem; }
}

/* ==================================================================
   Page index: the rail (>=1100px) and the bottom sheet (<1100px)
   ================================================================== */
.rail, .sheet-btn, .sheet, .jumpline { display: none; }

@media (min-width: 1100px) {
    .js .rail {
        --step: 40px;
        --fill: 0;
        display: block;
        position: fixed; right: 6px; top: 50%; z-index: 60;
        width: 40px;
        transform: translateY(-50%);
        padding: 18px 0 14px;
        border-radius: 12px;
        border: 1px solid transparent;
        opacity: 0; visibility: hidden;
        transition: opacity .5s var(--pow3), visibility 0s linear .5s, width .45s var(--expo), background-color .45s var(--pow3), border-color .45s var(--pow3);
        overflow: hidden;
    }
    .js .rail.is-shown { opacity: 1; visibility: visible; transition: opacity .5s var(--pow3), visibility 0s, width .45s var(--expo), background-color .45s var(--pow3), border-color .45s var(--pow3); }
    .menu-open .rail { opacity: 0 !important; visibility: hidden !important; }
    .js .rail:hover, .js .rail:focus-within {
        width: 220px;
        background: rgba(3, 5, 4, .86);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-color: rgba(11, 90, 56, .7);
    }
    .rail::before, .rail::after {
        content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
        opacity: 0; transition: opacity .45s var(--pow3);
    }
    .rail::before { background-image: var(--noise); background-size: 200px; }
    .rail::after { background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 255, 143, .05) 2px 3px); }
    .rail:hover::before, .rail:focus-within::before { opacity: .04; }
    .rail:hover::after, .rail:focus-within::after { opacity: 1; }
    /* the rail line runs from the first node to the last, at a fixed x on the right */
    .rail__track {
        position: absolute; right: 19px; top: calc(18px + var(--step) / 2);
        height: calc(var(--step) * 7);
        width: 1px; background: var(--green-dim);
    }
    .rail__fill {
        position: absolute; left: 0; top: 0; width: 1px; height: 100%;
        background: var(--green);
        box-shadow: 0 0 6px rgba(0, 255, 143, .6);
        transform-origin: top; transform: scaleY(var(--fill));
    }
    .rail__head {
        position: absolute; left: 50%; top: 0;
        font-family: var(--f-mono); font-size: 11px; line-height: 1;
        color: var(--light);
        text-shadow: 0 0 8px rgba(0, 255, 143, .9);
        transform: translate(-50%, calc(var(--fill) * var(--step) * 7 - 50%));
        pointer-events: none;
    }
    .rail__list { position: relative; list-style: none; margin: 0; padding: 0; }
    .rail__link {
        position: relative;
        display: flex; align-items: center; justify-content: flex-end;
        height: var(--step);
        padding-right: 13px;
        color: var(--light-2);
        white-space: nowrap;
        outline-offset: -3px;
    }
    .rail__node {
        position: relative; flex: none;
        width: 13px; height: 13px;
        display: grid; place-items: center;
    }
    .rail__node::before {
        content: '';
        width: 6px; height: 1px;
        background: var(--green-dim);
        transition: width .35s var(--expo), height .35s var(--expo), background-color .3s, box-shadow .3s;
    }
    .rail__link[aria-current="location"] .rail__node::before {
        width: 10px; height: 10px;
        background: var(--green);
        box-shadow: 0 2px 8px rgba(0, 255, 143, .55);
    }
    .rail__link.is-glitch .rail__node { transform: translateX(1px); }
    .rail__label {
        position: relative;
        margin-right: 14px;
        font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
        opacity: 0; transform: translateX(8px);
        transition: opacity .3s var(--pow3), transform .45s var(--expo), color .25s;
    }
    .rail__label::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
        background: var(--green); transform: scaleX(0); transform-origin: left;
        transition: transform .45s var(--expo);
    }
    .rail:hover .rail__label, .rail:focus-within .rail__label { opacity: 1; transform: none; }
    .rail__idx { color: var(--green-dim); }
    .rail__link[aria-current="location"] .rail__label { color: var(--light); }
    .rail__link:hover .rail__label, .rail__link:focus-visible .rail__label { color: var(--green); }
    .rail__link:hover .rail__label::after, .rail__link:focus-visible .rail__label::after { transform: scaleX(1); }
    .rail__name .ch.is-scrambling::after { font-size: 1em; color: var(--green); }
    .rail__readout {
        position: relative;
        display: flex; flex-direction: column; align-items: flex-end;
        margin-top: 10px; padding-right: 6px;
        font-family: var(--f-mono);
    }
    .rail__sec {
        font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--light-2);
        opacity: 0; transition: opacity .3s;
        white-space: nowrap;
    }
    .rail:hover .rail__sec, .rail:focus-within .rail__sec { opacity: 1; }
    .rail__pct { font-size: .62rem; letter-spacing: .04em; color: var(--green); font-variant-numeric: tabular-nums; }
}

@media (max-width: 1099px) {
    .js .sheet-btn {
        display: grid; place-items: center;
        position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
        width: 52px; height: 52px; padding: 0;
        border: 0; border-radius: 50%;
        background: none; cursor: pointer;
        opacity: 0; visibility: hidden; transform: translateY(12px);
        transition: opacity .4s var(--pow3), transform .5s var(--expo), visibility 0s linear .4s;
    }
    .js .sheet-btn.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--pow3), transform .5s var(--expo), visibility 0s; }
    .menu-open .sheet-btn { opacity: 0 !important; visibility: hidden !important; }
    .sheet-btn::before {
        content: ''; position: absolute; inset: 2px; border-radius: 50%;
        background: var(--ink-2); border: 1px solid var(--green-dim);
        box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9);
    }
    .sheet-btn__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
    .sheet-btn__ring circle { fill: none; stroke-width: 1.5; }
    .sheet-btn__track { stroke: rgba(11, 90, 56, .5); }
    .sheet-btn__prog { stroke: var(--green); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--fill, 0)); stroke-linecap: round; }
    .sheet-btn__icon { position: relative; width: 20px; height: 20px; fill: none; stroke: var(--light); stroke-width: 1.5; stroke-linecap: round; }

    .js .sheet:not([hidden]) { display: block; }
    .sheet { position: fixed; inset: 0; z-index: 90; }
    .sheet__backdrop {
        position: absolute; inset: 0;
        background: rgba(3, 5, 4, .6);
        opacity: 0; transition: opacity .45s var(--pow3);
    }
    .sheet__panel {
        position: absolute; left: 0; right: 0; bottom: 0;
        max-height: 85vh; overflow-y: auto;
        padding: 1.2rem var(--gutter) calc(1.6rem + env(safe-area-inset-bottom));
        background: var(--ink);
        border-top: 1px solid var(--green-dim);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform .45s var(--expo);
    }
    .sheet__panel::before {
        content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
        background-image: var(--noise); background-size: 220px; opacity: .06;
    }
    .sheet.is-open .sheet__backdrop { opacity: 1; }
    .sheet.is-open .sheet__panel { transform: none; }
    .sheet__head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
    .sheet__x { position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
    .sheet__x i { position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: var(--light); }
    .sheet__x i:first-child { transform: rotate(45deg); }
    .sheet__x i:last-child { transform: rotate(-45deg); }
    .sheet__list { position: relative; list-style: none; margin: 0; padding: 0; }
    .sheet__link {
        display: flex; align-items: baseline; gap: 1rem;
        padding: .7rem 0;
        border-bottom: 1px solid var(--hair);
        font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15;
        color: var(--light);
    }
    .sheet__idx { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; color: var(--light-2); min-width: 2.2em; }
    .sheet__link[aria-current="location"] { color: var(--green); }
    .sheet__link[aria-current="location"] .sheet__idx { color: var(--green); }
}

.js .jumpline {
    display: block;
    position: fixed; left: 0; right: 0; top: 0; z-index: 95;
    height: 2px; pointer-events: none;
    background: var(--green);
    box-shadow: 0 0 12px rgba(0, 255, 143, .8);
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .js .jumpline { display: none; }
}
