/* ==========================================================================
   Hennessey Digital: redesign concept, "Photo finish"
   Cyan marks proof (a figure you can check, a person you can hear from).
   Amber marks the one action. Everything else is ink, paper and silver.
   ========================================================================== */

:root {
  /* colour */
  --ink: #141212;            /* dark chapters; the logo tile, deepened */
  --tile: #231F20;           /* the logo's own tile: raised panels on ink */
  --ink-2: #1C1A1A;          /* menus on ink */
  --ink-3: #0E0D0D;          /* footer */
  --ink-rgb: 20, 18, 18;     /* --ink as channels, for the photo washes */
  --ink-3-rgb: 14, 13, 13;
  --paper: #FFFFFF;
  --silver: #F1F2F2;
  --cyan: #00B5E2;           /* proof on ink (7.7:1) */
  --cyan-deep: #0E768F;      /* proof and links on light (5.2:1 on paper) */
  --amber: #F5A623;          /* the one action; ink text on it (9.2:1) */
  --amber-hi: #FFB940;
  --bone: #ECEAE6;           /* body text on ink */
  --fog: #A7A9AB;            /* secondary text on ink (7.9:1) */
  --slate: #4C5156;          /* secondary text on light (8.0:1) */
  --rule: #DADCDD;
  --rule-ink: rgba(236, 234, 230, .16);
  --notice: #FFE7B0;

  /* type */
  /* Newsreader replaced Bodoni Moda (whose display hairlines broke up on screen); ?type=bodoni brings it back */
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --title-em: 7.95; /* width of the hero's longest line, "Marketing Agency", in em */
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.75rem, 1.4rem + 4.4vw, 6rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.3vw, 3.5rem);
  --fs-h3: 1.5rem;
  --fs-lede: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* space */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --masthead-h: 80px;
  --radius: 2px;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, .55);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: calc(var(--masthead-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 3px; }
.ground-ink :focus-visible, .masthead :focus-visible, .hero :focus-visible, .footer :focus-visible, .mmenu :focus-visible { outline-color: var(--cyan); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 300;
  padding: 10px 16px; background: var(--amber); color: var(--ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

.type-bodoni { --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif; --title-em: 8; }

/* grounds change by chapter */
.ground-paper { background: var(--paper); color: var(--ink); }
.ground-silver { background: var(--silver); color: var(--ink); }
.ground-ink { background: var(--ink); color: var(--bone); }

/* ---------- type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.ground-ink .h2 { color: #fff; }

.link {
  display: inline-block;
  font-weight: 600;
  color: var(--cyan-deep);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 200ms var(--ease-out);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.2 var(--sans); letter-spacing: .005em;
  text-decoration: none; text-align: center;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--amber { --bg: var(--amber); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .btn--amber:hover { --bg: var(--amber-hi); }
  .btn--ink:hover { --bg: #2B2727; }
  .btn--light:hover { box-shadow: inset 0 0 0 1px #fff; --bg: rgba(255, 255, 255, .06); }
  .btn--line:hover { --bg: var(--ink); --fg: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ==========================================================================
   LOADER: the real wordmark rises letter by letter; the curtain lifts
   ========================================================================== */
.loader { display: none; }
.js:not(.is-static):not(.is-repeat) .loader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink);
}
.loader__mark { width: min(340px, 64vw); }
.loader__word { width: 100%; height: auto; overflow: hidden; }
.loader__word .lw--name { fill: #fff; }
.loader__word .lw--digital { fill: var(--cyan); }
.loader__word .lw { transform: translateY(80px); }
.loader.is-done { pointer-events: none; }

/* ==========================================================================
   CONCEPT NOTICE
   ========================================================================== */
.notice { background: var(--notice); color: var(--ink); font-size: .875rem; line-height: 1.45; }
.notice__inner { padding-block: 9px; }
.notice a { font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--bone);
  box-shadow: 0 1px 0 var(--rule-ink);
}
.masthead__inner { display: flex; align-items: center; gap: 24px; height: var(--masthead-h); }
.masthead__logo { flex: none; display: block; width: 54px; height: 54px; transition: transform 300ms var(--ease-out); }
.masthead__logo svg { width: 100%; height: 100%; }
.masthead__call { flex: none; min-height: 44px; padding: 10px 18px; font-size: .9375rem; font-variant-numeric: tabular-nums; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__btn, .nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; color: var(--bone);
  text-decoration: none; white-space: nowrap;
  border-radius: var(--radius);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav__btn svg { width: 11px; height: 11px; opacity: .7; transition: transform 220ms var(--ease-out); }
.nav__btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav__btn:hover, .nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
}

.menu {
  position: absolute; top: calc(100% + 18px); left: -8px; z-index: 5;
  min-width: 300px; padding: 14px;
  background: var(--ink-2);
  border: 1px solid var(--rule-ink);
  box-shadow: var(--shadow);
}
.menu:not([hidden]) { animation: menu-in 200ms var(--ease-out); }
.menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 19px; } /* bridges the gap so hover doesn't drop */
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.menu--wide { min-width: 560px; }
.menu--resources { display: grid; grid-template-columns: 200px 1fr; gap: 6px 18px; min-width: 760px; left: auto; right: -140px; }
.menu--resources[hidden] { display: none; }
.menu__lead {
  display: block; margin: 0 0 6px; padding: 10px 12px 14px;
  font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; color: #fff; text-decoration: none;
  border-bottom: 1px solid var(--rule-ink);
}
.menu__list a {
  display: block; padding: 9px 12px; border-radius: var(--radius);
  font-size: .9375rem; line-height: 1.35; color: var(--bone); text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.menu__list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.menu__group { padding-left: 18px; border-left: 1px solid var(--rule-ink); }
.menu__label { padding: 9px 12px 4px; font-size: .8125rem; color: var(--fog); }
.menu__list--studies a { font-size: .875rem; padding-block: 7px; }
@media (hover: hover) and (pointer: fine) {
  .menu__list a:hover, .menu__lead:hover { background: rgba(255, 255, 255, .06); color: #fff; }
}

.masthead__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; }
.masthead__toggle span, .masthead__toggle span::before, .masthead__toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: #fff; content: "";
}
.masthead__toggle span { top: 21px; }
.masthead__toggle span::before { left: 0; top: -7px; }
.masthead__toggle span::after { left: 0; top: 7px; }

