/* ============================================================
   somerce. — The Proof Ledger design system
   Powder & Ink · Brand guidelines V1 · July 2026 · System V2
   Light bone canvas per brand PDF p6; ink bands are the moments.
   Ink does the work. Powder is the signature. Restraint is the
   premium: hairlines over shadows, no hover lift, one accent.
   ============================================================ */

/* ------------------------------------------------------------
   01 · TOKENS
   ------------------------------------------------------------ */

/* Poppins metric fallback: kills CLS while the webfont loads */
@font-face {
  font-family: 'Poppins-fallback';
  src: local('Arial');
  size-adjust: 98%;
}

:root {
  /* brand primitives — PDF p3, law. Do not add hexes. */
  --ink: #14202E;         /* headlines · surfaces · logo */
  --ink-deep: #0C141E;    /* studio surfaces · footer */
  --powder: #A8C6DE;      /* the dot · accents on ink */
  --powder-deep: #7FA9C9; /* dot on light · decorative ONLY on light */
  --mist: #E2EAF0;        /* panels · tints · hairlines */
  --bone: #F3F5F4;        /* default canvas */
  --slate: #5E7284;       /* secondary text */
  --white: #FFFFFF;

  /* semantic aliases — additive; components map onto these */
  --canvas: var(--bone);
  --surface: var(--white);
  --surface-tint: var(--mist);
  --text: var(--ink);
  --text-2: var(--slate);
  --band: var(--ink);
  --band-deep: var(--ink-deep);
  --band-text: var(--bone);
  --band-text-2: var(--mist);
  --accent: var(--powder-deep);        /* decorative on light: dot, rules, halos */
  --accent-on-band: var(--powder);     /* text-safe accent on ink (9.3:1) */
  --line: var(--mist);
  --line-on-band: rgba(226, 234, 240, 0.14);
  --rule: 1px solid rgba(20, 32, 46, 0.08);  /* the ledger hairline */

  /* CONTRAST MATRIX (WCAG 2.1, computed — the shipped rules)
     ink/bone 15.0 AAA · ink/white 16.5 AAA · ink/mist 13.5 AAA
     ink/powder 9.3 AAA (solid only — no opacity tints)
     slate/bone 4.55 AA · slate/white 4.98 AA
     slate/mist 4.09 LARGE ONLY (>=18.66px bold or >=24px)
     bone/ink 15.0 · mist/ink 13.5 · powder/ink 9.3 (band text)
     bone/ink-deep 16.9 · mist/ink-deep 15.2 · powder/ink-deep 10.4
     powder-deep/ink 6.6 AA · powder-deep/ink-deep 7.4 AA
     powder-deep/bone 2.28 — DECORATIVE ONLY, never text on light */

  /* type scale — Poppins 400/500/600/700 only. 800 is dead.
     PDF rules: display lowercase -0.035em + powder full stop;
     never letterspace lowercase; caps only for small labels;
     numbers are the heroes, Bold, one size up; brand names
     keep their own casing. */
  --font: 'Poppins', 'Poppins-fallback', ui-sans-serif, system-ui, sans-serif;
  --t-display-1: clamp(44px, 5.2vw, 76px);  /* 700 / 1.02 */
  --t-display-2: clamp(34px, 3.8vw, 52px);  /* 700 / 1.06 */
  --t-num-hero: clamp(48px, 5vw, 68px);     /* 700 / 1.0 tabular */
  --t-num: clamp(34px, 3vw, 44px);          /* 700 / 1.05 tabular */
  --t-title: 28px;                          /* 700 / 1.2 */
  --t-heading: 21px;                        /* 600 / 1.3 */
  --t-lede: clamp(17px, 1.4vw, 19px);       /* 400 / 1.65 */
  --t-body: 16px;                           /* 400 / 1.7 */
  --t-small: 14px;                          /* 400-500 / 1.6 */
  --t-fine: 13px;                           /* 500 / 1.5 */
  --t-label: 12px;                          /* 600 caps +0.12em / 1.35 */

  /* spacing — section rhythm 96px desktop / 64px mobile */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* radii — concentric rule: inner = outer minus padding, min --r-sm */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* elevation — hairlines do elevation; exactly two shadows, one hue */
  --shadow-1: 0 1px 2px rgba(20, 32, 46, 0.06);          /* sticky chrome */
  --shadow-2: 0 24px 56px -12px rgba(20, 32, 46, 0.16);  /* floats, open dropdown */

  --border-hairline: 1px solid var(--mist);
  --border-strong: 1.5px solid var(--ink);
}

/* ------------------------------------------------------------
   02 · BASE / RESET
   ------------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
img, video { max-width: 100%; }
[id] { scroll-margin-top: 96px; }

::selection { background: var(--powder); color: var(--ink); }

/* focus — ink ring on light, powder ring on bands; 2px, offset 3px */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.ink-band :focus-visible,
.ink-band-deep :focus-visible,
.cta-band :focus-visible,
.footer :focus-visible {
  outline-color: var(--powder);
}

