/* ==========================================================================
   Strive Haus — site.css
   The landing page and /work. Dark-only, built like a title sequence: the
   work is the image, type is condensed and loud, everything else is a
   hairline, a timecode or a slate.

   Fonts: Archivo (variable width + weight) for everything, IBM Plex Mono for
   labels, timecodes and metadata. One accent: the tally-light red.

   /sidehoe and the 404 page still load the previous home.css.
   ========================================================================== */

:root {
    --bg: #050505;
    --bg-2: #0a0a0a;
    --panel: #111111;
    --panel-2: #181818;
    --ink: #f3f0e8;
    --ink-2: #a8a49b;
    --ink-3: #5f5c56;
    --line: rgba(243, 240, 232, 0.12);
    --line-2: rgba(243, 240, 232, 0.24);
    --rec: #ff4421;
    --flame: linear-gradient(90deg, #ffffff 0%, #ffe9b0 22%, #ffaa00 48%, #ff6a00 74%, #ff4500 100%);

    --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --gutter: clamp(16px, 3.2vw, 48px);
    --max: 1400px;
    --nav-h: 64px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--rec); color: var(--bg); }

:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Primitives ---------- */

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.mono {
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.label-dim { color: var(--ink-3); }

.display {
    margin-top: 18px;
    font-size: clamp(2.75rem, 6.4vw, 6rem);
    font-weight: 800;
    font-stretch: 70%;
    line-height: 0.88;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(48px, 6vw, 80px);
}
.section-aside {
    max-width: 34ch;
    color: var(--ink-2);
    font-size: 15px;
}

.rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rec);
    box-shadow: 0 0 12px rgba(255, 68, 33, 0.7);
    animation: rec-blink 1.6s steps(1) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }

