/* =========================================================
   IDEAID — styles.css
   Tokens: design.md §11. Grid & motion system modelled on the
   reference layout: fluid 8-column grid, 2vw margins/gutters.
   ========================================================= */

:root {
  /* colour */
  --blue-700: #024098;
  --blue-600: #0151B4;
  --blue-500: #047AE0;
  --cyan-500: #1A95D1;
  --yellow-400: #FFD932;
  --yellow-400-hover: #F5C800;
  --yellow-300: #FFF100;
  --navy-900: #0A143B;
  --white: #FFFFFF;
  --grey-50: #F5F8FC;
  --grey-200: #DCE4EF;
  --grey-500: #5B6B82;

  --gradient-brand: linear-gradient(180deg, #0151B4 0%, #047AE0 45%, #024098 100%);
  --gradient-spotlight: radial-gradient(120% 90% at 50% 40%, #047AE0 0%, #0151B4 55%, #024098 100%);

  /* type */
  --font-display: "Cal Sans", "DM Sans", "Helvetica Neue", Arial, sans-serif; /* one weight (400) */
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Sans", "Helvetica Neue", Arial, sans-serif; /* label face: bold caps, light tracking */

  /* radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* shadow */
  --shadow-card: 0 12px 32px rgba(10, 20, 59, 0.12);

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-reveal: cubic-bezier(.075, .82, .165, 1);
  --ease-line: cubic-bezier(.3, .3, 0, 1);
  --ease-page: cubic-bezier(.24, .36, 0, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 600ms;

  /* grid (fluid, 8 columns) */
  --cols: 8;
  --margin: 2vw;
  --gutter: 2vw;
  --section-y: 154px; /* +20% (was 128) */
  --nav-h: 80px;
}

@media (max-width: 768px) {
  :root { --section-y: 86px; } /* +20% (was 72) */
}
@media (max-width: 480px) {
  :root { --margin: 4vw; --gutter: 4vw; --nav-h: 68px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; } /* nothing may pan sideways on phones */
body {
  font-family: var(--font-body);
  font-weight: 400; letter-spacing: 0; font-optical-sizing: auto; font-synthesis-weight: none;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break position: sticky */
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, .t-hero, .t-h1, .t-h2 { text-wrap: balance; }
address { font-style: normal; }
::selection { background: var(--yellow-400); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--yellow-400); outline-offset: 3px; }

.margin { margin-left: var(--margin); margin-right: var(--margin); }
.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; }
.c-cyan { color: var(--cyan-500); }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.06em; }

/* ---------- type styles (design.md §5.3) ---------- */
/* Display: medium weight, sentence case, tight tracking; big jumps between steps (bpowell.co system) */
.t-hero, .t-h1, .t-h2, .t-h3, .t-number { font-family: var(--font-display); font-weight: 400; text-transform: none; }
.t-hero { font-size: clamp(48px, 6.4vw, 96px); line-height: 1.07; letter-spacing: 0; }
.t-h1 { font-size: clamp(40px, 4.47vw, 72px); line-height: 1.07; letter-spacing: 0; }
.t-h2 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.1; letter-spacing: 0; }
.t-h3 { font-size: clamp(22px, 2.3vw, 33px); line-height: 1.15; letter-spacing: 0; }
.t-number { font-size: clamp(72px, 9.72vw, 140px); line-height: .95; letter-spacing: 0; }
.t-s { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.15; letter-spacing: 0; }
.t-tagline { font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; letter-spacing: 0; }
.t-p { font-size: clamp(16px, 1.23vw, 18px); line-height: 1.3; font-weight: 400; letter-spacing: 0; }
.t-xs { font-size: clamp(13px, .97vw, 14px); line-height: 1.35; font-weight: 400; letter-spacing: 0; }
/* Labels: captions, eyebrows, tags, meta. Uppercase, wide tracking (+0.069em), weight 600. */
.t-caption, .t-mono { font-family: var(--font-mono); font-weight: 700; font-style: normal; font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- link underline ---------- */
.link { position: relative; display: inline-flex; align-items: baseline; gap: 4px; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-reveal);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- label pill & badge (design.md §6.2 / §6.3) ---------- */
.pill {
  display: inline-block; background: var(--yellow-400); color: var(--navy-900);
  font-family: var(--font-mono); font-weight: 700; font-style: normal;
  font-size: 13px; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 18px; border-radius: var(--radius-sm);
}
.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--yellow-400); color: var(--navy-900);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; font-style: normal;
  margin-right: 6px;
}
.badge--lg { width: 32px; height: 32px; border-radius: 6px; font-size: 18px; }

/* =========================================================
   REVEAL SYSTEM
   Elements animate when their [data-reveal] parent gets .is-ready.
   Each element can set --delay.
   ========================================================= */
.a-moveUp { display: inline-block; transform: translateY(120%); transition: transform 1.5s var(--ease-reveal); }
.is-ready .a-moveUp { transform: none; transition-delay: var(--delay, 0s); }

.a-fadeUp { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.075,0,.165,0), transform 1.5s var(--ease-reveal); }
.is-ready .a-fadeUp { opacity: 1; transform: none; transition-delay: var(--delay, 0s); }

.a-fadeRotate { opacity: 0; transform: scale(1.3) rotate(8deg); transition: opacity 1s cubic-bezier(.075,0,.165,0), transform 1.5s var(--ease-reveal); }
.is-ready .a-fadeRotate { opacity: 1; transform: none; transition-delay: var(--delay, 0s); }