/* skip link — bone-on-ink pill, visible on focus */
.skip-link {
  position: absolute;
  left: 24px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bone);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  transition: top .18s ease-out;
}
.skip-link:focus-visible { top: 16px; outline-color: var(--powder); }

/* visually hidden (labels for icon buttons etc.) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* honeypot — spam trap field, off-canvas, never display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   03 · TYPOGRAPHY
   ------------------------------------------------------------ */

/* Display: Bold · lowercase · -0.035em · ends with the powder dot.
   Never letterspace lowercase. */
.display {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: lowercase;
  text-wrap: balance;
}
h1.display { font-size: var(--t-display-1); }
h2.display { font-size: var(--t-display-2); line-height: 1.06; }

/* the dot — the system. Decorative brand mark: headlines read
   identically without it; functional meaning never rides on it. */
.dot { color: var(--accent); }
.on-ink .dot, .ink-band .dot, .ink-band-deep .dot,
.cta-band .dot, .footer .dot { color: var(--powder); }

.label {
  font-weight: 600;
  font-size: var(--t-label);
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
/* powder-deep text on light fails AA (2.28:1) — the powder identity
   moves to a leading decorative disc; the words stay slate. */
.label-powder { color: var(--text-2); }
.label-powder::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: 2px;
}
.ink-band .label, .ink-band-deep .label,
.cta-band .label, .footer .label { color: var(--accent-on-band); }
.ink-band .label-powder::before, .ink-band-deep .label-powder::before,
.cta-band .label-powder::before { background: var(--powder); }

.lede {
  font-size: var(--t-lede);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 620px;
}
.lede strong { font-weight: 700; color: var(--text); }

/* ledger numerals — every number tabular, lining, no reflow */
.num, .stat .num, .case-num, .post-num, .callout-num,
.cap-num, .service-num, .chip-count, .timecode,
.record-metric, .showreel-counter, .cta-dock-proof {
  font-variant-numeric: lining-nums tabular-nums;
}
.num { font-weight: 700; color: var(--text); }

/* registration rule — section heads open on a hairline to the margin */
.section-head {
  position: relative;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-6);
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-bottom: var(--rule);
}
.ink-band .section-head::after,
.ink-band-deep .section-head::after { border-color: var(--line-on-band); }

/* ------------------------------------------------------------
   04 · LAYOUT PRIMITIVES
   ------------------------------------------------------------ */

.container { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.container-narrow { max-width: 840px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section-pad { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ------------------------------------------------------------
   05 · BUTTONS
   No hover lift anywhere — movement is reserved for meaning.
   ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s ease-out, color .18s ease-out,
              border-color .18s ease-out, transform .18s ease-out;
}
.btn:active { transform: scale(0.985); }
.btn-lg { font-size: 17px; padding: 17px 34px; }

.btn-ink { background: var(--ink); color: var(--bone); }        /* 15.0:1 */
.btn-ink:hover { background: var(--ink-deep); }
.btn-bone { background: var(--bone); color: var(--ink); }       /* 15.0:1 */
.btn-bone:hover { background: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.ink-band .btn-ghost, .ink-band-deep .btn-ghost, .cta-band .btn-ghost {
  border-color: var(--bone); color: var(--bone);
}
.ink-band .btn-ghost:hover, .ink-band-deep .btn-ghost:hover, .cta-band .btn-ghost:hover {
  background: var(--bone); color: var(--ink);
}

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--mist);
  color: var(--slate);
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
}

/* loading — label swaps to three powder dots, width locked in JS
   by fixing the button's width before toggling .is-loading */
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: "\2022\2002\2022\2002\2022";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--powder);
  animation: btn-dots .9s ease-in-out infinite;
}
@keyframes btn-dots { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* optional trailing-arrow button: <span class="arrow">→</span> */
.btn-arrow .arrow { display: inline-block; transition: transform .18s ease-out; }
.btn-arrow:hover .arrow { transform: translateX(4px); }

/* text links — ink 600 with a 2px powder-deep underline; the state
   never rides on the 2.28:1 powder-deep colour alone */
.text-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color .15s ease-out;
}
.text-link:hover { text-decoration-color: var(--ink); color: var(--text); }
.ink-band .text-link, .ink-band-deep .text-link, .cta-band .text-link {
  color: var(--accent-on-band);
  text-decoration-color: rgba(168, 198, 222, 0.5);
}
.ink-band .text-link:hover, .ink-band-deep .text-link:hover, .cta-band .text-link:hover {
  text-decoration-color: var(--bone);
}

/* ------------------------------------------------------------
   06 · HEADER / NAV
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 244, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-hairline);
}
/* .is-scrolled toggled by a 1px IntersectionObserver sentinel */
.site-header.is-scrolled {
  background: rgba(243, 245, 244, 0.96);
  box-shadow: var(--shadow-1);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  transition: padding .25s ease-out;
}
.site-header.is-scrolled .nav { padding-top: 12px; padding-bottom: 12px; }

