/* ==========================================================================
   Basin — social-bathhouse / contrast-therapy template
   A Templatorium template · https://templatorium.com

   HOW TO RE-THEME (the 30-second version — full guide in docs/README.md):
   every colour, font, and size the design uses is a custom property in the
   :root block directly below. Change the values there and the whole site
   follows. Everything under the tokens is structure; you rarely touch it.

   The signature is a CONTRAST BATH: as you scroll, full-bleed temperature
   bands alternate hot (Ember) and cold (Plunge), and the text colour flips
   light/dark across each steam-seam. The bands are plain CSS grounds, so the
   page renders complete with JavaScript switched off.

   A promise this template keeps: every text/background pair in the shipped
   palette meets WCAG 2.2 AA (computed, not eyeballed — the worst real-text
   pair is 4.5:1). Re-check any colour you change:
   https://webaim.org/resources/contrastchecker/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — the re-theme contract
   -------------------------------------------------------------------------- */
:root {
  /* --- Fixed neutrals + the temperature ladder (the IDENTITY) ---------------
     Steam base + wet-stone ink, then a cold->hot ladder of full-bleed grounds.
     These stay put when you bring your own brand colour — only --accent below
     reskins. That is what keeps the hot/cold read honest. */
  --steam:  #E9ECEB; /* cool off-white — the page ground (breaks the beige trap) */
  --frost:  #D8E0E1; /* light cold field */
  --sand:   #ECE3D8; /* light warm field */
  --wet:    #17201F; /* near-black ink with a green cast (~14:1 on Steam) */
  --slate:  #54615F; /* cool grey-green secondary text (>=4.8:1 on every light band) */
  --chalk:  #C7D0CE; /* hairline on Steam */
  --frost-line: #BECAC9;
  --sand-line:  #D8CBB9;

  --plunge:      #1B4A52; /* the cold plunge — a deep cold GROUND (fixed) */
  --plunge-line: #2E5A62;
  --field:       #B34A24; /* Ember — the sauna heat. FIELD ONLY: a full-bleed
                             heat band, never a button/link/chip/border/text. */
  --ember-line:  #C86A45;
  --stone-line:  #2C3634;

  /* text treatments carried BY the deep grounds (palette-independent) */
  --on-deep:       #E9ECEB; /* body/label on Plunge & Stone (= Steam; 8.2–14:1) */
  --mute-on-deep:  #B6C2C0; /* secondary text on Plunge & Stone (>=5.3:1) */
  --accent-on-dark:#9CC0C4; /* light-teal companion — focus ring / accent on deep grounds */

  /* --- The one accent (Plunge teal) — the ONLY reskinnable colour -----------
     Used on < 5% of any viewport: buttons, links-on-hover, the active ritual
     marker, focus rings on light grounds, the small "From $" glyph. White on
     it is 9.78:1. Bring-your-brand-colour swaps this token only. */
  --accent:      #1B4A52;
  --accent-hover: color-mix(in oklab, var(--accent) 82%, #000); /* auto-follows any accent */
  --accent-ink:  #F4F6F5; /* label on an accent fill (9.6:1) */

  /* Reserved decorative field for the brand-colour flow. A too-light hue that
     can't be darkened to a readable accent lands HERE (decorative only, never
     text, never a ground). Value-preserving today: follows the accent. Keeping
     Ember (--field) OFF this token is deliberate — a demoted brand hue must
     never repaint the heat bands. */
  --field-demote: var(--accent);

  /* --- Ground role variables (default = the Steam rest band) ----------------
     Every band reads these; a [data-ground] rule (§3) swaps the whole set so a
     section's text follows its temperature. A section with no data-ground uses
     these Steam defaults. */
  --g-bg:     var(--steam);
  --g-fg:     var(--wet);
  --g-mute:   var(--slate);
  --g-accent: var(--accent);
  --g-line:   var(--chalk);

  /* --- Type (all three faces vendored in /fonts — no CDN) -------------------
     Fraunces (Google OFL, variable opsz+wght) — display + the big band
     numerals. Instrument Sans (Google OFL, variable) — body. Geist Mono
     (OFL, variable) — honest instrumentation only (temps, durations, prices). */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale — the size JUMP (serif display over a quiet sans) is the design. */
  --t-temp:    clamp(64px, 12vw, 180px); /* Fraunces — the big band temperatures */
  --t-display: clamp(44px, 6.5vw, 104px);/* Fraunces — hero + page mastheads */
  --t-h2:      clamp(30px, 4vw, 56px);   /* Fraunces — section heads */
  --t-h3:      clamp(20px, 2.4vw, 26px); /* card titles */
  --t-lede:    20px;
  --t-body:    17px;
  --t-small:   14px;
  --t-data:    13px;  /* Geist Mono — spec strips, prices, the rail */
  --t-label:   12px;  /* Geist Mono — the few caps micro-labels (data, not eyebrows) */

  /* Space & structure */
  --max:       1200px;
  --gutter:    24px;
  --band-pad:  clamp(80px, 10vw, 140px); /* airy light bands */
  --seam:      64px;                     /* steam-seam height (< band-pad, so
                                            text never enters the wash) */

  /* Radius — soft, restorative, never sharp-clinical (that's Candor's). */
  --r-card:  14px;
  --r-btn:   10px;
  --r-input: 10px;
  --r-plate: 14px;

  /* Depth is steam + mist, not hard shadows (the retired house tic). */
  --shadow-rest: 0 1px 2px rgba(23, 32, 31, 0.05), 0 12px 28px -10px rgba(23, 32, 31, 0.12);
}

/* --------------------------------------------------------------------------
   2. FONT FACES — vendored variable woff2, no CDN, no rendering lottery
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-roman.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   3. RESET, BASE & THE GROUND SYSTEM
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Sticky nav is 72px; anchor targets clear it. */
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--steam);
  color: var(--wet);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Focus is visible on EVERY ground. Light grounds: 2px accent (>=7:1 as a
   non-text indicator). Deep grounds get the light-teal companion. Never
   outline:none, anywhere. */
