/* scrollcraft engine */
/* ============================================================================
   scrollcraft.css: the taste floor
   ----------------------------------------------------------------------------
   Two layers, and the split matters:

     TOKENS   what you override per brand. Colour roles, the type ramp, the
              spacing scale, elevation, motion. A brand is ~12 values.
     DEVICES  what the engine drives. Do not restyle these to taste; they are
              the mechanism. Style your own markup instead.

   Nothing here draws a "component". There are no card, badge, or pill classes,
   because a stylesheet that ships those is how every page built on it ends up
   with the same shapes. You get a floor and a vocabulary; the composition is
   yours.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* --- colour roles. Override these six and the page is rebranded. -------- */
  --sc-canvas:      #08090b;   /* the page ground. Drift interpolates this.   */
  --sc-surface:     #101217;   /* anything raised off the ground             */
  --sc-ink:         #f4f2ef;   /* primary text                               */
  --sc-ink-soft:    #9a9ba1;   /* secondary text. Tinted, never flat gray.   */
  --sc-accent:      #d8ff3e;   /* ONE accent. It owns a region, not confetti. */
  --sc-accent-ink:  #08090b;   /* text that sits on the accent               */

  --sc-hairline:    color-mix(in oklab, var(--sc-ink) 12%, transparent);
  --sc-hairline-strong: color-mix(in oklab, var(--sc-ink) 22%, transparent);

  /* --- type. Two families max. Display carries voice, text carries prose. - */
  --sc-font-display: "Instrument Sans", "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;

  /* Fluid ramp. Tracking tightens as size grows because a face set at 6rem
     with 0 tracking reads loose; this is optical correction, not decoration. */
  --sc-t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --sc-t-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --sc-t-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --sc-t-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --sc-t-xl:   clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --sc-t-2xl:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --sc-t-3xl:  clamp(2.8rem, 1.9rem + 4.2vw, 5rem);
  --sc-t-4xl:  clamp(3.4rem, 1.9rem + 6.6vw, 7.5rem);

  --sc-track-tight:  -0.035em;
  --sc-track-snug:   -0.02em;
  --sc-track-normal: -0.005em;
  --sc-track-wide:    0.08em;

  --sc-leading-none: 0.94;
  --sc-leading-tight: 1.06;
  --sc-leading-body: 1.62;

  --sc-measure: 62ch;

  /* --- space. 4px base: the useful middle steps an 8-only scale misses. --- */
  --sc-1: 0.25rem;  --sc-2: 0.5rem;   --sc-3: 0.75rem;  --sc-4: 1rem;
  --sc-5: 1.5rem;   --sc-6: 2rem;     --sc-7: 3rem;     --sc-8: 4rem;
  --sc-9: 6rem;     --sc-10: 8rem;    --sc-11: 12rem;

  /* Section rhythm is fluid so a phone doesn't inherit desktop air. */
  --sc-section: clamp(4.5rem, 9vw, 11rem);
  --sc-gutter:  clamp(1.25rem, 5vw, 5.5rem);
  --sc-maxw:    82rem;

  /* --- radius. Pick one scale for the page and hold it. ------------------- */
  --sc-r-sm: 6px;  --sc-r-md: 12px;  --sc-r-lg: 20px;  --sc-r-pill: 999px;

  /* --- elevation. Every shadow has an offset AND a soft blur, and is tinted
         to the canvas hue. A zero-offset coloured halo is decoration, not
         depth, so there isn't one here. ---------------------------------- */
  --sc-shadow-color: 220 40% 2%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.28),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.20);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.24),
           0 8px 18px -4px hsl(var(--sc-shadow-color) / 0.30);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.22),
           0 18px 40px -8px hsl(var(--sc-shadow-color) / 0.38),
           0 48px 90px -24px hsl(var(--sc-shadow-color) / 0.30);

  /* Edge light: a 1px top highlight sells a raised surface better than any
     amount of blur, because real raised things catch light on their lip. */
  --sc-edge: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 10%, transparent);

  /* --- motion. Built-in CSS easings are too weak for UI. ------------------ */
  --sc-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --sc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sc-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sc-d-fast: 160ms;  --sc-d-base: 240ms;  --sc-d-slow: 420ms;

  --sc-z-stage: 1; --sc-z-copy: 20; --sc-z-chrome: 60;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: var(--sc-leading-body);
  letter-spacing: var(--sc-track-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------- the browser surfaces --
   The parts you did not draw still carry the design. Selection, caret, focus
   ring, scrollbar and tabular numerals all ship with defaults that belong to no
   design system. Theming them is the cheapest signal that a page was built
   rather than assembled, and it is the step that gets skipped most reliably. */
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:root { caret-color: var(--sc-accent); accent-color: var(--sc-accent); }
:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
  border-radius: var(--sc-r-sm);
}
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: color-mix(in oklab, var(--sc-ink) 26%, transparent) transparent; scrollbar-width: thin; }
}
:where(table, .sc-nums, [data-sc-count]) { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- typography -- */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 500;
  line-height: var(--sc-leading-none);
  letter-spacing: var(--sc-track-tight);
  text-wrap: balance;
  margin: 0;
}
.sc-display--xl { font-size: var(--sc-t-4xl); }
.sc-display--lg { font-size: var(--sc-t-3xl); }
.sc-display--md { font-size: var(--sc-t-2xl); letter-spacing: var(--sc-track-snug); }
.sc-lede {
  font-size: var(--sc-t-lg);
  line-height: 1.44;
  letter-spacing: var(--sc-track-snug);
  color: var(--sc-ink);
  max-width: 46ch;
  text-wrap: pretty;
  margin: 0;
}
.sc-body { max-width: var(--sc-measure); color: var(--sc-ink-soft); text-wrap: pretty; margin: 0; }
.sc-label {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide);
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}