/* wordmark — PDF p2: minimum 24px on screen; never shrink it */
.wordmark {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.wordmark .dot { color: var(--accent); }
.wordmark-lg { font-size: 28px; }

.nav-links { display: flex; gap: 32px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav-links a { padding: 6px 0; color: var(--ink); position: relative; }
/* hover/active state is a 4px powder-deep dot (decorative echo of the
   wordmark) plus weight — text stays ink, state never rides on colour */
.nav-links > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(.5);
  opacity: 0;
  transition: opacity .15s ease-out, transform .15s ease-out;
}
.nav-links > a:hover::after,
.nav-links > a.active::after { opacity: 1; transform: translateX(-50%) scale(1); }
.nav-links a.active { font-weight: 600; border-bottom: 0; }
.nav .btn { padding: 12px 24px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: var(--canvas);
  border-bottom: var(--border-hairline);
}
.mobile-menu a { padding: 12px 0; font-weight: 600; font-size: 17px; border-bottom: var(--border-hairline); }
.mobile-menu .btn, .mobile-menu a.btn-ink {
  margin-top: var(--s-3);
  border-bottom: 0;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-pill);
  text-align: center;
  padding: 15px 30px;
}

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.nav-drop:hover > a::after, .nav-drop:focus-within > a::after { transform: rotate(225deg) translateY(-1px); }
/* active-state dot for drop toggles (their ::after is the chevron) */
.nav-drop > a.active::before, .nav-drop:hover > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 264px;
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; }
.drop-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.drop-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 15px;
}
.drop-panel a:hover { background: var(--canvas); color: var(--ink); }
.drop-panel a small { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 400; margin-top: 1px; }
.drop-panel .drop-all {
  border-top: var(--border-hairline);
  margin-top: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------
   07 · CHIPS (badges + filter chips)
   ------------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
/* chip on an ink band: ink-deep pill, powder text (10.4:1) */
.ink-band .chip, .ink-band-deep .chip {
  background: var(--ink-deep);
  border-color: var(--line-on-band);
  color: var(--powder);
}

/* filter chips (buttons) — state = fill + dot, never colour alone */
button.chip, .chip[role="button"] { cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out, color .15s ease-out; }
button.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
.chip.is-active::before, .chip[aria-pressed="true"]::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--powder);
  flex-shrink: 0;
}
.chip-count { font-weight: 700; }

/* filter chips scroll on mobile — apply to the chip row wrapper */
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* pulse — one of two permitted infinite animations; means "on air" */
@keyframes smpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: smpulse 1.8s infinite;
  flex-shrink: 0;
}
.pulse-ink { background: var(--powder); }

/* ------------------------------------------------------------
   08 · HERO + PAGE HERO
   Homepage hero lives inside .ink-band (moment one).
   Inner pages use .page-hero: light, type only, full air.
   ------------------------------------------------------------ */

.hero { padding-top: 84px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero .chip { margin-bottom: 28px; }
.hero-lede { margin: 28px 0 38px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.page-hero { padding-top: 84px; padding-bottom: var(--s-8); }
.page-hero .chip { margin-bottom: 26px; }

/* tight variant — crumbs sit comfortably under the nav; shared form of
   the .tl-hero/.aff-hero page-local overrides (apply beside .page-hero) */
.page-hero--tight { padding-top: 10px; }
.page-hero--tight .crumbs { padding-top: 26px; }

/* hero media */
.hero-media { position: relative; }
.hero-media .hatch { aspect-ratio: 4 / 3.4; }

/* hatch frames — filled: cover + inset keyline; empty: mist plate
   with fine ledger rules and an editorial credit caption */
.hatch {
  background: var(--surface-tint);
  background-image: repeating-linear-gradient(-45deg, rgba(20, 32, 46, 0.035) 0 1px, transparent 1px 12px);
  border-radius: var(--r-lg);
  border: var(--border-hairline);
  position: relative;
  overflow: hidden;
}
.hatch::after {
  /* inset keyline so pale photos never bleed into bone */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 46, 0.08);
  pointer-events: none;
  z-index: 2;
}
.hatch > .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* cool-grade fallback for ungraded assets */
  filter: saturate(.92) contrast(1.04);
}
.hatch > .photo ~ .hatch-note { display: none; }
.hatch-note {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-2);
  padding: var(--s-4);
}
.hatch-note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
/* optional slug chip over a filled photo */
.hatch-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 20, 30, 0.78);
  color: var(--bone);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

/* phone bezel — the LIVE broadcast frame (revived) */
.hero-phone {
  position: absolute;
  left: -34px;
  bottom: -40px;
  width: 202px;
  aspect-ratio: 9 / 18.5;
  border-radius: 30px;
  border: 7px solid var(--ink-deep);
  overflow: hidden;
  background: var(--ink-deep);
  box-shadow: 0 0 0 1px var(--bone);
}
.hero-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* main-bezel modifier for the homepage hero: static, 260px, centered */
.hero-phone--main {
  position: relative;
  left: auto;
  bottom: auto;
  width: 260px;
  margin: 0 auto;
}

/* broadcast chrome — 11px caps floor for compact chrome */
.live-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 20, 30, 0.78);
  color: var(--powder);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.live-tag .pulse { width: 6px; height: 6px; }