.yc-mark,
.yc-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f26625;
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1;
    border-radius: 3px;
}
.yc-mark { width: 17px; height: 17px; font-size: 12px; letter-spacing: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: #fff; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
    background: rgba(5, 5, 5, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    font-size: 15px;
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-brand img { width: 22px; height: 22px; object-fit: contain; }

.nav-rec {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink-2);
}
.nav-timecode { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 11ch; }

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    font-size: 14px;
}
.nav-links a { color: var(--ink-2); transition: color 0.2s ease; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .nav-cta {
    height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 100px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 500;
    transition: transform 0.2s var(--ease), background 0.2s ease;
}
.nav-links .nav-cta:hover { color: var(--bg); background: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    max-height: 1180px;
    overflow: hidden;
    background:
        radial-gradient(60% 40% at 50% 52%, rgba(255, 106, 0, 0.07), transparent 70%),
        var(--bg);
}

.hero-reel { position: absolute; inset: 0; }

.hero-frame {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: calc(var(--nav-h) + 20px) var(--gutter) clamp(20px, 3vw, 36px);
    pointer-events: none;
}
.hero-frame a { pointer-events: auto; }

.hero-kicker {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.hero-kicker-sep { color: var(--ink-3); margin: 0 6px; }

.hero-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 14px 0 0;
    font-size: clamp(3.25rem, 9.6vw, 11rem);
    font-weight: 800;
    font-stretch: 66%;
    line-height: 0.84;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}
.hero-line { display: block; }
.hero-line-b { align-self: flex-end; text-align: right; }
.hero-title em {
    font-style: italic;
    font-weight: 700;
    color: var(--rec);
}

.hero-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: clamp(20px, 3vw, 32px);
}
.hero-sub {
    max-width: 40ch;
    font-size: 15px;
    color: var(--ink-2);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* The reel (reel.js builds the tiles) */
.reel-band {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.reel-band.is-ready { opacity: 1; }
.reel-tile {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
}
.reel-slice {
    position: absolute;
    top: 0;
    overflow: hidden;
    background: var(--panel);
}
.reel-slice.is-first { border-radius: 8px 0 0 8px; }
.reel-slice.is-last { border-radius: 0 8px 8px 0; }
.reel-slice img {
    position: absolute;
    top: 0;
    max-width: none;
    object-fit: cover;
    user-select: none;
}

/* ---------- Slate (numbers) ---------- */

.slate {
    padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 8vw, 120px);
    border-top: 1px solid var(--line);
}
.slate-head {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}
.slate-head h2 { margin: 0; }

.slate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.slate-cell {
    padding: 22px 20px 26px;
    border-left: 1px solid var(--line);
}
.slate-cell:first-child { border-left: 0; padding-left: 0; }
.slate-cell dt {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.slate-num {
    margin-top: clamp(28px, 4vw, 56px);
    font-size: clamp(3.5rem, 8.4vw, 8.75rem);
    font-weight: 800;
    font-stretch: 62%;
    line-height: 0.82;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.slate-num small {
    margin-left: 0.08em;
    font-size: 0.32em;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-2);
}

.slate-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding-top: 32px;
}
.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 44px;
}
.logo {
    filter: grayscale(100%) invert(1);
    opacity: 0.5;
    transition: opacity 0.25s ease;
}
.logo-row a:hover .logo,
.logo:hover { opacity: 0.95; }
.logo-pax { height: 44px; width: auto; }
.logo-certus { height: 30px; width: auto; }
.logo-helium { height: 17px; width: auto; }
.logo-forum { display: flex; align-items: center; gap: 7px; }
.logo-forum img { height: 21px; width: auto; }
.logo-forum span { font-weight: 600; font-size: 1.0625rem; color: #4880F7; line-height: 1; }
/* ships white, so it skips the invert */
.logo-maywood { height: 22px; width: auto; filter: grayscale(100%); }

/* ---------- Statement ---------- */

.statement {
    padding: clamp(96px, 12vw, 180px) 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
.statement-text {
    max-width: 28ch;
    margin-top: 28px;
    font-size: clamp(2rem, 4.6vw, 4.5rem);
    font-weight: 500;
    font-stretch: 88%;
    line-height: 1.04;
    letter-spacing: -0.025em;
}
.statement-text .word { color: var(--ink-3); transition: color 0.35s ease; }
.statement-text .word.is-lit { color: var(--ink); }

.cadence {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: clamp(72px, 9vw, 128px);
}
.cadence-item { padding-top: 20px; border-top: 1px solid var(--line-2); }
.cadence-num { font-size: 12px; color: var(--rec); }
.cadence-item h3 {
    margin-top: 28px;
    font-size: 22px;
    font-weight: 600;
    font-stretch: 90%;
    letter-spacing: -0.01em;
}
.cadence-item p { margin-top: 10px; max-width: 34ch; font-size: 15px; color: var(--ink-2); }

/* ---------- Case files ---------- */

.case-files {
    padding: clamp(96px, 12vw, 180px) 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at 1px 1px, rgba(243, 240, 232, 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
        var(--bg);
}
.folder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px);
}
.folder-cell { display: flex; justify-content: center; min-width: 0; }
.case-files-foot { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

/* The folder (folders.js). Drawn at 340 × 272 and scaled to its cell. */
.gf-root {
    --gf-px: 0;
    --gf-py: 0;
    --gf-spring: cubic-bezier(0.34, 1.36, 0.5, 1);
    --gf-hinge: 0deg;
    --gf-lift: 42px;
    --gf-spread: 0px;
    --gf-fan: 0deg;
    --gf-stack: 15px;
    position: relative;
    flex: none;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}
.gf-root:hover,
.gf-root:focus-within { --gf-hinge: -11deg; --gf-lift: -34px; --gf-spread: 8px; --gf-fan: 1.4deg; --gf-stack: 10px; }
.gf-root[data-open] { --gf-hinge: -24deg; --gf-lift: -96px; --gf-spread: 40px; --gf-fan: 5deg; --gf-stack: 30px; z-index: 2; }

.gf-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 340px;
    height: 272px;
    transform-origin: 0 0;
}
.gf-tilt {
    position: absolute;
    inset: 0;
    transform: perspective(1400px) rotateX(calc(var(--gf-py) * -3deg)) rotateY(calc(var(--gf-px) * 4deg));
    transition: transform 0.9s var(--ease);
}
.gf-shadow {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -6px;
    height: 60px;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.75);
    filter: blur(22px);
    transform: translateX(calc(var(--gf-px) * -8px));
    transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}

.gf-back {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2a2e 0%, #121214 100%);
}
.gf-art {
    position: absolute;
    left: -12px;
    top: -12px;
    width: 364px;
    height: 296px;
    max-width: none;
    object-fit: cover;
    transform: translate(calc(var(--gf-px) * -7px), calc(var(--gf-py) * -6px)) scale(1.02);
    transition: transform 1.1s var(--ease);
}
.gf-back-sheen {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 22%),
        radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.gf-rim {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    overflow: visible;
    pointer-events: none;
    fill: none;
}
.gf-back-rim { width: 340px; height: 272px; }
.gf-back-rim path { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }

