/* =========================================================================
   Theme: RAW (phase 3, public).
   The phase-2 variant's type system (grids03: one weight, 12 / 45 / 90,
   uppercase display) set in BDO Grotesk, RAW's own typeface (SIL OFL 1.1,
   Lokal Container; licence in assets/fonts/OFL.txt). Titles: Chakra Petch 400/500/600, latin, served
   from the site like BDO Grotesk (SIL OFL 1.1; licence in assets/fonts/OFL-ChakraPetch.txt). Accent: #d1fe17,
   used only for active states. Nothing here comes from the references.
   ========================================================================= */

@font-face { font-family: "BDO Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/BDOGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ChakraPetch-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ChakraPetch-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ChakraPetch-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched fallback so text doesn't jump while BDO Grotesk loads. */
@font-face { font-family: "BDO Grotesk Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 101%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }

:root {
  --s: calc(min(100vw, 1920px) / 1440); /* type stops growing past 1920 */
  --font: "BDO Grotesk", "BDO Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-title: "Chakra Petch", var(--font); /* home titles, numbers, film player (free, SIL OFL) */
  --ff-features: normal;

  --c-bg: #000;
  --c-fg: #fff;
  --c-muted: #8e929e;
  --c-line: #494b52;
  --c-surface: #222224;
  --c-error: #f44;
  --c-accent: #d1fe17;
  --c-accent-ink: #000;

  --pad: 10px;
  --max: none; /* full bleed on wide screens: films run edge to edge */

  --t12: clamp(11px, calc(12 * var(--s)), 15px);
  --fs-tiny: clamp(9px, calc(10 * var(--s)), 12px); --fw-tiny: 400;
  --fs-small: var(--t12); --fw-small: 400; --lh-small: 1.2; --ls-small: -0.02em;
  --fs-body: var(--t12);  --fw-body: 400;  --lh-body: 1.2;  --ls-body: -0.02em;
  --fs-ui: var(--t12); --fs-ui-small: var(--t12); --fw-ui: 400;

  --d90: calc(90 * var(--s));
  --d45: calc(45 * var(--s));
  --fs-h1: var(--d90);   --fw-h1: 400;   --lh-h1: 1;   --ls-h1: -0.06em;
  --fs-h2: var(--d45);   --fw-h2: 400;   --lh-h2: 1;   --ls-h2: -0.06em;
  --fs-h3: var(--d45);   --fw-h3: 400;   --lh-h3: 1;   --ls-h3: -0.06em;
  --fs-lead: var(--d45); --fw-lead: 400; --lh-lead: 1; --ls-lead: -0.06em;
  --fs-st: var(--d45);   --fw-st: 400;   --lh-st: 1;   --ls-st: -0.06em;
  --fs-st-sm: var(--d45); --fw-st-sm: 400;
  --fs-pst: var(--d45);  --fw-pst: 400;  --lh-pst: 1;
  --ls-display: -0.06em;
  --tt-display: uppercase;
  --tt-statement: uppercase;
}
@media (max-width: 809.98px) {
  :root { --t12: 12px; --d90: 44px; --d45: 26px; }
}

/* ---- lenis.css ---- */
html.lenis,html.lenis body{height:auto}.lenis:not(.lenis-autoToggle).lenis-stopped{overflow:clip}.lenis [data-lenis-prevent],.lenis [data-lenis-prevent-wheel],.lenis [data-lenis-prevent-touch]{overscroll-behavior:contain}.lenis.lenis-smooth iframe{pointer-events:none}.lenis.lenis-autoToggle{transition-property:overflow;transition-duration:1ms;transition-behavior:allow-discrete}

/* ---- base.css ---- */
/* Reset, document, type presets. */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--c-bg); color: var(--c-fg);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-width: none;                     /* "Hide Scrollbar" */
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0; min-height: 100vh;
  background: var(--c-bg); color: var(--c-fg);
  font-family: var(--font); font-feature-settings: var(--ff-features);
  font-size: var(--fs-body); font-weight: var(--fw-body); line-height: var(--lh-body); letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--c-fg); color: var(--c-bg); }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, dl, dd, dt, ul, ol, blockquote { margin: 0; padding: 0; font: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 1px solid var(--c-fg); outline-offset: 2px; }
.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; }
.muted { color: var(--c-muted); }

/* type presets */
.t-tiny  { font-size: var(--fs-tiny);  font-weight: var(--fw-tiny);  line-height: var(--lh-small); letter-spacing: var(--ls-small); }
.t-small { font-size: var(--fs-small); font-weight: var(--fw-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); }
.t-body  { font-size: var(--fs-body);  font-weight: var(--fw-body);  line-height: var(--lh-body); letter-spacing: var(--ls-body); }
.t-h3    { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); text-transform: var(--tt-display); }
.t-lead  { font-family: var(--font-display); font-size: var(--fs-lead); font-weight: var(--fw-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); text-transform: var(--tt-statement); }
.t-h2    { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); text-transform: var(--tt-display); }
.t-h1    { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); text-transform: var(--tt-display); }
.t-statement    { font-family: var(--font-display); font-size: var(--fs-st);    font-weight: var(--fw-st);    line-height: var(--lh-st); letter-spacing: var(--ls-st); text-transform: var(--tt-statement); }
.t-statement-sm { font-family: var(--font-display); font-size: var(--fs-st-sm); font-weight: var(--fw-st-sm); line-height: var(--lh-st); letter-spacing: var(--ls-st); text-transform: var(--tt-statement); }
.t-pstate       { font-family: var(--font-display); font-size: var(--fs-pst);   font-weight: var(--fw-pst);   line-height: var(--lh-pst); letter-spacing: var(--ls-st); text-transform: var(--tt-statement); }

/* word-split reveal (scroll text reveal) */
[data-reveal] .w { display: inline-block; white-space: nowrap; text-indent: 0; will-change: opacity; } /* inline-blocks would inherit the 25% first-line indent */
[data-reveal] .wl { display: block; }
.js [data-reveal]:not(.is-split) { opacity: .15; }

/* ---- chrome.css ---- */
/* Fixed chrome shared by every page. Nav and footer blend with "difference"
   so white reads against any frame (it turns warm over blue footage). */

/* ---------- entrance masks: text rises 40px inside a clipping box ---------- */
.mask { display: inline-flex; overflow: clip; vertical-align: top; }
.mask__in { display: inline-flex; align-items: center; }
html.first-visit .enter .mask__in { animation: mask-in .75s cubic-bezier(.16, 1, .3, 1) 1.5s both; }
@keyframes mask-in { from { transform: translateY(40px); } to { transform: none; } }

/* ---------- grain ---------- */
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .1; overflow: hidden; contain: strict; }
.grain canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain__hi { mix-blend-mode: screen; }
.grain__lo { mix-blend-mode: multiply; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max); z-index: 10;
  mix-blend-mode: difference; pointer-events: none;
}
.nav__bar { display: flex; align-items: center; padding: var(--pad); }
.nav__logo { width: 25%; flex: none; display: flex; pointer-events: auto; }
.nav__logo .mask { width: 100%; height: 20px; } /* glitch may spill sideways, not vertically */
.nav__links { flex: 1; display: flex; justify-content: space-between; align-items: center; min-width: 0; }
.nav__link { display: block; pointer-events: auto; }
.nav__menu { display: none; pointer-events: auto; }
.nav__menu-label { line-height: 1.4; }
.plus { position: relative; width: 12px; height: 12px; margin-left: 2px; flex: none; }
.plus i { position: absolute; left: 50%; top: 50%; width: 1px; height: 9px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1), height .3s; }
.plus i + i { transform: translate(-50%, -50%) rotate(90deg); }
.menu-open .plus i { height: 11px; transform: translate(-50%, -50%) rotate(45deg); }
.menu-open .plus i + i { transform: translate(-50%, -50%) rotate(-45deg); }

