/* ════════════════════════════════════════════════════════════════
   THE CREATOR CLUB — Design system (v2)
   The original Creator Club look (DM Sans light + bold navy accents,
   tracked eyebrows, hairline grids, bento work grid, navy contact
   block, charcoal footer), rebuilt as a reusable multi-page system.
   1 Fonts · 2 Tokens · 3 Base · 4 Type · 5 Layout · 6 Controls
   7 Nav & menu · 8 Components · 9 Pages · 10 Motion · 11 Utilities
   ════════════════════════════════════════════════════════════════ */

/* 1 ─ FONT (self-hosted variable DM Sans) ─────────────────────── */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* 2 ─ TOKENS (original palette kept) ───────────────────────────── */
:root {
  --cream: #F5F2ED;
  --white: #FFFFFF;
  --charcoal: #1A1A1A;
  --blue-dark: #1B3A5C;
  --blue-mid: #4A7FA5;
  --blue-light: #C8DCEF;
  --blue-pale: #E8F0F7;
  --ink-muted: #555250;
  --rule: rgba(26, 26, 26, .1);
  --rule-inv: rgba(255, 255, 255, .14);
  --error: #B3261E;
  --error-inv: #F0A597;

  /* theme slots */
  --bg: var(--cream);
  --fg: var(--charcoal);
  --fg-2: var(--ink-muted);
  --line: var(--rule);
  --strong: var(--blue-dark);
  --eyebrow: var(--blue-mid);
  --cell: var(--cream);
  --cell-hover: var(--blue-pale);

  --f: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  /* type scale */
  --fs-hero: clamp(3rem, 8.5vw, 8.4rem);
  --fs-display: clamp(2.6rem, 6.6vw, 6.4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3.4rem);
  --fs-h3: clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 1.25vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .9rem;
  --fs-eyebrow: .7rem;

  /* space */
  --gutter: max(20px, 6vw);
  --sec: clamp(72px, 9vw, 120px);
  --gap: 12px;
  --max: 1760px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --t: .18s;
  --t-2: .4s;
  --t-3: .8s;

  /* layers */
  --z-nav: 100;
  --z-menu: 110;
  --z-dialog: 150;
  --z-progress: 200;

  --nav-h: 72px;
}

[data-theme="navy"] {
  --bg: var(--blue-dark);
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .62);
  --line: var(--rule-inv);
  --strong: var(--blue-light);
  --eyebrow: var(--blue-light);
  --cell: var(--blue-dark);
  --cell-hover: rgba(255, 255, 255, .06);
  --error: var(--error-inv);
}
[data-theme="white"] { --bg: var(--white); --cell: var(--white); }
[data-theme="charcoal"] {
  --bg: var(--charcoal);
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .45);
  --line: rgba(255, 255, 255, .1);
  --strong: var(--blue-light);
  --eyebrow: var(--blue-light);
}

/* 3 ─ BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--f);
  font-size: var(--fs-body);
  line-height: 1.7;
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
[data-theme] { background: var(--bg); color: var(--fg); }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--blue-light); color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; }
[data-theme="navy"] :focus-visible, [data-theme="charcoal"] :focus-visible { outline-color: var(--blue-light); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  background: var(--blue-dark); color: #fff; padding: 12px 18px;
  font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform var(--t-2) var(--ease);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4 ─ TYPE ─────────────────────────────────────────────────────── */
/* The signature: light headlines, bold navy accents */
.h-hero, .h-display, .h2, .h3 {
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--fg);
  text-wrap: balance;
}
.h-hero { font-size: var(--fs-hero); line-height: 1; }
.h-display { font-size: var(--fs-display); line-height: 1.02; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.015em; font-weight: 400; }
.h-hero strong, .h-display strong, .h2 strong, .h3 strong, .lead strong { font-weight: 600; color: var(--strong); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 16px;
}
.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 34rem;
  text-wrap: pretty;
}
.body { font-weight: 300; line-height: 1.8; color: var(--fg-2); max-width: 38rem; text-wrap: pretty; }
.body p + p { margin-top: 20px; }
.meta {
  font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
}
.count {
  font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

/* 5 ─ LAYOUT ───────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); border-bottom: 1px solid var(--line); }
.section--flush { border-bottom: 0; }
.section--tight { padding-block: calc(var(--sec) * .6); }

/* Original "section head": eyebrow + headline left, count/link right, rule below */
.head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px;
  flex-wrap: wrap;
  padding-bottom: 40px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.head--plain { border-bottom: 0; padding-bottom: 0; }
.head + .svc-list { border-top: 0; margin-top: -40px; }
.head > div { max-width: 52rem; }

/* 5/7 split with sticky left column (original About layout) */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); }
  .split > :first-child { position: sticky; top: calc(var(--nav-h) + 24px); }
  .split--static > :first-child { position: static; }
}

