/* ============================================================
   PMG - CINEMATIC EDITORIAL NOIR - SHARED DESIGN SYSTEM
   Extracted verbatim from the approved cinematic-noir-v3 home.
   This is the LOCKED design language for every page of the site:
   design tokens, typography atoms, layout, component styles, motion CSS.

   Every page loads THIS file (plus assets/shared.js) so the whole
   site speaks the same cinematic language.

   Fraunces (serif display) + Oswald (UI/labels) + system-ui (body).
   Orange #F1420B / Teal #2A93C1. Bespoke imagery in /assets/img/.

   IMPORTANT for per-page agents: reference images with ABSOLUTE,
   root-relative paths ( /assets/img/... ), never ./img/..., because
   pages live at different folder depths (/, /work/, /team/ ...).
   ============================================================ */

:root {
  --orange: #F1420B;
  --teal: #2A93C1;
  /* CLEAN 2-stop gradient only. No muddy midtones. */
  --grad: linear-gradient(96deg, #F1420B 0%, #2A93C1 100%);

  --black: #000000;
  --ink: #060607;
  --panel: #0b0b0c;
  --white: #ffffff;
  --grey: #7F7F7F;
  --grey-30: rgba(255,255,255,0.14);
  --hair: rgba(255,255,255,0.09);
  --hair-strong: rgba(255,255,255,0.16);

  /* modular scale ~1.30 - bigger, more confident jumps */
  --fs-label: 0.72rem;
  --fs-sm: 0.94rem;
  --fs-base: 1.08rem;
  --fs-lg: 1.4rem;
  --fs-xl: clamp(1.7rem, 2.6vw, 2.6rem);
  --fs-2xl: clamp(2.4rem, 4.4vw, 4rem);
  --fs-3xl: clamp(3.4rem, 7.4vw, 6.6rem);
  --fs-display: clamp(4rem, 13vw, 13rem);
  /* big display hero: fills lower two-thirds */
  --fs-hero: clamp(4.5rem, 12vw, 11rem);

  --ls-label: 0.36em;
  --ls-label-tight: 0.2em;

  --gutter: clamp(1.4rem, 5vw, 7rem);
  --maxw: 1560px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { -webkit-font-smoothing: antialiased; }
/* Lenis handles smoothing; native fallback if JS absent */
html:not(.lenis) { scroll-behavior: smooth; }

/* HIDE NATIVE SCROLLBAR (client fix 7) - Lenis drives smooth scroll, so the
   native bar is redundant. Scrolling stays fully functional. */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0;
}

/* =========================================================
   ANIMATED FILM GRAIN (fix 8)
   Two stacked noise plates cross-fade + drift so the grain
   reads as moving film, not a static texture overlay.
   ========================================================= */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 0.6s steps(6) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-4%, 3%); }
  33%  { transform: translate(3%, -5%); }
  50%  { transform: translate(-6%, 2%); }
  66%  { transform: translate(5%, 4%); }
  83%  { transform: translate(-3%, -3%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

::selection { background: var(--orange); color: var(--white); }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* =========================================================
   FOCUS-VISIBLE (fix 9) - keyboard users never lose the affordance
   ========================================================= */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
/* remove any UA outline only when NOT keyboard-focused */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   PRESS / ACTIVE STATE (fix 5) - springy tactile press
   ========================================================= */
.cta-btn, .nav-cta, .link-more, .brand, .foot-col a, .nav-links a {
  transition-property: transform;
  transition-duration: 0.4s;
  transition-timing-function: var(--spring);
}
.cta-btn:active, .nav-cta:active, .link-more:active,
.brand:active, .foot-col a:active, .nav-links a:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}
@media (prefers-reduced-motion: reduce) {
  .cta-btn:active, .nav-cta:active, .link-more:active,
  .brand:active, .foot-col a:active, .nav-links a:active { transform: none; }
}

/* ---------- shared type atoms ---------- */
/* Oswald: eyebrow labels, nav, stats, UI ONLY */
.label {
  font-family: "Oswald", sans-serif;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}
.label--light { color: rgba(255,255,255,0.74); }

.idx {
  font-family: "Oswald", sans-serif;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label-tight);
  text-transform: uppercase;
  color: var(--orange);
}