/* running timecode chip — JS ticks the text content 1s */
.timecode {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 20, 30, 0.78);
  color: var(--powder);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

/* floating stat plates — the only rotation in the system */
.hero-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-2);
}
.hero-float .num { font-size: 20px; }
.hero-float small { font-size: var(--t-label); color: var(--text-2); font-weight: 500; }
.hero-float-record { top: -22px; right: -10px; transform: rotate(1.5deg); }

/* ------------------------------------------------------------
   09 · STATS BAR — the verified ledger
   ------------------------------------------------------------ */

.stats-bar {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding: 40px 0 0;
  border-top: var(--rule);
  margin-top: var(--s-5);
}
.stat + .stat { border-left: 1px solid var(--line); padding-left: var(--s-5); }
.stat .num {
  font-size: var(--t-num);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.05;
  color: var(--text);
}
.stat-label { font-size: var(--t-small); color: var(--text-2); margin-top: 4px; }

.ink-band .stats-bar, .ink-band-deep .stats-bar { border-top-color: rgba(226, 234, 240, 0.2); }
.ink-band .stat + .stat, .ink-band-deep .stat + .stat { border-left-color: var(--line-on-band); }
.ink-band .stat .num { color: var(--accent-on-band); }        /* 9.3:1 */
.ink-band-deep .stat .num { color: var(--powder); }           /* 10.4:1 */
.ink-band .stat-label, .ink-band-deep .stat-label { color: var(--band-text-2); }

/* verified variant — caption row + methodology asterisk */
.stats-bar--verified { position: relative; }
.stats-caption {
  flex-basis: 100%;
  font-size: var(--t-fine);
  font-weight: 500;
  color: var(--text-2);
  order: 99;
  padding-top: var(--s-4);
}
.ink-band .stats-caption, .ink-band-deep .stats-caption { color: var(--band-text-2); }
/* one-line methodology note, sits above the footer */
.stats-note {
  font-size: var(--t-fine);
  color: var(--text-2);
  border-top: var(--rule);
  padding-top: var(--s-4);
  max-width: 720px;
}

/* ------------------------------------------------------------
   10 · RECORD INDEX — the static ruled proof list
   (replaces the .home-mq marquee: reads like a stock listing)
   ------------------------------------------------------------ */

.record-index { border-top: var(--rule); }
.record-row {
  display: grid;
  grid-template-columns: 130px 1fr auto 24px;
  align-items: center;
  gap: var(--s-5);
  padding: 18px 10px;
  border-bottom: var(--rule);
  transition: background .15s ease-out;
}
.record-row:hover { background: var(--surface-tint); }
.record-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-tint);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  justify-self: start;
}
.record-brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.record-metric { font-weight: 700; font-size: 17px; color: var(--text); }
.record-arrow { color: var(--text-2); transition: transform .18s ease-out; }
.record-row:hover .record-arrow { transform: translateX(4px); color: var(--text); }

/* ------------------------------------------------------------
   11 · CASE TRIO — record (ink) · growth (powder) · partner (mist)
   PDF p7 semantics. Solid text only; no opacity tints; no lift.
   ------------------------------------------------------------ */

.case-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.case-card {
  border-radius: var(--r-lg);
  padding: 34px 32px 30px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease-out;
}
.case-ink { background: var(--band); color: var(--band-text); }
.case-ink .label { color: var(--powder); }
.case-ink .case-sub { color: var(--band-text-2); }
.case-ink .case-num { color: var(--powder); }                  /* 9.3:1 */
.case-powder { background: var(--powder); color: var(--ink); } /* 9.3:1, solid */
.case-powder .label { color: var(--ink); opacity: 1; }
.case-powder .case-sub { color: var(--ink); opacity: 1; }
.case-powder .dot { color: var(--white); }                     /* PDF p2: off-white on powder */
.case-mist { background: var(--surface-tint); color: var(--ink); }
.case-mist .case-sub { color: var(--ink); }                    /* slate/mist 4.09 fails at 14.5px */
.case-num {
  font-weight: 700;
  font-size: var(--t-num-hero);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: auto 0 14px;
}
.case-headline { font-weight: 700; font-size: 27px; line-height: 1.12; letter-spacing: -0.02em; margin: auto 0 14px; }
.case-sub { font-size: 14.5px; line-height: 1.6; }
.case-card .wordmark-sm { font-weight: 700; font-size: 17px; letter-spacing: -0.035em; margin-top: 26px; }
.case-card .label { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------
   12 · SERVICE CARDS
   ------------------------------------------------------------ */

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: border-color .2s ease-out;
}
.service-card:hover { border-color: var(--ink); }
.service-card h3 { font-weight: 600; font-size: var(--t-heading); letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.service-num { font-weight: 700; font-size: var(--t-fine); color: var(--text-2); margin-bottom: 16px; display: block; }

/* ------------------------------------------------------------
   13 · INK BANDS — the ceremonial moments (max three per page)
   Devices reserved for bands: 1px powder top rule at 20%,
   one 6%-alpha powder glow. Explicit foregrounds kill the
   inherited-colour bugs on /about/ and /services/tiktok-shop-management/.
   ------------------------------------------------------------ */

.ink-band {
  background: var(--band);
  color: var(--band-text);
  position: relative;
  z-index: 0;
}
.ink-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1136px, calc(100% - 64px));
  height: 1px;
  background: rgba(168, 198, 222, 0.2);
  z-index: -1;
}
.ink-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(168, 198, 222, 0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.ink-band .display, .ink-band h2, .ink-band h3 { color: var(--band-text); }
.ink-band .lede { color: var(--band-text-2); opacity: 1; }     /* 13.5:1 */
.ink-band .lede strong, .ink-band-deep .lede strong,
.cta-band .lede strong { color: var(--band-text); }
/* white surfaces inside a band keep light-surface foregrounds */
.ink-band .panel, .ink-band-deep .panel,
.ink-band .service-card, .ink-band-deep .service-card { color: var(--text); }
/* .ink-band h3 (above) washes white-card titles bone-on-white —
   card headings stay ink on their light surface */
.ink-band .service-card h3 { color: var(--text); }
.ink-band-deep .service-card h3 { color: var(--text); }
.ink-band .panel .check, .ink-band-deep .panel .check { color: var(--text-2); }
.ink-band .panel .check .tick, .ink-band-deep .panel .check .tick { color: var(--accent); }

.ink-band-deep {
  background: var(--band-deep);
  color: var(--band-text);                                     /* 16.9:1 */
  position: relative;
  z-index: 0;
}
.ink-band-deep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1136px, calc(100% - 64px));
  height: 1px;
  background: rgba(168, 198, 222, 0.2);
  z-index: -1;
}
.ink-band-deep .display, .ink-band-deep h2, .ink-band-deep h3 { color: var(--band-text); }
.ink-band-deep .lede { color: var(--band-text-2); opacity: 1; }

