/* ══════════════════════════════════════════════════════════════
   GATHERA — Software Design Studio
   Bright, classy, quietly technical. A five-panel horizontal deck
   with the studio's shipped work drifting behind it.
   ══════════════════════════════════════════════════════════════ */

:root{
  /* palette — Gathera gradient on considered paper */
  --sky:#38BDF8;
  --blue:#2E7CF6;
  --violet:#7C3AED;
  --grad:linear-gradient(135deg,var(--sky) 0%,var(--blue) 46%,var(--violet) 100%);

  --paper:#F6F7F9;
  --paper-2:#FFFFFF;
  --ink:#12141A;
  --ink-2:#3A404B;
  --muted:#767D8A;
  --hair:rgba(18,20,26,.10);
  --hair-2:rgba(18,20,26,.06);

  --disp:'Poppins',-apple-system,'Avenir Next',system-ui,sans-serif;
  --body:'Inter',-apple-system,system-ui,sans-serif;
  --mono:'Space Mono','SF Mono',ui-monospace,monospace;

  --ease:cubic-bezier(.22,1,.36,1);
  --ease-soft:cubic-bezier(.4,.14,.3,1);

  --gutter:clamp(22px,5.2vw,92px);
  --bar:clamp(58px,7vh,78px);
}

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

html,body{margin:0;padding:0}

/* The page really scrolls — a tall, invisible track (height set by the
   controller) gives the browser its own physics, and everything you can
   see rides fixed above it, driven by --pos. */
html{
  /* the canvas itself carries the page's lit-paper look, so the iOS
     rubber-band reveals the same world instead of a dead flat grey */
  /* the canvas itself carries the lit-paper look, so the iOS rubber-band
     reveals the same world — and on touch this REPLACES the body::before
     layer entirely, since a root background is painted, not composited */
  background:
    radial-gradient(1100px 700px at 12% 6%,  rgba(56,189,248,.15), transparent 62%),
    radial-gradient(900px 640px at 88% 34%,  rgba(124,58,237,.10), transparent 60%),
    radial-gradient(760px 520px at 62% 12%,  rgba(255,244,226,.42), transparent 66%),
    var(--paper);
  overflow-x:hidden;
  /* a horizontal trackpad swipe belongs to the deck, not the browser's
     back gesture — the controller maps it onto the scroll */
  overscroll-behavior-x:none;
  scrollbar-width:none;                 /* the rail is the scrollbar here */
}
html::-webkit-scrollbar{display:none}

/* nothing travels while the loader owns the screen, or under the portal */
html:has(body.is-loading),html.is-locked{overflow:hidden}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;
}

/* nothing paints here — but the boxes must stay "visible" so WebKit
   reliably derives the touch snap areas from the sentinels inside */
.track{width:1px;pointer-events:none}
.track i{display:block}

