/* ============================================================================
   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%);
  }
}

/* Glassfold Studio. The base below is the stacked document (no JS, no WebGL, or no scene.js).
   `html.gl` turns it into the 3D mode: one fixed WebGL scene, the panels are crisp overlays per hold. */

/* Funnel (OFL, Funnel Project Authors): display cut for headings, text cut for everything else */
@font-face { font-family: "Funnel Display"; src: url("../fonts/FunnelDisplay-var-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("../fonts/FunnelSans-var-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/DMMono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Pure black is a brief requirement: the renders have pure black edges and must not show a rectangle. */
  --sc-canvas: #000;
  --sc-surface: #0b0c0e;
  --sc-ink: #ededeb;
  --sc-ink-soft: #a3a6ac;
  --sc-accent: #ff4d2e;            /* only the active step number and errors */
  --sc-accent-ink: #000;
  --sc-font-display: "Funnel Display", system-ui, sans-serif;
  --sc-font-text: "Funnel Sans", system-ui, sans-serif;
  --sc-font-mono: "DM Mono", ui-monospace, monospace;

  --line: color-mix(in oklab, var(--sc-ink) 13%, transparent);
  --line-strong: color-mix(in oklab, var(--sc-ink) 42%, transparent);   /* >= 3:1 on black: field and switch edges */
  --bar-h: 64px;
  --edge: max(var(--sc-gutter), calc((100% - 92rem) / 2));   /* one left/right edge everywhere (ruler test) */
  --r-plate: 20px;
  --r-field: 12px;
  --scrim: rgb(0 0 0 / 0.86);
  /* every still fades out at its edges */
  --fade: linear-gradient(to bottom, transparent 0, #000 7%, #000 80%, transparent 99%),
          linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

body { font-weight: 400; letter-spacing: 0.003em; }
::selection { background: var(--sc-ink); color: #000; }
:root { caret-color: var(--sc-ink); accent-color: var(--sc-ink); }
:focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 4px; }
.skip {
  position: fixed; left: var(--sc-4); top: var(--sc-3); z-index: 100;
  padding: var(--sc-2) var(--sc-4); background: var(--sc-ink); color: #000; border-radius: 999px;
  transform: translateY(-160%); transition: transform 160ms var(--sc-ease-out);
}
.skip:focus-visible { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- type -- */
/* Three weights only: 400 text, 500 names and controls, 600 headings. */
.display {
  margin: 0; font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(2.75rem, 1rem + 4.4vw, 5rem);
  line-height: 0.94; letter-spacing: -0.032em;
}
.h2 {
  margin: 0; font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(1.85rem, 1.2rem + 1.6vw, 2.75rem);
  line-height: 1.02; letter-spacing: -0.026em; text-wrap: balance;
}
.lede { margin: 0; font-size: var(--sc-t-lg); line-height: 1.42; letter-spacing: -0.008em; max-width: 36ch; text-wrap: pretty; }
.body { margin: 0; color: var(--sc-ink-soft); max-width: 46ch; text-wrap: pretty; }
/* mono is kept for the step numbers and the nav numbers only */
.step__no, .stacknav__no {
  font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400;
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 1.45rem; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--sc-t-sm); font-weight: 500; letter-spacing: 0; white-space: nowrap;
  text-decoration: none; cursor: pointer; background: none;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out),
              color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--sc-ink); color: #000; }
.btn--line { border-color: var(--line-strong); color: var(--sc-ink); background: rgb(0 0 0 / 0.35); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #fff; }
  .btn--line:hover { border-color: var(--sc-ink); }
}
.btn:disabled { opacity: 0.5; cursor: progress; }

/* ----------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h); padding-inline: var(--edge);
  display: flex; align-items: center; gap: var(--sc-6);
  background: linear-gradient(rgb(0 0 0 / 0.94) 78%, transparent);   /* holds the nav at >= 4.5:1 over a bright plate behind it */
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto;
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none;
}
.wordmark__mark { width: 22px; height: 22px; }
.bar__cta { height: 40px; padding-inline: 1.15rem; }
.stacknav { display: flex; gap: var(--sc-5); }
.stacknav a {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.45rem;
  padding: 0.85rem 0 0.6rem; min-height: 44px;
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-decoration: none; transition: color 160ms var(--sc-ease-out);
}
.stacknav a:hover, .stacknav a[aria-current] { color: var(--sc-ink); }
/* the tick above the current compartment */
.stacknav__tick { position: absolute; left: 0; right: 0; top: 0.35rem; height: 2px; background: var(--line); }
.stacknav__tick::after { content: ""; position: absolute; inset: 0; background: var(--sc-ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 420ms var(--sc-ease-out); }
.stacknav a[aria-current] .stacknav__tick::after { transform: scaleX(1); }

/* -------------------------------------------------------------- stills -- */
.render {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain;
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.gl-canvas, .runway, .poster { display: none; }

/* ======================================================= STACKED PAGE ==
   No JS, no WebGL, or no scene: every compartment is a normal block with its Cycles stills. */
.hold, .beat { position: relative; padding: 6rem var(--edge); border-top: 1px solid var(--line); }
.hold--hero {
  min-height: 100svh; border-top: 0; padding: 6rem var(--edge) 2rem;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--sc-6);
}
.hero__copy { display: grid; gap: var(--sc-5); justify-items: start; }
.hero__lede { color: var(--sc-ink-soft); }
.hero__hint { display: none; }
.fallback-note { display: none; margin: 0; max-width: 46ch; text-wrap: pretty; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.js:not(.gl) .fallback-note { display: block; }
.proc__lede { margin-top: var(--sc-3); }
.lede--live { display: none; }
@media (prefers-reduced-motion: no-preference) { .gl .lede--live { display: inline; } .gl .lede--static { display: none; } }
.advice__sep { color: var(--sc-ink-soft); }
.beat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--sc-6); }
.beat__title { margin: 0 0 var(--sc-3); font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.beat__text { margin: 0; color: var(--sc-ink-soft); max-width: 40ch; text-wrap: pretty; }

/* werkwijze */
.steps { list-style: none; margin: var(--sc-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sc-5); }
.step { display: grid; grid-template-columns: 2.6rem 1fr; align-content: start; border-top: 1px solid var(--line); padding-top: var(--sc-3); }
.step__no { color: var(--sc-ink-soft); padding-top: 0.45em; }
.step__name { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); letter-spacing: -0.015em; }
.step__text { grid-column: 2; margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); max-width: 36ch; text-wrap: pretty; }
.step__still { grid-column: 1 / -1; order: -1; margin-bottom: var(--sc-3); }