/* Fraunces: the emotional display / statement / pull-quote voice */
.serif {
  font-family: "Fraunces", "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-transform: none;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* SplitType wraps text into child .line/.word spans, which detaches the
   glyphs from the parent's background-clip:text gradient (glyphs go
   transparent with no gradient behind them = INVISIBLE). Re-apply the
   gradient clip to the split children so grad-text headings stay visible
   after splitting. (Root cause of the CTA "next scene" disappearance.) */
.grad-text .line, .grad-text .word {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hair { height: 1px; background: var(--hair); border: 0; width: 100%; }

/* ---------- reveal system (baseline, JS-independent) ---------- */
/* Content is visible by default; these classes only ENHANCE when JS runs. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- kinetic line/word masks (fix 2) ----------
   SplitType wraps lines in .line and words in .word.
   We mask each line: the inner content sits below and slides up.
   Purely additive; if SplitType never loads, text renders normally. */
.js .split-ready .line { overflow: hidden; }
.js .split-ready .line .word,
.js .split-ready.by-word .word { display: inline-block; will-change: transform; }
/* generic masked reveal used by section headings via GSAP */
.js .split-ready .word { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: opacity .4s ease; }
  .js .split-ready .line { overflow: visible; }
  .js .split-ready .word { transform: none !important; opacity: 1 !important; }
}

/* =========================================================
   CUSTOM STATE-AWARE CURSOR (fix 1)
   Only shown on fine pointer + motion allowed (set via JS class).
   ========================================================= */
.cursor, .cursor-ring { display: none; }
html.has-cursor.can-motion .cursor,
html.has-cursor.can-motion .cursor-ring {
  display: block;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--orange);
  will-change: transform;
}
.cursor-ring {
  width: 90px; height: 90px; margin: -45px 0 0 -45px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  will-change: transform;
  mix-blend-mode: normal;
}
.cursor-ring .rw {
  font-family: "Oswald", sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: #fff;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
html.has-cursor.can-motion.cur-view .cursor-ring .rw { opacity: 1; }
/* hide the native cursor only on fine pointer that has our cursor */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor.can-motion,
  html.has-cursor.can-motion a,
  html.has-cursor.can-motion button,
  html.has-cursor.can-motion .cta-btn,
  html.has-cursor.can-motion .cap { cursor: none; }
}

/* =========================================================
   NAV
   ========================================================= */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 2.1rem 0;
  mix-blend-mode: difference;
}
/* NAV SCRIM (client declutter) - a calm darkened band across the very top so
   the logo + nav float on a quiet field over the busy hero. Deeper and taller
   than before, holding a near-solid top edge then easing to transparent so
   nothing competes with the minimal header. Sits BELOW the blended nav. */
.nav-scrim {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.28) 72%, rgba(0,0,0,0) 100%);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: "Oswald", sans-serif;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.05rem;
  will-change: transform;
}
.brand .brand-label { display: inline-flex; }
/* REAL PMG logo (horizontal side-by-side white lockup) in nav (client fix 1).
   Horizontal ~2:1 lockup reads cleanly at nav height; stacked lockup was illegible. */
.brand .brand-logo {
  display: block; height: 34px; width: auto;
  will-change: transform;
}
.nav-links { display: flex; gap: 2.6rem; align-items: center; }
.nav-links a {
  font-family: "Oswald", sans-serif;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  position: relative; padding-bottom: 4px;
  color: #ffffff;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.6); border-radius: 100px;
  padding: 0.55rem 1.25rem !important;
  will-change: transform;
}
.nav-cta .mag-label { display: inline-block; will-change: transform; }
.nav-cta::after { display: none; }
@media (max-width: 860px){ .nav-links a:not(.nav-cta){ display:none; } }

