/* 13YEARS — tokens, hero film, services, footer. Flat surfaces, hairlines, sharp corners. */

@font-face {
  font-family: "Brown";
  src: url("assets/fonts/Brown-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brown";
  src: url("assets/fonts/Brown-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brown";
  src: url("assets/fonts/Brown-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --yellow: #fff200;
  --alabaster: #eaeaea;
  --white: #ffffff;
  --graphite: #2d2c2f;

  --text-dim: rgba(234, 234, 234, 0.55);
  --hairline: rgba(234, 234, 234, 0.14);

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family:
    "Brown",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

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

/* Shared type utilities */
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ch__idx,
.readout,
.svc-row__no {
  font-feature-settings: "tnum" 1;
}

/* Brand motif chip: yellow square, black arrow */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--yellow);
  color: var(--black);
  font-size: 12px;
  line-height: 1;
}

/* ---------- Header (transparent, self-inverting over footage via mix-blend) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  mix-blend-mode: difference;
}
.logo {
  width: 110px;
  height: auto;
}
.logo use,
.logo path {
  fill: var(--white);
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.header-tag {
  color: var(--text-dim);
  mix-blend-mode: difference;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 2px 14px 0; /* optical: Brown's caps sit ~1px high in the line box */
  border: 1px solid rgba(255, 242, 0, 0.56);
  border-radius: 7px;
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
.header-contact:hover {
  transform: translateY(-1px);
  background: #fff64d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.14);
}
.header-contact:focus-visible {
  outline-color: var(--white);
}

/* ---------- Hero: full-bleed scroll-driven film ---------- */
#showcase {
  position: relative;
  height: calc(1250vh + 50svh); /* + END_HOLD (main.js): the end frame holds for 50svh of scroll */
  background: var(--black);
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  --edge: clamp(24px, 5vw, 72px);
}

#reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Per-chapter scrim, keyed by the stage's data-chapter */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}
/* Opening frame is brand yellow with the 13Y mark baked in: no scrim,
   black ink sits straight on the frame. */
/* Dark footage (x-ray car): white ink */
.stage[data-chapter="content"]::before {
  background: radial-gradient(at 0% 100%, rgba(0, 0, 0, 0.62), transparent 62%);
  opacity: 1;
}
/* Events sweeps through cream dress frames mid-segment: stronger, wider */
.stage[data-chapter="events"]::before {
  background: radial-gradient(at 0% 100%, rgba(0, 0, 0, 0.74), transparent 70%);
  opacity: 1;
}
/* Strategy (cream collage, 2026-09-09 cut) and AI (orange) are bright:
   graphite ink on a light floor */
.stage[data-chapter="strategy"]::before,
.stage[data-chapter="ai"]::before {
  background: radial-gradient(
    at 0% 100%,
    rgba(234, 234, 234, 0.78),
    transparent 62%
  );
  opacity: 1;
}

.film-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ---- Intro (bottom-left, black ink on the yellow opening frame) ---- */
.intro {
  position: absolute;
  left: var(--edge);
  bottom: var(--edge);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: min(88vw, 720px);
  color: var(--black);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 400ms ease,
    visibility 0s linear 400ms;
}
.intro.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease;
}
.intro__headline {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--black);
  --hl: var(--black);
}
.intro__line {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.78);
}
.intro__cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.intro .chip {
  background: var(--black);
  color: var(--yellow);
}
.intro__cuetext {
  color: rgba(0, 0, 0, 0.62);
}
/* Type reveal: letters settle (and the NOW bar sweeps) once the intro is
   live; site.js flips is-live in step with is-on and the loading curtain */
.intro.is-live .mn__l {
  opacity: 1;
  transform: none;
}
.intro.is-live .mn__word--hl i {
  background-size: 100% 22%;
}
.intro .mn__word--hl i {
  background-position: 0 86%;
}

/* ---- Chapter blocks ---- */
.ch {
  position: absolute;
  display: flex;
  flex-direction: column;
  max-width: min(88vw, 620px);
  --segp: 0;
  --center: 0px;
  --ty: -10px;
  --headline-c: #fff;
  --body-c: rgba(255, 255, 255, 0.82);
  --caps-c: rgba(255, 255, 255, 0.66);
  --border-c: rgba(255, 255, 255, 0.26);
  --idx-c: var(--yellow);
  transform: translateY(calc(var(--center) + var(--ty)));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    visibility 0s linear 240ms;
}
.ch.is-on {
  --ty: calc(var(--segp) * -14px);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 480ms ease,
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s;
}