/* ------------------------------------------------------------
   14 · TILES / GALLERY / LOGO ROW
   ------------------------------------------------------------ */

.tile-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.tile { border-radius: 16px; overflow: hidden; position: relative; }
.tile .hatch { border-radius: 0; border: 0; height: 100%; }
.tile-tall { aspect-ratio: 3 / 4; }
.tile-wide { aspect-ratio: 16 / 10; }
.tile-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  align-items: center;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.logo-row span { opacity: 1; }

/* ------------------------------------------------------------
   15 · PANELS
   Panels are furniture: hairline, no shadow, no hover motion.
   ------------------------------------------------------------ */

.panel {
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.panel-mist { background: var(--surface-tint); border-color: transparent; }
/* on mist, body-size slate fails (4.09) — all body text reads ink */
.panel-mist, .panel-mist p { color: var(--text); }

/* ledger-line panel header: caps label left, tabular figure right */
.panel-num {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: var(--rule);
}
.panel-num .label { flex: 1; }
.panel-num .num { font-size: 20px; }

.checklist { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.panel-mist .check { color: var(--text); }
.check .tick { color: var(--accent); font-weight: 700; }       /* decorative glyph */
.ink-band .check, .ink-band-deep .check { color: var(--band-text-2); }
.ink-band .check .tick, .ink-band-deep .check .tick { color: var(--powder); }

/* ------------------------------------------------------------
   16 · POST CARDS — metric-first ledger cards (blog + work)
   No lift, no hover shadow; border animates mist -> ink.
   ------------------------------------------------------------ */

.post-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.post-card {
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease-out;
}
.post-card:hover { border-color: var(--ink); }
.post-card .hatch { border-radius: 0; border: 0; aspect-ratio: 16 / 9; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* ledger top row: the brand label opens the card on a hairline */
.post-body > .label {
  padding-bottom: var(--s-3);
  border-bottom: var(--rule);
  margin-bottom: 2px;
}
/* optional head wrapper (migration): label left, tags right, one rule */
.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: var(--rule);
  margin-bottom: 2px;
}
.post-head .label { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);                 /* powder-deep on mist (1.9:1) is banned */
  background: var(--surface-tint);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.post-card h3 { font-weight: 600; font-size: var(--t-heading); line-height: 1.3; letter-spacing: -0.015em; }
.post-card h3::after { content: "."; color: var(--accent); }
.post-card p { font-size: var(--t-small); line-height: 1.6; color: var(--text-2); }
.post-meta { margin-top: auto; font-size: 12.5px; color: var(--text-2); }
.post-meta a, .post-meta strong { font-weight: 600; color: var(--text); }
/* the promoted numeral — always the largest element on the card */
.post-card .post-num {
  font-weight: 700;
  font-size: var(--t-num);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.post-card .post-num::after { content: "."; color: var(--accent); }
/* arrow affordance inside meta links */
.post-card .arrow { display: inline-block; transition: transform .18s ease-out; }
.post-card:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   17 · QUOTES
   ------------------------------------------------------------ */

.quote-card {
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-lg);
  padding: 30px 32px;
}
.quote-card .q { font-weight: 500; font-size: var(--t-heading); line-height: 1.55; color: var(--text); }
.quote-card .q::before { content: "\201C"; color: var(--accent); font-weight: 700; }
.quote-card .q::after { content: "\201D"; color: var(--accent); font-weight: 700; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--powder);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--t-small);
  flex-shrink: 0;
  overflow: hidden;
}
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-who .who-name { font-weight: 600; font-size: 14.5px; }
.quote-who .who-role { font-size: var(--t-fine); color: var(--text-2); }
/* right-aligned tabular proof chip: <span class="quote-proof">£10m+ month</span> */
.quote-proof {
  margin-left: auto;
  font-weight: 700;
  font-size: var(--t-small);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
  background: var(--surface-tint);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   18 · PROSE / CRUMBS / FAQ
   ------------------------------------------------------------ */

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--t-fine);
  font-weight: 500;
  color: var(--text-2);
  padding-top: 26px;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--accent); }         /* decorative separator */
