/* ==========================================================================
   HAMMERHEAD
   Desktop layout is the 1280px Figma frame, scaled fluidly with --u
   (1 design px = --u). Tablet / mobile re-stack the same components.
   Breakpoints: ≥900 desktop (scaled) · 640-899 tablet · <640 mobile
   ========================================================================== */

/* ---------- Fonts (files live in /assets/fonts) ---------- */
@font-face { font-family: "Host Grotesk"; src: url("assets/fonts/HostGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("assets/fonts/HostGrotesk-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("assets/fonts/HKGrotesk-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("assets/fonts/HKGrotesk-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("assets/fonts/HKGrotesk-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("assets/fonts/HKGrotesk-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --white: #fdfdfd;
  --dark: #252525;
  --blue: #4963f6;
  --line: rgba(37, 37, 37, .6);
  --lc: var(--line);

  --f-head: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "HK Grotesk", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, .84, .24, 1);

  /* 1 design px (1280 frame), capped at a 1600px wide layout */
  --w: min(100vw, 1600px);
  --u: calc(var(--w) / 1280);

  --m: calc(32 * var(--u));                     /* page margin */
  --fs-display: calc(40 * var(--u));
  --fs-title: calc(30 * var(--u));
  --fs-body: max(14px, calc(20 * var(--u)));
  --fs-label: max(12px, calc(14 * var(--u)));
  --fs-stat: calc(45 * var(--u));
  --lh: 1.05;
  --row-pad: calc(32 * var(--u));

  /* shared spacing rhythm - reused so similar blocks (label→heading, label→rows,
     section bottom padding) keep the exact same gap everywhere */
  --gap-label: calc(32 * var(--u));
  --gap-head: calc(54 * var(--u));
  --gap-rows: max(32px, calc(58 * var(--u)));
  --gap-section-b: max(48px, calc(80 * var(--u)));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--dark);
  font: 400 var(--fs-body) / var(--lh) var(--f-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
section[id], footer[id] { scroll-margin-top: 0; }

.wrap { position: relative; max-width: 1600px; margin: 0 auto; }
.br-d { display: inline; }

.label { font-family: var(--f-body); font-weight: 500; font-size: var(--fs-label); line-height: 1.4; }
.label--blue { color: var(--blue); }
.label--white { color: var(--white); }
.label--lc { text-transform: lowercase; }
.sec-label { padding: var(--gap-label) var(--m) 0; }

.display { font-family: var(--f-head); font-weight: 400; font-size: var(--fs-display); line-height: .95; }
.title { font-family: var(--f-head); font-weight: 400; font-size: var(--fs-title); line-height: 1.05; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .32em;
  padding: max(8px, calc(10 * var(--u))) max(16px, calc(20 * var(--u)));
  border-radius: 100px;
  font: 500 max(14px, calc(20 * var(--u))) / .9 var(--f-body);
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn .arw { width: 1.05em; height: .6em; flex: none; transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(.3em); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: #3a52e0; }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--dark); color: var(--white); }

/* ---------- Case-study photo CTA ("event's social media") ---------- */
.media__cta { position: absolute; left: var(--m); bottom: max(24px, calc(24 * var(--u))); z-index: 2; }
.copy__cta { padding-top: max(28px, calc(40 * var(--u))); }

/* ==========================================================================
   Scroll-drawn lines (progress set from JS: --p top line, --pb bottom line)
   ========================================================================== */
.ln { position: relative; }
.ln::before, .ln--end::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--lc);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  pointer-events: none;
}
.ln::before { top: 0; }
.ln--end::after { bottom: 0; transform: scaleX(var(--pb, 0)); }
html:not(.js) .ln { --p: 1; --pb: 1; }

/* ==========================================================================
   Appear animations
   ========================================================================== */
.js [data-reveal=""] {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.js [data-reveal=""].is-in { opacity: 1; transform: none; }

.js [data-reveal="kids"] > * {
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), transform 1s var(--ease) calc(var(--i, 0) * 90ms);
}
.js [data-reveal="kids"].is-in > * { opacity: 1; transform: none; }

/* word-by-word mask reveal for headlines */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.js .wi { display: inline-block; transform: translate3d(0, 112%, 0); transition: transform 1.05s var(--ease) calc(var(--i, 0) * 38ms + var(--d0, 0s)); will-change: transform; }
.js .is-in > .wi, .js .is-in .wi { transform: none; }

/* photos: wipe down + settle */
.js .media img { clip-path: inset(0 0 100% 0); transform: scale(calc(var(--zoom, 1) * 1.14)); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease); }
.js .media.is-in img { clip-path: inset(0 0 0 0); transform: scale(var(--zoom, 1)); }

/* hero intro */
.js [data-fade] { opacity: 0; transition: opacity 1.2s ease .5s, transform 1.2s var(--ease) .5s; }
.js [data-fade].is-in { opacity: 1; }
.js .hero__cta[data-fade] { transform: translate3d(0, 16px, 0); }
.js .hero__cta[data-fade].is-in { transform: none; }
.js [data-pop] { opacity: 0; scale: .82; transition: opacity .8s ease var(--pd, .9s), scale 1s var(--ease) var(--pd, .9s); }
.js [data-pop].is-in { opacity: 1; scale: 1; }
.js [data-pop-in] { opacity: 0; scale: .6; transition: opacity .6s ease calc(var(--i, 0) * 100ms), scale .8s var(--ease) calc(var(--i, 0) * 100ms); }
.js [data-pop-in].is-in { opacity: 1; scale: 1; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: var(--white);
  height: max(560px, min(100svh, calc(var(--w) * .6266)));
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(20, 16, 16, .32), rgba(20, 16, 16, 0) 34%),
    radial-gradient(53.9% 49.7% at 50% 60.7%, rgba(38, 33, 33, 0) 43.3%, rgba(38, 33, 33, .6) 100%);
}
.hero__in { position: absolute; inset: 0; max-width: 1600px; margin: 0 auto; }

.hero__logo { position: absolute; left: var(--m); top: calc(30 * var(--u)); width: max(24px, calc(32 * var(--u))); }
.hero__logo img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.hero__logo:hover img { transform: scale(1.08); }

.hero__meta, .hero__nav {
  position: absolute; top: calc(25 * var(--u));
  font-weight: 500; font-size: var(--fs-label); line-height: 2.05;
}
.hero__meta { left: calc(837 * var(--u)); }
.hero__nav { left: calc(1145 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; }
.hero__nav a { position: relative; }
.hero__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.hero__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.hero__title {
  position: absolute; left: var(--m); top: calc(126 * var(--u));
  max-width: calc(730 * var(--u));
}

.pill { position: absolute; will-change: transform; }
.pill--a { left: 61.6%; top: 37.7%; }
.pill--b { left: 25.8%; top: 45%; }
.pill--c { left: 72.8%; top: 57.9%; }
.pill__in {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: max(7px, calc(10 * var(--u)));
  border-radius: 14px;
  background: rgba(253, 253, 253, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--dark);
  font-size: var(--fs-label); line-height: 18px; letter-spacing: -.01em; text-transform: uppercase;
  animation: bob 6s ease-in-out infinite; animation-delay: var(--fd, 0s);
}
.pill__in img { width: 20px; height: 20px; flex: none; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }

.hero__cta { position: absolute; left: var(--m); bottom: calc(40 * var(--u)); }

.menu-btn, .menu { display: none; }

/* ==========================================================================
   MARQUEE (service slider) - endless
   ========================================================================== */
.marquee { background: var(--blue); color: var(--white); height: 50px; overflow: hidden; display: flex; align-items: center; }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee 36s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 20px; padding-right: 20px; flex: none; }
.marquee__group span { font-size: 18px; line-height: 1.2; white-space: nowrap; }
.marquee__group img { width: 20px; height: 20px; flex: none; }
@keyframes marquee { to { transform: translate3d(-25%, 0, 0); } }

/* ==========================================================================
   Shared two-column split (photo bleeds to the edge, copy sits on the grid)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); align-items: stretch; }
.media { position: relative; overflow: hidden; min-height: calc(280 * var(--u)); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.media .label { position: absolute; top: calc(32 * var(--u)); left: var(--m); z-index: 1; }

.copy { min-width: 0; }
.split--copy-right .copy { padding: calc(20 * var(--u)) var(--m) 0 0; }
.split--copy-left .copy { padding: calc(20 * var(--u)) 0 0 var(--m); }
.copy__title { margin-bottom: max(20px, calc(28 * var(--u))); }

.crow { padding: var(--row-pad) 0; }
.crow > .title + p, .crow > .title + .stats { margin-top: 10px; }
.crow > p { font-size: var(--fs-body); line-height: var(--lh); }

/* ---------- Case study ---------- */
.case { background: var(--white); padding-bottom: var(--gap-section-b); }
.case__label { padding: calc(32 * var(--u)) var(--m) 0; }
.case__lead { margin: calc(54 * var(--u)) var(--m) calc(93 * var(--u)); max-width: calc(1102 * var(--u)); }
.case__blocks { display: flex; flex-direction: column; gap: calc(43 * var(--u)); }
.split--result .copy { padding-top: calc(38 * var(--u)); }

.chips { display: flex; flex-direction: column; gap: 10px; margin-top: max(12px, calc(17 * var(--u))); }
.chip {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: min(100%, calc(538 * var(--u)));
  padding: max(8px, calc(10 * var(--u))); border-radius: 14px; background: rgba(73, 99, 246, .2);
  font-size: max(14px, calc(18 * var(--u))); line-height: 18px; letter-spacing: -.01em;
}
.chip__dot { position: relative; flex: none; width: 20px; height: 20px; }
.chip__dot::before { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--blue); }