.gf-files {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    /* nothing hangs out of the bottom of the pocket */
    clip-path: inset(-400px -400px 10px -400px);
}
.gf-sheet-slot { display: contents; }
.gf-sheet {
    position: absolute;
    left: 34px;
    top: 96px;
    width: 272px;
    height: 184px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    background: linear-gradient(180deg, #2c2c30 0%, #1c1c1f 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 12px 28px -8px rgba(0, 0, 0, 0.7);
    transform-origin: 50% 100%;
    transform:
        translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1))
        rotate(calc(var(--gf-jr) + var(--gf-slot) * var(--gf-fan)));
    transition:
        transform 0.75s var(--gf-spring) calc(var(--gf-depth) * 40ms),
        box-shadow 0.4s var(--ease),
        translate 0.9s var(--ease),
        opacity 0.9s var(--ease);
}
.gf-sheet--art { background: #1a1a1d; }
.gf-root[data-open] .gf-sheet:hover,
.gf-root[data-open] .gf-sheet:focus-visible {
    transform:
        translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1 - 18px))
        rotate(calc(var(--gf-slot) * var(--gf-fan) * 0.6));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 22px 40px -12px rgba(0, 0, 0, 0.8);
    transition-delay: 0s;
}
.gf-sheet-art {
    position: absolute;
    inset: 0;
    width: 272px;
    height: 184px;
    max-width: none;
    object-fit: cover;
}
.gf-sheet--art::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 38%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.gf-sheet-head {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 11px;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
}
.gf-sheet-name {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12.5px;
    font-weight: 600;
    color: #fafafa;
}
.gf-sheet-meta {
    flex: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(250, 250, 250, 0.6);
}
.gf-sheet-stat {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 36px;
    font-size: 46px;
    font-weight: 800;
    font-stretch: 62%;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--ink);
}

