/* ============================================================
   Takovia — "Pebble" design system
   Cream canvas, brand blue, rounded pebble shapes echoing the logo.
   Tokens from the takovea-web design system.
   ============================================================ */
:root {
  --paper: #FAF7F2;          /* cream-100 — page background */
  --card: #FFFDF9;           /* cream-50 — cards on cream */
  --ink: #1A1A2E;            /* ink-900 */
  --ink-soft: #4A4A5A;       /* ink-500 — body text */
  --accent: #2563EB;         /* brand-500 blue */
  --accent-deep: #1D4ED8;    /* brand-600 */
  --accent-soft: #BFDBFE;    /* brand-200 — logo accent, highlights */
  --accent-bright: #60A5FA;  /* brand-400 — accent on dark/blue */
  --coral: #F97356;          /* coral-500 */
  --emerald: #10B981;        /* emerald-500 */
  --violet: #8B5CF6;         /* violet-500 */
  --line: #EAE3D8;           /* warm hairline */
  --dark: #0C0C1A;           /* dark-950 — footer */
  --radius-pebble: 999px;

  /* Radius scale — four steps, nothing in between */
  --r-sm: 16px;                        /* inputs and small controls */
  --r-md: 28px;                        /* standard surface cards */
  --r-lg: 36px;                        /* feature cards that carry a visual */
  --r-band: clamp(40px, 6vw, 72px);    /* the two full-width pebbles */
  --radius-card: var(--r-md);          /* legacy alias */

  /* Elevation — one resting shadow, one for anything that floats or tilts */
  --shadow-card: 0 10px 30px rgba(26, 26, 46, 0.05);
  --shadow-float: 0 24px 50px -22px rgba(26, 26, 46, 0.26);

  /* Vertical rhythm — every body section uses this */
  --section-pad: clamp(96px, 13.5vh, 166px);
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  overflow-x: clip;
  font-family: Outfit, system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(37, 99, 235, 0.2); color: var(--ink); }

button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

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

/* ============ Scroll reveal ============
   Fade + rise + blur. Gated behind .js-reveal, which the inline script in
   <head> adds, so the page renders fully if the script never runs.
   Uses the standalone translate/scale properties, leaving `transform` free
   for hover lifts and the pebbles' authored rotation. */
.js-reveal [data-reveal],
.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  translate: 0 30px;
  filter: blur(8px);
  transition:
    opacity 0.6s ease-out var(--reveal-delay, 0s),
    translate 0.6s ease-out var(--reveal-delay, 0s),
    scale 0.6s ease-out var(--reveal-delay, 0s),
    filter 0.6s ease-out var(--reveal-delay, 0s),
    /* carried so hover lifts keep their own timing — this rule outranks the
       component-level transitions on .play and the stepper cards */
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
/* Scale variant, for elements where a vertical shift would fight a transform */
.js-reveal [data-reveal="scale"],
.js-reveal [data-reveal-stagger="scale"] > * {
  translate: none;
  scale: 0.96;
}
.js-reveal [data-reveal].is-visible,
.js-reveal [data-reveal-stagger] > .is-visible {
  opacity: 1;
  translate: none;
  scale: 1;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal-stagger] > * {
    opacity: 1;
    translate: none;
    scale: none;
    filter: none;
    transition: none;
  }
}

/* ============ Shared components ============ */

/* Pill CTA button */
.cta {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pebble);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.55);
}
.cta:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.65);
}
.cta .arrow { display: inline-block; transition: transform 0.18s ease; }
.cta:hover .arrow { transform: translateX(3px); }
.cta.size-big { font-size: 19px; padding: 20px 36px; }
.cta.nav-cta {
  font-size: 14px;
  padding: 11px 22px;
  box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.45);
}

/* Headings */
.h2 {
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.section-head { margin-bottom: clamp(48px, 7vh, 88px); }
.section-head--center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 20px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }
.section-inner { max-width: 1200px; margin: 0 auto; }