/* the warm/cool light that makes the paper feel lit, not flat */
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(1100px 700px at 12% 8%,  rgba(56,189,248,.14), transparent 62%),
    radial-gradient(900px 640px at 88% 84%,  rgba(124,58,237,.11), transparent 60%),
    radial-gradient(760px 520px at 62% 12%,  rgba(255,244,226,.55), transparent 66%);
}
/* the faintest grain so large flats never band */
body::after{
  content:"";position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.30;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ── ambient light, moving against the journey ──────────────────
   Two vast colour fields drift a few viewport-widths over the whole
   five-panel travel — the slowest layer of the parallax stack, so the
   paper itself feels lit by something that's alive. */
.glow{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.glow i{
  position:absolute;display:block;border-radius:50%;
  will-change:translate;
  transition:opacity 1.4s var(--ease);
}
.glow__a{
  width:88vmax;height:88vmax;left:-30vmax;top:-40vmax;
  background:radial-gradient(circle,rgba(56,189,248,.17),rgba(56,189,248,0) 62%);
  translate:calc(var(--pos,0) * -7vw) calc(var(--pos,0) * 2.6vh);
}
.glow__b{
  width:82vmax;height:82vmax;right:-34vmax;bottom:-42vmax;
  background:radial-gradient(circle,rgba(124,58,237,.14),rgba(124,58,237,0) 62%);
  translate:calc(var(--pos,0) * 5vw) calc(var(--pos,0) * -2.2vh);
  opacity:.8;
}
body.at-end .glow__b{opacity:1}
body.at-work .glow__a{opacity:.6}

img{max-width:100%;display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}

:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}


/* ══════════════════════════════════════════════════════════════
   LOADER — colour gathers, the mark focuses, "app" locks on
   ══════════════════════════════════════════════════════════════ */

.loader{
  position:fixed;inset:0;z-index:100;
  display:grid;place-items:center;
  background:var(--paper);
  transition:opacity .7s var(--ease),transform .9s var(--ease),visibility 0s .9s;
}
body.is-done .loader{
  opacity:0;visibility:hidden;transform:translateY(-3%) scale(1.03);
  /* it out-lived its own fade and ate taps on the CTA and rail for ~200ms
     while fully invisible */
  pointer-events:none;
}

.loader__lockup{
  position:relative;z-index:1;
  display:grid;justify-items:center;gap:0;transform:translateY(-2vh);
}

/* — the colour field: four soft masses drift in from the edges and gather — */
.lfield{position:absolute;inset:0;overflow:hidden;pointer-events:none}

.lorb{
  position:absolute;left:50%;top:50%;display:block;
  width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius:50%;
  filter:blur(var(--b));
  opacity:0;
  transform:translate3d(var(--fx),var(--fy),0) scale(1.5);
  will-change:transform,opacity,filter;
}
body.is-loading .lorb{animation:drawIn 1500ms var(--ease-soft) forwards}

@keyframes drawIn{
  0%   {opacity:0;   transform:translate3d(var(--fx),var(--fy),0) scale(1.5)}
  26%  {opacity:.92}
  100% {opacity:.62; transform:translate3d(var(--tx),var(--ty),0) scale(.82)}
}

/* they keep breathing under the lockup so the frame is never dead */
body.is-loading .lfield{animation:fieldSettle 1600ms var(--ease) 1200ms forwards}
@keyframes fieldSettle{to{opacity:.5;transform:scale(.9)}}

.lorb--sky   {--s:46vmin;--b:64px;--fx:-78vw;--fy:-30vh;--tx:-11vmin;--ty:-9vmin;
              background:radial-gradient(circle,var(--sky),rgba(56,189,248,0) 70%);animation-delay:0ms}
.lorb--blue  {--s:52vmin;--b:72px;--fx: 82vw;--fy:-22vh;--tx: 10vmin;--ty:-6vmin;
              background:radial-gradient(circle,var(--blue),rgba(46,124,246,0) 70%);animation-delay:90ms}
.lorb--violet{--s:44vmin;--b:68px;--fx: 62vw;--fy: 44vh;--tx:  7vmin;--ty: 10vmin;
              background:radial-gradient(circle,var(--violet),rgba(124,58,237,0) 70%);animation-delay:170ms}
.lorb--warm  {--s:40vmin;--b:60px;--fx:-66vw;--fy: 40vh;--tx: -8vmin;--ty:  8vmin;
              background:radial-gradient(circle,#FFE9C4,rgba(255,233,196,0) 70%);animation-delay:240ms}

/* — the mark pulls into focus out of the blur — */
.mark{position:relative;width:104px;height:104px}

.mark__wash{
  position:absolute;inset:0;border-radius:28px;background:var(--grad);
  opacity:0;transform:scale(1.42);filter:blur(26px);
  box-shadow:0 18px 44px -14px rgba(46,124,246,.5);
}
body.is-loading .mark__wash{animation:focusIn 900ms var(--ease) 780ms forwards}
@keyframes focusIn{
  0%  {opacity:0;transform:scale(1.42);filter:blur(26px)}
  40% {opacity:1}
  100%{opacity:1;transform:scale(1);   filter:blur(0)}
}

.mark__g{
  position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--disp);font-weight:700;font-size:56px;line-height:1;
  color:#fff;letter-spacing:-.03em;
  opacity:0;transform:translateY(8px);filter:blur(8px);
}
body.is-loading .mark__g{animation:sharpen 560ms var(--ease) 1300ms forwards}

/* — the wordmark resolves, then "app" locks on — */
.loader__word{
  /* no flex here, on purpose. iOS Safari floats the gradient span half a
     cap above the wordmark when these are flex items under Reduce Motion
     (a synthesized-baseline quirk on real iPhones). Plain text flow with
     top-aligned inline-blocks of identical metrics cannot disagree about
     where the line is — in any engine, in any animation state. */
  margin-top:32px;text-align:center;
  font-family:var(--disp);font-weight:600;
  font-size:clamp(30px,4.6vw,46px);line-height:1.14;
}
.wm{display:inline-block;vertical-align:top;opacity:0;white-space:pre}

.wm:first-child{
  color:var(--ink);letter-spacing:.34em;transform:translateY(10px);filter:blur(14px);
}
body.is-loading .wm:first-child{animation:resolve 860ms var(--ease) 1500ms forwards}
@keyframes resolve{
  0%  {opacity:0;letter-spacing:.34em; transform:translateY(10px);filter:blur(14px)}
  100%{opacity:1;letter-spacing:-.028em;transform:translateY(0);  filter:blur(0)}
}

/* The half that makes it ours — and un-confusable with every other Gathera.
   NOTE: no `filter` here on purpose. Animating filter on a background-clip:text
   element makes it render blank on iOS Safari — which showed as the wordmark
   "half loading" (Gathera arrived, app never did). Opacity + transform only. */
.wm--app{
  letter-spacing:-.028em;transform:translateX(26px);
  background:var(--grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  will-change:opacity,transform;
}
body.is-loading .wm--app{animation:lockOn 680ms var(--ease) 2140ms forwards}
@keyframes lockOn{
  0%  {opacity:0;transform:translateX(26px)}
  100%{opacity:1;transform:translateX(0)}
}

.loader__rule{margin-top:30px;height:1px;width:0;background:var(--hair)}
body.is-loading .loader__rule{animation:ruleOut 680ms var(--ease) 2520ms forwards}
@keyframes ruleOut{to{width:min(300px,48vw)}}

.loader__tag{
  margin-top:22px;
  font-family:var(--mono);font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--muted);opacity:0;transform:translateY(7px);
}
body.is-loading .loader__tag{animation:riseIn 560ms var(--ease) 2680ms forwards}

@keyframes riseIn {to{opacity:1;transform:translateY(0)}}
@keyframes sharpen{to{opacity:1;transform:translateY(0);filter:blur(0)}}

/* Touch devices: four 50vmin blurred masses plus an animating letter-spacing is
   more than a mobile GPU should be asked for. Gated on pointer as well as width —
   the touch layout switches on (hover:none)/(pointer:coarse), so a phone in
   landscape or any iPad was getting the expensive desktop loader. */
@media (max-width:720px), (hover:none) and (pointer:coarse){
  /* bigger and softer on a small screen, so the colour reads as light
     filling the room rather than four discs sitting on paper */
  .lorb{filter:blur(46px)}
  .lorb--sky   {--s:76vmin}
  .lorb--blue  {--s:84vmin}
  .lorb--violet{--s:74vmin}
  .lorb--warm  {--s:66vmin}
  /* and they settle brighter — on desktop this wash sits behind a much
     larger lockup and can afford to be fainter */
  @keyframes drawIn{
    0%   {opacity:0;   transform:translate3d(var(--fx),var(--fy),0) scale(1.5)}
    26%  {opacity:1}
    100% {opacity:.80; transform:translate3d(var(--tx),var(--ty),0) scale(.88)}
  }
  @keyframes fieldSettle{to{opacity:.68;transform:scale(.94)}}

  /* letter-spacing animates layout on every frame — drop it on small screens
     and let opacity + rise carry the reveal */
  .wm:first-child{letter-spacing:-.028em;filter:none}
  @keyframes resolve{
    0%  {opacity:0;transform:translateY(10px)}
    100%{opacity:1;transform:translateY(0)}
  }
  .mark__g{filter:none}
  @keyframes sharpen{to{opacity:1;transform:translateY(0)}}
}


/* ══════════════════════════════════════════════════════════════
   APP FIELD — the shipped work, drifting behind everything
   ══════════════════════════════════════════════════════════════ */

.appfield{position:fixed;inset:0;z-index:2;pointer-events:none;overflow:hidden}

.appfield__inner{
  position:absolute;inset:0;
  /* the field parades WITH the journey, slower than the deck — depth you
     can read. The pointer counter-drift (--mxf/--myf) breathes on top.
     `translate` is rewritten every frame, so it must never be in the
     transition list below; skew carries the scroll's velocity, leaning
     the whole field a hair into the direction of travel.
     NO filter here, ever: a filter on this layer re-blurs a surface
     nearly three viewports wide on every frame the phones move inside
     it — that single rule was the scroll jitter on phones and Retina
     desktops. The hum lives per-screen below, where each little raster
     is cached and simply composited. */
  translate:calc(var(--pos,0) * -14vw + var(--mxf,0px)) var(--myf,0px);
  transform:skewX(calc(var(--vel,0) * -1.6deg));
  will-change:translate,transform;
}

/* paper wash — keeps everything sitting *under* the page, not on it */
.appfield__veil{
  position:absolute;inset:0;
  background:var(--paper);
  opacity:.60;
  transition:opacity 1.1s var(--ease);
}
body.at-work .appfield__veil{opacity:0}

/* editorial scrim — the reading side of the page stays clean paper */
.appfield__scrim{
  position:absolute;inset:0;
  background:linear-gradient(97deg,
    var(--paper) 0%,
    rgba(246,247,249,.96) 22%,
    rgba(246,247,249,.72) 44%,
    rgba(246,247,249,.34) 68%,
    rgba(246,247,249,.46) 100%);
  transition:opacity 1.1s var(--ease);
}
body.at-work .appfield__scrim{opacity:.30}

.ph{
  position:absolute;margin:0;
  left:calc(var(--x) * 1vw);
  top:calc(var(--y) * 1vh);
  width:clamp(96px,10.2vw,158px);
  display:flex;flex-direction:column;gap:10px;

  /* --pos is rewritten every scroll frame, so whatever carries it must NOT be
     transitioned — a 1.1s ease retargeted 60×/sec never arrives, and the figures
     trailed the container by ~20px and kept drifting half a second after the
     finger lifted. Parallax therefore lives in `translate` (outermost, so it
     stays in the parent's coordinate space) and is deliberately absent from the
     transition list below.
     Depth does two things at once: near screens (--d → 1) travel faster than
     far ones, and each shelf shears a little vertically, so the field reads as
     space, not wallpaper. Combined with the container this puts every screen
     between .40× and .66× of the deck's speed. */
  translate:calc(var(--pos,0) * var(--d) * -26vw)
            calc(var(--pos,0) * (var(--d) - .78) * 7vh);

  /* the at-work step-forward — these only change when the panel changes,
     so they're safe (and desirable) to ease */
  transform:translate3d(0,var(--pull,0px),0);
  rotate:calc(var(--rot) * 1deg);
  scale:calc(.78 + var(--d) * .22);
  opacity:calc(.40 + var(--d) * .24);
  transition:opacity 1.1s var(--ease),transform 1.1s var(--ease),
             rotate 1.1s var(--ease),scale 1.1s var(--ease);
  will-change:translate,transform;
}
.ph--lo{flex-direction:column-reverse}

/* on the Work panel the two shelves step toward the middle and come into focus */
body.at-work .ph{
  opacity:calc(.84 + var(--d) * .16);
  rotate:calc(var(--rot) * .5deg);
  scale:calc(.90 + var(--d) * .20);
}
body.at-work .ph--hi{--pull:8vh}
body.at-work .ph--lo{--pull:-8vh}

.ph__screen{
  position:relative;display:block;border-radius:20px;overflow:hidden;
  background:#0E1116;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 2px 5px rgba(18,22,32,.07),
    0 22px 44px -18px rgba(18,22,32,.30);
  outline:1px solid rgba(18,20,26,.14);
  outline-offset:-1px;
  /* the soft-focus hum, cached per screen — cheap to carry, and only
     re-rendered during the 1.1s at-work step-forward */
  filter:blur(1.5px) saturate(.62);
  transition:box-shadow 1s var(--ease),filter 1.1s var(--ease);
}
body.at-work .ph__screen{
  filter:blur(0) saturate(1);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 3px 8px rgba(18,22,32,.10),
    0 40px 72px -26px rgba(18,22,32,.42);
}
.ph__screen img{width:100%;aspect-ratio:430/932;object-fit:cover;object-position:top center}

/* a soft page-light across the glass so they read as objects, not stickers */
.ph__screen::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(148deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,0) 34%,rgba(255,255,255,0) 74%,rgba(255,255,255,.13) 100%);
}