/* logo glitch canvas spills 18px around the 100x20 box (clipped to the strip) */
.glitch { position: relative; display: block; }
.glitch > img, .glitch > svg { display: block; width: 100%; height: auto; }
.glitch > canvas { position: absolute; pointer-events: none; max-width: none; }
.glitch.is-live > img, .glitch.is-live > svg { visibility: hidden; }
.glitch--logo { width: 100px; height: 21px; }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 9; visibility: hidden; pointer-events: none; }
.menu-open .menu { visibility: visible; pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(6, 1fr); }
.menu__bg span { background: var(--c-bg); transform: scaleY(0); transform-origin: top; transition: transform .5s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 12ms); }
.menu-open .menu__bg span { transform: scaleY(1); }
.menu__list { position: absolute; top: 190px; left: calc(var(--pad) + (100% - var(--pad) * 2) * .25); display: flex; flex-direction: column; gap: 4px; }
.menu__link { display: block; }
.menu__link .mask__in { transform: translateY(110%); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.menu-open .menu__link .mask__in { transform: none; transition-duration: .6s; transition-delay: calc(.3s + var(--i) * 60ms); }
.menu-closing .menu__link .mask__in { transition-delay: calc((4 - var(--i)) * 40ms); }

/* ---------- footer bar ---------- */
.foot {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max); z-index: 10;
  mix-blend-mode: difference; pointer-events: none;
}
.foot__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--pad); }
.foot__tz .mask__in { gap: 16px; }
.foot__clock { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 479.98px) { .foot__clock + .foot__clock { display: none; } }
.foot__time { line-height: 1.1; font-variant-numeric: tabular-nums; min-width: 47px; }
.foot__dot { display: block; width: 3px; height: 3px; background: currentColor; }

/* ---------- cursor: square + WATCH, follows the pointer on a spring ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 10003; pointer-events: none; mix-blend-mode: difference; will-change: transform; }
.cursor__box { position: relative; width: max-content; min-width: 60px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; overflow: clip; transform: translateX(-50%); color: #fff; }
.cursor__sq { width: 10px; height: 10px; flex: none; background: #fff; animation: blink .5s linear infinite alternate; }
.cursor__label { line-height: 1; white-space: nowrap; }
.cursor__sq, .cursor__label { transform: translateX(-90px); transition: transform .45s cubic-bezier(.3, 1.25, .5, 1); }
.cursor.is-on .cursor__sq, .cursor.is-on .cursor__label { transform: none; }
.cursor.is-drag .cursor__sq { display: none; }
@keyframes blink { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none) { .cursor { display: none; } }

/* ---------- page transition: 12 x 6 black cells, centre out ---------- */
.pt { position: fixed; inset: 0; z-index: 10004; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr); pointer-events: none; visibility: hidden; }
.pt__c { position: relative; }
.pt__c i { position: absolute; inset: -1px; background: var(--c-bg); transform: scale(0); opacity: 0; will-change: transform; }
html.pt-covered .pt, .pt.is-active { visibility: visible; pointer-events: auto; }
html.pt-covered .pt__c i { transform: none; opacity: 1; }
.pt.is-covering .pt__c i { transform: none; opacity: 1; transition: transform .7s cubic-bezier(.65, 0, .35, 1) var(--d), opacity .7s cubic-bezier(.65, 0, .35, 1) var(--d); }
.pt.is-revealing .pt__c i { transform: scale(0); opacity: 0; transition: transform .7s cubic-bezier(.65, 0, .35, 1) var(--d), opacity .7s cubic-bezier(.65, 0, .35, 1) var(--d); }

/* ---------- preloader (home) ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity .1s linear; }
.preloader.is-done { opacity: 0; }
.preloader.is-gone { display: none; }
.glitch--pre { width: 105px; height: 22px; }
.no-js .preloader { display: none; }

@media (max-width: 809.98px) {
  .nav__links { display: none; }
  .nav__logo { flex: 1; width: auto; }
  .nav__menu { display: flex; align-items: center; }
}
@media (min-width: 810px) { .menu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html.first-visit .enter .mask__in { animation: none; }
  .cursor__sq { animation: none; }
}

/* ---- components.css ---- */
/* Reusable pieces: hover-fill links, square buttons, filters, project cards, video player. */