.ch__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ch__idx {
  color: var(--idx-c);
}
.ch__rule {
  width: 24px;
  height: 1px;
  flex: 0 0 24px;
  background: var(--caps-c);
}
.ch__sector {
  color: var(--headline-c);
}

.ch__headline {
  margin: 0 0 16px;
  font-size: clamp(27px, 4vw, 61px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--headline-c);
  text-wrap: balance;
}
.ch__body {
  margin: 0 0 18px;
  max-width: 34ch;
  font-size: clamp(15px, 1.06vw, 17px);
  line-height: 1.58;
  color: var(--body-c);
}
.ch__body strong {
  font-weight: 700;
  color: var(--headline-c);
}
.ch__caps {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-c);
  color: var(--caps-c);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Placement + composition per chapter: every chapter anchors bottom-left
   (the film keeps its subjects centre/right); AI runs on bright frames */
.ch--strategy,
.ch--content,
.ch--events,
.ch--ai {
  left: var(--edge);
  bottom: var(--edge);
}
.ch--strategy,
.ch--ai {
  --headline-c: #141416;
  --body-c: rgba(20, 20, 22, 0.82);
  --caps-c: rgba(20, 20, 22, 0.64);
  --border-c: rgba(20, 20, 22, 0.26);
  --idx-c: #000;
}
.ch__caps {
  max-width: 52ch;
  line-height: 1.7;
}

/* ---- Entrance choreography (one orchestrated, staggered move) ---- */
.ch.is-on .ch__kicker {
  animation: ch-rise 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0ms;
}
.ch.is-on .ch__headline {
  animation: ch-reveal 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 60ms;
}
.ch.is-on .ch__body {
  animation: ch-rise 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 120ms;
}
.ch.is-on .ch__caps {
  animation: ch-rise 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 180ms;
}

@keyframes ch-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ch-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

/* ---- Readout (fixed bottom-right in the stage) ---- */
.readout {
  position: absolute;
  right: var(--edge);
  bottom: var(--edge);
  z-index: 4;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 300ms ease;
}
.readout.is-on {
  opacity: 1;
}

/* ---- Chapter client mark (bottom-right, above the readout) ----
   One element; the mask and ink follow .stage[data-chapter]. Masks over a
   single ink like .clients__logo, never <img> (source files mix fills). */
.ch-brand {
  position: absolute;
  right: var(--edge);
  bottom: calc(var(--edge) + 28px);
  z-index: 4;
  width: 150px;
  height: 22px;
  background: var(--white);
  -webkit-mask: var(--logo) no-repeat right center / contain;
  mask: var(--logo) no-repeat right center / contain;
  opacity: 0;
  transition: opacity 300ms ease;
}
/* Only the AI chapter carries a mark (client removed the other three, 16 Sep). */
.stage[data-chapter="ai"] .ch-brand {
  --logo: url("assets/clients/loreal-groupe.svg");
  opacity: 1;
  background: #141416; /* graphite on the pale chapter, like its copy */
}