:focus-visible {
  outline: 2px solid var(--g-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Deep grounds: a FIXED light focus ring (Steam), never the variable brand
   tint — the tint is guaranteed readable on the ink ground only, and would
   drop below 3:1 on the lighter Plunge. Steam clears 3:1 on all three. */
.on-deep :focus-visible,
[data-ground="plunge"] :focus-visible,
[data-ground="ember"]  :focus-visible,
[data-ground="stone"]  :focus-visible {
  outline-color: var(--on-deep);
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Bands: the structural rhythm. Each wears a ground; the [data-ground] rule
   swaps the role variables so the text follows its temperature. */
.band { position: relative; padding-block: var(--band-pad); }
[data-ground] { background: var(--g-bg); color: var(--g-fg); }

[data-ground="steam"] { --g-bg: var(--steam); --g-fg: var(--wet); --g-mute: var(--slate); --g-accent: var(--accent); --g-line: var(--chalk); }
[data-ground="frost"] { --g-bg: var(--frost); --g-fg: var(--wet); --g-mute: var(--slate); --g-accent: var(--accent); --g-line: var(--frost-line); }
[data-ground="sand"]  { --g-bg: var(--sand);  --g-fg: var(--wet); --g-mute: var(--slate); --g-accent: var(--accent); --g-line: var(--sand-line); }
/* Deep, fixed grounds — the punctuation. Text is light; the accent role is a
   fixed readable light colour (never the variable accent, which could blur
   into the ground). */
[data-ground="plunge"] { --g-bg: var(--plunge); --g-fg: var(--on-deep); --g-mute: var(--mute-on-deep); --g-accent: var(--on-deep); --g-line: var(--plunge-line); }
[data-ground="ember"]  { --g-bg: var(--field);  --g-fg: #ffffff;        --g-mute: #ffffff;              --g-accent: #ffffff;      --g-line: var(--ember-line); }
[data-ground="stone"]  { --g-bg: var(--wet);    --g-fg: var(--on-deep); --g-mute: var(--mute-on-deep); --g-accent: var(--on-deep); --g-line: var(--stone-line); }

/* Skip link — first tab stop on every page */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--wet); color: var(--steam);
  font: 500 var(--t-small) var(--font-body);
  padding: 10px 18px; border-radius: var(--r-btn); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   4. THE STEAM-SEAM — where a hot band meets a cold one, steam rises.
      A soft steam wash bleeds the two grounds into each other at the deep
      band's edges. It is decoration (no text sits in it — band padding is
      taller than the seam), so it carries no contrast dependency. Under
      no-preference it breathes; reduced-motion freezes it.
   -------------------------------------------------------------------------- */
[data-ground="plunge"], [data-ground="ember"], [data-ground="stone"] { isolation: isolate; overflow: clip; }
[data-ground="plunge"]::before, [data-ground="ember"]::before, [data-ground="stone"]::before,
[data-ground="plunge"]::after,  [data-ground="ember"]::after,  [data-ground="stone"]::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--seam);
  z-index: 0; pointer-events: none;
}
[data-ground="plunge"]::before, [data-ground="ember"]::before, [data-ground="stone"]::before {
  top: 0;
  background-image:
    radial-gradient(120% 80% at 30% 0%, color-mix(in srgb, var(--steam) 42%, transparent), transparent 70%),
    linear-gradient(to bottom, color-mix(in srgb, var(--steam) 30%, transparent), transparent);
}
[data-ground="plunge"]::after, [data-ground="ember"]::after, [data-ground="stone"]::after {
  bottom: 0;
  background-image:
    radial-gradient(120% 80% at 70% 100%, color-mix(in srgb, var(--steam) 30%, transparent), transparent 70%),
    linear-gradient(to top, color-mix(in srgb, var(--steam) 22%, transparent), transparent);
}
.band > .wrap, .band > .rail,
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   5. THE MARGIN TEMPERATURE RAIL — a thin vertical Geist Mono annotation in
      the left gutter naming the CURRENT band's temperature (04°C / 85°C /
      REST). Honest thermal data as band content — NOT a mono ledger table.
      Broken-grid: it lives outside the text column. On narrow screens it
      becomes a small inline chip at the top of the band.
   -------------------------------------------------------------------------- */
