/* Project X Studio · build v3 · test strip (cover → manifesto) */
:root {
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --ash: #86857F;
  --red: #FF1A1A;
  --sun: #FA0300;                       /* the red of the cover sun, so the flood matches the photo */
  --line: rgba(255, 255, 255, .28);
  --m: clamp(20px, 3.333vw, 64px);      /* Figma 64px margin at 1920 */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --cut: cubic-bezier(.7, 0, .2, 1);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, sans-serif;

  /* the cover art is a 1920×1080 frame scaled to cover the viewport */
  --artw: max(100vw, 177.7778vh);
  --u: calc(var(--artw) / 1920);
  /* type on the cover never gets wider than the phone */
  --s: min(var(--u), calc(84vw / 627));
  /* sun centre offset from the screen centre, and push origin (Figma placement) */
  --sunx: calc(-1.3 * var(--u)); --suny: calc(33 * var(--u));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--ink); }
body { background: var(--ink); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.js body.is-loading { overflow: hidden; }   /* only with JS: without it the page must scroll */
img, video { display: block; }
/* the artifact viewer wraps the page with img{max-width:100%}; our cover art and Zain's photo are deliberately wider
   than their boxes, and the clamp pulled the sun off the logo and left a strip beside Zain. Undo it everywhere. */
img { max-width: none; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }


/* ---------- 01 opening (pinned) ---------- */
.opening { position: relative; height: 100vh; height: 100svh; }
.stage { position: absolute; inset: 0; overflow: hidden; background: #000; }

.cv, .cv-type, .flood, .reel, .mt { position: absolute; inset: 0; }
.cv-art { position: absolute; left: 50%; top: 50%; width: var(--artw); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
/* sun centre in the Figma frame: (958.7, 573) of 1920×1080 */
.cv-push { position: absolute; inset: 0; transform-origin: 49.93% 53.06%; will-change: transform; }
/* Figma: image at -184,-60, 2316×1303 */
.cv-img { position: absolute; left: -9.583%; top: -5.556%; width: 120.625%; height: 120.648%; object-fit: cover; }

.flood { background: var(--sun); visibility: hidden; --r: 0px;
  clip-path: circle(var(--r) at calc(50% + var(--sunx)) calc(50% + var(--suny))); }

.cv-type { pointer-events: none; }
.cv-logo { position: absolute; left: 50%; top: calc(50% - 77 * var(--s)); width: calc(627.2 * var(--s)); height: auto; transform: translateX(-50%); will-change: transform, opacity, filter; }
.cv-tag { position: absolute; left: 0; right: 0; top: calc(50% + 62 * var(--s)); white-space: nowrap;
  font: 400 calc(28 * var(--s))/1.07 "Archivo Black", var(--sans); letter-spacing: .02em; text-align: center; }
.cv-tag .ch { display: inline-block; }
.cv-tag .mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.cv-cities { position: absolute; left: 0; right: 0; top: calc(50% + 107 * var(--s)); white-space: pre;
  font: 400 max(10px, calc(14 * var(--s)))/1.3 var(--mono); letter-spacing: .2em; text-align: center; }

.reel { width: 100%; height: 100%; object-fit: cover; z-index: 3; opacity: 0; }
.reel.on { opacity: 1; }

/* ---------- 02 manifesto title (hard cut) ---------- */
.mt { z-index: 4; visibility: hidden; background: #000; overflow: hidden; }
.mt.on { visibility: visible; }
.mt-flash { position: absolute; inset: 0; background: var(--red); z-index: 9; visibility: hidden; }
.mt-flash.on { visibility: visible; }
.mt-flash.under { z-index: 1; }
.mt-plate-wrap { position: absolute; inset: 0; will-change: transform; }
.mt-plate { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 60% 45%; }
.mt-plate.punch, .ts-plate.punch { transform: scale(1.12); filter: contrast(1.7) brightness(1.35); }

.mt-ln { position: absolute; background: var(--line); z-index: 2; }
.mt-ln.v { top: 0; bottom: 0; width: 1px; transform-origin: top; }
.mt-ln.h { left: -100vw; width: 300vw; height: 1px; transform-origin: left; }

/* title row: the guide lines sit on cap height and baseline (0.143 / 0.857 of size) */
/* titles are centred on the word (as in Figma); the index hangs off the right */
.mt-row { --fs: 8.75vw; position: absolute; left: 0; width: 100%; display: flex; justify-content: center; top: 47.78%; height: var(--fs); z-index: 3; }
.mt-ln.cap { top: calc(var(--fs) * .143); }
.mt-ln.base { top: calc(var(--fs) * .857); }
.mt-title { position: relative; font: 600 var(--fs)/1 var(--sans); letter-spacing: -.04em; color: var(--red); white-space: nowrap; }
.mt-idx { --is: .2024em; position: absolute; left: 100%; top: .53em; margin-left: .29em; font: 500 var(--is)/1 var(--sans); letter-spacing: 0; color: var(--red); }
.mt-title .ch { display: inline-block; }

.mt-lab { position: absolute; z-index: 3; font: 600 clamp(13px, 1.146vw, 22px)/.96 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.mt-studio { left: var(--m); top: var(--m); }
.mt-services { left: 67.5%; top: var(--m); }
.mt-url { left: 67.5%; top: calc(var(--m) + clamp(13px, 1.146vw, 22px) * 4.36); }

/* hard-cut states */
.hid { visibility: hidden !important; }
.block { background: var(--red); color: transparent !important; }
.mt.hit .mt-title, .mt.hit .mt-title *, .ts-stage.hit .mt-title, .ts-stage.hit .mt-title * { color: #000 !important; }
.mf .w .pu { color: #fff; }   /* punctuation glued to a red word stays white */
@media (max-width: 767px) {
  /* why we exist: the whole rig (and the person on it) fits the screen; dark above and below fades into the stage */
  .ts-why .ts-plate { position: absolute; left: calc(50% - 102.5vw); top: 8%; width: 205vw; max-width: none; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent); }
}

/* ---------- 03 manifesto text ---------- */
.mf { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); display: flex; align-items: center; }
.mf-bg { position: absolute; inset: -15%; will-change: transform; }
.mf-bg img { width: 100%; height: 100%; object-fit: cover; }
.mf-spot { position: absolute; left: 0; top: 0; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035) 55%, transparent);
  mix-blend-mode: screen; opacity: 0; will-change: transform; z-index: 1; }
.mf-in { position: relative; z-index: 2; padding: 0 var(--m); width: 100%; }
.mf-label { position: absolute; left: var(--m); top: .9em; font: 500 clamp(11px, .833vw, 16px)/1 var(--sans); letter-spacing: .04em; color: var(--red); }
.mf-text, .mf-sign { font: 500 clamp(20px, 2.396vw, 46px)/1.04 var(--sans); letter-spacing: -.015em; text-transform: uppercase; }
.mf-text { text-indent: 20.833vw; }
.mf-sign { margin-top: 2.3em; }
.mf-text .w, .mf-sign .w { display: inline-block; text-indent: 0; }
.mf .r { color: var(--red); }
.mf-logo { position: absolute; right: var(--m); bottom: var(--m); width: clamp(110px, 9.8vw, 188px); height: auto; z-index: 2; }

.endtest { height: 70vh; display: grid; place-items: center; text-align: center; font: 400 11px/1.8 var(--mono); letter-spacing: .14em; color: var(--ash); border-top: 1px solid rgba(255,255,255,.08); }
.endtest span { color: #4a4a47; }


/* ---------- grain ---------- */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 70; pointer-events: none; mix-blend-mode: overlay; opacity: .14; }
/* desktop: main.js turns the grain off on the founders' portraits; it fades rather than pops */
@media (min-width: 768px) { .grain { transition: opacity .35s linear; } .js .grain { opacity: 0; } }   /* starts off: the opening has no grain, main.js turns it on after */

/* ---------- title slides (04b, 06b) ---------- */
.ts { position: relative; height: 100vh; height: 100svh; }
.ts-stage { position: absolute; inset: 0; overflow: hidden; background: #000; }
.ts-plate-wrap { position: absolute; inset: 0; will-change: transform; }
.ts-plate { width: 100%; height: 100%; object-fit: cover; }
.ts-dim { position: absolute; inset: 0; background: #000; z-index: 1; }
.ts-why .ts-plate { object-position: 50% 30%; transform-origin: 50% 0; }
.ts-mask { display: inline-block; overflow: hidden; vertical-align: top; height: 1em; }
.ts-w { display: inline-block; }
.ts-diff .mt-row { --fs: 6.406vw; top: 51.39%; }
.ts-diff .mt-ln.cap { top: calc(var(--fs) * .146); }
.ts-diff .mt-ln.base { top: calc(var(--fs) * .854); }
.ts-diff .mt-idx { --is: .2764em; top: .35em; }
.ts-iris { position: absolute; inset: 0; clip-path: circle(0% at 50% 48%); will-change: clip-path; }
.ts-track { display: inline-block; }

/* ---------- text slide (05b): light-band line wipe ---------- */
.tx { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; display: flex; align-items: center; }
.tx-bg { position: absolute; inset: -15%; will-change: transform; }
.tx-bg img { width: 100%; height: 100%; object-fit: cover; }
.tx-in { position: relative; z-index: 2; padding: 0 var(--m); width: 100%; }
.tx .mf-label { top: .95em; }
.tx-p { font: 500 clamp(20px, 2.396vw, 46px)/1.04 var(--sans); letter-spacing: -.015em; text-transform: uppercase; }
.tx-indent { text-indent: 20.833vw; }
.tx-gap { margin-top: 1.04em; }
.tx .r { color: var(--red); }
.tx .w { display: inline-block; text-indent: 0; }
.tx .w .pu { color: #fff; }   /* punctuation glued to a red word stays white */

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .mt-row { --fs: 15vw; top: 46%; }
  .ts-why .mt-row { --fs: 11.5vw; }
  .ts-diff .mt-row { --fs: 6.6vw; }
  .tx-indent { text-indent: 0; }
  .tx .mf-label { position: static; margin-bottom: 18px; }
  .mt-services { left: auto; right: var(--m); text-align: right; top: calc(var(--m) + 40px); }
  .mt-url { left: auto; right: var(--m); top: auto; bottom: calc(var(--m) + 40px); }
  .mf-text { text-indent: 0; }
  .mf-label { position: static; margin-bottom: 18px; }
}

/* ---------- static page: no JS, or reduced motion (main.js adds .px-static). Plain native scrolling,
   every section in its finished state: nothing pinned, hidden, clipped off or waiting for an animation. ---------- */
:is(html:not(.js), html.px-static) .reel,
:is(html:not(.js), html.px-static) .flood,
:is(html:not(.js), html.px-static) .ts-dim,
:is(html:not(.js), html.px-static) .ff,
:is(html:not(.js), html.px-static) .begin,
:is(html:not(.js), html.px-static) .mf-spot,
:is(html:not(.js), html.px-static) .sweep,
:is(html:not(.js), html.px-static) .scan,
:is(html:not(.js), html.px-static) .grain { display: none; }
:is(html:not(.js), html.px-static) .ts-iris { clip-path: none; }
:is(html:not(.js), html.px-static) .opening { height: auto; }
:is(html:not(.js), html.px-static) .stage { position: relative; }
:is(html:not(.js), html.px-static) .cv { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
:is(html:not(.js), html.px-static) .mt { position: relative; visibility: visible; height: 100vh; height: 100svh; }

/* ---------- portrait phones: match the 9:16 reel's last frame (whole city at full height, logo 78% wide) ---------- */
@media (orientation: portrait) {
  /* --vs = on-screen size of one pixel of the 1080×1920 reel (object-fit: cover). Measured on the reel's last frame:
     sun centre (542.01, 928.16), radius 518.4; logo plate 842 wide, centre (539.83, 903.83). The live cover is placed
     from those numbers, so the hand-over from the reel to the cover does not move by a pixel. */
  :root { --vs: max(calc(100vw / 1080), calc(100vh / 1920)); --s: calc(842 / 627.2 * var(--vs));
    --sunx: calc(3.0 * var(--vs)); --suny: calc(-45.69 * var(--vs)); }   /* --sunx/y: centre of the sun's outline (it is an ellipse, ry/rx 0.9517) */
  @supports (height: 100svh) { :root { --vs: max(calc(100vw / 1080), calc(100svh / 1920)); } }
  /* city art: full stage height; shifted so its sun sits on the reel's sun */
  .cv-art { width: calc(3413.33 * var(--vs)); transform: translate(calc(-50% + 22.8 * var(--vs)), calc(-50% + 0.95 * var(--vs))); }
  .cv-img { left: 0; top: 0; width: 100%; height: 100%; }
  .cv-push { transform-origin: 49.42% 47.54%; }   /* the push zooms about the sun's own centre */
  .flood { clip-path: ellipse(var(--r) calc(var(--r) * 0.9517) at calc(50% + var(--sunx)) calc(50% + var(--suny))); }   /* the sun is a slightly flattened ellipse in the photo */
  /* logo as in the reel's last frame */
  .cv-logo { top: calc(50% - 56.17 * var(--vs) - 47.107 * var(--s)); }
  .cv-tag { top: calc(50% - 56.17 * var(--vs) + 92 * var(--s)); }
  .cv-cities { top: calc(50% - 56.17 * var(--vs) + 137 * var(--s)); }
}

/* ---------- show mode: the page runs cue by cue, no native scrolling ---------- */
.px-show, .px-show body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.px-show body { touch-action: none; }
.px-show main { position: fixed; inset: 0; overflow: hidden; }
.px-show main > section { position: absolute; inset: 0; height: auto; will-change: transform; }
.px-show .endtest { border-top: 0; }

/* ---------- begin prompt (replaces the reel) ---------- */
.begin { position: absolute; left: 0; right: 0; bottom: calc(var(--m) + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
  font: 400 11px/1 var(--mono); letter-spacing: .24em; color: var(--white); opacity: 0; }
.begin__line { display: block; width: 1px; height: 28px; background: rgba(255,255,255,.5); transform-origin: top;
  animation: begin-drop 2.4s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes begin-drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- first frame ---------- */
.ff { position: absolute; inset: 0; z-index: 3; background: #000; display: none; will-change: opacity, transform; }
.px-show .ff { display: block; }
@media (orientation: portrait) { .js .ff { display: block; } }   /* phones: the still covers the page from the very first paint */
.ff picture { display: contents; }
.ff__img { width: 100%; height: 100%; object-fit: cover; }
.ff__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }

/* =====================================================================
   SECTIONS 06–20 · each one keeps its Figma 1920×1080 layout inside a frame
   scaled to the screen (--u = one Figma pixel). Phones get a stacked layout.
   ===================================================================== */
.sx { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.bgx { position: absolute; inset: 0; overflow: hidden; }
.bgx img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.bgx-glow { inset: -15%; }
.bgx-flip img { transform: scaleX(-1); }
.shade { position: absolute; inset: 0; pointer-events: none; }
.shade-idea { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 50%, rgba(0,0,0,.78) 100%); }
.shade-how { background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.62) 60%, rgba(0,0,0,.35) 100%); }
.shade-roof { background: linear-gradient(to bottom, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 57.4%); }
.shade-svc { background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.85) 100%); }
.shade-new { background: rgba(13,5,5,.55); }
.shade-person { background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); }
.s-new { background: #0d0505; }
.s-offices { background: #090909; }
.s-last { background: #262626; }
.s-person { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(173,171,166) 0%, rgb(140,138,134) 50%, rgb(107,105,102) 100%); }

.fr { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  width: min(100vw, 177.7778vh); height: min(56.25vw, 100vh); transform: translate(-50%, -50%);
  --u: calc(min(100vw, 177.7778vh) / 1920); }
.fr .a { position: absolute; margin: 0; left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); font-size: calc(var(--fs, 16) * var(--u)); }
.fr .a.r { left: auto; right: calc(var(--rx) * var(--u)); text-align: right; }
.fr .a.c { width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fr .a.c > * { white-space: nowrap; }
.fr .mt-row { --fs: calc(var(--fsz) * var(--u)); top: calc(var(--y) * var(--u)); }

/* 06 the idea comes first · 20 let's make it real */
.if-lbl { font-family: "Poppins", var(--sans); font-weight: 400; line-height: 1.18; color: #fff; }
.squares { display: flex; gap: calc(10 * var(--u)); }
.squares i { display: block; width: calc(30 * var(--u)); height: calc(30 * var(--u)); background: #faf5f0; }
.idea-h { font-family: "Poppins", var(--sans); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; color: #fff;
  text-shadow: 0 0 28px rgba(255,255,255,.55); white-space: nowrap; }
.idea-h .ln { display: block; }
html.px-show .s-idea .idea-h .ln, html.px-show .s-last .idea-h .ln { opacity: 0; }   /* never visible before the timeline owns them */
.idea-h em { font-family: "Playfair Display", serif; font-weight: 700; font-style: italic; }
.idea-p { font-family: "Poppins", var(--sans); line-height: 1.18; color: #fff; }
.idea-p p + p { margin-top: 1.18em; }
.logo-s { height: auto; }
.last-info { display: flex; flex-direction: column; align-items: flex-end; }
.last-logo { width: calc(420 * var(--u)); height: auto; margin-bottom: calc(28 * var(--u)); }
.li-1 { font-family: "Poppins", var(--sans); font-size: calc(26 * var(--u)); letter-spacing: .1em; color: #fff; }
.li-2 { font-family: "Poppins", var(--sans); font-size: calc(22 * var(--u)); letter-spacing: .1em; color: rgba(255,255,255,.7); white-space: pre; margin-top: calc(12 * var(--u)); }
.li-3 { font-family: "Poppins", var(--sans); font-size: calc(40 * var(--u)); color: #fff; }
.li-2 + .li-3 { margin-top: calc(56 * var(--u)); }
.li-3 + .li-3 { margin-top: calc(6 * var(--u)); }
.last-top { position: absolute; left: 50%; top: auto; bottom: calc(44 * var(--u)); transform: translateX(-50%); pointer-events: auto; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(18 * var(--u)); width: auto; height: auto;
  font-family: "Poppins", var(--sans); font-size: calc(22 * var(--u)); letter-spacing: .1em; color: #fff; text-decoration: none; opacity: .85; cursor: pointer; }
.last-top svg { width: calc(14 * var(--u)); height: calc(24 * var(--u)); min-width: 10px; min-height: 16px; }
.last-top:hover { opacity: 1; }
.last-top:focus-visible { outline: 2px solid #fff; outline-offset: 4px; opacity: 1; }

/* 07 creative */
.cr { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: -.047em; }
.cl { display: block; overflow: hidden; padding: 0 .12em; }
.cli { display: inline-block; font-size: calc(var(--fs) * var(--u)); line-height: calc(var(--lh) * var(--u)); white-space: nowrap; }
.serif { font-family: "Instrument Serif", serif; font-weight: 400; font-style: italic; color: var(--red); letter-spacing: -.02em; }
.sw { display: inline-block; font-size: calc(var(--fs) * var(--u)); }

/* 08 how we work */
.how-s { font-family: var(--sans); font-weight: 500; text-transform: uppercase; line-height: 1.04; letter-spacing: -.015em; color: #fff; }
.how-s .r, .tx .r { color: var(--red); }
.how-c { font-family: var(--sans); font-weight: 500; text-transform: uppercase; line-height: 1.28; letter-spacing: -.01em; }
.hc-h { font-weight: 700; color: var(--red); margin-bottom: calc(10 * var(--u)); }
.hc-b { color: #fff; }

/* 09 one roof */
.roof-t { white-space: nowrap; }
.roof-sub { font-family: var(--sans); font-weight: 400; color: rgba(255,255,255,.9); letter-spacing: -.01em; }
.roof-rule { display: block; height: 2px; background: var(--red); transform-origin: left; }
.steps { display: flex; }
.step { width: calc(358.4 * var(--u)); height: calc(236 * var(--u)); padding: calc(30 * var(--u)) calc(32 * var(--u)) calc(32 * var(--u));
  background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.step.show { background: var(--red); border-color: var(--red); }
.st-l { font-family: var(--mono); font-size: calc(14 * var(--u)); letter-spacing: .12em; color: rgba(255,255,255,.6); min-height: calc(36 * var(--u)); }
.step.show .st-l { color: rgba(255,255,255,.85); }
.st-h { font-family: "Archivo Black", var(--sans); font-size: calc(38 * var(--u)); letter-spacing: -.01em; color: #fff; }
.st-b { font-family: var(--sans); font-size: calc(22 * var(--u)); color: rgba(255,255,255,.8); }
.step.show .st-b { color: #fff; }

/* 10 services · 16 the founders (title slides) */
.sweep { position: absolute; top: -20%; bottom: -20%; left: 0; width: 60%; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%); transform: translateX(-120%); }
.ts-clip .ch, .ts-letters .ch { display: inline-block; }
.ts-letters { display: inline-block; overflow: hidden; vertical-align: top; }

/* 11–13 services */
.svc-url { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; color: #fff; }
.svc-title, .svc-ghost { font-family: "Archivo Black", var(--sans); line-height: 1; letter-spacing: -.008em; color: var(--red); }
.svc-title { filter: blur(calc(2.5 * var(--u))); opacity: .95; }
.svc-ghost { filter: blur(calc(8 * var(--u))); opacity: .32; }
.svc-lbl { font-family: var(--sans); font-weight: 700; font-size: calc(20 * var(--u)); letter-spacing: .04em; color: #fff; margin-bottom: calc(28 * var(--u)); }
.svc-ln { font-family: "Big Shoulders Display", var(--sans); font-weight: 900; font-size: calc(66 * var(--u)); line-height: calc(66 * var(--u));
  letter-spacing: -.01em; color: #fff; white-space: nowrap; overflow: hidden; }
.svc-ln span { display: inline-block; }

/* 14 we are new */
.new-h p, .new-s p { font-family: "Space Mono", var(--mono); font-weight: 700; color: var(--red); text-shadow: 0 0 22px rgba(255,31,15,.7); letter-spacing: -.02em; }
.new-h p { line-height: 1; }
.new-s p { line-height: 1.5; }

/* 15 brands */
.logos { width: calc(1600 * var(--u)); height: calc(640 * var(--u)); }
.logos img { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); object-fit: contain; }
.s-brands .mt-idx { --is: .25em; top: .375em; }
/* desktop: the logo field is really 1600x640 (.fr .a's --w/--h calc had collapsed it to 0x0), and images never take a
   max-width from a host page: the artifact wrapper adds img{max-width:100%}, which shrank every logo in the 0-wide box to nothing */
@media (min-width: 768px) {
  .fr .a.logos { width: calc(1600 * var(--u)); height: calc(640 * var(--u)); }
  main img { max-width: none; }
}

/* 17–18 founders */
.person-img { object-fit: cover; }
.person-url { font-family: var(--sans); font-weight: 600; color: #fff; }
.person-name { font-family: var(--sans); font-weight: 600; color: var(--red); letter-spacing: -.04em; line-height: .92; white-space: nowrap; }
.person-name.zn { line-height: 1; }
.pn { display: block; overflow: hidden; padding-bottom: .04em; }
.pni { display: inline-block; }
.reg { font-weight: 400; }
.person-rule { display: block; height: 1px; background: rgba(255,255,255,.35); transform-origin: left; }
.s-zain .person-rule { transform-origin: right; }
.person-bio { font-family: var(--sans); font-weight: 400; line-height: 1.45; color: #fff; }
.person-role { font-family: var(--sans); font-weight: 600; letter-spacing: .12em; color: #fff; }

/* 19 offices */
.globe { overflow: hidden; }
.globe img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan { position: absolute; top: 0; bottom: 0; left: -20%; width: 18%; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255,26,26,.45), transparent); }
.off-h { font-family: var(--sans); font-weight: 600; line-height: 1; letter-spacing: -.06em; color: #fff; white-space: nowrap; }
.off-h.red { color: var(--red); }
.off-h .ch { display: inline-block; white-space: pre; }
.off-co { font-family: var(--sans); font-weight: 700; line-height: 1.15; color: #fff; white-space: pre; }
.off-co .sp { height: 1.15em; }
.off-net { font-family: var(--sans); font-weight: 700; line-height: 1.15; color: var(--red); }

/* ---------- phones: a stacked layout per section ---------- */
@media (max-width: 767px) {
  .fr { left: 0; top: 0; transform: none; width: 100%; height: 100%; --u: calc(100vw / 1920);
    display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 72px 20px 44px; }
  .fr .a { position: relative; left: auto; top: auto; right: auto; width: auto; height: auto; font-size: calc(var(--mfs, 14) * 1px); }
  .fr .a.r { right: auto; text-align: left; }
  .fr .a.c { width: auto; }
  .fr .mt-row { position: relative; top: auto; left: auto; --fs: calc(var(--mfsz) * 1px); flex: none; }

  .if-lbl, .svc-url, .svc-ghost, .person-url { display: none; }
  .squares { gap: 6px; } .squares i { width: 14px; height: 14px; }
  .s-idea .squares, .s-last .squares { position: absolute !important; top: 28px !important; }
  .s-idea .squares { right: 20px !important; } .s-last .squares { left: 20px !important; }
  .s-idea .fr, .s-last .fr { justify-content: flex-end; }
  .logo-s { width: 120px !important; }
  .last-info { align-items: flex-start; }
  .last-logo { width: 210px; margin-bottom: 14px; }
  .li-1 { font-size: 12px; } .li-2 { font-size: 11px; margin-top: 6px; } .li-3 { font-size: 16px; }
  .li-2 + .li-3 { margin-top: 22px; } .li-3 + .li-3 { margin-top: 4px; }

  .cli, .sw { font-size: calc(var(--mfs) * 1px); line-height: 1.04; }

  .s-how .fr { display: grid; grid-template-columns: 1fr 1fr; align-content: center; column-gap: 14px; row-gap: 18px; }
  .s-how .fr > .mt-row, .s-how .how-s { grid-column: 1 / -1; }
  .hc-h { margin-bottom: 6px; }

  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .step { width: auto; height: auto; padding: 12px 14px; gap: 6px; }
  .st-l { font-size: 10px; min-height: 0; } .st-h { font-size: 18px; } .st-b { font-size: 12px; }
  .step.show { grid-column: 1 / -1; }
  .roof-rule { width: 100% !important; }

  .s-svc .fr { justify-content: flex-end; padding-bottom: 56px; }
  .svc-title { margin-bottom: auto; position: absolute !important; top: 34% !important; left: 0 !important; right: 0; }
  .svc-lbl { font-size: 12px; margin-bottom: 10px; }
  .svc-ln { font-size: 28px; line-height: 30px; white-space: normal; }

  .logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; align-items: center; justify-items: center; }
  .logos img { position: static; width: auto; max-width: 100%; height: max(calc(var(--h) * .45px), 16px); }
  .logos img:last-child { grid-column: 1 / -1; justify-self: center; }   /* Audemars Piguet, alone on the last row */

}

/* ---------- fixes after the first visual pass ---------- */
.fr .a.c { white-space: nowrap; }
@media (max-width: 767px) {
  .fr .a.svc-ghost { display: none; }
  .s-creative .cli { font-size: 30px; }
  .s-creative .cli.serif { font-size: 56px; }
  .s-creative .sw { font-size: 42px; }
  .s-roof .mt-row { height: auto; }
  .s-roof .mt-row .mt-ln.h { display: none; }
  .s-roof .roof-t { --fs: 30px; white-space: normal; text-align: center; line-height: 1; }
  #spectacles .svc-title { font-size: 44px; }
  #content .svc-title { font-size: 50px; }
  .ts-founders .mt-row { --fs: 10.5vw; }
  .s-brands .mt-title { white-space: nowrap; }
}

/* ---------- mobile notes 2026-11-16 ---------- */
@media (max-width: 767px) {
  /* grain: main.js sets opacity per section (off on opening, idea, how, Luisa, Zain, last) */
  .grain { opacity: 0; transition: opacity .2s linear; }

  /* idea: headline up to about the vertical centre, body below it */
  .s-idea .fr { justify-content: flex-start; gap: 28px; padding-top: 36vh; }

  /* creative: every line centred, block centred on the screen */
  .s-creative .fr { align-items: center; justify-content: center; text-align: center; }
  .s-creative .fr .a.cr { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
  .s-creative .cl { display: block; width: 100%; text-align: center; }
  .s-creative .cli { white-space: nowrap; }

  /* one roof: the red SHOW DAY card reads centred */
  .step.show { text-align: center; align-items: center; }
  .step.show .st-l, .step.show .st-h, .step.show .st-b { text-align: center; }

  /* events, spectacles, content: same size, centred, Figma echo (blurred copy 0.142em right, 0.192em down, 32%) */
  #events .svc-title, #spectacles .svc-title, #content .svc-title,
  #events .svc-ghost, #spectacles .svc-ghost, #content .svc-ghost { font-size: 12.6vw; letter-spacing: -.008em; }
  .s-svc .fr .a.svc-title { position: absolute !important; top: 30% !important; left: 0 !important; right: 0 !important;
    width: auto; display: block; text-align: center; white-space: nowrap; }
  .s-svc .fr .a.svc-ghost { display: block; position: absolute !important; top: calc(30% + .192em) !important; left: .142em !important; right: -.142em !important;
    width: auto; text-align: center; white-space: nowrap; }

  /* last slide: headline upper-middle, details below, left-aligned */
  .s-last .fr { justify-content: flex-start; align-items: flex-start; gap: 44px; padding-top: 24vh; padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
  .s-last .last-info { align-items: flex-start; text-align: left; }
  .s-last .fr .last-top { position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 11px; gap: 8px; padding: 10px 16px; }
  .s-last .fr .last-top svg { width: 10px; height: 16px; }
}

/* founders desktop (Figma 17b/18b): the rule is a real 1px line (.fr .a's height calc had collapsed it to 0);
   Luisa's bottom fade sits over her photo as in 17b (Zain's photo keeps its original tones, so his stays under it) */
@media (min-width: 768px) {
  .fr .a.person-rule { height: 1px; }
  #luisa .shade-person, #zain .shade-person { z-index: 2; }   /* Zain asked for the Figma 18b bottom fade over his photo too (2026-11-17) */
  /* the portraits sit on the screen's bottom-right corner, not the 16:9 frame's: on a 16:10 laptop (letterbox) or a
     wide browser window (pillarbox) the frame leaves bands where the photo would end in a hard edge.
     --dx/--dy = the gap between the 16:9 frame and the screen edge. */
  #luisa .fr, #zain .fr { --dx: calc((100vw - 1920 * var(--u)) / 2); --dy: calc((100vh - 1080 * var(--u)) / 2); }
  #luisa .fr .person-img { left: calc(1000 * var(--u) + var(--dx)); top: calc(15 * var(--u) + var(--dy)); }
  /* Zain: the photo fills the screen height; scaled about his right shoulder, which stays 21 Figma px from the edge */
  /* the copy keeps Figma's margins to the same screen edges: name, rule, bio and role to the bottom, url to the top right */
  :is(#luisa, #zain) .fr :is(.person-name, .person-bio, .person-rule) { left: calc(var(--x) * var(--u) - var(--dx)); top: calc(var(--y) * var(--u) + var(--dy)); }
  :is(#luisa, #zain) .fr .person-rule { width: calc(var(--w) * var(--u) + 2 * var(--dx)); }
  :is(#luisa, #zain) .fr .person-role { left: calc(var(--x) * var(--u) + var(--dx)); top: calc(var(--y) * var(--u) + var(--dy)); }
  :is(#luisa, #zain) .fr .person-url { left: calc(var(--x) * var(--u) + var(--dx)); top: calc(var(--y) * var(--u) - var(--dy)); }
  :is(#luisa, #zain) .fr :is(.person-url, .person-role) { white-space: nowrap; }
  #zain .zn-frame { overflow: visible; }
  /* offices: the globe band runs edge to edge on a wide window too (it stopped at the 16:9 frame with hard ends) */
  #offices .fr .globe { left: calc((1920 * var(--u) - 100vw) / 2); width: 100vw; }
  /* Zain (2026-11-17): photo runs to the screen's right edge at any window shape (it used to stop short, leaving a grey strip) */
  /* Zain asked to sit further right: the photo's last ~20% is empty backdrop past his shoulder, so push it off-screen
     (shoulder ends about 1% of the photo's width from the edge) */
  #zain .zn-frame .person-img { --zw: max(calc(100vh * 1448 / 1086), calc(1173 * var(--u) + var(--dx))); top: calc(-1 * var(--dy)); height: 100vh; width: var(--zw);
    object-fit: cover; object-position: 100% 50%; left: auto; right: calc(-1 * var(--dx) - var(--zw) * .185); }
}

/* zain desktop: Figma 18b photo frame (747,0 1173x1080, clips); image 1440x1080 with a left fade over its own width */
.zn-frame { overflow: hidden; }
.zn-frame .person-img { position: absolute; left: 0; top: 0; width: calc(1440 * var(--u)); height: calc(1080 * var(--u)); transform-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.3) 15%, #000 33%, #000 100%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.3) 15%, #000 33%, #000 100%); }

/* ---------- founders + offices mobile (approved 2026-11-16) ---------- */
@media (max-width: 767px) {
  #luisa, #zain, #offices { --k: calc(100vw / 390); --m: calc(20 * var(--k)); --sb: env(safe-area-inset-bottom, 0px); }
  #luisa .fr, #zain .fr, #offices .fr { display: block; padding: 0; }
  :where(#luisa, #zain, #offices) .fr .a { position: absolute; left: auto; right: auto; top: auto; width: auto; height: auto; }

  /* founders: dark studio ground, photo on top with the bottom fade mask, name over its foot, rule, role, bio */
  #luisa, #zain { background: radial-gradient(ellipse 80% 55% at 55% 30%, #2e2e2d 0%, #171717 55%, #0A0A0A 100%); }
  #luisa .shade-person, #zain .shade-person { display: none; }
  /* text stack is anchored to the BOTTOM of the slide so the bio never clips on short viewports (the artifact viewer's toolbar, Safari chrome).
     --bt: where the bio ends in the 844 design (k units), --bm: its bottom margin there, --bh: bio height (k units; same line count at every width).
     --bb: bio bottom offset = the design margin on tall screens, shrinking to 20k + safe area as the screen gets shorter. */
  #luisa { --bt: 788.4; --bm: 55.6; --bh: 162.4; }
  #zain { --bt: 768.1; --bm: 75.9; --bh: 142.1; }
  #luisa, #zain { --bb: max(calc(20 * var(--k) + var(--sb)), min(calc(var(--bm) * var(--k) + var(--sb) * .5), calc(100svh - var(--bt) * var(--k)))); }
  /* photo overscans the right edge by a margin tied to the slide's own width (not vw), so no background strip can show beside it */
  #luisa .person-img, #zain .person-img { left: calc(-30 * var(--k)); top: 0; width: max(calc(450 * var(--k)), calc(100% + 60 * var(--k))); height: auto; object-fit: initial; object-position: initial;
    transform-origin: 50% 0;
    -webkit-mask-image: linear-gradient(#000 0, #000 66%, transparent 96%); mask-image: linear-gradient(#000 0, #000 66%, transparent 96%); }
  #zain .fr .person-img { left: auto; right: 0; width: max(calc(450 * var(--k)), calc(100% + 30 * var(--k))); }   /* Zain photo pinned to the right edge (2026-11-17) */
  #luisa .person-url, #zain .person-url { display: block; top: calc(26 * var(--k)); right: var(--m); left: auto; font-size: calc(12 * var(--k)); line-height: 1.2; }
  #luisa .person-name, #zain .person-name { left: var(--m); top: auto; bottom: calc(var(--bb) + (var(--bh) + 56.2) * var(--k)); font-size: calc(62 * var(--k)); line-height: .95; letter-spacing: -.04em; white-space: nowrap; }
  #luisa .person-name .pn, #zain .person-name .pn { padding-bottom: 0; }
  #zain .person-name .reg { display: block; }
  #luisa .person-rule, #zain .person-rule { left: var(--m); right: var(--m); top: auto; bottom: calc(var(--bb) + (var(--bh) + 37) * var(--k)); height: 1px; transform-origin: left; }
  #luisa .person-role, #zain .person-role { right: var(--m); top: auto; bottom: calc(var(--bb) + (var(--bh) + 11.6) * var(--k)); font-size: calc(12 * var(--k)); line-height: 1.2; letter-spacing: .12em; }
  #luisa .person-bio, #zain .person-bio { left: var(--m); right: var(--m); top: auto; bottom: var(--bb); font-size: calc(14 * var(--k)); line-height: 1.45; }

  /* offices: three-line city stack, coordinates beside their own city, red kept to the heading, network in white.
     The whole slide scales to fit the screen height (844 is the design height), so the network block, which sits last, never clips on short viewports. */
  #offices { --k: min(calc(100vw / 390), calc(100svh / 844)); }
  #offices .globe { left: 0; top: calc(150 * var(--k)); width: 100%; height: calc(230 * var(--k)); z-index: 0; }
  #offices .globe img { object-position: 40% 50%; }
  #offices .off-h { left: var(--m); font-size: calc(84 * var(--k)); line-height: 1; letter-spacing: -.06em; white-space: nowrap; z-index: 2; }
  #offices .off-h.red { top: calc(78 * var(--k)); margin: 0; }
  #offices .off-city { line-height: .952; }
  #offices .off-h.red + .off-city { top: calc(346 * var(--k)); }
  #offices .off-city + .off-city { top: calc(506 * var(--k)); }
  #offices .off-h .mbr { display: block; }
  #offices .off-co { right: var(--m); left: auto; top: calc(370 * var(--k)); font-size: calc(11 * var(--k)); line-height: 1.15; text-align: right; z-index: 2; }
  #offices .off-co .sp { height: 4.973em; }
  #offices .off-net { left: var(--m); top: calc(680 * var(--k) - var(--sb) * .5); font-size: calc(18 * var(--k)); line-height: 1.15; color: #fff; text-align: left; z-index: 2; }
  #zain .zn-frame { display: contents; }

  /* services: the light sweep is a desktop scrub effect; on phones the hard cut replaces it and it stayed parked as a strip from 42% across */
  .ts-services .sweep { display: none; }

  /* brands: clear breathing space between the heading and the logo grid (the stack stays centred, so the heading rises) */
  .s-brands .mt-row { margin-bottom: 52px; }
}

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