/* ---------- hover fill: a white bar wipes across (difference = text inverts) ---------- */
.fx { position: relative; display: inline-flex; }
.fx__t { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.fx__fill { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; mix-blend-mode: difference; }
.fx__bar { position: absolute; inset: 0; background: #fff; clip-path: inset(0 100% 0 0); }
.fx__copy { display: none; }
.sqbtn--plain .fx__copy { padding: 0 2px; }

/* ---------- square button ("Fixed"): 12px square + label ---------- */
.sqbtn { display: inline-flex; }
.sq { display: block; width: 12px; height: 12px; flex: none; background: currentColor; }
.sqbtn--plain .fx { padding: 0 2px; }

/* ---------- digits ---------- */
.digits { display: inline-flex; font-variant-numeric: tabular-nums; }
.digits > span { display: inline-block; }

/* ---------- filters ---------- */
.filters { display: flex; flex-direction: column; align-items: flex-start; }
.filter { display: inline-flex; align-items: flex-start; gap: 4px; padding: 6px 0; color: var(--c-muted); transition: color .25s ease; }
.filter:hover, .filter.is-active { color: var(--c-fg); }
.filter__n { display: none; margin-top: -2px; line-height: 1.4; }
.filter.is-active .filter__n { display: inline-block; }

/* ---------- project card (Works) ---------- */
.pcard { display: block; transition: opacity .25s ease; }
.pcard__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; }
.pcard__thumb img, .pcard__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__thumb video { opacity: 0; transition: opacity .4s ease; }
.pcard.is-playing .pcard__thumb video { opacity: 1; }
.pcard__info { display: flex; align-items: flex-start; padding: 8px; }
.pcard__num { width: 25%; flex: none; }
.pcard__ty { flex: 1; min-width: 0; }
.pcard__cat { flex: none; text-align: right; }
.pcard.is-hidden, .prcard.is-hidden { display: none; }
.is-filtering .pcard, .is-filtering .prcard { opacity: 0; transition: opacity .2s ease; }

/* hover dim: every other card falls to 40% */
@media (hover: hover) {
  [data-hoverdim]:has(> a:hover) > a:not(:hover) { opacity: .4; }
}

/* ---------- expanding video player ---------- */
.player { position: absolute; inset: 0; overflow: hidden; background: #000; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__ui { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease; font-size: var(--fs-ui); font-weight: var(--fw-ui); letter-spacing: 0; }
.player.is-ui .player__ui { opacity: 1; pointer-events: auto; }
.player__close, .player__sound { position: absolute; top: 50%; transform: translateY(-50%); padding: 8px 10px; mix-blend-mode: difference; color: #fff; }
.player__close { left: 0; }
.player__sound { right: 0; }
.player__sound.is-on::after { content: " on"; }
.player__toggle { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); mix-blend-mode: difference; pointer-events: none; white-space: nowrap; will-change: transform; }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-line); }
.player__progress { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.player__times { position: absolute; bottom: 4px; left: 0; display: flex; gap: 8px; font-size: var(--fs-ui-small); font-variant-numeric: tabular-nums; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.player:hover .player__times { opacity: 1; }
.player.is-open { position: fixed; z-index: 10002; }
.player.is-anim { transition: left .7s cubic-bezier(.65, 0, .35, 1), top .7s cubic-bezier(.65, 0, .35, 1), width .7s cubic-bezier(.65, 0, .35, 1), height .7s cubic-bezier(.65, 0, .35, 1); }
.player.is-open .player__video { cursor: none; }

/* ---------- film lightbox (full film, with sound) ---------- */
/* Film player: the film fills the screen; the title (brand, then campaign) and Close sit over it on
   a soft shade at the top. Close is the WATCH button with an x for the square. The frame opens
   from a centre line (same move as the home reel). */
.film {
  position: fixed; inset: 0; z-index: 10005; background: #000;
  visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .7s;
}
.film.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
.film:focus { outline: none; }
.film__frame { position: absolute; inset: 0; background: #000; clip-path: inset(0% 50% 0% 50%); transition: clip-path .7s cubic-bezier(.65, 0, .35, 1); }
.film.is-open .film__frame { clip-path: inset(0% 0% 0% 0%); }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__head {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: var(--pad) var(--pad) clamp(40px, calc(64 * var(--s)), 96px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .5s ease .3s;
}
.film.is-open .film__head { opacity: 1; }
.film__title {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--font-title, var(--font)); font-size: clamp(16px, calc(22 * var(--s)), 28px);
  line-height: 1; text-transform: uppercase; letter-spacing: -0.02em;
}
.film__brand { font-weight: 600; }
.film__name { font-weight: 400; opacity: .5; margin-left: .4em; }
.film__close { flex: none; pointer-events: auto; border: 0; background: none; padding: 0; color: #fff; cursor: pointer; }
.film__close:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }
/* the x takes the square's place: same 12px box, accent, ink inside the hover fill */
.film__x { position: relative; display: block; width: 12px; height: 12px; flex: none; color: var(--c-accent, #fff); }
.film__x::before, .film__x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.film__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.fx__copy .film__x { color: var(--c-accent-ink, #000); }
html.film-open { overflow: hidden; }

/* inline film block on project pages */
.pfilm { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; }
.pfilm__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.pfilm:hover .pfilm__media img { transform: scale(1.02); }
.pfilm__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; mix-blend-mode: difference; text-transform: uppercase; }
.pfilm__label .sq { width: 10px; height: 10px; }

/* ---- pages.css ---- */
/* Page layouts. Measured at 1440 x 900: 10px gutter, 4 columns of 25%, no inner gutters. */

.main { position: relative; max-width: var(--max); margin: 0 auto; }

/* =========================== HOME: split reveal =========================== */
.is-home, .is-home body { overflow: hidden; height: 100%; }
.is-home .main { height: 100vh; height: 100dvh; overflow: hidden; }
.sr { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; isolation: isolate; touch-action: none; overscroll-behavior: none; user-select: none; }
.sr.is-intro { z-index: 10001; }
.sr__slide { position: absolute; inset: 0; display: block; overflow: hidden; contain: layout paint; will-change: clip-path; visibility: hidden; -webkit-tap-highlight-color: transparent; }
.no-js .sr__slide:first-child, .sr__slide.is-base { visibility: visible; }
.sr__media { position: absolute; inset: 0; }
.sr__media img, .sr__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sr__media video { opacity: 0; transition: opacity .3s linear; }
.sr__media video.is-on { opacity: 1; }
.sr__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); pointer-events: none; }
.sr__row { position: relative; z-index: 1; display: flex; align-items: flex-start; width: 100%; mix-blend-mode: difference; }
.sr__counter { width: 25%; flex: none; font-variant-numeric: tabular-nums; }
.sr__info { flex: 1; min-width: 0; }
.sr__title { max-width: 300px; }
.sr__year { flex: none; }
.sr__hint { position: absolute; z-index: 1; bottom: 10px; left: 50%; width: 50%; transform: translateX(-50%); overflow: clip; mix-blend-mode: difference; }
.sr__hint-t { translate: 0 calc(var(--sr-hint, 0) * 120%); }
.sr__defs { position: absolute; width: 0; height: 0; }

/* =========================== LIST PAGES (Works, Press) =========================== */
.list-page { padding: 120px 0 100px; }
.lhead { display: flex; align-items: flex-start; padding: 0 var(--pad); }
.lhead__label { width: 25%; flex: none; }
.lhead__intro { width: 50%; }
/* no visible page name: the intro starts exactly where the grid below starts (a quarter of the page) */
.lhead--bare .lhead__intro { margin-left: calc((100% + 2 * var(--pad)) / 4 - var(--pad)); }
.list { display: flex; align-items: flex-start; margin-top: 80px; }
.list__side { width: 25%; flex: none; padding-left: var(--pad); position: sticky; top: 100px; }
.pgrid { width: 75%; display: grid; grid-template-columns: 1fr 1fr; row-gap: 80px; }

.list-page--press .list { padding-right: var(--pad); }
.prgrid { width: 75%; display: grid; grid-template-columns: 1fr 1fr; row-gap: 80px; align-items: start; }
.prcard { display: flex; flex-direction: column; transition: opacity .25s ease; }
.prcard--texttop { flex-direction: column-reverse; }
.prcard__img { position: relative; aspect-ratio: 536 / 300; overflow: hidden; background: #0b0b0b; }
.prcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.prcard:hover .prcard__img img { transform: scale(1.03); }
.prcard__info { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 10px 10px 0; }
.prcard--texttop .prcard__info { padding: 0 0 10px 10px; }
.prcard__title { width: 50%; }
.list-page--press { padding-bottom: 120px; }
.prcard__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.prcard__src { display: inline-flex; align-items: center; gap: 4px; }
.arrow { width: 10px; height: 10px; flex: none; }

/* =========================== PROJECT =========================== */
.phero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__media img, .phero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__title { position: absolute; left: var(--pad); bottom: 24px; z-index: 1; mix-blend-mode: difference; }
.backbtn { position: fixed; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 9; mix-blend-mode: difference; }
.pinfo { display: flex; align-items: flex-start; padding: 40px var(--pad) 0; }
.pinfo__left { width: 50%; flex: none; }
.pinfo__right { width: 50%; padding-left: 5px; }
.pinfo__right p + p { margin-top: calc(var(--fs-pst) * var(--lh-pst)); }
.pcred { display: flex; align-items: flex-start; padding: 90px var(--pad) 80px; }
.pcred__meta, .pcred__list { width: 50%; display: flex; flex-direction: column; gap: 10px; }
.pcred__row { display: flex; align-items: flex-start; }
.pcred__row dt, .pcred__row dd { width: 50%; }
.pcred__meta .pcred__row dt { width: calc(50% - 3px); }
.pcred__meta .pcred__row dd { width: auto; flex: 1; margin-left: 6px; }
.pgal { display: flex; flex-direction: column; }
.pgal__video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; }
.pgal__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pgal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.pgal__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; }
.pgal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pnext { position: relative; height: 100vh; overflow: hidden; }
.pnext__link { position: absolute; inset: 0; display: block; }
.pnext__media { position: absolute; inset: 0; transform: scale(var(--zoom, 1.5)); will-change: transform; }
.pnext__media img, .pnext__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pnext__info { position: absolute; left: var(--pad); bottom: 24px; z-index: 1; mix-blend-mode: difference; }

/* =========================== ABOUT =========================== */
.areel { position: relative; display: flex; align-items: center; height: 100vh; padding: 0 var(--pad); }
.areel__label { width: 25%; flex: none; }
.areel__player { position: relative; width: 50%; flex: none; aspect-ratio: 16 / 9; cursor: pointer; }
.areel__year { width: 25%; flex: none; text-align: right; }

.aabout { padding: 0 var(--pad) 100px; }
.aabout--top { padding-top: 120px; }
.aabout__head { position: relative; }
.aabout__label { position: absolute; left: 0; top: 0; }
.aabout__statement { width: 75%; text-indent: 25%; }
.aabout__statement .wl:first-child { text-indent: inherit; }
.aabout__row { display: flex; align-items: stretch; margin-top: 80px; height: 600px; }
.aabout__photo { position: relative; width: 33%; margin-left: 25%; overflow: hidden; background: #0b0b0b; }
.aabout__photo img, .aabout__photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aabout__para { width: calc(25% - 4px); margin-left: auto; display: flex; flex-direction: column; justify-content: space-between; }

.abrands { display: flex; align-items: flex-start; padding: 0 var(--pad) 100px; }
.abrands__label { width: 25%; flex: none; }
.abrands__grid { width: 75%; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
.brand { display: flex; flex-direction: column; gap: 10px; }
.glitch--brand { height: 40px; width: max-content; display: flex; align-items: center; }
.glitch--brand > svg { width: auto; height: auto; max-height: 44px; }
.brand__name { transition: color .25s; }
.brand:hover .brand__name { color: var(--c-fg); }

.asection { padding: 100px var(--pad); }
.asection__head { display: flex; align-items: flex-start; }
.asection__label { width: 25%; flex: none; }
.asection__statement { width: 50%; }
.services { margin-top: 100px; }
.services--tight { margin-top: 30px; }
.service { position: relative; display: flex; align-items: flex-start; padding: 40px 10px; cursor: pointer; }
.service__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.service__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service__bands { position: absolute; inset: 0; display: flex; flex-direction: column; }
.service__bands i { flex: 1; background: var(--c-bg); transform-origin: center; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.service__bands i:nth-child(2) { transition-delay: .04s; } .service__bands i:nth-child(3) { transition-delay: .08s; } .service__bands i:nth-child(4) { transition-delay: .12s; }
.service.is-hover .service__bands i { transform: scaleY(0); }
.service__num, .service__title, .service__subs { position: relative; z-index: 1; mix-blend-mode: difference; }
.service__num { width: 25%; flex: none; }
.service__title { width: 25.5%; flex: none; }
.service__subs { flex: 1; display: flex; }
.service__subs ul { display: flex; flex-direction: column; gap: 10px; }
.service__subs ul:first-child { width: 50%; flex: none; }

.crew { position: relative; margin-top: 100px; }
.crew__row { position: relative; display: flex; align-items: center; height: 40px; }
.crew__cell { flex: none; width: 25%; }
.crew__role { flex: 1; }
.crew__t { position: relative; display: inline-flex; }
.crew__cell { position: relative; }
.crew__cell .crew__t::after { content: ""; position: absolute; inset: 0; background: #fff; mix-blend-mode: difference; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.3, 1.2, .5, 1); }
.crew__row:hover .crew__t::after { transform: none; }
.crew__img { position: absolute; right: 0; top: 0; width: 40px; height: 40px; overflow: hidden; transform-origin: right center; transform: scale(var(--s, 1)); z-index: 2; will-change: transform; }
.crew__img img { width: 100%; height: 100%; object-fit: cover; }

.abig { position: relative; height: 100vh; overflow: hidden; }
.abig__media { position: absolute; inset: 0; }
.abig__inner { position: absolute; inset: 0; }
.abig__inner img, .abig__inner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abig__tag { position: absolute; left: 50%; top: 77%; transform: translateX(-50%); z-index: 1; text-align: center; text-transform: uppercase; white-space: nowrap; mix-blend-mode: difference; }
.abig__line { display: flex; justify-content: center; gap: 10px; }
.abig__line--split { gap: 8px; }
.abig__line--split span { display: inline-block; will-change: transform; }
.abig__cta { display: flex; justify-content: center; margin-top: 24px; text-transform: none; }

.awards { position: relative; display: flex; flex-direction: column; align-items: center; height: 100vh; min-height: 760px; padding: 80px var(--pad) 100px; overflow: hidden; }
.awards__head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.awards__title { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.awards__count { font-variant-numeric: tabular-nums; line-height: 1; }
.awards__visual { display: flex; align-items: center; gap: 20px; margin-top: auto; }
.glitch--laurel { width: 40px; height: 96px; }
.glitch--laurel > svg { width: 100%; height: 100%; }
.awards__img { position: relative; width: 120px; height: 120px; overflow: hidden; background: #0b0b0b; }
.awards__fig { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.awards__fig.is-active { opacity: 1; }
.awards__fig img { width: 100%; height: 100%; object-fit: cover; }
.awards__slider { position: relative; width: calc(100% + var(--pad) * 2); height: 60px; margin-top: 40px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.awards__slider.is-dragging { cursor: grabbing; }
.awards__track { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.award { position: absolute; top: 50%; translate: 0 -50%; display: inline-flex; align-items: flex-start; gap: 4px; white-space: nowrap; opacity: .3; transition: opacity .35s ease; }
.award.is-active { opacity: 1; }
.award__y { line-height: 1.4; }
.awards__text { position: relative; width: 300px; height: 59px; margin-top: 40px; text-align: center; }
.awards__desc { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.awards__desc.is-active { opacity: 1; transform: none; transition-delay: .1s; }

/* =========================== ARTICLE =========================== */
.art { padding: 100px var(--pad) 80px; }
.art__back { margin-bottom: 40px; }
.art__title { max-width: 50%; }
.art__img { position: relative; margin-top: 40px; aspect-ratio: 1420 / 630; overflow: hidden; background: #0b0b0b; }
.art__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: 40px; }
.art__meta { display: flex; gap: 15px; flex: none; }
.art__rt { width: 633px; max-width: 100%; }
.art__rt p + p { margin-top: 20px; }
.art__rt h2 { margin: 40px 0 20px; }
.art__rt > :first-child { margin-top: 0; }

/* =========================== CONTACT =========================== */
.cintro { position: relative; height: 100vh; min-height: 680px; padding: 0 var(--pad); }
.cdetails { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(4, 1fr); }
.cdetail__label { margin-bottom: 10px; }
.cdetail__value { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cdetail__text { max-width: 196px; padding: 0 2px; }
.chead { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; display: flex; flex-wrap: wrap; }
.chead__label { width: 25%; flex: none; }
.chead__intro { width: 284px; }
.chead--bare .chead__intro { margin-left: 25%; } /* no visible page name: the intro keeps its column, over GET IN TOUCH */
.chead__cta { width: 100%; margin: 40px 0 0 25%; padding-left: 2px; display: block; }
.cform { display: flex; align-items: flex-start; padding: 0 var(--pad) 40px; }
.cform__label { width: 25%; flex: none; }
.form { width: 75%; display: flex; flex-direction: column; gap: 24.5px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__box { position: relative; display: block; padding: 10px 0 4px; }
.field input, .field textarea, .field select { display: block; width: 100%; background: transparent; border: 0; outline: 0; padding: 0; color: var(--c-fg); font-size: var(--fs-body); font-weight: 500; line-height: 20px; border-radius: 0; }
.field input { height: 20px; }
.field textarea { height: 106px; resize: none; }
.field select { height: 20px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select.is-empty { color: var(--c-line); }
.field ::placeholder { color: var(--c-line); opacity: 1; }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-line); transition: background .25s; }
.field:focus-within .field__line { background: var(--c-fg); }
.field.is-error .field__line { background: var(--c-error); }
.form__submit { margin-top: 1px; align-self: flex-start; }
.form__note { margin-top: -8px; }
.form__hp { display: none; }

/* =========================== 404 =========================== */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: var(--pad); }
.nf__home { text-decoration: underline; text-underline-offset: 3px; }
.nf__home:hover { color: var(--c-accent); }

/* =========================== TABLET =========================== */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .aabout__row { height: 520px; }
  .aabout__photo { width: 40%; }
  .aabout__para { width: calc(30% - 4px); }
}

/* =========================== PHONE =========================== */
@media (max-width: 809.98px) {
  .list-page { padding-top: 100px; }
  .lhead { flex-direction: column; gap: 16px; }
  .lhead__label, .lhead__intro { width: 100%; }
  .lhead--bare .lhead__intro { margin-left: 0; }
  .list { flex-direction: column; margin-top: 50px; }
  .list__side { position: static; width: 100%; padding: 0 var(--pad); margin-bottom: 8px; }
  .filters { flex-direction: row; flex-wrap: wrap; column-gap: 19px; row-gap: 0; }
  .pgrid, .prgrid { width: 100%; grid-template-columns: 1fr; }
  .pcard__num { width: 25%; }
  .list-page--press .list { padding-right: 0; }
  .prgrid { padding: 0; }
  .prcard--texttop { flex-direction: column; }
  .prcard__info, .prcard--texttop .prcard__info { padding: 10px var(--pad) 0; }

  .pinfo { flex-direction: column; gap: 30px; }
  .pinfo__left, .pinfo__right { width: 100%; padding-left: 0; }
  .pcred { flex-direction: column; gap: 40px; padding-top: 60px; }
  .pcred__meta, .pcred__list { width: 100%; }
  .pgal__grid { grid-template-columns: 1fr; }
  .backbtn { top: auto; bottom: 40px; transform: none; }

  .areel { flex-wrap: wrap; align-content: center; gap: 20px 0; }
  .areel__label, .areel__year { width: 50%; }
  .areel__player { order: 3; width: 100%; }
  .aabout__statement { width: 100%; }
  .aabout__row { flex-direction: column; height: auto; gap: 40px; }
  .aabout__photo { width: 100%; margin: 0; aspect-ratio: 992 / 1468; }
  .aabout__para { width: 100%; gap: 30px; }
  .abrands { flex-direction: column; gap: 30px; }
  .abrands__label, .abrands__grid { width: 100%; }
  .abrands__grid { grid-template-columns: repeat(2, 1fr); }
  .asection__head { flex-direction: column; gap: 20px; }
  .asection__label, .asection__statement { width: 100%; }
  .services { margin-top: 60px; }
  .service { flex-wrap: wrap; row-gap: 10px; }
  .service__num { width: 20%; } .service__title { width: 80%; }
  .service__subs { width: 100%; padding-left: 20%; flex-direction: column; gap: 10px; }
  .service__subs ul:first-child { width: 100%; }
  .crew__num { display: none; }
  .crew__name { width: 50%; }
  .abig__tag { font-size: 18px; }
  .awards__title { position: static; transform: none; order: 3; width: 100%; text-align: center; margin-top: 20px; white-space: normal; }
  .awards__head { flex-wrap: wrap; }
  .cdetails { position: static; transform: none; grid-template-columns: 1fr 1fr; gap: 30px 0; padding-top: 140px; }
  .cintro { height: auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 40px; }
  .chead { position: static; margin-top: 80px; }
  .chead__label { width: 100%; margin-bottom: 10px; }
  .chead__intro { width: 100%; }
  .chead--bare .chead__intro { margin-left: 0; }
  .chead__cta { margin: 24px 0 0; }
  .cform { flex-direction: column; gap: 30px; padding-top: 40px; }
  .cform__label, .form { width: 100%; }
  .art__title { max-width: 100%; }
  .art__body { flex-direction: column; }
}

/* ---- src/styles/theme-variant-overrides.css ---- */
/* Variant overrides (phase 2). Loaded AFTER the shared layers so they win.
   Only what the grids03 type and the single green accent change. */

/* ---------- display roles that change size, not just font ---------- */
/* Home: the project title becomes the single big uppercase line (grids03's "GRIDS S03"). */
.sr__title { font-size: var(--d90); max-width: none; white-space: nowrap; margin-top: 2px; }
.sr__info { min-width: 0; }
@media (max-width: 809.98px) { .sr__title { font-size: 36px; white-space: normal; } }

/* ---------- the accent: active states only ---------- */
::selection { background: var(--c-accent); color: var(--c-accent-ink); }
:focus-visible { outline-color: var(--c-accent); }

/* hover fill: a solid green bar wipes across, the label shows through in ink */
.fx__fill { mix-blend-mode: normal; }
.fx__bar { background: var(--c-accent); }
.fx__copy { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--c-accent-ink); }
.fx__copy .sq { background: var(--c-accent-ink); }

/* square markers (WATCH, OUR WORKS, SEND) and the cursor */
.sq { background: var(--c-accent); }
.cursor { mix-blend-mode: normal; }
.cursor__box { color: var(--c-accent); }
.cursor__sq { background: var(--c-accent); }

/* current page in the nav: a 5px square, after grids03's 5px cross mark */
.nav__link[aria-current="page"] .fx__t::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--c-accent); }

/* selected / playing / focused */
.filter.is-active { color: var(--c-accent); }
.award.is-active { color: var(--c-accent); }
[data-award-index] { color: var(--c-accent); }
.player__progress { background: var(--c-accent); }
.field:focus-within .field__line { background: var(--c-accent); }
@media (hover: hover) {
  .pcard:hover .pcard__title, .prcard:hover .prcard__title, .brand:hover .brand__name { color: var(--c-accent); }
}

/* crew rows: green highlight behind the text instead of an inverting white bar */
.crew__t { isolation: isolate; transition: color .2s; }
.crew__cell .crew__t::after { background: var(--c-accent); mix-blend-mode: normal; z-index: -1; }
.crew__row:hover .crew__t { color: var(--c-accent-ink); }

/* ---- src/styles/theme-raw-overrides.css ---- */
/* RAW overrides, loaded after the variant overrides. Only what RAW's content needs. */

/* Film grain at half the template's strength. */
.grain { opacity: .05; }

/* Campaign names run long ("Only you can know how strong you can be"): let the 90px line wrap. */
.sr__title { white-space: normal; max-width: 72%; }
.sr__cat { text-transform: none; }

/* Big titles over films are plain white. The template's difference blend filled the letters
   with the film's inverted colours. Small chrome text (menu, footer, Back) keeps the blend,
   so it stays readable over bright and dark frames. */
.sr__row, .sr__hint, .phero__title, .pnext__info, .abig__tag { mix-blend-mode: normal; }
/* So white type reads on bright films too (snow, white rooms): a soft shadow that follows the
   letters, a light shade over the reel, and a gradient under the titles that sit at the bottom. */
.sr__row, .sr__hint, .phero__title, .pnext__info, .abig__tag { text-shadow: 0 0 .5em rgba(0, 0, 0, .3); }
.sr__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .16); pointer-events: none; }
.phero__media::after, .pnext__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .38), rgba(0, 0, 0, .12) 35%, rgba(0, 0, 0, 0) 55%);
}

/* Home reel: titles hand over halfway through a transition, so two never share a line.
   --sr-r (0 to 1) is the reveal progress the reel script sets. */
.sr__slide.is-base .sr__overlay { opacity: calc((0.6 - var(--sr-r, 0)) / 0.2); }
.sr__slide.is-next .sr__overlay { opacity: calc((var(--sr-r, 0) - 0.4) / 0.2); }

/* The wordmark: 76 x 30 in the menu bar (61 x 24 on phones), always at its true proportions. */
.nav__logo .mask { height: 30px; }
.glitch--logo > img { height: 100%; width: auto; }
@media (max-width: 809.98px) {
  .nav__logo .glitch--logo { width: 61px !important; height: 24px !important; }
  .nav__logo .mask { height: 24px; }
}
.glitch--pre > img { height: 100%; width: auto; }

/* Project pages without a statement: the WATCH line sits alone. */
.pinfo--short { padding-bottom: 0; }
.phero__title { right: var(--pad); } /* long titles wrap inside the side margins */

/* Office addresses keep their line breaks. */
.cdetail__text { max-width: 260px; }

/* Phone and small tablet: RAW's clock and copyright are longer than the template's,
   and project titles often run to several lines. Lift the scroll hint above the footer row
   and the project title above the fixed Back button. */
@media (max-width: 809.98px) {
  .sr__hint { bottom: 36px; }
  .phero__title { bottom: 70px; }
}

/* ---------- brand guide: titles (Chakra Petch) for names; BDO Grotesk for what is read ---------- */
/* Project and next-project titles: brand over campaign, the home film title's style at page size. */
.phero__title--pair, .pnext__title--pair, .nf__title {
  font-family: var(--font-title); font-weight: 600; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1;
}
.phero__title--pair, .pnext__title--pair { font-size: var(--d90); }
.tp__brand, .tp__campaign { display: block; }
.tp__campaign { font-weight: 400; font-size: var(--d45); color: rgba(255, 255, 255, .5); padding-top: .12em; }
.phero__title--pair, .pnext__info { text-shadow: none; filter: drop-shadow(0 0 .3em rgba(0, 0, 0, .35)); }
/* keyboard focus: 1px accent outline, 4px out (mouse clicks show none) */
:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }
/* the gallery WATCH uses the same 12px square as every other button */
.pfilm__label .sq { width: 12px; height: 12px; }
/* a field that failed validation keeps its error rule, even while focused, until it is edited */
.field.is-error .field__line, .field.is-error:focus-within .field__line { background: var(--c-error); }

/* ---------- brand guide: white stays white over film ---------- */
/* The replica inverts the menu, footer, Back and the gallery label against the film (difference blend),
   which recoloured the logo and the accent square over every film (white turned pink over teal).
   In RAW they stay fg and accent, with the soft glow every title uses on film; on black it does not show. */
.nav, .foot, .backbtn, .pfilm__label { mix-blend-mode: normal; }
.nav__bar, .foot__bar, .backbtn, .pfilm__label { filter: drop-shadow(0 0 .3em rgba(0, 0, 0, .35)); }
/* the phone menu's 4 x 6 black tiles overlap by 1px, so the film no longer shows through their seams */
.menu__bg span { margin: -1px; }
/* Work and next-project cards: the still and its film reach 2px past the card on every side, and the card
   crops them. Some browsers draw the playing film a pixel short of the still under it, and that pixel row
   of the still showed as a thin line along the bottom of the card (Specsavers, Paduden, SOLAS, Locket). */
.pcard__thumb img, .pcard__thumb video { inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); max-width: none; }
/* a faint band behind the menu bar, so white links read on bright films (Paduden's sky); on black it does not show */
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)); }
@media (max-width: 809.98px) { .nav::before { height: 90px; } }
/* the menu bar slides away while you scroll down and comes back when you scroll up (nav-autohide.js) */
.nav { transition: transform .45s cubic-bezier(.65, 0, .35, 1), opacity .3s ease, visibility 0s; }
.nav.is-away { transform: translate(-50%, -100%); opacity: 0; visibility: hidden;
  transition: transform .45s cubic-bezier(.65, 0, .35, 1), opacity .3s ease, visibility 0s .45s; }