/* =========================================================
   HERO - pinned cinematic title sequence
   NOTE: .hero-media background image is set PER PAGE (inline or in a
   page style block) because each page may use its own hero art.
   The home page uses /assets/img/hero.webp.
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: url("/assets/img/hero.webp") center 46%/cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
}
/* letterbox scrim + vignette for legibility */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.9) 100%),
    radial-gradient(125% 95% at 50% 42%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.64) 100%);
}
.hero-bar { position: absolute; left: 0; right: 0; height: clamp(26px, 5vh, 58px); background: var(--black); z-index: 3; }
.hero-bar.top { top: 0; }
.hero-bar.bot { bottom: 0; }

.hero-top {
  position: absolute; top: clamp(26px, 5vh, 58px); left: 0; right: 0; z-index: 4;
  padding: 2.6rem 0 0;
}
.hero-top .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.hero-runline { max-width: 24ch; color: rgba(255,255,255,0.82); font-size: var(--fs-sm); font-weight: 400; line-height: 1.6; }

.hero-content { position: relative; z-index: 4; }
.hero-kicker { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.hero-kicker .rule { width: 56px; height: 1px; background: var(--orange); }

/* BIG DISPLAY TYPE (fix 3) - fills the lower frame */
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: var(--fs-hero); line-height: 0.86; letter-spacing: -0.03em;
}
.hero h1 .l { display: block; overflow: hidden; padding: 0 0 0.02em; }
.hero h1 .l > span { display: block; }
.hero h1 .thin { font-weight: 300; font-style: italic; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: clamp(1.8rem, 3vw, 2.6rem); gap: 2.4rem; flex-wrap: wrap;
}
.hero-lede { max-width: 48ch; font-size: var(--fs-lg); font-weight: 400; color: rgba(255,255,255,0.88); line-height: 1.5; }
.hero-lede b { font-weight: 600; color: #fff; }

.scroll-cue { display: flex; align-items: center; gap: 0.85rem; }
.scroll-cue .line { width: 1px; height: 48px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue .line::after { content:""; position:absolute; top:0; left:0; width:100%; height:40%; background:var(--orange); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%{transform:translateY(-100%);} 60%,100%{transform:translateY(250%);} }
@media (prefers-reduced-motion: reduce){ .scroll-cue .line::after{ animation:none; } }

/* =========================================================
   MARQUEE - endless studio strip (fix 10: mask fade edges)
   ========================================================= */
.marquee {
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: 1.2rem 0; overflow: hidden; background: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: slide 34s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }
.marquee-item { font-family: "Oswald", sans-serif; display: inline-flex; align-items: center; gap: 3rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.92rem; color: rgba(255,255,255,0.66); }
.marquee-item .dot { width: 7px; height: 7px; background: var(--grad); border-radius: 50%; }

/* =========================================================
   INTRO / THESIS STATEMENT (the "refused to pick a lane" thesis)
   ========================================================= */
.intro { padding: clamp(7rem, 15vh, 14rem) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.intro-side { position: sticky; top: 130px; }
.intro-side .label { display: block; margin-bottom: 1.6rem; }
.intro-meta { font-family: "Oswald", sans-serif; font-size: var(--fs-sm); color: var(--grey); line-height: 2; text-transform: uppercase; letter-spacing: 0.08em; }
.intro-meta span { display:block; color: rgba(255,255,255,0.82); }
.intro-statement {
  font-family: "Fraunces", serif;
  font-weight: 300; font-size: var(--fs-2xl); line-height: 1.22; letter-spacing: -0.012em;
  color: rgba(255,255,255,0.7);
}
.intro-statement b { font-weight: 500; color: #fff; font-style: normal; }
.intro-statement em { font-style: italic; color: #fff; font-weight: 400; }
.intro-statement .grad-text { font-weight: 500; font-style: italic; }
@media (max-width: 900px){ .intro-grid{ grid-template-columns:1fr; } .intro-side{ position:static; } }

/* =========================================================
   OFFERINGS - full-bleed framed bespoke imagery
   ========================================================= */
.offerings { padding-bottom: clamp(3rem, 6vh, 6rem); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-bottom: clamp(2.4rem,4.4vw,4rem); flex-wrap: wrap; }
.sec-head h2 { font-family: "Fraunces", serif; font-weight: 400; font-size: var(--fs-3xl); line-height: 0.98; letter-spacing: -0.022em; }
.sec-head .aside { max-width: 32ch; color: rgba(255,255,255,0.6); font-size: var(--fs-base); font-weight: 400; line-height: 1.6; text-align: right; }
@media (max-width:700px){ .sec-head .aside{ text-align:left; } }

.offer {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4.5vw, 5rem);
  align-items: center;
  padding: clamp(3.4rem, 6.5vw, 6.5rem) 0;
  border-top: 1px solid var(--hair);
}
.offer:last-child { border-bottom: 1px solid var(--hair); }
.offer.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.offer.reverse .offer-media { order: 2; }
.offer.reverse .offer-body { order: 1; }

.offer-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #050505;
}
.offer-media .par {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  will-change: transform;
}
.offer-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.03);
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
  filter: saturate(0.96) contrast(1.03);
  will-change: transform;
}
.offer:hover .offer-media img { transform: scale(1.08); filter: saturate(1.06) contrast(1.05); }
.offer-media .big-idx {
  position: absolute; top: clamp(0.7rem,1.8vw,1.6rem); left: clamp(0.8rem,2vw,1.8rem);
  z-index: 2; font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(2.6rem,5vw,4.4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.55); letter-spacing: -0.02em;
}
.offer-media .tag {
  position: absolute; bottom: clamp(0.8rem,2vw,1.6rem); left: clamp(0.8rem,2vw,1.8rem); z-index: 2;
}

.offer-body .idx { display: block; margin-bottom: 1.4rem; }
.offer-body h3 {
  font-family: "Fraunces", serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  font-size: var(--fs-2xl); margin-bottom: 1.5rem;
}
.offer-body h3 em { font-style: italic; color: #fff; }
.offer-body p { max-width: 46ch; color: rgba(255,255,255,0.68); font-size: var(--fs-base); line-height: 1.65; margin-bottom: 2rem; font-weight: 400; }
.capset { display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem; margin-bottom: 2.2rem; }
.cap {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.74); padding: 0.44rem 0.9rem; border: 1px solid var(--grey-30); border-radius: 100px;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.cap:hover { border-color: var(--orange); color: #fff; }

.link-more { font-family: "Oswald", sans-serif; display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label-tight); }
.link-more .arw { display: inline-block; width: 34px; height: 1px; background: currentColor; position: relative; transition: width 0.4s var(--ease); }
.link-more .arw::after { content:""; position:absolute; right:0; top:-3px; width:7px; height:7px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform: rotate(45deg); }
.link-more:hover { color: var(--orange); }
.link-more:hover .arw { width: 50px; }

@media (max-width: 820px){
  .offer, .offer.reverse { grid-template-columns: 1fr; }
  .offer.reverse .offer-media, .offer.reverse .offer-body { order: initial; }
  .offer-media { order: -1; }
}

/* =========================================================
   OUR WORK - pinned horizontal-scroll Selected Work rail
   Benchmark bigger-bet: as the user scrolls, metric-forward work
   cards pan horizontally (GSAP ScrollTrigger, xPercent scrub).
   Cards are driven from the JS WORK[] array (append to publish more).
   ========================================================= */
.work { position: relative; padding: clamp(4rem,8vh,7rem) 0 0; }
.work .sec-head { padding-bottom: clamp(2rem,3.6vw,3.2rem); }

/* The pinned viewport. On desktop it stays put while the inner track slides. */
.work-pin { position: relative; overflow: hidden; }
.work-track {
  display: flex; align-items: stretch; gap: clamp(1.4rem, 2.4vw, 2.6rem);
  padding: 0 var(--gutter) clamp(3rem,6vh,6rem);
  width: max-content; will-change: transform;
}

.work-card {
  position: relative; flex: 0 0 auto;
  width: clamp(300px, 38vw, 460px);
  min-height: clamp(360px, 52vh, 520px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.8rem, 2.6vw, 2.6rem);
  background: linear-gradient(158deg, #0c0c0e 0%, #050506 62%, #060607 100%);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  overflow: hidden;
}
/* hairline top accent per card, alternating orange / teal */
.work-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--orange); opacity: 0.9;
}
.work-card:nth-child(even)::before { background: var(--teal); }
/* faint radial glow in the corner for cinematic depth */
.work-card::after {
  content: ""; position: absolute; right: -30%; top: -30%;
  width: 70%; height: 70%; pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(241,66,11,0.14), rgba(241,66,11,0) 70%);
}
.work-card:nth-child(even)::after {
  background: radial-gradient(circle at 60% 40%, rgba(42,147,193,0.15), rgba(42,147,193,0) 70%);
}

