/* ==========================================================================
   site.css — one stylesheet for the whole site.
   Sections: 1 Tokens  2 Reset  3 Layout  4 Header  5 Buttons  6 Type
             7 Components  8 Sections  9 Footer  10 Motion  11 Responsive
   ========================================================================== */

/* 0 ── Fonts (self-hosted, so the site works with no internet) ──────────── */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800;
  font-display: swap; src: url('fonts/archivo-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* 1 ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Brand colours — change these three and the whole site follows */
  --accent:        #FFB627;
  --accent-soft:   #FFCE6B;
  --accent-ink:    #14161A;   /* text colour used on top of --accent */

  /* Surfaces */
  --ink:           #0A0B0D;
  --ink-2:         #101217;
  --ink-3:         #171A20;
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.18);

  /* Text */
  --text:          #F3F4F6;
  --muted:         #9BA3AF;
  --muted-2:       #6B7280;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Space & shape */
  --container: 1200px;
  --gutter:    24px;
  --radius:    14px;
  --radius-lg: 22px;
  --section-y: clamp(72px, 9vw, 132px);

  --shadow:    0 24px 60px rgba(0, 0, 0, 0.45);
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2 ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(255, 182, 39, 0.18);
}

body.no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 3 ── Layout ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 840px; }

.section { padding-block: var(--section-y); position: relative; }
/* stop the sticky header covering the top of an anchored section */
section[id], div[id] { scroll-margin-top: 92px; }
.section--tight { padding-block: clamp(52px, 6vw, 84px); }
.section--alt { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--wide-left  { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }

/* 4 ── Header ───────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled {
  background: rgba(10, 11, 13, 0.94);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}

.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo__img { height: 42px; width: auto; }
.footer .logo__img { height: 46px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 14.5px; font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ''; display: block; height: 2px; width: 18px;
  margin: 5px auto -3px; background: var(--accent); border-radius: 2px;
}

.burger { display: none; width: 42px; height: 42px; padding: 10px; margin-left: auto; }
.burger span {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: 18px var(--gutter) 26px;
}
.mobile__list { margin-bottom: 16px; }
.mobile__list .nav__link {
  display: block; padding: 14px 0; font-size: 19px; font-weight: 600;
  border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text);
}
.mobile__list .nav__link:hover { background: none; }
.mobile__list .nav__link.is-active { color: var(--accent); }
.mobile__list .nav__link.is-active::after { display: none; }

/* 5 ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-soft); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark:hover { background: var(--ink-3); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--accent);
}
.arrow-link span { transition: transform .18s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* 6 ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
}

.h-xl { font-size: clamp(44px, 7.2vw, 88px); }
.h-lg { font-size: clamp(34px, 4.6vw, 58px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.h-sm { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--accent); opacity: .7;
}

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 4.5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.accent { color: var(--accent); }

/* 7 ── Components ───────────────────────────────────────────────────────── */

/* Card */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  height: 100%;
  transition: transform .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 13px; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card--accent p, .card--accent .card__num { color: rgba(20, 22, 26, 0.72); }
.card--accent .card__num { color: rgba(20, 22, 26, 0.55); }

/* Card with an image on top:
   <article class="card card--photo">
     <div class="card__media"><img …></div>
     <div class="card__inner"> … </div>
   </article>                                                              */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__inner { padding: 26px 26px 28px; }
.card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card--photo:hover .card__media img { transform: scale(1.05); }

/* ── Full-bleed image band ───────────────────────────────────────────────
   <section class="band">
     <img src="images/…" alt="…">
     <div class="band__overlay"><div class="container">
       <p class="band__quote">…</p><span class="band__who">…</span>
     </div></div>
   </section>
   Use between sections to break up a long page.                           */
.band {
  position: relative;
  height: clamp(220px, 30vw, 400px);
  overflow: hidden;
  background: var(--ink-3);
}
.band > img { width: 100%; height: 100%; object-fit: cover; }
.band__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(10,11,13,0.94) 0%, rgba(10,11,13,0.72) 48%, rgba(10,11,13,0.32) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
.band__overlay .container { width: 100%; }
.band__quote {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--text);
}
.band__who {
  display: block; margin-top: 16px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent);
}

/* Icon tile */
.tile {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 182, 39, 0.12);
  color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin-bottom: 20px;
}

/* Stats */
/* Adapts to however many .stat children it has (2, 3 or 4) */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--ink); padding: 30px 26px; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4vw, 48px); line-height: 1;
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 10px;
}
.stat__label { font-size: 14px; color: var(--muted); }

/* Media placeholder — swap the .media block for <img src="images/…"> */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255, 182, 39, 0.22), transparent 58%),
    linear-gradient(150deg, #1d222b 0%, #0f1116 60%, #14171d 100%);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__hint {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); text-align: center; padding: 0 20px;
}
.media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 11, 13, 0.55), transparent 55%);
}