/* the gentle life — a slow breath, staggered */
@media (prefers-reduced-motion:no-preference){
  .ph__screen{animation:breathe 11s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -1.3s)}
  @keyframes breathe{from{transform:translateY(-7px)}to{transform:translateY(7px)}}
}


/* ══════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════ */

.topbar{
  position:fixed;z-index:20;top:0;left:0;right:0;height:var(--bar);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 var(--gutter);
  opacity:0;transform:translateY(-10px);
  transition:opacity .8s var(--ease) .15s,transform .8s var(--ease) .15s;
  isolation:isolate;
}
/* a whisper of paper so the bar always reads, whatever drifts behind it */
.topbar::before,.rail::before{
  content:"";position:absolute;left:0;right:0;height:calc(var(--bar) + 26px);
  pointer-events:none;z-index:-1;
}
.topbar::before{
  top:0;
  background:linear-gradient(180deg,var(--paper) 0%,rgba(246,247,249,.88) 46%,rgba(246,247,249,0) 100%);
}
.rail::before{
  bottom:0;
  background:linear-gradient(0deg,var(--paper) 0%,rgba(246,247,249,.88) 46%,rgba(246,247,249,0) 100%);
}
body.is-done .topbar{opacity:1;transform:none}

.brand{display:flex;align-items:center;gap:11px}
.brand__tile{
  width:30px;height:30px;border-radius:9px;background:var(--grad);
  display:grid;place-items:center;color:#fff;
  font-family:var(--disp);font-weight:700;font-size:16px;line-height:1;letter-spacing:-.03em;
  box-shadow:0 5px 14px -5px rgba(46,124,246,.62);
}
.brand__word{font-family:var(--disp);font-weight:600;font-size:17px;letter-spacing:-.025em}
/* the wordmark is one locked word — 'app' is the half that makes it ours */
.brand__word b{font-weight:600;background:var(--grad);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

.chapters{display:flex;gap:4px}
.chapters button{
  position:relative;
  padding:7px 13px;border-radius:999px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);
  transition:color .4s var(--ease),background .4s var(--ease);
}
.chapters button b{font-weight:700;opacity:.5;margin-right:5px}
.chapters button:hover{color:var(--ink)}
.chapters button[aria-current="true"]{color:var(--ink);background:rgba(18,20,26,.045)}
.chapters button[aria-current="true"] b{opacity:1;background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;font-family:var(--body);font-weight:500;
  background:var(--ink);color:#fff;
  transition:transform .45s var(--ease),box-shadow .45s var(--ease),background .45s var(--ease);
  box-shadow:0 8px 22px -10px rgba(18,20,26,.5);
}
.btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px -12px rgba(18,20,26,.55)}
.btn--sm{padding:9px 18px;font-size:13px}
.btn--lg{padding:15px 30px;font-size:15px}
.btn--ghost{
  background:transparent;color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--hair);
}
.btn--ghost:hover{box-shadow:inset 0 0 0 1px rgba(18,20,26,.24);transform:translateY(-2px)}


/* ══════════════════════════════════════════════════════════════
   THE DECK
   ══════════════════════════════════════════════════════════════ */

.deck{
  position:fixed;inset:0;z-index:10;
  display:flex;width:500vw;
  transform:translate3d(calc(var(--pos,0) * -100vw),0,0);
  will-change:transform;
  pointer-events:none;
}