.rail {
  position: absolute;
  top: 50%;
  left: max(10px, calc((100% - var(--max)) / 2 - 20px));
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--g-mute);
  white-space: nowrap;
  z-index: 2;
}
.rail::before {
  content: ""; display: block; width: 1px; height: 26px;
  margin: 0 auto 12px; background: currentColor; opacity: 0.5;
}
@media (max-width: 1180px) {
  .rail {
    position: static; writing-mode: horizontal-tb; transform: none;
    display: inline-block; margin-bottom: 22px; letter-spacing: 0.14em;
  }
  .rail::before { width: 20px; height: 1px; margin: 0 0 6px; }
}

/* --------------------------------------------------------------------------
   6. TYPE ROLES
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 1.0;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.2;
}
p { max-width: 66ch; }
.measure { max-width: 60ch; }

/* Kicker — a quiet Fraunces label above a heading. NOT mono (mono eyebrows are
   retired), NOT the accent (accent is reserved for actions). */
.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--g-mute);
  display: block;
  margin-bottom: 18px;
}
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--g-mute); max-width: 54ch; }
.muted { color: var(--g-mute); }

/* Geist Mono — machine data ONLY (temperatures, durations, prices, spec
   strips, the rail). Never a decorative eyebrow. */
.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-data);
  letter-spacing: 0.04em;
}
.label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-mute);
}
code { font-family: var(--font-mono); font-size: 0.9em; }