/* ---------------------------------------------------------------- layout -- */
.sc-wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.sc-section { padding-block: var(--sc-section); }
/* More space above a heading than below it: the gap belongs to the boundary,
   not to the pair. */
.sc-stack > * + * { margin-top: var(--sc-4); }
.sc-stack > :is(h1,h2,h3) { margin-top: var(--sc-7); }
.sc-stack > :is(h1,h2,h3):first-child { margin-top: 0; }
.sc-rule { height: 1px; border: 0; background: var(--sc-hairline); margin: 0; }

/* =============================================================== DEVICES ==
   Driven by the engine. Restyle your own markup, not these.                */

.sc-act--pinned { position: relative; }
.sc-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  z-index: var(--sc-z-stage);
}

/* scrub / sequence media */
.sc-stage :is(video[data-sc-scrub], canvas[data-sc-sequence], .sc-stage__poster) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
video[data-sc-scrub] { opacity: 0; transition: opacity 380ms var(--sc-ease-out); }
.sc-has-clip video[data-sc-scrub] { opacity: 1; }
/* The poster is a live frame-holder, not a placeholder: it stays up until a
   real video frame has painted, which is what stops the blank-stage flash. */
.sc-stage__poster { z-index: 0; transition: opacity 380ms var(--sc-ease-out); }
.sc-has-clip .sc-stage__poster { opacity: 0; }

/* A scrim only where text sits. A full-frame darkening layer flattens the
   image everywhere to fix contrast in one corner. */
.sc-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(
    var(--sc-scrim-angle, 180deg),
    color-mix(in oklab, var(--sc-canvas) var(--sc-scrim-a, 78%), transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 68%);
}
/* Point the scrim at the copy. A scrim gradient that darkens the top while the
   copy sits at the bottom fixes contrast nowhere and flattens the image
   everywhere, which is the most common way text-over-video goes wrong. */
.sc-scrim--bottom { --sc-scrim-angle: 0deg; }
.sc-scrim--left   { --sc-scrim-angle: 90deg; }
.sc-scrim--right  { --sc-scrim-angle: 270deg; }

/* Corner scrims, for copy anchored to a corner. An edge gradient has to darken
   a whole band across the frame to cover one corner; a corner gradient puts the
   density where the text is and leaves the rest of the image alone. Pair with
   .sc-copy--lead / .sc-copy--trail. */