/* Hairline grid (the original stats / clients grid) */
.hairline {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hairline > * { background: var(--cell); }

/* 6 ─ CONTROLS ─────────────────────────────────────────────────── */
.arrow { display: inline-block; width: 1em; height: 1em; flex: none; transition: transform var(--t-2) var(--ease); }
.arrow--ne { transform: rotate(-45deg); }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 13px 28px;
  font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue-dark); color: #fff;
  transition: color var(--t-2) var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue-mid);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-2) var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .55; cursor: progress; }

.btn--outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px currentColor; }
.btn--outline::before { background: var(--fg); }
.btn--outline:hover, .btn--outline:focus-visible { color: var(--bg); }

[data-theme="navy"] .btn:not(.btn--outline) { background: #fff; color: var(--blue-dark); }
[data-theme="navy"] .btn:not(.btn--outline)::before { background: var(--blue-light); }
[data-theme="navy"] .btn--outline:hover { color: var(--blue-dark); }

.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--t-2) var(--ease), color var(--t);
}
.link:hover, .link:focus-visible { background-size: 0 1px; background-position: 100% 100%; color: var(--blue-mid); }
[data-theme="navy"] .link:hover { color: var(--blue-light); }
.link:hover .arrow { transform: translateX(4px); }
.link:hover .arrow--ne { transform: rotate(-45deg) translate(3px, 0); }

/* dot-separated tags (from the original marquee dots) */
.dots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.dots li {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
}
.dots li + li { position: relative; padding-left: 14px; }
.dots li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--blue-mid); }

.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } }

/* 7 ─ NAV & MENU ───────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; z-index: var(--z-progress);
  height: 3px; width: 100%;
  background: var(--blue-dark);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(245, 242, 237, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: transform var(--t-2) var(--ease), height var(--t-2) var(--ease);
}
.site-nav.is-hidden { transform: translateY(-100%); }
.site-nav.is-compact { --nav-h: 60px; }
.site-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { display: flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 46px; width: auto; max-width: 170px; object-fit: contain; transition: height var(--t-2) var(--ease); }
.is-compact .nav-logo img { height: 38px; }
.nav-logo .wordtext { display: none; font-size: .95rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.nav-logo .wordtext span { color: var(--blue-mid); }
.nav-logo.is-text img { display: none; }
.nav-logo.is-text .wordtext { display: inline; }

.nav-links { display: none; gap: 40px; }
.nav-links a {
  position: relative; display: inline-block; padding-block: 6px;
  font-size: .78rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); transition: color var(--t);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue-dark);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-2) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-cta.btn { min-height: 40px; padding: 10px 20px; font-size: .74rem; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 24px; height: 9px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--t-2) var(--ease), top var(--t-2) var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 7.5px; }
.menu-open .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--blue-dark); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
  overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.menu-open { overflow: hidden; }
.menu-open .site-nav { z-index: calc(var(--z-menu) + 1); background: var(--blue-dark); border-color: var(--rule-inv); color: #fff; }
.menu-open .nav-logo img { filter: brightness(0) invert(1); }
.menu__links { border-top: 1px solid var(--rule-inv); }
.menu__links li { border-bottom: 1px solid var(--rule-inv); overflow: hidden; }
.menu__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 14px;
  font-size: clamp(2.2rem, 11vw, 4.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05;
  transform: translateY(100%); transition: transform .8s var(--ease);
}
.menu__links a[aria-current="page"] { font-weight: 600; color: var(--blue-light); }
.menu__links .count { color: var(--blue-light); }
.menu-open .menu__links a { transform: none; }
.menu-open .menu__links li:nth-child(2) a { transition-delay: .06s; }
.menu-open .menu__links li:nth-child(3) a { transition-delay: .12s; }
.menu-open .menu__links li:nth-child(4) a { transition-delay: .18s; }
.menu-open .menu__links li:nth-child(1) a { transition-delay: 0s; }
.menu__foot { display: grid; gap: 22px; opacity: 0; transition: opacity .5s .35s; }
.menu-open .menu__foot { opacity: 1; }
.menu__socials { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.menu__socials a { display: inline-flex; min-height: 44px; align-items: center; font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }

/* 8 ─ COMPONENTS ───────────────────────────────────────────────── */