.crumbs .here { font-weight: 600; color: var(--text); }

.prose { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--text); }
.prose h2 { font-weight: 700; font-size: var(--t-title); letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 16px; color: var(--text); }
.prose h3 { font-weight: 600; font-size: var(--t-heading); letter-spacing: -0.015em; margin: 34px 0 12px; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color .15s ease-out;
}
.prose a:hover { text-decoration-color: var(--ink); }
/* buttons inside prose keep their button skin — .prose a (0,1,1) otherwise
   repaints a .btn-ink (0,1,0) CTA ink-on-ink (invisible) and underlines it */
.prose .btn { text-decoration: none; }
.prose .btn-ink { color: var(--bone); }
.prose .btn-bone { color: var(--ink); }
.prose .btn-ghost { color: var(--ink); }
.prose .btn-ghost:hover { color: var(--bone); }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px var(--s-5);
  background: transparent;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}
.prose .callout-num { font-weight: 700; font-size: 40px; letter-spacing: -0.03em; color: var(--text); display: block; line-height: 1.1; }

.faq { max-width: 820px; }
.faq details {
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); max-width: 700px; }

/* ------------------------------------------------------------
   19 · CAPABILITY BLOCKS
   ------------------------------------------------------------ */

.cap-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; border-top: var(--rule); }
.cap-block:last-of-type { border-bottom: var(--rule); }
.cap-num { font-weight: 700; font-size: 15px; color: var(--text-2); display: block; margin-bottom: 12px; }
.cap-block h3 { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 12px; }
.cap-block .cap-body { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.cap-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.cap-list span {
  font-weight: 500;
  font-size: 13.5px;
  background: var(--surface);
  border: var(--border-hairline);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  color: var(--text);
}
.cap-block .hatch { aspect-ratio: 16 / 11; }

/* ------------------------------------------------------------
   20 · CTA BAND
   One per page, always last before the footer. No drop shadow.
   ------------------------------------------------------------ */

.cta-band {
  background: var(--band);
  color: var(--band-text);
  border-radius: var(--r-xl);
  padding: var(--s-9) 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(168, 198, 222, 0.2);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(168, 198, 222, 0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.cta-band .lede { margin: 18px auto 34px; color: var(--band-text-2); opacity: 1; }
/* reassurance line beneath the button */
.cta-reassure { margin-top: var(--s-4); font-size: var(--t-fine); color: var(--band-text-2); }

/* ------------------------------------------------------------
   21 · SHOWREEL — the LIVE moment (manual, snap, counted)
   Replaces the .home-reel marquee. Videos preload=none + poster,
   played by JS only while visible AND intended; max one at once.
   ------------------------------------------------------------ */

.showreel { position: relative; }
.showreel-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--s-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  scrollbar-width: none;
}
.showreel-rail::-webkit-scrollbar { display: none; }
.showreel-tile {
  position: relative;
  flex: none;
  width: 236px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--ink-deep);
}
.showreel-tile video, .showreel-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.showreel-tile .live-tag { top: 14px; left: 14px; }
.showreel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(12, 20, 30, 0.82));
  color: var(--bone);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  z-index: 2;
}
/* stat tiles inside the reel keep the p7 card semantics */
.showreel-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: var(--powder);
  color: var(--ink);
  padding: 22px 20px;
}
.showreel-stat .num { font-size: clamp(36px, 3.2vw, 46px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.showreel-stat p { font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.showreel-stat--ink { background: var(--ink-deep); color: var(--bone); }
.showreel-stat--ink .num { color: var(--powder); }
.showreel-stat--ink p { color: var(--mist); }

.showreel-controls {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.showreel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-on-band);
  background: transparent;
  color: var(--powder);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease-out, background .15s ease-out;
}
.showreel-btn:hover { border-color: var(--powder); }
.showreel-counter {
  font-weight: 600;
  font-size: var(--t-fine);
  color: var(--powder);
  letter-spacing: 0.06em;
}
.showreel-hint {
  margin-left: auto;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-text-2);
}

/* ------------------------------------------------------------
   21b · DRAG RAIL — pointer-drag enhancement for scroll rails
   Opt-in via [data-drag-rail]; site.js drives it: mouse drag
   scrolls the rail, arrow keys step it one card at a time,
   touch keeps native scroll + snap. .is-dragging suspends
   snap and smooth-scroll so scrollLeft tracks the pointer 1:1.
   ------------------------------------------------------------ */

[data-drag-rail] { cursor: grab; }
[data-drag-rail].is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
  -webkit-user-select: none;
}