@media (max-width: 1239px) {
  .nav__btn, .nav__link { padding: 0 9px; font-size: .875rem; }
  .masthead__inner { gap: 16px; }
}
@media (max-width: 1139px) {
  :root { --masthead-h: 68px; }
  .nav { display: none; }
  .masthead__logo { width: 46px; height: 46px; }
  .masthead__call { margin-left: auto; }
  .masthead__toggle { display: block; }
}
@media (max-width: 420px) {
  .masthead__call { padding-inline: 12px; font-size: .875rem; }
}

/* ==========================================================================
   MOBILE MENU (full screen dialog)
   ========================================================================== */
.mmenu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--bone);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1) .14s, visibility 0s linear .7s;
}
.mmenu.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.mmenu__top { display: flex; align-items: center; justify-content: space-between; height: var(--masthead-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--rule-ink); }
.mmenu__logo { width: 46px; height: 46px; }
.mmenu__logo svg { width: 100%; height: 100%; }
.mmenu__close { position: relative; width: 44px; height: 44px; margin-right: -8px; }
.mmenu__close span::before, .mmenu__close span::after {
  content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 1.5px; background: #fff; transform: rotate(45deg);
}
.mmenu__close span::after { transform: rotate(-45deg); }
.mmenu__nav { flex: 1; padding: 12px var(--gutter) 24px; }
.mmenu__item { border-bottom: 1px solid var(--rule-ink); opacity: 0; transform: translateY(26px); transition: opacity .2s, transform .2s; }
.mmenu.is-open .mmenu__item {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s), transform .75s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s);
}
.mmenu__btn, .mmenu__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; color: #fff; text-decoration: none; text-align: left;
}
.mmenu__sign { position: relative; width: 16px; height: 16px; flex: none; }
.mmenu__sign::before, .mmenu__sign::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.5px; background: var(--fog); transition: transform 240ms var(--ease-out); }
.mmenu__sign::after { transform: rotate(90deg); }
.mmenu__btn[aria-expanded="true"] .mmenu__sign::after { transform: rotate(0); }
.mmenu__sub ul { padding: 0 0 18px; }
.mmenu__sub a { display: block; padding: 9px 0; color: var(--bone); text-decoration: none; font-size: 1rem; }
.mmenu__foot { padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); }
html.is-locked { overflow: hidden; }

/* ==========================================================================
   HERO: the stallion and the photo-finish strip
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: var(--bone); }
.hero__stage { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 66% 42%; }
.hero__scan { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero.is-scanning .hero__scan { display: block; }
/* legibility: a soft wash over the dark wall for the headline, and a floor for the strip */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), .72) 0%, rgba(var(--ink-rgb), .35) 34%, rgba(var(--ink-rgb), 0) 52%),
    linear-gradient(0deg, rgba(var(--ink-rgb), .96) 0%, rgba(var(--ink-rgb), .82) 17%, rgba(var(--ink-rgb), 0) 40%);
}
/* the finish line: through the stallion's nose and down to the end of the growth line */
.hero__finish {
  position: absolute; top: 0; bottom: 0; left: var(--fx, 54.9%);
  width: 1px; background: var(--cyan);
  transform-origin: 50% 0;
}