/* ---------- Shared services/work section header primitives ---------- */
.services__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
}
.services__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.services__head .chip {
  width: clamp(22px, 2.2vw, 30px);
  height: clamp(22px, 2.2vw, 30px);
  flex-basis: auto;
  font-size: clamp(14px, 1.4vw, 19px);
}
.services__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--black);
}
.services__lede {
  flex-basis: 100%;
  margin: 0;
  max-width: 52ch;
  color: rgba(0, 0, 0, 0.55);
  font-size: clamp(16px, 1.2vw, 17px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--hairline);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) var(--pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.logo--footer {
  width: 90px;
}
.footer-tag {
  color: var(--text-dim);
}
.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.footer-mail {
  text-decoration: none;
}
.footer-mail:hover {
  text-decoration: underline;
}
.footer-services {
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Stacked hero: narrow OR portrait ----------
   The reel is 16:9; portrait cover-crop destroys the negative space the
   desktop compositions were placed against, so any portrait viewport
   (incl. 768x1024 and 1024x1366) collapses to a scrim-backed bottom anchor. */
@media (max-width: 899px), (orientation: portrait) {
  /* All chapters anchor bottom-left, ink values kept.
     vmin keys type off the short side, so portrait phones and landscape
     phones resolve to the same scale while tablets still grow. */
  .ch {
    left: var(--edge);
    right: var(--edge);
    bottom: var(--edge);
    top: auto;
    max-width: 34rem;
    --center: 0px;
    text-align: left;
    align-items: flex-start;
  }
  .ch__headline {
    font-size: clamp(22px, 6.4vmin, 48px);
  }
  .ch__body {
    font-size: clamp(14px, 2.1vmin, 17px);
    max-width: 34ch;
  }

  /* Readout moves under the header, clear of the bottom-anchored copy */
  .readout {
    bottom: auto;
    top: calc(var(--header-h) + 8px);
  }
  .ch-brand {
    bottom: auto;
    top: calc(var(--header-h) + 30px);
    height: 18px;
    width: 150px;
  }

  /* Bottom scrims sized to ink: dark footage vs light footage */
  .stage[data-chapter="content"]::before,
  .stage[data-chapter="events"]::before {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.36) 46%,
      transparent 72%
    );
    opacity: 1;
  }
  .stage[data-chapter="strategy"]::before,
  .stage[data-chapter="ai"]::before {
    background: linear-gradient(
      0deg,
      rgba(234, 234, 234, 0.82),
      rgba(234, 234, 234, 0.42) 44%,
      transparent 64%
    );
    opacity: 1;
  }
  .intro__headline {
    font-size: clamp(26px, 7.4vmin, 56px);
  }
  .intro__line {
    font-size: clamp(14px, 2.3vmin, 18px);
  }
}

/* Layout collapse for narrow widths regardless of orientation */
@media (max-width: 899px) {
  .services__head {
    margin-bottom: 32px;
  }

  .site-footer__inner {
    flex-direction: column;
  }
  .site-footer__right {
    align-items: flex-start;
    text-align: left;
  }
}

/* Phone: trim chrome */
@media (max-width: 599px) {
  :root {
    --header-h: 64px;
  }
  .header-tag {
    display: none;
  }
  .readout {
    display: none;
  }
}

/* ---------- Reduced motion: opacity-only, no transforms or parallax ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ch {
    transform: none;
    transition:
      opacity 240ms ease,
      visibility 0s linear 240ms;
  }
  .ch.is-on {
    transform: none;
    transition:
      opacity 240ms ease,
      visibility 0s;
  }

  .ch.is-on .ch__kicker,
  .ch.is-on .ch__headline,
  .ch.is-on .ch__body,
  .ch.is-on .ch__caps {
    animation: none;
  }

  .intro,
  .intro.is-on {
    transition: opacity 240ms ease;
  }
}

/* ---- Nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  mix-blend-mode: difference;
}
.site-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 180ms ease;
}
.site-nav a:hover {
  opacity: 1;
}
.site-nav a[aria-current="page"] {
  opacity: 1;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  background: var(--yellow);
}
/* Compact header on phones: everything stays on one line, button included */
@media (max-width: 480px) {
  .logo {
    width: 78px;
  }
  .site-nav {
    gap: 10px;
  }
  .site-nav a {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .site-header__right {
    gap: 10px;
  }
  .header-contact {
    min-height: 30px;
    padding: 2px 10px 0;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

/* ---- Reveal utility (IO-driven, opacity+transform on inner elements only) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.is-in .reveal,
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0ms),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Work grid (homepage) ---------- */
#work {
  background: var(--black);
}
.work__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
}
.work__title {
  color: var(--white);
}
.work__lede {
  flex-basis: 100%;
  margin: 0;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.2vw, 17px);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  color: var(--white);
  text-decoration: none;
}
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tile__veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: background 600ms ease;
  pointer-events: none;
}
.tile__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover video {
    transform: scale(1.04);
  }
  .tile:hover .tile__veil {
    background: rgba(0, 0, 0, 0.12);
  }
}
@media (max-width: 899px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile video {
    transition: none;
  }
  .tile:hover video {
    transform: none;
  }
}

/* ---------- Shared subpage primitives (work / services / about) ---------- */
.page-opener {
  padding-top: calc(var(--header-h) + clamp(64px, 12vh, 140px));
  padding-bottom: clamp(48px, 8vh, 96px);
}
.page-opener__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.4vh, 24px);
}
.page-opener .chip {
  width: clamp(24px, 2.4vw, 32px);
  height: clamp(24px, 2.4vw, 32px);
  flex-basis: auto;
  font-size: clamp(15px, 1.5vw, 20px);
}
.page-title {
  margin: 0;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.92;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--white);
}
.page-lede {
  margin: 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 20px);
}