.panel{
  position:relative;flex:0 0 100vw;
  /* --off is this panel's signed distance from the reader, in panels.
     Every layer inside multiplies it by its own depth (--pd), which is
     the whole parallax: type, photos and lists fan apart while a panel
     travels and knit back together as it lands. */
  --off:calc(var(--k,0) - var(--pos,0));
  display:grid;align-items:center;
  padding:calc(var(--bar) + 2vh) var(--gutter)
          calc(var(--bar) + 3vh + env(safe-area-inset-bottom, 0px));
  pointer-events:auto;
  /* on the panel, not the deck — the deck is pointer-events:none, and
     touch-action is ignored on anything that can't receive the touch.
     pan-y: vertical gestures scroll the page; the deck does the travelling. */
  touch-action:pan-y;
}

.wrap{width:100%;max-width:1180px;margin:0 auto}

/* every element carrying data-r rises in when its panel becomes active */
[data-r]{
  opacity:0;transform:translateY(26px);
  transition:opacity .85s var(--ease),transform .85s var(--ease);
  transition-delay:calc(var(--r,0) * 0ms);
  /* the parallax lane. `translate` is scrubbed every frame from --off, so
     it lives outside the transitioned `transform` above — the reveal rises
     while the layer fans, and neither ever waits on the other. Depth
     (--pd) is set per element below: small = planted, large = drifting. */
  translate:calc(var(--off,0) * var(--pd,.8) * 9vw) 0;
  will-change:translate;
}
/* JS mirrors data-r onto --r so the stagger is one clean calc */
.panel.is-active [data-r]{
  opacity:1;transform:none;
  transition-delay:calc(var(--r,1) * 95ms);
}

/* ── the depth table ─────────────────────────────────────────────
   How far each layer hangs behind the panel it belongs to. The big
   display type moves least — it feels bolted to the page — while
   kickers, lists and photos trail progressively deeper. Together with
   the deck (1×) and the app field (~.4–.66×) this gives every swipe
   five to nine distinct speeds of travel. */
.eyebrow{--pd:1.04}
.display{--pd:.52}
.lead{--pd:.78}
.lead--tight{--pd:.9}
.openmeta,.values,.actions{--pd:.94}
.cue{--pd:1.14}
.fineprint{--pd:1.0}
.craft-shot{--pd:1.22}
.moves li:nth-child(1){--pd:.62}
.moves li:nth-child(2){--pd:.80}
.moves li:nth-child(3){--pd:.98}
.moves li:nth-child(4){--pd:1.16}
.us__art{--pd:1.18}

/* grace note: the small studio photo leads the big one.
   (The gradient word stays plain inline — an inline-block here shrinks
   the background-clip:text paint box and beheads the g's descender.) */
.shot--b{translate:calc(var(--off,0) * 2vw) 0}


/* — shared type — */
.eyebrow{
  margin:0 0 26px;
  font-family:var(--mono);font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--muted);
}
.eyebrow::before{
  content:"";display:inline-block;vertical-align:middle;
  width:26px;height:1px;background:var(--grad);margin-right:12px;
}

.display{
  margin:0;font-family:var(--disp);font-weight:600;
  font-size:clamp(40px,7.4vw,96px);line-height:.99;letter-spacing:-.038em;
  color:var(--ink);
}
.display--md{font-size:clamp(34px,5.4vw,68px);letter-spacing:-.032em}
.display em{
  font-style:normal;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
}

.lead{
  margin:30px 0 0;max-width:60ch;
  font-size:clamp(15px,1.32vw,19px);line-height:1.68;font-weight:300;
  color:var(--ink-2);
}
.lead--tight{margin-top:22px;max-width:52ch}


/* ── 01 open ─────────────────────────────────────────── */
.panel--open .wrap{max-width:1080px}

.openmeta{
  margin-top:34px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);
}
.dotsep{width:4px;height:4px;border-radius:50%;background:var(--grad);flex:none}

.cue{
  margin:56px 0 0;display:flex;align-items:center;gap:14px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--muted);
}
.cue__line{
  display:block;width:52px;height:1px;background:var(--hair);position:relative;overflow:hidden;
}
.cue__line::after{
  content:"";position:absolute;inset:0;width:18px;background:var(--grad);
  animation:cueRun 2.4s var(--ease-soft) infinite;
}
@keyframes cueRun{0%{transform:translateX(-20px)}100%{transform:translateX(56px)}}


/* ── 02 craft ────────────────────────────────────────── */
/* the header shares its line with one frame of the room the work comes out of */
.craft-top{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.68fr);
  gap:clamp(24px,4vw,64px);align-items:center;
}
.craft-head{min-width:0}
.craft-shot{
  margin:0;overflow:hidden;border-radius:16px;background:#E8EAEE;position:relative;
  height:clamp(150px,23vh,248px);
  box-shadow:0 2px 6px rgba(18,22,32,.07),0 30px 58px -26px rgba(18,22,32,.42);
  outline:1px solid rgba(255,255,255,.85);outline-offset:-1px;
}
.craft-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.moves{
  list-style:none;margin:44px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--hair-2);
  border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);
}
.moves li{
  /* solid-ish paper, no backdrop blur — live backdrop sampling re-blurs
     whatever drifts behind these four cards on every scrolled frame */
  background:rgba(255,255,255,.80);
  padding:34px 26px 38px;
  transition:background .5s var(--ease),transform .5s var(--ease);
}
.moves li:hover{background:rgba(255,255,255,.95);transform:translateY(-3px)}
.moves__n{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.2em;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;font-weight:700;
}
.moves h3{
  margin:16px 0 12px;font-family:var(--disp);font-weight:600;
  font-size:clamp(19px,1.9vw,25px);letter-spacing:-.025em;
}
.moves p{margin:0;font-size:14.5px;line-height:1.66;font-weight:300;color:var(--ink-2)}


/* ── 03 work ─────────────────────────────────────────── */
.panel--work{align-items:center}
.wrap--work{max-width:588px;margin:0;position:relative;z-index:1}
/* the work comes into focus behind — this keeps its column of paper clean.
   it lives on the panel, not the copy, so its box edges are the viewport's
   and can never show as a seam. */
.panel--work::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(58% 72% at 22% 50%,
    var(--paper) 34%, rgba(246,247,249,.88) 56%, rgba(246,247,249,0) 84%);
}

/* panel 03 names nothing — the work speaks by being visible, not labelled */
.panel--work .lead--tight{
  margin-top:20px;
  padding-left:16px;border-left:2px solid transparent;
  border-image:var(--grad) 1;border-image-slice:1;border-top:0;border-right:0;border-bottom:0;
  color:var(--ink);
}


/* ── 04 us ───────────────────────────────────────────── */
.wrap--us{
  max-width:1280px;
  display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:clamp(30px,5vw,84px);align-items:center;
}
.us__copy{min-width:0}

.values{
  list-style:none;margin:34px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px;
}
.values li{
  padding:7px 15px;border-radius:999px;
  background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1px var(--hair);
  font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink-2);
}

