/*
  Level09. One page, dark, image-led.

  Type does the arguing; imagery sets temperature. Every image is a full-bleed
  band behind real content rather than decoration in its own section, so the page
  never stops to admire itself.

  Type: Archivo (variable, wght+wdth) for display — set slightly extended so the
  headlines read architectural at size. Geist for body, Geist Mono for labels.
*/

@font-face {
    font-family: "Archivo";
    src: url("/static/fonts/site/archivo-var.woff2") format("woff2");
    font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
    font-family: "Geist";
    src: url("/static/fonts/site/geist-var.woff2") format("woff2");
    font-weight: 100 900; font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("/static/fonts/site/geist-mono-var.woff2") format("woff2");
    font-weight: 100 900; font-display: swap;
}

:root {
    --ink: #05070a;
    --ink-2: #0a0e13;
    --paper: #f3f1ec;
    --dim: #8d96a1;
    --line: rgba(255,255,255,.13);
    --accent: #ff6a3d;
    --live: #7de3b0;
    --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --body: "Geist", "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --gut: max(22px, 4vw);
    --ease: cubic-bezier(.4,0,.2,1);
}

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

body.site {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.6;
    letter-spacing: -.005em;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.cinematic-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 46%, #101923 0, #05070a 42%, #020304 100%);
}

#cinematic-stage {
    display: block;
    width: 100%;
    height: 100%;
}

.cinematic-stage.is-fallback {
    display: none;
}

.crt-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    overflow: hidden;
    pointer-events: none;
    opacity: .3;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(6,10,14,.11) 0,
            rgba(6,10,14,.11) 1px,
            transparent 2px,
            transparent 4px
        );
    mix-blend-mode: soft-light;
}

.crt-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at center,
            transparent 52%,
            rgba(0,0,0,.18) 76%,
            rgba(0,0,0,.56) 118%
        ),
        linear-gradient(
            90deg,
            rgba(120,190,255,.018),
            transparent 28% 72%,
            rgba(255,102,61,.018)
        );
    box-shadow:
        inset 0 0 38px rgba(135,205,255,.025),
        inset 0 0 110px rgba(0,0,0,.28);
}

.crt-overlay::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(181,224,255,.035);
    border-radius: 1.2% / .8%;
}

.signal-status,
.signal-telemetry {
    position: fixed;
    z-index: 58;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    pointer-events: none;
    color: rgba(197,221,239,.58);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 450;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.signal-status {
    left: var(--gut);
}

.signal-status b,
.signal-telemetry b {
    color: rgba(225,240,251,.88);
    font: inherit;
}

.signal-status i {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, #429eff, var(--accent));
    box-shadow: 0 0 8px rgba(66,158,255,.55);
}

.signal-status [data-signal-state] {
    color: var(--live);
}

.signal-telemetry {
    right: var(--gut);
    gap: 15px;
}

.signal-reticle {
    position: fixed;
    z-index: 57;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(115,192,255,.42);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform-origin: center;
    transition: opacity .24s var(--ease);
    mix-blend-mode: screen;
}

.signal-reticle::before,
.signal-reticle::after {
    content: "";
    position: absolute;
    background: rgba(119,194,255,.45);
}

.signal-reticle::before {
    top: 50%;
    left: -6px;
    right: -6px;
    height: 1px;
}

.signal-reticle::after {
    top: -6px;
    bottom: -6px;
    left: 50%;
    width: 1px;
}

.signal-reticle i {
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(255,106,61,.6);
    border-radius: 50%;
}

.signal-reticle.is-visible {
    opacity: .72;
}

.is-signal-disabled .signal-status,
.is-signal-disabled .signal-telemetry,
.is-signal-disabled .signal-reticle {
    display: none;
}

.hero,
.stats,
.sec {
    position: relative;
    z-index: 1;
}

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

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- smooth scroll (Lenis) ----------
   Content is visible by default. GSAP hides then reveals it, so a script that
   never loads leaves an ordinary readable page behind. */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Line masks come from SplitText; this keeps descenders from being clipped. */
.split-line { padding-bottom: .08em; }

/* ---------- nav ---------- */

.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px var(--gut);
    background: linear-gradient(to bottom, rgba(5,7,10,.72), rgba(5,7,10,0));
    backdrop-filter: blur(3px);
}

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none;
    font-family: var(--display); font-size: 12.5px; font-weight: 700;
    font-stretch: 108%; letter-spacing: .17em;
}
.brand img { width: 25px; height: 25px; filter: brightness(0) invert(1); }

