/* ============================================================
   Poolside Ads — one illustrated poolside world, drawn once.
   Boska (display) + Author (body). Pool teal is the only accent.
   ============================================================ */

/* --- 1. reset ------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd, fieldset {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
fieldset { border: 0; }
legend { padding: 0; }

/* --- 2. tokens ----------------------------------------------- */
:root {
  /* palette — from the brief, nothing added */
  --paper:      #F4EAD9;
  --cabana:     #E7D2B4;
  --ink:        #26190F;
  --pool:       #1FA6A0;

  /* derived working tones (same four hues, no new colour) */
  --ink-soft:   #6B5741;                 /* 5.7:1 on paper, 4.6:1 on cabana */
  --rule:       rgba(38, 25, 15, 0.16);
  --rule-firm:  rgba(38, 25, 15, 0.30);
  --shade:      rgba(38, 25, 15, 0.05);
  --pool-wash:  rgba(31, 166, 160, 0.14);

  /* type */
  --display: 'Boska', 'Iowan Old Style', Georgia, serif;
  --body:    'Author', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* one spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 168px;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --prose: 62ch;

  /* distance from the container's content edge out to the viewport edge,
     so an illustration can leave the grid instead of sitting in a box */
  --bleed: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2));

  --band: clamp(var(--s8), 11vw, var(--s11));   /* vertical section rhythm */
  --ease: cubic-bezier(0.33, 0.02, 0.2, 1);
}

/* --- 3. base ------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;      /* clip, not hidden — hidden would break the sticky nav */
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7.4vw, 6.1rem); line-height: 0.97; letter-spacing: -0.032em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.014em; }
h4 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

/* the one italic wink, plus its hand-drawn underline */
.wink {
  font-style: italic;
  font-weight: 400;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.wink-ul {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
  pointer-events: none;
}
.wink-ul path {
  fill: none;
  stroke: var(--pool);
  stroke-width: 5;              /* scales with the headline — one pen, one weight */
  stroke-linecap: round;
}

/* teal full stop, echoing the mark's read-dot */
.stop { color: var(--pool); }

.lede {
  font-size: clamp(1.14rem, 1.5vw, 1.34rem);
  line-height: 1.6;
  max-width: 52ch;
}
.prose-p { max-width: var(--prose); }

/* quiet utility microcopy — body face, sentence case, never tracked caps */
.note {
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.note-tight { max-width: 46ch; }

/* --- 4. layout ----------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1480px; }

.band { padding-block: var(--band); }
.band-cabana { background: var(--cabana); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .note { color: rgba(244, 234, 217, 0.72); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s3) var(--s5);
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* --- 5. the tide — the continuous thread between sections ---- */
.tide {
  display: block;
  width: 100%;
  height: clamp(28px, 4vw, 54px);
  color: var(--paper);          /* fill = the ground it pours into */
}
.tide-fill { fill: currentColor; }
.tide-line { fill: none; stroke: var(--pool); stroke-width: 2.4; }
.tide--cabana { color: var(--cabana); }
.tide--ink    { color: var(--ink); }
.tide--flip   { transform: scaleX(-1); }

/* --- 6. brandmark -------------------------------------------- */
.mark { width: 34px; height: 34px; flex: none; }
.mark-wave { fill: none; stroke: var(--pool); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }

.lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
}
.lockup-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* --- 7. nav -------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 72px;
  padding-block: var(--s3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(var(--s5), 2.4vw, var(--s7));
}
.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: var(--s2);
  position: relative;
  transition: color 220ms var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pool);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* the nav CTA is a button first — keep the plain-link rules off it,
   or `.nav-links a` would repaint its label in the muted tone (2.3:1 on teal) */
.nav-links a.btn { color: var(--ink); font-size: 1.0625rem; padding: 13px var(--s5); }
.nav-links a.btn::after { display: none; }
.nav-links a.btn:hover { color: var(--pool); }