.sc-scrim--lead {
  background: linear-gradient(to top right,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) 30%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 52%,
    transparent 72%);
}
.sc-scrim--trail {
  background: linear-gradient(to top left,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) 30%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 52%,
    transparent 72%);
}
/* A band across the bottom, for copy that spans the full width of the frame.
   That is what both corner anchors become below 860px, and it is also the right
   shape whenever the copy block is wider than a corner. */
.sc-scrim--band {
  background: linear-gradient(to top,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 58%);
}
.sc-scrim--vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%,
              color-mix(in oklab, var(--sc-canvas) 70%, transparent) 100%);
}

/* copy over a stage.
   max-width is in rem, never ch. A `ch` on this container resolves against the
   CONTAINER's font-size (body size), not the display size of the heading inside
   it, so `max-width: 20ch` here silently produces a ~180px column and wraps a
   hero headline to six lines. Set a ch measure on the text element itself. */
.sc-copy {
  position: absolute; z-index: var(--sc-z-copy);
  inset-inline: var(--sc-gutter);
  max-width: min(46rem, 76vw);
  will-change: opacity, transform;
}
.sc-copy--lead   { left: var(--sc-gutter); bottom: clamp(3rem, 12vh, 9rem); }
/* inset-inline FIRST. It is the shorthand for left+right, so declaring it after
   `left: 50%` resets left to auto and the block drifts off the left edge. */
.sc-copy--center { inset-inline: auto; left: 50%; top: 50%; translate: -50% -50%; text-align: center; }
.sc-copy--trail  { inset-inline: auto; right: var(--sc-gutter); bottom: clamp(3rem, 12vh, 9rem); text-align: right; }

/* cue defaults: the engine writes opacity/transform inline, these are the
   pre-paint state so nothing flashes before the first read() */
[data-sc-cue] { opacity: 0; will-change: opacity, transform; }
.sc-ready [data-sc-cue] { transition: none; }

/* kinetic split */
.sc-split { display: inline-block; overflow: hidden; vertical-align: top; }
/* Descenders live below the baseline; a line mask clipped to the line box eats
   the tails off g, y, p, j. The padding buys them room back. */