.cta-band {
  background: var(--black);
  border-top: 1px solid var(--hairline);
}
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cta-band__line {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}
.cta-band__mail {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--yellow);
  text-decoration: none;
}
.cta-band__mail:hover {
  text-decoration: underline;
}

/* Tiles can carry a still image instead of video (Work page Beauty plate) */
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover img {
    transform: scale(1.04);
  }
}

/* ---------- Services page (light) ---------- */
.page-light {
  background: var(--alabaster);
  color: var(--black);
}
.page-light .page-title {
  color: var(--black);
}
.page-light .page-lede {
  color: rgba(0, 0, 0, 0.55);
}

.sp-chapters {
  display: flex;
  flex-direction: column;
}
.sp-chapter {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
  min-height: 90vh;
}
.sp-chapter:nth-child(even) {
  grid-template-columns: 5fr 7fr;
}
.sp-chapter:nth-child(even) .svc-plate {
  order: 2;
}
.sp-chapter:nth-child(even) .sp-text {
  order: 1;
}
.svc-plate {
  position: relative;
  overflow: hidden;
  min-height: 56vh;
  /* Follow the photos' own ratio (1600×1717) so cover trims nothing but the
     parallax overscan below. Client: "cropped too much on desktop", 09-17. */
  aspect-ratio: 1600 / 1717;
}
.svc-plate img {
  position: absolute;
  top: -3%;
  left: 0;
  width: 100%;
  height: 106%; /* the parallax travels ±24px; 3% of an 800px plate covers it */
  object-fit: cover;
  transform: translateY(calc(var(--par, 0) * 1px));
  will-change: transform;
}
.sp-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 26px);
  padding: clamp(48px, 8vh, 120px) var(--pad);
}
.sp-index {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.15);
  font-feature-settings: "tnum" 1;
}
.sp-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--black);
}
.sp-desc {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.2vw, 18px);
  color: rgba(0, 0, 0, 0.62);
}
.sp-desc strong {
  font-weight: 700;
  color: #000;
}
.sp-caps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 46ch;
}
.sp-caps li {
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.72);
}
.sp-caps li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
@media (max-width: 899px) {
  .sp-chapter,
  .sp-chapter:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .sp-chapter:nth-child(even) .svc-plate,
  .sp-chapter:nth-child(even) .sp-text {
    order: 0;
  }
  /* Stacked: the photo is an in-flow image, not an absolute fill. A grid
     item sized only by aspect-ratio under align-items:stretch collapsed to
     0px in Safari (client saw no images on phones, 2026-09-17). */
  .svc-plate {
    min-height: 0;
    aspect-ratio: auto;
  }
  .svc-plate img {
    position: static;
    display: block;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transform: none;
    will-change: auto;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .svc-plate img {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- About page ---------- */
.ab-hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ab-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}
.ab-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2vh, 22px);
}
.ab-hero__kicker {
  color: var(--white);
}
.ab-hero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(34px, 5.4vw, 84px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--white);
}
.ab-hero__sub {
  margin: 0;
  max-width: 40ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 20px);
}

.ab-marquee {
  overflow: hidden;
  padding: clamp(16px, 2.6vh, 28px) 0;
  border-block: 1px solid var(--hairline);
}
.ab-marquee__track {
  display: flex;
  width: max-content;
  animation: ab-marquee 28s linear infinite;
}
.ab-marquee__group {
  display: flex;
  flex-shrink: 0;
}
.ab-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0 clamp(20px, 3vw, 48px);
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--yellow);
}
.ab-marquee__item i {
  font-style: normal;
  opacity: 0.55;
}
@keyframes ab-marquee {
  to {
    transform: translateX(-50%);
  }
}

.ab-pillars {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 128px) var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 10vh, 140px);
}
.ab-pillar {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.ab-pillar:nth-child(even) {
  grid-template-columns: 5fr 7fr;
}
.ab-pillar:nth-child(even) .ab-pillar__media {
  order: 2;
}
.ab-pillar:nth-child(even) .ab-pillar__text {
  order: 1;
}
.ab-pillar__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.ab-pillar__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-pillar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.ab-pillar__no {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(234, 234, 234, 0.28);
  font-feature-settings: "tnum" 1;
}
.ab-pillar__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--white);
}
.ab-pillar__lead {
  margin: 4px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.ab-pillar__body {
  margin: 0;
  max-width: 42ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.2vw, 18px);
}
.ab-relay {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(18px, 3vh, 32px);
  border-top: 1px solid var(--hairline);
}
.ab-relay__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px clamp(10px, 1.6vw, 22px) 0 0;
  border-right: 1px solid var(--hairline);
}
.ab-relay__cell:last-child {
  border-right: 0;
  padding-right: 0;
}
.ab-relay__city {
  color: var(--text-dim);
}
.ab-relay__time {
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  font-feature-settings: "tnum" 1;
}