.nav-cta { margin-left: var(--s2); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s2);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: var(--s2) var(--s3);
  margin-right: calc(var(--s3) * -1);
}
.nav-toggle-bars { width: 22px; height: 14px; }
.nav-toggle-bars line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: transform 260ms var(--ease), opacity 180ms linear; }
.nav-toggle[aria-expanded="true"] .bar-a { transform: translate(0, 6px) rotate(45deg); transform-origin: center; }
.nav-toggle[aria-expanded="true"] .bar-b { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-c { transform: translate(0, -6px) rotate(-45deg); transform-origin: center; }

/* --- 8. buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 15px var(--s6);
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color 240ms var(--ease), color 240ms var(--ease),
              border-color 240ms var(--ease), transform 240ms var(--ease);
}
.btn-pool { background: var(--pool); color: var(--ink); }
.btn-pool:hover { background: var(--ink); color: var(--pool); }

.btn-ghost { border-color: var(--rule-firm); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.band-ink .btn-ghost { border-color: rgba(244, 234, 217, 0.42); color: var(--paper); }
.band-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* the little character that reacts when you reach for the CTA */
.btn-buoy { width: 17px; height: 17px; overflow: visible; }
.btn-buoy circle { fill: currentColor; }
.btn:hover .btn-buoy { animation: buoy 900ms var(--ease); }
@keyframes buoy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%      { transform: translateY(-4px) rotate(-9deg); }
  70%      { transform: translateY(1px) rotate(5deg); }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

/* text link with the teal wake under it */
.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--pool), var(--pool));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 260ms var(--ease);
}
.link:hover { background-size: 100% 100%; }

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

/* --- 9. figures / pre-image state ---------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--cabana);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 10. hero ------------------------------------------------ */
.hero { position: relative; background: var(--cabana); }
.hero-stage { position: relative; }
.hero-fig {
  position: absolute;
  left: 0;
  right: 0;
  top: -6%;
  height: 112%;          /* overscan, so the drift never opens a seam */
  background: var(--cabana);
}
/* the illustration is composed-for: its left half is open terrace wall and sky,
   so the copy column lands on bare cream and ink clears 4.5:1 with no wash at
   all. There is deliberately no veil element here — see the round-1 hero note. */
.hero-fig img { object-position: 50% 46%; }
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: min(86vh, 780px);
  /* asymmetric on purpose: the illustration's cream field is only the TOP ~60%
     of the frame — below that it is pool water and the chart float. The copy
     rides high so it stays on cream and leaves the float uncovered. */
  padding-block: clamp(var(--s7), 6vw, var(--s8)) clamp(var(--s9), 11vw, var(--s11));
}
/* the cap is a LENGTH, not `ch` — `ch` here resolves against the inherited
   16px body face, not the 97px display face, and collapses the column to
   ~150px, which is narrower than a single word of Boska. */
.hero-copy { max-width: min(620px, 54%); }
.hero-copy h1 { max-width: none; }
.hero-sub {
  margin-top: var(--s5);
  /* no `ch` cap: at 46ch this measured ~423px inside a 540–620px column, so the
     sub sat as a narrow ragged block indented from the headline's edge. The
     copy column already caps the measure — let it govern, so sub and headline
     share one right edge and the paragraph loses a line. */
  max-width: none;
  font-size: clamp(1.14rem, 1.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink);
}
.hero-actions { margin-top: var(--s6); }
.hero-tide { position: relative; margin-top: -1px; }

/* --- 11. ledger strip — stats bobbing on the waterline ------- */
.ledger { position: relative; overflow: hidden; }
.ledger-head {
  max-width: 44ch;
  font-size: clamp(1.14rem, 1.5vw, 1.34rem);
  line-height: 1.55;
  margin-bottom: clamp(var(--s7), 6vw, var(--s9));
}
.ledger-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 26%;
  width: 100%;
  height: 70px;
  opacity: 0.5;
  pointer-events: none;
}
.ledger-line path { fill: none; stroke: var(--pool); stroke-width: 2.2; }
.ledger-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--s6), 4vw, var(--s8));
  align-items: end;
}
.stat { position: relative; }
.stat-a { padding-bottom: var(--s7); }     /* three floats, three drafts */
.stat-b { padding-bottom: var(--s3); }
.stat-c { padding-bottom: var(--s8); }
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 7.4vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.stat-num .stop { font-size: 0.9em; }
.stat-label {
  margin-top: var(--s5);
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 26ch;
  color: var(--ink);
}
.stat-sub { margin-top: var(--s2); max-width: 28ch; }