.sc-split--line { display: block; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.sc-split__i { display: inline-block; will-change: transform, opacity; }
.sc-is-split { opacity: 1 !important; }

/* horizontal rail */
[data-sc-pan] { display: flex; will-change: transform; }

/* reveal + parallax */
[data-sc-reveal] { will-change: clip-path; }
[data-sc-parallax] { will-change: transform; }

/* flow reveal (fires once) */
[data-sc-in], [data-sc-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 620ms var(--sc-ease-out), transform 620ms var(--sc-ease-out);
}
[data-sc-in].sc-in, [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }

/* pointer devices */
[data-sc-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-sc-magnet] { will-change: transform; }
/* isolation always; position only if nothing more specific already set it.
   Written with :where() (zero specificity) on purpose: a plain `position:
   relative` here has the same weight as `.sc-stage` and, being later in the
   file, silently wins. A stage carrying both attributes then stops being
   sticky and the whole act scrolls away instead of pinning. */
[data-sc-spotlight] { isolation: isolate; }
:where([data-sc-spotlight]) { position: relative; }
[data-sc-spotlight]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(
    28rem 28rem at calc(var(--sc-mx, 0.5) * 100%) calc(var(--sc-my, 0.5) * 100%),
    color-mix(in oklab, var(--sc-accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity var(--sc-d-slow) var(--sc-ease-out);
}
[data-sc-spotlight]:hover::after { opacity: 1; }

/* =========================================================== WORLDFLIGHT ==
   One fixed stage for the whole page. The only thing in document flow is the
   spacer, and it is empty. If you find yourself adding a section here, you want
   act mode instead: the moment a real block scrolls past the fixed stage, the
   page has a seam again and the whole point is gone.                        */

[data-sc-mode="worldflight"] { position: relative; }

.sc-world {
  position: fixed; inset: 0;
  overflow: clip;
  z-index: var(--sc-z-stage);
  background: var(--sc-canvas);
}

/* Every leg is mounted for the life of the page and stacked in the same box.
   The engine owns opacity, visibility and z-index here; do not set them. */
.sc-world__seg {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: opacity;
}
.sc-world__seg > :is(video, img, canvas) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The poster is the frame-holder AND the first camera move: the engine pushes
   it in slowly until a real decoded frame is available to replace it. */
.sc-world__poster {
  z-index: 0;
  transform-origin: 50% 50%;
  transition: opacity 420ms var(--sc-ease-out);
}
.sc-world__seg > video { z-index: 1; }
.sc-world__seg.sc-has-clip .sc-world__poster { opacity: 0; }
/* The act stylesheet lights a clip through its ancestor act. A worldflight leg
   has no act, so match the class the engine also writes on the clip itself. */
video[data-sc-scrub].sc-has-clip { opacity: 1; }

/* The copy layer is fixed too, and inert by default: the engine hands
   pointer-events back to a block only while it is actually legible. */
.sc-world__copy {
  position: fixed; inset: 0;
  z-index: var(--sc-z-copy);
  pointer-events: none;
}
.sc-world__scrim { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
[data-sc-copy] {
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.sc-ready [data-sc-copy] { transition: none; }

/* The track. Empty on purpose. */
.sc-world__spacer { pointer-events: none; }

/* scroll progress */
[data-sc-progress] {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--sc-z-chrome);
  background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* ----------------------------------------------------------- atmosphere --
   Depth is not only shadow. Grain keeps a flat dark ground from banding, and
   it is the difference between "a dark page" and "a lit room". */
.sc-grain { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0.045; }
.sc-grain::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* -------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  /* Fewer and gentler, not zero. Opacity still carries the reveal so the page
     is comprehensible; every position change is dropped. */
  [data-sc-in], [data-sc-stagger] > * { transform: none; transition-duration: 220ms; }
  [data-sc-parallax], [data-sc-pan], .sc-split__i { transform: none !important; }
  /* A wipe is a position change too. Show reveal content settled. */
  [data-sc-reveal] { clip-path: none !important; }
  /* A rail's transform IS its navigation, not decoration. Zeroing it the way
     parallax and kinetic type are zeroed parks the act on its first screenful
     and makes everything past the fold unreachable: a device degrading into
     missing content. Hand the travel back to the reader as an ordinary scroll
     region instead, so the same items are all still gettable without motion.
     A build that would rather re-lay the rail out as a grid can still do that;
     this is the floor, not the ceiling. */
  [data-sc-act="pan"] .sc-stage,
  [data-sc-act="pan"] [data-sc-stage] {
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  [data-sc-pan] > * { scroll-snap-align: center; }
  [data-sc-spotlight]::after { display: none; }
  /* A worldflight keeps its whole story here. No clip is ever fetched, so the
     posters are the film, and they cross-dissolve through exactly the same
     seams at exactly the same scroll positions. The push-in and the copy drift
     are the only things that go. */
  .sc-world__poster, [data-sc-copy] { transform: none !important; }
}

/* --------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  .sc-copy { inset-inline: var(--sc-gutter); max-width: none; }
  .sc-copy--trail { text-align: left; }
  .sc-stage { height: 100svh; }
  /* .sc-copy--trail re-anchors to the left and spans the full width here, so a
     bottom-RIGHT corner gradient darkens the one corner the copy just left and
     guarantees a contrast failure over any bright clip. Point the density at
     the copy: the same band .sc-scrim--band paints. */
  .sc-scrim--trail {
    background: linear-gradient(to top,
      color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
      color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
      transparent 58%);
  }
}


/* harlem labs page */
/* ═══════════════════════════════════════════════════════════════════════════
   HARLEM LABS v2 · "The Ground You Build"
   Grammar: continuous world (worldflight). Nine legs, one unbroken rise.

   The world is sunless. Every photon in every frame comes from something that
   got built, so the page brightens in proportion to what has accrued and the
   copy never has to claim it.

   Type comes from app/layout.tsx via next/font/google, self hosted at build
   time and therefore font-src 'self' clean.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --hl-navy:  #0F1726;
  --hl-gold:  #DAB039;
  --hl-gold-dk: #BE882C;
  --hl-light: #F2F2F2;
  --hl-muted: #9DAFC6;
  --hl-rule:  rgba(218, 176, 57, 0.34);

  --hl-display: var(--font-playfair), "Playfair Display", Georgia, serif;
  --hl-sans:    var(--font-dm-sans), "DM Sans", system-ui, -apple-system, sans-serif;
  --hl-mono:    var(--font-dm-mono), "DM Mono", ui-monospace, monospace;

  --hl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hl-gut: clamp(1.1rem, 4vw, 4rem);
}

html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: #070B12;
  color: var(--hl-light);
  font-family: var(--hl-sans);
  font-weight: 300;
  overflow-x: hidden;
}

.hl-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--hl-gold); color: var(--hl-navy);
  padding: 0.75rem 1.25rem; font-family: var(--hl-mono);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: top 160ms var(--hl-ease);
}
.hl-skip:focus-visible { top: 1rem; }

/* The scrim only where copy sits. A full-frame darkening layer would flatten
   the amber light everywhere to fix contrast in one corner, and the amber
   light is the entire argument. */
.sc-world__scrim {
  --sc-scrim-angle: 75deg;
  background: linear-gradient(75deg,
    rgba(7, 11, 18, 0.88) 0%,
    rgba(7, 11, 18, 0.72) 26%,
    rgba(7, 11, 18, 0.40) 54%,
    rgba(7, 11, 18, 0.10) 76%,
    rgba(7, 11, 18, 0) 100%);
}

/* ── COPY ────────────────────────────────────────────────────────────────
   Blocks are placed against the frame. The engine owns their opacity and the
   capped translateY; nothing here may add a second transform. */
.hl-copy { position: absolute; }

.hl-eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--hl-mono); font-size: 0.6875rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--hl-gold);
  display: flex; align-items: center; gap: 0.7rem;
}
.hl-eyebrow::before { content: ''; width: 1.9rem; height: 1px; background: var(--hl-gold); flex: none; }

.hl-kicker {
  margin: 0 0 0.9rem;
  font-family: var(--hl-mono); font-size: 0.6875rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--hl-gold);
}

