/* ============================================================================
 * Sauna at the Cottage. Brand palette: Forest, Avocado, Sage, Terracotta,
 * Cream, Toffee. Night tones are deeper shades of Forest; plunge is the one
 * cold tone for the plunges.
 * ========================================================================== */
:root {
  --night: #1c2606;
  --night-2: #141b04;
  --olive: #394615;   /* Forest */
  --moss: #626927;    /* Avocado */
  --lime: #a4a340;    /* Sage */
  --lime-hi: #c9c84a;
  --cedar: #ae7244;   /* Terracotta */
  --cedar-deep: #8a5631;
  --cream: #f2e7d5;   /* Cream */
  --sand: #bba693;    /* Toffee */
  --plunge: #9cc3bd;
  --ink: #26310a;
  --ink-2: #4c5524;

  --serif: "Sulphur Point", "Avenir Next", "Segoe UI", sans-serif;   /* headings */
  --sans: "Inconsolata", ui-monospace, "SF Mono", Menlo, monospace;   /* body */

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(76px, 10vw, 140px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.35rem + 2.7vw, 3.6rem); }
h3 { font: 650 1.0625rem/1.3 var(--sans); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--lime); color: var(--night); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8em 1.45em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-lime { background: var(--lime); color: var(--night); }
.btn-lime:hover { background: var(--lime-hi); }
.btn-ghost { border-color: rgba(242, 231, 213, 0.45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(242, 231, 213, 0.08); }

.cite {
  display: inline-block; margin-top: 0.5em;
  font-size: 0.8125rem; color: var(--ink-2); text-decoration-color: rgba(76, 85, 36, 0.4);
}
.cite:hover { color: var(--ink); text-decoration-color: currentColor; }

.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 + p { margin-top: 1.1rem; font-size: 1.125rem; }

/* ------------------------------------------------------------------ header */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--cream);
}
.topbar.scrolled, .topbar.open {
  background: rgba(20, 27, 4, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(242, 231, 213, 0.08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--wrap) + var(--gutter) * 2); height: var(--header-h);
  margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { display: block; height: 46px; width: auto; }
.topnav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-weight: 500; font-size: 0.98rem; }
.topnav a { text-decoration: none; opacity: 0.86; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.topnav .topnav-cta {
  opacity: 1; padding: 0.6em 1.15em; border-radius: 999px;
  background: var(--lime); color: var(--night); font-weight: 600;
}
.topnav .topnav-cta:hover { background: var(--lime-hi); text-decoration: none; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; margin-right: -8px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .menu-toggle i { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s; }
  .menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .topnav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(20, 27, 4, 0.97);
    font-size: 1.15rem;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .topbar.open .topnav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
  .topnav a { padding: 14px 0; border-bottom: 1px solid rgba(242, 231, 213, 0.1); }
  .topnav .topnav-cta { margin-top: 18px; padding: 14px; text-align: center; border: 0; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--night); color: var(--cream); }
.stage {
  position: relative;
  min-height: max(660px, 100svh); max-height: 1080px;
  display: flex; flex-direction: column;
}
.yard { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.yard canvas { display: block; width: 100%; height: 100%; }
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 20, 4, 0.8) 0%, rgba(13, 20, 4, 0.5) 32%, rgba(13, 20, 4, 0) 56%),
    linear-gradient(180deg, rgba(13, 20, 4, 0.5) 0%, rgba(13, 20, 4, 0) 22%);
}
.hero-copy {
  position: relative; z-index: 2;
  width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto; padding: calc(var(--header-h) + clamp(32px, 9vh, 110px)) var(--gutter) 0;
  padding-bottom: 250px;   /* room for the circuit card, so short screens grow instead of overlapping */
  pointer-events: none;
}
.hero-copy > * { max-width: 34rem; }
.hero-copy a { pointer-events: auto; }
.opening { margin-bottom: 1.2rem; font-weight: 600; color: var(--lime-hi); letter-spacing: 0.01em; }
.hero h1 {
  font-size: clamp(2.75rem, 1.5rem + 4.6vw, 5.6rem);
  font-weight: 400; line-height: 0.98; letter-spacing: -0.025em;
  max-width: 11ch;
}
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); color: rgba(242, 231, 213, 0.86); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.yard-tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  max-width: 270px; padding: 12px 14px;
  background: rgba(20, 27, 4, 0.92); color: var(--cream);
  border: 1px solid rgba(201, 200, 74, 0.35); border-radius: 12px;
  font-size: 0.875rem; line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.yard-tip strong { display: block; margin-bottom: 3px; font: 500 1.08rem/1.2 var(--serif); }