/* Badge / pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill--accent { border-color: rgba(255, 182, 39, .45); color: var(--accent); }

/* Logo / partner strip */
.partners {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.partner {
  flex: 1 1 180px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  min-height: 96px;
  text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--muted-2);
  letter-spacing: .02em;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.partner:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.partner img { max-width: 100%; max-height: 52px; width: auto; opacity: .82; }

/* Quote */
.quote {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  height: 100%;
}
.quote p { font-size: 17.5px; line-height: 1.6; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 182, 39, 0.16); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.quote__name { font-weight: 700; font-size: 15px; }
.quote__role { font-size: 13.5px; color: var(--muted-2); }

/* Steps / timeline */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 84px 1fr; gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 38px; line-height: 1; color: var(--accent); opacity: .85;
  letter-spacing: -0.04em;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); max-width: 62ch; }

/* Accordion */
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.015em;
}
.acc__q::after {
  content: '+'; font-size: 24px; color: var(--accent); line-height: 1;
  transition: transform .25s var(--ease);
}
.acc.is-open .acc__q::after { transform: rotate(45deg); }
.acc__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { color: var(--muted); padding-bottom: 22px; max-width: 72ch; }

/* ── Founder note ────────────────────────────────────────────────────────
   Portrait + pull quote block at the top of the success stories page.     */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
}
.founder__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.founder__quote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: clamp(18px, 2vw, 26px);
}
.founder__body p { color: var(--muted); }
.founder__who {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.founder__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: -0.015em;
}
.founder__role { font-size: 14px; color: var(--muted-2); }

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  /* a squarer crop keeps his head in frame when the column goes full width */
  .founder__photo { aspect-ratio: 1 / 1; max-width: 340px; }
  .founder__photo img { object-position: 50% 12%; }
}

/* ── Carousel ────────────────────────────────────────────────────────────
   Markup:
     <div class="carousel" data-carousel>
       <div class="carousel__viewport">
         <div class="carousel__track" data-track>
           <article class="carousel__item story"> … </article>
         </div>
         <button class="carousel__btn carousel__btn--prev" data-prev>…</button>
         <button class="carousel__btn carousel__btn--next" data-next>…</button>
       </div>
       <div class="carousel__ctrl"> dots + counter </div>
     </div>
   The track is a native scroll-snap scroller, so swipe, trackpad and
   scrollbar work with no JavaScript. initCarousels() adds the controls.   */
.carousel { position: relative; }
.carousel__viewport { position: relative; }

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* let cards bleed to the screen edge on small screens */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  flex: 0 0 86%;
  scroll-snap-align: start;
  display: flex;
}

/* Arrows sit on the left and right edges, vertically centred on the cards */
.carousel__btn {
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), opacity .18s var(--ease);
}
.carousel__btn--prev { left: -18px; }
.carousel__btn--next { right: -18px; }
.carousel__btn:hover:not(:disabled) {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn svg { width: 17px; height: 17px; }

/* Dots + counter below */
.carousel__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.carousel__dots { display: flex; gap: 7px; }
.carousel__dot {
  width: 22px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.20);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.carousel__dot.is-active { background: var(--accent); width: 36px; }

/* On touch the arrows are hidden, so the dots are the only control besides
   swiping. Pad the hit area out to a thumb-sized box while the visible bar
   stays 3px tall. */
@media (max-width: 759px) {
  .carousel__ctrl { gap: 10px; }
  .carousel__dots { gap: 2px; }
  .carousel__dot {
    height: 34px; padding-block: 15px; padding-inline: 5px;
    width: 32px;
    background-clip: content-box;
  }
  .carousel__dot.is-active { width: 46px; }
}
.carousel__count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Story card ──────────────────────────────────────────────────────── */
.story {
  display: flex; flex-direction: column;
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.section--alt .story { background: var(--ink-2); }
.story:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.story__media { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }

/* Logo tile used instead of a photo on the partner cards */
.story__logo {
  aspect-ratio: 16 / 7;
  display: grid; place-items: center;
  padding: 20px 26px;
  background: linear-gradient(150deg, #1A1E25 0%, #0D0F13 70%);
  border-bottom: 1px solid var(--line);
}
.story__logo img { max-width: 100%; max-height: 58px; width: auto; opacity: .95; }

.story__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.story__body h3 { margin: 14px 0 .4em; }
.story__body p { color: var(--muted); font-size: 14.8px; line-height: 1.55; }
.story .stats {
  margin-top: auto; padding-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius);
}
.story .stat { padding: 15px 14px; }
.story .stat__num { font-size: clamp(21px, 1.9vw, 26px); margin-bottom: 6px; }
.story .stat__label { font-size: 12px; }

/* The joke card — same shape, gold trim */
.story--legend {
  border-color: rgba(255, 182, 39, 0.55);
  box-shadow: 0 24px 60px rgba(255, 182, 39, 0.09);
}
.story--legend .stat__num { color: var(--accent); }
.story--legend .story__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.story--legend .story__badge {
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
}

@media (min-width: 760px) { .carousel__item { flex-basis: 47%; } }
@media (min-width: 1100px) {
  .carousel__item { flex-basis: 31.6%; }
  .carousel__track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}
/* On phones the cards run edge to edge, so the arrows would cover them —
   swiping is the natural gesture there anyway. */
@media (max-width: 759px) { .carousel__btn { display: none; } }


/* ── 404 page ────────────────────────────────────────────────────────────
   Standalone layout: no nav, no footer. Mark and name centred, with a way
   back pinned to the top left.                                            */
.err-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
@supports (height: 100svh) { .err-body { min-height: 100svh; } }

.err-body::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 46% at 50% 34%, rgba(255, 182, 39, 0.13), transparent 68%),
    radial-gradient(60% 50% at 88% 96%, rgba(255, 182, 39, 0.06), transparent 70%);
}