/* --- 12. alternating illustration bands ---------------------- */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(var(--s7), 6vw, var(--s10));
  align-items: center;
}
.duo-flip .duo-fig { order: 2; }
.duo-fig {
  position: relative;
  aspect-ratio: 1400 / 1050;
}
.duo-fig .ph { position: absolute; inset: 0; border-radius: 0; }
.duo-copy h2 { max-width: 14ch; }
.duo-copy > p { margin-top: var(--s6); }
.duo-actions { margin-top: var(--s7); }

/* the illustration is not boxed — it runs off the edge of the page */
.spill-left  { margin-left: calc(var(--bleed) * -1); }
.spill-right { margin-right: calc(var(--bleed) * -1); }

/* a plain list of true things — no icon chrome */
.beats { margin-top: var(--s7); display: grid; gap: var(--s6); }
.beat { display: grid; gap: var(--s2); max-width: 44ch; }
.beat h3 { font-size: 1.28rem; }
.beat p { color: var(--ink-soft); font-size: 1rem; }

/* --- 13. the splash test ------------------------------------- */
.splash { position: relative; }
.splash-head { max-width: 30ch; margin-bottom: var(--s6); }
.splash-intro { max-width: 50ch; margin-bottom: clamp(var(--s7), 5vw, var(--s9)); }
.splash-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(var(--s7), 5vw, var(--s9));
  align-items: start;
  background: var(--paper);
  border: 1.5px solid var(--rule-firm);
  border-radius: 26px;
  padding: clamp(var(--s6), 4vw, var(--s8));
}
.splash-fields { display: grid; gap: var(--s6); }
.field { display: grid; gap: var(--s2); }
.field label { font-size: 1rem; font-weight: 500; }
.field-hint { font-size: 0.9375rem; color: var(--ink-soft); }
.field-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s2);
  border: 1.5px solid var(--rule-firm);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 var(--s4);
  transition: border-color 200ms var(--ease);
}
.field-input:focus-within { border-color: var(--pool); }
.field-prefix, .field-suffix {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-soft);
  flex: none;
}
.field-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 13px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  -moz-appearance: textfield;
}
.field-input input:focus { outline: none; }
.field-input input::-webkit-outer-spin-button,
.field-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* the umbrella that opens as you drag */
.umbrella-field { display: grid; gap: var(--s3); }
.umbrella-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}
.umbrella-val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.umbrella-art { width: 100%; height: 96px; overflow: visible; }
.umbrella-canopy {
  fill: var(--pool);
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 50% 96%;
  transform: scaleX(calc(0.56 + var(--open, 0.5) * 0.44)) scaleY(calc(1.14 - var(--open, 0.5) * 0.24));
  transition: transform 320ms var(--ease);
}
.umbrella-pole { stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; fill: none; }
.umbrella-finial { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: none;
  padding-block: var(--s3);
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pool) 0 var(--fill, 50%), var(--rule) var(--fill, 50%) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--pool); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--pool);
  cursor: grab;
  transition: transform 200ms var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--pool);
  cursor: grab;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.09); }
input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