/* Wordmark — pebble mark + lowercase wordmark */
.wordmark {
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.045em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark .logo-mark { display: block; height: 21px; width: auto; }
.wordmark--light { color: #fff; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 48px;
  background: rgba(250, 247, 242, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
/* script.js adds .is-stuck once the page has scrolled off the top */
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 26px -22px rgba(26, 26, 46, 0.45);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============ Hero ============ */
.hero {
  padding: clamp(64px, 10vh, 124px) 48px clamp(64px, 9vh, 110px);
  text-align: center;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.display {
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
}
@media (max-width: 700px) {
  .display br { display: none; }
}
/* A word wrapped in a pebble pill */
.pill-word {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-pebble);
  padding: 0 0.32em 0.06em;
  transform: rotate(-1.2deg);
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: clamp(24px, 3.5vh, 36px) 0 clamp(30px, 4.5vh, 44px);
  text-wrap: pretty;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ---- Offer facts as pebbles ---- */
.pebble-band {
  position: relative;
  max-width: 1080px;
  margin: clamp(56px, 8vh, 100px) auto 0;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 32px);
}
.pebble {
  flex: 1 1 0;
  max-width: 340px;
  min-height: clamp(150px, 17vw, 190px);
  border-radius: var(--radius-pebble);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 26px 36px;
  transform: rotate(var(--tilt, 0deg));
  animation: drift 7s ease-in-out infinite;
}
.pebble:nth-child(2) { animation-duration: 8s; animation-delay: 0.6s; }
.pebble:nth-child(3) { animation-duration: 6.5s; animation-delay: 1.1s; }
.pebble--blue {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 24px 50px -18px rgba(37, 99, 235, 0.55);
}
.pebble--blue .pebble-label { color: rgba(255, 255, 255, 0.75); }
.pebble--soft {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(37, 99, 235, 0.3);
}
.pebble--soft .pebble-label { color: rgba(26, 26, 46, 0.62); }
.pebble--card {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.pebble--card .pebble-label { color: var(--ink-soft); }
.pebble-value {
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pebble-label {
  margin-top: 10px;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 24ch;
}
/* Small coral companion pebble */
.pebble-dot {
  position: absolute;
  top: -26px;
  right: 6%;
  width: 54px;
  height: 34px;
  border-radius: var(--radius-pebble);
  background: var(--coral);
  transform: rotate(8deg);
  animation: drift 5.5s ease-in-out infinite 0.3s;
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pebble, .pebble-dot { animation: none !important; }
}

/* ============ What I build (services) ============ */
.services { padding: var(--section-pad) 48px; }
/* ---- Stepper: three panels + a synced dot-matrix visual ---- */
.stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-item {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2vw, 26px) clamp(22px, 2.2vw, 30px);
  transition: border-color 0.25s ease, background 0.25s ease;
  box-shadow: var(--shadow-card);
}
.step-item-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.step-item-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a99f8c;
  font-variant-numeric: tabular-nums;
}
.step-item-title {
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: -0.02em;
}
.step-item-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--step-accent, var(--accent));
}
.step-item-body {
  display: block;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 10px;
  text-wrap: pretty;
}
/* Progress rail, only meaningful once JS is driving the rotation */
.step-item-rail { display: none; }

.step-item--blue { --step-accent: var(--accent); }
.step-item--coral { --step-accent: var(--coral); }
.step-item--sky { --step-accent: var(--accent-bright); }

/* Enhanced state: collapse the inactive panels */
.stepper.is-enhanced .step-item-body {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.45s ease;
}
.stepper.is-enhanced .step-item.is-active {
  border-color: color-mix(in srgb, var(--step-accent) 55%, transparent);
  background: color-mix(in srgb, var(--step-accent) 5%, var(--card));
}
.stepper.is-enhanced .step-item.is-active .step-item-body {
  max-height: 220px;
  margin-top: 10px;
  opacity: 1;
}
.stepper.is-enhanced .step-item-rail {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--step-accent) 18%, transparent);
  margin-top: 16px;
  overflow: hidden;
}
.stepper.is-enhanced .step-item-rail i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--step-accent);
}
.stepper.is-enhanced .step-item.is-active .step-item-rail i {
  animation: rail-fill var(--dwell, 6s) linear forwards;
}
.stepper.is-enhanced.is-paused .step-item.is-active .step-item-rail i {
  animation: none;
  width: 100%;
}
@keyframes rail-fill { from { width: 0; } to { width: 100%; } }