.hero__inner {
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(520px, calc(100svh - var(--masthead-h) - 230px), 760px);
  padding-block: clamp(56px, 8vh, 112px) 40px;
}
.hero__title {
  max-width: 11.5em;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.018em;
  color: #fff;
}
/* wide screens: the copy stays left of the finish line (--copy-w is set by JS from the nose position) */
@media (min-width: 1100px) {
  .hero { --copy-w: calc(50vw - 100px); }
  .hero__title { font-size: min(5.75rem, calc(var(--copy-w) / var(--title-em))); }
  .hero .hero__lede { max-width: min(34em, var(--copy-w)); }
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__line > span { display: block; }
.hero__lede { max-width: 34em; margin-top: 28px; font-size: 1.125rem; line-height: 1.6; color: #D9D7D3; }
.hero__cta { margin-top: 36px; }

/* the strip */
.strip { position: relative; }
.strip__inner {
  display: grid;
  grid-template-columns: var(--chart-w, 54%) minmax(0, 1fr);
  grid-template-areas: "cap figs" "chart figs";
  align-items: end;
  padding-bottom: 36px;
}
.strip__cap { grid-area: cap; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-right: 24px; margin-bottom: 14px; font-size: .875rem; }
.strip__title { color: var(--bone); font-weight: 500; }
.strip__live { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 600; }
.strip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 181, 226, .18); }
.strip__chart { grid-area: chart; position: relative; height: 136px; }
.strip__svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 96px; overflow: visible; }
.strip__area { fill: rgba(0, 181, 226, .12); }
.strip__curve { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.strip__end {
  position: absolute; right: -5px; top: calc(96px * 10 / 120 - 5px);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px var(--ink);
}
.strip__scale {
  position: absolute; left: 0; right: 0; top: 104px; height: 8px;
  border-top: 1px solid rgba(236, 234, 230, .4);
  background-image: linear-gradient(to right, rgba(236, 234, 230, .55) 1px, transparent 1px);
  background-size: calc((100% - 1px) / 23) 6px;
  background-repeat: repeat-x;
}
.strip__months { position: absolute; left: 0; right: 12px; top: 116px; display: flex; justify-content: space-between; font-size: .8125rem; color: var(--fog); }
.strip__figs { grid-area: figs; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px; padding-left: clamp(24px, 3vw, 48px); padding-bottom: 20px; }
.strip__figs div { display: flex; flex-direction: column-reverse; }
/* figures use a sturdier optical size so hairlines like the + survive in cyan */
.type-bodoni :is(.strip__figs dd, .race__after dd, .founder__figs dd) { font-variation-settings: "opsz" 24; }
.strip__figs dd { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 1.6vw, 3rem); line-height: 1; color: var(--cyan); font-variant-numeric: lining-nums; white-space: nowrap; }
.strip__figs dt { margin-top: 10px; font-size: .875rem; color: var(--fog); }

/* press marks: one ink, equal weight, still */
.marks { padding-block: 34px 44px; background: linear-gradient(var(--rule-ink), var(--rule-ink)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.marks__list { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.marks__list img { height: var(--h); width: auto; opacity: .62; }
.marks__svg { filter: brightness(0) invert(1); }
.marks__link { display: block; }
@media (hover: hover) and (pointer: fine) {
  .marks__link:hover img { opacity: .9; }
}

/* overlay layout only on wide screens; tablets and phones stack */
@media (max-width: 1099px) {
  .hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .hero__media::after { background: linear-gradient(0deg, rgba(var(--ink-rgb), .9) 0%, rgba(var(--ink-rgb), 0) 34%); }
  .hero__inner { min-height: 0; padding-block: 8px 48px; margin-top: -72px; position: relative; }
  .hero__finish { display: none; }
  .strip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cap" "chart" "figs"; padding-top: 28px; border-top: 1px solid var(--rule-ink); }
  .strip__inner { --chart-w: 100%; }
  .strip__chart::after { content: ""; position: absolute; right: 0; top: -14px; bottom: 0; width: 1px; background: var(--cyan); }
  .strip__figs { padding: 28px 0 8px; justify-content: start; gap: 40px; }
}
@media (max-width: 760px) {
  .hero__media { aspect-ratio: auto; height: min(118vw, 74svh); }
  .hero__img { object-position: 30% 40%; }
  .hero__inner { margin-top: -56px; padding-bottom: 40px; }
  .hero__title { font-size: clamp(2.25rem, 10.4vw, 2.75rem); }
  .hero__lede { font-size: 1.0625rem; margin-top: 20px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { width: 100%; }
  .strip__chart { height: 124px; }
  .strip__svg { height: 84px; }
  .strip__end { top: calc(84px * 10 / 120 - 5px); }
  .strip__scale { top: 92px; }
  .strip__months { top: 104px; }
  .strip__figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .strip__figs dd { font-size: 1.75rem; }
  .strip__figs dt { font-size: .8125rem; }
  .marks__list { justify-content: center; gap: 28px 36px; }
  .marks__list img { height: calc(var(--h) * .82); }
}

/* intro states (armed by JS only when the intro will play) */
.is-intro .hero__line > span { transform: translateY(105%); }
.is-intro .hero__lede, .is-intro .hero__cta, .is-intro .strip__cap, .is-intro .strip__figs, .is-intro .strip__months { opacity: 0; }
.is-intro .hero__finish { transform: scaleY(0); }
.is-intro .strip__curve { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-intro .strip__area, .is-intro .strip__end { opacity: 0; }
.is-intro .strip__end { transform: scale(.4); }
.is-intro .strip__scale { clip-path: inset(0 100% 0 0); }

/* ==========================================================================
   CLIENT VIDEOS
   ========================================================================== */
.voices { padding-block: var(--section) calc(var(--section) * .7); }
.voices__title { max-width: 22em; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.16; }
.voices__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); }
.voice__frame { position: relative; }
.voice__play { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.voice__play img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.04); transition: filter 500ms var(--ease-out), transform 900ms var(--ease-out); }
/* the keyline: the logo's inset frame, around the people who vouch */
.voice__play::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--cyan); pointer-events: none; }
.voice__play::before { content: ""; position: absolute; inset: 55% 0 0; z-index: 1; background: linear-gradient(0deg, rgba(var(--ink-rgb), .7), rgba(var(--ink-rgb), 0)); pointer-events: none; }
.voice__btn {
  position: absolute; left: 26px; bottom: 26px; z-index: 2;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--ink);
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.voice__btn svg { width: 22px; height: 22px; margin-left: 3px; }
.voice__time { position: absolute; right: 26px; bottom: 42px; z-index: 2; color: #fff; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.voice__play:active .voice__btn { transform: scale(.94); }
.voice__name { margin-top: 22px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.voice__name span { display: block; margin-top: 4px; font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--cyan-deep); }
.voice__role { margin-top: 10px; font-size: .9375rem; line-height: 1.55; color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .voice__play:hover img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
  .voice__play:hover .voice__btn { background: var(--amber); }
}
@media (max-width: 860px) {
  .voices__list { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .voice + .voice { padding-top: 16px; }
}

/* video player dialog */
.player {
  width: min(420px, calc(100vw - 32px), calc((100svh - 120px) * 9 / 16));
  padding: 0; border: 0; background: #000; color: #fff; overflow: visible;
}
.player::backdrop { background: rgba(var(--ink-3-rgb), .86); }
.player[open] { animation: player-in 320ms var(--ease-drawer); }
@keyframes player-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.player__frame { position: relative; aspect-ratio: 9 / 16; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__close {
  position: absolute; right: 0; top: -52px; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 4px; font-weight: 600; color: #fff;
}
.player__close::after { content: "×"; font-size: 1.75rem; line-height: 1; font-weight: 300; }

/* ==========================================================================
   BEFORE / AFTER: drawn to scale, every "after" on one finish line
   ========================================================================== */
.race { padding-block: calc(var(--section) * .3) var(--section); }
.race__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.race__intro { color: var(--slate); font-size: 1.0625rem; }
.race__board { --aw: clamp(220px, 26vw, 330px); position: relative; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink); }
.race__finish { position: absolute; top: -12px; bottom: -12px; right: var(--aw); width: 1px; background: var(--cyan-deep); }
.race__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aw);
  grid-template-rows: auto auto auto auto;
  padding-block: 28px 26px;
  border-bottom: 1px solid var(--rule);
}
.race__vals { display: contents; }
.race__metric { grid-area: 1 / 1; padding-right: 16px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; font-weight: 400; }
.race__before { grid-area: 2 / 1; display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.race__before dt { font-size: .875rem; color: var(--slate); }
.race__before dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.race__track { grid-area: 3 / 1; position: relative; height: 26px; margin-top: 6px; }
.race__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.race__tick { position: absolute; left: calc(var(--b) * 100%); top: 4px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink); }
.race__bar {
  position: absolute; left: calc(var(--b) * 100%); right: 0; top: calc(50% - 1.5px); height: 3px;
  background: var(--cyan-deep); transform-origin: 0 50%;
}
.race__bar::after { content: ""; position: absolute; right: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--cyan-deep); box-shadow: 0 0 0 3px var(--paper); }
.race__after { grid-area: 1 / 2 / 4 / 3; align-self: end; display: flex; flex-direction: column; padding-left: clamp(20px, 2.4vw, 36px); }
.race__after dt { font-size: .875rem; color: var(--slate); }
.race__after dd { margin-top: 4px; font-family: var(--serif); font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3.75rem); line-height: .95; color: var(--cyan-deep); font-variant-numeric: lining-nums; white-space: nowrap; }
.race__x { grid-area: 4 / 2; padding-left: clamp(20px, 2.4vw, 36px); margin-top: 10px; font-size: .9375rem; font-weight: 600; }