/* the readout side — mini pool with a rising float */
.splash-out { display: grid; gap: var(--s5); }
.splash-say { display: grid; gap: var(--s3); }
.splash-tag {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.splash-delta {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.splash-delta-sub { font-size: 1.0625rem; max-width: 30ch; }
.splash-pool {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 200;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cabana);
}
.sp-water { fill: var(--pool); }
.sp-water-lip { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0.5; }
.sp-tile { fill: var(--cabana); }
.sp-rim { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.sp-float { transition: transform 620ms var(--ease); }
.sp-float-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 2.4; }
.sp-float-hole { fill: var(--pool); }
.sp-float-flag { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.sp-mark { fill: var(--ink); opacity: 0.28; }

.splash-ledger {
  margin-top: var(--s6);
  display: grid;
  gap: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}
.splash-ledger div { display: flex; justify-content: space-between; gap: var(--s4); font-size: 1rem; }
.splash-ledger dt, .splash-ledger .k { color: var(--ink-soft); }
.splash-ledger .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.splash-foot { margin-top: var(--s7); max-width: 56ch; }

/* --- 14. services teaser ------------------------------------- */
.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(var(--s7), 6vw, var(--s10));
  align-items: center;
}
.teaser-fig { position: relative; aspect-ratio: 1400 / 1050; }
.teaser-fig .ph { position: absolute; inset: 0; }
.teaser-list { margin-top: var(--s7); display: grid; gap: var(--s6); }
.teaser-item { display: grid; gap: var(--s2); padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
.teaser-item:last-child { border-bottom: 0; padding-bottom: 0; }
.teaser-item h3 a { text-decoration: none; }
.teaser-item p { color: var(--ink-soft); font-size: 1rem; max-width: 46ch; }

/* --- 15. quotes ---------------------------------------------- */
.quotes-head { max-width: 24ch; margin-bottom: clamp(var(--s7), 5vw, var(--s9)); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(var(--s6), 3vw, var(--s7));
}
.quote {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 22px;
  padding: clamp(var(--s6), 3.4vw, var(--s7));
  padding-top: clamp(var(--s7), 4vw, var(--s8));
}
.band-cabana .quote { background: var(--paper); }
.quote-doodle {
  position: absolute;
  top: calc(var(--s5) * -1);
  right: var(--s6);
  width: 62px;
  height: 62px;
  overflow: visible;
}
.quote-doodle .dl { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.quote-doodle .df { fill: var(--pool); }
.quote-doodle .dp { fill: var(--paper); stroke: var(--ink); stroke-width: 1.8; }
.quote blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.32rem, 1.9vw, 1.62rem);
  line-height: 1.35;
  letter-spacing: -0.014em;
}
.quote figcaption { margin-top: var(--s5); }
.quote-name { font-weight: 600; font-size: 1rem; }
.quote-role { font-size: 0.9375rem; color: var(--ink-soft); }

/* --- 16. closing proof band ---------------------------------- */
.proof { position: relative; background: var(--ink); overflow: hidden; }
.proof-fig { position: absolute; inset: 0; }
.proof-fig img { object-position: 72% 50%; }
.proof-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
    rgba(38, 25, 15, 0.90) 0%,
    rgba(38, 25, 15, 0.80) 30%,
    rgba(38, 25, 15, 0.40) 60%,
    rgba(38, 25, 15, 0.06) 86%,
    rgba(38, 25, 15, 0) 100%);
  pointer-events: none;
}
.proof-in {
  position: relative;
  min-height: min(78vh, 700px);
  display: grid;
  align-content: center;
  padding-block: clamp(var(--s9), 10vw, var(--s11));
}
/* length cap, not `ch` — see .hero-copy; the 128px proof numeral overflows
   any `ch` measure taken against the inherited body face. */
.proof-copy { max-width: min(560px, 52%); color: var(--paper); }
.proof-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--paper);
}
.proof-copy h2 { margin-top: var(--s6); max-width: 15ch; color: var(--paper); }
.proof-copy p { margin-top: var(--s5); max-width: 36ch; color: var(--paper); font-size: 1.0625rem; }
.proof-actions { margin-top: var(--s7); }

/* --- 17. page headers (inner pages) -------------------------- */
.phead { padding-block: clamp(var(--s8), 9vw, var(--s10)) clamp(var(--s7), 6vw, var(--s9)); }
.phead h1 { max-width: 20ch; }
.phead .lede { margin-top: var(--s6); }

