/* ---------------------------------------------------------------
   Mikhail Statsenko — personal brand / coaching
   World: The Driver Card — stat-rated esports trading card
   (direction contract in .impeccable/surfaces/index-html.md)
   --------------------------------------------------------------- */

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/teko-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono.woff2") format("woff2");
}
/* Cyrillic fallbacks for the Russian page: the Latin faces have no Cyrillic glyphs */
@font-face {
  font-family: "Oswald Cyr";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-cyr.woff2") format("woff2");
  /* Oswald caps run ~25% taller than Teko's (81 vs 65 per 100px): match cap heights */
  size-adjust: 80%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope Cyr";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyr.woff2") format("woff2");
  size-adjust: 97%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono Cyr";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* ground */
  --bg: #0a0b0d;
  --bg-raised: #15171a;
  --bg-sunken: #050607;
  --border: #26282d;
  --hairline: #1c1e22;

  /* text */
  --text: #f3f1ec;
  --text-dim: #9b9792;
  --text-faint: #928e85;

  /* the one committed accent: gold foil, earned by the record */
  --gold: #caa34a;
  --gold-bright: #f0d98c;
  --gold-ink: #1a1304;
  --gold-dim: #5c4a22;
  /* warm accent-tinted ground for highlighted panels */
  --accent-tint: #1d1a10;

  /* secondary cool ink, platinum — dividers, secondary stat values */
  --platinum: #aab2bb;

  --danger: #ff6b5e;

  --radius: 4px;
  --radius-card: 16px;
  --measure: 68ch;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Teko", "Oswald Cyr", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", "Manrope Cyr", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "JetBrains Mono Cyr", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sunken);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 2px solid var(--bg-sunken);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

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

.tnum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6em 1em;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.002em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  margin: 0;
  max-width: var(--measure);
}

/* ----------------------------- nav ----------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
}

.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__mark {
  color: var(--gold);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-dim);
  padding: 0.3em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.nav-links a.nav-lang {
  padding: 0.15em 0.55em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold-bright);
}
.nav-links a.nav-lang:hover,
.nav-links a.nav-lang:focus-visible {
  border-color: var(--gold);
}

.site-nav__row .nav-cta {
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (min-width: 880px) {
  .site-nav__row .nav-cta {
    display: inline-flex;
  }
  .nav-links .nav-links__cta-row {
    display: none;
  }
}

@media (max-width: 879px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem clamp(20px, 5vw, 48px) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  }
  .nav-links[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links a {
    display: block;
    padding: 1em 0;
  }
  .nav-links .nav-links__cta-row {
    border-bottom: none;
    padding-top: 1rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------------------------- buttons --------------------------- */

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  padding: 0.75em 1.5em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.3), 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--gold-ink);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.text-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15em;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ------------------------------ hero ----------------------------- */

.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(72px, 10vw, 136px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero__quote {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.6rem;
  color: var(--text-dim);
  font-size: 1.08rem;
  font-style: italic;
  max-width: 48ch;
}
.hero__quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 2.2em;
  line-height: 1;
  color: var(--gold);
}

/* Russian page: Cyrillic caps (Й, Ё) need more line room, and the words run longer */
:lang(ru) h1,
:lang(ru) h2,
:lang(ru) h3 {
  line-height: 1.1;
}
:lang(ru) .hero h1 {
  line-height: 1.04;
}
:lang(ru) .method__loss {
  line-height: 1.05;
}

.hero__lead {
  margin-top: 1.5rem;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.5;
  max-width: 44ch;
}

.hero__sub {
  margin-top: 1.3rem;
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 48ch;
}

.hero__actions {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* the driver card */

.card-stage {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 35%;
  --holo-t: 0.5;
  width: min(420px, 100%);
  max-width: 100%;
  position: relative;
  background: linear-gradient(165deg, #1a1c20, var(--bg-sunken) 55%);
  border-radius: var(--radius-card);
  overflow: hidden;
  transform: rotate(-3deg) perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.4), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
}

/* holographic foil ring: a prismatic conic sweep, not a flat gold line */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 2px;
  background: conic-gradient(
    from calc(var(--holo-t) * 360deg) at var(--mx) var(--my),
    var(--gold-bright),
    #f5b8c4,
    #9fd8e0,
    #c3a6f0,
    var(--gold-bright)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* holographic sheen: a soft multi-hue bloom that tracks the pointer */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    rgba(240, 217, 140, 0.16),
    rgba(195, 166, 240, 0.1) 35%,
    rgba(159, 216, 224, 0.08) 55%,
    transparent 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}

.card__photo {
  position: relative;
  aspect-ratio: 2 / 3;
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.card__photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.65) 32%, transparent 62%);
  pointer-events: none;
}