.us__art{
  position:relative;min-width:0;
  height:min(60vh,520px);
}
.shot{
  position:absolute;margin:0;overflow:hidden;border-radius:16px;
  background:#E8EAEE;
  box-shadow:0 2px 6px rgba(18,22,32,.07),0 34px 66px -26px rgba(18,22,32,.42);
  outline:1px solid rgba(255,255,255,.85);outline-offset:-1px;
  transform:translate3d(calc(var(--mx,0) * var(--pd,1) * 1px),calc(var(--my,0) * var(--pd,1) * 1px),0);
  transition:transform .9s var(--ease-soft),box-shadow .6s var(--ease);
}
/* absolute fill rather than height:100% — an aspect-ratio box isn't a
   definite height for a percentage child, and the photo collapses */
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shot:hover{box-shadow:0 4px 10px rgba(18,22,32,.09),0 44px 80px -26px rgba(18,22,32,.5)}

.shot--a{--pd:1.0;left:0;top:2%;width:70%;height:78%;z-index:2}
.shot--b{--pd:2.2;right:0;bottom:2%;width:48%;height:52%;z-index:3}

/* the quiet nod to the creative wing */
.lb-link{
  font-weight:500;color:var(--ink);
  background-image:var(--grad);background-repeat:no-repeat;
  background-size:100% 1px;background-position:0 92%;
  transition:background-size .45s var(--ease),color .45s var(--ease);
}
.lb-link span{font-size:.78em;margin-left:3px;opacity:.55;vertical-align:1px}
.lb-link:hover{background-size:100% 2px}


/* ── 05 start ────────────────────────────────────────── */
.panel--start .wrap{max-width:960px}
.actions{margin-top:42px;display:flex;gap:12px;flex-wrap:wrap}
.fineprint{
  margin:52px 0 0;
  font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted);
}


/* ══════════════════════════════════════════════════════════════
   RAIL
   ══════════════════════════════════════════════════════════════ */

.rail{
  position:fixed;z-index:20;left:0;right:0;bottom:0;
  height:calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:0 var(--gutter) env(safe-area-inset-bottom, 0px);isolation:isolate;
  opacity:0;transform:translateY(10px);
  transition:opacity .8s var(--ease) .3s,transform .8s var(--ease) .3s;
}
body.is-done .rail{opacity:1;transform:none}

.rail__progress{
  position:absolute;left:0;right:0;top:0;height:1px;background:var(--hair-2);
}
.rail__progress i{
  display:block;height:100%;width:100%;background:var(--grad);
  /* live scrub — the hairline is the page's real scrollbar, filling
     continuously with --pos rather than stepping panel by panel */
  transform:scaleX(calc((var(--pos,0) + 1) / 5));transform-origin:left;
  will-change:transform;
}

.rail__dots{display:flex;gap:9px;align-items:center}
.rail__dots button{
  width:7px;height:7px;border-radius:50%;
  background:rgba(18,20,26,.18);
  transition:width .5s var(--ease),background .5s var(--ease);
}
.rail__dots button:hover{background:rgba(18,20,26,.4)}
.rail__dots button[aria-current="true"]{width:26px;border-radius:999px;background:var(--grad)}

.rail__hint{
  margin:0;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted);
  transition:opacity .6s var(--ease);
}
.rail__hint kbd{
  font-family:var(--mono);font-size:10px;
  padding:1px 4px;margin-left:2px;border-radius:3px;
  box-shadow:inset 0 0 0 1px var(--hair);
}
body.at-end .rail__hint{opacity:.35}


/* ══════════════════════════════════════════════════════════════
   CONTACT PORTAL
   ══════════════════════════════════════════════════════════════ */

.portal{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:5vh 5vw}
.portal[hidden]{display:none}

.portal__scrim{
  position:absolute;inset:0;
  background:rgba(226,229,234,.62);
  backdrop-filter:blur(14px) saturate(1.1);-webkit-backdrop-filter:blur(14px) saturate(1.1);
  opacity:0;transition:opacity .5s var(--ease);
}
.portal.is-open .portal__scrim{opacity:1}

.portal__card{
  position:relative;width:min(560px,100%);max-height:90vh;max-height:90dvh;overflow-y:auto;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding:clamp(28px,4vw,46px);border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 2px 8px rgba(18,22,32,.06),0 50px 90px -30px rgba(18,22,32,.45);
  outline:1px solid rgba(255,255,255,.9);outline-offset:-1px;
  opacity:0;transform:translateY(22px) scale(.98);
  transition:opacity .55s var(--ease),transform .55s var(--ease);
}
.portal.is-open .portal__card{opacity:1;transform:none}
/* the brand hairline across the top edge */
.portal__card::before{
  content:"";position:absolute;left:0;right:0;top:0;height:3px;
  border-radius:22px 22px 0 0;background:var(--grad);
}

.portal__x{
  position:absolute;top:16px;right:18px;width:34px;height:34px;border-radius:50%;
  font-size:22px;line-height:1;color:var(--muted);
  transition:background .35s var(--ease),color .35s var(--ease);
}
.portal__x:hover{background:rgba(18,20,26,.06);color:var(--ink)}

.portal__title{
  margin:0 0 26px;font-family:var(--disp);font-weight:600;
  font-size:clamp(26px,3.4vw,38px);line-height:1.04;letter-spacing:-.032em;
}