/* Text links — Wet Stone at rest, Plunge on hover (colour swap, no slide). */
.textlink {
  color: var(--g-fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.14s ease;
}
.textlink:hover { color: var(--g-accent); }

/* Arrow link — the quiet tertiary action */
.arrow-link {
  font: 500 15px/1.3 var(--font-body);
  color: var(--g-fg);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.arrow-link .go { font-family: var(--font-mono); transition: transform 0.14s ease; }
.arrow-link:hover { color: var(--g-accent); }
.arrow-link:hover .go { transform: translateX(3px); }

/* The from-price anchor — Fraunces price in ink, the "From $" glyph in accent. */
.fromprice {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--g-fg);
  line-height: 1;
  white-space: nowrap;
}
.fromprice .from { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--g-accent); margin-right: 6px; vertical-align: 2px; }
[data-ground="plunge"] .fromprice .from,
[data-ground="stone"]  .fromprice .from { color: var(--mute-on-deep); }
[data-ground="ember"]  .fromprice .from { color: #ffffff; }

/* --------------------------------------------------------------------------
   7. BUTTONS — primary Plunge fill, secondary ink outline. On deep grounds the
      primary INVERTS to a Steam fill with an ink label (a Plunge-fill button
      on a Plunge ground is invisible — banned).
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 15px/1.2 var(--font-body);
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.btn--lg { min-height: 52px; padding: 15px 30px; font-size: 16px; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--shadow-rest); }
.btn--secondary {
  background: transparent;
  color: var(--g-fg);
  border-color: var(--g-fg);
}
.btn--secondary:hover { background: var(--g-fg); color: var(--g-bg); }
/* Inverse: on Plunge / Ember / Stone the primary becomes a Steam fill + ink
   label so the "what matters" signal always reads. */
[data-ground="plunge"] .btn--primary,
[data-ground="ember"]  .btn--primary,
[data-ground="stone"]  .btn--primary,
.on-deep .btn--primary {
  background: var(--steam);
  color: var(--wet);
  border-color: var(--steam);
}
[data-ground="plunge"] .btn--primary:hover,
[data-ground="ember"]  .btn--primary:hover,
[data-ground="stone"]  .btn--primary:hover,
.on-deep .btn--primary:hover { background: #ffffff; border-color: #ffffff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }

/* --------------------------------------------------------------------------
   8. NAV (shared) — Steam ground, sticky. Transparent at top; gains a
      Chalk-line bottom after 8px scroll (js/main.js toggles .scrolled).
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--steam) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--chalk); background: color-mix(in srgb, var(--steam) 96%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--wet);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex; align-items: center; line-height: 1;
}
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  font: 500 15px/1 var(--font-body);
  color: var(--wet);
  text-decoration: none;
  padding-block: 10px;
  transition: color 0.14s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--wet); border-radius: var(--r-btn);
  min-width: 44px; min-height: 44px; padding: 0 12px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: var(--wet);
  box-shadow: 0 6px 0 var(--wet), 0 -6px 0 var(--wet); }

/* No-JS / reduced fallback: the disclosure nav un-sticks so the links are
   always reachable (never a stuck sticky banner). */
html:not(.js) .nav { position: static; }

/* --------------------------------------------------------------------------
   9. HERO — offset headline over a full-bleed image plate (broken grid).
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.page-hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 8px; }
.hero .lede { margin-top: 26px; }
.hero-fig { border-radius: var(--r-plate); overflow: clip; }
/* Page heroes (interior) run a touch smaller */
.page-hero { padding-block: clamp(56px, 7vw, 104px); }
.page-hero .lede { margin-top: 22px; max-width: 56ch; }

/* --------------------------------------------------------------------------
   10. IMAGE SLOTS — art-directed placeholders, never auto-faked. A flat ground
       fill + a Geist Mono slot label. Replace the whole .slot with an <img> of
       the same ratio (see docs). No white boxes.
   -------------------------------------------------------------------------- */
.slot {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--g-line) 55%, transparent) 22px 23px),
    color-mix(in srgb, var(--g-line) 22%, var(--g-bg));
  border-radius: var(--r-plate);
  overflow: clip;
  color: var(--g-mute);
}
/* The empty-state is a DESIGNED plate, never a bare centred box. Over the
   diagonal-hatch ground sits a faint water-ripple line motif (the house
   line-art vocabulary for a bathhouse) — masked from --g-line so it re-themes
   with every ground and stays whisper-faint, and retired the instant a buyer
   photo fills the slot. It gives a large empty plate (the home hero) something
   to read before an image lands. */