.phead-shot { position: relative; background: var(--ink); overflow: hidden; }
.phead-shot .phead-fig { position: absolute; inset: 0; }
.phead-shot .proof-veil { position: absolute; inset: 0; }
.phead-shot .phead-in {
  position: relative;
  min-height: min(64vh, 580px);
  display: grid;
  align-content: center;
  padding-block: clamp(var(--s8), 9vw, var(--s10));
}
.phead-shot h1, .phead-shot .lede { color: var(--paper); }
.phead-shot .phead-fig img { object-position: 70% 44%; }
/* length cap, not `ch` — see .hero-copy; this wraps the 97px page-hero h1. */
.phead-shot .phead-copy { max-width: min(600px, 56%); }
.phead-shot .lede { max-width: 42ch; }

/* --- 18. services page --------------------------------------- */
.svc-intro { max-width: var(--prose); }
.svc-intro p + p { margin-top: var(--s5); }

.svc { padding-block: clamp(var(--s8), 8vw, var(--s10)); }
.svc + .svc { border-top: 1px solid var(--rule); }
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(var(--s7), 6vw, var(--s9));
  align-items: center;
}
.svc-flip .svc-fig { order: 2; }
.svc-fig { position: relative; aspect-ratio: 1 / 1; }
.svc-fig-wide { aspect-ratio: 1400 / 1050; }   /* matches its images.json entry */
.svc-fig .ph { position: absolute; inset: 0; }
.svc-copy h2 { max-width: 13ch; }
.svc-copy > p { margin-top: var(--s5); max-width: 48ch; }
.svc-detail { margin-top: var(--s7); display: grid; gap: var(--s5); }
.svc-detail li { display: grid; gap: var(--s1); padding-left: var(--s6); position: relative; max-width: 46ch; }
.svc-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 13px;
  height: 9px;
  border-radius: 50%;
  background: var(--pool);
}
.svc-detail strong { font-weight: 600; }
.svc-detail span { color: var(--ink-soft); font-size: 1rem; }

.platforms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(var(--s7), 6vw, var(--s9)); align-items: start; }
.platform-list { display: grid; gap: 0; }
.platform-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
}
.platform-list li:first-child { border-top: 1px solid var(--rule); }
.platform-name { font-family: var(--display); font-weight: 700; font-size: 1.42rem; letter-spacing: -0.02em; }
.platform-note { text-align: right; max-width: 30ch; }

/* --- 19. results page ---------------------------------------- */
.range-grid { display: grid; gap: 0; margin-top: clamp(var(--s7), 5vw, var(--s8)); }
.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
  gap: clamp(var(--s5), 3vw, var(--s7));
  align-items: center;
  padding-block: clamp(var(--s6), 3.4vw, var(--s7));
  border-bottom: 1px solid var(--rule);
}
.range-row:first-child { border-top: 1px solid var(--rule); }
.range-vert { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.024em; }
.range-vert span { display: block; margin-top: var(--s2); }
.range-bar { position: relative; height: 46px; }
.range-bar svg { width: 100%; height: 100%; overflow: visible; }
.rb-track, .rb-before, .rb-span, .rb-tick { vector-effect: non-scaling-stroke; fill: none; }
.rb-track { stroke: var(--rule); stroke-width: 2; }
.rb-before { stroke: var(--rule-firm); stroke-width: 8; stroke-linecap: round; }
.rb-span { stroke: var(--pool); stroke-width: 10; stroke-linecap: round; }
.rb-tick { stroke: var(--rule); stroke-width: 1.5; }
.range-key { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6); }
.range-key span { display: inline-flex; align-items: center; gap: var(--s2); }
.range-key i { width: 22px; height: 8px; border-radius: 4px; display: inline-block; }
.range-key .k-before { background: var(--rule-firm); }
.range-key .k-after { background: var(--pool); }
.range-figs {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.024em;
  white-space: nowrap;
  text-align: right;
}
.range-figs em { font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: 0.66em; }