.gf-front {
    position: absolute;
    left: 0;
    top: 74px;
    width: 340px;
    height: 198px;
    z-index: 10;
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
    transform-origin: 50% 100%;
    transform: perspective(760px) rotateX(var(--gf-hinge));
    transition: transform 0.8s var(--gf-spring), translate 1s var(--ease), opacity 1s var(--ease);
}
.gf-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 18, 20, 0.18) 0%, rgba(14, 14, 16, 0.62) 46%, rgba(8, 8, 10, 0.94) 100%);
}
.gf-spec {
    position: absolute;
    inset: 0;
    background: radial-gradient(260px 200px at calc(50% + var(--gf-px) * 46%) calc(30% + var(--gf-py) * 40%), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: screen;
    opacity: 0.16;
    pointer-events: none;
}
.gf-front-rim { width: 340px; height: 198px; opacity: 0.6; }
.gf-front-rim path { stroke-width: 2.4; transition: stroke-width 0.3s var(--ease); }
.gf-hit {
    all: unset;
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}
.gf-front:has(.gf-hit:focus-visible) .gf-front-rim path { stroke-width: 5; }
.gf-label {
    position: absolute;
    left: 28px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 210px;
    pointer-events: none;
}
.gf-title {
    font-size: 30px;
    font-weight: 800;
    font-stretch: 66%;
    line-height: 0.9;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gf-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(243, 240, 232, 0.58);
    white-space: nowrap;
}
.gf-key {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 12;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #111113;
    background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #ececee 55%, #d2d2d6 100%);
    box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 14px 22px -8px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s var(--gf-spring), background 0.3s ease, color 0.3s ease, opacity 0.6s var(--ease) 0.7s, scale 0.7s var(--gf-spring) 0.7s;
}
.gf-key svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gf-key:hover { transform: translateY(-2px); background: var(--rec); color: #fff; }
.gf-key:active { transform: scale(0.93); transition-duration: 0.12s; }

/* entrance: the folder assembles itself */
.gf-root:not([data-entered]) .gf-back,
.gf-root:not([data-entered]) .gf-back-rim { translate: 0 22px; opacity: 0; }
.gf-root:not([data-entered]) .gf-sheet { translate: 0 -120px; opacity: 0; }
.gf-root:not([data-entered]) .gf-front { translate: 0 46px; opacity: 0; }
.gf-root:not([data-entered]) .gf-key { opacity: 0; scale: 0.6; }
.gf-root:not([data-entered]) .gf-shadow { opacity: 0; }
.gf-back, .gf-back-rim { transition: translate 1s var(--ease), opacity 0.9s var(--ease); }
.gf-root[data-entered] .gf-sheet { transition-delay: calc(var(--gf-depth) * 40ms), 0s, calc(0.18s + var(--gf-depth) * 90ms), calc(0.18s + var(--gf-depth) * 90ms); }
.gf-root[data-entered] .gf-front { transition-delay: 0s, 0.42s, 0.42s; }

/* ---------- Process (edit timeline) ---------- */

.process {
    padding: clamp(96px, 12vw, 180px) 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.timeline {
    --track-label: 44px;
    --play: 0;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    overflow: hidden;
}
.timeline-ruler,
.clip {
    display: grid;
    grid-template-columns: var(--track-label) repeat(7, 1fr);
}
.timeline-ruler {
    height: 36px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
}
.timeline-ruler span {
    display: flex;
    align-items: center;
    padding-left: 10px;
    border-left: 1px solid var(--line);
    background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12.5%) 0 100% / 100% 6px no-repeat;
}
.timeline-ruler span:first-child { border-left: 0; background: none; }

.timeline-track { list-style: none; }
.timeline-grid {
    position: absolute;
    inset: 36px 0 0 0;
    display: grid;
    grid-template-columns: var(--track-label) repeat(7, 1fr);
    pointer-events: none;
}
.timeline-grid span { border-left: 1px solid rgba(243, 240, 232, 0.06); }
.timeline-grid span:first-child { border-left: 0; }
.clip {
    position: relative;
    align-items: center;
    min-height: 116px;
    border-bottom: 1px solid var(--line);
}
.clip:last-child { border-bottom: 0; }
.clip-track {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--ink-3);
    border-right: 1px solid var(--line);
    background: var(--bg-2);
}
.clip-bar {
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    height: 84px;
    margin: 0 3px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.clip-bar .mono { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.clip-bar h3 {
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 700;
    font-stretch: 80%;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.clip.is-live .clip-bar { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.clip-hot.is-live .clip-bar { background: var(--rec); border-color: var(--rec); color: #fff; }

.clip-copy {
    grid-row: 1;
    padding: 0 22px;
    font-size: 14px;
    color: var(--ink-2);
    transition: color 0.45s ease;
}
.clip.is-live .clip-copy { color: var(--ink); }

/* Each clip sits on its own track, its notes in the free space beside it. */
.clip:nth-child(1) .clip-bar { grid-column: 2 / 3; }
.clip:nth-child(1) .clip-copy { grid-column: 3 / 7; }
.clip:nth-child(2) .clip-bar { grid-column: 3 / 5; }
.clip:nth-child(2) .clip-copy { grid-column: 5 / 9; }
.clip:nth-child(3) .clip-bar { grid-column: 5 / 8; }
.clip:nth-child(3) .clip-copy { grid-column: 2 / 5; text-align: right; }
.clip:nth-child(4) .clip-bar { grid-column: 8 / 9; }
.clip:nth-child(4) .clip-copy { grid-column: 4 / 8; text-align: right; }

.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--track-label) + (100% - var(--track-label)) * var(--play));
    width: 1px;
    background: var(--rec);
    pointer-events: none;
}
.timeline-playhead::before {
    content: "";
    position: absolute;
    top: 0;
    left: -6px;
    width: 13px;
    height: 14px;
    background: var(--rec);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

/* ---------- Response rail ---------- */

.response {
    padding: clamp(96px, 12vw, 180px) 0;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.rail-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rail {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: rail 70s linear infinite;
}
.rail:hover { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(calc(-50% - 10px)); } }

.post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    width: 400px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.post:hover { border-color: var(--line-2); transform: translateY(-2px); }
.post-text {
    font-size: 21px;
    font-weight: 500;
    font-stretch: 92%;
    line-height: 1.22;
    letter-spacing: -0.01em;
}
.post-head { display: flex; align-items: center; gap: 12px; }
.post-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--panel-2) center / cover no-repeat;
}
.post-author { display: flex; flex-direction: column; min-width: 0; }
.post-name { font-size: 14px; font-weight: 600; }
.post-handle { font-size: 12px; color: var(--ink-3); }
.post-x { width: 16px; height: 16px; margin-left: auto; color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq {
    padding: clamp(96px, 12vw, 180px) 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
.faq-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
}
.faq-intro p { margin-top: 24px; color: var(--ink-2); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    cursor: pointer;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.faq-question:focus-visible { outline: 2px solid var(--rec); outline-offset: 4px; }
.faq-icon {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 1.5px;
    background: var(--ink-2);
    transition: transform 0.3s var(--ease), background 0.3s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--rec); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
}
.faq-answer > p {
    overflow: hidden;
    max-width: 60ch;
    color: var(--ink-2);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer > p { padding-bottom: 26px; }

/* ---------- Closing ---------- */

.closing {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: flex-end;
    padding: clamp(120px, 14vw, 200px) 0 clamp(64px, 8vw, 112px);
    overflow: hidden;
    border-top: 1px solid var(--line);
}
.closing-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.closing-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(5, 5, 5, 0.2) 30%, rgba(5, 5, 5, 0.45) 60%, var(--bg) 100%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0) 70%);
}
.closing-inner { position: relative; }
.closing-title {
    margin-top: 24px;
    font-size: clamp(4rem, 13vw, 14rem);
    font-weight: 800;
    font-stretch: 62%;
    line-height: 0.82;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}
.closing-sub {
    max-width: 44ch;
    margin: 32px 0;
    font-size: 17px;
    color: var(--ink-2);
}
.booking {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.booking-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #37d67a;
    box-shadow: 0 0 10px rgba(55, 214, 122, 0.7);
}

/* ---------- Footer ---------- */

.footer {
    position: relative;
    padding-top: clamp(72px, 8vw, 112px);
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col .label { margin-bottom: 8px; color: var(--ink-3); }
.footer-col a { color: var(--ink-2); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-col .footer-email {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.footer-col .footer-email:hover { color: var(--rec); }

.footer-wordmark {
    position: relative;
    margin-top: clamp(64px, 8vw, 120px);
    font-size: 20.4vw;
    font-weight: 900;
    font-stretch: 62%;
    line-height: 0.76;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}
.footer-wordmark span { display: block; }
.footer-wordmark-base { color: var(--panel-2); }
.footer-wordmark-lit {
    position: absolute;
    inset: 0;
    background: var(--flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-mask-image: radial-gradient(circle 260px at var(--lx, 50%) var(--ly, 50%), #000 0%, transparent 70%);
    mask-image: radial-gradient(circle 260px at var(--lx, 50%) var(--ly, 50%), #000 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.footer-wordmark.is-lit .footer-wordmark-lit { opacity: 1; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.to-top {
    all: unset;
    cursor: pointer;
    color: var(--ink-2);
    transition: color 0.2s ease;
}
.to-top:hover { color: var(--ink); }
.to-top:focus-visible { outline: 2px solid var(--rec); outline-offset: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .nav-rec { display: none; }
    .nav { grid-template-columns: 1fr auto; }
    .folder-grid { grid-template-columns: repeat(2, 1fr); }
    .slate-grid { grid-template-columns: repeat(2, 1fr); }
    .slate-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .slate-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .clip-copy { font-size: 13px; padding: 0 16px; }
}

@media (max-width: 768px) {
    .nav-links { gap: 18px; }
    .nav-links a:not(.nav-cta):not([href="/work"]) { display: none; }

    .hero { min-height: 600px; }
    .hero-title { font-size: clamp(3rem, 17vw, 6rem); font-stretch: 62%; }
    .hero-kicker-sep,
    .hero-kicker-city { display: none; }
    .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }

    .section-head { flex-direction: column; align-items: flex-start; }

    .cadence { grid-template-columns: 1fr; gap: 32px; }
    .folder-grid { grid-template-columns: 1fr; }

    /* The timeline turns into a stack: one clip per row, notes beneath. */
    .timeline-ruler,
    .timeline-grid,
    .timeline-playhead { display: none; }
    .clip {
        display: block;
        padding: 18px;
        min-height: 0;
        background: none;
    }
    .clip-track { display: none; }
    .clip-bar { height: auto; margin: 0; }
    .timeline .clip .clip-copy { padding: 14px 0 0; text-align: left; }

    .post { width: 300px; padding: 22px; }
    .post-text { font-size: 18px; }

    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top .footer-col:first-child { grid-column: 1 / -1; }
    .booking { margin-left: 0; }
}

@media (max-width: 480px) {
    .nav-brand span { display: none; }
    .slate-cell { padding-left: 14px; padding-right: 0; }
    .slate-cell:nth-child(odd) { padding-left: 0; }
    .hero-cta .btn { flex: 1; }
    .footer-bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .rail { animation: none; }
    .rail-mask { overflow-x: auto; }
    .rec-dot { animation: none; }
    .gf-tilt { transform: none; }
}