.card__photo-id {
  position: absolute;
  left: clamp(18px, 2.5vw, 24px);
  right: clamp(18px, 2.5vw, 24px);
  bottom: 1rem;
}

.card__tier {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.card__name {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  line-height: 0.96;
  color: var(--text);
}

.card__role {
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.card__badge {
  position: absolute;
  top: clamp(14px, 2vw, 18px);
  right: clamp(14px, 2vw, 18px);
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #2a2410, var(--bg-sunken) 70%);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card__badge-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-bright);
}
.card__badge-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.card__stats {
  list-style: none;
  margin: 0;
  padding-top: 1.1rem;
  padding-left: clamp(22px, 3vw, 30px);
  padding-right: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card__stats li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 1rem;
}

.card__stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.card__stat-value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--platinum);
  text-align: right;
  min-width: 0;
  overflow-wrap: break-word;
}
.card__stat-value.is-gold {
  color: var(--gold-bright);
  font-weight: 700;
}

.card__actions {
  margin-top: 1.5rem;
  padding-left: clamp(22px, 3vw, 30px);
  padding-right: clamp(22px, 3vw, 30px);
  padding-bottom: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card__actions .btn {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.2rem;
  font-size: 0.95rem;
}
.card__actions .btn span:last-child {
  font-family: var(--font-mono);
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__copy {
    max-width: none;
  }
  .card {
    transform: none;
  }
}

/* ----------------------------- sections --------------------------- */

section {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--hairline);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section__head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.section__head p {
  margin-top: 0.8rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* method */

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
/* teaching illustration: one chart that changes with the active step */
.teach {
  position: sticky;
  top: 110px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.teach__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1rem;
}
.teach__tag {
  color: var(--text-faint);
  font-size: 0.78rem;
}
.teach__chips {
  display: grid;
}
.teach__chip {
  grid-area: 1 / 1;
  justify-self: end;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.teach__chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.9rem;
  overflow: visible;
}
.teach__grid line {
  stroke: var(--hairline);
  stroke-width: 1;
}
.teach__axis,
.teach__label {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--text-faint);
}
.teach__label {
  fill: var(--platinum);
}
.teach__label--ref {
  fill: var(--gold);
}
.teach__label--loss {
  fill: var(--danger);
  font-size: 15px;
}
.teach__zone {
  fill: var(--danger);
  fill-opacity: 0.08;
  stroke: var(--danger);
  stroke-opacity: 0.35;
  stroke-dasharray: 4 4;
}
.teach__mark {
  stroke: var(--platinum);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.teach__mark--ref {
  stroke: var(--gold);
}
.teach__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teach__line--you {
  stroke: var(--platinum);
}
.teach__line--ref {
  stroke: var(--gold);
  stroke-width: 2;
}
.teach__line--ghost {
  stroke: var(--platinum);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  stroke-opacity: 0.45;
}
.teach__line--fixed {
  stroke: var(--gold-bright);
}
.teach__bars--before rect {
  fill: var(--platinum);
  fill-opacity: 0.35;
}
.teach__bars--after rect {
  fill: var(--gold-bright);
  fill-opacity: 0.85;
}
.teach__avg {
  stroke: var(--platinum);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.teach__avg--after {
  stroke: var(--gold-bright);
}
.teach__caps {
  display: grid;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
.teach__cap {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* state machine: an element shows when its sN class matches data-step */
.teach .s1,
.teach .s2,
.teach .s3,
.teach .s4 {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.teach[data-step="1"] .s1,
.teach[data-step="2"] .s2,
.teach[data-step="3"] .s3,
.teach[data-step="4"] .s4 {
  opacity: 1;
}
.teach .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: opacity 0.5s ease, stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.teach[data-step="1"] .draw.s1,
.teach[data-step="2"] .draw.s2,
.teach[data-step="3"] .draw.s3 {
  stroke-dashoffset: 0;
}
.teach__bars rect {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.teach[data-step="4"] .teach__bars rect {
  transform: scaleY(1);
}
.teach[data-step="4"] .teach__bars--after rect {
  transition-delay: 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  .teach *,
  .teach .draw {
    transition: none !important;
  }
}

/* this is my job: big photos, three numbers, story beside the record */
/* sideways photo gallery: native scroll with snap, arrow buttons for mouse users */
.gallery {
  position: relative;
}
/* the job heading sits tight on the photos; the arrows ride up beside it */
.job .section__head {
  margin-bottom: clamp(16px, 2vw, 24px);
}
.job .gallery__nav {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.gallery__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.gallery__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-raised);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.gallery__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--text);
  border-right: 2px solid var(--text);
  transform: translate(-65%, -50%) rotate(45deg);
}
.gallery__btn--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}
.gallery__btn:hover {
  border-color: var(--gold);
}
.gallery__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery__track {
  display: flex;
  gap: clamp(10px, 1.4vw, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.gallery__track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.job__photo {
  position: relative;
  flex: none;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(300px, 34vw, 480px);
  scroll-snap-align: start;
}
.job__photo img {
  width: auto;
  max-width: none;
  height: 100%;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .gallery__track {
    scroll-behavior: auto;
  }
}
.job__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(5, 6, 7, 0.85), transparent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.job__stats {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.job__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  line-height: 0.9;
  color: var(--gold-bright);
}
.nowrap {
  white-space: nowrap;
}
.job__stats p {
  margin: 0.7rem 0 0;
  max-width: 30ch;
  color: var(--text-dim);
}

.job__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.job__story {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}
.job__record {
  list-style: none;
  margin: 0;
  padding: 0;
}
.job__record li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.6rem 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.job__record li + li {
  border-top: 1px solid var(--hairline);
}
.job__record span {
  color: var(--gold);
}

@media (max-width: 860px) {
  .job__bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  .job__stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .job__photo {
    height: 300px;
  }
  .job__photo img {
    max-height: 300px;
  }
}

/* reviews: time gained leads every card, the client's words follow */
.gains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.gain {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.8vw, 34px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gain--lead {
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-raised) 60%);
  border-color: var(--gold-dim);
}
.gain__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.gain__meta span:first-child {
  color: var(--text);
}
.gain__delta {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: 0.9;
  color: var(--gold-bright);
}
.gain:not(.gain--lead) .gain__delta {
  font-size: clamp(3rem, 5.5vw, 4.4rem);
}
.gain__delta span {
  font-size: 2.6rem;
  margin-left: 0.08em;
}
.gain:not(.gain--lead) .gain__delta span {
  font-size: 1.8rem;
}
.gain__times {
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.gain__times > div {
  padding: 0.75rem 0;
}
.gain__times > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--hairline);
}
.gain__times dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.gain__times dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-dim);
}
.gain__times > div:first-child dd {
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}
.gain__times .is-after dd {
  color: var(--gold-bright);
}
.gain__times--plain > div:first-child dd {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
}
.gain__quote {
  margin: 1.2rem 0 0;
}
.gain__quote p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}
.gain--lead .gain__quote p {
  font-size: 1.1rem;
}

.voices {
  margin-top: clamp(12px, 1.6vw, 20px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.voice {
  margin: 0;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.voice p {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}
.voice cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 760px) {
  .gains,
  .voices {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* how a session runs */
.session {
  margin-top: clamp(56px, 7vw, 96px);
}
.session__title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.session__list {
  list-style: none;
  margin: clamp(18px, 2.5vw, 28px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.session__item {
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.session__when {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.session__item p {
  margin: 0.5rem 0 0;
  color: var(--text-dim);
  font-size: 0.96rem;
}
@media (max-width: 760px) {
  .session__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* centred until the per-step pictures come back beside it */
.method-scene {
  max-width: 50rem;
  margin-inline: auto;
}

/* vertical timeline: a rail runs down the left of the steps */
.method {
  display: grid;
}

.method__step {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: 1.2rem;
  padding: 0 0 2.4rem 1.6rem;
  border-left: 2px solid var(--gold-dim);
}
.method__step:last-child {
  padding-bottom: 0.4rem;
}
.method__step > * {
  grid-column: 2;
}
.method__step > .method__num {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.method__step--key {
  border-left-color: var(--gold-bright);
}
.method__step--key .method__name {
  color: var(--gold-bright);
}
.method__step--key .method__desc {
  color: var(--text);
}

.method__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 0.9;
  color: var(--gold);
}

.method__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.method__desc {
  margin-top: 0.45rem;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1rem;
}

.method__pro {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  max-width: 56ch;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
}

/* pro notes stay hidden until the step is hovered; touch screens always show them */
@media (hover: hover) and (pointer: fine) {
  .method__pro {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .method__step:hover .method__pro,
  .method__step:focus-within .method__pro {
    opacity: 1;
    transform: none;
  }
}

.method__loss {
  margin: clamp(40px, 6vw, 72px) 0 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold-bright);
}

/* scroll scene: the rail fills step by step, then the steps give way to the line (JS adds .is-scene on wide screens) */
.is-scene .method {
  opacity: var(--steps-o, 1);
}
.is-scene .method__step {
  opacity: calc(0.3 + 0.7 * var(--lit, 0));
}
/* in the scene the pro note arrives with its step instead of on hover */
.is-scene .method__pro {
  opacity: var(--lit, 0);
  transform: none;
  transition: none;
}
.is-scene .method__step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: var(--gold-bright);
  transform: scaleY(var(--lit, 0));
  transform-origin: top;
}
.is-scene .method__loss {
  opacity: var(--loss-o, 0);
  transform: scale(var(--loss-s, 0.9));
  transform-origin: left bottom;
  pointer-events: none;
}

@media (max-width: 960px) {
  .method-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .teach {
    position: static;
  }
}
@media (max-width: 480px) {
  .method__step {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    column-gap: 0.8rem;
    padding-left: 1rem;
  }
  .method__num {
    font-size: 2.2rem;
  }
}

/* pro-context */

.pro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.pro__facts {
  list-style: none;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.pro__facts li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.pro__fact-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
}

.pro__fact-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.pro__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pro__photo img {
  width: 100%;
  height: auto;
  display: block;
}
.pro__photo figcaption {
  padding-top: 0.7rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.pro__photos {
  margin-top: clamp(20px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pro__photos .pro__photo {
  order: 0;
}
.pro__photos figcaption {
  padding: 0.5rem 0.7rem;
}

@media (max-width: 880px) {
  .pro__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pro__photo {
    order: -1;
  }
}

/* services */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.service {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding-top: clamp(24px, 3vw, 32px);
  padding-bottom: clamp(24px, 3vw, 32px);
  padding-left: clamp(24px, 3vw, 32px);
  padding-right: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}

.service__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.service__price {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.service__desc {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.98rem;
  flex: 1;
}

.service .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

@media (max-width: 680px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* stat strip + diagnosis */

.stat-strip {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-strip li {
  background: var(--bg-raised);
  padding: 1.3rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-strip__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--gold-bright);
}
.stat-strip__label {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.3;
}

.diagnosis {
  margin-top: clamp(48px, 6vw, 72px);
}
.diagnosis h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
#diagnosis .diagnosis {
  margin-top: 0;
}
.diagnosis__table {
  margin-top: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.diagnosis__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--hairline);
}
.diagnosis__row:first-child {
  border-top: none;
}
.diagnosis__row span:first-child {
  color: var(--text-dim);
  font-style: italic;
}
.diagnosis__row span:last-child {
  color: var(--text);
  font-size: 0.95rem;
}
.diagnosis__row--head span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-style: normal;
}

@media (max-width: 680px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diagnosis__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
  .diagnosis__row--head {
    display: none;
  }
}

/* results */

.results__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.results__story {
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.results__photo {
  margin: 1.6rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 560px;
}
.results__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.results__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.results__stamp svg {
  flex-shrink: 0;
}

.record {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.record li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hairline);
}
.record li:first-child {
  border-top: none;
}

.record__year {
  flex-shrink: 0;
  width: 3.4em;
  color: var(--gold);
  font-size: 0.88rem;
}

.record__title {
  color: var(--text-dim);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .results__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* levels */

.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.level {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 26px);
}

.level__head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold-dim);
}
.level__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
}
.level__name {
  font-size: 1.35rem;
}

.level__rows {
  margin: 0;
}
.level__row {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hairline);
}
.level__row:first-child {
  border-top: none;
}
.level__row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.level__row dd {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}
.level__row:not(.is-key) dd {
  filter: blur(4px);
  opacity: 0.7;
  user-select: none;
}
.level__row.is-key dd {
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}
.level__row.is-key dd::before,
.levels__star {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  transform: rotate(45deg);
}
.level__row.is-key dd::before {
  position: absolute;
  left: 0;
  top: 0.5em;
}

.levels__legend {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .levels {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
}

/* on your own vs with me */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.compare__col {
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.compare__col--alone {
  border: 1px solid var(--border);
}
.compare__col--me {
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-raised) 60%);
  border: 1px solid var(--gold);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}

.compare__title {
  font-size: 1.4rem;
  color: var(--text-dim);
}
.compare__col--me .compare__title {
  color: var(--gold-bright);
}

.compare__list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.compare__list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.compare__col--me .compare__list li {
  color: var(--text);
}

/* drawn marks: a cross for alone, a check for with me */
.compare__col--alone .compare__list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.35em;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(45deg, transparent 44%, var(--danger) 44%, var(--danger) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--danger) 44%, var(--danger) 56%, transparent 56%);
  opacity: 0.8;
}
.compare__col--me .compare__list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.2em;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: rotate(45deg);
}

.compare__col--me .btn {
  margin-top: 1.6rem;
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* reviews: what happens when you train with me */

.review-pair {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
.review-pair--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.review-quote,
.review-result,
.review-card {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}

.review-quote p,
.review-card p:not(.review-card__result) {
  color: var(--text-dim);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  flex: 1;
}
.review-quote p {
  font-size: 1.06rem;
  color: var(--text);
}

.review-quote cite,
.review-card cite {
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.review-result {
  justify-content: center;
}
.review-result__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.review-result__delta {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--gold-bright);
}
.review-result__times {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--platinum);
  font-size: 1rem;
}
.review-result__arrow {
  width: 22px;
  height: 1px;
  background: var(--text-faint);
  position: relative;
}
.review-result__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--text-faint);
  border-right: 1px solid var(--text-faint);
  transform: rotate(45deg);
}
.review-result__note {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 44ch;
}

.review-result__bar {
  margin-top: 1.4rem;
  height: 8px;
  border-radius: 4px;
  background: var(--hairline);
  overflow: hidden;
}
.review-result__bar span {
  display: block;
  height: 100%;
  width: calc(var(--gain) * 100%);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
}
.review-result__scale {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.review-card {
  padding: clamp(18px, 2.2vw, 24px);
}
.review-card__result {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}
.review-card p:not(.review-card__result) {
  font-size: 0.93rem;
}

@media (max-width: 1060px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .review-pair,
  .review-pair--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-pair--flip .review-result {
    order: 2;
  }
}
@media (max-width: 520px) {
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* book / contact */

.book {
  background: var(--bg-raised);
}

.book__panel {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(28px, 5vw, 48px);
  padding-left: clamp(28px, 5vw, 48px);
  padding-right: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
}

.book__panel h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.3rem);
}
.book__panel > div > p {
  margin-top: 0.8rem;
  color: var(--text-dim);
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 1em;
}
.book-form textarea {
  resize: vertical;
  min-height: 90px;
}
.book-form input::placeholder,
.book-form textarea::placeholder {
  color: var(--text-faint);
}
.book-form input:focus-visible,
.book-form select:focus-visible,
.book-form textarea:focus-visible {
  border-color: var(--gold);
}
.book-form input:user-invalid {
  border-color: var(--danger);
}

.book-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.book-form__status {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}
.book-form__status[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .book__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .book-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* footer */

footer {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 40px);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer__brand-sub {
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer__links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer__links a {
  color: var(--text-dim);
}
.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--text);
}
.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* reveal-on-scroll (used sparingly — the card and stamp carry the real motion) */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card {
    transform: none !important;
  }
}

/* link to a public recording of the session behind a review */
.gain__link {
  align-self: flex-start;
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.gain__link::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.5rem solid currentColor;
}
.gain__link:hover,
.gain__link:focus-visible {
  border-color: var(--gold);
  background-color: color-mix(in srgb, var(--gold) 8%, transparent);
}

/* split heading: centred, a quiet first line and a gold answer line */
.section__head--split {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.section__head--split h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-wrap: balance;
}
.section__head--split .split__lead,
.section__head--split .split__accent {
  display: block;
}
.section__head--split .split__lead {
  color: var(--platinum);
}
.section__head--split .split__accent {
  color: var(--gold-bright);
}
.section__head--split p {
  margin-inline: auto;
  max-width: 52ch;
}

/* record on its own: centred and larger */
.job__bottom--solo {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.job__bottom--solo .job__record {
  width: 100%;
  max-width: 44rem;
}
.job__bottom--solo .job__record li {
  grid-template-columns: 5rem minmax(0, 1fr);
  padding: 0.95rem 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text);
}
.job__bottom--solo .job__record span {
  font-size: 1.05em;
}

/* reviewer: avatar + name under the quote */
.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.author__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.author__avatar--mono {
  display: grid;
  place-items: center;
  background: var(--bg-sunken);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-bright);
}
.author__name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}
.voice__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}
.voice__foot .author {
  margin-top: 0;
}
.voice__foot cite {
  margin-top: 0;
}