.race.is-armed .race__bar { transform: scaleX(0); }
.race.is-armed .race__bar::after { opacity: 0; }
.race.is-run .race__bar { transform: none; transition: transform 1100ms var(--ease-out) calc(var(--r) * 120ms); }
.race.is-run .race__bar::after { opacity: 1; transition: opacity 240ms var(--ease-out) calc(900ms + var(--r) * 120ms); }

@media (max-width: 900px) {
  .race__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .race__board { --aw: 42%; }
  .race__metric { font-size: 1.25rem; }
  .race__before { flex-direction: column; gap: 0; }
  .race__after dd { font-size: 1.875rem; }
  .race__after dt, .race__before dt { font-size: .8125rem; }
  .race__x { font-size: .875rem; }
}

/* ==========================================================================
   CUTS THE B.S.
   ========================================================================== */
.bs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(92vh, 880px); }
.bs__photo { position: relative; overflow: hidden; }
.bs__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bs__copy { align-self: center; max-width: calc(560px + var(--gutter)); padding: var(--section) var(--gutter) var(--section) clamp(40px, 7vw, 120px); }
.bs__copy p { margin-top: 24px; font-size: 1.125rem; color: var(--bone); }
.bs__copy p:last-child { margin-top: 36px; }
@media (max-width: 860px) {
  .bs { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bs__photo { aspect-ratio: 4 / 5; max-height: 80svh; }
  .bs__copy { padding: 56px var(--gutter) 24px; max-width: none; }
}

/* ==========================================================================
   FIRED
   ========================================================================== */
.fired { padding-block: calc(var(--section) * .75) var(--section); overflow: hidden; }
.fired__terms { font-size: .9375rem; font-weight: 600; color: var(--cyan); }
.fired__title { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 3rem); line-height: 1.12; color: #fff; max-width: 21em; text-wrap: balance; }
.fired__word {
  display: block; margin: .16em 0 0 -.04em;
  font-size: clamp(5.5rem, 1rem + 22vw, 23rem); line-height: .82; letter-spacing: -.035em; font-weight: 450;
}
.fired__foot { display: grid; grid-template-columns: minmax(0, 34em) auto; gap: 24px 48px; align-items: end; justify-content: space-between; margin-top: clamp(32px, 4vw, 56px); padding-top: 32px; border-top: 1px solid var(--rule-ink); }
.fired__foot p:first-child { font-size: 1.125rem; }
@media (max-width: 760px) { .fired__foot { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */
.cases { padding-block: var(--section) calc(var(--section) * .6); }
.cases__title { max-width: 18em; }
.cases__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.case { border-left: 1px solid var(--rule); }
.case:first-child { border-left: 0; }
.case__link { display: flex; flex-direction: column; height: 100%; padding: 36px clamp(20px, 2.6vw, 40px) 40px; text-decoration: none; }
.case:first-child .case__link { padding-left: 0; }
.case:last-child .case__link { padding-right: 0; }
.case__logo { display: flex; align-items: center; height: 64px; }
.case__logo img { max-height: 46px; width: auto; max-width: 78%; opacity: .78; transition: opacity 200ms var(--ease-out); }
.case__name { margin-top: 32px; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.case__text { margin-top: 12px; color: var(--slate); flex: 1; }
.case__more { margin-top: 24px; font-weight: 600; color: var(--cyan-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; transition: text-decoration-color 200ms var(--ease-out); }
.cases__all { margin-top: 40px; }
@media (hover: hover) and (pointer: fine) {
  .case__link:hover .case__logo img { opacity: 1; }
  .case__link:hover .case__more { text-decoration-color: currentColor; }
}
@media (max-width: 860px) {
  .cases__list { grid-template-columns: minmax(0, 1fr); }
  .case { border-left: 0; border-bottom: 1px solid var(--rule); }
  .case__link { padding: 32px 0; }
}

/* ==========================================================================
   SERVICES INDEX
   ========================================================================== */
.services { padding-block: calc(var(--section) * .5) var(--section); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.services__head { position: sticky; top: calc(var(--masthead-h) + 40px); }
.services__head p { margin-top: 24px; color: var(--slate); font-size: 1.0625rem; max-width: 30em; }
.services__list { border-top: 1px solid var(--ink); }
.service { padding-block: 30px 32px; border-bottom: 1px solid var(--rule); }
.service__name { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.service__name a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 200ms var(--ease-out); }
.service p { margin-top: 12px; color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .service__name a:hover { text-decoration-color: currentColor; }
}
@media (max-width: 900px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .services__head { position: static; }
}

/* ==========================================================================
   BLOGS
   ========================================================================== */
.posts { padding-block: 0 var(--section); }
.posts__head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: calc(var(--section) * .7); border-top: 1px solid var(--rule); }
.posts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: 48px; }
.post__link { display: flex; flex-direction: column; text-decoration: none; }
.post__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--silver); }
.post__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 500ms var(--ease-out), transform 700ms var(--ease-out); }
.post__title { margin-top: 22px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.22; text-wrap: balance; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; transition: text-decoration-color 200ms var(--ease-out); }
.post__text { margin-top: 10px; color: var(--slate); font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .post__link:hover .post__img img { filter: grayscale(0); transform: scale(1.03); }
  .post__link:hover .post__title { text-decoration-color: currentColor; }
}
@media (max-width: 860px) {
  .posts__list { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

/* ==========================================================================
   AT A GLANCE
   ========================================================================== */
.glance { padding-block: var(--section); }
.glance__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.glance__head p { color: var(--slate); }
.glance__scroller { position: relative; margin-top: clamp(40px, 5vw, 72px); overflow-x: auto; overscroll-behavior-x: contain; }
.glance__scroller:focus-visible { outline-offset: 6px; }
.glance__table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 1rem; }
.glance__table thead th { padding: 0 24px 14px 0; text-align: left; font-size: .875rem; font-weight: 600; color: var(--slate); border-bottom: 1px solid var(--ink); }
.glance__table tbody th, .glance__table td { padding: 20px 24px 20px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.glance__table tbody th { width: 26%; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
.glance__table td { width: 37%; color: var(--slate); }
.glance__table td:last-child { padding-right: 0; }
@media (max-width: 900px) {
  .glance__head { grid-template-columns: minmax(0, 1fr); }
  .glance__table tbody th, .glance__table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--silver); width: 168px; min-width: 168px; padding-right: 16px; }
  .glance__table tbody th { font-size: 1.0625rem; box-shadow: 1px 0 0 var(--rule); }
}
/* scroll hint on phones: a fade on whichever side has more table */
.glance__frame { position: relative; }
.glance__frame::before, .glance__frame::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 40px; pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease-out); }
.glance__frame::after { right: 0; background: linear-gradient(90deg, rgba(241, 242, 242, 0), var(--silver)); }
.glance__frame::before { left: 168px; background: linear-gradient(270deg, rgba(241, 242, 242, 0), rgba(241, 242, 242, .9)); }
.glance__frame.can-right::after, .glance__frame.can-left::before { opacity: 1; }