.slot::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: var(--g-line);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-10 168 C 60 150 100 186 170 168 S 320 150 410 168'/%3E%3Cpath d='M-10 210 C 60 192 100 228 170 210 S 320 192 410 210'/%3E%3Cpath d='M-10 252 C 60 234 100 270 170 252 S 320 234 410 252'/%3E%3C/svg%3E") center / cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-10 168 C 60 150 100 186 170 168 S 320 150 410 168'/%3E%3Cpath d='M-10 210 C 60 192 100 228 170 210 S 320 192 410 210'/%3E%3Cpath d='M-10 252 C 60 234 100 270 170 252 S 320 234 410 252'/%3E%3C/svg%3E") center / cover no-repeat;
}
.slot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* a dropped-in photo retires the motif, the hatch ground, and the label */
.slot:has(img) { background: none; }
.slot:has(img)::before { display: none; }
.slot:has(img) .spec { display: none; }
.slot--169 { aspect-ratio: 16 / 9; }
.slot--32  { aspect-ratio: 3 / 2; }
.slot--45  { aspect-ratio: 4 / 5; }
/* The spec label is anchored to the TOP-LEFT corner as a drawing annotation /
   title-block caption — never place-items:center / text-align:center (the named
   "centred-label-in-empty-box" generic tell). Solid chip so the mono label
   reads at full --g-fg contrast over the motif. */
.slot .spec {
  position: absolute; left: 0; top: 0; z-index: 2;
  max-width: min(86%, 320px);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.7;
  color: var(--g-fg);
  background: color-mix(in srgb, var(--g-bg) 90%, transparent);
  padding: 9px 12px;
  border-right: 1px solid var(--g-line);
  border-bottom: 1px solid var(--g-line);
  border-bottom-right-radius: 8px;
}
.figtag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-mute);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   11. THERMAL-SPACE CARDS (The Waters) — a full-bleed image plate, a Fraunces
       title, a Geist Mono spec strip (the genre's honest-data convention), and
       a per-card Reserve action. Cards vary in size: a lead spans two columns.
   -------------------------------------------------------------------------- */
.water-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 48px; }
.water-card {
  display: flex; flex-direction: column;
  /* Plain ground background — the border, the image plate, and the hover lift
     read the card, so the secondary text stays on a VERIFIED ground pair (a
     mix toward the ink darkened it below AA on Sand — §70/§90). */
  background: var(--g-bg);
  border: 1px solid var(--g-line);
  border-radius: var(--r-card);
  overflow: clip;
  text-decoration: none; color: var(--g-fg);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.water-card:hover { box-shadow: var(--shadow-rest); transform: translateY(-2px); }
.water-card--lead { grid-column: span 2; }
.water-card .slot { border-radius: 0; }
.water-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.water-card h3 { font-size: var(--t-h3); }
.water-card .sum { font-size: var(--t-small); color: var(--g-mute); line-height: 1.5; }
.spec-strip {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-data);
  letter-spacing: 0.02em;
  color: var(--g-fg);
  border-top: 1px solid var(--g-line);
  border-bottom: 1px solid var(--g-line);
  padding: 10px 0;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.spec-strip .sep { color: var(--g-mute); }
.reserve {
  margin-top: auto; padding-top: 6px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.reserve .go { font-family: var(--font-mono); color: var(--g-accent); }

/* --------------------------------------------------------------------------
   12. RITUAL BANDS — the signature made literal. Each circuit step is a
       full-bleed temperature ground: a huge Fraunces temperature numeral
       offset toward the margin, a Geist Mono duration, and a one-line benefit.
       The "now/active" marker is the one accent on light steps.
   -------------------------------------------------------------------------- */
.ritual-step { position: relative; }
/* The literal circuit: full-bleed temperature bands stacked, each with its own
   ground (so the steam-seams fall automatically between hot and cold steps). */
.ritual-circuit .ritual-step { padding-block: clamp(64px, 9vw, 120px); }
.ritual-circuit .ritual-step > .wrap, .ritual-circuit .ritual-step > .rail { position: relative; z-index: 1; }
.ritual-circuit .rail { z-index: 2; }
.ritual-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ritual-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-temp);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--g-fg);
  margin-left: -0.06em; /* bleed toward the margin */
}
.ritual-num .deg { font-size: 0.42em; vertical-align: 0.5em; font-weight: 400; }
.ritual-meta { align-self: center; }
.ritual-step .step-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; color: var(--g-fg); }
.ritual-dur { font-family: var(--font-mono); font-size: var(--t-data); letter-spacing: 0.04em; color: var(--g-mute); }
.ritual-benefit { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; max-width: 22ch; }
.now {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 3px 11px; border-radius: 999px;
}
[data-ground="plunge"] .now, [data-ground="ember"] .now, [data-ground="stone"] .now {
  color: var(--wet); background: var(--steam);
}