/* trust strip: drivers who train with me, right under the hero */
.trust {
  padding-block: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem 2.2rem;
}
.trust__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.2rem;
}
.trust__list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

/* free trial lead magnet */
.trial__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-raised) 60%);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
}
.trial__copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}
.trial__copy p {
  margin-top: 1rem;
  max-width: 44ch;
  font-size: 1.1rem;
  color: var(--text);
}
.trial__promo {
  font-family: var(--font-display);
  font-size: 1.35em;
  color: var(--gold-bright);
}
@media (max-width: 860px) {
  .trial__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* featured review: status instead of a lap time, full text expands in place */
.feature-review {
  margin-bottom: clamp(12px, 1.6vw, 20px);
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-raised) 55%);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
}
.feature-review__who {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.feature-review__photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.feature-review__photo--mono {
  display: grid;
  place-items: center;
  background: var(--bg-sunken);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-bright);
}
.feature-review__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
}
.feature-review__title {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.feature-review__quote {
  margin: clamp(20px, 3vw, 32px) 0 0;
}
.feature-review__quote p {
  margin: 0;
  max-width: 34ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  color: var(--text);
}
.feature-review__more {
  margin-top: clamp(20px, 3vw, 28px);
}
.feature-review__more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.feature-review__more summary::-webkit-details-marker {
  display: none;
}
.feature-review__more summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.feature-review__more[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.feature-review__more summary:hover,
.feature-review__more summary:focus-visible {
  border-color: var(--gold);
  background-color: color-mix(in srgb, var(--gold) 8%, transparent);
}
.feature-review__more .when-open,
.feature-review__more[open] .when-closed {
  display: none;
}
.feature-review__more[open] .when-open {
  display: inline;
}
.feature-review__full {
  margin-top: 1.4rem;
  max-width: 68ch;
}
.feature-review__full p {
  margin: 0 0 1rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* featured review with a large portrait */
.feature-review {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.feature-review__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--gold-dim);
}
.feature-review__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.feature-review__body {
  min-width: 0;
  align-self: center;
}
@media (max-width: 760px) {
  .feature-review {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-review__media {
    aspect-ratio: 4 / 3;
  }
}

/* three formats in one row: free trial leads, then the two paid services */
.services--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service--trial {
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-raised) 60%);
  border-color: var(--gold-dim);
}
.service__video {
  margin-top: 1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 0.2em;
}
.service__video::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.48rem solid currentColor;
}
.service__video:hover,
.service__video:focus-visible {
  text-decoration-color: var(--gold-bright);
}
@media (max-width: 960px) {
  .services--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* waiting-list next step shown after a trial request */
.book-form__cta {
  display: inline-flex;
  margin-top: 0.8rem;
}

/* sourced stat: links to its proof */
.card__stat-link {
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 0.2em;
}
.card__stat-link:hover,
.card__stat-link:focus-visible {
  text-decoration-color: var(--gold-bright);
}

/* hero proof link: the trial session video */
.text-link--play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.text-link--play::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.52rem solid var(--gold-bright);
}