/* Word reveal (keeps <strong> accents) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }

/* Ticker bar (original services marquee) */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 16px; }
.ticker__track { display: flex; width: max-content; animation: ticker var(--dur, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 24px; padding-inline: 24px;
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
  white-space: nowrap;
}
.ticker__item::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--blue-mid); }
a.ticker__item:hover { color: var(--blue-dark); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Stats (original 2×2 hairline cells, bigger numbers) */
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 30px); transition: background var(--t-2); }
.stat:hover { background: var(--cell-hover); }
.stat__n {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: var(--strong); font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.stat__l { font-size: .78rem; font-weight: 400; letter-spacing: .02em; color: var(--fg-2); }
@media (min-width: 1100px) { .stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Services rows (original svc-row with the pale full-bleed hover) */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid; gap: 8px 40px; align-items: start;
  grid-template-columns: 1fr;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}
.svc-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--blue-pale); opacity: 0; transition: opacity var(--t);
}
.svc-row:hover::before, .svc-row:focus-visible::before { opacity: 1; }
[data-theme="navy"] .svc-row::before { background: rgba(255,255,255,.05); }
.svc-list, .svc-row { isolation: auto; }
.svc-list { position: relative; z-index: 0; }
.svc-row__num { display: none; }
.svc-row__name { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.svc-row__desc { font-size: .92rem; font-weight: 300; line-height: 1.7; color: var(--fg-2); max-width: 40rem; }
.svc-row__go { display: none; }
.svc-row .dots { margin-top: 14px; }
@media (min-width: 800px) {
  .svc-row { grid-template-columns: 80px 1fr 2fr 32px; }
  .svc-row__num { display: block; padding-top: 6px; }
  .svc-row__go { display: block; align-self: center; justify-self: end; font-size: 1.2rem; opacity: 0; transform: translateX(-8px); transition: opacity var(--t-2), transform var(--t-2) var(--ease); color: var(--blue-dark); }
  .svc-row:hover .svc-row__go { opacity: 1; transform: none; }
}


/* Media frame */
.media { position: relative; overflow: hidden; background: var(--blue-pale); }
[data-theme="navy"] .media { background: rgba(255,255,255,.06); }
.media img, .media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), opacity var(--t-2);
}
.media.is-broken img, .media.is-broken video { opacity: 0; }
.media.is-broken::after {
  content: attr(data-fallback); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 300; letter-spacing: -.02em; color: var(--blue-dark);
}

/* Bento work grid (the original 7/5 + 4/4/4 grid, generalised) */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; grid-column: span 12; background: var(--blue-pale); }
.tile .media { flex: 1 1 auto; }
.tile .media { aspect-ratio: 4 / 3; }
@media (min-width: 700px) {
  .tile.s-7, .tile.s-5, .tile.s-6 { grid-column: span 6; }
  .tile.s-4 { grid-column: span 6; }
  .tile.s-12 { grid-column: span 12; }
}
@media (min-width: 1000px) {
  .tile.s-7 { grid-column: span 7; }
  .tile.s-5 { grid-column: span 5; }
  .tile.s-4 { grid-column: span 4; }
  .tile.s-6 { grid-column: span 6; }
  .tile.s-7 .media, .tile.s-5 .media, .tile.s-6 .media { aspect-ratio: 16 / 10; }
  .tile.s-12 .media { aspect-ratio: 21 / 9; }
  .tile.s-5 .media { aspect-ratio: auto; min-height: 100%; }
}
.tile:hover .media img, .tile:focus-visible .media img { transform: scale(1.04); }
.tile__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 6px;
  padding: 48px 22px 20px;
  background: linear-gradient(to top, rgba(27, 58, 92, .9) 0%, rgba(27, 58, 92, .55) 45%, transparent 100%);
  color: #fff;
}
.tile__name { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
.tile__name strong { font-weight: 600; }
.tile__tag { font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }
.tile__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.tile__more .dots li { color: rgba(255,255,255,.72); }
.tile__more .dots li + li::before { background: var(--blue-light); }
.tile__cta { display: inline-flex; align-items: center; gap: 8px; font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
@media (hover: hover) and (min-width: 1000px) {
  .tile__info { background: linear-gradient(to top, rgba(27, 58, 92, .8) 0%, transparent 100%); padding-top: 64px; }
  .tile__more { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height var(--t-2) var(--ease), opacity var(--t-2), transform var(--t-2) var(--ease); }
  .tile:hover .tile__more, .tile:focus-visible .tile__more { max-height: 80px; opacity: 1; transform: none; }
  .tile:hover .tile__info, .tile:focus-visible .tile__info { background: linear-gradient(to top, rgba(27, 58, 92, .92) 0%, rgba(27,58,92,.4) 60%, transparent 100%); }
}
.tile[hidden] { display: none; }

/* Client cards (original logo grid) */
.clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .clients--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.client-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 44px 24px 28px; text-align: center;
  transition: background .3s var(--ease);
}
.client-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-io);
}
.client-card:hover { background: var(--blue-pale); }
.client-card:hover::after { transform: scaleX(1); }
.client-card__logo { height: 60px; width: 100%; display: flex; align-items: center; justify-content: center; }
.client-card__logo img { max-height: 62px; max-width: 136px; width: auto; height: auto; object-fit: contain; transition: transform .35s var(--ease); }
.client-card:hover .client-card__logo img { transform: translateY(-3px) scale(1.04); }
.client-card__logo.is-broken img { display: none; }
.client-card__logo.is-broken::after { content: attr(data-initials); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; color: var(--blue-mid); }
.client-card__name { font-size: .86rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.client-card__svc { font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-mid); margin-top: 4px; }
.client-card__case { position: absolute; top: 12px; right: 12px; font-size: .58rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); background: var(--blue-light); padding: 4px 8px; }
@media (hover: hover) and (min-width: 1000px) {
  .client-card__info { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
  .client-card:hover .client-card__info, .client-card:focus-visible .client-card__info { opacity: 1; transform: none; }
}

/* Process: hairline cells that light up as you scroll */
.steps { grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative; padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px) clamp(32px, 3.6vw, 48px);
  min-height: 260px; display: flex; flex-direction: column;
  transition: background .5s var(--ease);
}
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-io);
}
.step.is-active::before { transform: scaleX(1); }
.step.is-active { background: var(--cell-hover); }
.step__n { font-size: clamp(2.8rem, 4.6vw, 4.4rem); font-weight: 200; letter-spacing: -.05em; line-height: 1; color: var(--blue-mid); margin-bottom: auto; padding-bottom: 40px; font-variant-numeric: tabular-nums; }
.step.is-active .step__n { color: var(--strong); font-weight: 600; }
.step__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { font-size: .9rem; font-weight: 300; line-height: 1.7; color: var(--fg-2); }