/* The visual */
.stepper-viz {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  padding: clamp(18px, 2vw, 26px);
  aspect-ratio: 6 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.viz-canvas { width: 100%; height: 100%; }
.viz-canvas rect { animation: pebble-breathe var(--dur) ease-in-out var(--delay) infinite; }
.viz-label {
  position: absolute;
  left: clamp(20px, 2.2vw, 28px);
  bottom: clamp(16px, 1.8vw, 22px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a99f8c;
}
@media (prefers-reduced-motion: reduce) {
  .viz-canvas rect { animation: none; opacity: var(--o-max); }
  .stepper.is-enhanced .step-item.is-active .step-item-rail i { animation: none; width: 100%; }
}
/* ============ The problem ============ */
.problem {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 48px;
}
/* Faint dot grid, fading out at the edges */
.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 26, 46, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 78%);
  pointer-events: none;
}
/* Content section: left edge lines up with every other section head.
   The prose itself is held to a readable measure rather than the column. */
.problem-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.problem-body { max-width: 64ch; }
.problem-body p {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.problem-body .problem-close {
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin: 34px 0 0;
}
/* Inline highlight — the hero's pill treatment, sized for body copy */
.mark {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 500;
  border-radius: 8px;
  padding: 0.1em 0.32em;
  /* keeps the rounded ends on every line when the phrase wraps */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ============ The plays (where the hours hide) ============ */
.plays { padding: var(--section-pad) 48px; }
.plays-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
/* Each play is a soft tinted bubble — no rules, no hard edges */
.play {
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 32px);
  transition: transform 0.2s ease;
}
.play:hover { transform: translateY(-4px); }
.play--blue { background: rgba(37, 99, 235, 0.1); }
.play--coral { background: rgba(249, 115, 86, 0.09); }
.play--emerald { background: rgba(16, 185, 129, 0.09); }
.play--violet { background: rgba(139, 92, 246, 0.09); }

/* The two-pebble logo mark, tinted per bubble */
.play-mark { display: block; width: 38px; margin-bottom: 20px; }
.play-mark i { display: block; border-radius: var(--radius-pebble); }
.play-mark i:first-child {
  width: 24px;
  height: 10px;
  margin-left: 10px;
  margin-bottom: 3px;
}
.play-mark i:last-child { width: 34px; height: 13px; }
.play--blue .play-mark i:first-child { background: var(--accent-soft); }
.play--blue .play-mark i:last-child { background: var(--accent); }
.play--coral .play-mark i:first-child { background: #FFC8B4; }
.play--coral .play-mark i:last-child { background: var(--coral); }
.play--emerald .play-mark i:first-child { background: #A7F3D0; }
.play--emerald .play-mark i:last-child { background: var(--emerald); }
.play--violet .play-mark i:first-child { background: #DDD6FE; }
.play--violet .play-mark i:last-child { background: var(--violet); }

.play-name {
  font-weight: 700;
  font-size: clamp(17px, 1.35vw, 19px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.play-desc {
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ============ The deliverable ============ */
.deliverable { padding: var(--section-pad) 48px; }
.deliverable-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.deliverable-aside {
  margin: 26px 0 34px;
  padding-left: 18px;
  border-left: 2px solid var(--accent-soft);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* Three sessions on one rail. The old version listed the sessions twice:
   once as bullets, once as document rows. Each card now pairs the session
   with its example, so the sequence is stated once. */
.session-block {
  position: relative;
  display: flex;
  flex-direction: column;
}
.session-stamp {
  align-self: flex-end;
  margin-bottom: 14px;
  background: rgba(249, 115, 86, 0.12);
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius-pebble);
}
.session-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.session {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
/* The rail: one segment per gap, drawn from this node's bottom to the next
   node's top (14px list gap + the next node's 16px offset). Nothing after
   the last node, so the line can't overshoot the run. */
.session::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -30px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-soft);
}
.session:last-child::before { content: none; }
/* A pebble, same shape language as the logo mark */
.session-node {
  position: relative;
  z-index: 1;
  flex: none;
  width: 44px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pebble);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 16px;
  box-shadow: 0 4px 12px -6px rgba(37, 99, 235, 0.6);
}
/* Deepening blue across the three, so the run reads as building up */
.session:nth-child(1) .session-node { background: var(--accent-bright); }
.session:nth-child(2) .session-node { background: var(--accent); }
.session:nth-child(3) .session-node { background: var(--accent-deep); }
.session-card {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px 18px;
  box-shadow: var(--shadow-card);
}
.session-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.session-desc {
  margin: 7px 0 13px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  text-wrap: pretty;
}
/* The concrete example, inset like a quoted line from the plan */
.session-eg {
  margin: 0;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 11px 16px;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.4;
  color: var(--ink-soft);
}
.session-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 14px 0 0 62px;
  padding: 14px 22px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-pebble);
}
.session-result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.session-result-val {
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.deliverable-note {
  margin: clamp(40px, 6vh, 64px) auto 0;
  text-align: center;
  font-size: 15px;
  color: #9a917f;
  max-width: 60ch;
}

/* ============ How it works ============ */
.how { padding: var(--section-pad) 48px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.4vw, 36px);
  box-shadow: var(--shadow-card);
}
.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: var(--radius-pebble);
  padding: 7px 16px;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.step-pill--blue { background: var(--accent); }
.step-pill--coral { background: var(--coral); }
.step-pill--emerald { background: var(--emerald); }
.step-pill--violet { background: var(--violet); }
.step-title {
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.step-desc {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ============ Guarantee (blue pebble band) ============ */
.guarantee { padding: clamp(40px, 6vh, 80px) 48px; }
.guarantee-pebble {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  border-radius: var(--r-band);
  padding: clamp(90px, 13vh, 160px) clamp(32px, 5vw, 80px);
  text-align: center;
}
.guarantee-shape {
  position: absolute;
  border-radius: var(--radius-pebble);
  pointer-events: none;
}
.guarantee-shape--a {
  width: 480px; height: 260px;
  left: -170px; bottom: -120px;
  background: rgba(255, 255, 255, 0.07);
}
.guarantee-shape--b {
  width: 360px; height: 200px;
  right: -130px; top: -80px;
  background: rgba(191, 219, 254, 0.16);
}
.guarantee-inner { position: relative; max-width: 900px; margin: 0 auto; }
.guarantee-h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.dollar {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  border-radius: var(--radius-pebble);
  padding: 0 0.3em 0.05em;
  letter-spacing: -0.035em;
  transform: rotate(-1.5deg);
}
.guarantee-sub {
  font-size: clamp(16px, 1.35vw, 20px);
  color: rgba(255, 255, 255, 0.78);
  margin: clamp(28px, 4vh, 44px) 0 0;
}

/* ============ FAQ ============ */
.faq { padding: var(--section-pad) 48px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.6vw, 38px);
  box-shadow: var(--shadow-card);
}
.faq-q {
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.faq-a {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ============ Booking form ============ */
.form-section { padding: var(--section-pad) 48px; }
.form-container { max-width: 780px; margin: 0 auto; }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8171;
}
.input {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  outline: none;
  width: 100%;
  resize: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-weight: 400;
}
.input::placeholder { color: #b3aa98; }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%231A1A2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}
/* Placeholder option is value="" on a required select, so :invalid = nothing chosen */
select.input:invalid { color: #b3aa98; }
.submit-row {
  display: flex;
  align-items: flex-start;
  margin-top: 18px;
}

/* Post-submit success state */
.form-success {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}
.form-success-title {
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.form-success-copy {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.form-success-copy a { color: var(--accent); text-decoration: none; border-bottom: 1.5px solid var(--accent-soft); }

/* ============ Founder ============ */
.founder {
  padding: var(--section-pad) 48px;
  text-align: center;
}
.founder-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Pebble-shaped portrait, echoing the logo mark */
.photo-wrap {
  width: clamp(230px, 25vw, 310px);
  aspect-ratio: 5 / 4;
  margin-top: 26px;
  margin-bottom: clamp(36px, 5vh, 56px);
  border-radius: var(--radius-pebble);
  overflow: hidden;
  background: #F3EDE4;
  box-shadow: var(--shadow-float);
}
/* Square source in a 5:4 pebble: bias the crop upward so the trim comes off
   the jacket rather than the top of the head. */
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.founder-bio {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 24px;
  margin-bottom: 28px;
  max-width: 40ch;
  text-wrap: pretty;
}
.founder-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-soft);
  padding-bottom: 2px;
}

/* ============ Footer (dark pebble, closes with the ask) ============
   Structured as a sibling of the guarantee band: a rounded slab floating
   on cream, so the page's one other heavy moment shares its language. */
.site-footer {
  padding: clamp(40px, 6vh, 80px) 48px clamp(48px, 7vh, 88px);
  background: var(--paper);
}
.footer-pebble {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 round var(--r-band));
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #141422 0%, var(--dark) 100%);
  color: #fff;
  border-radius: var(--r-band);
  padding: clamp(64px, 9vh, 104px) clamp(32px, 5vw, 80px) clamp(96px, 11vw, 150px);
}
/* Field of tiny pebbles dissolving into the dark at the bottom edge.
   Clipped by the pebble's own border-radius via overflow: hidden.
   This ::after is the no-JS fallback; script.js swaps in a live one. */
.footer-pebble::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: clamp(90px, 11vw, 162px);
  background: url("assets/footer-mosaic.svg") repeat-x bottom center;
  background-size: auto 100%;
  pointer-events: none;
}
.footer-pebble.has-live-mosaic::after { display: none; }

.footer-mosaic {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: clamp(90px, 11vw, 162px);
  pointer-events: none;
}
/* Each pebble breathes on its own clock, so the field never visibly loops */
.footer-mosaic rect {
  animation: pebble-breathe var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes pebble-breathe {
  0%, 100% { opacity: var(--o-min); }
  50%      { opacity: var(--o-max); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-mosaic rect { animation: none; opacity: var(--o-max); }
}
/* Oversized pebbles bleeding off the edges, same family as the guarantee band */
/* Blurred so they read as light in the dark, not as visible rounded blocks */
.footer-glow {
  position: absolute;
  z-index: 0;
  border-radius: var(--radius-pebble);
  filter: blur(70px);
  pointer-events: none;
}
.footer-glow--a {
  width: 460px;
  height: 240px;
  left: -120px;
  bottom: -60px;
  background: rgba(37, 99, 235, 0.5);
}
.footer-glow--b {
  width: 340px;
  height: 190px;
  right: -90px;
  top: -40px;
  background: rgba(96, 165, 250, 0.28);
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}


/* Closing ask */
.footer-close {
  text-align: center;
  margin-bottom: clamp(56px, 8vh, 92px);
}
.footer-mark {
  display: block;
  height: 42px;
  width: auto;
  margin: 0 auto 26px;
}
.footer-h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.footer-sub {
  font-size: clamp(15px, 1.25vw, 18px);
  color: rgba(255, 255, 255, 0.6);
  margin: 18px auto clamp(30px, 4vh, 40px);
  max-width: 46ch;
}

/* Fine print */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: clamp(32px, 5vh, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col--end { align-items: flex-end; text-align: right; }
.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 36ch;
}
.footer-copyright {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5); /* sits over the glow, so it needs the contrast */
  margin: 4px 0 0;
}
.footer-email {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(96, 165, 250, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}
.footer-email:hover { border-bottom-color: var(--accent-bright); }
.footer-legal {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal a:hover { color: #fff; }

/* ============ Legal pages (privacy, terms) ============
   Shared by privacy.html and terms.html. One narrow reading column on the
   same cream canvas, so the legal pages read as part of the site rather
   than a bolted-on document. */
.legal {
  padding: clamp(48px, 7vh, 88px) 48px clamp(72px, 10vh, 120px);
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-title {
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}
.legal-date {
  margin: 14px 0 0;
  font-size: 15px;
  color: #9a917f;
}
.legal-intro {
  margin: clamp(28px, 4vh, 40px) 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.legal-body { margin-top: clamp(40px, 6vh, 64px); }
.legal-body h2 {
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: clamp(38px, 5vh, 56px) 0 0;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 16px 0 0;
  text-wrap: pretty;
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.legal-body li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
/* Same pebble bullet the rest of the site uses */
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 20px;
  height: 12px;
  border-radius: var(--radius-pebble);
  background: var(--accent-soft);
}
.legal-body a { color: var(--accent); }
.legal-contact {
  margin-top: clamp(40px, 6vh, 60px);
  padding: 26px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.legal-contact p { margin: 6px 0 0; }
.legal-contact p:first-child { margin: 0; }

/* Compact footer for the legal pages: the dark closing pebble would be a
   lot of weight under a policy, so these get the fine print only. */
.legal-footer {
  padding: clamp(32px, 4vh, 48px) 48px clamp(44px, 6vh, 64px);
  border-top: 1px solid var(--line);
}
.legal-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.legal-footer .footer-copyright {
  font-size: 13px;
  color: #9a917f;
  margin: 12px 0 0;
}
.legal-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.legal-footer-links a { color: var(--ink-soft); text-decoration: none; }
.legal-footer-links a:hover { color: var(--accent); }
.legal-footer-links span { color: var(--line); }

@media (max-width: 700px) {
  .legal-footer-inner { flex-direction: column; gap: 20px; }
}

/* ============ Responsive ============ */

/* Big external monitors: let the layout breathe wider */
@media (min-width: 1800px) {
  .section-inner, .nav-inner, .footer-pebble, .guarantee-pebble { max-width: 1360px; }
  .hero-inner { max-width: 1200px; }
  .pebble-band { max-width: 1200px; }
  .form-container { max-width: 860px; }
}

/* Mid tablet: pebbles stay in a row, tighter padding so labels fit */
@media (max-width: 1080px) {
  .pebble { padding: 22px 22px; }
  .pebble-label { max-width: 20ch; }
}

@media (max-width: 1180px) {
  .plays-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { grid-template-columns: 1fr; }
  .stepper-viz { order: -1; aspect-ratio: 16 / 9; }
  .deliverable-grid { grid-template-columns: 1fr; gap: 48px; }
  .session-block { max-width: 560px; }
}

/* Tablet and down: pebbles become compact horizontal pills, not a totem pole */
@media (max-width: 860px) {
  .pebble-band {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
  }
  .pebble {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 20px;
    width: 100%;
    max-width: 460px;
    min-height: 0;
    padding: 26px 32px;
  }
  .pebble-value { font-size: clamp(28px, 7vw, 36px); white-space: nowrap; }
  .pebble-label { margin-top: 0; max-width: none; }
  .pebble-dot { top: -32px; right: 2%; }
}

@media (max-width: 760px) {
  .faq-grid, .steps-grid, .field-row { grid-template-columns: 1fr; }
  /* !important needed: element selectors must beat class-level section padding */
  section, footer, header { padding-left: 24px !important; padding-right: 24px !important; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-col--end { align-items: flex-start; text-align: left; }
  /* The glow is proportionally much larger on a narrow pebble — rein it in */
  .footer-glow--a { width: 300px; height: 170px; left: -90px; bottom: -50px; background: rgba(37, 99, 235, 0.34); }
  .footer-glow--b { width: 220px; height: 130px; right: -70px; background: rgba(96, 165, 250, 0.18); }
}

@media (max-width: 560px) {
  .cta.nav-cta { display: none; }
  .nav-inner { justify-content: center; }
  .plays-grid { grid-template-columns: 1fr; }
}
