/* ═══════════════════════════════════════════════════════════
   BAD STUDIO

   Two grounds. Proof is paper, where BAD speaks. Projection is
   near-black, where the work plays. The page runs proof → screen
   → proof, and the inversion is the signature moment.

   Red is a correction mark. It never fills, never glows, never
   tints, never appears on hover. If red is doing emphasis rather
   than marking a fix, it is in the wrong place.

   No border-radius. No box-shadow. No gradients. Anywhere.
   ═══════════════════════════════════════════════════════════ */


/* ── Registered so the act inversion can actually animate. An unregistered
      custom property flips instantly; registering it as <color> lets the
      400ms crossfade carry every derived colour at once — ground, type,
      metadata and hairlines — from one declaration on :root. Browsers
      without @property get an instant flip, which is a fine floor. ── */
@property --ground { syntax:'<color>'; inherits:true; initial-value:#F4F1EA }
@property --fg     { syntax:'<color>'; inherits:true; initial-value:#14120F }
@property --muted  { syntax:'<color>'; inherits:true; initial-value:#6C675D }
@property --hair   { syntax:'<color>'; inherits:true; initial-value:rgba(20,18,15,.13) }

:root{
  /* ── the five colours ── */
  --proof:#F4F1EA;        /* paper ground — warm off-white */
  --ink:#14120F;          /* type on proof            16.6:1 */
  --projection:#0C0B0A;   /* screen ground — warmed very slightly to match */
  --screen:#F4F1EA;       /* type on projection       17.4:1 */
  --red:#C1121F;          /* correction only — 5.5:1 proof, 3.2:1 projection */

  /* One --muted fails one ground or the other, so the role takes two
     measured values — a darker warm grey on paper, a lighter one on black.
     Any element that forces its own ground must pin the matching pair. */
  --muted-on-proof:#6C675D;             /* 4.98:1 on --proof */
  --muted-on-projection:#8D887F;        /* 5.58:1 on --projection */
  --hair-on-proof:rgba(20,18,15,.13);
  --hair-on-projection:rgba(244,241,234,.13);

  /* ── ground-dependent, flipped by [data-act] on the root ── */
  --ground:var(--proof);
  --fg:var(--ink);
  --muted:var(--muted-on-proof);
  --hair:var(--hair-on-proof);

  /* ── type: three families, three voices. The didone is the brand the
        case studies already speak; the grotesque carries the reading. ── */
  --display:"Bodoni Moda",Didot,"Bodoni 72",Georgia,serif;
  --body-face:"Inter Tight",-apple-system,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  /* ── exactly five sizes. There is no sixth. ── */
  --t-display:clamp(4.5rem,19vw,17rem);
  --t-head:clamp(2rem,5.5vw,4.5rem);
  --t-lead:clamp(1.15rem,2.1vw,1.6rem);
  --t-body:1.0625rem;
  --t-mono:0.72rem;

  --pad:clamp(20px,5vw,80px);
  --max:1600px;
  --head-h:clamp(56px,7vh,72px);
  --ease:cubic-bezier(.22,1,.36,1);

  /* hairlines are true 1px — half a CSS pixel where the display can draw it */
  --hw:1px;

  /* The inversion. Hard and fast — linear, no easing theatrics.
     Only the ground crossfades. Type snaps at the halfway mark instead of
     fading with it: ink travelling dark→light while the ground travels
     light→dark puts both at the same mid-grey at t=200ms, and every word on
     the page disappears for the crossing. Snapping keeps the worst moment at
     4.8:1 going in and 3.6:1 coming out, and the ground still carries the
     400ms move that makes the act change read. */
  transition:--ground .4s linear,
             --fg     0s linear .2s,
             --muted  0s linear .2s,
             --hair   0s linear .2s;
}

:root[data-act="projection"]{
  --ground:var(--projection);
  --fg:var(--screen);
  --muted:var(--muted-on-projection);
  --hair:var(--hair-on-projection);
}

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

@media (min-resolution:2dppx){
  :root{--hw:0.5px}
}

html{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
  scroll-padding-top:var(--head-h);
}

body{
  background:var(--ground);
  color:var(--fg);
  font-family:var(--body-face);
  font-size:var(--t-body);
  font-weight:400;
  line-height:1.6;
  /* let the variable opsz axis give large settings true didone hairlines */
  font-optical-sizing:auto;
  overflow-x:hidden;
  /* fallback for no @property: the body itself still crossfades */
  transition:background-color .4s linear, color 0s linear .2s;
}

img,video,iframe,svg{display:block;max-width:100%}
img{height:auto}
::selection{background:var(--fg);color:var(--ground)}

.sprite{position:absolute;width:0;height:0;overflow:hidden}

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

.skip{
  position:absolute;left:-9999px;top:10px;z-index:999;
  background:var(--ink);color:var(--proof);
  padding:12px 18px;text-decoration:none;
  font-family:var(--mono);font-size:var(--t-mono);
  letter-spacing:.12em;text-transform:uppercase;
}
.skip:focus{left:10px}

/* The focus ring may be red: it marks a state change, which is a correction. */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid var(--red);
  outline-offset:4px;
}

/* ── the utility voice ── */
.mono{
  font-family:var(--mono);
  font-size:var(--t-mono);
  font-weight:400;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
}
.muted{color:var(--muted)}


/* ═══════════ THE CORRECTION MARK ═══════════
   Drawn left to right, once, then never again. The undrawn state is opt-in
   (html[data-anim="on"]) so no-JS, a frozen animation clock and reduced
   motion all render the mark already complete rather than never at all. */
.mark{overflow:visible;pointer-events:none}
.mark use{
  stroke:var(--red);
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  stroke-dasharray:1;
  stroke-dashoffset:0;
}
[data-anim="on"] .mark use{stroke-dashoffset:1}
[data-anim="on"] .mark.drawn use{
  animation:draw 600ms cubic-bezier(.32,.72,.35,1) forwards;
}
@keyframes draw{to{stroke-dashoffset:0}}

.corr{position:relative;display:inline-block;white-space:nowrap}
/* The drop is measured from the bottom of the line box, so it depends
   entirely on how much leading the type carries. Loose settings have room
   underneath; tight display settings have none, and the mark lands on the
   next line. Both cases tune the same two properties. */
.corr>.mark{
  position:absolute;
  left:-.06em;top:calc(100% + var(--mark-drop,.10em));
  width:calc(100% + .12em);height:var(--mark-h,.45em);
}

/* Display headings run at line-height 1.02–1.16, where the line box ends at
   the descenders and there is nothing below it. The mark is pulled back up
   into its own line's descender space — where a proofreader would put it
   anyway — and set shorter so the squiggle stays clear of the line beneath. */
.cs-problem,.page-h,.contact-h,.close-h,.proj-name{
  --mark-drop:-.23em;
  --mark-h:.16em;
}


/* ═══════════ HEADER ═══════════
   One nav. It inverts because --fg inverts — there is no second copy. */
.head{
  position:fixed;top:0;left:0;right:0;z-index:100;
  height:var(--head-h);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 var(--pad);
  color:var(--fg);
  transition:transform .7s var(--ease);
}
.head.hide{transform:translateY(-130%)}

/* The wordmark stays grotesque — the serif is for the work's titles,
   not the studio's initials. On hover it exhales a little. */
.brand{
  font-family:var(--body-face);
  font-weight:900;
  font-size:var(--t-mono);letter-spacing:.16em;
  color:var(--fg);text-decoration:none;
  flex:none;
  transition:letter-spacing .5s var(--ease);
}
.brand:hover{letter-spacing:.21em}

.nav{display:flex;gap:clamp(14px,2.4vw,36px)}
.nav a{
  font-family:var(--mono);font-size:var(--t-mono);
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--fg);text-decoration:none;
  position:relative;padding-bottom:3px;
}
/* the underline draws left to right — the same hairline language the
   pane names speak on the wall */
.nav a::after{
  content:"";position:absolute;left:0;bottom:0;
  width:100%;height:var(--hw);background:currentColor;
  transform:scaleX(0);transform-origin:left;
  transition:transform .35s var(--ease);
}
.nav a:hover::after{transform:scaleX(1)}
/* the page you are on is underlined — the same signal hover gives, held */
.nav a[aria-current]::after{transform:scaleX(1)}

/* scroll meter — a hairline, in the ink of whichever act it sits over */
.meter{position:absolute;left:0;right:0;bottom:0;height:var(--hw);background:var(--hair)}
.meter>span{
  display:block;height:100%;background:var(--fg);
  transform:scaleX(var(--p,0));transform-origin:left;
}

@media (max-width:560px){
  .nav{gap:11px}
  .nav a{letter-spacing:.05em}
}


/* ═══════════════════════════════════════════════════════════
   ACT ONE — PROOF · THE WALL

   The room of live work, and the one effect on the page. Depth is
   built from perspective, tilt and scale only — no shadow, no
   gradient, no radius, per the studio rules. The frames carry their
   own darkness against the paper; that contrast is the depth cue a
   shadow would otherwise give.

   Every moving part is opt-IN behind [data-anim="on"] and .is-built,
   both set by main.js only where they can actually run. With JS off,
   a frozen clock or reduced motion, the base rules leave three
   upright-arc posters that link to the work — nothing is stranded.
   ═══════════════════════════════════════════════════════════ */

.wall-hero{
  min-height:100svh;
  display:flex;flex-direction:column;
  padding:calc(var(--head-h) + clamp(40px,7vh,88px)) var(--pad) clamp(34px,6vh,72px);
  position:relative;
}

.wall-intro{width:100%;max-width:var(--max);margin-inline:auto}

/* the stage the frames stand in */
.wall{
  flex:1;min-height:0;
  margin-top:clamp(30px,6vh,76px);
  display:flex;align-items:center;justify-content:center;
  perspective:1350px;
  perspective-origin:50% 44%;
}

/* Cursor-driven parallax: main.js writes --px/--py from pointer position,
   lerped so the deck trails the cursor. The frames read as objects in a
   room that responds to you — motion the visitor didn't cause was fighting
   the motion they did, so the old autonomous drift is gone. */
.wall-deck{
  width:100%;max-width:var(--max);
  display:flex;align-items:center;justify-content:center;
  gap:clamp(28px,4vw,80px);
  transform-style:preserve-3d;
  transform:rotateX(var(--px,0deg)) rotateY(var(--py,0deg));
}

.pane{
  flex:1 1 0;min-width:0;
  max-width:clamp(280px,30vw,460px);
  transform-style:preserve-3d;
  opacity:1;
  transform:rotateY(var(--ry)) translateZ(var(--tz));
}
/* resting tilt — a shallow arc facing the viewer. Kept shallow on purpose:
   the projected quads must never overlap, and a steep arc reads like a
   mockup generator. */
.pane:nth-child(1){--ry:10deg;  --tz:-28px}
.pane:nth-child(2){--ry:0deg;   --tz:14px}
.pane:nth-child(3){--ry:-10deg; --tz:-28px}

/* assembly — a settle, not a reveal from blank. Posters are visible within
   ~120ms of their turn; the whole thing is done in ~900ms. Only while opted
   in and not yet built. */
[data-anim="on"] .wall:not(.is-built) .pane{
  opacity:0;
  transform:translateY(14px) rotateY(var(--ry)) translateZ(-48px) scale(.97);
  transition:none;
}
/* the settle — staggered so the room assembles left to right */
.wall.is-built .pane{
  transform:rotateY(var(--ry)) translateZ(var(--tz));
  transition:opacity .24s var(--ease), transform .64s var(--ease);
  transition-delay:calc(var(--i) * 130ms);
}
/* once settled (main.js flips the class after the stagger has run), the
   panes stop inheriting the assembly delay so interaction answers now.
   Release is slower than approach on purpose — things that relax slowly
   read heavier than things that snap back. */
.wall.is-settled .pane{
  transition:opacity .8s var(--ease), transform .78s var(--ease);
  transition-delay:0s;
}

.pane-face{
  display:block;text-decoration:none;color:inherit;
  transform-style:preserve-3d;
}

/* Full fidelity at rest, always — the work is never shown degraded. */
.pane-frame{
  position:relative;display:block;overflow:hidden;
  aspect-ratio:16/10;
  background:var(--projection);
  border:var(--hw) solid var(--hair);
}

.pane-still{
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;
  object-fit:cover;object-position:top center;
  /* the push is long and small; anything quicker reads as a zoom effect
     rather than the room drawing nearer */
  transition:transform 1.4s var(--ease);
}

/* 1280px of desktop render, scaled by --k (set per-pane in main.js).
   pointer-events off: the whole frame is one link that opens the
   case study, so the live page never eats the click — it only ever
   plays, driven by main.js. */
.pane-live{
  position:absolute;top:0;left:0;z-index:1;
  width:1280px;height:calc(100% / var(--k,.3));
  border:0;background:var(--projection);
  transform-origin:0 0;transform:scale(var(--k,.3));
  pointer-events:none;
  opacity:0;transition:opacity .62s var(--ease);
}
.pane.is-live.is-active .pane-live{opacity:1}

/* Activation is routed through main.js hit-testing, which sets .is-active —
   there is no :hover path, so the drawn frame and the hit region can never
   disagree. :focus-within is the keyboard equivalent of the same state.

   The lift confirms which frame you're addressing before you commit to a
   click — quiet and slow, because big fast jumps read cheap. */
@media (min-width:760px){
  .wall.is-built .pane.is-active,
  .wall.is-built .pane:focus-within{
    transform:rotateY(0deg) translateZ(40px) scale(1.015);
    transition:transform .62s var(--ease), opacity .35s var(--ease);
    transition-delay:0s;
    z-index:3;
  }
  /* neighbour recede — attention is a subtraction, not an addition.
     No blur: it costs too much on mid-range GPUs. Dimming is quicker
     than the .8s return: attention arrives, then lets go slowly. */
  .wall.is-built.has-active .pane:not(.is-active):not(:focus-within){
    opacity:.55;
    transition:opacity .5s var(--ease), transform .78s var(--ease);
  }
  /* the photograph inside the active frame draws nearer — the frame is
     addressed, so the room answers */
  .wall.is-built .pane.is-active .pane-still,
  .pane:focus-within .pane-still{transform:scale(1.035)}
  /* the frame's facts wake with it — metadata rises from muted to ink */
  .wall.is-built .pane.is-active .pane-cap .muted,
  .pane:focus-within .pane-cap .muted{color:var(--fg)}
}

.pane-cap{
  margin-top:clamp(18px,2.6vh,28px);
  display:grid;grid-template-columns:1fr auto;
  gap:2px 14px;align-items:baseline;
}
.pane-name{
  grid-column:1;grid-row:1;
  position:relative;
  /* reserve two lines so the fact row lines up across panes whether the
     name wraps (House on the Severn) or not (BANKED) */
  min-height:2.2em;
  font-family:var(--display);
  font-size:var(--t-lead);font-weight:600;
  text-transform:none;letter-spacing:-.01em;line-height:1.1;
  color:var(--fg);
}
/* hairline draw — binds the caption to the frame you're pointing at */
.pane-name::after{
  content:"";position:absolute;left:0;bottom:-7px;
  width:100%;height:var(--hw);background:var(--fg);
  transform:scaleX(0);transform-origin:left;
  transition:transform .5s var(--ease);
}
.pane-tag {grid-column:2;grid-row:1;justify-self:end;text-align:right}
.pane-fact{grid-column:1;grid-row:2}
.pane-cap .muted{transition:color .6s var(--ease)}
/* caption commit — it tells you the frame is a door */
.pane-open{
  grid-column:2;grid-row:2;justify-self:end;
  color:var(--fg);
  opacity:0;transform:translateY(-2px);
  transition:opacity .4s var(--ease) .08s, transform .4s var(--ease) .08s;
}
.pane-arw{display:inline-block;transition:transform .4s var(--ease) .08s}
@media (min-width:760px){
  .wall.is-built .pane.is-active .pane-open,
  .pane:focus-within .pane-open{opacity:1;transform:none}
  .wall.is-built .pane.is-active .pane-arw,
  .pane:focus-within .pane-arw{transform:translateX(4px)}
  .wall.is-built .pane.is-active .pane-name::after,
  .pane:focus-within .pane-name::after{transform:scaleX(1)}
}

/* ── Mobile: one column of full-width poster frames, tap to open. No 3D,
      no parallax, no assembly, no animation of any kind — and never an
      iframe. Two columns cropped every poster to a sliver and wrapped
      every caption; each piece gets the full width instead. ── */
@media (max-width:759px){
  .wall{perspective:none;display:block;margin-top:clamp(20px,4vh,36px)}
  .wall-deck{
    display:grid;grid-template-columns:1fr;
    gap:clamp(34px,6vh,52px);
    max-width:none;transform:none;
  }
  .pane{
    max-width:none;opacity:1!important;
    transform:none!important;transition:none!important;
  }
  .pane-name{min-height:0}
  .pane-name::after{display:none}
  .pane-cap{margin-top:12px}
  .pane-live{display:none}
  .pane-open{display:none}
  .wall-hero{min-height:auto;padding-bottom:clamp(40px,8vh,64px)}
}

/* the act sentinels: zero-height marks main.js reads to flip the ground */
.act{height:0;overflow:hidden}


/* ═══════════════════════════════════════════════════════════
   ACT TWO — PROJECTION
   ═══════════════════════════════════════════════════════════ */

.showroom{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(90px,16vh,190px) var(--pad) clamp(46px,8vh,100px);
}
.showroom-lead{
  font-size:var(--t-lead);line-height:1.3;
  margin-top:clamp(16px,2.8vh,28px);max-width:26ch;
}


/* ── the work, full bleed ── */
.stage{
  position:relative;
  height:100svh;min-height:480px;
  overflow:hidden;
  background:var(--projection);
}

/* Hidden until main.js promotes data-src → src. An iframe with no source
   paints an opaque white box, which would sit on top of the still. */
.stage-fit{display:none;position:absolute;inset:0;z-index:1;overflow:hidden}
.stage.is-live .stage-fit{display:block}

/* 1440px of desktop render, scaled to whatever the stage actually is.
   --k is set per-stage by main.js. */
.build{
  position:absolute;top:0;left:0;
  width:1440px;height:calc(100% / var(--k,1));
  border:0;
  transform-origin:0 0;transform:scale(var(--k,1));
  pointer-events:none;          /* the page owns the scroll, not the frame */
}

/* the base layer: always present, so a phone, a blocked frame or no JS at
   all still shows the build rather than a black hole */
.stage-still{
  position:absolute;inset:0;z-index:0;   /* sits UNDER the frame, not over it */
  width:100%;height:100%;
  object-fit:cover;object-position:top center;
}
/* …but once the live page has loaded, the still retires — an embed whose
   root doesn't paint would double-expose against it. is-loaded is added on
   the frame's load event in main.js. */
.stage.is-loaded .stage-still{visibility:hidden}

/* Solid slates, not scrims — the metadata sits over a light website and has
   to stay legible. Hard edges, one flat fill, no gradient. */
/* These force a projection ground regardless of which act the page is in —
   at the top of the page the act is still proof — so they must carry the
   projection tokens with them. Inheriting --muted here puts the paper grey
   on black at 3.7:1. */
.stage-meta,.stage-tag{
  position:absolute;bottom:0;z-index:2;
  background:var(--projection);color:var(--screen);
  --muted:var(--muted-on-projection);
  --hair:var(--hair-on-projection);
}
.stage-meta{
  left:0;
  max-width:min(94vw,520px);
  padding:clamp(20px,3vw,34px) clamp(22px,3.2vw,40px);
  border-top:var(--hw) solid var(--hair);
  border-right:var(--hw) solid var(--hair);
}
.stage-tag{
  right:0;
  padding:11px clamp(16px,2.4vw,22px);
  border-top:var(--hw) solid var(--hair);
  border-left:var(--hw) solid var(--hair);
}

.proj-name{
  font-size:var(--t-head);
  font-family:var(--display);font-weight:800;
  line-height:.95;letter-spacing:-.01em;
}
/* On the index the project title is the link to its case study. The whole
   stage is not clickable: it holds a live page with its own links in it. */
.proj-link{color:inherit;text-decoration:none}
.proj-link:hover{text-decoration:underline;text-underline-offset:.12em}

.meta{margin-top:clamp(16px,2.6vh,26px)}
.meta div{
  display:flex;justify-content:space-between;gap:16px;
  padding:7px 0;border-top:var(--hw) solid var(--hair);
}
.meta dt{color:var(--muted);flex:none}
.meta dd{text-align:right}

.open{
  display:inline-block;margin-top:clamp(16px,2.6vh,26px);
  color:var(--screen);text-decoration:none;
  padding-bottom:4px;border-bottom:var(--hw) solid var(--hair);
}
.open:hover{border-bottom-color:currentColor}

/* ── Mobile: below the iframe gate (initStages MIN=760) the stage shows a
      still, never the live build. A 100svh cover-crop cut the desktop
      render to a third of its width, so instead the still flows at its
      own aspect ratio and the metadata sits below it rather than over it.
      The "Live build" tag is hidden — it would be claiming something the
      phone deliberately doesn't show; "Open the build" is the honest path. ── */
@media (max-width:759px){
  .stage{height:auto;min-height:0}
  .stage-fit{display:none}
  /* visibility wins over is-loaded: on a phone the still IS the stage,
     even if a wide window loaded the frame before being resized down */
  .stage-still{position:static;height:auto;object-fit:contain;visibility:visible}
  .stage-tag{display:none}
  .stage-meta{
    position:static;max-width:none;
    border-right:0;border-top:0;
    padding:clamp(20px,5vw,34px) clamp(20px,5vw,34px) clamp(24px,6vw,38px);
  }
  .meta div{flex-direction:column;gap:2px}
  .meta dd{text-align:left}
}


/* ═══════════ CASE STUDY ═══════════
   The problem is stated on paper, the work answers it on the screen. The
   act sentinels do the inverting; these are only the type. */

.cs-head{
  max-width:var(--max);margin-inline:auto;
  padding:calc(var(--head-h) + clamp(70px,14vh,170px)) var(--pad) clamp(70px,12vh,150px);
}
/* The problem is the largest type on the page — larger than the studio's own
   name anywhere on it. That is the argument. */
.cs-problem{
  margin-top:clamp(20px,3.4vh,36px);
  font-size:var(--t-head);
  font-family:var(--display);font-weight:800;
  line-height:1.12;letter-spacing:-.01em;
  max-width:20ch;
}
.cs-lead{
  font-size:var(--t-lead);line-height:1.4;
  margin-top:clamp(24px,4vh,44px);max-width:46ch;
}
.cs-note{margin-top:clamp(18px,3vh,32px);max-width:52ch;text-transform:none;letter-spacing:.02em}

.cs-body{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(60px,11vh,130px) var(--pad) clamp(70px,12vh,150px);
}
.cs-list{list-style:none;max-width:82ch;border-top:var(--hw) solid var(--hair)}
.cs-list li{
  border-bottom:var(--hw) solid var(--hair);
  padding:clamp(20px,3vw,34px) 0;
  display:grid;grid-template-columns:minmax(0,9rem) 1fr;
  gap:8px clamp(16px,3vw,40px);align-items:baseline;
}
.cs-v{max-width:56ch}
@media (max-width:640px){
  .cs-list li{grid-template-columns:1fr}
}

.cs-status{margin-bottom:clamp(28px,5vh,52px);text-transform:none;letter-spacing:.02em}


/* ═══════════ PAGE HEADS ═══════════ */
.page-head{
  max-width:var(--max);margin-inline:auto;
  padding:calc(var(--head-h) + clamp(70px,14vh,170px)) var(--pad) clamp(40px,7vh,90px);
}
.page-h{
  font-size:var(--t-head);
  font-family:var(--display);font-weight:800;
  line-height:1.12;letter-spacing:-.01em;
  max-width:16ch;
}
.page-lead{
  font-size:var(--t-lead);line-height:1.4;
  margin-top:clamp(24px,4vh,44px);max-width:46ch;
}
.page-lead a{color:inherit;text-decoration:none;border-bottom:var(--hw) solid var(--hair)}
.page-lead a:hover{border-bottom-color:currentColor}


/* ═══════════ THE CLOSE ═══════════
   Every page ends the same way and in the same place, because every page is
   a first impression for someone who arrived from a link. */
.close{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(80px,14vh,180px) var(--pad) clamp(90px,15vh,180px);
}
.close-h{
  font-size:var(--t-head);
  font-family:var(--display);font-weight:800;
  line-height:.95;letter-spacing:-.01em;
  max-width:15ch;
}
.close-sub{
  font-size:var(--t-lead);line-height:1.3;
  margin-top:clamp(18px,3vh,32px);color:var(--muted);
}
.cta{
  display:inline-flex;align-items:center;gap:11px;
  margin-top:clamp(32px,5.5vh,60px);
  padding:15px 28px;
  background:transparent;color:var(--fg);text-decoration:none;
  border:1px solid var(--fg);
  font-family:var(--mono);font-size:var(--t-mono);
  letter-spacing:.12em;text-transform:uppercase;
  transition:background-color .42s var(--ease), color .42s var(--ease);
}
.cta:hover{background:var(--fg);color:var(--ground)}
.close .alt{display:block;width:max-content;margin-top:clamp(22px,3.6vh,36px)}


/* ── motion ── */
.films{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(70px,12vh,150px) var(--pad) clamp(90px,15vh,180px);
}
/* One disclosure for the whole grid, not one per film — it sits in the
   page head on /motion/, above the inversion. */
.films-sub{margin-top:clamp(14px,2.4vh,24px)}

/* /motion/ opens on paper: enough ground below the heading that the
   projection sentinel starts below the mid-viewport line on load. */
.films-head{padding-bottom:clamp(110px,22vh,260px)}

.grid{
  margin-top:clamp(40px,7vh,92px);
  display:grid;grid-template-columns:repeat(12,1fr);
  column-gap:clamp(16px,2.4vw,40px);
  row-gap:clamp(46px,8vh,96px);
  align-items:start;
}
.film--1{grid-column:1/9}
.film--2{grid-column:9/13;align-self:end}
.film--3{grid-column:3/13}
.film--4{grid-column:1/6;grid-row:span 2}
.film--5{grid-column:6/13}
.film--6{grid-column:6/13}

.frame{
  position:relative;overflow:hidden;
  aspect-ratio:16/9;
  background:var(--projection);
  border:var(--hw) solid var(--hair);
}
.frame--tall{aspect-ratio:9/16}
.frame video{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
}

.film-cap{
  margin-top:13px;
  display:flex;align-items:baseline;justify-content:space-between;
  gap:8px 18px;flex-wrap:wrap;
}
.film-t{
  font-family:var(--display);
  font-size:var(--t-lead);font-weight:600;
  text-transform:none;letter-spacing:-.01em;line-height:1.1;
  color:var(--fg);
}

@media (max-width:900px){
  .film--1,.film--2,.film--3,.film--5,.film--6{grid-column:1/-1}
  .film--4{grid-column:1/-1;grid-row:auto;width:min(76%,340px)}
}


/* ═══════════════════════════════════════════════════════════
   ACT THREE — PROOF
   ═══════════════════════════════════════════════════════════ */

.serv{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(80px,14vh,180px) var(--pad) clamp(60px,10vh,120px);
}
.serv-list{list-style:none;border-top:var(--hw) solid var(--hair)}
.serv-list li{
  border-bottom:var(--hw) solid var(--hair);
  padding:clamp(20px,3vw,38px) 0;
  display:grid;
  grid-template-columns:clamp(24px,3.4vw,64px) 1fr;
  column-gap:clamp(16px,2vw,30px);row-gap:12px;
  align-items:baseline;
}
.serv-rule{
  grid-column:1;grid-row:1;
  height:var(--hw);width:100%;background:var(--muted);align-self:center;
}
.serv-name{
  grid-column:2;grid-row:1;
  font-size:var(--t-head);
  font-family:var(--display);font-weight:700;
  line-height:1;letter-spacing:-.01em;
  transition:transform .7s var(--ease);
}
.serv-del{grid-column:2;grid-row:2;max-width:56ch}
@media (hover:hover){
  /* weight and position, never colour */
  .serv-list li:hover .serv-name{transform:translateX(clamp(8px,1.2vw,20px))}
}


.terms{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(70px,12vh,150px) var(--pad);
}
.terms-list{
  list-style:none;max-width:74ch;
  margin-top:clamp(28px,5vh,54px);
  border-top:var(--hw) solid var(--hair);
}
.terms-list li{
  border-bottom:var(--hw) solid var(--hair);
  padding:clamp(16px,2.4vw,26px) 0;
  display:grid;grid-template-columns:minmax(0,9rem) 1fr;
  gap:8px clamp(16px,3vw,40px);align-items:baseline;
}
.terms-lead{grid-column:1/-1;font-size:var(--t-lead);line-height:1.35}
.terms-one{margin-top:clamp(32px,5vh,60px);color:var(--muted)}
@media (max-width:640px){
  .terms-list li{grid-template-columns:1fr}
}


/* ── contact ── */
.contact{
  max-width:var(--max);margin-inline:auto;
  padding:calc(var(--head-h) + clamp(70px,14vh,170px)) var(--pad) clamp(80px,13vh,160px);
}
.contact-h{
  font-size:var(--t-head);
  font-family:var(--display);font-weight:800;
  line-height:1.12;letter-spacing:-.01em;
  max-width:15ch;
}

/* Pricing: definition rows, not a table and not a box. Hairline rules,
   right-aligned tabular figures. */
.price{
  margin-top:clamp(26px,4.4vh,48px);
  max-width:560px;
  border-top:var(--hw) solid var(--hair);
}
.price>div{
  display:flex;justify-content:space-between;align-items:baseline;
  gap:clamp(20px,4vw,48px);
  padding:13px 0;
  border-bottom:var(--hw) solid var(--hair);
}
.price dd{text-align:right;white-space:nowrap;color:var(--fg)}
.price-note{margin-top:clamp(18px,3vh,30px)}
.price-note a{color:inherit;text-decoration:none;border-bottom:var(--hw) solid var(--hair)}
.price-note a:hover{border-bottom-color:currentColor}

.form{margin-top:clamp(40px,7vh,84px);max-width:900px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.f-row{display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(20px,3vw,44px)}
/* Two columns puts each field at ~157px on a 375px phone. Nobody types an
   email address into that. */
@media (max-width:640px){
  .f-row{grid-template-columns:1fr}
  .f--spacer{display:none}
}
.f{display:flex;flex-direction:column;margin-bottom:clamp(20px,3vh,32px)}
.f--wide{margin-bottom:clamp(24px,3.4vh,36px)}
.f label{margin-bottom:10px}
.opt{text-transform:none;letter-spacing:.04em}

input,select,textarea{
  width:100%;
  font-family:var(--body-face);font-size:var(--t-body);
  color:var(--fg);background:transparent;
  border:0;border-bottom:var(--hw) solid var(--hair);
  border-radius:0;                 /* kill the UA's rounded control chrome */
  padding:10px 0;
  transition:border-color .42s var(--ease);
}
textarea{resize:vertical;min-height:120px;line-height:1.5}
input:focus,select:focus,textarea:focus{border-bottom-color:var(--fg)}

.sel{position:relative;display:block}
.sel select{appearance:none;padding-right:26px;cursor:pointer}
.sel::after{
  content:"";position:absolute;pointer-events:none;
  right:3px;top:50%;width:7px;height:7px;
  border-right:1px solid var(--muted);
  border-bottom:1px solid var(--muted);
  transform:translateY(-75%) rotate(45deg);
}

/* A validation error is a correction, so it is allowed the red. */
.err{
  font-family:var(--mono);font-size:var(--t-mono);
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--red);margin-top:8px;
}
.err:empty{display:none}
[aria-invalid="true"]{border-bottom-color:var(--red)}

.f-foot{
  display:flex;align-items:center;flex-wrap:wrap;
  gap:clamp(16px,3vw,36px);
  margin-top:clamp(8px,1.6vh,18px);
}
.send{
  display:inline-flex;align-items:center;gap:11px;
  padding:15px 28px;cursor:pointer;
  background:transparent;color:var(--fg);
  border:1px solid var(--fg);border-radius:0;
  font-family:var(--mono);font-size:var(--t-mono);
  letter-spacing:.12em;text-transform:uppercase;
  transition:background-color .42s var(--ease), color .42s var(--ease);
}
.send:hover{background:var(--fg);color:var(--ground)}
.send[disabled]{opacity:.5;cursor:default}
.mark--caret{width:9px;height:13px;flex:none}

.alt{
  color:var(--muted);text-decoration:none;
  padding-bottom:3px;border-bottom:var(--hw) solid var(--hair);
}
.alt:hover{border-bottom-color:currentColor}

.status{margin-top:clamp(18px,3vh,30px);line-height:1.6}
.status:empty{display:none}
.status[data-state="err"]{color:var(--red)}


/* ── footer ── */
.foot{
  max-width:var(--max);margin-inline:auto;
  padding:clamp(40px,7vh,80px) var(--pad) clamp(34px,5vh,56px);
  border-top:var(--hw) solid var(--hair);
  display:flex;flex-direction:column;gap:8px;
}
.foot a{color:inherit;text-decoration:none;border-bottom:var(--hw) solid var(--hair)}
.foot a:hover{border-bottom-color:currentColor}


/* ═══════════════════════════════════════════════════════════
   REVEAL — opacity plus a 12px rise, 500ms, 40ms stagger.
   Opt-IN via [data-anim="on"], which main.js sets only after it has
   proved the animation clock advances. No JS, a frozen clock or a
   dropped IntersectionObserver all leave the copy simply visible.
   ═══════════════════════════════════════════════════════════ */
[data-anim="on"] .rise{opacity:0;transform:translateY(12px)}
[data-anim="on"] .rise.in{
  opacity:1;transform:none;
  transition:opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay:calc(var(--i,0) * 40ms);
}


/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — a complete path, not a degraded one.
   Every word present, marks drawn, inversions instant, films paused
   on their posters.
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  :root,body{transition:none}

  [data-anim="on"] .rise,
  [data-anim="on"] .rise.in{
    opacity:1;transform:none;transition:none;
  }
  [data-anim="on"] .mark use{stroke-dashoffset:0}
  [data-anim="on"] .mark.drawn use{animation:none}

  .head,.serv-name,.send,.cta,input,select,textarea{transition:none}

  /* The wall stands still and upright — the room without the motion.
     main.js never wires the parallax or hit-testing here, so the deck's
     --px/--py stay zero; transform:none makes it explicit anyway. */
  .wall{perspective:none}
  .wall-deck{transform:none}
  .pane,
  .wall.is-built .pane,
  .wall.is-built .pane:focus-within,
  .wall.is-built .pane.is-active,
  .wall.is-built.has-active .pane:not(.is-active):not(:focus-within){
    transform:none;opacity:1;transition:none;
  }
  .pane-name::after{transition:none}
  .pane-open,.pane-arw{transition:none}
  .pane-still,.pane-cap .muted,.brand,.nav a::after{transition:none}
  .pane:focus-within .pane-still{transform:none}
}