.ab-closing {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.ab-closing > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.ab-closing__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 899px) {
  .ab-pillar,
  .ab-pillar:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ab-pillar:nth-child(even) .ab-pillar__media,
  .ab-pillar:nth-child(even) .ab-pillar__text {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-marquee__track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }
  .ab-marquee__group[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Homepage work v3: asymmetric reel mosaic ---------- */
#work {
  position: relative;
  overflow: clip;
}
#work .work__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 242, 0, 0.08), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
  opacity: 1;
}
#work .work__inner {
  position: relative;
  z-index: 1;
}
#work .work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(160px, auto);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
}
#work .tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #090909;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#work .tile--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
#work .tile video,
#work .tile img {
  transform: scale(1.001);
  filter: saturate(0.92) contrast(1.04) brightness(0.92);
  transition:
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
#work .tile__veil {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.16),
    rgba(0, 0, 0, 0.34) 44%,
    rgba(0, 0, 0, 0.82)
  );
}
#work .tile__meta {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
#work .tile__index,
#work .tile__caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#work .tile__index {
  color: rgba(255, 255, 255, 0.56);
}
#work .tile__caps {
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  text-align: right;
}
#work .tile__label {
  z-index: 2;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: 0.12em;
}
#work .tile.is-playing video,
#work .tile.is-playing img {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.06) brightness(1);
}
#work .tile.is-playing .tile__veil {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.24) 42%,
    rgba(0, 0, 0, 0.72)
  );
}

@media (hover: hover) and (pointer: fine) {
  #work .tile:hover video,
  #work .tile:hover img {
    transform: scale(1.06);
    filter: saturate(1.04) contrast(1.06) brightness(1);
  }
  #work .tile:hover .tile__veil {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.24) 42%,
      rgba(0, 0, 0, 0.72)
    );
  }
}

@media (max-width: 899px) {
  #work .work-grid {
    grid-template-columns: 1fr;
    /* Safari resolved each tile's WIDTH from the 160px row minimum through
       aspect-ratio (160 × 16/9 = 284px, two-thirds of a phone). An explicit
       width makes the ratio derive the height instead, as Chrome already did. */
    grid-auto-rows: auto;
  }
  #work .tile,
  #work .tile--wide {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  /* Number + cue sit bottom-left in white on the dark end of the veil, clear
     of the centred title (client request 2026-09-17). */
  #work .tile__meta {
    top: auto;
    bottom: 14px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  #work .tile__index,
  #work .tile__caps {
    color: rgba(255, 255, 255, 0.92);
  }
  #work .tile__caps {
    max-width: none;
    text-align: left;
  }
}

/* Header ink while over a light section (site.js) or a pale film frame
   (main.js: yellow opening frame + white tail). The intro also flips the
   yellow button to black so it doesn't melt into the yellow frame. */
body.over-light .brand,
body.over-light .site-nav,
body.over-pale .brand,
body.over-pale .site-nav {
  mix-blend-mode: normal;
}
body.over-light .site-nav a,
body.over-pale .site-nav a {
  color: var(--black);
}
body.over-light .logo use,
body.over-light .logo path,
body.over-pale .logo use,
body.over-pale .logo path,
body.page-light .logo use,
body.page-light .logo path {
  fill: var(--black);
}
/* Light pages (services, privacy): the header cannot blend (it is its own
   stacking context), so ink is solid black, and site.js flips each SIDE back
   to white while a [data-ink-dark] plate sits under it — the services photo
   can be under the logo while alabaster is under the nav. */
body.page-light .brand,
body.page-light .site-nav {
  mix-blend-mode: normal;
}
body.page-light .site-nav a {
  color: var(--black);
}
body.page-light.ink-logo-light .logo use,
body.page-light.ink-logo-light .logo path {
  fill: var(--white);
}
body.page-light.ink-nav-light .site-nav a {
  color: var(--white);
}
body.over-intro .header-contact {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
  box-shadow: none;
}