.a-fillWidth { width: 0; transition: width 1.2s var(--ease-line); }
.is-ready .a-fillWidth { width: 100%; transition-delay: var(--delay, 0s); }

.a-fillHeight { height: 0%; transition: height 4s var(--ease-line); }
.is-ready .a-fillHeight { height: 100%; transition-delay: var(--delay, 0s); }

/* split words */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.word > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease-reveal); transition-delay: calc(var(--i) * 70ms + var(--delay, 0s)); }
.is-ready .word > span { transform: none; }

/* =========================================================
   PRELOADER  (clip-path wipe up)
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--gradient-spotlight); color: var(--white);
  clip-path: inset(0 0 0 0); transition: clip-path .33s cubic-bezier(.65, 0, .35, 1);
}
.preloader.is-hidden { clip-path: inset(0 0 100% 0); }
.preloader__inner { display: flex; align-items: center; gap: 14px; }

.preloader__bar { width: 72px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.preloader__progress { width: 100%; height: 100%; background: var(--yellow-400); transform: scaleX(0); transform-origin: left; }
.preloader__pct { width: 48px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* =========================================================
   PAGE TRANSITION  (slide up, clip out)
   ========================================================= */
.transition {
  position: fixed; inset: 0; z-index: 998; display: grid; place-items: center;
  background: var(--blue-700); color: var(--white);
  transform: translateY(110%); pointer-events: none; will-change: transform, clip-path;
}
.transition.is-in { transform: translateY(0); clip-path: inset(0 0 0 0); transition: transform .26s cubic-bezier(.16, 1, .3, 1); }
.transition.is-out { transform: translateY(-10%); clip-path: inset(0 0 110% 0); transition: transform .28s cubic-bezier(.65, 0, .35, 1), clip-path .28s cubic-bezier(.65, 0, .35, 1); }
.transition__logo { position: relative; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.03vw, 58px); letter-spacing: 0; }
.transition__back { color: rgba(255,255,255,.2); }
.transition__mask { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); }
.transition.is-in .transition__mask { clip-path: inset(0 0 0 0); transition: clip-path .22s cubic-bezier(.16, 1, .3, 1) .06s; }
.transition__front { color: var(--yellow-400); }

/* =========================================================
   GRID OVERLAY (toggle with G)
   ========================================================= */
.grid-overlay {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  display: flex; gap: var(--gutter); padding: 0 var(--margin);
  opacity: 0; transition: opacity .3s;
}
.grid-overlay div { flex: 1; background: rgba(255, 217, 50, .12); border-left: 1px solid rgba(255,217,50,.3); border-right: 1px solid rgba(255,217,50,.3); }
.grid-overlay.is-on { opacity: 1; }
@media (max-width: 480px) { .grid-overlay div:nth-child(n+5) { display: none; } }

/* =========================================================
   CURSOR LABEL
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1001; pointer-events: none;
  /* position is written by JS each frame, so only opacity transitions here */
  opacity: 0; transform: translate(-50%, -50%); transition: opacity .2s linear;
}
.cursor.is-on { opacity: 1; }
/* the pill itself scales, so background and text grow together */
.cursor__text {
  overflow: hidden; padding: 6px 12px; border-radius: 999px;
  background: var(--yellow-400); color: var(--navy-900);
  font-family: var(--font-mono); font-weight: 700; font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  transform: scale(.6); transition: transform .3s var(--ease-out);
}
.cursor.is-on .cursor__text { transform: none; }
@media (hover: none) { .cursor { display: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  padding: 0 var(--margin); color: var(--white);
  transition: transform .9s cubic-bezier(.215,.61,.355,1), background-color .4s, box-shadow .4s;
}
.nav.is-solid { background: var(--blue-600); box-shadow: 0 8px 24px rgba(2,64,152,.25); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__grid {
  height: 100%; display: grid; align-items: center;
  grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter);
}
.nav__grid { overflow: hidden; }
.nav__logo { grid-column: 1 / 3; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; }
.nav__tag { grid-column: 3 / 4; overflow: hidden; white-space: nowrap; }
.nav__menu { grid-column: 4 / 7; }
.nav__menu ul { display: flex; gap: 1.6vw; }
.nav__link { font-family: var(--font-display); font-size: 17px; font-weight: 400; letter-spacing: 0; }
.nav__link sup { font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .03em; }
.nav__link sup { font-size: 9px; color: var(--yellow-400); margin-left: 2px; }
.nav__right { grid-column: 7 / 9; justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__toggle { display: none; font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.nav__toggle-close { display: none; }
.nav.menu-open .nav__toggle-open { display: none; }
.nav.menu-open .nav__toggle-close { display: inline; }

/* logo: supplied white artwork (assets/images/IDEAD-LOGO-WHITE.png, 233x297, stacked mark + wordmark); sits only on blue */
.logo-img { display: block; width: auto; height: 100%; }
.nav__logo { height: 58px; }
@media (max-width: 480px) { .nav__logo { height: 50px; } }
.preloader__logo { height: 115px; }
.footer__logo { height: 144px; }

@media (max-width: 1440px) { .nav__tag { display: none; } .nav__menu { grid-column: 3 / 7; } }
@media (max-width: 1024px) {
  .nav__tag, .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-right: -12px; } /* 44px tap target, same look */
  .nav__logo { grid-column: 1 / 5; }
  .nav__right { grid-column: 5 / 9; }
}
@media (max-width: 480px) { .nav__right .btn { display: none; } }

/* dropdown */
.dropdown {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: var(--nav-h);
  background: var(--blue-600); color: var(--white);
  transform: translateY(-100%); transition: transform .85s cubic-bezier(.4,.4,.1,1);
  pointer-events: none; border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.dropdown.is-open { transform: none; pointer-events: auto; transition-duration: .75s; }
.dropdown__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding: 2vw var(--margin) 2.4vw; }
.dropdown__item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2vw; padding: 1vw; border-radius: var(--radius-md); background: rgba(255,255,255,.06); transition: background .3s; }
.dropdown__item:hover { background: rgba(255,255,255,.12); }
.dropdown__img { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
.dropdown__info { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.dropdown__label { display: flex; align-items: center; margin-bottom: 8px; }
.dropdown__info p { font-size: 14px; opacity: .85; }
.dropdown .a-fadeRotate { transition: opacity .35s cubic-bezier(.075,0,.165,0), transform 2s var(--ease-reveal); }
.dropdown.is-open .a-fadeRotate { opacity: 1; transform: none; transition-delay: var(--delay, 0s); transition-duration: .35s, 1.2s; }
.dropdown__item { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .75s var(--ease-reveal), background .3s; }
.dropdown.is-open .dropdown__item { opacity: 1; transform: none; transition-delay: var(--delay, 0s); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(10,20,59,.45);
  opacity: 0; transform: translateY(-120%); transition: opacity .75s cubic-bezier(.25,1,.5,1), transform 0s linear .75s;
}
.nav-overlay.is-open { opacity: 1; transform: none; transition: opacity .75s cubic-bezier(.25,1,.5,1); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 8vw) var(--margin) var(--margin);
  background: var(--gradient-brand); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.645,.045,.355,1);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu li { overflow: hidden; }
.mobile-menu a { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 13vw, 72px); line-height: 1.04; letter-spacing: 0; }
.mobile-menu a span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-reveal); }
.mobile-menu.is-open a span { transform: none; }
.mobile-menu li:nth-child(1) a span { transition-delay: .15s; }
.mobile-menu li:nth-child(2) a span { transition-delay: .2s; }
.mobile-menu li:nth-child(3) a span { transition-delay: .25s; }
.mobile-menu li:nth-child(4) a span { transition-delay: .3s; }
.mobile-menu li:nth-child(5) a span { transition-delay: .35s; }