/* mid-page step toward the offer */
.cta-strip {
  margin-top: clamp(20px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
}
.cta-strip p {
  margin: 0;
  max-width: 48ch;
  font-size: 1.08rem;
  color: var(--text);
}
.method__next {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 36px);
}

/* free trial dialog */
.trial-dialog {
  width: min(34rem, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-raised) 55%);
  color: var(--text);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
}
.trial-dialog::backdrop {
  background: rgba(5, 6, 7, 0.78);
}
.trial-dialog h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  padding-right: 2.5rem;
}
.trial-dialog__lead {
  margin: 0.8rem 0 0;
  color: var(--text-dim);
}
.trial-dialog .book-form {
  margin-top: 1.4rem;
}
.trial-dialog [data-trial-step="done"] .btn {
  margin-top: 1.4rem;
}
.trial-dialog__more {
  margin: 1.8rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 0.95rem;
}
.trial-dialog__links {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.trial-dialog__links a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 0.2em;
}
.trial-dialog__links a:hover,
.trial-dialog__links a:focus-visible {
  text-decoration-color: var(--gold-bright);
}
.trial-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-sunken);
  cursor: pointer;
}
.trial-dialog__close::before,
.trial-dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--text);
}
.trial-dialog__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.trial-dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.trial-dialog__close:hover,
.trial-dialog__close:focus-visible {
  border-color: var(--gold);
}