/* About statement: its first line starts on the 25% column, under Work in the menu. The indent counts
   from the statement's own width (75% of the page), so a third of it; on phones it spans the page. */
.aabout__statement { text-indent: calc(100% / 3); }
@media (max-width: 809.98px) { .aabout__statement { text-indent: 25%; } }
/* the page name kept for screen readers stays 1px wide on phones too: the phone rule for page heads
   gave it the full width, which let Work and Contact slide sideways by 9px */
.lhead__label.sr-only { width: 1px; }
/* About services. about.servicesFont: "body" keeps the names as they first were, in body like the rest
   of the row. "title" (or ?font=title to preview; ?font=body for the other) sets each name in the title
   face, like the home film titles, at the film player's title size (22 at 1440, 16 on phones), with the
   number and the line beside it on the name's baseline. */
.services--font-title .service { align-items: baseline; }
.services--font-title .service__title {
  font-family: var(--font-title); font-weight: 600; font-size: clamp(16px, calc(22 * var(--s)), 28px);
  line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}
/* The services open one after another (36-lists.js), so every row's film gets loaded. A closed row hides
   its film once its four bands have shut (0.55s plus 0.12s of stagger), so no sliver of it shows through
   the bands' seams; an opening row shows it at once. */
.service__bg video { visibility: hidden; transition: visibility 0s .7s; }
.service.is-hover .service__bg video { visibility: visible; transition: none; }