/* =========================================================
   BUTTONS — layered mask button (design.md §9)
   ========================================================= */
.btn {
  position: relative; display: inline-block; user-select: none;  font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: 0; line-height: 1;
}
/* hover lift moves the layers, not the hit target */
/* exit (mouse-out) is faster than the entrance */
.btn__mask, .btn__hidden { transition-property: clip-path, transform; transition-duration: .18s, .15s; transition-timing-function: var(--ease-out); }
.btn:hover .btn__mask { transform: translateY(-2px); transition-duration: .3s, var(--dur-fast); }
.btn__mask, .btn__hidden { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius-sm); white-space: nowrap; }
.btn__mask { position: absolute; inset: 0; }
.btn__hidden { visibility: hidden; padding-left: 28px; }
.btn__bottom { background: var(--navy-900); color: var(--yellow-400); }
.btn__top {
  background: var(--yellow-400); color: var(--navy-900);
  clip-path: inset(0 0 0 0);
}
.btn__top { justify-content: center; }
.btn__arrow { display: inline-block; transform: translateX(-6px); opacity: 0; transition: transform .5s var(--ease-reveal), opacity .3s; }
.btn:hover .btn__top { clip-path: inset(0 0 0 100%); }
.btn:hover .btn__arrow { transform: none; opacity: 1; }
.btn--sm { font-size: 13px; }
.btn--sm .btn__mask, .btn--sm .btn__hidden { padding: 10px 18px; }
/* outline variant (on white) */
.btn--outline .btn__top { background: var(--white); color: var(--blue-600); box-shadow: inset 0 0 0 2px var(--blue-600); }
.btn--outline .btn__bottom { background: var(--blue-600); color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center; padding: 12px 26px; border-radius: var(--radius-sm);
  border: 2px solid var(--white); color: var(--white);
  font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: 0;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--white); color: var(--blue-600); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; color: var(--white); overflow: hidden; }
.hero__stage { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: 14vw; }
.hero__fill { position: absolute; inset: 0; z-index: 2; background: var(--yellow-400); clip-path: circle(0% at 50% 50%); pointer-events: none; }
/* hero: brand blue deepening to navy so the neural network reads; canvas drawn by js §10d */
.hero__bg { position: absolute; inset: -10% 0 0; background:
  radial-gradient(70% 60% at 72% 28%, rgba(4,122,224,.55) 0%, rgba(4,122,224,0) 70%),
  radial-gradient(130% 100% at 50% 35%, #0151B4 0%, #024098 45%, #0A143B 100%); }
.hero__net { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 3; width: calc(100% - var(--margin) * 2);
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 2.4vw;
  grid-template-areas:
    "pill pill pill pill pill pill pill pill"
    "title title title title title title title title"
    "sub sub . . desc desc desc ."
    "scroll . . . . . . .";
  padding-top: calc(var(--nav-h) + 8vw);
}
.hero__pill { grid-area: pill; overflow: hidden; }
.hero__title { grid-area: title; max-width: 14ch; } /* Cal Sans is heavy by design (design.md §5) */
.hero__sub { grid-area: sub; display: flex; flex-direction: column; color: var(--yellow-400); }
.hero__desc { grid-area: desc; display: flex; flex-direction: column; gap: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__scroll { grid-area: scroll; overflow: hidden; opacity: .8; }
.hero__wedge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 16vw; z-index: 1;
  background: var(--yellow-400); clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 100%); /* matches the yellow Featured Work below */
  transition: clip-path 1.6s var(--ease-page) .3s;
}
body.is-ready .hero__wedge { clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 70%); }
/* scrollytelling scene (design.md §10.2): JS adds .hero-scene. The hero becomes a tall scroll
   track and the stage sticks full-screen inside it. overflow: clip (not hidden) so sticky works. */