.portal__form{display:grid;gap:16px}
.field{display:grid;gap:7px}
.field label{
  font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--muted);
}
.field .opt{text-transform:none;letter-spacing:.04em;opacity:.6;font-size:9.5px}
.field input,.field textarea{
  font-family:var(--body);font-size:15px;color:var(--ink);
  padding:12px 14px;border-radius:11px;border:0;
  background:rgba(18,20,26,.035);
  box-shadow:inset 0 0 0 1px var(--hair);
  transition:box-shadow .35s var(--ease),background .35s var(--ease);
  width:100%;resize:vertical;
}
.field input::placeholder,.field textarea::placeholder{color:rgba(118,125,138,.7)}
.field input:focus,.field textarea:focus{
  outline:none;background:#fff;box-shadow:inset 0 0 0 1.5px var(--blue);
}
.field.is-bad input,.field.is-bad textarea{box-shadow:inset 0 0 0 1.5px #E0564F}

.portal__send{width:100%;margin-top:6px}
.portal__send[disabled]{opacity:.6;cursor:default}
.portal__form.is-sending{pointer-events:none}

/* honeypot — off-screen, untabbable, hidden from AT; only bots find it */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.portal__err{
  margin:12px 0 0;font-size:12.5px;line-height:1.5;color:#C6453E;text-align:center;
}

/* the hidden attribute must win over the display:grid on these two, or the
   form and the thank-you both show at once */
.portal__form[hidden],.portal__done[hidden]{display:none}

/* success view */
.portal__done{display:grid;justify-items:center;text-align:center;padding:14px 0 4px}
.portal__tick{
  width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:#fff;
  background:var(--grad);box-shadow:0 10px 26px -10px rgba(46,124,246,.6);
  margin-bottom:18px;
  animation:tickPop .5s var(--ease) both;
}
@keyframes tickPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
.portal__doneTitle{
  margin:0 0 8px;font-family:var(--disp);font-weight:600;
  font-size:clamp(22px,3vw,28px);letter-spacing:-.028em;
}
.portal__doneMsg{margin:0 0 24px;font-size:15px;line-height:1.6;font-weight:300;color:var(--ink-2);max-width:34ch}
.portal__note{
  margin:2px 0 0;font-size:12px;line-height:1.6;font-weight:300;color:var(--muted);text-align:center;
}
.portal__note b{font-weight:500;color:var(--ink-2)}


/* ══════════════════════════════════════════════════════════════
   TOUCH DEVICES
   ══════════════════════════════════════════════════════════════
   No separate world any more. The page scrolls natively everywhere —
   the OS supplies fling, momentum and rubber-band — and the deck,
   parallax and reveals ride the same --pos on a phone as on a desktop.

   Resting is native too: mandatory snap over the track's sentinels
   (one per panel, built by the controller) lets iOS decelerate INTO
   the panel — one confident flick, one panel, no sailing past and no
   after-the-fact correction tween. snap-stop keeps a hard fling from
   skipping chapters. The JS settle stays desktop-only.
   ══════════════════════════════════════════════════════════════ */

@media (hover:none) and (pointer:coarse){

  /* ── the page is just a page ──────────────────────────────────
     The deck stops being a deck. Panels stack, the document scrolls,
     and the copy under the thumb moves EXACTLY as far as the thumb
     does. Driving horizontal travel from a vertical gesture meant
     content moved at 0.46× the finger — which reads as sluggish and
     stuck no matter how many frames per second it is drawn at.
     Nothing snaps, either: mandatory snap refuses a partial swipe,
     which is the page feeling "locked". */
  .deck{
    position:relative;z-index:10;
    display:block;width:100%;
    transform:none;
    /* ⚠️ THE ONE THAT MADE THE PAGE GO BLANK IN PATCHES.
       The base rule hints will-change:transform for the desktop deck,
       which transforms every frame. Here the deck never transforms
       again — but the hint still promotes the whole five-panel column
       (5 × 100svh ≈ 63MB of backing store at 3× DPR) into a single
       layer OUTSIDE the root scroller's tile grid. WebKit rasterises
       a layer that size reactively during a fling and paints the parts
       it cannot keep up with as blank: iOS checkerboarding. That is
       "it locks part of the page off so it's blocked", literally.
       Emulators rasterise synchronously with unlimited GPU memory, so
       they can never reproduce it. */
    will-change:auto;
    pointer-events:auto;
  }
  .panel{
    flex:none;width:100%;
    /* svh, not dvh: sized to the SMALLEST viewport, so the panel never
       reflows as the URL bar hides — a relayout mid-scroll is a lurch */
    min-height:100svh;
    touch-action:auto;              /* the OS owns the gesture, fully */
  }

  /* the horizontal depth fan is a desktop idea; here the copy tracks
     the finger 1:1 and ALL parallax lives behind it. will-change goes
     with it — 26 headings and paragraphs were each being promoted to
     their own texture for a translate that is pinned to zero. */
  [data-r],.display em,.shot--b{translate:0 0;will-change:auto}

  /* ── decoration diet ──────────────────────────────────────────
     Every full-screen translucent layer is blended again on every
     composited frame, at 3× device pixels. These two earn the least. */
  body::after{display:none}          /* the SVG grain: a full-screen texture blend */
  body::before{display:none}         /* the html canvas already carries this light */
  .appfield__scrim{display:none}     /* its 97deg wash is a horizontal-deck idea */
  .appfield__veil{opacity:.72}
  /* the Work panel brightens the field, but on a 390px-wide screen there
     is no spare column: it must never step into the copy */
  body.at-work .appfield__veil{opacity:.44}

  /* the page must actually hold still under the portal on iOS —
     overflow:hidden alone does not stop body scrolling there */
  html.is-locked body{position:fixed;left:0;right:0;width:100%}

  /* eleven phones is a desktop field; eight is a phone's */
  .ph:nth-child(n+9){display:none}

  /* the work parades DOWN the page, in a column that alternates sides */
  .appfield__inner{
    top:-8vh;bottom:auto;height:280vh;
    translate:0 0;transform:none;
  }
  .ph{
    top:calc(var(--i) * 30vh);
    translate:0 0;
  }
  .ph--hi{left:-9vw;right:auto}
  .ph--lo{left:auto;right:-9vw}
  .ph{width:clamp(84px,23vw,116px)}

  /* ── the field is ONE coherent parade ─────────────────────────
     The desktop "step forward" on panel 03 retimes scale, rotation,
     pull, blur and shadow on all eight screens at once. Crossing that
     line mid-scroll is the whole background lurching, and because each
     screen eases at its own depth they visibly come apart — the
     scatter. On a phone none of it transitions: the screens hold one
     pose the entire way down and only the paper veil lifts. */
  .ph,body.at-work .ph{
    transition:none;
    transform:none;
    rotate:calc(var(--rot) * .55deg);
    scale:calc(.88 + var(--d) * .12);
    opacity:calc(.52 + var(--d) * .30);
  }
  .ph__screen,body.at-work .ph__screen{
    transition:none;
    filter:blur(1.1px) saturate(.72);
    box-shadow:
      0 1px 0 rgba(255,255,255,.7) inset,
      0 2px 5px rgba(18,22,32,.07),
      0 22px 44px -18px rgba(18,22,32,.30);
  }

  /* ── depth you can actually see ───────────────────────────────
     The photographs parallax INSIDE their own frames: the frame travels
     with the page while the image drifts against it. It is the richest
     depth cue available on a phone and it costs the reader nothing,
     because the type it sits beside still tracks the thumb exactly. */
  @supports (animation-timeline: scroll()){
    .shot img{
      height:134%;top:-17%;bottom:auto;
      animation:imgPara linear both;
      animation-timeline:scroll(root block);
      /* the studio panel is the fourth of five equal screens, so it is
         on view across the last half of the document's scroll. A view()
         timeline would say this more elegantly but only lands in Safari
         26; scroll() is supported everywhere this site's parallax runs. */
      animation-range:48% 100%;
    }
    @keyframes imgPara{from{translate:0 -10%}to{translate:0 10%}}
  }

  /* A phone screen is 402px wide and the headlines use nearly all of it,
     so there is no clear column to keep the work out of — it WILL pass
     behind the type. Same answer the Work panel already uses on desktop:
     a soft wash of paper centred on the copy, fading out top and bottom
     so the field still reads between the chapters. Type always lands on
     clean paper; nothing has to be pushed off-screen to achieve it. */
  .panel::before,.panel--work::before{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:radial-gradient(128% 44% at 50% 50%,
      var(--paper) 38%, rgba(246,247,249,.90) 60%, rgba(246,247,249,0) 86%);
  }
  .wrap{position:relative}
  /* an infinite animation keeps its layer alive forever — eight of them
     is eight layers the compositor may never rest */
  .ph__screen{animation:none}

  /* ── parallax, on the compositor ──────────────────────────────
     Scroll-driven animations bind these to the scroll position on the
     same thread that moves the scroll itself: no JavaScript in the
     loop, so they cannot stutter with it, and they run at whatever
     refresh rate the display offers. Only BACKGROUND layers get this —
     the content the reader is holding stays 1:1. */
  @supports (animation-timeline: scroll()){
    .appfield__inner{
      animation:fieldDown linear both;
      animation-timeline:scroll(root block);
    }
    .ph{
      animation:phDown linear both;
      animation-timeline:scroll(root block);
    }
    .glow__a{animation:glowADown linear both;animation-timeline:scroll(root block)}
    .glow__b{animation:glowBDown linear both;animation-timeline:scroll(root block)}
    .rail__progress i{
      animation:railFill linear both;
      animation-timeline:scroll(root block);
    }

    /* The field lags the page hard (128vh against ~400vh of travel), so
       the work reads as genuinely further away. The per-screen depth
       spread is deliberately SMALL: at 40vh the eight screens visibly
       came apart from each other as you scrolled, which is the
       scattering — depth is supposed to separate the field from the
       page, not the field from itself. */
    @keyframes fieldDown{from{translate:0 0}      to{translate:0 -128vh}}
    @keyframes phDown   {from{translate:0 0}      to{translate:0 calc(var(--d) * -15vh)}}
    @keyframes glowADown{from{translate:0 -8vh}   to{translate:0 22vh}}
    @keyframes glowBDown{from{translate:0 10vh}   to{translate:0 -18vh}}
    @keyframes railFill {from{transform:scaleX(.2)}to{transform:scaleX(1)}}
  }
  /* older iOS: no timelines, so the field simply sits still. A static
     background is honest; a JS-scrubbed one is what stutters. */
  @supports not (animation-timeline: scroll()){
    .glow__a,.glow__b{translate:0 0}
    .rail__progress i{transform:scaleX(.2)}
  }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width:1080px){
  .moves{grid-template-columns:repeat(2,1fr)}
  .wrap--us{grid-template-columns:1fr;gap:30px;align-content:center}
  .us__art{height:min(38vh,320px)}
  .chapters{display:none}
  .craft-top{grid-template-columns:1fr;gap:20px}
  .craft-shot{height:clamp(120px,18vh,180px)}
}

@media (max-width:720px){
  .topbar{padding:0 var(--gutter)}
  .panel{padding:calc(var(--bar) + 1vh) var(--gutter) calc(var(--bar) + 1vh)}
  .display{font-size:clamp(34px,10.2vw,54px)}
  .display--md{font-size:clamp(29px,8.4vw,42px)}
  .lead{margin-top:20px;font-size:15px;line-height:1.62}
  /* Four tiles, two by two — the stacked column ran under the rail on
     every phone shorter than ~850px, and a panel may never overflow now
     that the stage is fixed. Half the height, same rhythm. */
  .moves{margin-top:22px;grid-template-columns:repeat(2,1fr);border-radius:12px}
  .moves li{padding:14px 15px 16px}
  .moves h3{margin:7px 0 5px;font-size:15.5px}
  .moves p{font-size:12px;line-height:1.5}
  .work{margin-top:22px}
  .work li{flex-direction:column;gap:5px;padding:13px 16px}
  .work b{min-width:0}
  /* the overlapping cluster needs room it doesn't have on a phone —
     so the three shots restack as a compact editorial grid */
  .us__art{
    height:auto;margin-top:24px;
    display:grid;grid-template-columns:1fr 1fr;gap:8px;
  }
  .shot{position:relative;inset:auto;width:auto;height:auto;transform:none;border-radius:12px;
    box-shadow:0 1px 4px rgba(18,22,32,.07),0 16px 30px -18px rgba(18,22,32,.4)}
  /* two photos sit side by side on a phone — stacked full-width they push the
     panel out under the rail */
  .shot--a,.shot--b{grid-column:auto;aspect-ratio:4 / 3}
  /* on a phone the craft photo costs more than it gives — the four movements win */
  .craft-shot{display:none}
  .portal__card{padding:24px 20px;border-radius:18px}
  .portal__title{font-size:24px;margin-bottom:20px}
  .field input,.field textarea{font-size:16px} /* 16px stops iOS zooming on focus */
  .values{margin-top:22px;gap:6px}
  .values li{padding:6px 12px;font-size:9px}
  .cue{margin-top:34px}
  .eyebrow{font-size:9.5px;letter-spacing:.15em;margin-bottom:18px}
  .eyebrow::before{width:18px;margin-right:9px}
  .openmeta{margin-top:24px;gap:7px;font-size:9.5px;flex-direction:column;align-items:flex-start}
  .openmeta .dotsep{display:none}
  .rail__hint{display:none}
  .ph{width:clamp(96px,26vw,132px)}
  .actions{margin-top:28px}
  .fineprint{margin-top:30px;font-size:9px}
  .btn--lg{padding:13px 24px;font-size:14px}
  .loader__word{margin-top:24px}
}

/* every panel now shares the viewport with a fixed stage, so short
   screens trade air for fit — nothing may run under the rail */
@media (max-height:700px){
  .lead{margin-top:16px;font-size:14px;line-height:1.55}
  .moves{margin-top:20px}
  .moves li{padding:14px 16px}
  .moves h3{margin:7px 0 5px;font-size:16px}
  .moves p{font-size:12.5px;line-height:1.48}
  .craft-shot{height:clamp(100px,16vh,150px)}
  .cue{margin-top:24px}
  .eyebrow{margin-bottom:14px}
  .openmeta{margin-top:18px}
  .values{margin-top:16px}
  .actions{margin-top:22px}
  .fineprint{margin-top:22px}
  .us__art{margin-top:16px}
  .shot--a,.shot--b{aspect-ratio:16 / 9}
  .display{font-size:clamp(30px,8.6vw,46px)}
  .display--md{font-size:clamp(26px,7vw,38px)}
}

@media (max-height:620px){
  .lead{margin-top:12px;max-width:56ch}
  .moves{margin-top:16px}
  .cue{margin-top:18px}
  .eyebrow{margin-bottom:12px}
  .moves p{font-size:12px;line-height:1.42}
  .shot--a,.shot--b{aspect-ratio:2 / 1}
}

/* a phone on its side: wide and very short — the craft list goes
   back to one row and the photos share a strip */
@media (hover:none) and (pointer:coarse) and (orientation:landscape) and (max-height:520px){
  .display{font-size:clamp(24px,9vh,40px)}
  .display--md{font-size:clamp(21px,7.6vh,32px)}
  .lead{margin-top:10px;font-size:12.5px;line-height:1.45;max-width:74ch}
  .craft-top{grid-template-columns:1fr}
  .craft-shot{display:none}
  .moves{margin-top:14px;grid-template-columns:repeat(4,1fr)}
  .moves li{padding:10px 12px}
  .moves h3{margin:5px 0 4px;font-size:13.5px}
  .moves p{font-size:10.5px;line-height:1.4}
  /* copy and art share the row — stacked, the panel ran under the rail */
  .wrap--us{grid-template-columns:1.08fr .92fr;gap:18px;align-items:center}
  .us__art{margin-top:0;display:grid;grid-template-columns:1fr;gap:8px;height:auto}
  .shot{position:relative;inset:auto;width:auto;height:auto;transform:none}
  .shot--a{aspect-ratio:16 / 9}
  .shot--b{display:none}
  .values{margin-top:12px}
  .values li{padding:4px 10px;font-size:8.5px}
  .openmeta{margin-top:12px}
  .cue{margin-top:14px}
  .actions{margin-top:14px}
  .fineprint{margin-top:14px}
}


/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    animation-delay:0s!important;
    transition-duration:.001ms!important;
  }
  /* everything lands in its finished state — no travel, scale, blur or parallax */
  .lorb{opacity:.5;transform:translate3d(var(--tx),var(--ty),0) scale(.82);filter:blur(var(--b))}
  .mark__wash,.mark__g,.wm,.loader__tag{opacity:1;transform:none;filter:none}
  .wm--app{-webkit-text-fill-color:transparent}
  .loader__rule{width:min(280px,46vw)}
  /* ── the page still performs ──────────────────────────────────
     Reduce Motion is about vestibular travel — parallax, overshoot,
     things sliding under you — not about a page refusing to respond.
     So: every scrubbed parallax lane holds still and the deck follows
     the finger 1:1, but the reveals keep their choreography as pure
     staggered cross-fades (same trick as the loader below). These
     out-!important the blanket reset above. */
  [data-r]{
    transform:none!important;
    translate:0 0!important;
    opacity:0;
  }
  .panel.is-active [data-r]{
    opacity:1;
    transition-property:opacity!important;
    transition-duration:.6s!important;
    transition-timing-function:var(--ease)!important;
    transition-delay:calc(var(--r,1) * 110ms)!important;
  }
  /* On a POINTER device Reduce Motion still means no background travel.
     On touch these pins are deliberately absent — see the touch block
     below, where the slow background drift is kept on purpose. Pinning
     them here was also pure waste: thirteen scroll-driven animations
     ticked every frame and had their output thrown away. */
  @media (hover:hover) and (pointer:fine){
    .appfield__inner{translate:0 0!important;transform:none!important}
    .ph{translate:0 0!important}
    .glow i{translate:0 0!important}
    .shot--b{translate:0 0!important}
    .shot{transform:none!important}
  }
  .cue__line::after{display:none}

  /* ── but the loader still performs ──────────────────────────────
     The blanket kill above meant Reduce Motion users got the finished
     lockup instantly — "it's loading, but the animation isn't working".
     What that preference is actually about is vestibular motion: travel,
     scale, parallax, spin. A cross-fade is not that. So the brand beats
     still play in sequence, purely as opacity. These selectors outrank
     the `*` reset above, so they win despite its !important. */
  /* NOTE: the fade targets the WORD's wrapper, never .wm--app itself.
     WebKit displaces the painted glyphs of a background-clip:text element
     upward by a descender when that element runs its own opacity
     animation (sibling of the animated-filter-renders-blank bug) — it
     showed as "app" floating half a cap high on real iPhones with
     Reduce Motion on. Fading the parent paints the gradient text
     statically inside the animated layer, which is always correct. */
  body.is-loading .lorb,
  body.is-loading .mark__wash,
  body.is-loading .mark__g,
  body.is-loading .loader__word,
  body.is-loading .loader__rule,
  body.is-loading .loader__tag{
    animation-name:rmFade!important;
    animation-duration:560ms!important;
    animation-timing-function:var(--ease)!important;
    animation-fill-mode:both!important;
    animation-iteration-count:1!important;
  }
  /* the orbs settle at .5, not 1 */
  /* The lights still drift in and gather, exactly as on desktop.
     Reduce Motion exists to prevent vestibular triggers — parallaxing
     content, zooms, spins, things travelling under the reader. Four
     heavily blurred colour masses easing into place are none of those,
     and they are the brand's opening beat. */
  body.is-loading .lorb{
    animation-name:drawIn!important;
    animation-duration:1500ms!important;
    animation-timing-function:var(--ease-soft)!important;
    animation-fill-mode:forwards!important;
  }
  body.is-loading .lfield{
    animation-name:fieldSettle!important;
    animation-duration:1600ms!important;
    animation-delay:1200ms!important;
    animation-fill-mode:forwards!important;
  }

  body.is-loading .lorb--sky   {animation-delay:0ms!important}
  body.is-loading .lorb--blue  {animation-delay:70ms!important}
  body.is-loading .lorb--violet{animation-delay:140ms!important}
  body.is-loading .lorb--warm  {animation-delay:210ms!important}
  body.is-loading .mark__wash  {animation-delay:340ms!important}
  body.is-loading .mark__g     {animation-delay:560ms!important}
  body.is-loading .loader__word{animation-delay:880ms!important}
  body.is-loading .loader__rule{animation-delay:1360ms!important}
  body.is-loading .loader__tag {animation-delay:1520ms!important}

  @keyframes rmFade{from{opacity:0}to{opacity:1}}
  @keyframes rmFadeOrb{from{opacity:0}to{opacity:.5}}
}