/* ------------------------------------------------------------
   22 · FORMS — the lead-gen product
   Also skins existing page fields via [class*="-field"]
   (.contact-field, .sots-field, .playbook-field, ...).
   ------------------------------------------------------------ */

.field, [class*="-field"] { display: block; margin-bottom: var(--s-4); }
.field label, [class*="-field"] label {
  display: block;
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s-2);
  transition: color .2s ease-out;
}
.field input, .field select, .field textarea,
[class*="-field"] input, [class*="-field"] select, [class*="-field"] textarea {
  width: 100%;
  min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;              /* prevents iOS zoom */
  line-height: 1.4;
  color: var(--text);
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea, [class*="-field"] textarea { min-height: 140px; resize: vertical; }
.field ::placeholder, [class*="-field"] ::placeholder { color: var(--text-2); opacity: 1; }

/* select chevron */
.field select, [class*="-field"] select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314202E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

/* focus choreography: border mist->ink + powder halo + label turns
   ink, one 200ms move. Ink border is the 3:1 state carrier. */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
[class*="-field"] input:focus-visible, [class*="-field"] select:focus-visible, [class*="-field"] textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(168, 198, 222, 0.4);
}
.field:focus-within > label, [class*="-field"]:focus-within > label { color: var(--text); }

/* checkbox / radio */
.field input[type="checkbox"], .field input[type="radio"],
[class*="-field"] input[type="checkbox"], [class*="-field"] input[type="radio"] {
  width: 20px; height: 20px;
  min-height: 0;
  padding: 0;
  accent-color: var(--ink);
  vertical-align: -4px;
  appearance: auto;
  -webkit-appearance: auto;
}
.field-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: var(--s-4);
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--text-2);
}
.field-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; flex-shrink: 0; }

/* error — border + icon + message, never colour alone.
   Wire aria-describedby from the input to the message id. */
.field.has-error input, .field.has-error select, .field.has-error textarea,
[class*="-field"].has-error input, [class*="-field"].has-error textarea {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-2);
  font-weight: 600;
  font-size: var(--t-fine);
  color: var(--text);
}
.field-error::before {
  content: "!";
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* form-level error — injected by js/lead.js on failed submits */
.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  font-weight: 600;
  font-size: var(--t-fine);
  color: var(--text);
}
.form-error::before {
  content: "!";
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-error[hidden] { display: none; }

/* success */
.field-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-2);
  font-weight: 500;
  font-size: var(--t-fine);
  color: var(--text-2);
}
.field-success::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.form-success {
  background: var(--surface-tint);
  border-radius: var(--r-md);
  padding: var(--s-5);
  font-size: 15px;
  color: var(--text);
}

/* privacy line under the submit */
.form-note { margin-top: var(--s-3); font-size: var(--t-fine); color: var(--text-2); }

/* gated-offer panel — HubSpot mechanics, Somerce skin:
   caps label + title + itemised contents + 3 fields + verb submit */
.offer-panel { background: var(--surface); border: var(--border-hairline); border-radius: var(--r-lg); padding: var(--s-6); }
.offer-panel .checklist { margin-top: var(--s-4); margin-bottom: var(--s-5); }
.offer-proof { font-size: var(--t-fine); font-weight: 500; color: var(--text-2); margin-top: var(--s-3); }

/* booking slots — custom booking flow picker */
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.booking-slots .slot {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t-small);
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: 13px 10px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease-out, background .15s ease-out, color .15s ease-out;
}
.booking-slots .slot:hover { border-color: var(--ink); }
.booking-slots .slot.is-active,
.booking-slots .slot[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
.booking-slots .slot:disabled,
.booking-slots .slot[aria-disabled="true"] {
  background: var(--surface-tint);
  border-color: transparent;
  color: var(--slate);
  cursor: not-allowed;
}
.booking-day-label { font-weight: 600; font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin: var(--s-4) 0 var(--s-2); }

/* forms: full-width submit under 640 handled in media queries */

/* ------------------------------------------------------------
   23 · CTA DOCK — mobile-only sticky conversion bar
   JS adds .is-visible after 55% scroll depth; hidden on /contact/.
   ------------------------------------------------------------ */

.cta-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: var(--s-4);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(243, 245, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: var(--rule);
  box-shadow: var(--shadow-1);
  transform: translateY(100%);
  transition: transform .25s ease-out;
}
.cta-dock.is-visible { transform: translateY(0); }
.cta-dock .btn { flex: 1; }
.cta-dock-proof {
  font-weight: 600;
  font-size: var(--t-fine);
  color: var(--text);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   24 · FOOTER — band-deep, explicit foregrounds
   The 5-column grid moves here from 70 inline copies.
   ------------------------------------------------------------ */

.footer { background: var(--band-deep); color: var(--band-text); margin-top: 104px; }
.footer .wordmark { color: var(--band-text); }
.footer .wordmark .dot { color: var(--powder); }

/* conversion band above the columns */
.footer-cta {
  border-bottom: 1px solid rgba(226, 234, 240, 0.12);
  padding: 72px 0 64px;
}
.footer-cta .display { color: var(--band-text); }
.footer-cta-row { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-6); }
.footer-cta-email {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--powder);                                        /* 10.4:1 */
}
.footer-cta-email:hover { color: var(--band-text); }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 72px 0 56px;
}
.footer-tagline { font-size: 14.5px; line-height: 1.65; color: var(--band-text-2); margin-top: 14px; max-width: 280px; }
.footer-col-title {
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--powder);
  margin-bottom: 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--band-text); }