/* --- 20. about page ------------------------------------------ */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(var(--s6), 3vw, var(--s7)); margin-top: clamp(var(--s7), 5vw, var(--s8)); }
.step { display: grid; gap: var(--s3); align-content: start; }
.step-when { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.step h3 { font-size: 1.24rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }
.step-rule { height: 3px; background: var(--pool); margin-bottom: var(--s3); }

.creed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s7), 6vw, var(--s9)); align-items: center; }
.creed h2 { max-width: 12ch; }
.creed-body p + p { margin-top: var(--s5); }
.creed-body p { max-width: 50ch; }

/* --- 21. contact page ---------------------------------------- */
.book { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(var(--s7), 6vw, var(--s9)); align-items: start; }
.form { display: grid; gap: var(--s6); }
.form .field-input input,
.form .field-input select { font-family: var(--body); font-weight: 500; font-size: 1.0625rem; }
.form textarea {
  width: 100%;
  border: 1.5px solid var(--rule-firm);
  border-radius: 12px;
  background: var(--paper);
  padding: var(--s4);
  font-size: 1.0625rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 128px;
  transition: border-color 200ms var(--ease);
}
.form textarea:focus { outline: none; border-color: var(--pool); }
.form select {
  width: 100%;
  border: 0;
  background: none;
  padding: 13px 0;
  appearance: none;
}
.form-actions { margin-top: var(--s2); }
.form-note { margin-top: var(--s4); }

.money {
  background: var(--paper);
  border: 1.5px solid var(--rule-firm);
  border-radius: 24px;
  padding: clamp(var(--s6), 3.4vw, var(--s7));
}
.money h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); max-width: 16ch; }
.money > p { margin-top: var(--s5); color: var(--ink-soft); font-size: 1rem; }
.money-list { margin-top: var(--s6); display: grid; gap: 0; }
.money-list li { padding-block: var(--s5); border-top: 1px solid var(--rule); display: grid; gap: var(--s1); }
.money-term { font-weight: 600; font-size: 1.0625rem; }
.money-desc { color: var(--ink-soft); font-size: 1rem; }
.money-foot { margin-top: var(--s6); }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(var(--s6), 3vw, var(--s7)) clamp(var(--s7), 5vw, var(--s9)); margin-top: clamp(var(--s7), 5vw, var(--s8)); }
.faq { display: grid; gap: var(--s3); align-content: start; }
.faq h3 { font-size: 1.24rem; max-width: 28ch; }
.faq p { color: var(--ink-soft); max-width: 46ch; }

/* --- 22. plain prose pages ----------------------------------- */
.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-top: var(--s8); }
.legal h2:first-of-type { margin-top: var(--s7); }
.legal p { margin-top: var(--s5); }
.legal ul { margin-top: var(--s5); display: grid; gap: var(--s3); }
.legal li { padding-left: var(--s6); position: relative; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 11px;
  height: 8px;
  border-radius: 50%;
  background: var(--pool);
}