/* ==========================================================================
   NUMBERS ON THE BOARD
   ========================================================================== */
.board { position: relative; padding-block: var(--section); overflow: hidden; isolation: isolate; }
.board__photo { position: absolute; top: 0; right: 0; z-index: -1; width: min(64%, 1100px); aspect-ratio: 3 / 2; }
.board__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .9; }
.board__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(var(--ink-rgb), 0) 38%), linear-gradient(0deg, var(--ink) 0%, rgba(var(--ink-rgb), 0) 45%); }
.board__inner { position: relative; }
.board__title { max-width: 9.5em; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 1.4rem + 5.4vw, 7rem); line-height: .96; letter-spacing: -.02em; color: #fff; }
.board__kicker { display: block; margin-bottom: 18px; font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-style: italic; letter-spacing: 0; line-height: 1.2; color: var(--bone); }
.board__quotes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px clamp(24px, 3vw, 48px); margin-top: clamp(80px, 12vw, 200px); }
.quote { grid-column: span 6; padding-top: 24px; border-top: 1px solid var(--rule-ink); }
.quote blockquote p { font-variant-numeric: lining-nums proportional-nums; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--bone); }
.quote figcaption { margin-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--fog); }
.quote--lead { grid-column: 1 / span 12; padding-top: 0; border-top: 0; }
.quote--lead blockquote p { max-width: 16em; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem); line-height: 1.06; color: #fff; letter-spacing: -.01em; }
@media (max-width: 860px) {
  .board__photo { position: relative; width: 100%; margin-bottom: -40%; }
  .quote { grid-column: 1 / -1; }
}