.hero-scene .hero { height: 250vh; overflow: clip; }
.hero-scene .hero__stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; align-items: center; padding-bottom: 0; }
.hero-scene .hero__grid { padding-top: calc(var(--nav-h) + 2vw); }
.hero-scene .hero__title { transform-origin: 0 0; will-change: transform; }
@media (max-width: 768px) { .hero-scene .hero { height: 180vh; } }


@media (max-width: 768px) {
  .hero__stage { padding-bottom: 24vw; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "pill" "title" "sub" "desc" "scroll"; row-gap: 6vw; padding-top: calc(var(--nav-h) + 20vw); }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 4vw; }
.section-head .pill { overflow: hidden; }

/* =========================================================
   FEATURED WORK GRID (2 cols, drawn borders)
   ========================================================= */
.work { padding: var(--section-y) 0 calc(var(--section-y) / 2); }
.work__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.work__vline { position: absolute; left: 50%; top: 0; width: 1px; background: var(--grey-200); }
.work-block { position: relative; display: flex; flex-direction: column; padding: 1vw 1vw 0; }
.work-block:nth-child(-n+3) { padding-top: 0; }
.work-block__visual { position: relative; height: 34vw; overflow: hidden; border-radius: var(--radius-md); }
.work-block__visual .art { height: 120%; margin-top: -10%; transition: opacity 1s cubic-bezier(.075,0,.165,0), transform 1.5s var(--ease-reveal), scale .8s var(--ease-out); }
.work-block:hover .art { scale: 1.04; }
.work-block__hover {
  position: absolute; left: 1.2vw; bottom: 1.2vw; transform: translateY(20px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.work-block:hover .work-block__hover { transform: none; opacity: 1; }
.work-block__info { margin: 1.4vw 0 3vw; display: flex; flex-direction: column; gap: 6px; }
.work-block__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-block__tags { display: flex; align-items: center; flex-wrap: wrap; color: var(--grey-500); }
.work-block__name { margin-top: .6vw; color: var(--navy-900); }
/* result figure: proof reads as a number, not a caption (design.md §9 big-number stat, blue on white) */
.work-block__result { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.work-block__figure { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 4.03vw, 58px); line-height: .92; letter-spacing: 0; color: var(--blue-600); }
.work-block__label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--navy-900); max-width: 14ch; line-height: 1.25; }
.work__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--grey-500); }
.work__key { display: inline-flex; align-items: center; white-space: nowrap; }
.work__key + .work__key { margin-left: 14px; }
.work__key-note::before { content: ": "; white-space: pre; }
@media (max-width: 600px) { .work__key-note::before { content: none; } .work__key-note::first-letter { text-transform: uppercase; } }
.work-block__title { color: var(--grey-500); line-height: 1.3; } /* card descriptions wrap to 2–3 lines; 1.15 tagline leading is too tight here */
.work-block__border { position: relative; height: 1px; display: flex; }
.work-block__border--r { justify-content: flex-end; }
.work-block__border--l { justify-content: flex-start; }
.work-block__border i { display: block; height: 100%; background: var(--grey-200); }
.work-block:nth-last-child(-n+2) .work-block__border { display: none; }

@media (max-width: 768px) {
  .work__grid { grid-template-columns: 1fr; row-gap: 6vw; }
  .work__vline { display: none; }
  .work-block { padding: 0; }
  .work-block__visual { height: 64vw; }
  .work-block__info { margin: 4vw 0 6vw; }
  .work-block:nth-last-child(2) .work-block__border { display: flex; }
}

/* =========================================================
   PLACEHOLDER ART  (swap for real imagery — design.md §7)
   ========================================================= */