.footer-col a { color: var(--band-text); }                     /* 16.9:1 */
.footer-col a:hover { color: var(--powder); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(226, 234, 240, 0.12);
  font-size: var(--t-fine);
  color: var(--band-text-2);
}
.footer-bottom a:hover { color: var(--powder); }

/* ------------------------------------------------------------
   24b · CARD LIFT — linked-card affordance utility
   Apply to any block-level (or grid/flex-child) <a> card or
   panel: lift + shadow on hover, border darkens if one exists,
   and a trailing .arrow steps right. Mirrors the homepage
   .home-rec-card / .home-case behaviour.
   ------------------------------------------------------------ */

.card-lift { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.card-lift:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card-lift .arrow { display: inline-block; transition: transform .18s ease; }
.card-lift:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   25 · MOTION
   Budget: reveals, the landing dot, count-ups, one user-driven
   showreel, the pulse, the timecode. Nothing else moves.
   ------------------------------------------------------------ */

/* hidden state is gated on html.js (added by the first line of site.js):
   with JavaScript off, .reveal content renders fully visible */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in, html.js .reveal.in { opacity: 1; transform: none; }
.reveal-2 { transition-delay: .08s; }
.reveal-3 { transition-delay: .16s; }
.reveal-4 { transition-delay: .24s; }

/* the landing dot — the headline lands, then the full stop is placed */
html.js .reveal .display .dot {
  display: inline-block;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s cubic-bezier(.34, 1.56, .64, 1) .45s, transform .3s cubic-bezier(.34, 1.56, .64, 1) .45s;
}
.reveal.in .display .dot, html.js .reveal.in .display .dot { opacity: 1; transform: scale(1); }

/* ------------------------------------------------------------
   26 · REDUCED MOTION — absolute
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal .display .dot,
  html.js .reveal, html.js .reveal .display .dot { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none !important; }
  .btn.is-loading::after { animation: none; }
  .showreel-rail, [data-drag-rail] { scroll-behavior: auto; }
  .site-header .nav, .cta-dock, .btn, .record-arrow, .post-card .arrow,
  .btn-arrow .arrow, .card-lift, .card-lift .arrow { transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------
   27 · RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { min-height: 0; }
  .case-num, .case-headline { margin-top: 26px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-phone { left: 10px; bottom: -30px; }
  .hero-phone--main { left: auto; bottom: auto; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .cap-block { grid-template-columns: 1fr; gap: 28px; }
  .cta-dock { display: flex; }
  .record-row { grid-template-columns: 110px 1fr auto 20px; gap: var(--s-4); }
}

@media (max-width: 640px) {
  .container, .container-narrow, .nav { padding-left: 20px; padding-right: 20px; }
  .section-pad { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .hero { padding-top: 52px; }
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat .num { font-size: 34px; }
  .service-grid, .tile-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-cta { padding: 56px 0 48px; }
  .cta-band { padding: 56px 24px; }
  .record-row { grid-template-columns: 1fr auto; gap: 8px var(--s-4); padding: 16px 6px; }
  .record-tag { grid-row: 1; }
  .record-metric { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .record-brand { grid-column: 1; grid-row: 2; }
  .record-arrow { display: none; }
  .showreel-tile { width: 176px; }
  /* filter chips: one scrolling row */
  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: var(--s-2);
    scrollbar-width: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row .chip { flex: none; scroll-snap-align: start; }
  /* forms: full-width submit */
  form .btn[type="submit"], form button[type="submit"] { width: 100%; }
  .booking-slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ------------------------------------------------------------
   28 · PRINT
   ------------------------------------------------------------ */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .nav-toggle, .mobile-menu, .cta-dock, .skip-link,
  .showreel-controls, .btn, .cta-band, .footer-cta, video { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .ink-band, .ink-band-deep, .footer { background: #fff !important; color: #000 !important; }
  .ink-band::before, .ink-band::after, .ink-band-deep::before { display: none; }
  .ink-band .display, .ink-band-deep .display, .footer .wordmark,
  .ink-band .lede, .ink-band-deep .lede, .ink-band .stat .num,
  .footer-col, .footer-col a, .footer-col-title, .footer-bottom { color: #000 !important; }
  .prose a::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 12px; }
  .post-card, .panel, .case-card, .quote-card { break-inside: avoid; border: 1px solid #ccc; }
}