.hl-h1 {
  margin: 0 0 1.5rem;
  font-family: var(--hl-display); font-weight: 900;
  font-size: clamp(2.5rem, 5.4vw, 4.9rem);
  line-height: 1.03; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hl-h1 em, .hl-h2 em, .hl-peak em { font-style: normal; color: var(--hl-gold); }

.hl-lede {
  margin: 0; max-inline-size: 38ch;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.8; color: var(--hl-muted);
}

.hl-copy--hero { left: var(--hl-gut); right: var(--hl-gut); top: clamp(5rem, 15vh, 10rem); }
.hl-scrollcue {
  margin: 2.4rem 0 0;
  font-family: var(--hl-mono); font-size: 0.625rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--hl-muted);
  display: flex; align-items: center; gap: 0.8rem;
}
.hl-scrollcue::after {
  content: ''; width: clamp(2rem, 7vw, 6rem); height: 1px;
  background: linear-gradient(to right, var(--hl-gold), transparent);
}

/* The four keyword beats alternate side so consecutive ones never share a
   column, and each sits low in the frame where the terraces are darkest. */
.hl-copy--beat { left: var(--hl-gut); bottom: clamp(4.5rem, 14vh, 9rem); max-inline-size: 30ch; }

.hl-beat {
  margin: 0 0 0.9rem;
  font-family: var(--hl-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 2.05rem);
  line-height: 1.3; letter-spacing: -0.015em; color: var(--hl-light);
}
.hl-beat--wide { max-inline-size: 26ch; }
.hl-tools {
  margin: 0;
  font-family: var(--hl-mono); font-size: 0.6875rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--hl-muted);
}