.nav__links {
    display: flex; gap: clamp(14px, 2vw, 30px);
    font-family: var(--mono); font-size: 10.5px; font-weight: 450;
    letter-spacing: .04em; text-transform: uppercase;
}
.nav__links a { text-decoration: none; color: var(--dim); }
.nav__links a:hover { color: var(--paper); }
.nav__links .nav__menu-cta { display: none; }

.btn {
    display: inline-block; padding: 12px 20px;
    border: 1px solid rgba(255,255,255,.34); text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--mono); font-size: 10.5px; font-weight: 450;
    letter-spacing: .11em; text-transform: uppercase;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:disabled { cursor: wait; opacity: .58; }
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: #fff; color: var(--ink); }

.nav__progress {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, #9fdcff 24%, var(--accent) 76%, transparent);
    box-shadow: 0 0 12px rgba(255,106,61,.42);
    transform: scaleX(0); transform-origin: left center;
}

.nav.is-solid {
    background: rgba(5,7,10,.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- mobile nav ----------
   Below 860px the links become a full-screen panel. The call to action stays in
   the bar at all times, so the one thing a visitor needs never depends on the
   menu opening. */

.nav__burger {
    display: none; position: relative; z-index: 2;
    flex: 0 0 42px; width: 42px; height: 42px; padding: 0;
    background: none; border: 1px solid rgba(255,255,255,.34); cursor: pointer;
}
.nav__burger i {
    position: absolute; left: 11px; width: 18px; height: 1px;
    background: var(--paper);
    transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav__burger i:first-of-type { top: 18px; }
.nav__burger i:last-of-type  { top: 23px; }
.nav__burger[aria-expanded="true"] i:first-of-type { transform: translateY(2.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-of-type  { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav { gap: 12px; }
    .nav,
    .nav.is-solid { backdrop-filter: none; }
    .nav__burger { display: block; }
    .nav__cta { padding: 10px 14px; font-size: 9.5px; letter-spacing: .08em; }

    .nav__links {
        position: fixed; inset: 0; z-index: 1;
        display: flex; flex-direction: column; justify-content: center;
        gap: clamp(18px, 4vh, 34px);
        padding: 0 var(--gut);
        background: rgba(5,7,10,.97);
        backdrop-filter: blur(18px);
        font-family: var(--display); font-size: clamp(1.9rem, 9vw, 2.8rem);
        font-variation-settings: "wght" 600, "wdth" 106;
        letter-spacing: -.02em; text-transform: none;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
    }
    .nav__links a { color: var(--paper); }
    .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 600px) {
    .nav__cta { display: none; }
    .nav__links .nav__menu-cta { display: inline-flex; }
    .nav__links .nav__menu-cta {
        align-self: flex-start;
        padding: 13px 16px;
        color: #fff;
        background: var(--accent);
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: .11em;
        text-transform: uppercase;
    }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }

.hero__fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    transition: opacity .8s var(--ease);
}

.is-stage-ready .hero__fallback {
    opacity: 0;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 12%;
    right: 5%;
    width: min(39vw, 620px);
    aspect-ratio: 1.2;
    border: 1px solid rgba(204,237,255,.17);
    border-radius: 48% 52% 58% 42% / 44% 38% 62% 56%;
    background:
        linear-gradient(145deg, rgba(223,244,255,.07), transparent 34%),
        radial-gradient(circle at 36% 24%, rgba(159,220,255,.10), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        inset -30px -38px 80px rgba(3,7,12,.30),
        0 42px 90px rgba(0,0,0,.20);
    backdrop-filter: blur(4px) saturate(124%);
    transform: rotate(-7deg);
    opacity: 0;
    transition: opacity 1.2s .35s var(--ease);
    pointer-events: none;
}

.is-stage-ready .hero::before {
    opacity: .58;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: -6%;
    bottom: 15%;
    width: 54%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(159,220,255,.42), rgba(255,106,61,.4), transparent);
    box-shadow: 0 0 24px rgba(159,220,255,.22);
    transform: rotate(-4deg);
    pointer-events: none;
}

.hero__scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(to top, rgba(5,7,10,.74) 0%, rgba(5,7,10,.2) 42%, rgba(5,7,10,0) 74%),
        linear-gradient(to right, rgba(5,7,10,.42) 0%, rgba(5,7,10,0) 58%);
}

.hero__inner { position: relative; z-index: 3; padding-bottom: clamp(54px, 8vh, 110px); }

.eyebrow {
    display: flex; align-items: center; gap: 9px; margin: 0 0 20px;
    font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: .13em; text-transform: uppercase; color: var(--dim);
}
.eyebrow i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--live); box-shadow: 0 0 0 3px rgba(125,227,176,.2);
}

/*
  Display type carries its variable axes in custom properties so GSAP can animate
  the width while a line rises out of its mask — the letterforms open up rather
  than just sliding into place. font-variation-settings overrides font-weight, so
  both axes have to be declared here and re-declared on the split lines.
*/
.hero h1, .sec__head h2, .split-line {
    font-variation-settings: "wght" var(--wg), "wdth" var(--wd);
}

.hero h1 {
    margin: 0; max-width: 20ch;
    --wg: 620; --wd: 108;
    font-family: var(--display);
    font-size: clamp(2.6rem, 6.6vw, 6.2rem);
    line-height: .93; letter-spacing: -.028em;
    text-wrap: balance;
}

.hero__sub {
    margin: 26px 0 0; max-width: 54ch;
    font-size: clamp(15px, 1.3vw, 18.5px); line-height: 1.62;
    color: #c7ced6;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- stat strip ---------- */

.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(7,10,14,.94);
    backdrop-filter: blur(18px) saturate(125%);
}
.stats div { padding: 26px var(--gut); border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b {
    display: block; font-family: var(--display);
    font-size: clamp(1.7rem, 2.7vw, 2.6rem); font-weight: 620;
    font-stretch: 108%; letter-spacing: -.028em;
    font-variant-numeric: tabular-nums;
}
.stats span {
    display: block; margin-top: 6px;
    font-family: var(--mono); font-size: 10px; font-weight: 450;
    letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

/* ---------- generic section ---------- */

.sec { padding: clamp(72px, 11vh, 150px) 0; }
.sec--tight { padding: clamp(52px, 7vh, 100px) 0; }

.sec__head { max-width: 44ch; margin-bottom: clamp(34px, 5vh, 64px); }
.sec__head h2 {
    margin: 0;
    --wg: 600; --wd: 106;
    font-family: var(--display);
    font-size: clamp(2rem, 3.7vw, 3.5rem);
    line-height: .98; letter-spacing: -.026em;
    text-wrap: balance;
}
.sec__head p { margin: 20px 0 0; color: #aab3bd; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.62; }

/* ---------- band: image behind content ---------- */

.band { position: relative; overflow: hidden; }
.band__bg {
    /* Oversized so the scroll-driven slide never exposes an edge. GSAP moves it;
       CSS only guarantees the overscan. */
    position: absolute; inset: -16% 0; will-change: transform;
    background-size: cover; background-position: center;
    /* --blur defocuses the busiest frames so the type stays the subject. */
    filter: saturate(.84) blur(var(--blur, 0px));
    opacity: 1;
    transition: opacity .55s var(--ease);
}
.is-band-stage-ready .band__bg { opacity: 0; }
/*
  --scrim is set beside each band's image. It is derived from that frame's mean
  luminance (1 - 29/mean) so every band settles at the same value behind the
  type; the frames themselves range from 72 to 132.
*/
.band__scrim { position: absolute; inset: 0; background: rgba(5,7,10,var(--scrim,.62)); }
.band > .wrap { position: relative; z-index: 2; }



/* ---------- rows ----------
   No cards, no grid of framed boxes. Each entry is an editorial row on a single
   hairline, with an ink field drifting behind it. A row reacts by opening its
   type's width axis and letting the ink find it, not by lighting a rectangle. */

.rows { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }

.row {
    position: relative;
    border-top: 1px solid var(--line);
}

.row::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139,216,255,.58),
        rgba(255,106,61,.72),
        transparent
    );
    filter: drop-shadow(0 0 8px rgba(255,106,61,.42));
    transform: scaleX(.15);
    transition: opacity .35s var(--ease), transform .65s var(--ease);
}

.row:hover::after,
.row:focus-within::after {
    opacity: 1;
    transform: scaleX(1);
}
.rows > .row:last-child { border-bottom: 1px solid var(--line); }
.row > a { text-decoration: none; color: inherit; }

.row > a, .rows--plain > .row {
    display: grid; gap: 4px 30px; align-items: baseline;
    padding: 30px 8px 32px;
}
.row > a {
    grid-template-columns: 58px minmax(0, .8fr) minmax(0, 1.35fr) auto;
    grid-template-areas: "idx name desc go" "idx kind metric go";
}
.rows--plain > .row {
    grid-template-columns: 58px minmax(0, .8fr) minmax(0, 1.35fr);
    grid-template-areas: "idx name desc";
}
.rows--tight > .row > a { padding: 24px 8px 26px; }

.row__idx {
    grid-area: idx;
    font-family: var(--mono); font-size: 11px; font-weight: 450;
    letter-spacing: .06em; color: var(--dim); font-variant-numeric: tabular-nums;
}
.row__name {
    grid-area: name; margin: 0;
    --wg: 620; --wd: 104;
    font-family: var(--display); font-variation-settings: "wght" var(--wg), "wdth" var(--wd);
    font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.05; letter-spacing: -.025em;
    transition: color .4s var(--ease);
}
.row__kind {
    grid-area: kind;
    font-family: var(--mono); font-size: 9.5px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.row__desc { grid-area: desc; margin: 0; color: #a2abb5; font-size: 15px; line-height: 1.55; }
.row__metric {
    grid-area: metric; margin-top: 2px;
    font-family: var(--mono); font-size: 10.5px; font-weight: 450;
    letter-spacing: .04em; color: var(--live);
}
.row__go {
    grid-area: go; align-self: center; white-space: nowrap;
    font-family: var(--mono); font-size: 10px; font-weight: 450;
    letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
    transition: color .4s var(--ease), transform .5s var(--ease);
}
.row__go::after { content: " \2197"; }

.row > a:hover .row__go { color: var(--paper); transform: translateX(5px); }
.row > a:hover .row__desc { color: #cbd2da; }

@media (max-width: 940px) {
    .row > a, .rows--plain > .row {
        grid-template-columns: 44px 1fr;
        grid-template-areas: "idx name" "idx kind" ". desc" ". metric" ". go";
        gap: 6px 18px;
    }
    .row__go { align-self: start; margin-top: 8px; }
}

/* ---------- blackwater windows ---------- */

#operate,
#stack {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5,7,10,.86), rgba(5,7,10,.38) 28%, rgba(5,7,10,.68));
}

#operate::before,
#stack::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5,7,10,.7), transparent 52%),
        repeating-linear-gradient(90deg, transparent 0 12.45%, rgba(255,255,255,.026) 12.5%);
}

#operate > .wrap,
#stack > .wrap {
    position: relative;
    z-index: 1;
}

/* ---------- lineage ----------
   The stack is a lineage, not a table: one continuous line, drawn as you
   arrive, with the work sitting on it. */

.stack-stage {
    position: relative;
}

.lineage { position: relative; z-index: 2; margin-top: clamp(10px, 3vh, 30px); }
.lineage svg { display: block; width: 100%; height: auto; overflow: visible; }

.lineage__path {
    fill: none; stroke: url(#lineage-run); stroke-width: 1.4; stroke-linecap: round;
}
.lineage__node circle { fill: var(--ink); stroke: var(--accent); stroke-width: 1.5; }
.lineage__name {
    fill: var(--paper); font-family: var(--display); font-size: 21px;
    font-variation-settings: "wght" 620, "wdth" 104; letter-spacing: -.02em;
}
.lineage__meta {
    fill: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
}

.core-caption {
    position: absolute;
    z-index: 3;
    top: 43%;
    right: 2%;
    width: min(24vw, 270px);
    margin: 0;
    padding: 14px 0 14px 18px;
    border-left: 1px solid rgba(159,220,255,.35);
    color: #c2cbd4;
    font-size: 12px;
    line-height: 1.5;
    text-shadow: 0 2px 18px rgba(0,0,0,.8);
}

.core-caption span {
    display: block;
    margin-bottom: 5px;
    color: #a7ddfa;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stack-consequences {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.55fr);
    gap: clamp(44px, 8vw, 130px);
    margin-top: clamp(110px, 18vh, 210px);
    padding: clamp(42px, 6vw, 76px) 0 clamp(10px, 3vw, 42px);
    border-top: 1px solid rgba(255,255,255,.28);
}

.stack-consequences__head > p {
    margin: 0 0 18px;
    color: #a7ddfa;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stack-consequences__head h3 {
    max-width: 10ch;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    font-variation-settings: "wght" 590, "wdth" 105;
    font-weight: 590;
    letter-spacing: -.028em;
    line-height: .98;
}

.stack-consequences__list {
    border-top: 1px solid var(--line);
}

.stack-consequences article {
    display: grid;
    grid-template-columns: 42px minmax(180px, .72fr) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 44px);
    align-items: baseline;
    padding: 27px 0 30px;
    border-bottom: 1px solid var(--line);
}

.stack-consequences article > span {
    color: var(--dim);
    font-family: var(--mono);
    font-size: 10px;
}

.stack-consequences article h4 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.25rem, 1.9vw, 1.75rem);
    font-variation-settings: "wght" 610, "wdth" 103;
    font-weight: 610;
    letter-spacing: -.02em;
    line-height: 1.05;
}