/* Contact block (original navy section) */
.contact-block { padding-block: var(--sec); }
.contact-block__grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 900px) { .contact-block__grid { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 110px); } }
.cinfo { display: grid; gap: 22px; margin-top: 44px; }
.cinfo__row { display: grid; gap: 4px; }
.cinfo__label { font-size: .65rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.cinfo__val { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,.85); }
a.cinfo__val:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact-block__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-block__side { border-left: 1px solid var(--rule-inv); padding-left: clamp(0px, 4vw, 56px); }
@media (max-width: 899px) { .contact-block__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-inv); padding-top: 40px; } }
.big-mail {
  display: inline-block; font-size: clamp(1.35rem, 2.5vw, 2.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.15;
  color: #fff; overflow-wrap: anywhere;
  background: linear-gradient(var(--blue-light), var(--blue-light)) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-3) var(--ease);
}
.big-mail:hover { background-size: 100% 1px; }
.big-mail strong { font-weight: 600; color: var(--blue-light); }

/* Footer (charcoal, with the original two-tone wordmark scaled up) */
.site-footer { padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
.footer-grid h2 { font-size: .65rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 18px; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a, .footer-grid span { font-size: .9rem; font-weight: 300; color: rgba(255,255,255,.7); transition: color var(--t); display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.footer-grid a:hover { color: #fff; }
.footer-intro { grid-column: 1 / -1; }
.footer-intro p { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.25; color: #fff; max-width: 20ch; }
.footer-intro p strong { font-weight: 600; color: var(--blue-light); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; }
  .footer-intro { grid-column: auto; }
}
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: .04em;
}
.footer-base a:hover { color: rgba(255,255,255,.8); }
.footer-mark {
  display: block; width: max-content; margin: 0 auto;
  font-size: 9vw; font-weight: 300; letter-spacing: -.055em; line-height: .8;
  white-space: nowrap; color: rgba(255,255,255,.92);
  padding-bottom: .04em;
  transform: translateY(.14em);
}
.footer-mark strong { font-weight: 700; color: var(--blue-light); }

/* 9 ─ PAGES ────────────────────────────────────────────────────── */

/* HOME HERO (original: faint video behind, light/bold h1, ticker at the foot) */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(245,242,237,0) 55%, rgba(245,242,237,.55)); pointer-events: none; }
.hero__pause {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 20px); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--blue-dark); box-shadow: inset 0 0 0 1px rgba(27,58,92,.3);
  opacity: .55; transition: opacity var(--t), background var(--t), color var(--t);
}
.hero__pause:hover, .hero__pause:focus-visible { opacity: 1; background: var(--blue-dark); color: #fff; }
.hero__pause-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero__pause.is-paused .hero__pause-icon { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
.hero__inner { display: flex; flex-direction: column; justify-content: flex-end; padding-block: 80px 64px; }
.hero__tag { color: var(--blue-mid); margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero__tag span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--blue-mid); margin-right: 22px; vertical-align: middle; }
.hero .h-hero { max-width: 14ch; margin-bottom: 48px; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.type-cursor { display: inline-block; width: 3px; height: .82em; background: var(--blue-dark); margin-left: 6px; vertical-align: -.05em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 599px) { .hero__actions .btn { flex: 1 1 100%; } }

/* Big statement (manifesto twist) */
.statement { font-size: clamp(1.7rem, 3.2vw, 2.9rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.15; color: var(--fg); text-wrap: balance; }
.statement strong { font-weight: 600; color: var(--strong); }

/* Page intro */
.intro { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.intro .h-display { max-width: 16ch; }
.intro__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: 40px; }
.crumbs { font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--blue-dark); }
.crumbs span[aria-hidden] { color: var(--rule); color: rgba(26,26,26,.3); }

/* Filters (tab bar) */
.filters {
  position: sticky; top: var(--nav-h); z-index: 4;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  background: rgba(245,242,237,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 22px;
  font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
  border-right: 1px solid var(--rule);
  transition: color var(--t), background var(--t);
}
.filter:first-child { padding-left: 0; }
.filter sup { font-size: .62rem; color: var(--blue-mid); letter-spacing: 0; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-dark); transform: scaleX(0); transition: transform var(--t-2) var(--ease); }
.filter:first-child::after { left: 0; }
.filter:hover { color: var(--charcoal); }
.filter[aria-pressed="true"] { color: var(--blue-dark); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

/* Case study */
.case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
@media (min-width: 900px) { .case-meta { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.case-meta > div { padding: 22px 24px; }
.case-meta dt { font-size: .65rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 8px; }
.case-meta dd { font-size: .95rem; font-weight: 400; line-height: 1.5; }
.case-logo { display: grid; place-items: center; width: clamp(140px, 16vw, 200px); aspect-ratio: 1; background: var(--white); border: 1px solid var(--rule); margin-top: 40px; padding: 24px; }
.case-logo img { max-height: 100%; width: auto; object-fit: contain; }
.case-logo.is-broken { display: none; }
.case-block + .case-block { margin-top: 48px; }
.role-list { border-top: 1px solid var(--rule); margin-top: 8px; }
.role-list a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px; border-bottom: 1px solid var(--rule);
  font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em;
  transition: padding var(--t-2) var(--ease), color var(--t);
}
.role-list a:hover { padding-left: 12px; color: var(--blue-dark); }
.role-list a:hover .arrow { transform: translateX(4px); }

.gallery { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gallery__item { grid-column: 1 / -1; margin: 0; }
.gallery__item .media { aspect-ratio: var(--ar, 4 / 3); }
.gallery__item figcaption { margin-top: 10px; }
@media (min-width: 800px) {
  .gallery__item--full { grid-column: 1 / -1; --ar: 16 / 9; }
  .gallery__item--half { grid-column: span 6; }
  .gallery__item--wide-left { grid-column: span 7; --ar: 16 / 10; }
  .gallery__item--wide-right { grid-column: span 5; --ar: 8 / 7; }
  .gallery__item--portrait { grid-column: span 6; --ar: 4 / 5; }
  .gallery__item--vertical { grid-column: span 4; --ar: 9 / 16; }
}
.video-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 40px; padding: 0 14px;
  background: rgba(27, 58, 92, .85); color: #fff;
  font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.results { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.visit { display: flex; flex-wrap: wrap; gap: 12px; }

/* Next project (navy with faint image — the hero-video treatment) */
.next { position: relative; display: block; overflow: hidden; isolation: isolate; }
.next .media { position: absolute; inset: 0; z-index: -1; background: transparent; }
.next .media img { opacity: .2; transform: scale(1.05); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.next:hover .media img { opacity: .35; transform: scale(1); }
.next__inner { min-height: clamp(360px, 60vh, 640px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: var(--sec); }
.next__title { display: flex; align-items: center; flex-wrap: wrap; gap: .2em; }
.next__title .arrow { width: .6em; height: .6em; color: var(--blue-light); transition: transform .5s var(--ease); }
.next:hover .next__title .arrow { transform: translateX(.15em); }

/* Service detail */
.cap-rows { border-top: 1px solid var(--rule); }
.cap-rows li { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); font-size: 1.05rem; font-weight: 400; }
.cap-rows li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-mid); flex: none; }
.svc-cover .media { aspect-ratio: 21 / 9; }
@media (max-width: 699px) { .svc-cover .media { aspect-ratio: 4 / 3; } }

/* About: beliefs (no numbers; not a sequence) */
.beliefs { border-top: 1px solid var(--line); }
.belief { display: grid; gap: 8px 40px; padding-block: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .belief { grid-template-columns: 1fr 1fr; align-items: baseline; } }
.belief h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; }
.belief h3 strong { font-weight: 600; color: var(--blue-dark); }
.belief p { font-size: .95rem; font-weight: 300; color: var(--ink-muted); max-width: 32rem; }

/* Contact form (original boxed fields on navy) */
.form { display: grid; gap: 18px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.field .opt { font-weight: 300; text-transform: none; letter-spacing: 0; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: #fff;
  padding: 14px 16px; font-size: .95rem; font-weight: 300;
  transition: border-color var(--t), background var(--t);
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C8DCEF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { background: var(--blue-dark); color: #fff; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-light); background: rgba(255,255,255,.09); }
.field [aria-invalid="true"] { border-color: var(--error-inv); }
.field-error { min-height: 16px; font-size: .74rem; color: var(--error-inv); }
.form__foot { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 6px; }
.form__status { font-size: .85rem; color: var(--error-inv); text-align: center; }
.form__status:empty { display: none; }
.form__status a { color: #fff; text-decoration: underline; }
.form-success { background: rgba(255,255,255,.06); border: 1px solid rgba(200,220,239,.3); padding: 52px 40px; text-align: center; }
.form-success__icon { width: 52px; height: 52px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue-dark); font-weight: 700; font-size: 1.3rem; }
.form-success h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.form-success p { font-size: .95rem; font-weight: 300; color: rgba(255,255,255,.65); }

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding-block: 120px; }
.notfound .h-hero { font-size: clamp(6rem, 22vw, 20rem); }

/* 10 ─ MOTION ──────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-in > *:nth-child(2) { transition-delay: .06s; }
.js [data-stagger].is-in > *:nth-child(3) { transition-delay: .12s; }
.js [data-stagger].is-in > *:nth-child(4) { transition-delay: .18s; }
.js [data-stagger].is-in > *:nth-child(5) { transition-delay: .24s; }
.js [data-stagger].is-in > *:nth-child(6) { transition-delay: .3s; }
.js [data-stagger].is-in > *:nth-child(n+7) { transition-delay: .36s; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w > span, .js [data-stagger] > * { opacity: 1; transform: none; }
  .ticker__track, .logo-ticker__track { animation: none; }
  .ticker, .logo-ticker { overflow-x: auto; }
  .type-cursor { display: none; }
  @view-transition { navigation: none; }
}

/* 11 ─ UTILITIES ──────────────────────────────────────────────── */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }
.text-2 { color: var(--fg-2); }

/* refinements */
.client-card__info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
@media (max-width: 599px) {
  .hero__tag { flex-direction: column; gap: 4px; }
  .hero__tag span + span::before { display: none; }
}

/* dynamic client page: loading state */
.skeleton { display: inline-block; width: min(70%, 12ch); height: .9em; background: linear-gradient(90deg, var(--blue-pale), #fff, var(--blue-pale)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
.client-loading { min-height: 70vh; border-bottom: 0; }

/* ── data-driven placeholders ── */
[data-render][aria-busy="true"] { min-height: 160px; }
[data-render="services-rows"][aria-busy="true"], [data-render="featured-work"][aria-busy="true"], [data-render="clients-grid"][aria-busy="true"] { min-height: 420px; }
[data-render][data-failed]::after { content: "This section couldn’t load. Please refresh the page."; display: block; padding: 24px 0; font-size: .9rem; color: var(--fg-2); }

/* ── auto-laid-out client gallery ── */
.gallery__item { grid-column: span var(--mspan, 12); }
.gallery__item .media { aspect-ratio: var(--ar, 4 / 3); }
@media (min-width: 800px) {
  .gallery__item { grid-column: var(--start, auto) / span var(--span, 12); }
}
.gallery__open { display: block; width: 100%; padding: 0; text-align: left; cursor: zoom-in; }
.gallery__open:hover .media img { transform: scale(1.03); }

/* ── lightbox ── */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; padding: 0; background: rgba(15, 30, 48, .97); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: rgba(15, 30, 48, .97); }
@keyframes fade { from { opacity: 0; } }
.lightbox__close {
  justify-self: end; margin: 16px var(--gutter) 0; min-height: 44px; padding: 0 18px;
  font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.lightbox__close:hover { background: #fff; color: var(--blue-dark); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 16px var(--gutter); margin: 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 12px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.lightbox__nav { width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.lightbox__nav:hover { background: #fff; color: var(--blue-dark); }
.lightbox__count { font-size: .72rem; font-weight: 500; letter-spacing: .14em; color: var(--blue-light); font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════════
   WORK & CASE STUDIES (v4) — editorial portfolio system
   ════════════════════════════════════════════════════════════════ */

/* ── Homepage logos: original colours, floating, two slow rows ── */
.logo-ticker { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px); display: grid; gap: clamp(18px, 2.5vw, 30px); }
.logo-ticker::before, .logo-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8vw; z-index: 2; pointer-events: none; }
.logo-ticker::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.logo-ticker::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.logo-ticker__track { display: flex; align-items: center; width: max-content; animation: ticker var(--dur, 90s) linear infinite; }
.logo-ticker__track--reverse { animation-direction: reverse; }
.logo-ticker:hover .logo-ticker__track { animation-play-state: paused; }
.logo-ticker__item { flex: none; padding-inline: clamp(26px, 3.4vw, 52px); }
.logo-ticker__item a { position: relative; display: grid; place-items: center; height: 96px; }
.logo-ticker__item img { display: block; max-width: 184px; max-height: 80px; width: auto; height: auto; object-fit: contain; transition: transform .45s var(--ease); }
.logo-ticker__item img:not(.is-fit) { max-height: 60px; }
.logo-ticker__name {
  position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 4px); white-space: nowrap;
  font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-mid);
  opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.logo-ticker__item a:hover img, .logo-ticker__item a:focus-visible img { transform: translateY(-6px) scale(1.04); }
.logo-ticker__item a:hover .logo-ticker__name, .logo-ticker__item a:focus-visible .logo-ticker__name { opacity: 1; transform: translate(-50%, 0); }
.logo-ticker__item.is-broken, .logo-ticker__item[hidden] { display: none; }

/* ── Editorial filters (Work page + gallery) ── */
.filters { position: sticky; top: var(--nav-h); z-index: 4; margin-bottom: clamp(40px, 6vw, 80px); background: rgba(245,242,237,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.work-filters { display: flex; gap: 6px clamp(20px, 3vw, 40px); white-space: nowrap; padding-block: 18px; }
.work-filters--small { flex-wrap: wrap; white-space: normal; padding: 0; gap: 6px 28px; }
.work-filter {
  position: relative; display: inline-flex; align-items: flex-start; gap: 4px; min-height: 36px; padding: 6px 0;
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(26,26,26,.42);
  transition: color var(--t);
}
.work-filter sup { font-size: .58rem; letter-spacing: .04em; color: inherit; opacity: .8; }
.work-filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--blue-dark); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.work-filter:hover { color: var(--charcoal); }
.work-filter[aria-pressed="true"] { color: var(--blue-dark); }
.work-filter[aria-pressed="true"]::after { transform: scaleX(1); }
[data-showcase], [data-more], .gallery { transition: opacity .28s var(--ease), transform .28s var(--ease); }
.is-switching { opacity: 0 !important; transform: translateY(10px); }

/* ── Work grid ── */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); row-gap: clamp(56px, 8vw, 140px); }
.work-item { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 800px) {
  .work-item { grid-column: var(--start) / span var(--span); }
  .work-item--offset { margin-top: clamp(60px, 10vw, 180px); }
}
.work-item__link { display: block; color: inherit; }
.work-item__media { position: relative; aspect-ratio: var(--ar, 1.5); overflow: hidden; background: var(--blue-pale); }
.work-item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.work-item__alt { opacity: 0; }
.work-item__media::after { content: ""; position: absolute; inset: 0; background: rgba(18, 36, 58, 0); transition: background .6s var(--ease); pointer-events: none; }
.work-item__view {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--cream); color: var(--blue-dark);
  font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.work-item__info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; padding-top: 22px; }
.work-item__num { grid-row: span 2; font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: var(--blue-mid); font-variant-numeric: tabular-nums; padding-top: .5em; }
.work-item__name { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; transition: transform .6s var(--ease); }
.work-item__name strong { font-weight: 600; color: var(--blue-dark); }
.work-item--xl .work-item__name { font-size: clamp(1.9rem, 4vw, 4.2rem); }
.work-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.work-item__industry { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); }
.work-item__cta { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding-bottom: 3px; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.work-item__cta .arrow, .work-item__view .arrow { transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .work-item__link:hover .work-item__img { transform: scale(1.035); }
  .work-item__link:hover .work-item__alt { opacity: 1; transform: scale(1.035); }
  .work-item__link:hover .work-item__media::after { background: rgba(18, 36, 58, .1); }
  .work-item__link:hover .work-item__view { opacity: 1; transform: none; }
  .work-item__link:hover .work-item__name { transform: translateX(6px); }
  .work-item__link:hover .work-item__cta { background-size: 100% 1px; }
  .work-item__link:hover .arrow { transform: translateX(5px); }
}
.work-item__link:focus-visible { outline-offset: 6px; }
.work-item__link:focus-visible .work-item__view { opacity: 1; transform: none; }

/* portrait/square projects: image + large text side by side */
@media (min-width: 800px) {
  .work-item--side .work-item__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); align-items: center; }
  .work-item--side .work-item__media { grid-column: 1 / span 5; grid-row: 1; }
  .work-item--side .work-item__info { grid-column: 7 / span 6; grid-row: 1; padding-top: 0; }
  .work-item--left .work-item__media { grid-column: 8 / span 5; }
  .work-item--left .work-item__info { grid-column: 1 / span 6; }
  .work-item--side .work-item__name { font-size: clamp(2.2rem, 4.6vw, 4.8rem); }
}

/* ── Case study opening ── */
.case-hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 100px)); }
.case-title { font-size: clamp(2.8rem, 9vw, 9rem); font-weight: 300; letter-spacing: -.045em; line-height: .95; text-wrap: balance; overflow-wrap: anywhere; }
.case-title strong { font-weight: 600; color: var(--strong); }
.case-hero__row { display: grid; gap: 32px; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .case-hero__row { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.case-lead { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 300; line-height: 1.45; letter-spacing: -.015em; max-width: 30ch; color: var(--charcoal); text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; border-top: 1px solid var(--rule); padding-top: 22px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.facts dt { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 10px; }
.facts dd { font-size: clamp(1rem, 1.2vw, 1.12rem); font-weight: 400; line-height: 1.55; }
.facts dd a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }

.case-cover--wide { width: min(92vw, 1760px); margin-inline: auto; }
.case-cover__frame { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: var(--blue-pale); cursor: zoom-in; aspect-ratio: var(--ar, 1.8); max-height: 88vh; max-height: 88svh; }
.case-cover--wide .case-cover__frame { width: 100%; }
.case-cover__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform: translate3d(0, var(--py, 0), 0) scale(1.06); }
@media (max-width: 699px) { .case-cover--wide { width: 100%; } .case-cover--wide .case-cover__frame { aspect-ratio: var(--ar-m, 4 / 3.4); max-height: 70svh; } }

.case-hero--split { padding-bottom: clamp(24px, 4vw, 48px); }
.case-hero__grid { display: grid; gap: 40px; }
.case-hero--split .case-cover__frame { aspect-ratio: var(--ar, .8); max-height: 86svh; width: 100%; }
@media (min-width: 900px) {
  .case-hero__grid { grid-template-columns: 6fr 6fr; gap: clamp(40px, 5vw, 96px); align-items: end; }
  .case-hero--split .case-hero__text { display: grid; gap: 36px; padding-bottom: 12px; }
  .case-hero--split .case-title { font-size: clamp(2.8rem, 7vw, 7.4rem); }
  .case-hero--split .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) { .case-hero--split .case-hero__text { display: grid; gap: 28px; } }

/* reveal for the cover */
.js .case-cover[data-reveal-now] .case-cover__frame { clip-path: inset(12% 6% 0 6%); transition: clip-path 1.5s var(--ease); }
.js .case-cover[data-reveal-now] .case-cover__frame img { transition: transform 1.8s var(--ease); transform: translate3d(0, var(--py, 0), 0) scale(1.16); }
.js .case-cover.is-in .case-cover__frame { clip-path: inset(0 0 0 0); }
.js .case-cover.is-in .case-cover__frame img { transform: translate3d(0, var(--py, 0), 0) scale(1.06); transition: transform 1.8s var(--ease), translate 0s; }

.case-story { border-top: 0; }
.case-logo { display: block; width: auto; aspect-ratio: auto; margin-top: 40px; padding: 0; background: none; border: 0; }
.case-logo img { width: auto; height: auto; max-width: 180px; max-height: 90px; object-fit: contain; }
.body--lg { font-size: clamp(1.02rem, 1.2vw, 1.15rem); max-width: 40rem; }
.visit { display: flex; flex-wrap: wrap; gap: 14px 32px; }

/* ── Editorial gallery ── */
.case-gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(10px, 1.6vw, 24px); row-gap: clamp(10px, 1.6vw, 24px); align-items: start; }
.gallery__item { grid-column: span var(--mspan, 12); margin: 0; min-width: 0; }
.gallery__item .media { aspect-ratio: var(--ar, 1.5); }
.gallery__item .media img { object-position: var(--pos, center); }
.gallery__item figcaption { margin-top: 10px; }
.gallery__item--full, .gallery__item--wide { margin-block: clamp(10px, 3vw, 48px); }
@media (min-width: 800px) {
  .gallery { row-gap: clamp(24px, 3vw, 56px); }
  .gallery__item { grid-column: var(--start, auto) / span var(--span, 12); }
  .gallery__item.is-offset { margin-top: clamp(48px, 9vw, 160px); }
  .gallery__item.is-support { align-self: end; }
  .gallery__item--reels { margin-block: clamp(16px, 3vw, 48px); }
}
.gallery__open { display: block; width: 100%; padding: 0; text-align: left; cursor: zoom-in; }
.gallery__open .media img { transition: transform 1.1s var(--ease); }
@media (hover: hover) { .gallery__open:hover .media img { transform: scale(1.025); } }
.js .gallery__item[data-reveal] { transform: translateY(40px); }
.js .gallery__item[data-reveal].is-in { transform: none; }