/* ---------- page change as a television switching off and on (site.pageFx: "crt") ----------
   In the line of the CRT wordmark. Leaving: scanlines come over the page and a dim bar rolls down, the
   picture closes from top and bottom into a bright line across the middle, and the line shrinks to a
   dot and goes out (0.62s). Arriving: the dot comes back and opens into the line, the line opens into
   the picture, and the scanlines fade (0.85s). Same states as the cells: .is-covering, html.pt-covered,
   .is-revealing (24-transition.js). Reduced motion: no transition at all. */
.pt--crt { display: block; }
.pt--crt > i { position: absolute; left: 0; right: 0; display: block; pointer-events: none; }
.pt__half { height: 50.5%; background: var(--c-bg); transform: scaleY(0); will-change: transform; }
.pt__half--top { top: 0; transform-origin: 50% 0; }
.pt__half--bottom { bottom: 0; transform-origin: 50% 100%; }
.pt__scan { top: 0; bottom: 0; opacity: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .3) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }
.pt__roll { top: 0; height: 40%; opacity: 0; transform: translateY(-100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .28), rgba(0, 0, 0, 0)); }
.pt__line { top: 50%; height: 2px; margin-top: -1px; background: #fff; opacity: 0;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, .5), 0 0 44px 8px rgba(255, 255, 255, .16); }
/* a new page opens on a black screen */
html.pt-covered .pt--crt .pt__half { transform: none; }
/* leaving */
.pt--crt.is-covering .pt__scan { opacity: 1; transition: opacity .2s linear; }
.pt--crt.is-covering .pt__roll { animation: pt-roll .55s linear forwards; }
.pt--crt.is-covering .pt__half { transform: none; transition: transform .3s cubic-bezier(.55, 0, .9, .45) .16s; }
.pt--crt.is-covering .pt__line { animation: pt-off .62s linear forwards; }
@keyframes pt-off {
  0%, 60% { opacity: 0; transform: scaleX(1); }
  70% { opacity: 1; transform: scaleX(1); }
  88% { opacity: 1; transform: scaleX(.012); }
  100% { opacity: 0; transform: scaleX(.004); }
}
/* arriving */
.pt--crt.is-revealing .pt__half { transform: scaleY(0); transition: transform .42s cubic-bezier(.12, .6, .3, 1) .2s; }
.pt--crt.is-revealing .pt__line { animation: pt-on .85s linear forwards; }
@keyframes pt-on {
  0% { opacity: 0; transform: scaleX(.004); }
  8% { opacity: 1; transform: scaleX(.012); }
  24% { opacity: 1; transform: scaleX(1); }
  44% { opacity: .5; transform: scaleX(1); }
  58%, 100% { opacity: 0; transform: scaleX(1); }
}
.pt--crt.is-revealing .pt__scan { animation: pt-scan .85s linear forwards; }
@keyframes pt-scan { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
.pt--crt.is-revealing .pt__roll { animation: pt-roll .85s linear .15s forwards; }
@keyframes pt-roll { 0% { opacity: 0; transform: translateY(-100%); } 20% { opacity: 1; } 100% { opacity: 1; transform: translateY(250%); } }

/* ---------- page change as zapping channels (site.pageFx: "zap") ----------
   Leaving: TV snow flickers in over the page (it catches, drops, catches again) with scanlines and a
   rolling bar (0.42s). Arriving: the new page opens in snow, which flickers out as the picture comes
   through, a dim bar rolls past and the scanlines fade (0.8s). The snow is drawn in 24-transition.js. */
.pt--zap { display: block; }
.pt--zap > i, .pt--zap > canvas { position: absolute; left: 0; right: 0; display: block; pointer-events: none; }
.pt__snow { top: 0; width: 100%; height: 100%; opacity: 0; }
/* a new page opens in snow (black underneath until the first frame of snow is drawn) */
html.pt-covered .pt--zap { background: var(--c-bg); }
html.pt-covered .pt--zap .pt__snow { opacity: 1; }
/* leaving */
.pt--zap.is-covering .pt__snow { animation: pt-zap-in .42s linear forwards; }
@keyframes pt-zap-in { 0% { opacity: 0; } 14% { opacity: .55; } 22% { opacity: .18; } 38% { opacity: .92; } 46% { opacity: .62; } 60%, 100% { opacity: 1; } }
.pt--zap.is-covering .pt__scan { opacity: 1; transition: opacity .15s linear; }
.pt--zap.is-covering .pt__roll { animation: pt-roll .42s linear forwards; }
/* arriving */
.pt--zap.is-revealing .pt__snow { animation: pt-zap-out .8s linear forwards; }
@keyframes pt-zap-out { 0%, 22% { opacity: 1; } 32% { opacity: .3; } 40% { opacity: .78; } 58% { opacity: .12; } 66% { opacity: .3; } 78%, 100% { opacity: 0; } }
.pt--zap.is-revealing .pt__scan { animation: pt-scan .8s linear forwards; }
.pt--zap.is-revealing .pt__roll { animation: pt-roll .6s linear .18s forwards; }

/* ---- src/styles/home-carousel.css ---- */
/* Home carousel (after iconoclast.tv), in RAW's type: one film at a time, full screen.
   Brand over campaign bottom right (45, uppercase), numbers 1-10 along the bottom (45), a line in
   the accent tracking the film. The footer bar steps aside; the menu stays as on every page. */
body.is-carousel .foot { display: none; }
.hc { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; color: #fff;
  --hc: clamp(26px, calc(36 * var(--s)), 40px); /* title and number size */ }
.hc__stage { position: absolute; inset: 0; }
.hc__film { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.hc__film.is-on { opacity: 1; pointer-events: auto; cursor: pointer; transition: opacity .8s ease .3s; } /* dips through black */
.hc__film img, .hc__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc__film video { opacity: 0; transition: opacity .4s linear; }
.hc__film video.is-on { opacity: 1; }
.hc__film::after { /* white type stays readable on bright films */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1) 38%, rgba(0, 0, 0, 0) 60%);
}

.hc__info { position: absolute; right: var(--pad); bottom: calc(var(--hc) + 44px); z-index: 1; }
.hc__title {
  position: absolute; right: 0; bottom: 0; display: block; width: max-content; max-width: min(56vw, 900px);
  text-align: right; pointer-events: none;
  /* soft shade that follows the letters; a text-shadow would be cut into boxes by the rising masks */
  filter: drop-shadow(0 0 .3em rgba(0, 0, 0, .35));
  font-size: var(--hc); line-height: 1; letter-spacing: var(--ls-display); text-transform: var(--tt-display);
}
.hc__title.is-on { pointer-events: auto; }
.hc__line { display: block; padding-bottom: .06em; }
.hc__line--sub { opacity: .5; }
.hc__in { display: block; }
.hc__w { display: inline-block; white-space: nowrap; }
.hc__ch { display: inline-block; }

/* Titles in Chakra Petch (free, SIL OFL): its 45-degree cut corners match the logo's. Brand
   heavier than the campaign, the way iconoclast sets brand over director. The numbers follow
   home.numbers: "title" (Chakra Petch, below; RAW's choice) or "text" (BDO Grotesk). */
.hc__title, .hc__num { font-family: var(--font-title, var(--font)); letter-spacing: -0.02em; }
.hc__line--brand { font-weight: 600; }
.hc__line--sub { font-weight: 400; }
.hc__num { font-weight: 500; }

/* Letter entrance, mode "cut" (default): each letter opens along a 45-degree line from its lower
   left corner, one after another. Leaving titles close the same way, quickly. The open shape
   reaches past every edge of the letter, so nothing is clipped at rest. */
.fx-cut .hc__ch {
  clip-path: polygon(-.3em calc(100% + .3em), -.3em calc(100% + .3em), -.3em calc(100% + .3em));
  transition: clip-path .28s cubic-bezier(.7, 0, .84, 0);
  transition-delay: calc(var(--i) * 8ms);
}
.hc.is-ready.fx-cut .hc__title.is-on .hc__ch {
  clip-path: polygon(-.3em calc(100% + .3em), 3em calc(100% + .3em), -.3em calc(100% - 3em));
  transition: clip-path .55s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(.4s + var(--i) * 26ms);
}
.no-js .hc__ch { clip-path: none; }

/* Mode "decode" (?fx=decode): letters flicker through random characters, then lock, one after
   another (driven by carousel.js). Each letter keeps its final width while it flickers. */
.fx-decode .hc__ch { text-align: center; }
.fx-decode .hc__title { transition: opacity .2s; }
.fx-decode .hc__title:not(.is-on) { opacity: 0; }

.hc__title:hover .hc__line--sub { opacity: 1; }

/* The index shows a window of --win numbers (10). The film on screen is always the first of them: as
   the next film comes the row moves one cell to the left, the old number fading out on the left and
   the next one fading in on the right, so the numbers keep coming. 35-carousel.js sets each number's
   cell (--p); outside the window it is .is-out. */
.hc__nums { position: absolute; left: var(--pad); right: 22%; bottom: 22px; z-index: 1; height: var(--hc); }
.hc__num {
  position: absolute; left: 0; top: 0; width: calc(100% / var(--win, 10));
  transform: translateX(calc(var(--p, 0) * 100%));
  transition: transform .6s cubic-bezier(.65, 0, .35, 1), opacity .45s ease;
  min-width: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left;
  font: inherit; font-family: var(--font-title, var(--font)); font-weight: 500; font-size: var(--hc); line-height: 1; letter-spacing: -0.02em;
  text-shadow: 0 0 .5em rgba(0, 0, 0, .3);
}
.hc__num span { display: inline-block; opacity: .5; transition: opacity .3s; }
.hc__num:hover span, .hc__num.is-on span { opacity: 1; }
.hc__num:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }
.hc__num.is-out { opacity: 0; pointer-events: none; }
.hc__num.no-move { transition: none; }
/* "text" (home.numbers, or ?nums=text to preview): the numbers in BDO Grotesk, as they first were */
.hc.nums-text .hc__num, .no-js .hc[data-nums="text"] .hc__num { font-family: var(--font); font-weight: 400; }
.js .hc:not(.is-ready) .hc__nums { opacity: 0; }
.hc__nums { transition: opacity .8s ease .5s; }