/* --------------------------------------------------------------------------
   13. PASS / MEMBERSHIP CARDS — Steam/Frost cards, hairline, Fraunces price in
       INK (prices are ink; the accent belongs only to the "From $" glyph),
       honest inclusions.
   -------------------------------------------------------------------------- */
.pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 48px; }
.pass-card {
  display: flex; flex-direction: column; gap: 16px;
  background: color-mix(in srgb, var(--g-bg) 60%, var(--steam));
  border: 1px solid var(--g-line);
  border-radius: var(--r-card);
  padding: 28px 28px 30px;
}
.pass-card--feature { border-color: var(--accent); box-shadow: var(--shadow-rest); }
.pass-card .tier { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); }
.pass-price { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--g-fg); }
.pass-price .from { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g-accent); display: block; margin-bottom: 6px; }
.pass-price .per { font-family: var(--font-body); font-size: 15px; color: var(--g-mute); }
.incl { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.incl li { position: relative; padding-left: 22px; font-size: var(--t-small); color: var(--g-fg); line-height: 1.5; }
.incl li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--g-accent); font-family: var(--font-mono); font-weight: 500; }
.pass-card .btn { margin-top: 4px; }

/* Day passes break the symmetric 3-up: the SINGLE CIRCUIT is a hero-tier that
   spans the full row (price + name on the left, inclusions on the right), then
   the two alternates sit below in a 2-up. Reuses the lead-card idea from the
   Waters grid — the page never runs the canonical three-equal-columns table. */
.pass-grid--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pass-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 14px;
  align-content: center;
  border-color: var(--accent);
  box-shadow: var(--shadow-rest);
  padding: clamp(28px, 4vw, 44px);
}
.pass-card--lead .tier      { grid-column: 1; grid-row: 1; font-size: clamp(22px, 2.6vw, 30px); }
.pass-card--lead .pass-price{ grid-column: 1; grid-row: 2; font-size: clamp(52px, 7.5vw, 88px); }
.pass-card--lead .incl      { grid-column: 2; grid-row: 1 / 4; align-self: center; gap: 14px; }
.pass-card--lead .incl li   { font-size: var(--t-body); }
.pass-card--lead .btn       { grid-column: 1; grid-row: 3; margin-top: 8px; justify-self: start; }
@media (max-width: 720px) {
  .pass-card--lead { grid-template-columns: 1fr; grid-template-rows: none; }
  .pass-card--lead .tier, .pass-card--lead .pass-price,
  .pass-card--lead .incl, .pass-card--lead .btn { grid-column: 1; grid-row: auto; }
}

/* Membership is NOT a second pricing table — it's a horizontal comparison
   strip: one row per plan (plan · price · what's included · action). The price
   is the only mono/tabular element (it's data); plan names and inclusions stay
   in the editorial faces. The feature row (Monthly) carries a teal accent edge,
   not a re-drawn highlighted middle card. */
.compare { list-style: none; margin-top: 48px; border-top: 1px solid var(--g-line); }
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.5fr) auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: center;
  padding: 26px 0 26px 20px;
  border-bottom: 1px solid var(--g-line);
  border-left: 3px solid transparent;
}
.compare-row--feature { border-left-color: var(--g-accent); }
.compare-plan .tier { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); }
.compare-price { font-size: clamp(30px, 3.4vw, 42px); }
.compare-price .per { white-space: nowrap; }
.compare-incl { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.compare-incl li { position: relative; padding-left: 20px; font-size: var(--t-small); color: var(--g-mute); line-height: 1.5; }
.compare-incl li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--g-accent); font-family: var(--font-mono); font-weight: 500; }
.compare-row .btn { white-space: nowrap; }
@media (max-width: 880px) {
  .compare-row { grid-template-columns: 1fr; gap: 14px; padding-left: 16px; }
  .compare-incl { gap: 6px 18px; }
}

/* --------------------------------------------------------------------------
   14. RESTRAINT-LINE DIVIDER — the ONE italic in the system. A single centered
       Fraunces italic line between major movements.
   -------------------------------------------------------------------------- */