/* CARD BACKGROUND IMAGERY (change A) - each card gets its relevant case-study
   image covering the card. The subject is composed pushed-right; the left/center
   is kept dark so a left-heavy dark gradient overlay keeps the eyebrow, client,
   big metric, and result text fully legible in white. */
.work-card .wc-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.work-card .wc-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.45) 100%);
}
/* keep a base darken at the very bottom too so the result copy never washes out */
.work-card .wc-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

.work-card .wc-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.work-card .wc-cat {
  font-family: "Oswald", sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.62);
}
.work-card .wc-num {
  font-family: "Oswald", sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--orange);
}
.work-card:nth-child(even) .wc-num { color: var(--teal); }

.work-card .wc-mid { position: relative; z-index: 1; margin-top: auto; padding-top: clamp(1.6rem,3vw,2.4rem); }
.work-card .wc-client {
  font-family: "Fraunces", serif; font-weight: 400; letter-spacing: -0.01em;
  font-size: var(--fs-lg); line-height: 1.1; color: #fff; margin-bottom: 0.9rem;
}
.work-card .wc-metric {
  font-family: "Fraunces", serif; font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 0.94; color: #fff;
}
.work-card .wc-result {
  position: relative; z-index: 1; margin-top: 1.3rem;
  color: rgba(255,255,255,0.7); font-size: var(--fs-sm); line-height: 1.55; max-width: 40ch;
}
.work-card .wc-hair { height: 1px; background: var(--hair-strong); margin: clamp(1.3rem,2.4vw,1.9rem) 0 0; }