.err {
  position: relative;
  text-align: center;
  padding: clamp(96px, 14vh, 150px) var(--gutter) clamp(48px, 8vh, 90px);
  max-width: 620px;
}

.err__mark {
  width: clamp(96px, 17vw, 168px);
  height: auto;
  margin: 0 auto clamp(24px, 3.5vw, 38px);
  border-radius: 22%;
  box-shadow: 0 24px 70px rgba(255, 182, 39, 0.20);
}

.err__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 8.5vw, 82px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 3vw, 30px);
  /* body sets break-word; without this the name splits mid-word */
  overflow-wrap: normal;
  word-break: keep-all;
}

.err__code {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 182, 39, 0.4);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.err__msg {
  color: var(--muted);
  font-size: clamp(15.5px, 1.6vw, 18px);
  max-width: 44ch;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

/* Back control, top left */
.err__back {
  position: absolute; z-index: 5;
  top: clamp(18px, 3vw, 34px);
  left: clamp(16px, 3vw, 34px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 20px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14.5px; font-weight: 600;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease);
}
.err__back:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.err__back-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
}
.err__back-icon svg { width: 17px; height: 17px; }

@media (max-width: 640px) {
  .err__back { padding: 7px 16px 7px 7px; font-size: 14px; }
  .err__back-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .err .btn { width: auto; }
}

/* ── Inline form success ─────────────────────────────────────────────────
   The form is replaced in place rather than sending people to another page.
   thank-you.html is still the fallback when JavaScript is not running.     */
.form-wrap { position: relative; }

.form-done {
  background: var(--ink);
  border: 1px solid rgba(255, 182, 39, 0.45);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
  animation: tickIn .4s var(--ease);
}
.form-done[hidden] { display: none; }
.form-done__tick {
  width: 62px; height: 62px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
}
.form-done__tick svg { width: 30px; height: 30px; }
.form-done h3 { margin-bottom: .4em; }
.form-done p { color: var(--muted); max-width: 40ch; margin-inline: auto; }
.form-done .btn { margin-top: 26px; }

@keyframes tickIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.form-error {
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 120, 90, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 120, 90, 0.09);
  color: #FFB4A1;
  font-size: 14.5px;
}
.form-error[hidden] { display: none; }

/* Form */
.form {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 38px);
}
.section--alt .form { background: var(--ink); }
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--font-body);
  /* 16px minimum: iOS Safari zooms the page in on focus below that */
  font-size: 16px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--ink-2);
}
.field select {
  appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA3AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 17px;
}
.form__hint { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); text-align: center; }
.is-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* Editor note — remove these before the site goes live */
.note {
  border: 1px dashed rgba(255, 182, 39, .45);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13.5px; color: var(--accent-soft);
  background: rgba(255, 182, 39, .05);
}

/* 8 ── Sections ─────────────────────────────────────────────────────────── */

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(84px, 12vw, 168px) clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(52% 60% at 78% 8%, rgba(255, 182, 39, 0.16), transparent 62%),
    radial-gradient(60% 55% at 8% 92%, rgba(255, 182, 39, 0.07), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 15ch; text-transform: uppercase; }
.hero .lead { margin-block: 24px 34px; }

.hero--page { padding-block: clamp(72px, 9vw, 118px) clamp(48px, 6vw, 78px); }
.hero--page h1 { max-width: 18ch; }

/* Hero with a cross-fading video slideshow behind it */
.hero--video {
  display: flex; align-items: center;
  min-height: min(92vh, 900px);
  padding-block: clamp(96px, 12vw, 150px) clamp(104px, 12vw, 168px);
  background: var(--ink);
}
.hero--video::before { display: none; }          /* the scrim replaces the glow */

.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease), transform 9s linear;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1.12); }