/* Centred blocks use the engine's own idiom, and they have to.
   .sc-copy sets `inset-inline` AND `max-width: min(46rem, 76vw)`, so setting
   left+right does NOT centre a block: it clamps it to 46rem and pins it at the
   start edge, which put the finale's centre at 29% of the frame instead of 50%
   and landed the gold chevron on the left peak instead of in the notch.
   `translate` rather than `transform`, because the engine writes an inline
   transform on every copy block for the capped translateY and would clobber it. */
.hl-copy--peak,
.hl-copy--finale {
  inset-inline: auto;
  left: 50%; top: 50%;
  translate: -50% -50%;
  max-width: min(46rem, 88vw);
  text-align: center;
}
.hl-peak {
  margin: 0 auto; max-inline-size: 24ch;
  font-family: var(--hl-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.22; letter-spacing: -0.02em;
}

/* Defocus, not a plate. A masked backdrop blur reads as a lens; a dark
   rectangle reads as UI the moment its edge is findable. Deliberately NOT a
   data-sc-copy block, so the verification pass photographs the frame under the
   peak copy instead of hiding this along with it. */
.hl-lens {
  position: absolute; left: 0; right: 0; top: 50%;
  height: clamp(16rem, 42vh, 26rem);
  transform: translateY(-50%);
  z-index: 8; pointer-events: none;
  opacity: var(--hl-lens-vis, 0);
  backdrop-filter: blur(16px) brightness(0.52) saturate(0.8);
  -webkit-backdrop-filter: blur(16px) brightness(0.52) saturate(0.8);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

/* THE ARCS. Light handed between parts of the structure and settling back into
   it. Drawn rather than generated: asking the model for them produced sparks
   spraying off the terraces and pushed the camera in far enough to crop the twin
   peaks, which is the entire payoff. Drawn, they stay sparse and tunable, and
   deliberately NOT a data-sc-copy block so the verification pass photographs the
   frame beneath the finale copy instead of hiding this with it. */
.hl-arcs {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 9; pointer-events: none;
  opacity: var(--hl-arcs-vis, 0);
}
.hl-arcs path {
  stroke: var(--hl-gold); stroke-width: 1.4; fill: none;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
  opacity: 0.72;
  filter: drop-shadow(0 0 6px rgba(218, 176, 57, 0.55));
}

/* The finale sits centred over the brightest footage on the page, so it needs
   the same treatment as the peak and a taller mask. */
.hl-lens--finale {
  /* A COLUMN, not a band. Full width defocused the twin peaks out of the frame,
     and the line this protects is "they make a shape you recognise" — the reader
     has to be able to see the shape. This clears the copy column and leaves both
     peaks legible either side of it. */
  left: 50%; right: auto;
  width: min(50rem, 84vw);
  height: clamp(24rem, 76vh, 42rem);
  translate: -50% 0;
  opacity: var(--hl-lens-finale-vis, 0);
  backdrop-filter: blur(15px) brightness(0.38) saturate(0.78);
  -webkit-backdrop-filter: blur(15px) brightness(0.38) saturate(0.78);
  mask-image: radial-gradient(ellipse 66% 56% at 50% 50%, #000 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 66% 56% at 50% 50%, #000 58%, transparent 100%);
}

/* ── THE MANIFEST · the nav ──────────────────────────────────────────────
   An inventory that accrues, not a position readout. Entries land as their
   leg does and stay for the rest of the flight. */
.hl-manifest {
  position: absolute; right: var(--hl-gut); top: 50%;
  transform: translateY(-50%);
  z-index: 12; pointer-events: auto;
  min-inline-size: 12rem;
  opacity: var(--hl-manifest-vis, 0);
  transition: opacity 500ms var(--hl-ease);
}
.hl-manifest__head, .hl-manifest__foot {
  margin: 0; font-family: var(--hl-mono); font-size: 0.5625rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--hl-muted);
}
.hl-manifest__head { margin-bottom: 0.9rem; }
.hl-manifest__foot { margin-top: 0.9rem; color: var(--hl-gold); font-variant-numeric: tabular-nums; }
.hl-manifest__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.hl-manifest__row {
  opacity: 0; transform: translateY(6px);
  transition: opacity 620ms var(--hl-ease), transform 620ms var(--hl-ease);
  border-top: 1px solid rgba(157, 175, 198, 0.16);
}
.hl-manifest__row[data-hl-on] { opacity: 1; transform: none; }
.hl-manifest__row button {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: block; width: 100%; text-align: right;
  padding: 0.5rem 0; font: inherit; color: inherit;
}
.hl-manifest__k {
  display: block; font-family: var(--hl-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hl-light);
}
.hl-manifest__t {
  display: block; margin-top: 0.15rem;
  font-family: var(--hl-mono); font-size: 0.5625rem;
  letter-spacing: 0.1em; color: var(--hl-gold);
}
.hl-manifest__row button:hover .hl-manifest__k,
.hl-manifest__row button:focus-visible .hl-manifest__k { color: var(--hl-gold); }

/* The site index. The Manifest was a map of the page only, which left every
   route 13.5 viewport-heights away in the footer. */
.hl-manifest__site {
  list-style: none; margin: 1rem 0 0; padding: 0.9rem 0 0;
  border-top: 1px solid rgba(157, 175, 198, 0.16);
  display: grid; gap: 0.42rem;
}
.hl-manifest__site a {
  font-family: var(--hl-mono); font-size: 0.5625rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hl-muted); text-decoration: none;
  transition: color 180ms var(--hl-ease);
}
.hl-manifest__site a:hover, .hl-manifest__site a:focus-visible { color: var(--hl-gold); }

/* Named proof, in the slot over the connector leg. */
.hl-copy--proof { left: var(--hl-gut); bottom: clamp(4.5rem, 14vh, 9rem); max-inline-size: 34ch; }
.hl-proof {
  margin: 0 0 0.9rem;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem); line-height: 1.7; color: var(--hl-light);
}
.hl-proof__more { margin: 0; }
.hl-proof__more a {
  font-family: var(--hl-mono); font-size: 0.625rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--hl-gold);
  text-underline-offset: 4px;
}