/* werk */
.work { display: grid; gap: var(--sc-5); }
.work .h2 { max-width: 18ch; }
.case { display: grid; gap: var(--sc-1); padding: var(--sc-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 36rem; }
.case__still { max-width: 28rem; margin-bottom: var(--sc-3); }
.case__no { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.case__name { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); letter-spacing: -0.015em; }
.case__what { margin: 0; color: var(--sc-ink-soft); text-wrap: pretty; }
.work__cta { justify-self: start; }

/* pakketten */
.tiers { display: grid; gap: var(--sc-3); }
.tier-list { list-style: none; margin: var(--sc-5) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.tier {
  display: grid; align-items: baseline; column-gap: var(--sc-6); row-gap: var(--sc-1);
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.4fr) minmax(0, 4.4fr) 10.5rem;
  grid-template-areas: "name price what pick" "name price who pick";
  padding: var(--sc-5) 0; border-bottom: 1px solid var(--line);
}
.tier__name { grid-area: name; margin: 0; font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.tier__price { grid-area: price; margin: 0; font-size: var(--sc-t-xl); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier__from { font-size: var(--sc-t-sm); font-weight: 400; letter-spacing: 0; color: var(--sc-ink-soft); }
.tier__inc { grid-area: what; margin: 0; padding: 0; list-style: none; max-width: 44ch; display: grid; gap: 0.15rem; }
.tier__inc li { padding-left: 1rem; text-indent: -1rem; text-wrap: pretty; }
.tier__inc li::before { content: "–"; display: inline-block; width: 1rem; text-indent: 0; color: var(--sc-ink-soft); }
.tier__who { grid-area: who; margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); text-wrap: pretty; }
.tier__pick { grid-area: pick; align-self: center; justify-self: end; }
.extras { margin: var(--sc-5) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sc-6); }
.extras div { display: grid; gap: var(--sc-1); align-content: start; }
.extras dt { font-weight: 500; }
.extras dd { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.extras__price { display: block; color: var(--sc-ink); font-size: var(--sc-t-base); font-variant-numeric: tabular-nums; }

/* samenstellen + contact */
.build { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.build > .cfg, .build > .contact, .build > .foot { grid-column: 1; }
.advice { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--bar-h) + 2rem); display: grid; gap: var(--sc-1); max-width: 34ch; }
.advice__label { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.advice__line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; }
.advice__tier { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-weight: 600; letter-spacing: -0.025em; }
.advice__price { font-size: var(--sc-t-lg); font-weight: 500; font-variant-numeric: tabular-nums; }
.advice__care, .advice__why { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-wrap: pretty; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; float: left; width: 100%; }   /* float lets the legend sit in normal flow */
legend + * { clear: both; }
.cfg__legend { padding-bottom: var(--sc-3); }
.contact__legend { padding-bottom: var(--sc-5); }
.blocks { margin-top: var(--sc-5); border-bottom: 1px solid var(--line); }
.block {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name sw" "desc sw"; column-gap: var(--sc-5); align-items: center;
  padding: 0.75rem 0.25rem; border-top: 1px solid var(--line); cursor: pointer; border-radius: 2px;
}
.block input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.block:has(input:focus-visible) { outline: 2px solid var(--sc-ink); outline-offset: 2px; }
.block__name { grid-area: name; font-weight: 500; font-size: var(--sc-t-base); letter-spacing: -0.01em; }
.block__desc { grid-area: desc; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.switch { grid-area: sw; position: relative; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background-color 180ms var(--sc-ease-out), border-color 180ms var(--sc-ease-out); }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--sc-ink-soft); transition: background-color 180ms var(--sc-ease-out); }
.block:has(input:checked) .switch { background: var(--sc-ink); border-color: var(--sc-ink); }
.block:has(input:checked) .switch__knob { background: #000; }
html:not(.has-motion) .switch__knob { transition: transform 180ms var(--sc-ease-out), background-color 180ms var(--sc-ease-out); }
html:not(.has-motion) .block:has(input:checked) .switch__knob { transform: translateX(20px); }
@media (hover: hover) and (pointer: fine) { .block:hover .switch { border-color: var(--sc-ink); } }
.cfg__next { margin-top: var(--sc-5); }

.contact { margin-top: clamp(4rem, 12vh, 7rem); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4) var(--sc-5); }
.field { display: grid; gap: var(--sc-2); align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 0.95rem;
  background: var(--sc-surface); color: var(--sc-ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-field);
  transition: border-color 160ms var(--sc-ease-out);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sc-ink-soft) 50%), linear-gradient(135deg, var(--sc-ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 2px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--sc-accent); }