/* ---------- Clients band (under the hero) ----------
   Self-hosted SVG marks in assets/clients/. Each logo renders as a CSS
   mask over one ink color, so mixed white/dark source files all read as a
   single alabaster tone on black. Sizes echo the source's optical scale. */
.stage .clients {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  padding: 16px 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 400ms ease,
    visibility 0s linear 400ms;
}
.stage[data-chapter="intro"] .clients {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease;
}
/* Intro copy sits above the strip */
.intro {
  bottom: calc(var(--edge) + 76px);
}
.clients__track {
  display: flex;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .clients__track {
    animation: clients-drift 75s linear infinite;
  }
}
@keyframes clients-drift {
  to {
    transform: translateX(-50%);
  }
}
.clients__strip {
  display: flex;
  align-items: center;
  height: 28px;
  gap: clamp(40px, 4.5vw, 72px);
  padding-right: clamp(40px, 4.5vw, 72px);
}
.clients__logo {
  /* --w/--h per logo (index.html): area-normalised from each SVG's aspect
     ratio so every mark reads at one optical weight; --k scales the set. */
  --k: 1;
  display: block;
  width: calc(var(--w) * var(--k) * 1px);
  height: calc(var(--h) * var(--k) * 1px);
  flex: none;
  background: rgba(255, 255, 255, 0.92);
  -webkit-mask: var(--logo) no-repeat center / contain;
  mask: var(--logo) no-repeat center / contain;
}
@media (max-width: 599px) {
  .clients {
    padding: 22px 0;
  }
  .clients__logo {
    --k: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }
}

/* ---------- End frame: wormhole field (oddity-003 port) ----------
   The film fades to white at ~70.4s and holds there on its last lock;
   #manifesto sits inside the sticky stage, on that frame. Three.js field
   in mn-field.js; type reveals letter-by-letter via the scramble-decode
   in site.js, then a yellow highlight sweeps "back." main.js toggles
   .is-on (chapter "end"), site.js follows with .is-live. The .mn__line /
   .mn__word / .mn__l primitives are shared with the hero intro. */
#manifesto {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: clip;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--black);
  padding: calc(var(--header-h) + clamp(16px, 4vh, 40px)) var(--pad)
    clamp(40px, 8vh, 80px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 520ms ease,
    visibility 0s linear 520ms;
}
#manifesto.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease;
}
/* Short viewports (landscape phones): compact the block so the sign-off
   stays inside the stage */
@media (max-height: 560px) {
  #manifesto {
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 16px;
  }
  #manifesto .mn__inner {
    gap: 8px;
  }
  #manifesto .mn__headline {
    font-size: clamp(22px, 6vh, 40px);
  }
  #manifesto .mn__body {
    font-size: clamp(12px, 2.6vh, 15px);
    line-height: 1.4;
    max-width: 60ch;
  }
  #manifesto .mn__sign {
    font-size: clamp(15px, 3.4vh, 20px);
  }
}

.mn__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mn__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(18px, 3.2vh, 30px);
  max-width: 68rem;
}

.mn__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.mn__headline {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: clamp(38px, 5.8vw, 92px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--black);
}

.mn__line {
  display: block;
}

.mn__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.mn__word i {
  display: inline-block;
  font-style: normal;
  padding: 0 0.05em;
}

.mn__l {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) scaleY(1.5) rotate(4deg);
  transform-origin: 0 100%;
  transition:
    opacity 420ms ease var(--ld, 0ms),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1) var(--ld, 0ms);
}

#manifesto.is-live .mn__l {
  opacity: 1;
  transform: none;
}

.mn__word--hl i {
  background: linear-gradient(var(--hl, var(--yellow)), var(--hl, var(--yellow)))
    no-repeat 0 74% / 0% 30%;
  transition: background-size 650ms cubic-bezier(0.16, 1, 0.3, 1) 1250ms;
}

#manifesto.is-live .mn__word--hl i {
  background-size: 100% 30%;
}

.mn__body {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease 700ms,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 700ms;
}

.mn__body--close {
  color: var(--black);
  transition-delay: 850ms, 850ms;
}

.mn__sign {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms ease 1000ms,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms;
}

.mn__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms ease 1150ms,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 1150ms;
}

.mn__more:hover span:last-child {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

#manifesto.is-live .mn__body,
#manifesto.is-live .mn__sign {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .mn__l,
  .mn__word--hl i,
  .mn__body,
  .mn__sign,
  .mn__more {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .mn__word--hl i {
    background-size: 100% 30%;
  }
}

/* ---------- Showreel: scroll-expanding plate ---------- */
#showreel {
  position: relative;
  background: var(--black);
  height: 240vh;
}