/* big numbers */
.stats { display: flex; flex-direction: column; gap: calc(40 * var(--u)); }
.stats__row { display: flex; gap: calc(30 * var(--u)); }
.stats--inline { flex-direction: row; gap: calc(32 * var(--u)); margin-top: calc(30 * var(--u)); }
.stat__n { font-family: var(--f-head); font-size: var(--fs-stat); line-height: .9; color: var(--blue); white-space: nowrap; }
.stat__l { font-size: var(--fs-body); line-height: 1.05; white-space: nowrap; text-wrap: balance; }

/* ---------- Solutions / How rows ---------- */
.rows { margin-top: var(--gap-rows); }
/* Short rows: number, title and description share one horizontal centre line.
   Long rows (description wraps past two lines, flagged .row--top by main.js, .row--tall as no-JS fallback):
   all three start from the same top edge instead. */
.row { --row-pt: calc(18.5 * var(--u)); display: grid; grid-template-columns: calc(184 * var(--u)) 1fr calc(355 * var(--u)); align-items: center; margin: 0 var(--m); min-height: calc(79 * var(--u)); }
.row__n, .row__t { display: flex; align-items: center; }
.row__n { font-size: var(--fs-body); }
.row__d { padding: var(--row-pt) 0; font-size: var(--fs-body); line-height: var(--lh); }
.row__note { margin-top: 10px; font-style: italic; }
@media (min-width: 640px) {
  .row--top, .row--tall { align-items: start; }
  .row--top .row__n, .row--top .row__t, .row--tall .row__n, .row--tall .row__t { align-items: flex-start; padding-top: var(--row-pt); }
}