/* progress hint under the rail (desktop only) */
.work-cue {
  display: flex; align-items: center; gap: 0.85rem; padding: 0 var(--gutter) clamp(2.5rem,5vh,4rem);
  font-family: "Oswald", sans-serif; font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--grey);
}
.work-cue .wbar { flex: 1; height: 1px; background: var(--hair); position: relative; }
.work-cue .wbar::after { content:""; position:absolute; left:0; top:0; height:100%; width:var(--wp,8%); background: var(--grad); transition: width 0.1s linear; }

/* MOBILE / FALLBACK (<768px): stack vertically, no pin, content visible */
@media (max-width: 767px){
  .work-pin { overflow: visible; }
  .work-track { flex-direction: column; width: auto; padding: 0 var(--gutter) clamp(2rem,5vh,4rem); gap: 1.2rem; }
  .work-card { width: 100%; min-height: 0; }
  .work-cue { display: none; }
}
@media (prefers-reduced-motion: reduce){
  .work-cue { display: none; }
}

/* =========================================================
   THESIS BREAKER / PUREBRAIN - room and machine are one
   NOTE: .thesis-bg background image defaults to /assets/img/thesis.webp;
   a page may override it in its own style block.
   ========================================================= */
.thesis { position: relative; margin-top: clamp(4rem,8vh,8rem); padding: clamp(7rem,15vh,14rem) 0; overflow: hidden; }
.thesis-bg { position: absolute; inset: -8% 0; z-index: 0; background: url("/assets/img/thesis.webp") center/cover no-repeat; transform: scale(1.06); will-change: transform; }
.thesis::before { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.64) 46%, rgba(0,0,0,0.38) 100%); }
.thesis::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, var(--black) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 80%, var(--black) 100%); }
.thesis .wrap { position: relative; z-index: 2; }