.field__help { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-wrap: pretty; }
.contact__lede { margin-bottom: var(--sc-5); }
.field__err { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-accent); }
.summary { margin: var(--sc-5) 0 0; color: var(--sc-ink-soft); max-width: 52ch; text-wrap: pretty; }
.summary strong { color: var(--sc-ink); font-weight: 500; }
.send { margin-top: var(--sc-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-5); }
.status { margin: 0; max-width: 40ch; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.status[data-state="ok"] { color: var(--sc-ink); padding-left: 0.9rem; border-left: 1px solid var(--line-strong); }
.status[data-state="error"] { color: var(--sc-ink); padding-left: 0.9rem; border-left: 1px solid var(--sc-accent); }
.contact__alt { margin: var(--sc-4) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.foot { margin-top: clamp(3rem, 10vh, 6rem); padding-top: var(--sc-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sc-3); }
.foot p { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-4); }
.foot__company { flex-basis: 100%; order: 3; }

/* ---------------------------------------------------- legal pages -- */
/* privacy.html and voorwaarden.html: a plain document in the site's type, readable at a glance */
.legal { padding: calc(var(--bar-h) + clamp(2.5rem, 8vh, 5rem)) var(--edge) clamp(4rem, 10vh, 6rem); }
.legal__body { max-width: 38rem; }   /* about 75 characters a line */
.legal h1 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.legal__updated { margin: var(--sc-5) 0 var(--sc-7); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.legal h2 { margin: var(--sc-7) 0 var(--sc-3); font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--sc-ink-soft); text-wrap: pretty; }
.legal p { margin: 0 0 var(--sc-4); }
.legal ul { margin: 0 0 var(--sc-4); padding-left: 1.2rem; }
.legal li + li { margin-top: var(--sc-1); }
.legal strong { color: var(--sc-ink); font-weight: 500; }
.legal a { color: var(--sc-ink); }
.legal__company { margin: 0 0 var(--sc-4); padding: var(--sc-4) var(--sc-5); border: 1px solid var(--line); border-radius: var(--r-field); display: grid; grid-template-columns: max-content 1fr; gap: var(--sc-1) var(--sc-5); }
.legal__company dt { color: var(--sc-ink-soft); }
.legal__company dd { margin: 0; color: var(--sc-ink); }
.legal__back { margin-top: var(--sc-7); }

/* ============================================================ 3D MODE ==
   One fixed scene. Each hold is a fixed box sized to its own content (its composited layer is only that box): it
   fades and rises in when the camera arrives (site.js, Motion, 300 ms), is fully static while read, and is
   display:none once it has faded out. The dark backing is the box itself plus a soft shadow, never a full-size scrim. */
html.gl { scroll-behavior: auto; }   /* Lenis smooths the scroll; native smooth scrolling would fight it */
.gl body { overscroll-behavior-y: none; }
.gl .gl-canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gl .gl-canvas { z-index: 1; }
html.gl { scrollbar-width: none; }
html.gl::-webkit-scrollbar { display: none; }
/* the poster sits at the scene's opening framing (measured: plate 59 vh tall, centred at 70.7 vw / 52.6 vh; phones 39.5 vh at 51.2 vw / 70.1 vh) */
.gl .poster { display: block; position: fixed; z-index: 1; pointer-events: none; max-width: none; width: 94.6vh; height: 94.6vh; left: calc(70.66vw - 47.55vh); top: 5.2vh; }
@media (max-aspect-ratio: 1/1) { .gl .poster { width: 63.4vh; height: 63.4vh; left: calc(51.2vw - 31.87vh); top: 38.75vh; } }
.gl:not(.is-ready) .hero__hint { visibility: hidden; }
.gl .runway { display: block; position: relative; z-index: -1; pointer-events: none; }
.gl .still { display: none; }

.gl .hold, .gl .beat {
  --pw: min(31rem, 37vw);
  position: fixed; z-index: var(--sc-z-copy); display: flex; flex-direction: column;
  min-height: 0; padding: 0; border: 0; border-radius: 2rem;
}
/* hidden panels: invisible and skipped (content-visibility keeps their layout once laid out, so a reveal is cheap) */
.gl :is(.hold, .beat):not(.is-shown) { visibility: hidden; content-visibility: hidden; }
.gl :is(.hold, .beat).is-warm { content-visibility: visible; }   /* site.js lays each panel out once, in idle time */
.gl .hold.is-pending { opacity: 0.001; pointer-events: none; }   /* rasterised during a jump, revealed on arrival */
.hold:focus { outline: none; }   /* tabindex -1: a camera and skip-link target, never a Tab stop */
/* side panels: vertically centred between the bar and the bottom edge, no taller than that */
.gl .hold--left, .gl .hold--right {
  top: calc(var(--bar-h) + 1.5rem); bottom: clamp(1.25rem, 4vh, 2.5rem); margin-block: auto;
  width: var(--pw); height: fit-content; max-height: calc(100svh - var(--bar-h) - 1.5rem - clamp(1.25rem, 4vh, 2.5rem));
  background: var(--scrim); box-shadow: 0 0 4rem 2.5rem var(--scrim);
}
.gl .hold--left { left: var(--edge); }
.gl .hold--right { right: var(--edge); }
.gl .panel {
  position: relative;   /* the offsetParent for the in-panel scroll maths in site.js */
  display: flex; flex-direction: column; min-height: 0;
  overflow-y: auto; overscroll-behavior: auto; scrollbar-width: none;
}
.gl .panel::-webkit-scrollbar { display: none; }
.gl .panel > .btn { align-self: flex-start; }   /* flex column: buttons keep their own width */

/* opening: the headline box, bottom left, with a soft dark halo; the object stays free */
.gl .hold--hero {
  left: var(--edge); bottom: clamp(3rem, 13vh, 8.5rem); width: min(34rem, calc(100vw - 2 * var(--edge)));   /* a definite width: hidden panels are size-contained */
  background: rgb(0 0 0 / 0.5); box-shadow: 0 0 5rem 3rem rgb(0 0 0 / 0.5); border-radius: 3rem;
}
.gl .hero__copy { display: grid; justify-content: start; overflow: visible; }
.gl .hero__hint { display: block; position: fixed; left: 0; right: 0; bottom: 1.5rem; width: fit-content; margin: 0 auto; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
/* the beat: while the layers open */
.gl .beat {
  left: var(--edge); bottom: clamp(2.5rem, 9vh, 6rem); width: min(25rem, calc(100vw - 2 * var(--edge)));
  background: rgb(0 0 0 / 0.5); box-shadow: 0 0 4rem 2.5rem rgb(0 0 0 / 0.5);
}

/* werkwijze: the step list follows the scan wipe; inactive steps stay readable */
.gl .proc { justify-content: center; }
.gl .steps { display: block; margin-top: var(--sc-6); border-bottom: 1px solid var(--line); }
.gl .step { padding: 0.7rem 0 0.8rem; gap: 0; }
.gl .step__name { color: var(--sc-ink-soft); transition: color 240ms var(--sc-ease-out); }
.gl .step__text { margin-top: 0.15rem; font-size: var(--sc-t-sm); }
.gl .step.is-on .step__name { color: var(--sc-ink); }
.gl .step.is-on .step__no { color: var(--sc-accent); }
.gl .step.is-on .step__text { color: var(--sc-ink); }
.gl .step { transition: border-color 240ms var(--sc-ease-out); }
.gl .step.is-on { border-top-color: var(--sc-ink); }

/* werk: case 01 is this site, so the live object beside it is the picture */
.gl .case { margin-top: var(--sc-2); }
.gl .work__cta { margin-top: var(--sc-2); }

/* pakketten: a single column of rows */
.gl .tiers { justify-content: safe center; }
.gl .tier { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "what what" "who who" "pick pick"; row-gap: var(--sc-1); padding: var(--sc-4) 0; }
.gl .tier__name, .gl .tier__price { font-size: var(--sc-t-lg); }
.gl .tier__inc { font-size: var(--sc-t-sm); }
.gl .tier__pick { justify-self: start; margin-top: var(--sc-2); height: 40px; }
.gl .extras { gap: var(--sc-4); }
@media (min-width: 861px) {
  .gl #pakketten { --pw: min(46rem, 54vw); }
  .gl .tier-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-5); margin-top: var(--sc-5); border-top: 0; }
  .gl .tier { display: flex; flex-direction: column; gap: var(--sc-2); padding: var(--sc-3) 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
  .gl .tier__price { font-size: var(--sc-t-base); }
  .gl .tier__who { font-size: var(--sc-t-xs); }
  .gl .tier__pick { margin-top: auto; align-self: flex-start; }
  .gl .tiers .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-5); margin-top: var(--sc-4); }
  .gl .tiers .extras dd { font-size: var(--sc-t-xs); }
  .gl .tier-list { margin-top: var(--sc-4); }
  /* denser leading so the three tiers and the extras fit the hold without an inner scroll */
  .gl .tier__inc, .gl .tier__who, .gl .tiers .extras dd { line-height: 1.45; }
}