.yard-tip em { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--lime-hi); font-size: 0.8125rem; }

.circuit {
  position: absolute; z-index: 2;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: clamp(24px, 5vh, 48px);
  width: min(30rem, calc(100% - var(--gutter) * 2));
  padding: 14px;
  background: rgba(20, 27, 4, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 231, 213, 0.12); border-radius: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 16px;
  border: 1.5px solid rgba(242, 231, 213, 0.22); border-radius: 999px;
  background: transparent; color: var(--cream);
  font: 600 0.9375rem/1 var(--sans); cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--lime)); }
.chip-heat { --dot: #e6894a; }
.chip-plunge { --dot: var(--plunge); }
.chip-rest { --dot: var(--lime); }
.chip-rain { margin-left: auto; }
.chip-rain::before { display: none; }
.chip-rain svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { border-color: rgba(242, 231, 213, 0.5); }
.chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--night); }
.readout { margin: 14px 4px 2px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline; }
.readout strong { font: 500 1.5rem/1 var(--serif); }
.readout-metric { font-weight: 600; color: var(--lime-hi); font-variant-numeric: tabular-nums; }
.readout-line { grid-column: 1 / -1; font-size: 0.9375rem; color: rgba(242, 231, 213, 0.8); min-height: 2.9em; }

@media (max-width: 759px) {
  .stage { min-height: max(780px, 100svh); max-height: none; }
  .stage::before {
    background: linear-gradient(180deg, rgba(13, 20, 4, 0.82) 0%, rgba(13, 20, 4, 0.5) 38%, rgba(13, 20, 4, 0) 58%);
  }
  .hero-copy { padding-top: calc(var(--header-h) + 28px); padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-sub { margin-top: 1rem; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .circuit {
    position: relative; left: auto; bottom: auto; width: auto;
    margin: 0; padding: 16px var(--gutter) 28px;
    background: var(--night); border: 0; border-radius: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .chip { padding: 0 13px; }
}

/* ------------------------------------------------------------------ welcome */
.welcome { background: var(--cream); padding: var(--section) 0; }
.welcome-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.welcome-lead h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); font-weight: 400; color: var(--olive); }
.welcome-points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(24px, 4vw, 56px); }
.welcome-points li { padding-top: 18px; border-top: 2px solid var(--olive); }
.welcome-points h3 { color: var(--olive); margin-bottom: 0.45em; font-size: 1.125rem; }
.welcome-points p { color: var(--ink-2); }