.sol { background: var(--white); padding-bottom: var(--gap-section-b); }
.sol__head { display: grid; grid-template-columns: 1fr calc(310 * var(--u)); align-items: start; margin: calc(54 * var(--u)) var(--m) 0; }
.sol__head .display { max-width: calc(800 * var(--u)); }
.sol__aside { padding-top: calc(10 * var(--u)); font-size: var(--fs-body); }
.sol__foot { margin: calc(47 * var(--u)) var(--m) 0; font-size: var(--fs-body); }

/* ---------- Founder ---------- */
.founder { background: var(--white); }
.founder .copy { padding-top: calc(30 * var(--u)); padding-bottom: var(--gap-section-b); }

/* ---------- Why ---------- */
.why { position: relative; overflow: hidden; height: calc(567 * var(--u)); background: #0b0c0e; color: var(--white); }
.why__bg { position: absolute; inset: 0; overflow: hidden; }
.why__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 32%; transform: scale(1.14); will-change: transform; }
.why__in { position: relative; height: 100%; }
.why__label { position: absolute; top: 0; left: 0; }
.why__copy {
  position: absolute; left: calc(318 * var(--u)); right: var(--m); top: calc(38 * var(--u)); bottom: calc(32 * var(--u));
  display: flex; flex-direction: column; justify-content: space-between;
}
.why__p { margin-top: calc(25 * var(--u)); max-width: calc(812 * var(--u)); font-size: var(--fs-body); line-height: 1.2; }
.why__credit { max-width: calc(760 * var(--u)); font-size: var(--fs-body); line-height: 1.2; }
.why__credit a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--white); padding-bottom: var(--gap-section-b); }
.rv { margin: var(--gap-rows) var(--m) 0; }
.rv__row { display: grid; grid-template-columns: calc(517 * var(--u)) 1fr; padding: calc(20 * var(--u)) 0; align-items: start; }
.rv__who { display: flex; align-items: center; gap: calc(21 * var(--u)); min-height: calc(71 * var(--u)); }
.rv__ava { width: max(48px, calc(71 * var(--u))); height: max(48px, calc(71 * var(--u))); border-radius: 50%; object-fit: cover; flex: none; }
.rv__role { margin-top: 2px; font-style: italic; font-size: var(--fs-body); line-height: 1.05; }
.rv__role--muted { color: rgba(37, 37, 37, .5); }
.rv__quote p { font-size: var(--fs-body); line-height: var(--lh); }
.rv__quote p + p { margin-top: 1.05em; }
.rv__quote strong { font-weight: 700; }
.rv__row--brands { align-items: start; }
.brands { display: grid; grid-template-columns: calc(285 * var(--u)) 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); row-gap: 10px; align-content: start; }
.brands li { font-weight: 500; color: var(--blue); font-size: var(--fs-body); line-height: 1.05; }
.brands li:nth-child(n+5) { grid-column: 2; }