/* oversized numeral bleeding off-edge behind the thesis (fix 3) */
.thesis-ghost {
  position: absolute; z-index: 1; pointer-events: none;
  right: -3vw; bottom: -8vh;
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: clamp(16rem, 40vw, 46rem); line-height: 0.72;
  letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  user-select: none;
}

.thesis-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: clamp(2rem,6vw,6rem); align-items: end; }
.thesis-kicker { display:flex; align-items:center; gap: 1rem; margin-bottom: 2rem; }
.thesis-kicker .rule { width: 56px; height:1px; background: var(--teal); }
.thesis h2 {
  font-family: "Fraunces", serif; font-weight: 400; line-height: 1; letter-spacing: -0.022em;
  font-size: var(--fs-3xl);
}
.thesis h2 .thin { font-weight: 300; font-style: italic; }
.thesis-copy { color: rgba(255,255,255,0.8); font-size: var(--fs-lg); font-weight: 400; line-height: 1.55; }
.thesis-copy p + p { margin-top: 1.3rem; }
.thesis-copy b { color: #fff; font-weight: 600; }
@media (max-width: 900px){ .thesis-grid{ grid-template-columns:1fr; align-items:start; } }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(3.4rem,6vw,5.5rem); background: var(--hair-strong); border: 1px solid var(--hair-strong); position: relative; z-index: 2; }
.metric { background: rgba(5,5,6,0.74); backdrop-filter: blur(3px); padding: clamp(1.8rem,3vw,2.6rem); }
.metric .num { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(2.6rem,5vw,3.8rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric .mcap { font-family: "Oswald", sans-serif; display: inline-block; margin-top: 1rem; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label-tight); color: var(--grey); line-height: 1.5; }
@media (max-width: 700px){ .metrics{ grid-template-columns:1fr; } }

/* =========================================================
   CTA - start the next scene
   ========================================================= */
.cta { padding: clamp(7rem,16vh,15rem) 0; text-align: center; position: relative; }
.cta .label { display:block; margin-bottom: 2.2rem; }
.cta h2 { font-family: "Fraunces", serif; font-weight: 400; font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.03em; }
.cta .thin { font-weight: 300; font-style: italic; }
.cta-btn {
  font-family: "Oswald", sans-serif;
  display: inline-flex; align-items: center; gap: 1rem; margin-top: clamp(2.8rem,5vw,4.4rem);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem;
  border: 1px solid var(--grey-30); border-radius: 100px; padding: 1.15rem 2.3rem;
  position: relative; overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.4s var(--spring);
  will-change: transform;
}
.cta-btn .mag-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 1rem; will-change: transform; }
.cta-btn::before { content:""; position:absolute; inset:0; z-index:0; background: var(--grad); transform: translateY(101%); transition: transform 0.55s var(--ease); }
.cta-btn:hover { border-color: transparent; color: #fff; }
.cta-btn:hover::before { transform: translateY(0); }

/* =========================================================
   FOOTER
   ========================================================= */
footer { border-top: 1px solid var(--hair); padding: clamp(3.4rem,6vw,5.5rem) 0 2.6rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display:flex; align-items:center; gap: 0.8rem; font-family: "Oswald", sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:0.02em; font-size: 1.1rem; }
.foot-brand .mark { width: 28px; height: 32px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.foot-cols { display: flex; gap: clamp(2.5rem,5vw,5rem); flex-wrap: wrap; }
.foot-col .label { display:block; margin-bottom: 1.2rem; }
.foot-col a { display:block; font-size: var(--fs-sm); color: rgba(255,255,255,0.72); padding: 0.3rem 0; transition: color 0.3s var(--ease), transform 0.4s var(--spring); }
.foot-col a:hover { color: var(--orange); }
.foot-base { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-top: clamp(3rem,6vw,5rem); padding-top: 1.7rem; border-top: 1px solid var(--hair); }
.foot-base p { font-family: "Oswald", sans-serif; font-size: 0.78rem; color: var(--grey); letter-spacing: 0.06em; text-transform: uppercase; }