/* reviews fold: the strongest few show, the rest fade out until expanded (JS adds .is-folded) */
.reviews-fold {
  position: relative;
}
.reviews-fold.is-folded {
  overflow: hidden;
  max-height: var(--fold-h, 1600px);
}
.reviews-fold.is-folded::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0), var(--bg) 92%);
  pointer-events: none;
}
.reviews-fold__toggle {
  display: flex;
  margin: 1rem auto 0;
}

/* "M.Statsenko": initial and surname set tight */
.brand--tight {
  gap: 0.04em;
}

/* stronger first-screen actions */
.btn--lg {
  font-size: 1.3rem;
  padding: 0.95em 1.7em;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-color: var(--gold-bright);
}
.btn--play::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-top: 0.36rem solid transparent;
  border-bottom: 0.36rem solid transparent;
  border-left: 0.58rem solid currentColor;
}

/* scroll cue: from the first screen down to the reviews */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  margin: clamp(32px, 5vw, 56px) auto 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.scroll-cue__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  position: relative;
  animation: cue-bob 1.8s ease-in-out infinite;
}
.scroll-cue__arrow::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.scroll-cue:hover .scroll-cue__arrow,
.scroll-cue:focus-visible .scroll-cue__arrow {
  border-color: var(--gold);
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrow {
    animation: none;
  }
}