/* ---------- How it works + CTA ---------- */
.how { background: var(--blue); color: var(--white); --lc: rgba(253, 253, 253, .6); padding-bottom: var(--gap-section-b); }
/* two pairs: [heading + consult button], then [not-ready text + audit button] */
.cta { display: flex; flex-direction: column; gap: calc(31 * var(--u)); margin: 0 var(--m); padding: calc(45 * var(--u)) 0 calc(50 * var(--u)); }
.cta__a, .cta__b { display: grid; grid-template-columns: calc(184 * var(--u)) 1fr calc(355 * var(--u)); align-items: start; }
.cta__a .display, .cta__sub { grid-column: 1 / 3; }
.cta__a .btn, .cta__b .btn { grid-column: 3; justify-self: start; margin-top: calc(10 * var(--u)); }
.cta__sub p { margin-top: 10px; max-width: calc(470 * var(--u)); font-size: var(--fs-body); line-height: var(--lh); }
.cta__end { height: 1px; margin: 0 var(--m); }

/* ==========================================================================
   CONTACT (video background)
   ========================================================================== */
.contact { position: relative; overflow: hidden; height: calc(567 * var(--u)); background: #232323; color: var(--white); }
.contact__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity 1.4s ease; }
.contact__video.is-live { opacity: 1; }
.contact__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(20, 20, 20, .22), rgba(20, 20, 20, 0) 45%); }
.contact__in { position: relative; height: 100%; }
.contact__label { position: absolute; top: calc(32 * var(--u)); left: var(--m); }
.social { position: absolute; top: calc(32 * var(--u)); left: calc(342 * var(--u)); display: flex; gap: calc(19 * var(--u)); }
.social a {
  display: grid; place-items: center; width: max(44px, calc(53 * var(--u))); height: max(44px, calc(53 * var(--u)));
  border-radius: 50%; background: var(--white); color: var(--dark);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.social a:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }
.social svg { width: 52%; height: 52%; }
.contact__about { position: absolute; top: calc(32 * var(--u)); left: calc(893 * var(--u)); width: calc(355 * var(--u)); font-size: var(--fs-body); line-height: var(--lh); }
/* The visible letters of "Hammerhead" are 5.913em wide (Host Grotesk Light, -0.02em tracking) with a
   0.078em side bearing on the H, so this sizes and shifts the word until the letters run exactly
   from the left page margin to the right page margin, in line with every other element. */
.contact__word {
  position: absolute; left: var(--m); right: var(--m); bottom: -.089em; text-align: left; white-space: nowrap;
  font-family: var(--f-head); font-weight: 300; font-size: calc((var(--w) - 2 * var(--m)) / 5.913); line-height: .8; letter-spacing: -.02em;
  color: var(--white); user-select: none;
}
.contact__word span { display: inline-block; margin-left: -.078em; }
.js .contact__word span { transform: translate3d(0, 34%, 0); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.2s ease; }
.js .contact__word.is-in span { transform: none; opacity: 1; }

/* ==========================================================================
   TABLET + MOBILE (stacked)
   ========================================================================== */
@media (max-width: 899px) {
  :root {
    --m: 32px;
    --fs-display: clamp(26px, 4.4vw, 36px);
    --fs-title: clamp(23px, 3.3vw, 30px);
    --fs-body: clamp(17px, 2.4vw, 20px);
    --fs-label: 14px;
    --fs-stat: clamp(38px, 5.4vw, 45px);
    --lh: 1.28;
    --row-pad: 26px;
  }
  .br-d { display: none; }
  .btn { font-size: 18px; padding: 10px 20px; }
  .sec-label, .case__label { padding-top: 28px; }

  /* hero */
  .hero { height: 100svh; min-height: 600px; max-height: 880px; }
  .hero__logo { top: 28px; width: 30px; }
  .hero__meta, .hero__nav { display: none; }
  .hero__title { top: 118px; right: var(--m); max-width: none; }
  .hero__cta { bottom: 36px; font-size: 18px; }
  .pill__in { font-size: 13px; }

  /* Nav collapses into the hamburger menu for the whole stacked (tablet + mobile) range */
  .menu-btn {
    display: block; position: absolute; z-index: 70; right: var(--m); top: 26px; padding: 4px 0;
    font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--white);
  }
  .menu-btn span { border-bottom: 1px solid currentColor; }
  .menu {
    display: flex; flex-direction: column; justify-content: space-between; position: fixed; inset: 0; z-index: 60;
    background: var(--dark); color: var(--white); padding: 110px var(--m) 36px;
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
  }
  .menu__nav { display: flex; flex-direction: column; gap: 6px; }
  .menu__nav a { font-family: var(--f-head); font-size: 44px; line-height: 1.1; transform: translateY(16px); opacity: 0; transition: transform .7s var(--ease), opacity .6s ease; }
  .menu__meta { font-weight: 500; font-size: 14px; line-height: 1.9; opacity: .8; }
  html.menu-open { overflow: hidden; }
  html.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s ease; }
  html.menu-open .menu__nav a { transform: none; opacity: 1; }
  html.menu-open .menu__nav a:nth-child(2) { transition-delay: .06s; }
  html.menu-open .menu__nav a:nth-child(3) { transition-delay: .12s; }
  html.menu-open .menu__nav a:nth-child(4) { transition-delay: .18s; }

  .marquee { height: 46px; }
  .marquee__group span { font-size: 17px; }

  /* case */
  .case__lead { margin: 40px var(--m) 56px; max-width: none; }
  .case__blocks { gap: 56px; }
  .split { grid-template-columns: 1fr; column-gap: 0; }
  .split .media { order: -1; aspect-ratio: var(--ar, 4 / 3); min-height: 0; }
  .media .label { top: 22px; left: var(--m); }
  .split--copy-right .copy, .split--copy-left .copy, .split--result .copy { padding: 26px var(--m) 0; }
  .copy__title { margin-bottom: 20px; }
  .media[style*="--pos:50% 70%"] { --ar: 4 / 4.6; }
  .split--result .media { --ar: 16 / 10; }
  .chip { max-width: 100%; }
  .stats { gap: 28px; }
  .stats__row { flex-wrap: wrap; gap: 28px 34px; }
  .stat__l { white-space: normal; }
  .stats--inline { flex-wrap: wrap; gap: 26px 32px; margin-top: 26px; }

  /* solutions / how rows */
  .row { --row-pt: 0px; grid-template-columns: 64px 1fr 34%; column-gap: 20px; min-height: 0; padding: 22px 0; }
  .sol__head { grid-template-columns: 1fr; margin-top: 36px; }
  .sol__head .display { max-width: none; }
  .sol__aside { padding-top: 0; margin-top: 24px; max-width: 460px; }
  .sol__foot { margin-top: 36px; }

  /* founder */
  .founder .split .media { --ar: 1 / 1; }
  .founder .copy { padding-top: 28px; padding-left: var(--m); padding-right: var(--m); padding-bottom: var(--gap-section-b); }

  /* why */
  .why { height: auto; min-height: 560px; }
  .why__label { position: relative; }
  .why__in { display: flex; flex-direction: column; height: auto; min-height: 560px; }
  .why__copy { position: static; flex: 1; padding: 44px var(--m) 40px; gap: 72px; }
  .why__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6, 8, 12, .72), rgba(6, 8, 12, .5) 45%, rgba(6, 8, 12, .55)); }
  .why__p { margin-top: 22px; max-width: 640px; line-height: 1.3; }
  .why__credit { max-width: 560px; line-height: 1.3; }

  /* reviews */
  .rv__row { grid-template-columns: 1fr; row-gap: 22px; padding: 26px 0; }
  .rv__who { gap: 18px; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-template-rows: none; row-gap: 14px; }
  .brands li:nth-child(n+5) { grid-column: auto; }
  .rv__row--brands { row-gap: 26px; }

  /* how / cta */
  .cta { padding: 40px 0 44px; gap: 40px; }
  .cta__a, .cta__b { grid-template-columns: 1fr; row-gap: 22px; }
  .cta__a .display, .cta__sub, .cta__a .btn, .cta__b .btn { grid-column: 1; }
  .cta__a .btn, .cta__b .btn { margin-top: 0; }
  .cta__sub p { max-width: 520px; }

  /* contact */
  .contact { height: auto; min-height: 560px; }
  .contact__in { display: grid; grid-template-columns: 1fr auto; align-content: start; row-gap: 26px; padding: 28px var(--m) 0; height: 100%; min-height: 560px; }
  .contact__label, .social, .contact__about { position: static; }
  .contact__label { grid-column: 1; grid-row: 1; align-self: center; }
  .social { grid-column: 2; grid-row: 1; gap: 14px; }
  .contact__about { grid-column: 1 / -1; grid-row: 2; width: auto; max-width: 420px; }
}