.hc__time { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1; background: rgba(255, 255, 255, .2); }
.hc__bar { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }

/* before the preloader lets go: nothing shows, then the first film fades in */
.js .hc:not(.is-ready) .hc__film { opacity: 0; }

@media (max-width: 809.98px) {
  .hc { --hc: var(--d45); }
  .hc__info { left: var(--pad); right: var(--pad); bottom: calc(var(--hc) + 38px); }
  .hc__title { left: 0; right: auto; max-width: 100%; text-align: left; }
  .hc__line--sub { font-family: var(--font); font-weight: 400; font-size: var(--t12); letter-spacing: var(--ls-small); text-transform: none; opacity: .7; padding-top: 4px; }
  .hc__nums { right: var(--pad); bottom: 18px; }
  .hc__time { height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc__film, .hc__film.is-on, .hc__num { transition: none; }
  .fx-cut .hc__ch, .hc.is-ready.fx-cut .hc__title.is-on .hc__ch { clip-path: none; transition: none; }
}

/* ---- src/styles/project-raw.css ---- */
/* RAW's project page (content: projectPage.layout = "raw"), after mihailesco.com.

   Hero: the film itself. WATCH, or a click anywhere on it, opens the full cut in the player, as on
   the home. The title and WATCH share a baseline above the clock row; the gap above the clocks is
   about the one between the home title and its numbers. */
.phero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 56px; z-index: 1;
  display: flex; justify-content: space-between; align-items: last baseline; gap: 24px;
  pointer-events: none; /* a click on the title reaches the film */
}
.phero--film .phero__title { position: static; min-width: 0; }
/* No WATCH on show: the whole hero opens the film and the cursor reads WATCH. The link stays for
   keyboard and screen-reader users and appears, bottom right, only when tabbed to. */