/* driver card price buttons: both read as buttons */
.card__actions .btn {
  font-size: 1.05rem;
  padding: 0.95em 1.2em;
}
.card__actions .btn-ghost {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.hero__copy .scroll-cue {
  flex-direction: row;
  gap: 0.8rem;
  margin: clamp(28px, 4vw, 44px) 0 0;
}

/* quiet reminder after the reviews: a line of text, not a second banner */
.cta-quiet {
  margin: clamp(20px, 3vw, 32px) 0 0;
  text-align: center;
  color: var(--text-dim);
}
.cta-quiet a {
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 0.2em;
}
.cta-quiet a:hover,
.cta-quiet a:focus-visible {
  text-decoration-color: var(--gold-bright);
}

/* booking window: wide for the three formats, narrow once a form is open */
.book-dialog {
  width: min(70rem, calc(100vw - 32px));
}
.book-dialog.is-narrow {
  width: min(34rem, calc(100vw - 32px));
}
.book-dialog__formats {
  margin-top: clamp(18px, 2.4vw, 26px);
}
.book-dialog .service {
  background: var(--bg-sunken);
}
.book-dialog .service--trial {
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-sunken) 60%);
}
.book-dialog__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.book-dialog__back::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.book-dialog__back:hover,
.book-dialog__back:focus-visible {
  color: var(--gold-bright);
}
.book-dialog [data-book-step="trial-done"] .btn {
  margin-top: 1.4rem;
}