/* ---------- Tablet only ---------- */
@media (min-width: 640px) and (max-width: 899px) {
  .hero__title { max-width: 86%; }
  .brands { max-width: 560px; }
  .contact { min-height: 640px; }
  .contact__in { min-height: 640px; }

  /* Hug the edges to leave the centre - where the presenter sits - clear */
  .pill--a { left: auto; right: 4%; top: 30%; }
  .pill--b { left: 4%; top: 47%; }
  .pill--c { left: auto; right: 4%; top: 64%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
  :root {
    --m: 20px;
    --fs-display: clamp(22px, 6.4vw, 28px);
    --fs-title: 20px;
    --fs-body: 16px;
    --fs-label: 12px;
    --fs-stat: 34px;
    --lh: 1.28;
    --row-pad: 20px;
  }
  .sec-label, .case__label { padding-top: 24px; }
  .btn { font-size: 16px; }

  .hero { min-height: 620px; max-height: none; }
  .hero__logo { top: 24px; }
  .hero__title { top: 92px; }
  .hero__video { object-position: 50% 50%; } /* portrait file is already cut around the subject */
  .hero__cta { bottom: 28px; font-size: 17px; }
  .pill__in { font-size: 11px; gap: 8px; padding: 7px 9px; border-radius: 12px; }
  .pill__in img { width: 16px; height: 16px; }
  /* Spread wide and away from the presenter, who fills most of the centre on a narrow crop */
  .pill--a { left: auto; right: 2%; top: 60%; }
  .pill--b { left: 2%; top: 38%; }
  .pill--c { left: 2%; top: 74%; }

  .marquee { height: 42px; }
  .marquee__group { gap: 16px; padding-right: 16px; }
  .marquee__group span { font-size: 15px; }
  .marquee__group img { width: 16px; height: 16px; }

  .case__lead { margin: 30px var(--m) 40px; }
  .case__blocks { gap: 44px; }
  .media .label { top: 18px; }
  .split--copy-right .copy, .split--copy-left .copy, .split--result .copy { padding-top: 22px; }
  .split .media { --ar: 4 / 4.4; }
  .split--result .media { --ar: 4 / 3; }
  .chip { font-size: 15px; line-height: 1.25; padding: 9px 10px; align-items: flex-start; }
  .chip__dot { margin-top: -1px; }
  .stats__row { gap: 22px 26px; }

  .row { grid-template-columns: 40px 1fr; grid-template-areas: "n t" ". d"; column-gap: 12px; padding: 20px 0; align-items: start; }
  .row__n, .row__t { align-items: flex-start; }
  .row__n { grid-area: n; padding-top: .2em; }
  .row__t { grid-area: t; }
  .row__d { grid-area: d; padding-top: 8px; }

  .sol__head { margin-top: 28px; }
  .sol__aside { margin-top: 20px; }
  .sol__foot { margin-top: 28px; }

  .founder .split .media { --ar: 4 / 4.6; }
  .founder .copy { padding-top: 22px; padding-left: var(--m); padding-right: var(--m); padding-bottom: var(--gap-section-b); }

  .why { min-height: 620px; }
  .why__in { min-height: 620px; }
  .why__copy { padding-top: 32px; gap: 56px; }

  .rv__ava { width: 56px; height: 56px; }
  .rv__row { padding: 22px 0; row-gap: 18px; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta { padding: 32px 0 36px; gap: 36px; }
  .cta .btn { width: 100%; justify-content: space-between; justify-self: stretch; }

  .contact { min-height: 420px; }
  .contact__in { min-height: 420px; row-gap: 16px; padding-top: 22px; }
  .social a { width: 42px; height: 42px; }
}

/* ---------- Large desktop / wide type tweaks ---------- */
@media (min-width: 1100px) and (max-width: 1279px) {
  .hero__meta, .hero__nav { line-height: 2.2; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 120s; }
  .pill__in { animation: none; }
  .js [data-reveal], .js [data-reveal="kids"] > *, .js .wi, .js .media img,
  .js [data-fade], .js [data-pop], .js [data-pop-in], .js .contact__word span {
    transition: none !important; transform: none !important; opacity: 1 !important; scale: 1 !important; clip-path: none !important;
  }
}
