/* The Social Formula — homepage prototype (direction B: editorial, results first)
   Colour rule: the pink accent is a SURFACE colour and always carries ink text, never white (3.21:1 fails).
   Pink as TEXT on white/cream uses --accent-ink; plain --accent only for display-size glyphs.
   Logo pink/cyan are decoration only.
   Motion sources: hero strip = blue2purple (vertical photo marquee); line reveal, italic hover, scroll bands,
   pinned title with passing cards = The Romans element videos; 360 table = own concept (logo molecule → periodic table). */

:root {
  --ink: #111111;
  --ink-soft: #4a4642;      /* 8.9:1 on white */
  --paper: #ffffff;
  --paper-soft: #e9e4df;    /* body text on ink */
  --cream: #fff6ef;
  --line: #e7dfd8;
  --accent: #ff00f2;        /* surface (ink text 5.88:1) and text on ink (5.88:1); display glyphs on white (3.21:1) */
  --accent-ink: #c000b6;    /* accent text/links on white or cream (5.36:1) */
  --dot-pink: #e87fff;
  --dot-cyan: #83f7fe;

  --font: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1920px;   /* the site grows with the screen up to 1920px, then stops; header included (user's choice, 2026-10-29) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.float :focus-visible { outline-color: var(--accent); }

/* ---------- type ---------- */
.display {
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
}
.section-title { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow--light { color: #cfc8c2; }

.mark {
  background: var(--accent);
  color: var(--ink);
  padding: 0 .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.link {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 2px;
}
.link:hover { color: var(--ink); }

/* ---------- reveal (The Romans intro: words rise out of a mask, staggered) ---------- */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .06em; margin: -.04em -.02em -.06em; }
.in { display: inline-block; }
.js .in { transform: translateY(110%); transition: transform .9s var(--ease-out) var(--d, 0s); }
.js .is-in .in { transform: none; }

/* ---------- buttons (blue2purple hover: diagonal wipe with a thin paper stripe) ---------- */
.btn {
  --wipe: var(--accent);
  --wipe-text: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: color .35s cubic-bezier(.625, .05, 0, 1);
}
.btn::before {
  content: "";
  position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(135deg, transparent 0 41%, var(--paper) 41% 45%, var(--wipe) 45% 100%);
  background-size: 300% 300%;
  background-position: 0 0;
  transition: background-position .6s cubic-bezier(.625, .05, 0, 1);
}
.btn:hover::before, .btn:focus-visible::before { background-position: 100% 100%; }
.btn:hover, .btn:focus-visible { color: var(--wipe-text); }
.btn span { transition: transform .4s cubic-bezier(.625, .05, 0, 1); }
.btn:hover span { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--ink); --wipe: var(--ink); --wipe-text: var(--paper); }
.btn--square { min-height: 56px; padding: 14px 26px; font-size: 1.125rem; }

/* ---------- masthead: topbar + header sit over the top of the hero and scroll away with the page ---------- */
.masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.topbar { background: var(--ink); color: var(--paper); font-size: .9375rem; text-align: center; padding: 8px var(--gutter); }
.topbar p { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 .6em; }
.topbar a { color: var(--paper); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.topbar a:hover { color: var(--accent); }

.header { position: relative; background: transparent; transition: background-color .3s; }
.masthead.is-open .header { background: var(--paper); }
.header__inner { display: flex; align-items: center; gap: 24px; max-width: var(--max); min-height: 84px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 28px); }
.header__logo { display: flex; align-items: center; padding-right: 28px; border-right: 1px solid var(--line); }
.header__logo img { width: 150px; height: auto; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 1.0625rem; color: var(--ink-soft); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: #f0f0f0; color: var(--ink); }
.nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__link--drop:hover { text-decoration: none; }
.nav__chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.nav__link[aria-expanded="true"] .nav__chev { transform: translateY(1px) rotate(-135deg); }
.header__cta { flex: none; }
.header__toggle { display: none; }

/* mega panels */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  /* full-width white panel, cards within the same 1920px frame as the header */
  --pad: max(clamp(16px, 2vw, 28px), calc((100% - var(--max)) / 2 + clamp(16px, 2vw, 28px)));
  background: var(--paper); padding: 8px var(--pad) 40px;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
}
.nav__link[aria-expanded="true"] + .mega { visibility: visible; opacity: 1; transition: opacity .25s; }
/* every panel fills the full width with one column per card (--n); all cards are as tall as a 4:5 card
   in a 7-column row, so Services (7) and About (3, wider) have the same height */
.mega__grid { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 12px; container-type: inline-size; }
.mega__card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  height: calc((100cqw - 72px) / 7 * 1.25); padding: 18px; background: #f3f3f3; transition: background-color .2s ease; text-decoration: none; color: var(--ink);
}
.mega__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; transition: opacity .45s ease, transform .8s var(--ease-out); }
.mega__card:hover, .mega__card:focus-visible { background-color: #e6e6e6; }
/* cards are plain grey; the flamingo appears only on hover / focus */
.mega__mascot { opacity: 0; transform: scale(.94); }
.mega__card:hover .mega__mascot, .mega__card:focus-visible .mega__mascot { opacity: 1; transform: none; }
/* wide cards (About): the mascot's opaque band fills 72% of the card height, its bottom 14px above the card edge, right-aligned */
.mega__grid--wide .mega__card { --h: calc((100cqw - 72px) / 7 * 1.25); }
.mega__grid--wide .mega__card .mega__mascot {
  inset: auto 2% auto auto; width: auto; max-width: none;
  height: calc(var(--h) * .72 / (var(--b) - var(--t)));
  bottom: calc(14px - (1 - var(--b)) * var(--h) * .72 / (var(--b) - var(--t)));
  transform-origin: 50% 100%;
}
.mega__title { position: relative; font-size: clamp(1.05rem, 1.95vw, 2.1rem); line-height: .92; }
.mega__card:hover .mega__title, .mega__card:focus-visible .mega__title { background: var(--accent); box-shadow: 0 0 0 4px var(--accent); }
/* cards come in one after another */
.mega__grid li { opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .6s var(--ease-out); }
.nav__link[aria-expanded="true"] + .mega li { opacity: 1; transform: none; }
.nav__link[aria-expanded="true"] + .mega li:nth-child(2) { transition-delay: .05s; }
.nav__link[aria-expanded="true"] + .mega li:nth-child(3) { transition-delay: .1s; }
.nav__link[aria-expanded="true"] + .mega li:nth-child(4) { transition-delay: .15s; }
.nav__link[aria-expanded="true"] + .mega li:nth-child(5) { transition-delay: .2s; }
.nav__link[aria-expanded="true"] + .mega li:nth-child(6) { transition-delay: .25s; }
.nav__link[aria-expanded="true"] + .mega li:nth-child(7) { transition-delay: .3s; }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(17, 17, 17, .32); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.scrim.is-on { opacity: 1; visibility: visible; transition: opacity .3s; }

/* ---------- hero (blue2purple, measured: full-screen section under the transparent masthead,
   headline centred at ~80% of the width, photo column 11.6vw wide tilted 7deg, lead + 61px rule + CTA
   bottom-left at the 2vw gutter) ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--mast-h, 0px);
}
.hero__inner {
  position: relative; z-index: 2; flex: 1; width: 100%; max-width: none;
  display: grid; grid-template-rows: 1fr auto; padding: 0 2vw 32px;
}
.hero__title {
  align-self: center; justify-self: center; width: fit-content; max-width: 100%;
  margin: clamp(16px, 3vh, 48px) 0;
  font-size: var(--hero-fs, 15vw); font-stretch: var(--hero-wdth, 78%);
  line-height: .86; letter-spacing: -.02em;
}
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; white-space: nowrap; }
.hero__row--2 { margin-top: .03em; }

.hero__strip {
  position: absolute; z-index: 1;
  top: -20%; height: 140%;
  left: var(--strip-x, 66%);
  width: var(--strip-w, 11.6vw);
  transform: rotate(7deg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
}
.hero__track { display: flex; flex-direction: column; gap: 10px; animation: strip 48s linear infinite; }
.hero__track img { width: 100%; aspect-ratio: 167 / 228; object-fit: cover; }
@keyframes strip { to { transform: translateY(calc(-50% - 5px)); } }
.js .hero__strip { opacity: 0; translate: 0 80px; transition: opacity 1s ease .55s, translate 1.4s var(--ease-out) .55s; }
.js .hero.is-in .hero__strip { opacity: 1; translate: 0 0; }

.hero__foot { display: grid; justify-items: start; }
.hero__lead { max-width: 622px; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.35; color: var(--ink-soft); }
.hero__rule { width: 61px; height: 1px; margin: 24px 0; background: var(--ink); opacity: .25; }
.js .hero__foot { opacity: 0; translate: 0 16px; transition: opacity .8s ease .7s, translate .8s var(--ease-out) .7s; }
.js .hero.is-in .hero__foot { opacity: 1; translate: 0 0; }

/* ---------- CTA band (blue2purple: square-dot pattern fading down, words lit by scroll, cursor glow) ---------- */
.cta { position: relative; overflow: hidden; background: var(--accent); color: var(--ink); padding: clamp(96px, 12vw, 180px) 0; }
.cta__dots, .cta__glow { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Crect width='3' height='3' fill='%23fff'/%3E%3C/svg%3E"); background-size: 7px 7px; pointer-events: none; }
.cta__dots { opacity: .32; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.cta__glow {
  opacity: 0; transition: opacity .4s;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
          mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
}
.cta:hover .cta__glow { opacity: .6; }
.cta__inner { position: relative; display: grid; justify-items: center; gap: clamp(28px, 3.5vw, 48px); text-align: center; }
.cta__title { font-size: clamp(2.8rem, 6.8vw, 6.6rem); line-height: .98; max-width: 19ch; }
.cta__title .w { display: inline-block; opacity: var(--o, 1); transition: opacity .15s linear; }
.cta .btn--ink { --wipe: var(--paper); }

/* ---------- services (blue2purple directional list, measured at 1440px:
   170px rows, columns 52% / auto / 26%, 29px inline padding, 1px top rules at 10%,
   per-row tile slides in from the side the pointer entered, 0.5s cubic-bezier(.16,1,.3,1),
   visual rotated 10deg with two columns of 145x214 images scrolling) ---------- */
.services { padding: clamp(64px, 7vw, 110px) 0; }
.svc__item { --tone: var(--accent); --tone-text: var(--ink); position: relative; }
.svc__item[data-tone="cyan"]   { --tone: var(--dot-cyan); }
.svc__item[data-tone="violet"] { --tone: var(--dot-pink); }
.svc__item[data-tone="ink"]    { --tone: var(--ink); --tone-text: var(--paper); }
.svc__item::before, .svc__item:last-child::after {
  content: ""; position: absolute; z-index: 2; left: 2vw; right: 2vw; height: 1px;
  background: currentColor; opacity: .1; transition: opacity .3s;
}
.svc__item::before { top: 0; }
.svc__item:last-child::after { bottom: 0; }
.svc__link {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 52% minmax(0, 1fr) 26%; align-items: center; gap: 12px;
  height: clamp(120px, 11.8vw, 190px); padding: 0 2vw;
  color: var(--ink); text-decoration: none;
  transition: color .3s;
}
.svc__tile {
  position: absolute; inset: 0; z-index: -1; background: var(--tone);
  transform: translateY(-101%);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.svc__title { display: flex; align-items: flex-start; gap: clamp(8px, .85vw, 14px); min-width: 0; }
.svc__num {
  font-size: clamp(1.1rem, 1.95vw, 1.9rem); line-height: 1.35; letter-spacing: -.02em;
  font-variant-numeric: slashed-zero tabular-nums; opacity: .6; transition: opacity .3s;
}
.svc__name { font-size: clamp(2.4rem, 4.85vw, 4.7rem); font-stretch: 70%; line-height: 1.13; letter-spacing: -.01em; white-space: nowrap; }
.svc__desc { justify-self: end; max-width: 21.5vw; text-align: right; font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.35; letter-spacing: -.03em; opacity: .6; transition: opacity .3s; }

/* tilted two-column marquee; fades in on hover (b2p: 448x241 box rotated 10deg, clipped by the row) */
.svc__visual { position: relative; align-self: stretch; opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc__marq {
  position: absolute; left: 50%; top: 50%; display: flex; justify-content: center; gap: 8px;
  width: min(31.1vw, 448px); height: min(16.7vw, 241px);
  transform: translate(-50%, -50%) rotate(10deg);
}
.svc__col { flex: none; width: min(10.07vw, 145px); display: grid; gap: 8px; height: max-content; animation: svc-roll 14s linear infinite; animation-play-state: paused; }
.svc__col--b { animation-delay: -7s; margin-top: 70px; }
.svc__col img { width: 100%; aspect-ratio: 145 / 214; object-fit: cover; }
@keyframes svc-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.svc__item.is-on .svc__link,
html:not(.js) .svc__link:hover { color: var(--tone-text); }
.svc__item.is-on .svc__tile,
html:not(.js) .svc__link:hover .svc__tile { transform: none; }
.svc__item.is-on .svc__num, .svc__item.is-on .svc__desc { opacity: 1; }
.svc__item.is-on .svc__visual,
html:not(.js) .svc__link:hover .svc__visual { opacity: 1; }
.svc__item.is-on .svc__col { animation-play-state: running; }
.svc__item.is-on::before, .svc__item.is-on + .svc__item::before { opacity: 0; }
.svc__link:focus-visible { outline-offset: -6px; }

/* ---------- philosophy bands (scroll-linked) ---------- */
.bands { background: var(--ink); color: var(--paper); padding: clamp(20px, 3vw, 40px) 0; overflow: hidden; }
.bands__row {
  white-space: nowrap; font-weight: 800; font-stretch: 68%; text-transform: uppercase;
  font-size: clamp(3.2rem, 10vw, 10rem); line-height: .95; will-change: transform;
}
.bands__row span { display: inline-block; }
.bands__row--alt { color: var(--accent); font-style: italic; }   /* 5.88:1 on ink */

/* ---------- work: pinned title, cards fly past ---------- */
.float { position: relative; height: 320vh; background: var(--ink); color: var(--paper); }
.float__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.float__center { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 24px; max-width: 980px; padding: 0 var(--gutter); }
.float__title { font-size: clamp(3.2rem, 10vw, 10rem); }
.float__center p { max-width: 52ch; color: var(--paper-soft); font-size: 1.125rem; }
.float__cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fcard {
  pointer-events: auto; position: absolute; left: var(--x); top: 100%;
  width: clamp(220px, 23vw, 340px);
  display: grid; gap: 10px; padding: 10px 10px 16px;
  background: var(--ink); text-decoration: none; color: var(--paper);
  transform: translate3d(0, var(--ty, 0px), 0); will-change: transform;
}
.fcard img, .fcard__type { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.fcard__type { display: grid; place-items: center; background: var(--accent); color: var(--ink); font-size: clamp(2.6rem, 4.6vw, 4.4rem); text-align: center; }
.fcard__tag { justify-self: start; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; }
.fcard__title { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 1.25rem; line-height: 1.05; }
.fcard:hover .fcard__title { font-style: italic; }

/* ---------- clients (blue2purple partners section: 3-line title, ruled intro, CTA right;
   219px square tiles, 16px gaps, 1px light border, rows drifting left ~80px/s) ---------- */
.logos { padding: clamp(64px, 8vw, 120px) 0; overflow: hidden; }
.logos__head {
  max-width: var(--max); margin: 0 auto clamp(40px, 4.5vw, 64px); padding: 0 2vw;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 32px;
}
.logos__title { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .92; max-width: 12ch; }
.logos__intro { max-width: 36ch; padding-left: 20px; border-left: 1px solid rgba(17, 17, 17, .25); color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.35; }
.logos__rows { display: grid; gap: 16px; }
.logos__row { display: flex; gap: 16px; width: max-content; animation: logos-drift 90s linear infinite; }
.logos__row:nth-child(2) { margin-left: -120px; animation-duration: 110s; }
.logos__track { display: flex; gap: 16px; }
.logo-tile {
  flex: none; width: clamp(140px, 15.2vw, 219px); aspect-ratio: 1;
  display: grid; place-items: center; background: var(--paper); border: 1px solid rgba(17, 17, 17, .12);
}
.logo-tile img { width: var(--w, 60%); height: auto; max-height: 50%; object-fit: contain; mix-blend-mode: multiply; }
.logo-tile--dark { background: var(--ink); border-color: var(--ink); }
.logo-tile--dark img { mix-blend-mode: normal; }
@keyframes logos-drift { to { transform: translateX(-50%); } }

/* ---------- proof ---------- */
.proof { padding: clamp(56px, 7vw, 110px) 0; }
.proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.proof__item { padding: 28px 24px 0 0; display: grid; gap: 14px; align-content: start; }
.proof__item + .proof__item { border-left: 1px solid var(--line); padding-left: 24px; }
.proof__item dt { font-size: clamp(3.2rem, 7vw, 6.5rem); }
.proof__item:nth-child(2) dt { color: var(--accent-ink); }
.proof__item dd { color: var(--ink-soft); max-width: 30ch; }

/* ---------- 360 formula: periodic table of the formula. Groups use the brand palette
   (content = pink, media = logo cyan, tech = logo violet); every tile flips to the mascot at work ---------- */
.table { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 140px) 0; }
.table__inner { max-width: var(--max); margin: 0 auto; padding: 0 2vw; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.table__head { position: sticky; top: 40px; display: grid; gap: 18px; }
.table__title { font-size: clamp(6rem, 15vw, 15rem); font-stretch: 62%; line-height: .8; color: var(--accent); }
.table__lead { max-width: 26ch; color: var(--paper-soft); font-size: 1.125rem; line-height: 1.4; }
.table__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.table__legend li { display: flex; align-items: center; gap: 8px; }
.table__legend li::before { content: ""; width: 14px; height: 14px; }
.table__legend .is-content::before { background: var(--accent); }
.table__legend .is-media::before { background: var(--dot-cyan); }
.table__legend .is-tech::before { background: var(--dot-pink); }

.table__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: calc(100vh - 140px); justify-self: end; }
.el { --tone: var(--accent); perspective: 1200px; }
.el--media { --tone: var(--dot-cyan); }
.el--tech { --tone: var(--dot-pink); }
.el__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer;
  background: none; color: var(--ink); font: inherit; text-align: left;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.625, .05, 0, 1);
}
.el__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.el__front { transform: translateZ(1px); display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(12px, 1.4vw, 20px); background: var(--tone); }
.el__num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(.85rem, 1.1vw, 1rem); }
.el__sym { align-self: center; font-size: clamp(3.4rem, min(8vw, 11vh), 8rem); font-stretch: 75%; line-height: .8; letter-spacing: -.03em; text-transform: none; }
.el__name { font-weight: 800; font-stretch: 80%; font-size: clamp(1rem, 1.35vw, 1.3rem); text-transform: uppercase; line-height: 1.1; }
.el__sub { font-size: clamp(.75rem, .95vw, .875rem); opacity: .75; }
.el__back { transform: rotateY(180deg) translateZ(1px); background: var(--ink); overflow: hidden; }
.el__back img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.el__desc {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px clamp(12px, 1.4vw, 20px) clamp(12px, 1.4vw, 18px);
  color: var(--paper); font-size: clamp(.8rem, 1vw, .95rem); line-height: 1.35;
  background: linear-gradient(transparent, rgba(17, 17, 17, .92) 45%);
}
.el__btn[aria-pressed="true"] { transform: rotateY(180deg); }
@media (hover: hover) { .el__btn:hover { transform: rotateY(180deg); } }
.el__btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }

/* elements drop into the table one after another */
.js .table__grid .el { opacity: 0; transform: translateY(40px) rotate(-3deg); transition: opacity .6s ease, transform .9s var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms); }
.js .table__grid.is-in .el { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .table__inner { grid-template-columns: 1fr; }
  .table__head { position: static; }
  .table__grid { max-width: none; justify-self: stretch; }
}
@media (max-width: 620px) {
  .table__inner { padding: 0 var(--gutter); }
  .table__grid { gap: 8px; }
  .el__sub, .el__num { display: none; }
  .el__desc { display: none; }
  .el__name { font-size: clamp(.68rem, 3.3vw, .95rem); overflow-wrap: anywhere; }
  .el__front { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .el__btn { transition: none; }
  .js .table__grid .el { opacity: 1; transform: none; transition: none; }
}

/* ---------- collective ---------- */
.collective { background: var(--cream); padding: clamp(64px, 8vw, 120px) 0; }
.collective__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.collective__main { display: grid; gap: 24px; }
.collective__main p:last-child { max-width: 60ch; font-size: 1.125rem; }
.collective a { color: var(--accent-ink); font-weight: 700; }
.collective a:hover { color: var(--ink); }
.collective__partner { border-left: 4px solid var(--accent); padding-left: 24px; display: grid; gap: 10px; }
.collective__name { font-size: clamp(2.4rem, 4vw, 3.6rem); }

/* ---------- platforms ---------- */
.platforms { padding: clamp(64px, 8vw, 120px) 0; }
.platforms__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.platforms__inner > div { display: grid; gap: 20px; }
.platforms__inner > div p { color: var(--ink-soft); max-width: 36ch; }
.platforms__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--line); }
.platforms__grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 16px; display: grid; gap: 2px; transition: background-color .2s; }
.platforms__grid li:hover { background: var(--accent); }
.platforms__grid li:hover span { color: var(--ink); }
.platforms__grid strong { font-weight: 800; font-stretch: 80%; font-size: 1.125rem; text-transform: uppercase; }
.platforms__grid span { font-size: .8125rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- thinking ---------- */
.thinking__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.thinking { border-top: 2px solid var(--ink); padding: clamp(64px, 8vw, 120px) 0; }
.thinking__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.post a { display: grid; gap: 12px; text-decoration: none; }
.post__img { overflow: hidden; }
.post img { aspect-ratio: 8 / 5; width: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post a:hover img { transform: scale(1.04); }
.post__meta { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.post__title { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
.post a:hover .post__title { text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* ---------- footer ---------- */
.footer { background: var(--paper); padding: clamp(56px, 6vw, 96px) 0 32px; border-top: 2px solid var(--ink); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__pitch { font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: .95; max-width: 11ch; align-self: start; }
.footer__h { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.footer__col address + .footer__h { margin-top: 24px; }
.footer__col ul { display: grid; gap: 6px; }
.footer__col a { text-decoration: none; font-weight: 600; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer__bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .875rem; color: var(--ink-soft); }
.footer__bottom a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer__social { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__consent { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.footer__consent:hover { color: var(--accent-ink); text-decoration: underline; }
html:not(.js) .footer__consent { display: none; }

/* ---------- cookie consent (template-parts/consent.php): a card bottom-left, does not block the page ---------- */
.btn--line { background: transparent; color: var(--ink); }
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; display: grid; gap: 12px;
  width: min(420px, calc(100vw - 32px)); padding: 20px 20px 18px;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--accent);
}
.consent[hidden] { display: none; }
.consent__title { font-size: 1.75rem; line-height: .9; }
.consent__text { font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); }
.consent__text a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { min-height: 44px; padding: 10px 18px; }
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in .5s cubic-bezier(.625, .05, 0, 1); }
  @keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
}
/* Facebook iframes stay hidden until main.js gives them their address (on approach) */
iframe[data-consent-src]:not([src]) { display: none; }

/* ---------- static fallback for the pinned work section ---------- */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .float { height: auto; }
  .float__sticky { position: static; height: auto; display: block; overflow: visible; padding: clamp(64px, 10vw, 120px) 0; }
  .float__cards { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 48px var(--gutter) 0; pointer-events: auto; }
  .fcard { position: static; width: auto; transform: none; padding: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .collective__inner, .platforms__inner { grid-template-columns: 1fr; }
  .logos__head { grid-template-columns: 1fr; align-items: start; gap: 20px; padding: 0 var(--gutter); }
  .logos__cta { justify-self: start; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof__item { padding-bottom: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header__toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: var(--accent); border: 2px solid var(--ink); cursor: pointer;
  }
  .header__burger, .header__burger::before, .header__burger::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
  }
  .header__burger::before, .header__burger::after { content: ""; position: absolute; left: 0; }
  .header__burger::before { top: -6px; }
  .header__burger::after { top: 6px; }
  .header__toggle[aria-expanded="true"] .header__burger { background: transparent; }
  .header__toggle[aria-expanded="true"] .header__burger::before { transform: translateY(6px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] .header__burger::after { transform: translateY(-6px) rotate(-45deg); }

  .header__inner { justify-content: space-between; min-height: 72px; }
  .header__logo { border-right: 0; padding-right: 0; }
  .header__logo img { width: 132px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 100%); overflow-y: auto;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.5rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: none; }
  .mega { position: static; padding: 12px 0 4px; display: none; }
  .nav__link[aria-expanded="true"] + .mega { display: block; }
  /* phones: plain rows with an arrow; the flamingo needs hover, so it is not used here */
  .mega__grid { grid-template-columns: 1fr; gap: 0; }
  .mega__card { height: auto; padding: 14px 0; background: none; border-bottom: 1px solid var(--line); justify-content: space-between; align-items: center; }
  .mega__card::after { content: "→"; font-weight: 700; }
  .mega__card:hover, .mega__card:focus-visible { background: none; }
  .mega__card .mega__mascot { display: none; }
  .mega__title { font-size: 1.25rem; }
  .mega__title br { display: none; }
  .mega__card:hover .mega__title, .mega__card:focus-visible .mega__title { background: none; box-shadow: none; text-decoration: underline; }
  .nav .btn { margin-top: 20px; justify-content: center; }

  .svc__link { grid-template-columns: 1fr; gap: 6px; height: auto; padding: 22px var(--gutter); }
  .svc__item::before, .svc__item:last-child::after { left: var(--gutter); right: var(--gutter); }
  .svc__name { white-space: normal; line-height: 1.05; }
  .svc__desc { justify-self: start; max-width: none; text-align: left; padding-left: calc(1.9em + 10px); }
  .svc__visual { display: none; }
  .thinking__grid { grid-template-columns: 1fr 1fr; }
  .platforms__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  /* too little gap between the words on phones: the strip becomes a band under the CTA */
  .hero { min-height: 0; }
  .hero__inner { padding: 0 var(--gutter) 28px; }
  .hero__title { justify-self: start; margin: 36px 0 28px; }
  .hero__strip {
    position: relative; order: 2; top: auto; left: 0; width: auto; height: 132px;
    margin-bottom: 28px; transform: rotate(-3deg) scale(1.08);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .hero__track { flex-direction: row; width: max-content; height: 100%; animation-name: strip-x; }
  .hero__track img { width: auto; height: 100%; }
  @keyframes strip-x { to { transform: translateX(calc(-50% - 5px)); } }
  .hero__lead { max-width: none; }
  .thinking__grid, .float__cards { grid-template-columns: 1fr; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__item + .proof__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .platforms__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar { font-size: .8125rem; }
  .topbar p { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__track, .svc__col, .logos__row { animation: none; }
  /* no drift: the logos wrap into rows instead of scrolling sideways */
  .logos__row { width: auto; padding: 0 2vw; }
  .logos__row:nth-child(2) { margin-left: 0; }
  .logos__track { flex-wrap: wrap; }
  .logos__track[aria-hidden="true"] { display: none; }
  .svc__tile { transition: none; }
  .js .in { transform: none; transition: none; }
  .js .hero__strip, .js .hero__foot { opacity: 1; translate: none; transition: none; }
  .bands__row { transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- WordPress additions (shared by the theme templates) ---------- */
.fcard--logo img { object-fit: contain; background: var(--cream); padding: 19% 31%; }
.post__type {
  display: grid; place-items: center; aspect-ratio: 8 / 5; width: 100%; padding: 16px;
  background: var(--ink); color: var(--accent); font-size: clamp(2.2rem, 4vw, 3.6rem); text-align: center;
}
.logos--grid { padding-top: 0; }
.logos__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 2vw;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 42vw), 1fr)); gap: 16px;
}
.logos__grid .logo-tile { width: auto; }

/* ---------- inner pages: header ---------- */
.page-hero { padding: calc(var(--mast-h, 0px) + clamp(40px, 6vw, 96px)) 0 clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; }
.page-hero--mascot .page-hero__inner { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.page-hero__text { display: grid; gap: 22px; justify-items: start; }
.page-hero__text .eyebrow { margin: 0; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.page-hero__title { font-size: clamp(3rem, 8.6vw, 9rem); max-width: 14ch; overflow-wrap: anywhere; }
.page-hero__lead { max-width: 46ch; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); color: var(--ink-soft); }
.page-hero__meta { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.page-hero__meta a { color: var(--accent-ink); }
.page-hero__mascot img { width: 100%; max-width: 420px; height: auto; margin-left: auto; }
/* centred page header (About): huge title, the flamingos sit on its lower half, the lead lies over the image.
   Static: no motion. */
.page-hero--center { --fs: clamp(3.4rem, 17vw, 17rem); --w: min(46vw, 560px); overflow: hidden; border-bottom: 0; padding-bottom: clamp(48px, 6vw, 96px); }
.page-hero__center { display: grid; justify-items: center; text-align: center; }
.page-hero--center .page-hero__title {
  grid-area: 1 / 1; max-width: none; white-space: nowrap;
  font-size: var(--fs); font-stretch: 78%; line-height: .82;
}
.page-hero__float {
  grid-area: 1 / 1; position: relative; z-index: 1; width: var(--w);
  /* --top / --bot: empty space above / below the mascot as a fraction of the image width
     (measured per image in tsf_visible_band): its top sits halfway down the letters */
  margin: calc(var(--fs) * .41 - var(--w) * var(--top, 0)) 0 calc(var(--w) * var(--bot, 0) * -1);
}
.page-hero__bob img { width: 100%; height: auto; }
/* the lead overlaps the very bottom of the flamingos, on top of them, no shadow */
.page-hero--center .page-hero__lead {
  position: relative; z-index: 2; max-width: 60ch; text-wrap: balance;   /* equal-length leads land on two even lines */
  margin-top: calc(var(--w) * -.008);   /* barely touches the bottom of the mascot */
  color: var(--ink); font-weight: 500;
}
@media (max-width: 620px) { .page-hero--center { --w: 78vw; } }
.blog .page-hero__title { font-size: clamp(2.6rem, 6vw, 6.4rem); max-width: 18ch; }

/* ---------- service page (after blue2purple's solution pages). Each service keeps its row colour
   from "What we do" as --tone: the marker, the numbers band, the chapter progress bar and the step dots. ---------- */
.service { --tone: var(--accent); --tone-text: var(--ink); }
.service[data-tone="cyan"]   { --tone: var(--dot-cyan); }
.service[data-tone="violet"] { --tone: var(--dot-pink); }
.service[data-tone="ink"]    { --tone: var(--ink); --tone-text: var(--paper); }
.service .mark { background: var(--tone); color: var(--tone-text); }

.sv-hero { padding: calc(var(--mast-h, 0px) + clamp(40px, 5vw, 80px)) 0 clamp(56px, 7vw, 110px); overflow: hidden; }
.sv-hero__inner { display: grid; gap: clamp(20px, 2.4vw, 32px); justify-items: start; }
.sv-hero .eyebrow { margin: 0; }
.sv-hero .eyebrow a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.sv-hero__title { display: grid; gap: .08em; font-size: clamp(2.8rem, 6.4vw, 6.6rem); line-height: .9; max-width: 21ch; }
.sv-hero__label .mark { padding: 0 .1em; }
.sv-hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 8px; }
.sv-hero__lead { max-width: 46ch; padding-left: 18px; border-left: 1px solid rgba(17, 17, 17, .25); color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.4; }

.sv-stats { position: relative; overflow: hidden; background: var(--tone); color: var(--tone-text); padding: clamp(48px, 6vw, 88px) 0; }
.service[data-tone="ink"] .sv-stats .sv-stats__value { color: var(--accent); }
.sv-stats__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sv-stats__item { display: grid; gap: 14px; align-content: start; }
.sv-stats__item dt { display: grid; gap: 14px; }
.sv-stats__value { font-size: clamp(4.4rem, 10vw, 9.5rem); line-height: .8; }
.sv-stats__label, .sv-stats__item dd { padding-left: 14px; border-left: 1px solid currentColor; }
.sv-stats__label { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 1.25rem; }
.sv-stats__item dd { margin-top: -10px; max-width: 30ch; line-height: 1.4; }

/* "How it works" (after The Romans' passing cards): landscape cards, photo left, copy right; each one sticks
   a little lower than the last, so the next card slides over it and the covered card shrinks slightly (main.js).
   Cards never grow with the viewport: at most 520px tall. */
.sv-ch { padding: clamp(72px, 9vw, 140px) 0; background: var(--paper); }
.sv-ch__top .eyebrow { margin: 0; }
.sv-ch__cols { display: grid; gap: clamp(16px, 2vw, 28px); margin-top: 20px; }
.sv-ch__card {
  --s: 1;
  position: sticky; top: calc(24px + var(--i, 0) * 16px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: min(520px, calc(100vh - 140px));
  background: var(--tone); color: var(--tone-text); border-top: 2px solid var(--paper);
  transform: scale(var(--s)); transform-origin: 50% 0; will-change: transform;
}
.sv-ch__photo { position: relative; overflow: hidden; }
.sv-ch__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-ch__copy { display: grid; grid-template-rows: auto 1fr; gap: 20px; padding: clamp(24px, 3vw, 48px); overflow: auto; }
.sv-ch__num { font-weight: 800; font-stretch: 68%; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .8; }
.sv-ch__num small { margin-left: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 400; font-stretch: 100%; font-size: .875rem; }
.sv-ch__text { display: grid; gap: 16px; align-content: end; }
.sv-ch__title { font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: .9; }
.sv-ch__body { display: grid; gap: .7em; max-width: 52ch; font-size: clamp(.95rem, 1.05vw, 1.0625rem); line-height: 1.5; }
.sv-ch__body a { color: inherit; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.service[data-tone="ink"] .sv-ch__body a { color: var(--accent); }

/* phones, reduced motion: no sticking, photo on top */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .sv-ch__card { position: relative; top: auto; height: auto; transform: none; }
}
@media (max-width: 900px) {
  .sv-ch__card { grid-template-columns: 1fr; }
  .sv-ch__photo { aspect-ratio: 16 / 10; }
}

/* "one team, one formula": title left, a dozen client logos right */
.sv-team { padding: clamp(72px, 9vw, 150px) 0; border-top: 1px solid var(--line); }
.sv-team__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sv-team__head { display: grid; gap: 28px; justify-items: start; }
.sv-team .section-title { white-space: nowrap; font-size: clamp(2.4rem, 4.6vw, 4.8rem); }   /* always the two lines set in the field */
.sv-team__logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sv-team__logos .logo-tile { width: auto; }

.sv-faq { padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.sv-faq__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sv-faq__item { border-bottom: 1px solid var(--line); }
.sv-faq__item summary {
  display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.15rem, 1.6vw, 1.5rem);
}
.sv-faq__item summary::-webkit-details-marker { display: none; }
.sv-faq__item summary { align-items: center; }
.sv-faq__item summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: background-color .25s, background-size .25s;
}
.sv-faq__item summary:hover::after { background-color: var(--accent); }
.sv-faq__item[open] summary::after { background-color: var(--accent); background-size: 14px 2px, 2px 0; }
.sv-faq__item p { padding: 0 0 22px; max-width: 60ch; color: var(--ink-soft); }

}
@media (max-width: 1100px) {
  .sv-team__inner, .sv-faq__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sv-stats__grid { grid-template-columns: 1fr; }
  .sv-team__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ---------- inner pages: body text ---------- */
.page-body { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 120px); }
.entry { max-width: 72ch; font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.65; }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3, .entry h4 { margin-top: 1.8em; line-height: 1; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.01em; }
.entry h3 { font-weight: 800; font-stretch: 80%; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.entry h4 { font-weight: 700; font-size: 1.2rem; }
.entry a { color: var(--accent-ink); font-weight: 600; text-underline-offset: .18em; }
.entry a:hover { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--accent-ink); }
.entry img { height: auto; }
.entry figure { margin: 2em 0; }
.entry figcaption { margin-top: 8px; font-size: .875rem; color: var(--ink-soft); }
.entry blockquote { margin: 2em 0; padding-left: 24px; border-left: 4px solid var(--accent); font-size: 1.25em; font-weight: 600; }
.entry .has-text-align-center { text-align: center; }
.entry iframe { max-width: 100%; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.entry .wp-block-gallery > figure { margin: 0; width: 100% !important; max-width: none; }
.entry .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* About: team grid */
/* classic themes wrap group blocks in .wp-block-group__inner-container */
.entry .team { margin-top: 1.5em; }
/* the team breaks out of the 72ch text column to the full content width: up to four in one row */
.entry .team { width: calc(min(100vw, var(--max)) - 2 * var(--gutter)); max-width: none; }
.entry .team > .wp-block-group__inner-container,
.entry .team:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
@media (max-width: 1100px) {
  .entry .team > .wp-block-group__inner-container,
  .entry .team:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
}
.entry .team__member :is(h3, p) { margin-top: 8px; }
.entry .team__member figure { margin: 0 0 14px; }
.entry .team__member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: #f3f3f3; filter: grayscale(1); transition: filter .4s; }
.entry .team__member:hover img { filter: none; }
/* no photo yet (inc/team.php): grey 4:5 tile with the initials, pink on hover */
.entry .team__placeholder { display: grid; place-items: center; aspect-ratio: 4 / 5; margin: 0 0 14px; background: #f3f3f3; transition: background-color .4s; }
.entry .team__placeholder span { font-weight: 800; font-stretch: 68%; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.entry .team__member:hover .team__placeholder { background: var(--accent); }
.entry .team__member h3 { margin-top: 0; font-size: 1.35rem; }
.entry .team__role { color: var(--ink-soft); font-size: .95rem; }
/* contact row (inc/team.php): square icon buttons like the share buttons; the address pops up as a label */
.entry .team__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.entry .team__link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.entry .team__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.entry .team__link--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='5.5' width='18' height='13'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E"); }
.entry .team__link--web { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.8 3 2.8 15 0 18M12 3c-2.8 3-2.8 15 0 18'/%3E%3C/svg%3E"); }
.entry .team__link--in::before { content: "in"; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1; }
.entry .team__link:hover, .entry .team__link:focus-visible { background: var(--accent); outline: none; }
.entry .team__link::after {
  content: attr(data-label); position: absolute; left: -2px; bottom: calc(100% + 8px); z-index: 2; padding: 6px 10px; white-space: nowrap;
  background: var(--ink); color: var(--paper); font-size: .8125rem; font-weight: 700; box-shadow: 3px 3px 0 var(--accent);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out);
}
.entry .team__link:hover::after, .entry .team__link:focus-visible::after { opacity: 1; transform: none; }

/* Our Philosophy: numbered rules */
.rules { border-top: 2px solid var(--ink); }
.rules__item {
  display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px 32px; align-items: baseline;
  padding: clamp(28px, 3.5vw, 48px) 2vw; border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.rules__item:nth-child(odd):hover { background: var(--accent); }
.rules__item:nth-child(even):hover { background: var(--dot-cyan); }
.rules__num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.25rem; }
.rules__title { font-size: clamp(2.4rem, 6vw, 6rem); }
.rules__text { font-size: clamp(1.0625rem, 1.4vw, 1.3rem); max-width: 34ch; }

/* Clients page */
.stories { padding: clamp(56px, 7vw, 110px) 0; border-top: 1px solid var(--line); }
.stories .section-title { margin-bottom: clamp(28px, 3vw, 48px); }
.post--client img { object-fit: contain; background: var(--cream); padding: 12% 24%; }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(64px, 8vw, 128px); }
.contact__info { display: grid; gap: 28px; align-content: start; }
.contact__mail a { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: var(--ink); text-decoration-thickness: 3px; text-underline-offset: .15em; word-break: break-word; }
.contact__mail a:hover { color: var(--accent-ink); }
.contact__offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact__offices address { line-height: 1.5; }
.contact__social { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__social a { display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); font-weight: 700; text-decoration: none; }
.contact__social a:hover { background: var(--accent); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form__hp { position: absolute; left: -9999px; }
.form__interests { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__interests legend { width: 100%; margin-bottom: 12px; font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 2px solid var(--ink); font-weight: 700; transition: background-color .2s; }
.chip input:checked + span { background: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  padding: 14px 16px; border: 2px solid var(--ink); border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.field--check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ink); }
.field--check a { color: var(--accent-ink); }
.form-note { padding: 18px 20px; border: 2px solid var(--ink); }
.form-note--error { grid-column: 1 / -1; background: #ffe3fb; font-weight: 600; }
.form-note--ok { background: var(--accent); display: grid; gap: 10px; }
.form-note--ok .display { font-size: clamp(2.4rem, 5vw, 4.4rem); }

/* Blog */
.thinking--index { border-top: 0; padding-top: clamp(40px, 5vw, 72px); }
.pagination { margin-top: clamp(40px, 5vw, 72px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--accent); }
/* ---------- single article (after blue2purple's articles) ---------- */
.read-progress { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.art-hero { padding: calc(var(--mast-h, 0px) + clamp(28px, 3.5vw, 56px)) 0 0; }
.art-hero__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.art-hero__back { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; margin-right: 6px; }
.art-hero__back:hover { color: var(--ink); }
.chip { display: inline-block; padding: 3px 8px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.chip:hover { background: var(--ink); color: var(--paper); }
.art-hero__title { font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: .92; max-width: 32ch; text-wrap: balance; }
.art-hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-top: clamp(24px, 3vw, 44px); }
.art-hero__lead { max-width: 50ch; padding-left: 18px; border-left: 1px solid rgba(17, 17, 17, .25); color: var(--ink-soft); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.45; }
.art-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.art-hero__meta li + li::before { content: "·"; margin-right: 22px; color: var(--accent-ink); }
.art-hero__cover { position: relative; margin-top: clamp(32px, 4vw, 56px); }
.art-hero__cover img { width: 100%; height: auto; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; }
.art-hero__cover--logo { display: grid; place-items: center; background: var(--cream); background-clip: content-box; aspect-ratio: 16 / 7; }
.art-hero__cover--logo img { width: auto; max-width: min(40%, 380px); aspect-ratio: auto; max-height: none; object-fit: contain; }
/* reading-time sticker on the cover corner */
.art-sticker {
  position: absolute; right: calc(var(--gutter) + clamp(12px, 2vw, 32px)); bottom: clamp(-44px, -3vw, -28px);
  display: grid; place-content: center; text-align: center;
  width: clamp(96px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--ink); transform: rotate(-12deg);
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(.75rem, .9vw, .9375rem); line-height: 1;
}
.art-sticker b { display: block; font-size: 2.6em; line-height: .9; }
.art-hero--text .art-hero__foot { padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }

/* body: content + sticky aside (table of contents, CTA) */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(40px, 6vw, 120px); align-items: start; padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 110px); }
/* the text column keeps its reading width; the aside sits at the right edge until the gap reaches 280px (about 1440px screens), then stays beside the text */
.art-layout { grid-template-columns: minmax(0, 760px) minmax(240px, 300px); column-gap: clamp(40px, 100% - 1060px, 280px); }
.art-main { min-width: 0; max-width: 760px; }
.art-aside { position: sticky; top: 28px; display: grid; gap: 24px; }
.toc__title { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.toc__list { border-top: 2px solid var(--ink); }
.toc__list a {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: .9375rem; line-height: 1.15;
  color: #716a65; text-decoration: none; transition: color .2s;
}
.toc__num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 400; font-size: .75rem; padding-top: 2px; }
.toc__list a:hover, .toc__list a.is-on { color: var(--ink); }
/* active row: a pink bar slides in on the left, the number turns pink-ink (no boxed number) */
.toc__list a { position: relative; transition: color .2s, padding-left .3s var(--ease-out); }
.toc__list a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease-out); }
.toc__list a.is-on { padding-left: 14px; }
.toc__list a.is-on::before { transform: none; }
.toc__list a.is-on .toc__num { color: var(--accent-ink); font-weight: 700; }
.art-cta { display: grid; gap: 12px; justify-items: start; padding: 22px; background: var(--accent); color: var(--ink); }
.art-cta__title { font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: .95; }
.art-cta .btn--ink { --wipe: var(--paper); }
.toc-mobile { display: none; }

.art-end { display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 2px solid var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.share__label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__list a, .share__copy { display: inline-block; padding: 7px 12px; border: 2px solid var(--ink); background: none; font: inherit; font-size: .875rem; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; }
.share__list a:hover, .share__copy:hover, .share__copy.is-done { background: var(--accent); }
/* byline in the hero meta + author box at the end (team user, or the agency for unsigned posts) */
.byline { display: inline-flex; align-items: center; gap: 10px; }
.byline__photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #f3f3f3; }
.byline__photo--mark { display: inline-block; background: var(--accent); }
.byline a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; }
.byline a:hover { background-size: 100% 100%; }
/* square photo flush with the card's left edge, text centred beside it */
.author-box {
  display: grid; grid-template-columns: clamp(170px, 34%, 260px) minmax(0, 1fr); align-items: center;
  border: 2px solid var(--ink); background: var(--paper); overflow: hidden;
}
.author-box__media { align-self: stretch; border-right: 2px solid var(--ink); background: #f3f3f3; }
.author-box__photo { overflow: hidden; }
.author-box__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 4%; filter: grayscale(1); transition: filter .4s, transform .8s var(--ease-out); }
.author-box:hover .author-box__photo img { filter: none; transform: scale(1.04); }
.author-box--agency .author-box__photo { display: grid; place-items: center; aspect-ratio: 1; padding: 22px; }
.author-box--agency .author-box__photo img { width: 82%; aspect-ratio: auto; object-fit: contain; filter: none; transform: none; }
.author-box__text { padding: clamp(20px, 3vw, 36px); }
.author-box__label { display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.author-box__label::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.author-box__name { margin-top: 10px; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .88; }
.author-box__role { margin-top: 12px; font-size: .875rem; font-weight: 700; line-height: 1.9; }
.author-box__role span { padding: 3px 8px; background: var(--accent); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.author-box__bio { margin-top: 14px; max-width: 56ch; color: var(--ink-soft); line-height: 1.5; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-weight: 700; font-size: .9375rem; }
.author-box__links a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); transition: text-decoration-color .2s; }
.author-box__links a:hover { text-decoration-color: var(--ink); }
@media (max-width: 600px) {
  .author-box { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
  .author-box__media { align-self: start; border-bottom: 2px solid var(--ink); }
  .author-box--agency .author-box__photo { padding: 10px; }
  .author-box__text { padding: 16px 16px 20px; }
  .author-box__name { font-size: 1.9rem; }
  .art-hero__meta .byline { flex-basis: 100%; }
  .art-hero__meta .byline + li::before { content: none; }
}
.article--client .art-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.art-layout--no-toc .art-aside { padding-top: 6px; }

@media (max-width: 1000px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-main { max-width: none; }
  .art-aside { position: static; }
  .art-aside .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 36px; border: 2px solid var(--ink); }
  .toc-mobile summary { display: flex; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 400; }
  .toc-mobile ol { padding: 0 16px 14px; list-style: decimal; padding-left: 36px; }
  .toc-mobile li { padding: 6px 0; }
  .toc-mobile a { font-weight: 600; color: var(--ink); }
  .art-sticker { bottom: -30px; }
}
@media (max-width: 620px) { .art-hero__cover img { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }

.entry--article h2 { position: relative; font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: .95; margin-top: 1.6em; scroll-margin-top: 24px; }
.entry--article h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); text-transform: uppercase; font-stretch: 75%; line-height: 1; margin-top: 1.6em; }
.entry--article h4 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.entry--article .h-anchor { margin-left: .2em; color: var(--accent-ink); text-decoration: none; opacity: 0; transition: opacity .2s; font-stretch: 100%; }
.entry--article h2:hover .h-anchor, .entry--article .h-anchor:focus-visible { opacity: 1; }
.entry--article mark, .entry--article .has-inline-color { background: var(--accent); color: var(--ink); padding: 0 .15em; }
.entry--article > p:first-child::first-letter, .entry--article .has-drop-cap::first-letter {
  float: left; margin: .06em .12em 0 0; font-weight: 800; font-stretch: 68%; font-size: 4.6em; line-height: .78; color: var(--ink);
  background: var(--accent); padding: .06em .08em 0;
}
.entry--article a { color: var(--accent-ink); }
.entry--article ul:not([class*="is-style"]) li::marker, .entry--article ol li::marker { color: var(--accent-ink); font-weight: 700; }
.entry--article .is-style-checks { list-style: none; padding-left: 0; }
.entry--article .is-style-checks li { position: relative; padding-left: 34px; }
.entry--article .is-style-checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 22px; height: 22px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .8em; }

/* pull quote: huge condensed words between rules, pink quotation mark */
.entry--article .wp-block-pullquote { margin: 2.4em 0; padding: 40px 0 32px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: left; }
.entry--article .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font-size: 1em; font-weight: 400; }
.entry--article .wp-block-pullquote blockquote::before { content: "“"; display: block; height: .5em; font-weight: 800; font-size: 6rem; line-height: 1; color: var(--accent); }
.entry--article .wp-block-pullquote p { font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .95; letter-spacing: -.01em; }
.entry--article .wp-block-pullquote cite { display: block; margin-top: 18px; font-style: normal; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.entry--article .wp-block-quote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); font-size: 1.2em; font-weight: 600; }
.entry--article .wp-block-quote cite { display: block; margin-top: 10px; font-size: .75em; font-weight: 500; font-style: normal; color: var(--ink-soft); }

/* callout: cream box with a pink bar */
.entry--article .is-style-callout { margin: 2em 0; padding: 22px 24px 22px 26px; background: var(--cream); border-left: 6px solid var(--accent); }
.entry--article .is-style-callout > * + *, .entry--article .is-style-callout .wp-block-group__inner-container > * + * { margin-top: .6em; }
.entry--article .is-style-callout h4 { margin: 0; color: var(--accent-ink); }
/* the formula: black box (b2p's "What we recommend") */
.entry--article .is-style-formula { margin: 2.2em 0; padding: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--paper); }
.entry--article .is-style-formula h4 { margin: 0 0 14px; font-weight: 800; font-stretch: 70%; letter-spacing: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); color: var(--accent); }
.entry--article .is-style-formula li + li { margin-top: .6em; }
.entry--article .is-style-formula a { color: var(--accent); }
.entry--article .is-style-formula .is-style-checks li::before { background: var(--accent); }