/* booking window: the picked format carries the gold accent, the others stay plain */
.book-dialog .service--trial {
  background: var(--bg-sunken);
  border-color: var(--border);
}
.book-dialog .service.is-picked {
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-sunken) 60%);
  border-color: var(--gold);
}
.book-dialog.has-pick .service:not(.is-picked) .btn-primary {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  box-shadow: none;
}
.book-dialog.has-pick .service:not(.is-picked) .btn-primary:hover,
.book-dialog.has-pick .service:not(.is-picked) .btn-primary:focus-visible {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

/* ---------------- palette options (preview with ?palette=name) ---------------- */
/* gold-family variations: each swaps only the tokens; layout and type stay the same */

/* B. Champagne: paler, softer gold, more luxury than trophy */
[data-palette="champagne"] {
  --gold: #d8c08a;
  --gold-bright: #f4e6c4;
  --gold-ink: #17120a;
  --gold-dim: #5a4d34;
  --accent-tint: #1c1a14;
}

/* C. Bronze: deeper, warmer, older-metal gold */
[data-palette="bronze"] {
  --bg: #0c0a09;
  --bg-raised: #181412;
  --border: #2c2520;
  --hairline: #1f1a17;
  --gold: #c08a4a;
  --gold-bright: #e9bd86;
  --gold-ink: #1a0f04;
  --gold-dim: #5a3d22;
  --accent-tint: #22170e;
}

/* D. Gold on navy: night-race blue ground, same gold */
[data-palette="navy"] {
  --bg: #080c16;
  --bg-raised: #111828;
  --bg-sunken: #050810;
  --border: #22304a;
  --hairline: #172238;
  --text-dim: #9aa3b4;
  --text-faint: #8e98aa;
  --accent-tint: #1a1c1c;
  --platinum: #b4bfd0;
}

/* E. Gold on racing green: classic British racing green ground */
[data-palette="green"] {
  --bg: #07100c;
  --bg-raised: #0f1c16;
  --bg-sunken: #040a07;
  --border: #1f3329;
  --hairline: #15261e;
  --text-dim: #9aa79f;
  --text-faint: #8f9c94;
  --accent-tint: #1a1d12;
  --platinum: #b2c0b8;
}


/* booking forms: optional hint, consent line, prep list, contact buttons */
.book-form__optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-faint);
}
.book-form .book-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  cursor: pointer;
}
.book-form__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  accent-color: var(--gold);
}
.book-dialog__prep {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.6;
}
.book-dialog__dm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.book-dialog [data-book-step="trial-done"] .btn-ghost {
  margin-top: 0.8rem;
}
.book-form .book-form__consent input {
  padding: 0;
  border: none;
  background: none;
  appearance: auto;
}

/* card without action buttons: the stats close the card */
.card__stats:last-child {
  padding-bottom: clamp(22px, 3vw, 30px);
}

/* compare: each "alone" point sits level with its "with me" answer */
@media (min-width: 761px) {
  .compare__list li {
    min-height: 3.2em;
  }
}

/* one centred, larger booking button under both columns */
.compare__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}
.compare__cta .btn--lg {
  padding: 1em 2.6em;
}

/* two headline reviews side by side: each card stacks photo over text */
.feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
  margin-bottom: clamp(12px, 1.6vw, 20px);
}
.feature-pair .feature-review {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}
.feature-pair .feature-review__media {
  aspect-ratio: 4 / 3;
}
.feature-pair .feature-review__media img {
  object-position: center 25%;
}
.feature-pair .feature-review__quote p {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}
@media (max-width: 860px) {
  .feature-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* small helper line under a form field */
.book-form__hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-faint);
}