/* ── THE NORM, ONCE ──────────────────────────────────────────────────────
   The only graphic on an otherwise entirely photoreal page. It arrives once,
   at the accrual, and it never returns. */
.hl-datum {
  position: absolute; left: 0; right: 0;
  top: var(--hl-datum-y, 62%);
  z-index: 10; pointer-events: none;
  opacity: var(--hl-datum-vis, 0);
}
.hl-datum__rule {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(to right, transparent, var(--hl-rule) 12%, var(--hl-rule) 88%, transparent);
}
.hl-datum__label {
  position: absolute; right: var(--hl-gut); top: 0.6rem;
  font-family: var(--hl-mono); font-size: 0.5625rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--hl-gold);
  white-space: nowrap;
}

/* ── FINALE ──────────────────────────────────────────────────────────────
   The mark completes over the twin peaks, and the ask sits in the notch. */
.hl-h2 {
  margin: 0 auto clamp(1.2rem, 3vh, 1.9rem); max-inline-size: 22ch;
  font-family: var(--hl-display); font-weight: 900;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}

.hl-ask { margin: 0 auto; max-inline-size: 32rem; }
.hl-ask__label {
  display: block; margin-bottom: 0.85rem;
  font-family: var(--hl-mono); font-size: 0.625rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--hl-muted);
}
.hl-ask__row { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.hl-ask__input {
  flex: 1 1 15rem; min-width: 0;
  padding: 0.95rem 1.1rem;
  background: rgba(7, 11, 18, 0.72);
  border: 1px solid rgba(157, 175, 198, 0.34);
  color: var(--hl-light);
  font-family: var(--hl-sans); font-size: 1rem;
  transition: border-color 200ms var(--hl-ease);
}
.hl-ask__input::placeholder { color: rgba(157, 175, 198, 0.6); }
.hl-ask__input:focus { outline: none; border-color: var(--hl-gold); }
.hl-ask__btn {
  flex: 0 0 auto; cursor: pointer;
  padding: 0.95rem 1.9rem;
  background: var(--hl-gold); color: var(--hl-navy); border: 1px solid var(--hl-gold);
  font-family: var(--hl-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 200ms var(--hl-ease), border-color 200ms var(--hl-ease);
}
.hl-ask__btn:hover, .hl-ask__btn:focus-visible { background: var(--hl-gold-dk); border-color: var(--hl-gold-dk); }
.hl-ask__btn[disabled] { opacity: 0.55; cursor: default; }
.hl-ask__note {
  margin: 1rem auto 0; max-inline-size: 40ch;
  font-size: 0.875rem; line-height: 1.7; color: var(--hl-muted);
}
.hl-ask__note[data-hl-state="err"] { color: #E9B4B4; }
.hl-ask__note[data-hl-state="ok"] { color: var(--hl-gold); }
.hl-finale__alt {
  margin: clamp(1rem, 2.6vh, 1.6rem) auto 0; max-inline-size: 40ch;
  font-size: 0.875rem; line-height: 1.7; color: var(--hl-muted);
}
.hl-finale__alt a { color: var(--hl-light); text-underline-offset: 3px; }
.hl-finale__alt a:hover { color: var(--hl-gold); }

:where(a, button, input):focus-visible { outline: 2px solid var(--hl-gold); outline-offset: 3px; }

/* ── PHONE ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* The manifest becomes a foot strip: a right-hand rail eats the frame at
     this width, and the frame is the argument. */
  .hl-manifest {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    min-inline-size: 0; padding: 0.7rem var(--hl-gut) 1rem;
    background: linear-gradient(to top, rgba(7,11,18,0.92), rgba(7,11,18,0));
  }
  .hl-manifest__head { display: none; }
  .hl-manifest__list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.5rem; }
  .hl-manifest__row { border-top: 1px solid rgba(157,175,198,0.16); border-left: 0; }
  .hl-manifest__row button { text-align: left; padding: 0.4rem 0; }
  .hl-manifest__k { font-size: 0.5rem; letter-spacing: 0.08em; }
  .hl-manifest__t { display: none; }
  /* The footer already carries the full index on a phone, and a second copy
     of it inside a foot strip is clutter at this width. */
  .hl-manifest__site { display: none; }
  .hl-manifest__foot { margin-top: 0.6rem; }
  .hl-copy--beat { bottom: clamp(7rem, 22vh, 11rem); max-inline-size: none; }
  /* The lens is a column on desktop so the peaks stay legible either side. On a
     phone there is no "either side": the copy fills the width, so the lens has
     to as well or the headline sits on bare footage. */
  .hl-lens--finale {
    width: 100%;
    height: clamp(26rem, 82vh, 46rem);
    backdrop-filter: blur(16px) brightness(0.3) saturate(0.75);
    -webkit-backdrop-filter: blur(16px) brightness(0.3) saturate(0.75);
    mask-image: radial-gradient(ellipse 88% 60% at 50% 50%, #000 68%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 88% 60% at 50% 50%, #000 68%, transparent 100%);
  }
  /* Five arcs across a 390px frame is clutter, not an impression. */
  .hl-arcs path:nth-child(n+4) { display: none; }

  .hl-ask__row { flex-direction: column; }
  .hl-ask__btn { width: 100%; }
  .hl-datum__label { right: auto; left: var(--hl-gut); }
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────
   The engine holds each leg on its poster instead of scrubbing. Meaning
   survives because the copy, the manifest and the ask are all still there,
   and the posters still run dark to lit in order. */
@media (prefers-reduced-motion: reduce) {
  .hl-manifest__row, .hl-manifest { transition: none; }
  .hl-copy { transition: none; }
}

.hl-ask__next {
  margin: 0.8rem auto 0; max-inline-size: 40ch;
  font-size: 0.875rem; line-height: 1.7; color: var(--hl-muted);
}
.hl-ask__next a { color: var(--hl-gold); text-underline-offset: 4px; }