.reelsec__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}

.reelsec__plate {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  transform: scale(var(--rs, 1));
  will-change: transform;
}

.reelsec__plate video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reelsec__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4.6vh, 44px);
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.reelsec__cue .chip {
  font-size: 9px;
}

.reelsec__full {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background: #000;
}

.reelsec__full:fullscreen {
  opacity: 1;
  pointer-events: auto;
}

.reelsec__full:-webkit-full-screen {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 899px), (orientation: portrait) {
  #showreel {
    height: auto;
  }
  .reelsec__stage {
    position: static;
    height: 64svh;
  }
  .reelsec__plate {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #showreel {
    height: auto;
  }
  .reelsec__stage {
    position: static;
    height: 64svh;
  }
  .reelsec__plate {
    transform: none;
  }
}


/* ---------- Brown type layer ----------
   Brown carries the site at its native scale (the original clamps were
   built for a grotesque of this width). Ledes drop to Light 300 for
   editorial contrast against Bold display; the guards below are overflow
   insurance only, not sizing. */
.page-lede,
.mn__body,
.work__lede,
.sp-desc,
.ab-pillar__body,
.ch__body {
  font-weight: 300;
}

.sp-text,
.mn__inner,
.ab-pillar__text {
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- Sanofi private page (sanofi.html, unlisted) ----------
   Same scrub mechanism as the hero; own chapter keys (s1-s6) so hero
   scrim/placement rules never collide. Ink per segment follows footage:
   pale frames get graphite ink + light scrim, dark frames white + dark. */
#sq {
  position: relative;
  height: 1100vh;
  background: var(--alabaster);
}

#sqreel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Graphite ink for pale segments */
.sq-ink-dark {
  --headline-c: #141416;
  --body-c: rgba(20, 20, 22, 0.82);
  --caps-c: rgba(20, 20, 22, 0.64);
  --border-c: rgba(20, 20, 22, 0.26);
  --idx-c: #000;
}

/* Subtle brand-yellow strokes on the copy blocks (Sanofi page only):
   a hairline bar down the copy's edge and a 2px rule in the kicker.
   No yellow in the readout — its difference blend would invert the hue. */
#sq .ch {
  border-left: 1px solid rgba(255, 242, 0, 0.5);
  padding-left: 24px;
}
#sq .ch__rule {
  width: 28px;
  flex: 0 0 28px;
  height: 2px;
  background: #fff200;
}

/* Desktop placements per segment (stacked mode keeps the generic
   bottom-left anchor from the shared .ch rules) */
@media (min-width: 900px) and (orientation: landscape) {
  .sq-ch--s1 {
    left: var(--edge);
    top: 50%;
    --center: -50%;
  }
  .sq-ch--s2,
  .sq-ch--s3,
  .sq-ch--s4,
  .sq-ch--s5,
  .sq-ch--s6,
  .sq-ch--s7,
  .sq-ch--s8 {
    left: var(--edge);
    bottom: var(--edge);
  }
  .sq-ch--s9 {
    right: var(--edge);
    bottom: calc(var(--edge) + 40px);
    text-align: right;
    align-items: flex-end;
  }
  #sq .sq-ch--s9 {
    border-left: 0;
    padding-left: 0;
    border-right: 1px solid rgba(255, 242, 0, 0.5);
    padding-right: 24px;
  }
  .sq-ch--s9 .ch__kicker {
    justify-content: flex-end;
  }
}

/* Per-segment scrims: dark footage gets a dark scrim + white ink,
   pale frames (s1 brand board, s9 pale sky) light scrim + graphite */
.sq-stage[data-chapter="s2"]::before,
.sq-stage[data-chapter="s3"]::before,
.sq-stage[data-chapter="s4"]::before,
.sq-stage[data-chapter="s5"]::before,
.sq-stage[data-chapter="s6"]::before,
.sq-stage[data-chapter="s7"]::before,
.sq-stage[data-chapter="s8"]::before {
  background: radial-gradient(at 0% 100%, rgba(0, 0, 0, 0.62), transparent 62%);
  opacity: 1;
}
.sq-stage[data-chapter="s1"]::before {
  background: radial-gradient(
    at 0% 50%,
    rgba(234, 234, 234, 0.7),
    transparent 55%
  );
  opacity: 1;
}
.sq-stage[data-chapter="s9"]::before {
  background: radial-gradient(
    at 100% 100%,
    rgba(234, 234, 234, 0.78),
    transparent 60%
  );
  opacity: 1;
}