.phero__watch { flex: none; pointer-events: auto; filter: drop-shadow(0 0 .3em rgba(0, 0, 0, .35)); }
.phero__watch:not(:focus-visible) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stills: the page margin around the grid and between the frames */
.pgal--spaced { padding: 0 var(--pad); gap: var(--pad); }
.pgal--spaced .pgal__grid { gap: var(--pad); }

/* Previous and next: two Work cards, a quarter of the page each, at the far left and right */
.pnav { display: flex; justify-content: space-between; align-items: flex-start; padding: 160px var(--pad) 120px; }
.pnav__item { width: 25%; }
.pnav__label { padding: 0 8px 8px; }

@media (max-width: 809.98px) {
  .phero__foot { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .pnav { padding: 100px var(--pad) 90px; gap: var(--pad); }
  .pnav__item { width: calc(50% - var(--pad) / 2); }
}

/* ---- src/styles/site-footer.css ---- */
/* Page footer on Work, About and Contact (content.footer), after rawstudio.ai's, in RAW's type, the
   same on every page: the call to action and a hairline, the sitemap and social links on the grid,
   the RAW logo at half the page width (the real file, its own proportions), and Back to top with the
   copyright on the logo's bottom line. It fills the screen, so when you reach it you see the footer
   and nothing of the page above. */
.sfoot {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 120px var(--pad) var(--pad);
}
.sfoot__cta { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.sfoot__q { color: rgba(255, 255, 255, .5); }
.sfoot__rule { height: 1px; margin: 60px 0; border: 0; background: var(--c-line); }
.sfoot__cols { display: flex; }
.sfoot__col { width: 25%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sfoot__label { margin-bottom: 8px; padding: 0 2px; } /* lines up with the links' text (they carry 2px for the hover fill) */
.sfoot__end { display: flex; align-items: flex-end; margin-top: auto; padding-top: 60px; }
.sfoot__logo { display: block; width: calc(50% - var(--pad)); height: auto; }
.sfoot__meta { width: 25%; margin-left: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sfoot__copy { white-space: nowrap; }

/* the fixed clock bar steps aside as soon as the footer comes into view (site-footer.js) */
.foot { transition: opacity .3s ease, visibility 0s; }
.foot.is-under { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }

@media (max-width: 809.98px) {
  .sfoot { padding-top: 100px; }
  .sfoot__cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sfoot__rule { margin: 40px 0; }
  .sfoot__col { width: 50%; }
  .sfoot__end { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 50px; }
  .sfoot__logo { width: 75%; }
  .sfoot__meta { width: 100%; margin-left: 0; }
}

/* ---- src/styles/contact-raw.css ---- */
/* RAW's Contact page (contact.layout: "raw"), after rawstudio.ai/contact, built strictly from the
   guide's sizes and tokens. One screen, everything on the 25% line: START A PROJECT (statement) and
   the form across the other three quarters in body text (FormField: a muted label over a 1px muted
   rule, gap-form between fields), ending with ■ SUBMIT, the square button. The offices and email are
   the screen's base: one row at the foot of the first screen, just above the clocks, on the 25%, 50%
   and 75% lines, so they read as the studio's details and not as more fields. The title and form sit
   centred in the space above them; nothing is enlarged to fill it. The footer starts below. */
.cpage { min-height: 100vh; min-height: 100svh; }

.form--grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 24.5px; } /* gap-form */
.form--grid .field { min-width: 0; }
.form--grid .field--email, .form--grid .field--textarea, .form--grid .form__submit, .form--grid .form__note { grid-column: 1 / -1; }
/* the rule reads on black: muted is 6.8:1 (the line grey was about 2.3:1) */
.form--grid .field__line { background: var(--c-muted); }
.form--grid .form__submit { justify-self: start; }
.form--grid .form__note { margin-top: -8px; }

/* the offices and email: one row, a column per place on the quarter lines */
.cinfo { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
.cinfo__label { margin-bottom: 8px; padding: 0 2px; }
.cinfo__value { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cinfo__value .cdetail__text { padding: 0 2px; }

@media (min-width: 810px) {
  /* rows: space · title · form · space · contacts. The two spaces share what the screen leaves, so the
     title and form are centred above the contacts, and the contacts sit on the foot of the screen. */
  .cpage {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr auto;
    padding: 72px 0; /* clear of the menu bar and the clock bar */
  }
  .cpage > .lhead { grid-row: 2; }
  .cbody { display: contents; }
  .cbody__form { grid-row: 3; margin: 48px 0 0 25%; padding-right: var(--pad); }
  .cinfo { grid-row: 5; margin: 80px 0 0 25%; padding-right: var(--pad); } /* never closer than 80px to SUBMIT */
}
/* short screens: a smaller minimum, so the contacts still fit on the first screen */
@media (min-width: 810px) and (max-height: 720px) { .cinfo { margin-top: 56px; } }

@media (max-width: 809.98px) {
  .cpage { padding: 100px 0 80px; }
  .cbody { margin: 40px 0 0; padding: 0 var(--pad); }
  .form--grid { grid-template-columns: 1fr; }
  .cinfo { grid-template-columns: 1fr 1fr; row-gap: 24px; column-gap: 10px; margin-top: 48px; }
}