/* footer contacts */
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
}
.footer__contacts-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}
.footer__social a {
  color: var(--gold-bright);
  font-weight: 600;
}
.footer__social a:hover,
.footer__social a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.book-form__consent a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
[data-order-for="1-on-1 Coaching"] .btn {
  margin-top: 1rem;
}

/* legal page */
.legal {
  padding-block: clamp(40px, 7vw, 88px);
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.3rem;
}
.legal p,
.legal li {
  color: var(--text-dim);
  line-height: 1.7;
}
.legal p {
  margin: 0.9rem 0 0;
}
.legal ul {
  margin: 0.8rem 0 0;
  padding-left: 1.3rem;
}
.legal strong {
  color: var(--text);
}
.legal__back {
  color: var(--gold-bright);
  font-weight: 600;
}
.legal__note {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
}

/* footer: personal Telegram leads, the rest follow as links */
.footer__tg {
  font-size: 1rem;
}
.footer__note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.trial-dialog__more a,
.legal a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* sections land below the sticky header */
section[id],
[id="contacts"] {
  scroll-margin-top: 80px;
}

/* links inside dialog copy and form hints */
.trial-dialog__lead a,
.book-form__hint a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.book-form__hint--box {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  color: var(--text-dim);
}

/* header: Telegram sits next to the booking button */
@media (min-width: 880px) {
  .site-nav__row .nav-cta--group {
    display: flex;
    gap: 0.6rem;
  }
}
.nav-cta--group .btn-ghost {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
.nav-links .nav-links__cta-row + .nav-links__cta-row {
  padding-top: 0.6rem;
}
.footer__contacts .footer__note {
  width: 100%;
  flex: 0 0 100%;
}

/* footer: menu on the left, contacts on the right, same row */
.footer__row {
  align-items: center;
}
.footer__row .footer__contacts {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  gap: 0.6rem 1.4rem;
}
.footer__bottom a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--gold-bright);
}

/* footer contacts: icon + label */
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}
.footer__social svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--gold);
  transition: fill 0.18s var(--ease-out);
}
.footer__social a:hover,
.footer__social a:focus-visible {
  color: var(--gold-bright);
  text-decoration: none;
}
.footer__social a:hover svg,
.footer__social a:focus-visible svg {
  fill: var(--gold-bright);
}

/* ---------------- mobile header: solid bar under the iPhone status area, booking button visible ---------------- */
.site-nav {
  padding-top: env(safe-area-inset-top, 0px);
}
@media (max-width: 879px) {
  .site-nav::before {
    background: var(--bg);
    backdrop-filter: none;
  }
  .site-nav__row .nav-cta--group {
    display: flex;
  }
  .nav-cta--group .btn-ghost {
    display: none;
  }
  .nav-cta--group .btn {
    padding: 0.6em 1.1em;
    font-size: 1rem;
  }
  .nav-links {
    top: calc(72px + env(safe-area-inset-top, 0px));
  }
}

/* footer contacts: label and links on one line */
.footer__row .footer__contacts {
  align-items: center;
}
.footer__contacts-label {
  line-height: 1;
}

/* ---------------- motion: windows and blocks open smoothly ---------------- */
.trial-dialog[open] {
  animation: dialog-in 0.34s var(--ease-out);
}
.trial-dialog[open]::backdrop {
  animation: backdrop-in 0.34s ease;
}
/* the width swaps instantly (animating it relays out text every frame and stutters);
   the new step fades in with opacity/transform only, which stays on the GPU */
.book-dialog__step:not([hidden]) {
  animation: step-in 0.22s var(--ease-out);
}
.reviews-fold.is-opening {
  overflow: hidden;
  transition: max-height 0.7s var(--ease-out);
}
.feature-review__full {
  overflow: hidden;
  transition: height 0.45s var(--ease-out);
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trial-dialog[open],
  .trial-dialog[open]::backdrop,
  .book-dialog__step:not([hidden]) {
    animation: none;
  }
  .reviews-fold.is-opening,
  .feature-review__full {
    transition: none;
  }
}

/* mobile menu buttons: readable, centred; "Записаться" already sits in the bar */
@media (max-width: 879px) {
  .nav-links .nav-links__cta-row a.btn {
    display: flex;
    justify-content: center;
    padding: 0.85em 1em;
  }
  .nav-links a.btn-ghost {
    color: var(--gold-bright);
    border: 1px solid var(--gold-dim);
  }
  .nav-links a.btn-primary {
    color: var(--gold-ink);
  }
  .nav-links .nav-links__cta-row:last-child {
    display: none;
  }
}