/* ==========================================================================
   PROCESS: a real sequence on a timing scale
   ========================================================================== */
.process { padding-block: 0 var(--section); }
.process__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; padding-top: calc(var(--section) * .8); border-top: 1px solid var(--rule-ink); }
.process__head p { color: var(--fog); font-size: 1.0625rem; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 40px); margin-top: clamp(56px, 7vw, 96px); padding-top: 34px; }
/* the scale: a baseline with fine ticks, like the edge of a finish-line print */
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  border-top: 1px solid rgba(236, 234, 230, .45);
  background-image: linear-gradient(to right, rgba(236, 234, 230, .3) 1px, transparent 1px);
  background-size: calc((100% - 1px) / 40) 6px;
  background-repeat: repeat-x;
}
.step { position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -34px; width: 1px; height: 22px; background: #fff; transform-origin: 50% 0; }
.step__n { display: block; font-family: var(--serif); font-size: 3.25rem; line-height: 1; color: #fff; }
.step__name { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.step p { margin-top: 12px; font-size: .9688rem; color: var(--fog); }

.process.is-armed .step::before { transform: scaleY(0); }
.process.is-armed .step__n, .process.is-armed .step__name, .process.is-armed .step p { opacity: 0; transform: translateY(10px); }
.process.is-run .step::before { transform: none; transition: transform 560ms var(--ease-out) calc(var(--i) * 420ms); }
.process.is-run .step__n { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) calc(160ms + var(--i) * 420ms), transform 760ms var(--ease-out) calc(160ms + var(--i) * 420ms); }
.process.is-run .step__name, .process.is-run .step p { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) calc(260ms + var(--i) * 420ms), transform 760ms var(--ease-out) calc(260ms + var(--i) * 420ms); }

@media (max-width: 1000px) {
  .process__head { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 40px; }
  .steps::before { left: 0; top: 6px; bottom: 6px; right: auto; width: 8px; height: auto; border-top: 0; border-left: 1px solid rgba(236, 234, 230, .45); background-image: linear-gradient(to bottom, rgba(236, 234, 230, .3) 1px, transparent 1px); background-size: 6px 24px; background-repeat: repeat-y; }
  .step { padding-bottom: 40px; }
  .step::before { left: -40px; top: 22px; width: 22px; height: 1px; transform-origin: 0 50%; }
  .process.is-armed .step::before { transform: scaleX(0); }
  .step__n { font-size: 2.5rem; }
}

/* ==========================================================================
   FOUNDER
   ========================================================================== */
.founder { padding-block: 0 var(--section); }
.founder__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; padding-top: calc(var(--section) * .8); background: linear-gradient(var(--rule-ink), var(--rule-ink)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.founder__portrait { position: sticky; top: calc(var(--masthead-h) + 40px); max-width: 340px; }
.founder__frame { position: relative; display: block; background: var(--tile); }
.founder__frame img { width: 100%; }
.founder__frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--cyan); pointer-events: none; }
.founder__portrait figcaption { margin-top: 18px; color: var(--fog); font-size: .9375rem; }
.founder__name { display: block; font-family: var(--serif); font-size: 1.375rem; color: #fff; }
.founder__quote { margin-top: 32px; }
.founder__quote p { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); line-height: 1.5; color: var(--bone); }
.founder__quote p + p { margin-top: 1em; }
.founder__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.founder__figs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-left: 20px; border-left: 1px solid var(--cyan); }
.founder__figs dd { font-family: var(--serif); font-size: clamp(2.25rem, 1.4rem + 2vw, 3.5rem); line-height: 1; color: var(--cyan); white-space: nowrap; }
.founder__figs dt { margin-top: 10px; font-size: .875rem; color: var(--fog); }
@media (max-width: 860px) {
  .founder__grid { grid-template-columns: minmax(0, 1fr); }
  .founder__portrait { position: static; max-width: 280px; }
}
@media (max-width: 520px) {
  .founder__figs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ==========================================================================
   SWITCHING, RECOGNIZED, FAQ (silver chapter)
   ========================================================================== */
.switch { padding-block: var(--section) calc(var(--section) * .6); }
.switch__sub { margin-top: 14px; font-size: var(--fs-lede); color: var(--slate); }
.switch__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.qa { padding-top: 24px; border-top: 1px solid var(--ink); }
.qa__q { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.25; text-wrap: balance; }
.qa p { margin-top: 16px; color: var(--slate); }
@media (max-width: 860px) { .switch__list { grid-template-columns: minmax(0, 1fr); } }

.recog { padding-block: calc(var(--section) * .5); }
.recog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.recog__head p { color: var(--slate); }
.recog__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--ink); }
.recog__list div { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 4px 0; }
.recog__list div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.recog__list dt { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.recog__list dd { font-size: .875rem; font-weight: 600; color: var(--cyan-deep); }
@media (max-width: 1000px) {
  .recog__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recog__list div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .recog__list div:nth-child(n + 4) { border-top: 1px solid var(--rule); margin-top: 18px; }
}
@media (max-width: 560px) {
  .recog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recog__list div:nth-child(3n + 1) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .recog__list div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .recog__list div:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 18px; }
}