/* stats row: each column = big number paragraph + text */
.entry--article .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 2em 0; }
.entry--article .wp-block-column { flex: 1 1 0; min-width: 0; }
/* footnotes (core Footnotes block): pink numbered markers, notes listed under a rule, hover/focus preview from main.js */
.entry--article sup.fn { line-height: 0; }
.entry--article sup.fn a { display: inline-block; min-width: 1.5em; margin-left: 2px; padding: 0 .3em; background: var(--accent); color: var(--ink); font-size: .7em; font-weight: 800; line-height: 1.55; text-align: center; text-decoration: none; scroll-margin-top: 40vh; }
.entry--article sup.fn a:hover, .entry--article sup.fn a:focus-visible { background: var(--ink); color: var(--paper); }
.entry--article .wp-block-footnotes { margin: clamp(48px, 6vw, 72px) 0 0; padding: 18px 0 0; border-top: 2px solid var(--ink); list-style: none; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.entry--article .wp-block-footnotes::before { content: "Notes"; display: block; margin-bottom: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.entry--article .wp-block-footnotes li { position: relative; margin: 0; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 40vh; }
.entry--article .wp-block-footnotes .fn-num { position: absolute; left: 0; top: 12px; min-width: 1.6em; padding: 0 .3em; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 800; line-height: 1.6; text-align: center; text-decoration: none; }
/* the note text is the link back to its marker */
.entry--article .wp-block-footnotes .fn-back { display: block; color: inherit; text-decoration: none; }
.entry--article .wp-block-footnotes .fn-back .fn-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.entry--article .wp-block-footnotes .fn-back:hover .fn-text, .entry--article .wp-block-footnotes .fn-back:focus-visible .fn-text { color: var(--ink); text-decoration-thickness: 2px; }
.entry--article .wp-block-footnotes li:target { animation: fn-flash 1.6s ease-out; }
@keyframes fn-flash { from { background: rgba(255, 0, 242, .18); } to { background: transparent; } }
.fn-pop { position: absolute; z-index: 30; max-width: min(320px, calc(100vw - 32px)); padding: 12px 14px; background: var(--ink); color: var(--paper); font-size: .875rem; line-height: 1.45; box-shadow: 4px 4px 0 var(--accent); pointer-events: none; }
.fn-pop b { display: inline-block; min-width: 1.6em; margin-right: 8px; padding: 0 .3em; background: var(--accent); color: var(--ink); font-size: .75rem; text-align: center; }
/* glossary terms (tsf_article_glossary): dotted pink underline, the definition shows in the same popover as footnotes */
.entry--article .term { border-bottom: 2px dotted var(--accent-ink); cursor: help; }
.entry--article .term:hover, .entry--article .term:focus-visible { background: rgba(255, 0, 242, .14); border-bottom-style: solid; outline: none; }
.entry--article .term__def { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Instagram (tsf-core/embeds.php): centred phone-width card with a pink offset; grey placeholder until embed.js runs */
.entry--article .wp-block-embed-instagram .wp-block-embed__wrapper { display: flex; justify-content: center; }
.entry--article .instagram-media { width: 100% !important; max-width: 420px !important; min-width: 0 !important; margin: 2.2em auto !important; border-radius: 0 !important; box-shadow: 10px 10px 0 var(--accent) !important; }
.entry--article blockquote.instagram-media { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 24px !important; border: 2px solid var(--ink) !important; background: #f3f3f3 !important; font-weight: 700; }

/* client story (group style "Client story"): ink card, logo tile, one big pink result */
.entry--article .is-style-case {
  display: grid; grid-template-columns: clamp(110px, 24%, 170px) minmax(0, 1fr); grid-template-areas: "logo label" "logo number" "logo metric" "logo quote" "logo link";
  column-gap: clamp(20px, 3vw, 36px); align-content: start; margin: 2.4em 0; padding: clamp(20px, 3vw, 34px); background: var(--ink); color: var(--paper);
}
/* classic themes wrap group content in an inner container: let its children join the card's grid */
.entry--article .is-style-case > .wp-block-group__inner-container { display: contents; }
.entry--article .is-style-case > *, .entry--article .is-style-case > .wp-block-group__inner-container > * { margin: 0; }
.entry--article .is-style-case .case__logo { grid-area: logo; align-self: start; display: grid; place-items: center; aspect-ratio: 1; padding: 14px; background: var(--paper); }
.entry--article .is-style-case .case__logo img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.entry--article .is-style-case .case__label { grid-area: label; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.entry--article .is-style-case .case__number { grid-area: number; margin-top: 10px; font-weight: 800; font-stretch: 68%; font-size: clamp(3.6rem, 7vw, 6rem); line-height: .85; letter-spacing: -.02em; color: var(--accent); }
.entry--article .is-style-case .case__metric { grid-area: metric; margin-top: 8px; font-size: 1.0625rem; font-weight: 600; }
.entry--article .is-style-case .case__quote { grid-area: quote; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .82); }
.entry--article .is-style-case .case__link { grid-area: link; margin-top: 16px; font-weight: 700; }
.entry--article .is-style-case .case__link a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.entry--article .is-style-case .case__link a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .entry--article .is-style-case { grid-template-columns: 1fr; grid-template-areas: "logo" "label" "number" "metric" "quote" "link"; }
  .entry--article .is-style-case .case__logo { width: 96px; margin-bottom: 18px; }
}

.entry--article .is-style-stats { gap: 12px; }
.entry--article .is-style-stats .wp-block-column { display: grid; align-content: space-between; gap: 18px; min-height: 200px; padding: 22px 22px 20px; background: var(--accent); color: var(--ink); }
.entry--article .is-style-stats .wp-block-column:nth-child(3n+2) { background: var(--dot-cyan); }
.entry--article .is-style-stats .wp-block-column:nth-child(3n) { background: var(--dot-pink); }
.entry--article .is-style-stats .wp-block-column > p:first-child { margin: 0; font-weight: 800; font-stretch: 68%; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: .8; letter-spacing: -.02em; color: var(--ink); }
.entry--article .is-style-stats .wp-block-column > p:first-child::first-letter { all: unset; }
.entry--article .is-style-stats .wp-block-column > p + p { margin: 0; font-size: .95rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
/* stacked (WordPress stacks columns below 782px): one low row each, figure left, text right */
@media (max-width: 781px) {
  .entry--article .is-style-stats { gap: 8px; }
  .entry--article .is-style-stats .wp-block-column { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; align-content: center; min-height: 0; padding: 18px 20px; }
  .entry--article .is-style-stats .wp-block-column > p:first-child { font-size: clamp(3rem, 14vw, 4.2rem); }
}

/* separator: the logo's molecule dots */
.entry--article .wp-block-separator { border: 0; height: 1px; margin: 2.6em 0; background: var(--line); }
.entry--article .wp-block-separator.is-style-molecule { height: 14px; background: none; display: flex; justify-content: center; gap: 18px; }
.entry--article .wp-block-separator.is-style-molecule::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot-pink); box-shadow: 32px 0 0 var(--dot-cyan), 64px 0 0 var(--ink); margin-right: 64px; }

/* images, gallery, embeds, tables, buttons, details (FAQ) */
.entry--article .wp-block-image { margin: 2.2em 0; }
.entry--article .wp-block-image img { width: 100%; height: auto; }
/* portrait photos (phone shots) stay within one screen */
.entry--article .wp-block-image.is-portrait:not(.is-style-tilted) img { width: auto; max-width: 100%; max-height: min(78vh, 720px); }
.entry--article .wp-block-image figcaption, .entry--article .wp-element-caption { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--accent); font-size: .875rem; color: var(--ink-soft); }
.entry--article .wp-block-image.is-style-tilted { width: min(78%, 380px); margin-left: auto; margin-right: auto; padding: 12px 12px 18px; background: var(--paper); box-shadow: 0 18px 40px rgba(17, 17, 17, .14); transform: rotate(-2.5deg); }
.entry--article .wp-block-image.is-style-tilted figcaption { border: 0; padding: 0; text-align: center; font-weight: 700; }
.entry--article .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 2.2em 0; }
.entry--article .wp-block-gallery > figure { margin: 0; width: 100% !important; }
.entry--article .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.entry--article .wp-block-embed { margin: 2.2em 0; }
.entry--article .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry--article .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry--article .wp-block-table { margin: 2.2em 0; overflow-x: auto; }
.entry--article .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry--article .wp-block-table th { text-align: left; padding: 10px 12px; background: var(--ink); color: var(--paper); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .04em; }
.entry--article .wp-block-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry--article .wp-block-table tr:nth-child(even) td { background: var(--cream); }
.entry--article .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0; }
.entry--article .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); font-weight: 800; font-stretch: 75%; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.entry--article .wp-block-button__link:hover { background: var(--accent); color: var(--ink); }
.entry--article .is-style-outline .wp-block-button__link { background: none; color: var(--ink); }
.entry--article .wp-block-details { border-bottom: 1px solid var(--line); }
.entry--article .wp-block-details:first-of-type { border-top: 2px solid var(--ink); }
.entry--article .wp-block-details + .wp-block-details { margin-top: 0; }
.entry--article .wp-block-details summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.1;
}
.entry--article .wp-block-details summary::-webkit-details-marker { display: none; }
/* toggle: outlined square with a plus that turns into a minus on a pink square when open */
.entry--article .wp-block-details summary::after {
  content: ""; width: 40px; height: 40px; border: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: background-color .25s, background-size .25s;
}
.entry--article .wp-block-details summary:hover::after { background-color: var(--accent); }
.entry--article .wp-block-details[open] summary::after { background-color: var(--accent); background-size: 14px 2px, 2px 0; }
.entry--article .wp-block-details > :not(summary) { margin: 0; padding: 0 64px 22px 0; max-width: 62ch; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.entry--article .wp-block-details > :not(summary) + :not(summary) { margin-top: -10px; }
@supports (interpolate-size: allow-keywords) {
  .entry--article .wp-block-details { interpolate-size: allow-keywords; }
  .entry--article .wp-block-details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .entry--article .wp-block-details[open]::details-content { block-size: auto; }
}
.entry--article .wp-block-code, .entry--article pre { padding: 18px 20px; background: var(--ink); color: var(--paper); overflow-x: auto; font-size: .875rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 2px solid var(--ink); font-size: .875rem; font-weight: 700; text-decoration: none; }
.tags a:hover { background: var(--accent); }

/* 404 */
.lost__inner { min-height: 100svh; padding-top: calc(var(--mast-h, 0px) + 40px); padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.lost__inner > div { display: grid; gap: 22px; justify-items: start; }
.lost__title { font-size: clamp(3.4rem, 9vw, 9.5rem); }
.lost__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lost__mascot { width: 100%; max-width: 460px; height: auto; }

/* fallback template */
.page-fallback { padding: calc(var(--mast-h, 0px) + 64px) 0 96px; }

@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; }
  .rules__item { grid-template-columns: 56px minmax(0, 1fr); }
  .rules__text { grid-column: 2; }
}
@media (max-width: 620px) {
  .page-hero--mascot .page-hero__inner, .lost__inner { grid-template-columns: 1fr; }
  .page-hero__mascot img { max-width: 220px; margin: 0; }
  .form { grid-template-columns: 1fr; }
  .contact__offices { grid-template-columns: 1fr; }
  .rules__item { padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
}
.entry img[src$=".svg"] { max-width: 240px; }