/* --- 23. footer ---------------------------------------------- */
.site-foot { background: var(--ink); color: var(--paper); padding-block: clamp(var(--s8), 7vw, var(--s9)) var(--s7); }
.site-foot .lockup-word { color: var(--paper); }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(var(--s6), 4vw, var(--s8));
  padding-bottom: clamp(var(--s7), 5vw, var(--s8));
}
.foot-blurb { margin-top: var(--s5); max-width: 32ch; color: rgba(244, 234, 217, 0.82); }
.foot-doodle { margin-top: var(--s6); width: 118px; height: 62px; overflow: visible; }
.foot-doodle .fl { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.foot-doodle .ff { fill: var(--pool); }
.foot-col h2 { font-family: var(--body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: rgba(244, 234, 217, 0.6); margin-bottom: var(--s4); }
.foot-col ul { display: grid; gap: var(--s3); }
.foot-col a { text-decoration: none; color: var(--paper); transition: color 200ms var(--ease); }
.foot-col a:hover { color: var(--pool); }
.foot-bottom {
  border-top: 1px solid rgba(244, 234, 217, 0.18);
  padding-top: var(--s6);
  display: grid;
  gap: var(--s4);
}
.foot-addr { color: rgba(244, 234, 217, 0.82); font-size: 0.9375rem; }
.foot-addr a { color: var(--pool); text-decoration: none; }
.foot-addr a:hover { text-decoration: underline; }
.foot-legal { color: rgba(244, 234, 217, 0.62); font-size: 0.875rem; max-width: 82ch; line-height: 1.6; }

/* --- 24. motion: gentle, hand-drawn, never mechanical --------- */
.bob { animation: bob 6.5s ease-in-out infinite; }
.bob-b { animation-duration: 7.8s; animation-delay: -2.1s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* --- 25. responsive ------------------------------------------ */
@media (max-width: 1200px) {
  .hero-copy { max-width: min(540px, 58%); }
  .hero-copy h1 { max-width: none; }
  .proof-veil {
    background: linear-gradient(95deg,
      rgba(38, 25, 15, 0.92) 0%,
      rgba(38, 25, 15, 0.84) 38%,
      rgba(38, 25, 15, 0.44) 66%,
      rgba(38, 25, 15, 0.08) 90%,
      rgba(38, 25, 15, 0) 100%);
  }
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--s3) var(--gutter) var(--s6);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding-block: var(--s4); font-size: 1.15rem; border-bottom: 1px solid var(--rule); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--pool); }
  .nav-cta { margin: var(--s5) 0 0; justify-content: center; border-bottom: 0 !important; }
  .nav-toggle { display: inline-flex; }
  .site-nav .nav-in { position: relative; }

  .duo, .teaser-grid, .svc-grid, .platforms, .creed, .book {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(var(--s6), 6vw, var(--s7));
  }
  .duo-flip .duo-fig, .svc-flip .svc-fig { order: 0; }
  .spill-left, .spill-right { margin-inline: calc(var(--bleed) * -1); }
  .svc-fig { aspect-ratio: 4 / 3; }
  .svc-fig .ph { border-radius: 18px; }
  .platform-note { text-align: left; }
  .splash-panel { grid-template-columns: minmax(0, 1fr); }
  .money { margin-top: var(--s4); }
}

@media (max-width: 760px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .stat-a, .stat-b, .stat-c { padding-bottom: 0; }
  .ledger-line { display: none; }
  .stat-label, .stat-sub { max-width: 34ch; }

  .range-row { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .range-figs { text-align: left; }
  .range-bar { height: 34px; }

  .platform-list li { flex-direction: column; gap: var(--s2); }
  .platform-note { max-width: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-in { min-height: 0; padding-block: var(--s8) var(--s7); }
  .hero-fig { position: relative; inset: auto; top: auto; height: auto; aspect-ratio: 1600 / 1200; transform: none !important; }
  .hero-fig img { object-position: 62% 50%; }
  .hero-stage { display: flex; flex-direction: column-reverse; }
  .hero-copy, .hero-copy h1, .hero-sub { max-width: none; }
  .hero { background: var(--paper); }

  .proof-in { min-height: 0; padding-block: var(--s8); }
  .proof-fig img { object-position: 78% 46%; }
  .proof-veil {
    background: linear-gradient(180deg,
      rgba(38, 25, 15, 0.72) 0%,
      rgba(38, 25, 15, 0.86) 46%,
      rgba(38, 25, 15, 0.94) 100%);
  }
  .proof-copy { max-width: none; }

  .phead-shot .phead-in { min-height: 0; padding-block: var(--s8); }
  .phead-shot .phead-fig img { object-position: 76% 46%; }
  .phead-shot .phead-copy, .phead-shot .lede { max-width: none; }
  .phead-shot .proof-veil {
    background: linear-gradient(180deg,
      rgba(38, 25, 15, 0.70) 0%,
      rgba(38, 25, 15, 0.88) 52%,
      rgba(38, 25, 15, 0.94) 100%);
  }

  .foot-top { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .splash-panel { padding: var(--s5); border-radius: 20px; }
  .quote { padding: var(--s5); padding-top: var(--s7); }
  .quote-doodle { width: 52px; height: 52px; right: var(--s5); }
  .umbrella-art { height: 78px; }
}

/* --- 26. reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sp-float, .umbrella-canopy { transition: none !important; }
}