.faq { padding-block: calc(var(--section) * .6) var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(40px, 7vw, 120px); align-items: start; padding-top: calc(var(--section) * .6); background: linear-gradient(var(--rule), var(--rule)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.faq__title { position: sticky; top: calc(var(--masthead-h) + 40px); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 600; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 16px; height: 16px; margin-top: 6px; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.5px; background: var(--ink); transition: transform 260ms var(--ease-out); }
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 26px; max-width: 46em; color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover { color: var(--cyan-deep); }
}
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__title { position: static; }
}

/* ==========================================================================
   WELCOME: the contact form
   ========================================================================== */
.welcome { padding-block: var(--section); }
.welcome__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(40px, 7vw, 120px); align-items: start; }
.welcome__title span { display: block; }
.welcome__copy p { margin-top: 24px; color: var(--bone); }
.welcome__copy .h2 + p { margin-top: 32px; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--fog); }
.field label span { color: var(--amber); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--tile); color: #fff;
  border: 1px solid rgba(236, 234, 230, .18); border-radius: var(--radius);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field--select svg { position: absolute; right: 16px; bottom: 20px; width: 12px; height: 12px; color: var(--fog); pointer-events: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #2A2626; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 1px var(--cyan); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--amber); }
.form__foot { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: .875rem; color: var(--fog); }
.form__status { padding: 14px 16px; border-left: 2px solid var(--cyan); background: rgba(0, 181, 226, .08); color: var(--bone); font-size: .9375rem; }
@media (max-width: 900px) { .welcome__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } .form__foot .btn { width: 100%; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink-3); color: var(--fog); font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-block: 88px 64px; }
.footer__wordmark { display: block; width: 200px; }
.footer__wordmark svg { width: 100%; height: auto; }
.footer__office { margin-top: 32px; line-height: 1.7; }
.footer__label { display: block; color: var(--bone); font-weight: 600; }
.footer__office a { color: var(--bone); text-decoration: none; }
.footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__h { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: #fff; }
.footer__h a { text-decoration: none; }
.footer__h--gap { margin-top: 28px; }
.footer__h + .footer__h { margin-top: 10px; }
.footer__col ul { margin-top: 14px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { text-decoration: none; transition: color 160ms var(--ease-out); }
.footer__follow { margin-top: 18px; color: var(--bone); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.footer__social li + li { margin-top: 0; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule-ink); border-radius: 50%; color: var(--bone); }
.footer__social svg { width: 16px; height: 16px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 24px; background: linear-gradient(var(--rule-ink), var(--rule-ink)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; font-size: .875rem; }
.footer__legal ul { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer__legal a { text-decoration: none; }
.footer__cookie { font-size: .875rem; color: var(--fog); text-decoration: underline; text-underline-offset: .2em; }
.footer__concept { padding-block: 0 40px; font-size: .8125rem; line-height: 1.6; color: #8A8D90; }
.footer__concept p { max-width: 70em; }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover, .footer__legal a:hover, .footer__cookie:hover { color: #fff; }
  .footer__social a:hover { border-color: var(--cyan); color: var(--cyan); }
}
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .footer__nav { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   COOKIE CONSENT (from the skill's assets/consent, restyled: square, Bodoni title, the HD tile)
   ========================================================================== */
/* tokens the consent card expects, mapped to this site and scoped to the card */
.consent {
  --white: #FFFFFF;
  --ink-soft: #3A3E42;
  --muted: #4C5156;
  --line: #DADCDD;
  --mist: #F1F2F2;
  --lapis: #141212;
  --blue: #0E768F;
  --teal: #0E768F;
  --gold: #00B5E2;
  --radius-l: 2px;
}
/* ==========================================================================
   COOKIE CONSENT
   Asks once, after the loader lifts. Reject sits beside Accept with the same weight;
   Cookie settings in the footer reopens it with the choices already open.
   ========================================================================== */
.consent {
  position: fixed;
  /* bottom right: over the hero photo rather than the quick form (was left: clamp(16px, 2.5vw, 32px)) */
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 90; /* under the header (100), so the full-screen menu covers it */
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 22px;
  border-radius: var(--radius-l);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(20, 40, 90, .08), 0 28px 56px -24px rgba(14, 29, 68, .5);
  /* resting state; leaving returns here, so it exits the way it came in */
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transform-origin: 100% 100%; /* rises out of its corner */
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-open {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease-out), transform 560ms var(--ease-drawer);
}
/* after a choice it fades out while sinking, unhurried, so it never feels snapped shut
   (it used to fall back to the resting state's 220/260ms and a 16px drop) */
.consent.is-leaving {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 440ms cubic-bezier(0.4, 0, 0.2, 1), transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* the content settles in just behind the card, a beat apart */
.consent__head,
.consent__text,
.consent__manage,
.consent__actions {
  opacity: 0;
  transform: translateY(8px);
}
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions),
.consent.is-leaving :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  opacity: 1;
  transform: none;
}
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  transition:
    opacity 360ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms),
    transform 480ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms);
}

.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* the khatam star turns an eighth into place: it lands looking exactly as it started */
.consent__star {
  flex: none;
  width: 18px;
  height: 18px;
  fill: var(--gold);
  opacity: 0;
  transform: rotate(-45deg) scale(.5);
}
.consent.is-open .consent__star,
.consent.is-leaving .consent__star { opacity: 1; transform: none; }
.consent.is-open .consent__star { transition: transform 720ms var(--ease-out) 150ms, opacity 280ms var(--ease-out) 150ms; }
.consent__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; color: var(--lapis); }
.consent__title:focus { outline: none; } /* only ever focused by script, on reopen */
.consent__close {
  display: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -6px -10px -6px auto;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color .2s, color .2s, transform 160ms var(--ease-out);
}
.consent.can-dismiss .consent__close { display: block; }
.consent__close:active { transform: scale(.92); }
.consent__close span,
.consent__close span::before {
  position: absolute;
  left: 11px;
  top: 17px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.consent__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }

.consent__text { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }

.consent__manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--blue);
  transition: color .2s;
}
.consent__manage svg { width: 12px; height: 12px; transition: transform 260ms var(--ease-in-out); }
.consent.is-expanded .consent__manage svg { transform: rotate(180deg); }