.stack-consequences article p {
    margin: 0;
    color: #aab3bd;
    font-size: 14px;
    line-height: 1.6;
}

.stack-repos {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    padding-top: 22px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stack-repos span {
    margin-right: auto;
    color: var(--dim);
}

.stack-repos a {
    color: #c7d1dc;
    text-decoration: none;
}

.stack-repos a:hover {
    color: var(--paper);
}

/* ---------- marks ---------- */

.marks { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3.4vw, 50px); }
.marks img {
    height: clamp(20px, 2.1vw, 28px); width: auto;
    filter: brightness(0) invert(1); opacity: .5;
    transition: opacity .4s var(--ease);
}
.marks .is-stacked img { height: clamp(32px, 3.4vw, 44px); }
.marks img:hover { opacity: 1; }

/* ---------- founder ---------- */

.founder { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.founder p { color: #b9c0c8; }
@media (max-width: 880px) { .founder { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */

.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(42px, 7vw, 110px); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* Any display rule beats the UA stylesheet's [hidden] { display: none }, so the
   hidden attribute silently stops working on styled elements. This restores it. */
[hidden] { display: none !important; }

.contact-form {
    display: grid;
    gap: 18px;
    max-width: 680px;
}

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

.contact-form label {
    display: grid;
    gap: 7px;
}

.contact-form label > span {
    color: rgba(214,230,241,.72);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(210,232,247,.22);
    border-radius: 0;
    outline: 0;
    background: rgba(5,9,13,.54);
    color: var(--paper);
    font: 400 15px/1.45 var(--body);
    transition:
        border-color .25s var(--ease),
        background .25s var(--ease),
        box-shadow .25s var(--ease);
}

.contact-form input,
.contact-form select {
    min-height: 50px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 142px;
    padding: 13px 14px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(159,220,255,.7);
    background: rgba(7,12,18,.76);
    box-shadow:
        0 0 0 1px rgba(80,167,255,.14),
        inset 0 0 32px rgba(80,167,255,.035);
}

.field-error {
    display: none;
    margin-top: 7px;
    font-family: var(--mono); font-size: 10.5px; font-style: normal;
    letter-spacing: .02em; color: #ff8a63;
}
.field-error.is-shown { display: block; }

.contact-form label.is-invalid input,
.contact-form label.is-invalid select,
.contact-form label.is-invalid textarea {
    border-color: #ff8a63;
}

.contact-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__submit {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-form__submit p {
    margin: 0;
    color: #aab3bd;
    font-size: 12px;
    line-height: 1.45;
}

.contact-form__submit p.is-success {
    color: var(--live);
}

.cf-turnstile {
    min-height: 65px;
}

/* ---------- contact confirmation ----------
   Takes the form's place so the outcome is unmistakable. A cleared form and a
   small green line beside the button read as failure, which is what the earlier
   version did. */

.contact-done {
    border-top: 1px solid var(--line);
    padding-top: 30px;
    outline: none;
}

.contact-done__mark {
    display: grid; place-items: center;
    width: 38px; height: 38px; margin-bottom: 20px;
    border: 1px solid var(--live); border-radius: 50%;
}
.contact-done__mark::before {
    content: ""; width: 11px; height: 6px; margin-top: -3px;
    border-left: 1.5px solid var(--live); border-bottom: 1.5px solid var(--live);
    transform: rotate(-45deg);
}

.contact-done h3 {
    margin: 0;
    --wg: 620; --wd: 106;
    font-family: var(--display); font-variation-settings: "wght" var(--wg), "wdth" var(--wd);
    font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -.025em;
}

.contact-done p { margin: 14px 0 0; color: #b9c0c8; font-size: 15px; line-height: 1.6; }

.contact-done__meta {
    font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
    color: var(--dim);
}
.contact-done__meta b { color: #b9c0c8; font-weight: 450; }

.contact-done .btn { margin-top: 26px; }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; }
.meta h4 {
    margin: 0 0 10px; font-family: var(--mono); font-size: 9.5px; font-weight: 500;
    letter-spacing: .13em; text-transform: uppercase; color: var(--dim);
}
.meta p, .meta address { margin: 0; font-style: normal; font-size: 14px; line-height: 1.65; color: #b9c0c8; }
.meta a { text-decoration: none; border-bottom: 1px solid transparent; }
.meta a:hover { border-bottom-color: currentColor; color: var(--paper); }

#contact::before {
    content: "";
    position: absolute;
    z-index: 1;
    right: -8%;
    bottom: 12%;
    width: 62%;
    height: 18%;
    border-top: 1px solid rgba(180,225,255,.22);
    border-radius: 50% 50% 0 0;
    background: linear-gradient(180deg, rgba(180,225,255,.06), transparent);
    box-shadow: inset 0 18px 50px rgba(150,215,255,.025);
    backdrop-filter: blur(3px);
    transform: rotate(-3deg);
    pointer-events: none;
}

.foot {
    border-top: 1px solid var(--line); padding: 26px 0; margin-top: clamp(48px, 7vh, 90px);
    font-family: var(--mono); font-size: 10px; font-weight: 450;
    letter-spacing: .06em; color: var(--dim);
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}

.site :focus-visible {
    outline: 2px solid #b9e7ff;
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .signal-telemetry,
    .signal-reticle {
        display: none;
    }

    .signal-status {
        right: var(--gut);
        bottom: 12px;
        justify-content: center;
        opacity: .72;
    }

    .crt-overlay {
        opacity: .18;
    }

    .hero::before {
        top: 19%;
        right: -25%;
        width: 78vw;
        opacity: .65;
        backdrop-filter: blur(2px) saturate(115%);
    }

    .hero::after {
        right: -18%;
        bottom: 24%;
        width: 78%;
    }

    .core-caption {
        display: none;
    }

    .stack-consequences {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-top: 90px;
    }

    .stack-consequences__head h3 {
        max-width: 12ch;
    }

    .stack-consequences article {
        grid-template-columns: 34px 1fr;
        gap: 7px 14px;
    }

    .stack-consequences article p {
        grid-column: 2;
    }

    .stack-repos {
        grid-column: 1;
        gap: 12px 18px;
    }

    .stack-repos span {
        flex-basis: 100%;
    }

    #operate,
    #stack {
        background: linear-gradient(180deg, rgba(5,7,10,.9), rgba(5,7,10,.58));
    }

    #operate::before,
    #stack::before {
        background: linear-gradient(90deg, rgba(5,7,10,.74), transparent);
    }

    #contact::before {
        width: 92%;
        height: 12%;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form__submit .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-stage {
        position: absolute;
        height: 100svh;
    }

    .hero::before,
    .hero::after,
    .hero__fallback,
    .band__bg,
    .row::after {
        transition: none;
    }

    .is-band-stage-ready .band__bg {
        opacity: 1;
    }

    .signal-reticle {
        display: none;
    }

    .crt-overlay {
        opacity: .16;
    }
}