.restraint { text-align: center; padding-block: clamp(56px, 8vw, 112px); }
.restraint p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch; margin-inline: auto;
  color: var(--g-fg);
}
.restraint .mark { display: block; width: 34px; height: 1px; background: var(--field-demote); margin: 0 auto 30px; opacity: 0.7; }

/* --------------------------------------------------------------------------
   15. STATEMENT (the Ember heat band) — a full-bleed statement beside a water
       macro / atmosphere figure.
   -------------------------------------------------------------------------- */
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.statement h2 { font-size: clamp(34px, 5vw, 72px); }
.statement .lede { color: rgba(255,255,255,0.88); }
.basin-figure { margin: 0; border-radius: var(--r-plate); overflow: clip; }
.basin-figure img { width: 100%; height: auto; display: block; }
/* The heat-band figure: a visible art-directed placeholder that yields to a
   real image once one is supplied — the AI "Generate" figure in the browser
   editor, or the activated latent <img> on export. */
.basin-figure-slot { position: relative; }
.basin-figure-slot:has(.basin-figure-img) .slot,
.basin-figure-slot:has([data-ai-figure]) .slot { display: none; }
.basin-figure-img { width: 100%; height: auto; display: block; border-radius: var(--r-plate); }
.manifesto-figure { margin: 0; }
.manifesto-figure img { width: 100%; height: auto; display: block; border-radius: var(--r-plate); }

/* --------------------------------------------------------------------------
   16. BOOKING STUB — integration-agnostic split booking (Mindbody, Vagaro,
       Calendly, embed). No fake live calendar. A lead form is the safety net.
   -------------------------------------------------------------------------- */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 44px; }
.booking-path {
  border: 1px solid var(--g-line); border-radius: var(--r-card);
  background: color-mix(in srgb, var(--g-bg) 55%, var(--steam));
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.booking-path h3 { font-size: var(--t-h3); }
.booking-path p { font-size: var(--t-small); color: var(--g-mute); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter); margin-top: 36px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px/1.3 var(--font-body); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--font-body);
  color: var(--wet); background: var(--steam);
  border: 1px solid var(--slate); border-radius: var(--r-input);
  padding: 12px 14px; width: 100%; min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; }

/* --------------------------------------------------------------------------
   17. STORY / ARTICLE blocks
   -------------------------------------------------------------------------- */