@media (max-width: 799px) { .gallery__item--reels.is-solo { width: 68%; justify-self: center; } }
/* videos: poster/first frame + play button, click to play */
.media--video { background: var(--charcoal); }
.media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--video.is-playing video { object-fit: contain; background: #000; }
.video-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%;
  background: linear-gradient(to top, rgba(18,36,58,.35), rgba(18,36,58,0) 50%);
}
.video-play span { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,242,237,.92); transition: transform .4s var(--ease); }
.video-play span::before { content: ""; border-left: 15px solid var(--blue-dark); border-block: 9px solid transparent; margin-left: 4px; }
.video-play:hover span { transform: scale(1.08); }
.media--video.is-playing .video-play { display: none; }

/* ── Next project ── */
.next-project { border-top: 1px solid var(--rule); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.next-project__link { display: block; color: inherit; }
.next-project__head { display: grid; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.next-project__title { display: flex; align-items: center; flex-wrap: wrap; gap: .2em; font-size: clamp(2.6rem, 8vw, 8rem); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.next-project__title strong { font-weight: 600; color: var(--blue-dark); }
.next-project__title .arrow { width: .55em; height: .55em; color: var(--blue-mid); transition: transform .6s var(--ease); }
.next-project__media { position: relative; height: clamp(320px, 62vh, 760px); overflow: hidden; clip-path: inset(0 var(--gutter) 0 var(--gutter)); transition: clip-path 1s var(--ease); background: var(--blue-pale); }
.next-project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform: scale(1.08); transition: transform 1.4s var(--ease); }
@media (hover: hover) {
  .next-project__link:hover .next-project__media { clip-path: inset(0 0 0 0); }
  .next-project__link:hover .next-project__media img { transform: scale(1); }
  .next-project__link:hover .next-project__title .arrow { transform: translateX(.18em); }
}
@media (max-width: 699px) { .next-project__media { height: 52vh; clip-path: none; } }
.case-related { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .case-cover[data-reveal-now] .case-cover__frame { clip-path: none; }
  .case-cover__frame img, .js .case-cover[data-reveal-now] .case-cover__frame img { transform: none !important; }
  .logo-ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-ticker__item:has(> a[aria-hidden="true"]) { display: none; }
}