/* ══════════════════════════════════════════════════════════════
   REDUCE MOTION ON A PHONE — the path this site is usually read on
   ══════════════════════════════════════════════════════════════
   The background keeps its slow drift here. What Reduce Motion removes
   is content travel: the copy still tracks the thumb exactly 1:1, still
   never parallaxes, and still reveals as a plain cross-fade.

   The blanket `animation-duration:.001ms` above is written for
   time-based animations; applied to a SCROLL-driven one it completes
   the entire timeline at once (the progress rail would sit full at the
   top of the page). `auto` is the value that maps an animation across
   its whole scroll range, so it has to be restored by name. */
@media (prefers-reduced-motion:reduce) and (hover:none) and (pointer:coarse){
  .appfield__inner,.ph,.glow__a,.glow__b,.rail__progress i,.shot img{
    animation-duration:auto!important;
    animation-timing-function:linear!important;
    animation-fill-mode:both!important;
    animation-iteration-count:1!important;
    animation-delay:0s!important;
  }
  /* the reveals are a cross-fade, and a cross-fade on a gesture must not
     outlast the gesture — 110ms × 7 steps left a chapter still arriving
     1.4s after it landed, which reads as the page withholding content */
  .panel.is-active [data-r]{
    transition-duration:.4s!important;
    transition-delay:calc(var(--r,1) * 38ms)!important;
  }
}