/* ------------------------------------------------------------------ story */
.story { background: var(--olive); color: var(--cream); padding: var(--section) 0; }
.story-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.story h2 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5rem); font-weight: 400; margin-bottom: 2rem; }
.story-text p { max-width: 36rem; font-size: 1.125rem; color: rgba(242, 231, 213, 0.88); }
.giveback { padding: 28px 0 0; border-top: 2px solid var(--lime); }
.giveback-stat { font-size: 1.0625rem; }
.giveback-stat span {
  display: block; margin-bottom: 0.15em;
  font: 400 clamp(3.4rem, 2.5rem + 3vw, 5rem)/1 var(--serif);
  color: var(--lime-hi); letter-spacing: -0.03em;
}
.giveback p { color: rgba(242, 231, 213, 0.86); }
.giveback-link a { color: var(--cream); font-weight: 600; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ backyard */
.backyard { background: var(--cream); padding: var(--section) 0; }
.backyard h2 { color: var(--olive); }
.backyard .section-head p { color: var(--ink-2); }
.yardmap {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start;
  margin: 0 0 clamp(48px, 7vw, 88px); padding: clamp(14px, 2vw, 24px); border-radius: 28px;
  background: #fbf6ec; box-shadow: 0 18px 50px rgba(38, 49, 10, 0.12); border: 1px solid rgba(57, 70, 21, 0.1);
}
.ym-map { min-width: 0; }
.ym-svg { width: 100%; height: auto; display: block; }
.ym-small { font: 700 13px var(--sans); letter-spacing: .08em; fill: #8a7b63; }
.ym-pin { cursor: pointer; }
.ym-dot { fill: var(--olive); stroke: #fbf6ec; stroke-width: 3; transition: fill .2s; }
.ym-ico { fill: none; stroke: var(--cream); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ym-lead { fill: none; stroke: var(--olive); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; }
.ym-tag { fill: rgba(251, 246, 236, 0.92); stroke: rgba(57, 70, 21, 0.18); stroke-width: 1; }
.ym-label { font: 400 17px var(--serif); fill: var(--olive); pointer-events: none; }
.ym-f { cursor: pointer; transition: opacity .3s, filter .3s; }
.ym-svg.picking .ym-f:not(.on) { opacity: .72; }
.ym-f.on { opacity: 1; filter: drop-shadow(0 0 7px rgba(201, 200, 74, 0.95)) drop-shadow(0 4px 8px rgba(38, 49, 10, 0.25)); }
.ym-pin.on .ym-dot, .ym-pin:hover .ym-dot { fill: var(--cedar); }
.ym-pin.on .ym-tag { fill: var(--olive); stroke: var(--olive); }
.ym-pin.on .ym-label { fill: var(--cream); }
.ym-side { display: grid; gap: 14px; }
.ym-kicker { margin: 0; font-weight: 700; font-size: 0.82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cedar); }
.ym-card { min-height: 9.5em; padding: 18px 20px; border-radius: 20px; background: var(--olive); color: var(--cream); }
.ym-card h3 { margin: 0 0 6px; font: 400 1.6rem/1.1 var(--serif); }
.ym-card p { margin: 0; font-size: 0.98rem; color: rgba(242, 231, 213, 0.88); }
.ym-step { margin: 0 0 6px !important; font-size: 0.82rem !important; font-weight: 700; color: var(--lime-hi) !important; }
.ym-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ym-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px 0 6px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(57, 70, 21, 0.25); background: transparent; color: var(--olive); font: 600 0.9rem var(--sans);
}
.ym-chip span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--olive); }
.ym-chip span svg { width: 17px; height: 17px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ym-chip[aria-pressed="true"] { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.ym-chip[aria-pressed="true"] span { background: var(--cedar); }
@media (max-width: 900px) { .yardmap { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  /* labels get too small to read: keep the numbered pins (bigger), the list below names them */
  .yardmap { padding: 10px; border-radius: 20px; }
  .ym-tag, .ym-label, .ym-lead { display: none; }
  .ym-mk { transform-box: view-box; transform: scale(1.5); }
  .ym-small { font-size: 22px; }
  .ym-chip { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) { .ym-f, .ym-dot { transition: none; } }
.stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); counter-reset: stop; }
.stops li {
  position: relative; counter-increment: stop;
  padding: 26px 0 34px;
  border-top: 2px dotted rgba(98, 105, 39, 0.55);
}
.stops li::before {
  content: counter(stop);
  position: absolute; right: 0; top: 18px;
  font: 400 1.6rem/1 var(--serif); color: var(--cedar);
}
.stops .ico {
  width: 40px; height: 40px; margin-bottom: 14px;
  fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.stops h3 { font: 500 1.5rem/1.15 var(--serif); color: var(--olive); margin-bottom: 0.4em; }
.stops p { color: var(--ink-2); font-size: 1rem; }

/* ------------------------------------------------------------------ round */
.round { background: var(--night); color: var(--cream); padding: var(--section) 0; }
.round .section-head p { color: rgba(242, 231, 213, 0.8); }
.trace { margin: 0; }
.trace-svg { width: 100%; height: auto; overflow: visible; }
.trace-svg .grid line { stroke: rgba(242, 231, 213, 0.1); stroke-width: 1; }
.trace-svg .axis text { fill: rgba(242, 231, 213, 0.55); font: 500 13px var(--sans); }
.trace-svg .band { opacity: 0.1; }
.trace-svg .line { fill: none; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.trace-svg .tag text { font: 600 13px var(--sans); }
.trace-svg .dot { filter: drop-shadow(0 0 8px rgba(255, 200, 120, 0.7)); }
.round-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 48px); counter-reset: rs; }
.round-steps li { padding-top: 14px; border-top: 2px solid var(--c); counter-increment: rs; }
.round-steps li:nth-child(1), .round-steps li:nth-child(3) { --c: var(--sand); }
.round-steps li:nth-child(2) { --c: #e6894a; }
.round-steps li:nth-child(4) { --c: var(--plunge); }
.round-steps li:nth-child(5) { --c: var(--lime); }
.round-steps strong { display: block; font: 500 1.4rem/1.2 var(--serif); margin-bottom: 4px; }
.round-steps strong::before { content: counter(rs) " "; color: var(--c); font-style: italic; }
.round-steps span { color: rgba(242, 231, 213, 0.75); font-size: 0.97rem; }

/* ------------------------------------------------------------------ research */
.research { background: var(--sand); padding: var(--section) 0; --ink-2: #333d12; }  /* darker muted text so it stays readable on Toffee */
.research h2 { color: var(--olive); }
.research .section-head p { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(56px, 7vw, 96px); }
.stats li { display: flex; flex-direction: column; padding-top: 18px; border-top: 2px solid var(--olive); }
.stat-n {
  font: 400 clamp(3rem, 2.2rem + 2.6vw, 4.6rem)/1 var(--serif);
  letter-spacing: -0.035em; color: var(--olive); margin-bottom: 0.25em;
}
.stat-l { color: var(--ink); }
.stats .cite { margin-top: auto; padding-top: 12px; }

.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tablist button {
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid rgba(57, 70, 21, 0.35); border-radius: 999px;
  background: transparent; color: var(--olive);
  font: 600 0.98rem/1 var(--sans); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tablist button:hover { border-color: var(--olive); }
.tablist button[aria-selected="true"] { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.research .tablist button:not([aria-selected="true"]) { color: var(--ink); }
.panel { animation: panel-in 0.35s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
.panel-lead {
  max-width: 46rem; margin-bottom: 32px;
  font: 400 clamp(1.4rem, 1.1rem + 1.1vw, 2rem)/1.25 var(--serif);
  color: var(--olive);
}
.panel-lead .cite { display: block; font: 400 0.8125rem/1.4 var(--sans); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { padding: 26px 28px; border-radius: 22px; }
.side h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 0.6em; font-size: 1rem; }
.side h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.side-hot { --c: var(--cedar); background: #ecdcc0; }
.side-cold { --c: #5f948e; background: #d3dbca; }
.side p { color: var(--ink); }

.safety {
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--olive); border-radius: 22px;
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 12px 40px;
}
.safety h3 { font: 500 1.75rem/1.15 var(--serif); color: var(--olive); }
.safety ul { display: grid; gap: 10px; }
.safety li { position: relative; padding-left: 22px; }
.safety li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.safety .fine { grid-column: 2; margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ traditions */
.traditions { background: var(--olive); color: var(--cream); padding: var(--section) 0; }
.traditions .section-head p { color: rgba(242, 231, 213, 0.82); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div:first-child { max-width: 44rem; }
.scroll-btn {
  width: 48px; height: 48px; display: grid; place-content: center;
  border: 1.5px solid rgba(242, 231, 213, 0.35); border-radius: 50%;
  background: transparent; color: var(--cream); cursor: pointer;
}
.scroll-btn:hover { border-color: var(--cream); }
.scroll-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the atlas: a map of bathing traditions, each pin opens its card in the panel */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.atlas-map { position: relative; aspect-ratio: 1000 / 398.4; }
.atlas-map img {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}
.atlas-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-routes path { fill: none; stroke: rgba(242, 231, 213, 0.16); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.atlas-routes path.on { stroke: var(--lime-hi); stroke-width: 2; stroke-dasharray: none; }
.pin {
  position: absolute; left: var(--x); top: var(--y); width: 0; height: 0;
  padding: 0; border: 0; background: none; color: var(--cream); font: 600 0.82rem/1 var(--sans); cursor: pointer;
}
.pin::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; }   /* finger-sized hit area */
.pin-dot {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sand); box-shadow: 0 0 0 3px rgba(28, 38, 6, 0.55); transition: transform .25s, background .25s;
}
.pin-label {
  position: absolute; white-space: nowrap; padding: 4px 8px; border-radius: 99px;
  background: rgba(28, 38, 6, 0.72); color: rgba(242, 231, 213, 0.86); transition: background .25s, color .25s;
}
.pin[data-side="right"] .pin-label { left: 12px; top: -11px; }
.pin[data-side="left"] .pin-label { right: 12px; top: -11px; }
.pin[data-side="above"] .pin-label { left: 0; bottom: 12px; transform: translateX(-50%); }
.pin[data-side="below"] .pin-label { left: 0; top: 12px; transform: translateX(-50%); }
.pin[data-side="above-left"] .pin-label { right: 2px; bottom: 8px; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { transform: scale(1.35); }
.pin:hover .pin-label { color: var(--cream); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-label { outline: 2px solid var(--lime-hi); outline-offset: 2px; }
.pin[aria-current="true"] { z-index: 2; }
.pin[aria-current="true"] .pin-dot { background: var(--lime-hi); transform: scale(1.35); }
.pin[aria-current="true"] .pin-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--lime-hi);
  animation: ping 2s ease-out infinite;
}
.pin[aria-current="true"] .pin-label { background: var(--lime-hi); color: var(--night); }
.pin-home { cursor: default; z-index: 1; }
.pin-home .pin-dot { background: var(--cedar); box-shadow: 0 0 0 3px rgba(28, 38, 6, 0.55), 0 0 14px rgba(240, 162, 78, 0.8); }
.pin-home .pin-label { background: transparent; padding: 0; color: #f0a24e; font-style: italic; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin[aria-current="true"] .pin-dot::after { animation: none; opacity: 0; } }
.atlas-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.atlas-count { min-width: 4.5em; text-align: center; font: 400 1.05rem/1 var(--serif); color: rgba(242, 231, 213, 0.7); }
.tradition-track { list-style: none; margin: 0; padding: 0; }
.tradition { padding-top: 20px; border-top: 2px solid var(--lime); display: flex; flex-direction: column; animation: card-in .45s ease both; }
.tradition[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tradition { animation: none; } }
.t-when { margin-bottom: 0.9rem; font: 400 1.3rem/1.1 var(--serif); color: var(--lime-hi); }
.tradition h3 { font: 500 1.75rem/1.1 var(--serif); }
.t-where { margin: 0.3rem 0 1rem; font-weight: 600; color: var(--sand); }
.tradition p:not([class]) { font-size: 0.97rem; color: rgba(242, 231, 213, 0.82); }
.tradition .cite { margin-top: auto; padding-top: 12px; color: rgba(242, 231, 213, 0.65); text-decoration-color: rgba(242, 231, 213, 0.3); }
.tradition .cite:hover { color: var(--cream); }

/* ------------------------------------------------------------------ faq */
.faq { background: var(--cream); padding: var(--section) 0; }
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { color: var(--olive); }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq .section-head p { color: var(--ink-2); }
.faq .section-head a { color: var(--olive); font-weight: 600; }
.faq-list details { border-top: 2px solid rgba(57, 70, 21, 0.2); }
.faq-list details:last-child { border-bottom: 2px solid rgba(57, 70, 21, 0.2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 500 clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem)/1.25 var(--serif);
  color: var(--olive);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--olive), var(--olive)) center / 12px 2px no-repeat,
    linear-gradient(var(--olive), var(--olive)) center / 2px 12px no-repeat;
  border: 1.5px solid rgba(57, 70, 21, 0.4);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 40rem; color: var(--ink-2); }
.faq-list details > p:last-child { padding-bottom: 24px; }

/* ------------------------------------------------------------------ visit */
.visit { background: var(--night); color: var(--cream); padding: var(--section) 0; }
.visit-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.visit h2 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5rem); font-weight: 400; margin-bottom: 1.4rem; }
.visit-main p { max-width: 30rem; font-size: 1.125rem; color: rgba(242, 231, 213, 0.86); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.visit-details { display: grid; gap: 40px; }
.visit-details h3 { margin-bottom: 14px; color: var(--lime-hi); }
.visit-details a { font-weight: 600; text-decoration-color: rgba(242, 231, 213, 0.4); }
.visit-details p { color: rgba(242, 231, 213, 0.86); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(242, 231, 213, 0.12); }
.hours dt { color: rgba(242, 231, 213, 0.75); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ discount pop-up */
.promo-on { overflow: hidden; }
.promo { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 3, 0.62); opacity: 0; transition: opacity .25s; }
.promo-card {
  position: relative; width: min(100%, 460px); max-height: calc(100svh - 32px); overflow: auto;
  padding: 22px 22px 20px; border-radius: 26px; text-align: center;
  background: var(--olive); color: var(--cream); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s, transform .25s;
}
.promo.in .promo-backdrop { opacity: 1; }
.promo.in .promo-card { opacity: 1; transform: none; }
.promo-x { position: absolute; z-index: 2; right: 30px; top: 28px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(20, 27, 4, 0.7); color: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.promo-x:hover { background: rgba(20, 27, 4, 0.9); }
.promo-art { position: relative; margin: -10px -8px 16px; }
.promo-art img { width: 100%; height: auto; border-radius: 18px; }
.promo-art figcaption {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 16px; border-radius: 999px; background: var(--lime); color: var(--night);
  font: 400 1.15rem/1.1 var(--serif); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.promo-art + .promo-step, .promo-art ~ .promo-step { padding-top: 14px; }
.promo-kicker { margin: 0 0 6px; color: var(--lime-hi); font-weight: 700; font-size: 0.9rem; letter-spacing: .04em; text-transform: uppercase; }
.promo h2 { font: 400 clamp(1.6rem, 1.3rem + 1.2vw, 2rem)/1.12 var(--serif); margin: 0 0 10px; outline: none; }
.promo-step > p { margin: 0 0 16px; color: rgba(242, 231, 213, 0.86); }
.promo form { display: grid; gap: 10px; }
.promo-field input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(242, 231, 213, 0.35);
  background: rgba(10, 14, 3, 0.35); color: var(--cream); font: 600 1.05rem var(--sans); text-align: center;
}
.promo-field input::placeholder { color: rgba(242, 231, 213, 0.45); }
.promo-go { width: 100%; min-height: 50px; justify-content: center; }
.promo-err { margin: 0; color: #ffb38a; font-weight: 700; font-size: 0.9rem; }
.promo-no { margin-top: 10px; padding: 8px 12px; border: 0; background: none; color: rgba(242, 231, 213, 0.75); font: 600 0.95rem var(--sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.promo-no:hover { color: var(--cream); }
.promo-fine { margin: 10px 0 0 !important; font-size: 0.78rem; color: rgba(242, 231, 213, 0.6) !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .promo { place-items: end center; padding: 0; }
  .promo-card { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) { .promo-card, .promo-backdrop { transition: none; } }

/* ------------------------------------------------------------ podcast band */
.pods { background: var(--olive); color: var(--cream); padding: var(--section) 0; }
.pods-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 44px); }
.pods-kicker { margin: 0 0 10px; color: var(--lime-hi); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 0.9rem; }
.pods h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); font-weight: 400; }
.pods-eps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 28px); }
.pod { padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: rgba(20, 27, 4, 0.35); border: 1px solid rgba(242, 231, 213, 0.14); }
.pod-tag { margin: 0 0 6px; color: var(--lime-hi); font-weight: 700; font-size: 0.88rem; }
.pod h3 { font: 400 clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem)/1.15 var(--serif); margin: 0 0 10px; color: var(--cream); }
.pod > p:not(.pod-tag) { color: rgba(242, 231, 213, 0.84); margin: 0; }
.pods .pod-btn { margin-top: 18px; background: var(--lime); color: var(--night); border-color: var(--lime); }
.pods .pod-btn:hover { background: var(--lime-hi); }
.pod .listen-player { max-width: none; }
.faq-listen { margin: 0 0 22px; color: var(--olive); border-color: rgba(57, 70, 21, 0.45); }
.faq .listen-player { margin: 0 0 22px; color: var(--ink); }
.faq .lp-transcript { display: none; }   /* the FAQ answer is already the written version */
@media (max-width: 760px) { .pods-eps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ follow the journey */
.journey { background: var(--cream); padding: var(--section) 0; }
.journey h2 { color: var(--olive); }
.journey .section-head p { color: var(--ink-2); max-width: 34rem; }
.journey-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.btn-forest { background: var(--olive); color: var(--cream); gap: 10px; }
.btn-forest:hover { background: #4a5a1c; }
.ig-icon { width: 20px; height: 20px; flex: none; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 8px; }
.ig-grid a { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sand); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ig-grid a:hover img { transform: scale(1.05); }
.ig-grid .ig-badge { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(20, 27, 4, 0.7); color: var(--cream); font-size: 0.75rem; font-weight: 700; }
.ig-handle { margin: 18px 0 0; font-weight: 600; }
.ig-handle a { color: var(--olive); text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; }
.footer-ig:hover { text-decoration: underline; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ig-grid img { transition: none; } }

/* ------------------------------------------------------------ listen instead */
.listen-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font: 700 0.98rem/1 var(--sans); cursor: pointer;
}
.listen-btn:hover { background: rgba(127, 127, 127, 0.12); }
.listen-len { font-weight: 400; opacity: 0.75; }
.vocab-link { margin-left: 8px; text-decoration: none; border-color: rgba(242, 231, 213, 0.4); }
.listen-player { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(127, 120, 90, 0.16); border: 1px solid rgba(127, 127, 127, 0.3); max-width: 44rem; }
.lp-top { display: flex; align-items: center; gap: 10px; }
.lp-top button { flex: none; cursor: pointer; color: inherit; background: transparent; border: 1.5px solid rgba(127, 127, 127, 0.45); border-radius: 999px; font: 700 1rem/1 var(--sans); }
.lp-play { width: 46px; height: 46px; background: var(--olive) !important; color: var(--cream) !important; border-color: var(--olive) !important; }
.traditions .lp-play { background: var(--lime) !important; color: var(--night) !important; border-color: var(--lime) !important; }
.lp-skip, .lp-close { width: 38px; height: 38px; }
.lp-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lp-title { font: 400 1.05rem/1.2 var(--serif); }
.lp-time { font-size: 0.85rem; opacity: 0.75; }
.lp-bar { height: 4px; margin: 12px 0 10px; border-radius: 2px; background: rgba(127, 127, 127, 0.3); overflow: hidden; }
.lp-bar span { display: block; height: 100%; width: 0; background: currentColor; transition: width .4s; }
.lp-caption { margin: 0 0 8px; min-height: 2.8em; font-size: 0.98rem; }
.lp-transcript summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.lp-transcript ol { margin: 10px 0 0; padding-left: 2.4em; list-style: decimal; display: grid; gap: 6px; max-height: 18rem; overflow: auto; font-size: 0.92rem; }
.lp-transcript li { cursor: pointer; opacity: 0.8; }
.lp-transcript li.on { opacity: 1; font-weight: 600; }

/* ------------------------------------------------------------ video backdrops
 * <div class="bg-video" data-video="assets/video/NAME"> inside a .has-video band.
 * site.js loads NAME.mp4 (+ NAME.jpg poster) once the band is near the viewport,
 * pauses it off-screen, and skips the video for reduced motion / data saver.
 * The band's own background colour shows until (or unless) the video plays. */
.has-video { position: relative; isolation: isolate; overflow: hidden; }
.bg-video { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-video video, .bg-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.bg-video.is-ready video, .bg-video.is-ready img { opacity: 1; }
.bg-video::after { content: ""; position: absolute; inset: 0; background: var(--video-tint, rgba(20, 27, 4, 0.6)); }
.story { --video-tint: rgba(57, 70, 21, 0.8); }
.visit { --video-tint: rgba(28, 38, 6, 0.78); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--night-2); }
.trio-panel {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(380px, 62vh, 640px); padding: clamp(20px, 3vw, 40px);
  background: var(--olive); color: var(--cream); --video-tint: linear-gradient(rgba(20, 27, 4, 0.05), rgba(20, 27, 4, 0.72));
}
.trio-word { margin: 0; font: 400 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--serif); }
.trio-line { margin: 8px 0 0; max-width: 22rem; color: rgba(242, 231, 213, 0.88); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } .trio-panel { min-height: 300px; } }
.interlude { height: clamp(260px, 56vh, 560px); background: var(--night); --video-tint: rgba(20, 27, 4, 0.18); }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--night-2); color: rgba(242, 231, 213, 0.7); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 0.94rem; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-mark { width: 52px; height: auto; }
.footer p { margin: 0; }
.footer-fine { margin-left: auto !important; }

/* ------------------------------------------------------------------ 404 */
.lost { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 120px var(--gutter) 80px; color: var(--cream); }
.lost img { width: 120px; height: auto; margin: 0 auto 28px; }
.lost h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 400; margin-bottom: 1rem; }
.lost p { color: rgba(242, 231, 213, 0.8); max-width: 28rem; margin: 0 auto 2rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .welcome-grid, .story-grid, .faq-grid, .visit-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .stops { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .round-steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .safety { grid-template-columns: 1fr; }
  .atlas { grid-template-columns: 1fr; }
  .atlas-panel { max-width: 40rem; }
  .safety .fine { grid-column: auto; }
}
@media (max-width: 640px) {
  .welcome-points, .stops, .pair, .round-steps { grid-template-columns: 1fr; }
  .welcome-points { gap: 28px; }
  .stops li { padding: 22px 0 26px; }
  .side { padding: 22px; }
  .section-head-row { display: block; }
  .atlas-map { margin: 0 calc(var(--gutter) * -0.5); }
  .pin-dot { left: -5px; top: -5px; width: 10px; height: 10px; }
  .pin:not([aria-current="true"]) .pin-label { display: none; }
  .pin-home .pin-label { display: none; }
  .footer-fine { margin-left: 0 !important; width: 100%; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ scroll reveal + typing headings */
.reveal-on [data-reveal]:not(.in) { opacity: 0; transform: translateY(22px); }
.reveal-on [data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.reveal-on main section:not(.hero) h2:not(.typing-ready) { opacity: 0; }
.typing-ready .tc { opacity: 0; }
.typing-ready .tc.on, .typed .tc { opacity: 1; }
.tw { white-space: nowrap; }
.caret {
  display: inline-block; width: 0.08em; height: 0.92em; margin: 0 0.02em -0.08em; vertical-align: baseline;
  background: var(--lime); animation: caret-blink .9s steps(1) infinite;
}
.caret.done { opacity: 0; transition: opacity .5s; animation: none; }
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .typing-ready .tc { opacity: 1; }
}