/* choices: the panel opens to its natural height, rows arrive one after another;
   closing is quicker and all together */
.consent__prefs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-in-out); }
.consent.is-expanded .consent__prefs { grid-template-rows: 1fr; transition-duration: 380ms; }
.consent__prefs-inner { min-height: 0; overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.consent__row,
.consent__save {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.consent.is-expanded :is(.consent__row, .consent__save) {
  opacity: 1;
  transform: none;
  transition:
    opacity 300ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms),
    transform 420ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms);
}
.consent__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.consent__label { font-size: 1rem; font-weight: 500; color: var(--ink); }
label.consent__label { cursor: pointer; }
.consent__row p { grid-column: 1 / -1; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.consent__always { font-size: .875rem; font-weight: 500; color: var(--teal); }
.consent__save { padding: 6px 0 4px; }

/* switch: the thumb slides across and stretches a little while pressed */
.consent__switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 13px;
  background: #C3CAD6;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}
.consent__switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 29, 68, .3);
  transition: transform 220ms var(--ease-out), width 160ms var(--ease-out);
}
.consent__switch:checked { background: var(--lapis); }
.consent__switch:checked::before { transform: translateX(18px); }
.consent__switch:active::before { width: 24px; }
.consent__switch:checked:active::before { transform: translateX(14px); }
.consent__switch:focus-visible { outline-offset: 2px; border-radius: 13px; }

.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent__actions .btn { min-height: 46px; padding: 10px 14px; }

@media (hover: hover) and (pointer: fine) {
  .consent__manage:hover { color: var(--lapis); }
  .consent__close:hover { background: var(--mist); color: var(--lapis); }
}

/* phones: a sheet that comes up from the bottom edge and goes back down there */
@media (max-width: 600px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px 20px 20px;
    transform: translateY(calc(100% + 24px));
    transform-origin: 50% 100%;
    transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out);
  }
  /* the sheet sinks back below the edge it came from, fading as it goes */
  .consent.is-leaving { transform: translateY(calc(100% + 24px)); }
  .consent__title { font-size: 1.25rem; }
}

/* reduced motion: gentler, not zero. Everything still fades; nothing travels */
@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent :is(.consent__head, .consent__text, .consent__manage, .consent__actions, .consent__star, .consent__row, .consent__save) { transform: none !important; }
  .consent__prefs,
  .consent.is-expanded .consent__prefs { transition: none; }
}
.consent { box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .1), 0 28px 56px -24px rgba(0, 0, 0, .55); }
.consent__title { font-weight: 400; color: var(--ink); }
.consent__star { width: 22px; height: 22px; fill: initial; }

/* ==========================================================================
   STATIC & REDUCED MOTION: gentler, not zero
   ========================================================================== */
.is-static .hero__line > span, .is-static .hero__lede, .is-static .hero__cta { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .mmenu, .mmenu.is-open { transition: opacity .3s, visibility 0s; clip-path: none; opacity: 0; }
  .mmenu.is-open { opacity: 1; }
  .mmenu__item, .mmenu.is-open .mmenu__item { transform: none; }
  .voice__play img, .post__img img { transition: filter 300ms; transform: none !important; }
}