/* samenstellen: H2 first; the live advice is a bar stuck to the bottom of the panel while you toggle */
.gl .build { display: block; padding-bottom: var(--sc-5); }
.gl .advice {
  position: sticky; bottom: 0; top: auto; z-index: 2; max-width: none; margin-top: var(--sc-4);
  padding: 1.25rem 0 var(--sc-3); background: linear-gradient(transparent, #000 1rem);
}
.gl .advice__tier { font-size: var(--sc-t-lg); }
.gl .fields { grid-template-columns: 1fr; }
.gl .contact { margin-top: var(--sc-8); }

/* ------------------------------------------------------- phones + tablets -- */
@media (max-width: 860px) {
  :root { --bar-h: 56px; }
  .bar { gap: var(--sc-3); }
  .bar__cta { display: none; }   /* 04 in the stack nav is the same destination */
  .stacknav { gap: 0.85rem; }
  .stacknav__no { display: none; }
  .display { font-size: min(3.25rem, calc((100vw - 2 * var(--sc-gutter)) / 10.7)); }   /* two lines at any phone width */
  .h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 1.9rem); }
  .hero__lede { font-size: var(--sc-t-base); }

  .hold--hero, .beat { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tier { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "what what" "who who" "pick pick"; row-gap: var(--sc-2); padding: var(--sc-4) 0; }
  .tier__pick { justify-self: start; margin-top: var(--sc-1); }
  .extras { grid-template-columns: 1fr; gap: var(--sc-4); }
  .build { grid-template-columns: 1fr; }
  .advice { grid-column: 1; grid-row: auto; position: static; margin-bottom: var(--sc-6); }
  .fields { grid-template-columns: 1fr; }

  /* 3D mode on a phone: the object owns the top of the screen, the panel is a sheet below it whose top edge fades */
  .gl .hold--left, .gl .hold--right, .gl .beat {
    inset: auto 0 0 0; width: auto; height: auto; max-width: none; margin: 0; border-radius: 0; box-shadow: none;
    max-height: calc(54svh + 2.5rem); padding: 2.5rem var(--sc-gutter) 0; background: linear-gradient(transparent, #000 2.5rem);
  }
  .gl .panel { padding: var(--sc-4) 0 var(--sc-5); }
  .gl .hold--build { max-height: calc(60svh + 2.5rem); }
  .gl .hold--build .panel { padding-top: 0; }
  .gl .beat { padding-bottom: 1.75rem; }
  .gl .hold--hero {
    inset: 0 0 auto 0; width: auto; max-width: none; border-radius: 0; box-shadow: none;
    padding: calc(var(--bar-h) + 1rem) var(--sc-gutter) 2.5rem; background: linear-gradient(#000 70%, transparent);
  }
  .gl .hero__hint { padding: 0.3rem 0.85rem; border-radius: 999px; background: rgb(0 0 0 / 0.78); }   /* the object sits behind it on a phone */
  .gl .steps { margin-top: var(--sc-3); }
  .gl .step { padding: 0.45rem 0 0.5rem; }
  .gl .step__text { display: none; }
  .gl .step.is-on .step__text { display: block; }
  .gl .tier { padding: var(--sc-3) 0; }
  /* the live advice is one line on a phone: "Premium · vanaf €2.000" */
  .gl .advice { padding: 1.25rem 0 var(--sc-3); background: linear-gradient(transparent, #000 1rem); }
  .gl .advice__label, .gl .advice__why, .gl .advice__care { display: none; }
}
@media (max-width: 480px) {
  .legal__company { grid-template-columns: 1fr; row-gap: 0; }
  .legal__company dd { margin-bottom: var(--sc-3); }
  .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stacknav { gap: 0.75rem; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .gl .hero__lede { display: none; }
  .gl .proc .h2 { font-size: var(--sc-t-xl); }
  .gl .hold--left, .gl .hold--right { max-height: calc(58svh + 2.5rem); }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .stacknav { gap: var(--sc-4); }
  .stacknav__no { display: none; }
  .display { font-size: 3.25rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .stacknav__tick::after, .gl .step__name, .gl .step { transition: none; }
}

/* ------------------------------------------------------- performance -- */
/* Over the live scene every frame of a colour, border or background transition repaints the overlay layer while the
   camera renders (measured: wheel frames on the 16.7 ms grid 54% → 80% without them). Colour changes are instant
   there; transform transitions run on the compositor and stay. */
.gl :is(.btn, .stacknav a, .switch, .switch__knob, .field input, .field select, .field textarea, .step, .step__name) { transition-property: transform; }