.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,11,13,0.90) 0%, rgba(10,11,13,0.70) 42%, rgba(10,11,13,0.30) 100%),
    linear-gradient(to bottom, rgba(10,11,13,0.72) 0%, transparent 26%, transparent 58%, var(--ink) 100%),
    radial-gradient(48% 55% at 82% 12%, rgba(255,182,39,0.14), transparent 62%);
}
.hero__content { position: relative; z-index: 2; }

/* Slide indicator dots (built by site.js) */
/* Sits on the right so it never clashes with the milestone figure that
   overlaps the bottom of the hero on the left. */
.hero__dots {
  position: absolute; z-index: 4;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--container);
  padding-inline: var(--gutter);
  bottom: clamp(26px, 4vw, 44px);
  display: flex; justify-content: flex-end; gap: 9px;
}
.hero__dot {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: background .4s var(--ease), width .4s var(--ease);
}
.hero__dot.is-active { background: var(--accent); width: 42px; }

/* ── Scroll milestones ──────────────────────────────────────────────────
   One big figure sitting on the seam between two sections. The band is
   half the colour above and half the colour below, set inline per section
   with --from / --to.                                                     */
.milestone {
  position: relative;
  z-index: 3;
  height: clamp(26px, 3.2vw, 44px);   /* the only space it takes in the flow */
  background: transparent;
  pointer-events: none;
}
.milestone .container { position: relative; height: 100%; }
.milestone__inner {
  position: absolute;
  top: 50%;
  left: var(--gutter);
  max-width: min(560px, 64%);
  transform: translateY(-50%) translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.milestone--right .milestone__inner {
  left: auto; right: var(--gutter);
  text-align: right;
}

.milestone__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(62px, 15vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--text);
  background: linear-gradient(176deg, #FFFFFF 8%, rgba(255,255,255,0.34) 82%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.milestone__label {
  display: block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.1vw, 13.5px);
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  max-width: 26ch;
}
.milestone__label::before {
  content: ''; display: block;
  width: 46px; height: 2px; margin-bottom: 16px;
  background: var(--accent); border-radius: 2px;
}
.milestone--right .milestone__inner .milestone__label { margin-left: auto; }
.milestone--right .milestone__label::before { margin-left: auto; }

/* Marquee-ish keyword strip */
.keys {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-top: 34px; margin-top: 34px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}
.keys span { display: inline-flex; align-items: center; gap: 26px; }
.keys span::after { content: '/'; color: var(--accent); opacity: .6; }
.keys span:last-child::after { display: none; }

/* Big CTA band */
.cta {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 68px);
  display: grid; grid-template-columns: 1.35fr auto;
  gap: 34px; align-items: center;
}
.cta h2 { margin-bottom: .3em; max-width: 20ch; }
.cta p { color: rgba(20, 22, 26, 0.75); max-width: 54ch; }

/* 9 ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(52px, 6vw, 76px) 30px;
  margin-top: auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer__brand .logo { margin-bottom: 18px; }
.footer__blurb { color: var(--muted); font-size: 15px; max-width: 40ch; }
.footer__social { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.footer__social a {
  display: inline-block; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.footer__social a:hover { color: var(--text); border-color: var(--line-strong); }
.footer__title {
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text);
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a, .footer__col li { color: var(--muted); font-size: 15px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted-2);
}
.footer__bottom p { margin: 0; }

/* 10 ── Motion ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* 11 ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero--video { min-height: 78vh; }
  @supports (height: 100svh) { .hero--video { min-height: 78svh; } }
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(10,11,13,0.88) 0%, rgba(10,11,13,0.70) 45%, var(--ink) 100%),
      radial-gradient(60% 40% at 80% 10%, rgba(255,182,39,0.14), transparent 62%);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .milestone { height: clamp(44px, 13vw, 64px); }
  .milestone__inner, .milestone--right .milestone__inner {
    max-width: none; text-align: left;
    left: var(--gutter); right: auto;
  }
  .milestone--right .milestone__label::before { margin-left: 0; }
  .milestone--right .milestone__inner .milestone__label { margin-left: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__num { font-size: 30px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .btn--sm { width: auto; }

  /* ── tap targets ──────────────────────────────────────────────────────
     Everything a thumb has to hit gets at least ~44px of height. The
     visible sizes stay the same; only the hit area grows.               */
  .arrow-link { padding-block: 10px; }

  .footer__col li { margin-bottom: 2px; }
  .footer__col a { display: inline-block; padding-block: 9px; }

  .footer__social a { padding: 11px 16px; }

  /* two tidy columns instead of four ragged rows with stranded slashes */
  .keys {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    font-size: 11.5px; letter-spacing: .09em;
  }
  .keys span::after { display: none; }

  .story--legend .story__badge { font-size: 11.5px; }

  .field label { font-size: 15px; }
}