.prose > * + * { margin-top: 20px; }
.prose p { font-size: var(--t-body); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hosts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 44px; }
.host figcaption { margin-top: 12px; }
.host .name { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.host .role { font-size: var(--t-small); color: var(--g-mute); margin-top: 2px; }

/* section head helper */
.band-head { max-width: 46ch; }
.band-head.center { margin-inline: auto; text-align: center; }
.band-head h2 { margin-top: 6px; }
.band-head .lede { margin-top: 20px; }

/* --------------------------------------------------------------------------
   18. FOOTER — Stone (Wet Stone) ground, Steam text, 4 columns, Fraunces
       wordmark, Geist Mono microline.
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--wet); color: var(--on-deep);
  --g-fg: var(--on-deep); --g-mute: var(--mute-on-deep); --g-line: var(--stone-line);
  padding-block: 64px 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px var(--gutter); }
.site-footer .wordmark { color: var(--on-deep); font-size: 30px; margin-bottom: 18px; }
.nap { font-family: var(--font-mono); font-size: 12px; line-height: 2; letter-spacing: 0.02em; font-style: normal; color: var(--mute-on-deep); }
.nap a { color: var(--on-deep); text-decoration: none; }
.nap a:hover { text-decoration: underline; }
.footer-col h2 { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-on-deep); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { padding-block: 5px; }
.footer-col a { font: 400 var(--t-small)/1.5 var(--font-body); color: var(--on-deep); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-fine { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--stone-line);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.microline { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.04em; color: var(--mute-on-deep); max-width: none; }

/* --------------------------------------------------------------------------
   19. STICKY MOBILE BAR — click-to-book, appears at the collapse point.
   -------------------------------------------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--wet); border-top: 1px solid var(--stone-line);
  padding: 8px var(--gutter);
  align-items: center; justify-content: space-between; gap: 16px;
}
.mobile-bar .mb-hours { font-family: var(--font-mono); font-size: 12px; color: var(--mute-on-deep); }
.mobile-bar .btn { min-height: 40px; padding: 10px 20px; }

/* --------------------------------------------------------------------------
   20. MOTION — the contrast bath breathes. Content is visible by DEFAULT; the
       .in class (added when an element enters the viewport) PLAYS a keyframe
       whose `backwards` fill supplies the start frame, so no-JS / print /
       screenshots render the whole page. reduced-motion defines no animation.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal.in { animation: basin-rise 0.4s ease backwards; }
  html.js .reveal.in .stagger { animation: basin-rise 0.4s ease backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  /* the big temperature numeral settles when its band arrives */
  html.js .ritual-step.in .ritual-num { animation: basin-settle 0.5s ease backwards; }
  /* hero image breathes — a breath, not a bounce */
  html.js .hero-fig img, html.js .hero-fig .slot { animation: basin-breath 6s ease-in-out infinite; }
  /* the steam-seam drifts */
  html.js [data-ground="plunge"]::before, html.js [data-ground="ember"]::before, html.js [data-ground="stone"]::before,
  html.js [data-ground="plunge"]::after,  html.js [data-ground="ember"]::after,  html.js [data-ground="stone"]::after {
    animation: basin-steam 9s ease-in-out infinite;
  }
}
@keyframes basin-rise   { from { opacity: 0; transform: translateY(12px); } }
@keyframes basin-settle { from { opacity: 0; transform: translateY(14px) scale(0.99); } }
@keyframes basin-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes basin-steam  { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   21. RESPONSIVE — the contrast bath survives 390px (it's the point).
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-fig { order: -1; }
  .statement-grid, .ritual-inner, .two-col { grid-template-columns: 1fr; }
  .ritual-num { margin-left: 0; }
  .water-grid { grid-template-columns: 1fr 1fr; }
  .water-card--lead { grid-column: 1 / -1; }
  .pass-grid { grid-template-columns: 1fr; max-width: 440px; }
  .booking { grid-template-columns: 1fr; }
  .hosts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--steam); border-bottom: 1px solid var(--chalk);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  html:not(.js) .nav-links { display: flex; position: static; border-bottom: 0; padding: 0 var(--gutter) 12px; }
  .nav-links a { display: block; padding-block: 14px; font-size: 16px; }
  .nav-actions .btn { padding: 12px 16px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 60px; }

  .water-grid, .form { grid-template-columns: 1fr; }
  .hosts-grid { grid-template-columns: 1fr 1fr; }
  .band { padding-block: clamp(56px, 14vw, 88px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .hosts-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   23. AMBIENT MOTION LAYER — a hand-authored WebGL steam + caustic-water
       shimmer (js/basin-motion.js) on the deep Plunge bands. It sits BEHIND the
       content and UNDER a Plunge scrim, so text always computes on ~Plunge no
       matter what the shader draws. The page is COMPLETE without it: with no JS
       or no WebGL the layer keeps a static CSS gradient poster (the still
       frame), over the section's own Plunge ground — never a blank box.
   -------------------------------------------------------------------------- */
.motion-layer {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  /* the no-JS / no-WebGL poster — a soft still frame of the same water */
  background:
    radial-gradient(120% 90% at 72% 16%, color-mix(in srgb, var(--accent-on-dark) 22%, transparent), transparent 60%),
    radial-gradient(90% 70% at 18% 90%, color-mix(in srgb, var(--field) 15%, transparent), transparent 62%),
    var(--plunge);
}
.motion-layer .motion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the scrim — a Plunge wash over the motion, under the copy. This is the
   contrast guarantee: effective background ≈ Plunge, which the palette already
   proves at 7:1 for body text and 3:1 for the focus ring. */
.motion-layer::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--plunge) 56%, transparent);
}
/* content (already z-index:1 via the ground rules) stays above the layer */
[data-basin-bg] > .wrap, [data-basin-bg] > .rail { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   22. PRINT — the grounds flatten; the page stays legible.
   -------------------------------------------------------------------------- */
@media print {
  .nav, .nav-toggle, .mobile-bar, .rail, .motion-layer { display: none; }
  [data-ground] { background: #fff !important; color: #000 !important; }
  .site-footer { background: #fff; color: #000; }
}