@media (max-width: 899px), (orientation: portrait) {
  /* Stacked: generic .ch rules bottom-anchor the copy; scrims sized to ink */
  .sq-stage[data-chapter="s2"]::before,
  .sq-stage[data-chapter="s3"]::before,
  .sq-stage[data-chapter="s4"]::before,
  .sq-stage[data-chapter="s5"]::before,
  .sq-stage[data-chapter="s6"]::before,
  .sq-stage[data-chapter="s7"]::before,
  .sq-stage[data-chapter="s8"]::before {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.68),
      rgba(0, 0, 0, 0.32) 44%,
      transparent 70%
    );
  }
  .sq-stage[data-chapter="s1"]::before,
  .sq-stage[data-chapter="s9"]::before {
    background: linear-gradient(
      0deg,
      rgba(234, 234, 234, 0.8),
      rgba(234, 234, 234, 0.4) 42%,
      transparent 62%
    );
  }
  .sq-ch--s9 {
    text-align: left;
    align-items: flex-start;
  }
  .sq-ch--s9 .ch__kicker {
    justify-content: flex-start;
  }
}

/* ---------- Loading curtain ----------
   Brand-yellow screen held until the film is fully in memory (main.js
   streams the reel and drives --p from 0 to 1). Ring is an SVG stroke:
   a short arc orbits until the first bytes land, then the arc fills. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fff200;
  color: var(--white);
  transition:
    opacity 640ms ease,
    visibility 0s linear 640ms;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading {
  overflow: hidden;
}
.loader__ring {
  position: relative;
  width: clamp(200px, 30vmin, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.loader__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.loader__track,
.loader__bar {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
}
.loader__track {
  opacity: 0.3;
}
.loader__bar {
  --c: 351.86; /* 2 * pi * r(56) */
  stroke-dasharray: var(--c);
  stroke-dashoffset: calc(var(--c) * (1 - var(--p, 0)));
  transition: stroke-dashoffset 280ms linear;
}
.loader:not(.is-determinate) .loader__svg {
  animation: loader-orbit 1.3s linear infinite;
}
.loader:not(.is-determinate) .loader__bar {
  stroke-dashoffset: calc(var(--c) * 0.86);
  transition: none;
}
.loader__word {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  animation: loader-breathe 1.9s ease-in-out infinite;
}
@keyframes loader-orbit {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}
@keyframes loader-breathe {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader:not(.is-determinate) .loader__svg,
  .loader__word {
    animation: none;
  }
}

/* ---------- Legal page (privacy.html) + cookie consent ----------
   Consent bar is injected by site.js on every page that loads it (not the
   private Sanofi page). z-index 60: above the header (50), under the loading
   curtain (100). Reject is styled exactly like Accept (CNIL: refusing must be
   as easy as accepting). */
.legal {
  padding-bottom: clamp(80px, 12vh, 160px);
}
.legal__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.legal__inner > * {
  max-width: 68ch;
}
.legal__updated {
  margin: 0 0 clamp(32px, 5vh, 56px);
  color: rgba(0, 0, 0, 0.55);
}
.legal h2 {
  margin: clamp(40px, 6vh, 72px) 0 12px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.legal h3 {
  margin: 28px 0 6px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
}
.legal p {
  margin: 0 0 16px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal code {
  font: inherit;
  font-weight: 700;
}
.legal__table {
  max-width: none;
  overflow-x: auto;
  margin: 8px 0 20px;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: clamp(14px, 1.1vw, 16px);
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  line-height: 1.4;
}
.legal th {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.footer-legal {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  margin: 0 auto;
  max-width: 880px;
  padding: 18px 22px;
  background: var(--black);
  color: var(--alabaster);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.consent.is-on {
  opacity: 1;
  transform: none;
}
.consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.consent__text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.consent__btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--alabaster);
  background: transparent;
  color: var(--alabaster);
  transition: background 150ms ease, color 150ms ease;
}
.consent__btn:hover,
.consent__btn:focus-visible {
  background: var(--alabaster);
  color: var(--black);
  outline: none;
}
@media (max-width: 599px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
  .consent__actions {
    width: 100%;
  }
  .consent__btn {
    flex: 1 1 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent {
    transition: none;
    transform: none;
  }
}