.art {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: grid; place-items: center; color: rgba(255,255,255,.95);
  background: var(--gradient-spotlight);
}
.art span { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 6.25vw, 96px); letter-spacing: 0; }
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; }
.art--wrap { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }
.art--wrap::before { width: 140%; height: 22%; left: -20%; top: 39%; border-radius: 0; background: repeating-linear-gradient(90deg, var(--yellow-300) 0 60px, var(--navy-900) 60px 66px); transform: rotate(-8deg); opacity: .9; }
.art--wrap span { color: var(--white); text-shadow: 0 8px 30px rgba(10,20,59,.6); }
.art--retail { background: linear-gradient(160deg, var(--yellow-400), #ffb800); color: var(--navy-900); }
.art--retail::before { width: 50%; aspect-ratio: 1; right: -10%; bottom: -15%; background: var(--blue-600); }
.art--retail::after { width: 18%; aspect-ratio: 1; left: 12%; top: 14%; background: var(--white); }
.art--retail span { color: var(--navy-900); }
.art--event { background: radial-gradient(80% 80% at 50% 110%, var(--blue-500), var(--navy-900) 70%); }
.art--event::before { width: 60%; aspect-ratio: 1; left: 20%; top: -30%; background: radial-gradient(circle, rgba(255,217,50,.55), transparent 70%); }
.art--social { background: linear-gradient(200deg, var(--cyan-500), var(--blue-700)); }
.art--social::before { width: 34%; aspect-ratio: 9/16; border-radius: 22px; left: 33%; top: 12%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.5); }
.art--think { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); }
.art--think::before { width: 40%; aspect-ratio: 1; right: -8%; top: -8%; background: var(--yellow-400); }
.art--create { background: linear-gradient(135deg, var(--yellow-400), #ffc400); }
.art--create span { color: var(--navy-900); }
.art--create::before { width: 50%; aspect-ratio: 1; left: -12%; bottom: -20%; background: var(--blue-600); }
.art--engage { background: linear-gradient(135deg, var(--cyan-500), var(--blue-600)); }
.art--engage::before { width: 30%; aspect-ratio: 1; right: 10%; bottom: 10%; background: var(--white); opacity: .9; }
.art--p1 { background: linear-gradient(180deg, #c9d8ee, #8fb0dc); }
.art--p2 { background: linear-gradient(180deg, #ffe680, #ffcc33); }
.art--p3 { background: linear-gradient(180deg, #7fb7ea, #0151B4); }
.art--p4 { background: linear-gradient(180deg, #e8eef7, #b9c9e0); }
.art--p1 span, .art--p2 span, .art--p4 span { color: var(--navy-900); }
.art--p1 span, .art--p2 span, .art--p3 span, .art--p4 span { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* =========================================================
   TEXT + BUTTON (About)
   ========================================================= */
.textbtn { padding: calc(var(--section-y) / 2) 0 4.8vw; }
.textbtn__grid {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 3vw;
  grid-template-areas: "head head head head head head head head" "sub sub sub . inner inner inner .";
}
.textbtn__head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.textbtn__head .pill { overflow: hidden; }
.textbtn__sub { grid-area: sub; color: var(--blue-600); }
.textbtn__inner { grid-area: inner; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
@media (max-width: 768px) {
  .textbtn__grid { grid-template-columns: 1fr; grid-template-areas: "head" "sub" "inner"; row-gap: 6vw; }
}
/* scrollytelling (design.md §10.4): JS adds .about-scrub (GSAP drives the reveals, so the CSS
   reveal transitions are switched off) and, on desktop, .about-pin (the grid sticks full-screen
   inside a 240vh track). Phones scrub the same beats without pinning: the copy is taller than a phone screen. */
.about-scrub .textbtn .a-fadeUp, .about-scrub .textbtn .a-moveUp { transition: none; }
.textbtn__sub .hl { display: inline; }
.about-pin .textbtn { height: 240vh; padding: 0; }
.about-pin .textbtn__grid { position: sticky; top: 0; height: 100svh; align-content: center; }

/* =========================================================
   SHOWREEL — expands from inset to full-bleed on scroll
   ========================================================= */
.reel { margin: 4vw 0 0; display: flex; justify-content: center; }
.reel__inner {
  position: relative; width: 100vw; height: 56.25vw; max-height: 100svh;
  clip-path: inset(0 18vw round var(--radius-lg)); will-change: clip-path;
  background: var(--grey-200); overflow: hidden; cursor: pointer;
}
.reel__loader { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.reel__progress { width: 10vw; height: 2px; background: rgba(10,20,59,.2); overflow: hidden; position: relative; }
.reel__progress::after { content: ""; position: absolute; inset: 0; background: var(--blue-600); transform: translateX(-100%); }
/* loader only animates while a real video is buffering (JS toggles .is-loading) */
.reel__inner.is-loading .reel__progress::after { animation: reel-load 2s linear infinite; }
@keyframes reel-load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.reel__media { position: absolute; inset: 0; z-index: 2; }
.reel__media video { width: 100%; height: 100%; object-fit: cover; }
.reel__placeholder {
  position: absolute; inset: -10%; display: flex; align-items: center; justify-content: center; gap: 3vw;
  background: var(--gradient-spotlight); color: var(--white);
}
.reel__word { font-family: var(--font-display); font-weight: 400; font-size: 11vw; line-height: 1.04; letter-spacing: 0; }
.reel__word:nth-child(2) { color: var(--yellow-400); }
.reel__indicator {
  position: absolute; left: 2vw; bottom: 2vw; z-index: 3; padding: 6px 12px; border-radius: 999px;
  background: var(--yellow-400); color: var(--navy-900); font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
}
@media (hover: hover) { .reel__indicator { display: none; } }
/* scrollytelling scene (design.md §10.5): JS adds .reel-scene. The section becomes the scroll
   track and the reel sticks full-screen inside it; the three words stack and take turns. */
.reel-scene .reel { height: 300vh; align-items: flex-start; }
.reel-scene .reel__inner { position: sticky; top: 0; height: 100svh; max-height: none; }
.reel-scene .reel__placeholder { display: grid; place-items: center; }
.reel-scene .reel__word { grid-area: 1 / 1; }
@media (max-width: 768px) { .reel-scene .reel { height: 200vh; } }

/* =========================================================
   METHOD — pinned, scroll-driven steps
   ========================================================= */
.method { position: relative; background: var(--gradient-brand); color: var(--white); margin-top: -1px; }
.method__pin { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.method__inner {
  width: calc(100% - var(--margin) * 2);
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 3vw;
  grid-template-areas:
    "head head head head head head head head"
    "words words words words cards cards cards cards"
    "prog prog prog prog prog prog prog prog";
}
.method__head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.method__head .pill { overflow: hidden; }
.method__words { grid-area: words; display: flex; flex-direction: column; align-self: center; }
.method__word { color: rgba(255,255,255,.18); transition: color .6s var(--ease-out), transform .6s var(--ease-out); transform-origin: left center; }
.method__word.is-active { color: var(--yellow-400); transform: translateX(1.2vw); }
.method__cards { grid-area: cards; position: relative; min-height: 360px; align-self: center; }
.method-card {
  position: absolute; inset: 0; padding: 2.4vw; border-radius: var(--radius-md);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 18px;
  /* exit: quick, no delay — so outgoing and incoming cards never overlap */
  opacity: 0; transform: translateY(40px) rotate(2deg);
  transition: opacity .15s cubic-bezier(.4, 0, 1, 1), transform .25s cubic-bezier(.7, 0, .84, 0);
  pointer-events: none;
}
.method-card.is-active {
  opacity: 1; transform: none; pointer-events: auto;
  /* entrance waits for the exit to finish */
  transition: opacity .35s cubic-bezier(.16, 1, .3, 1) .13s, transform .6s cubic-bezier(.16, 1, .3, 1) .13s;
}
.method-card.is-past { opacity: 0; transform: translateY(-40px) rotate(-2deg); }
.method-card__top { display: flex; justify-content: space-between; align-items: center; }
.method-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.method-card li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); }
.method__progress { grid-area: prog; height: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.method__progress i { display: block; height: 100%; background: var(--yellow-400); transform: scaleX(0); transform-origin: left; }

/* reduced motion: no pin, show all three cards */
.method.no-pin .method__pin { height: auto; padding: var(--section-y) 0; }
.method.no-pin .method__cards { display: grid; gap: var(--gutter); min-height: 0; }
.method.no-pin .method-card { position: relative; opacity: 1; transform: none; }
.method.no-pin .method__word { color: var(--yellow-400); }
.method.no-pin .method__progress { display: none; }

@media (max-width: 768px) {
  .method__inner { grid-template-columns: 1fr; grid-template-areas: "head" "words" "cards" "prog"; row-gap: 6vw; }
  .method__words { font-size: 13vw; }
  .method__cards { min-height: 320px; }
  .method-card { padding: 6vw; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--blue-700); color: var(--white); padding: var(--section-y) 0 calc(var(--section-y) * .75); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.stat { border-top: 1px solid rgba(255,255,255,.2); padding-top: 2vw; }
.stat .t-number { color: var(--yellow-400); } /* proportional digits: Cal Sans' tabular figures are very wide ("1 5") */
.stat p { margin-top: 12px; opacity: .9; line-height: 1.3; } /* labels wrap to 2–3 lines */
@media (max-width: 768px) { .stats__grid { grid-template-columns: 1fr; row-gap: 10vw; } }

/* =========================================================
   SERVICES ACCORDION
   ========================================================= */
.services { padding: var(--section-y) 0 calc(var(--section-y) / 2); }
.acc__head {
  width: 100%; display: grid; text-align: left; align-items: center; padding: 1.8vw 0;
  grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter);
}
.acc__name { grid-column: 1 / 5; display: flex; align-items: baseline; gap: 2vw; overflow: hidden; }
.acc__num { color: var(--blue-600); font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .03em; min-width: 2ch; }
.acc__tags { grid-column: 5 / 8; display: flex; align-items: center; color: var(--grey-500); }
.acc__more { grid-column: 8 / 9; justify-self: end; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--blue-600); }
.acc__less-txt { display: none; }
.acc__item.is-open .acc__more-txt { display: none; }
.acc__item.is-open .acc__less-txt { display: inline; }
.acc__head:hover .t-h3 { color: var(--blue-600); }
.acc__head .t-h3 { transition: color .3s; }
.acc__body { height: 0; overflow: hidden; opacity: 0; transition: height .6s cubic-bezier(.165,.84,.44,1), opacity .6s cubic-bezier(.165,.84,.44,1); }
.acc__item.is-open .acc__body { opacity: 1; }
.acc__body p { padding: 0 0 2vw calc(2ch + 2vw); max-width: 60ch; color: var(--grey-500); }
.acc__line { position: relative; height: 1px; overflow: hidden; background: var(--grey-200); }
.acc__line-dark { position: absolute; inset: 0; background: var(--navy-900); transform: translateX(-100%); transition: transform 1.4s var(--ease-line); }
.acc__item.is-ready .acc__line-dark { transform: translateX(100%); }
.acc__item.is-open .acc__line-dark { transform: translateX(0); transition-duration: .8s; }
@media (max-width: 768px) {
  .acc__head { padding: 5vw 0; }
  .acc__name { grid-column: 1 / 7; }
  .acc__tags { display: none; }
  .acc__more { grid-column: 7 / 9; }
  .acc__body p { padding-left: 0; padding-bottom: 5vw; }
}

/* =========================================================
   DRAG SLIDER
   ========================================================= */
.slider { padding: calc(var(--section-y) / 2) 0 var(--section-y); }
.slider__viewport { overflow: hidden; padding-left: var(--margin); cursor: grab; touch-action: pan-y; }
.slider__viewport.is-dragging { cursor: grabbing; }
.slider__track { display: flex; gap: var(--gutter); width: max-content; will-change: transform; user-select: none; }
.slide { width: 22vw; flex: none; }
.slide .art { aspect-ratio: 3/4; height: auto; border-radius: var(--radius-md); transition: scale .6s var(--ease-out); }
.slider__viewport.is-dragging .slide .art { scale: .96; }
.slide figcaption { margin-top: 12px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 768px) { .slide { width: 62vw; } }

/* =========================================================
   CAPABILITIES (awards-style)
   ========================================================= */
.caps {
  padding: calc(var(--section-y) / 2) 0 var(--section-y);
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 3vw;
  grid-template-areas: "title title title . desc desc desc ." "wrap wrap wrap wrap wrap wrap wrap wrap";
  border-top: 1px solid var(--grey-200); padding-top: var(--section-y);
}
.caps__title { grid-area: title; }
.caps__desc { grid-area: desc; color: var(--grey-500); }
.caps__wrap { grid-area: wrap; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.caps__block h4 { display: flex; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--grey-200); }
.caps__block li { padding: 6px 0; color: var(--grey-500); }
@media (max-width: 915px) {
  .caps { grid-template-columns: 1fr; grid-template-areas: "title" "desc" "wrap"; }
  .caps__wrap { grid-template-columns: 1fr 1fr; row-gap: 8vw; }
}

/* =========================================================
   LATEST THINKING
   ========================================================= */
.news { padding-bottom: var(--section-y); }
.news__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 2vw; }
.news__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
.article {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); padding: 2vw 0;
}
.article__img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-md); }
.article__img .art { transition: opacity 1s cubic-bezier(.075,0,.165,0), transform 1.5s var(--ease-reveal), scale .8s var(--ease-out); }
.article:hover .art { scale: 1.04; }
.article__info { display: flex; flex-direction: column; gap: 12px; }
.article__meta { display: flex; gap: 8px; color: var(--grey-500); }
.article__line { position: absolute; left: 0; bottom: 0; height: 1px; background: var(--grey-200); }
.article:hover .t-h3 { color: var(--blue-600); }
.article .t-h3 { transition: color .3s; }
@media (max-width: 915px) {
  .news__grid { grid-template-columns: 1fr; }
  .article { padding: 6vw 0; }
}
@media (max-width: 480px) {
  .article { grid-template-columns: 1fr; row-gap: 5vw; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--blue-700); color: var(--white); padding-bottom: var(--margin); overflow: hidden; }
.footer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: calc(var(--section-y) * .75) 0 9.6vw; } /* top: the tape used to supply this space */
.footer__cta .pill { overflow: hidden; }
.footer__cta .t-hero { max-width: 12ch; } /* matches the hero headline */
.footer__cta .t-tagline { color: var(--yellow-400); }
.footer__grid {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 6vw;
  padding: 3vw 0; border-top: 1px solid rgba(255,255,255,.2);
}
.footer__col:nth-child(1) { grid-column: 1 / 3; }
.footer__col:nth-child(2) { grid-column: 3 / 4; }
.footer__col:nth-child(3) { grid-column: 4 / 6; }
.footer__col:nth-child(4) { grid-column: 6 / 7; }
.footer__col:nth-child(5) { grid-column: 7 / 9; }
.footer__logo { display: inline-flex; flex-direction: column; gap: 10px; }
.footer__label { opacity: .78; margin-bottom: 14px; }
.footer__menu li { padding: 3px 0; }
.footer__meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 2vw; padding-right: 72px; border-top: 1px solid rgba(255,255,255,.2); }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:nth-child(n) { grid-column: auto; }
  .footer__col:nth-child(1) { grid-column: 1 / -1; }
  .footer__meta { flex-wrap: wrap; }
}

/* =========================================================
   WHATSAPP
   ========================================================= */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 24px rgba(10,20,59,.3);
  transform: scale(0); transition: transform .5s var(--ease-out);
}
body.is-ready .whatsapp { transform: scale(1); transition-delay: 1.2s; }
.whatsapp svg { transition: transform var(--dur-fast) var(--ease-out); }
.whatsapp:hover svg { transform: scale(1.12) rotate(-8deg); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .a-moveUp, .word > span, .a-fadeUp, .a-fadeRotate { transform: none !important; opacity: 1 !important; }
  .a-fillWidth { width: 100% !important; }
  .a-fillHeight { height: 100% !important; }
  .reel__inner { clip-path: none !important; }
  .preloader { display: none; }
}

/* mono labels are wider than the old italic: keep the hero pill on one line on phones */
@media (max-width: 480px) { .pill { font-size: 11px; letter-spacing: .05em; padding: 6px 14px; } }

/* work cards with real photography (art--photo); image fills the parallax frame */
.art--photo { background: var(--grey-100, #eef1f6); }
.art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art--photo::before, .art--photo::after { display: none; }

/* clients section */
.clients { padding: 9.6vw 0 7.2vw; }
.clients__stage { position: relative; }
.clients__fill { display: none; }
/* scrollytelling handoff from yellow Featured Work (design.md §10.3): JS adds .clients-scene.
   The section becomes a tall track; the stage sticks and a full-bleed yellow sheet (the work
   colour carried over) shrinks into the yellow "Clients" pill. */
.clients-scene .clients { height: 220vh; padding: 0; }
.clients-scene .clients__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.clients-scene .clients__stage > :not(.clients__fill) { position: relative; z-index: 1; }
.clients-scene .clients__stage .clients__marquee { align-self: stretch; }
.clients-scene .clients__fill { display: block; position: absolute; z-index: 0; top: 0; bottom: 0; left: calc(var(--margin) * -1); right: calc(var(--margin) * -1); background: var(--yellow-400); pointer-events: none; }
/* GSAP drives these during the scene; their CSS reveal transitions would make the scrub lag */
.clients-scene .clients .a-moveUp, .clients-scene .clients .a-fadeUp { transition: none; }
@media (max-width: 768px) { .clients-scene .clients { height: 180vh; } }
.clients__note { margin-top: 2vw; color: var(--grey-500); }

/* odd number of work cards: only the lone last card drops its bottom rule (child 1 is the vline) */
@media (min-width: 769px) {
  .work__grid:has(> .work-block:last-child:nth-child(even)) .work-block:nth-last-child(2) .work-block__border { display: flex; }
}

/* "More work": first six cards show; the rest open on demand (js §10b). Child 1 of the grid is the vline, so card n is child n+1. */
.work__more { display: flex; justify-content: center; padding: 3vw 0 1vw; }
.work__more[hidden] { display: none; }
.work__grid.is-collapsed .work-block:nth-child(n+8) { display: none; }
.work__grid.is-collapsed .work-block:nth-child(6) .work-block__border,
.work__grid.is-collapsed .work-block:nth-child(7) .work-block__border { display: none; }
@media (max-width: 768px) { .work__grid.is-collapsed .work-block:nth-child(6) .work-block__border { display: flex; } }
.work-block.is-entering { animation: work-in .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes work-in { from { opacity: 0; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .work-block.is-entering { animation: none; } }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease-out); }
[data-work-more][aria-expanded="true"] .btn__arrow { transform: rotate(45deg); }

/* client logos: one full-bleed row scrolling left (js §10c clones the list for a seamless loop).
   Single-ink navy logos (web/mono), original colours on hover; no frames. Pauses on hover, offscreen and hidden tab. */
.clients__marquee { margin: 3vw calc(var(--margin) * -1) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients__track { display: flex; width: max-content; animation: clients-scroll var(--dur, 80s) linear infinite; }
.clients__marquee:hover .clients__track, .clients__marquee.is-paused .clients__track { animation-play-state: paused; }
@keyframes clients-scroll { to { transform: translateX(-50%); } }
.clients__logos { display: flex; flex: none; }
.client { position: relative; display: grid; place-items: center; flex: none; width: clamp(195px, 16.9vw, 286px); height: clamp(114px, 10.4vw, 156px); } /* logos and cells +30% (27 Nov) */
.client img { grid-area: 1 / 1; width: calc(var(--w) * 1.3); max-width: 90%; height: auto; transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.client__mono { opacity: .62; }
.client__colour { opacity: 0; }
@media (hover: hover) {
  .client:hover .client__mono { opacity: 0; }
  .client:hover .client__colour { opacity: 1; }
  .client:hover img { transform: scale(1.06); }
}
@media (max-width: 600px) { .client { width: 172px; height: 99px; } .client img { width: calc(var(--w) * .94); } }
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
  .clients__marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .client img { transition: opacity .2s linear; } .client:hover img { transform: none; }
}

/* mobile fixes (layout check 26 Nov) */
@media (max-width: 600px) {
  .work__key-note { flex-basis: 100%; margin-top: 6px; }
  .reel__inner { height: 100vw; } /* square on phones so the three stacked words fit (16:9 clipped "Engage.") */
  .reel__placeholder { flex-direction: column; gap: 0; }
  .reel__word { font-size: 17vw; line-height: .95; }
  .footer__logo { height: 104px; }
}
/* method on phones: fit the pinned frame below the header (content was ~616px and clipped on short screens) */
@media (max-width: 768px) {
  .method__pin { padding-top: var(--nav-h); box-sizing: border-box; }
  .method__inner { row-gap: 4vw; }
  .method__words { flex-direction: row; flex-wrap: wrap; column-gap: .25em; font-size: 9vw; }
  .method__word.is-active { transform: none; }
  .method__cards { min-height: 320px; } /* the Engage card needs ~300px with three tags */
  .method-card { gap: 12px; }
}

/* ---------- section handoffs: layered parallax (design.md §10.1) ---------- */
/* Every section is an opaque sheet; later sheets paint over earlier ones as they scroll in.
   Tapes (z-index 5) stay above all sheets. */
.hero, .work, .clients, .textbtn, .reel, .method, .stats, .services, .slider, .caps, .news, .footer { position: relative; z-index: 1; }
.textbtn, .reel, .services, .slider { background: var(--white); }
/* .margin sections: paint the white sheet edge to edge, not just inside the margins */
.clients, .caps, .news { border-image: conic-gradient(var(--white) 0 0) fill 0 / 0 / 0 100vw; }
.reel { margin-top: 0; padding-top: 4.8vw; } /* padding, not margin, so the sheet has no see-through gap */


/* ---------- Featured Work on yellow (design.md §7) ----------
   Golden yellow sheet; everything on it moves to navy / blue so it keeps contrast.
   grey-500 text fails on yellow (about 4:1), so secondary text uses blue-700 (about 6.6:1). */
.work { background: var(--yellow-400); color: var(--navy-900); }
.work ::selection { background: var(--navy-900); color: var(--yellow-400); }
.work :focus-visible { outline-color: var(--navy-900); }
.work .pill, .work .badge { background: var(--navy-900); color: var(--yellow-400); }
.work__legend, .work-block__tags, .work-block__title { color: var(--blue-700); }
.work-block__figure { color: var(--blue-600); }
.work__vline, .work-block__border i { background: rgba(10, 20, 59, .22); }
.work .btn--outline .btn__top { background: var(--yellow-400); color: var(--navy-900); box-shadow: inset 0 0 0 2px var(--navy-900); }
.work .btn--outline .btn__bottom { background: var(--navy-900); color: var(--yellow-400); }
