/* =========================================================================
   Nadia.Longevity · style.css
   Layers: 1 reset/tokens/base · 2 components · 3 sections · 4 motion states
           5 tier rules · 6 breakpoints · 7 reduced motion   (BUILD-PLAN §28.5)
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
@property --draw { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --val  { syntax: '<number>'; inherits: true; initial-value: 1; }

:root {
  --forest: #1F3D2E;
  --forest-night: #0F2A20;
  --sage: #A7B79A;
  --cream: #F5EFE4;
  --gold: #D9B26F;
  --terracotta: #A4502F;
  --terracotta-display: #C46A4A;   /* accent lines on cream, >= 48px only */
  --olive: #5B6B3A;
  --honey: #C8955A;
  --ink: #22251F;
  --ink-muted: #5C6152;
  --glow: #3E6B4F;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-brand: "Fraunces", Georgia, serif;   /* the wordmark is always Fraunces */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* scale: 14 · 16 · 18 · 21 · 24 · 36 · 48 · 60 · 72 · 96 */
  --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-21: 1.3125rem; --fs-24: 1.5rem;
  --fs-36: 2.25rem; --fs-48: 3rem;

  --r-paper: 4px; --r-frame: 28px; --r-photo: 48px; --r-pill: 999px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms; --t: 220ms; --t-turn: 600ms;

  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1320px;
  --section-y: clamp(88px, 11vw, 176px);
}
:root:lang(ru) { --font-display: "Playfair", Georgia, "Times New Roman", serif; }

/* Section themes: each sets the colors its children read */
.theme-cream, .theme-paper {
  --bg: var(--cream); --fg: var(--ink); --fg-muted: var(--ink-muted);
  --hl1: var(--olive); --hl2: var(--terracotta); --line: var(--olive); --accent: var(--terracotta);
  --focus: var(--terracotta); --leader: var(--olive); --value: var(--terracotta); --error: var(--terracotta);
  --field-line: rgba(91, 107, 58, .55); --link: var(--terracotta);
  color: var(--fg);
}
.theme-forest, .theme-night {
  --bg: var(--forest); --fg: var(--cream); --fg-muted: var(--sage);
  --hl1: var(--cream); --hl2: var(--gold); --line: var(--gold); --accent: var(--gold);
  --focus: var(--gold); --leader: var(--sage); --value: var(--gold); --error: var(--cream);
  --field-line: rgba(167, 183, 154, .6); --link: var(--gold);
  color: var(--fg);
}
.theme-night { --bg: var(--forest-night); }
.theme-terra {
  --bg: var(--terracotta); --fg: var(--cream); --fg-muted: var(--cream);
  --hl1: var(--cream); --hl2: var(--cream); --line: var(--cream); --accent: var(--cream);
  --focus: var(--cream); --leader: var(--cream); --value: var(--cream); --error: var(--cream);
  --field-line: rgba(245, 239, 228, .7); --link: var(--cream);
  color: var(--fg);
}
.theme-cream, .theme-forest, .theme-night, .theme-terra { background-color: var(--bg); }
.theme-paper { background-color: var(--cream); }

/* ---------- 1b. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--forest-night);
}
html.tier-touch, html.tier-lite { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-18);
  line-height: 1.6;
  color: var(--ink);
  background: var(--forest);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
:lang(ru) body { line-height: 1.7; }
:lang(ru) p, :lang(ru) li, :lang(ru) dd { hyphens: auto; -webkit-hyphens: auto; }
.lang-pending body { visibility: hidden; }
img, svg, video, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus, var(--gold)); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--forest-night); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
/* Line art: stroke width follows font-size, so each placement sets its own line weight */
.art {
  width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1em; stroke-linecap: round; stroke-linejoin: round;
  font-size: 1.2px;
}

/* Lenis (desktop smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--forest-night); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--t) var(--ease);
}
.skip:focus { transform: none; }

/* ---------- 2. Typography components ---------- */
.hl { font-family: var(--font-display); font-weight: 300; --hl-size: clamp(48px, 7vw, 96px); --hl-scale: 1; }
:lang(ru) .hl { --hl-scale: .9; }
.hl__1, .hl__2 { display: block; text-wrap: balance; }
.hl__1 {
  font-size: calc(var(--hl-size) * var(--hl-scale));
  line-height: .95; letter-spacing: -.015em; color: var(--hl1);
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.hl__2 {
  font-size: calc(var(--hl-size) * var(--hl-scale) * .6);
  line-height: 1.08; font-style: italic; color: var(--hl2);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  margin-top: .22em; padding-inline-start: 1em;
}
:lang(ru) .hl__1 { line-height: 1; letter-spacing: -.01em; }
:lang(ru) .hl__2 { line-height: 1.13; }
.hl__mask { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

.h-section {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.01em;
  color: var(--hl1); font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}
.h-small { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-24); line-height: 1.25; color: var(--hl1); }
.block-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; color: var(--fg); }
.serif-text { font-family: var(--font-display); font-size: var(--fs-21); line-height: 1.55; }
.label { font-size: var(--fs-16); font-weight: 500; color: var(--accent); letter-spacing: .005em; }
.lede { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; color: var(--fg-muted); max-width: 34em; }
.fine { font-size: var(--fs-14); line-height: 1.5; color: var(--fg-muted); }
.price {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-36); line-height: 1;
  color: var(--value); font-variant-numeric: lining-nums;
}
.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 62ch; }
.prose--sm { font-size: var(--fs-16); }
.prose--sm h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-21); color: var(--olive); margin: 1.6em 0 .4em; }
.prose a, .text-link, .link-btn {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .22em; transition: text-decoration-thickness var(--t-fast), color var(--t-fast);
}
.prose a:hover, .text-link:hover, .link-btn:hover { text-decoration-thickness: 2px; }
.link-btn { font-size: inherit; display: inline; }

/* ---------- 2b. Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: var(--fs-16); font-weight: 500; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: color var(--t) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateX(-101%); transition: transform var(--t) var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--honey); color: var(--forest-night); }
.btn--primary::before { background: var(--terracotta); }
.btn--primary:hover { color: var(--cream); }
.theme-terra .btn--primary::before { background: var(--forest-night); }
.btn--secondary { border: 1px solid currentColor; color: var(--fg); background: transparent; }
.btn--secondary::before { background: var(--fg); }
.btn--secondary:hover { color: var(--bg); }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn .icon { width: 20px; height: 20px; }
.btn[disabled] { cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.circle-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid currentColor; color: var(--fg);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t);
}
.circle-btn:hover { background: var(--fg); color: var(--bg); }
.circle-btn:disabled { opacity: .3; cursor: default; background: none; color: var(--fg); }

/* ---------- 2c. Monogram, wordmark, language toggle ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand__word { font-family: var(--font-brand); font-size: 20px; font-weight: 400; letter-spacing: .01em; font-variation-settings: "SOFT" 100; }
.monogram {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-brand); font-size: 19px; line-height: 1; font-weight: 400;
  font-variation-settings: "SOFT" 100; padding-top: 1px;
}
.monogram--lg { width: 64px; height: 64px; font-size: 30px; border-color: var(--olive); color: var(--olive); }

.lang-toggle { position: relative; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.lang-toggle button { position: relative; width: 40px; min-height: 40px; opacity: .55; transition: opacity var(--t-fast); }
.lang-toggle button:hover, .lang-toggle button[aria-pressed="true"] { opacity: 1; }
.lang-toggle button + button::before {
  content: ""; position: absolute; left: 0; top: 33%; height: 34%; width: 1px; background: currentColor; opacity: .4;
}
.lang-toggle__ind {
  position: absolute; left: 11px; bottom: 6px; width: 18px; height: 1.5px; background: var(--gold);
  transition: transform 300ms var(--ease); pointer-events: none;
}
.lang-toggle:has(button[data-lang="ru"][aria-pressed="true"]) .lang-toggle__ind { transform: translateX(40px); }

/* ---------- 2d. Price list (item · dotted leader · value) ---------- */
.pricelist { display: grid; }
.pl-row { display: flex; align-items: flex-end; padding-block: 12px; }
.pl-row dt {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end;
  font-size: var(--fs-18); line-height: 1.45; color: var(--fg);
}
.pl-row dt::after {
  content: ""; flex: 1 0 28px; height: 3px; margin: 0 14px .48em;
  background: radial-gradient(circle, var(--leader) 1.05px, transparent 1.45px) 0 50% / 8px 3px repeat-x;
  clip-path: inset(0 calc((1 - var(--draw)) * 100%) 0 0);
}
.pl-row dd {
  flex: none; text-align: right;
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-24); line-height: 1.15;
  color: var(--value); font-variant-numeric: lining-nums; opacity: var(--val);
}
.pricelist--lg .pl-row { padding-block: 18px; }
.pricelist--lg dt { font-size: clamp(17px, 1.4vw, 20px); }
.pricelist--lg dd { font-size: clamp(28px, 3vw, var(--fs-36)); }

/* ---------- 2e. Arch portrait with offset ring ---------- */
.arch { position: relative; isolation: isolate; }
.arch picture, .arch img { border-radius: 9999px 9999px 6px 6px; overflow: hidden; }
.arch img { width: 100%; height: auto; object-fit: cover; }
.arch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid var(--line); border-radius: 9999px 9999px 6px 6px;
  transform: translate(12px, -12px);
}

/* ---------- 2f. Paper objects ---------- */
.divider { width: 120px; height: 45px; margin-inline: auto; color: var(--olive); font-size: 2.4px; }
.paper-border, .menu-card::before, .place-card__front::before, .place-card__back::before, .place-card__front::after, .place-card__back::after {
  content: ""; position: absolute; pointer-events: none; border: 1px solid var(--gold);
}

/* ---------- 2g. Forms ---------- */
.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form__grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-size: 15px; font-weight: 500; color: var(--fg); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0 10px;
  font-size: 17px; line-height: 1.4;
  background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0;
  color: var(--fg); appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 104px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: var(--r-paper); resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--focus); box-shadow: 0 1px 0 0 var(--focus);
}
.field textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); opacity: .8; }
.field__help { font-size: var(--fs-14); color: var(--fg-muted); }
.field__error {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--fs-14); font-weight: 500; line-height: 1.4; color: var(--error);
}
.field__error::before {
  content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--error); color: var(--bg);
}
.field.is-invalid input, .field.is-invalid .check__box { border-color: var(--error); border-bottom-width: 2px; }
.error-summary {
  padding: 14px 18px; border: 1px solid var(--error); border-left-width: 3px; border-radius: var(--r-paper);
  font-size: var(--fs-16);
}
.error-summary__title { font-weight: 600; color: var(--error); }
.error-summary ul { margin-top: 6px; display: grid; gap: 2px; }
.error-summary a { color: var(--fg); text-underline-offset: .2em; }
.form__status:empty { display: none; }
.form__status { font-size: var(--fs-16); padding: 12px 16px; border-radius: var(--r-paper); border: 1px dashed var(--field-line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Radio cards (gold check) */
.field--interest legend, .field--pills legend { margin-bottom: 10px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.radio-card__body {
  position: relative; display: grid; gap: 4px; height: 100%; min-height: 64px;
  padding: 18px 16px 16px 54px;
  border: 1px solid var(--field-line); border-radius: var(--r-paper);
  transition: border-color var(--t), background-color var(--t);
}
.radio-card__title { font-family: var(--font-display); font-size: 20px; line-height: 1.2; color: var(--fg); }
.radio-card__help { font-size: var(--fs-14); line-height: 1.4; color: var(--fg-muted); }
.radio-card__check {
  position: absolute; left: 16px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--olive); color: transparent;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.radio-card__check .icon { width: 15px; height: 15px; stroke-width: 2; }
.radio-card:hover .radio-card__body { border-color: var(--olive); }
.radio-card input:checked + .radio-card__body { border-color: var(--gold); background: rgba(217, 178, 111, .14); }
.radio-card input:checked + .radio-card__body .radio-card__check { background: var(--gold); border-color: var(--gold); color: var(--forest-night); }
.radio-card input:focus-visible + .radio-card__body { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Language pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--field-line); border-radius: var(--r-pill); font-size: 15px; font-weight: 500;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.pill input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Disclosure */
.disclosure { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--fg); }
.disclosure__plus { position: relative; width: 22px; height: 22px; border: 1px solid var(--field-line); border-radius: 50%; }
.disclosure__plus::before, .disclosure__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform var(--t) var(--ease);
}
.disclosure__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.disclosure[aria-expanded="true"] .disclosure__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.disclosure__panel { display: grid; gap: 6px; margin-top: 8px; }

/* Checkbox */
.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check__box {
  width: 24px; height: 24px; border: 1px solid var(--olive); border-radius: var(--r-paper);
  display: grid; place-items: center; color: transparent; transition: background-color var(--t), color var(--t);
}
.check__box .icon { width: 16px; height: 16px; stroke-width: 2; }
.check input:checked + .check__box { background: var(--olive); color: var(--cream); }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check__text { color: var(--fg); }

/* ---------- 2h. Toast, curtain, grain ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%);
  width: max-content; max-width: min(92vw, 540px);
  padding: 14px 20px; border-radius: 14px;
  background: var(--forest-night); color: var(--cream); border: 1px solid rgba(217, 178, 111, .5);
  font-size: 15px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.curtain {
  position: fixed; inset: 0; z-index: 85; pointer-events: none;
  background: var(--curtain, var(--forest)); transform: scaleY(0); transform-origin: 50% 100%;
}
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background: url("assets/img/grain.png") repeat; opacity: .05;
}
.tier-lite .grain { display: none; }

/* =========================================================================
   3. Sections
   ========================================================================= */

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--cream); transition: transform 350ms var(--ease), color 300ms;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(31, 61, 46, .8); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(217, 178, 111, .18);
  transition: opacity 300ms;
}
.nav.is-top { color: var(--ink); }
.nav.is-top::before { opacity: 0; }
.nav.is-top .monogram { border-color: var(--olive); color: var(--olive); }
.nav.is-top .lang-toggle__ind { background: var(--terracotta); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  position: relative; height: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__left { display: flex; gap: clamp(18px, 2vw, 30px); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.nav__link { position: relative; font-size: 15px; font-weight: 500; text-decoration: none; padding-block: 10px; white-space: nowrap; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.lang-mini, .menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center;
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.menu-btn .icon { width: 24px; height: 24px; }
html.menu-open .nav { color: var(--cream); transform: none; }
html.menu-open .nav::before { opacity: 1; }
html.menu-open .nav .monogram { border-color: var(--gold); color: var(--gold); }

.menu {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  padding: calc(var(--nav-h) + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 36px;
  opacity: 0; transform: translateY(-12px); transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 10vw, 56px); line-height: 1.15;
  text-decoration: none; padding-block: 6px; color: var(--cream);
}
.lang-toggle--menu { margin-top: auto; align-self: flex-start; font-size: 16px; }

/* ---------- Thank-you view ---------- */
html.is-thanks, html.is-thanks body { overflow: hidden; }
.thanks { position: fixed; inset: 0; z-index: 90; overflow-y: auto; display: grid; place-items: center; padding: 88px var(--gutter) 48px; }
.thanks__lang { position: absolute; top: 20px; right: var(--gutter); }
.thanks .lang-toggle__ind { background: var(--terracotta); }
.thanks__inner { width: 100%; max-width: 760px; display: grid; justify-items: start; gap: 28px; }
.hl--thanks { --hl-size: clamp(48px, 7vw, 96px); }
.hl--thanks:focus { outline: none; }
.thanks .link-btn { font-size: var(--fs-16); }

/* ---------- 1 · Detox ---------- */
.detox { padding-top: calc(var(--nav-h) + clamp(16px, 3vw, 40px)); padding-bottom: var(--section-y); }
.detox__first {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  min-height: calc(100svh - var(--nav-h) - clamp(16px, 3vw, 40px));
  padding-bottom: clamp(24px, 4vh, 48px);
}
.detox__copy { grid-column: 1 / span 7; padding-block: 16px; }
.detox__copy .label { margin-bottom: clamp(20px, 3vh, 32px); }
.hl--opener { --hl-size: clamp(60px, 9vw, 150px); margin-bottom: clamp(22px, 3.4vh, 36px); }
.hl--opener .hl__1 { line-height: .9; letter-spacing: -.02em; }
.hl--opener .hl__2 { max-width: 13em; }
.detox__copy .lede { margin-bottom: clamp(26px, 4vh, 40px); }
.detox__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.detox__portrait {
  grid-column: 8 / span 5; justify-self: end; margin-right: 12px;
  width: min(100%, 480px, calc((100svh - var(--nav-h) - 110px) * 2 / 3));
}
.detox__portrait img { aspect-ratio: 2 / 3; }

.detox__more {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) 24px;
  margin-top: clamp(48px, 6vw, 96px);
}
.detox__facts { grid-column: 1 / span 7; }
.detox__who { grid-column: 9 / span 4; align-self: center; display: grid; gap: 14px; }
.detox__lists { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 6vw, 96px); }
.menu-list h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.menu-list li {
  padding: 14px 0; border-bottom: 1px solid rgba(91, 107, 58, .25);
  font-size: 17px; line-height: 1.5;
}
.menu-list .fine { margin-top: 16px; }
.detox__close { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap; }
.detox__close .fine { max-width: 46em; }

.waitlist { display: grid; gap: 28px; padding-block: clamp(24px, 6vh, 80px); min-height: calc(100svh - var(--nav-h) - 80px); align-content: center; }
.hl--opener-sm { --hl-size: clamp(52px, 7.4vw, 112px); }
.waitlist__form { max-width: 900px; }
.waitlist__form .btn { justify-self: start; }

/* ---------- Films (shared) ---------- */
.film { position: relative; background: var(--bg); color: var(--fg); }
.film__frame { position: relative; overflow: hidden; height: min(100svh, 177.78vw); min-height: 520px; background: var(--forest); }
.film__stage {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 66% 42%, rgba(62, 107, 79, .85) 0%, rgba(62, 107, 79, 0) 70%), var(--forest);
}
.art--film { position: absolute; inset: 0; color: var(--gold); opacity: .5; font-size: 1.5px; }
.film__photo, .film__photo img, .film__video, .film__end { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video:not([src]) { visibility: hidden; }
.film.has-video .art--film, .film.has-video .film__photo { display: none; }
.film__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 42, 32, .9) 0%, rgba(15, 42, 32, .45) 38%, rgba(15, 42, 32, 0) 66%);
}
.film__toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 42, 32, .55); border: 1px solid rgba(217, 178, 111, .6); color: var(--cream);
}
.film__toggle .icon { width: 20px; height: 20px; }
.film__content { position: relative; z-index: 2; }

/* Brand hero (Scene 1) in its hairline frame */
.film--intro { padding: 12px; }
.film--intro .film__frame {
  height: calc(100svh - 24px); min-height: 560px;
  border-radius: var(--r-frame); border: 1px solid rgba(217, 178, 111, .5);
  isolation: isolate;
}
.intro__content {
  position: absolute; left: clamp(20px, 5vw, 80px); right: clamp(20px, 5vw, 80px); bottom: clamp(28px, 7vh, 80px);
  max-width: 1000px;
}
.hl--film { --hl-size: clamp(56px, 8vw, 132px); }
.hl--film .hl__1 { line-height: .94; }
.intro__sub { max-width: 34em; margin-top: clamp(18px, 3vh, 28px); color: var(--cream); font-size: clamp(17px, 1.3vw, 19px); }
.intro__content .btn-row { margin-top: clamp(22px, 3.4vh, 32px); }
.scroll-cue {
  position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(24px, 4vh, 40px); z-index: 2;
  display: none; align-items: center; gap: 12px; font-size: var(--fs-14); color: var(--sage);
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); }

/* Kitchen (Scene 2) */
.film--kitchen .film__scrim { background: linear-gradient(to top, var(--forest) 0%, rgba(31, 61, 46, 0) 30%); }
.captions { display: grid; gap: 18px; padding: 8px var(--gutter) clamp(64px, 9vw, 120px); max-width: 760px; }
.caption {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; color: var(--cream);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.caption--last { color: var(--gold); }

/* The Circle (Scene 3) */
.circle__content { padding: 40px var(--gutter) clamp(72px, 9vw, 120px); display: grid; gap: 22px; justify-items: start; }
.circle__sub { color: var(--sage); font-size: var(--fs-18); }
.film--circle .film__scrim { background: linear-gradient(to top, var(--forest) 0%, rgba(31, 61, 46, 0) 34%); }

/* ---------- 3 · The short version ---------- */
.stats__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.stats .h-section { grid-column: 1 / span 4; }
.stats .pricelist { grid-column: 5 / -1; }
.stats .fine { grid-column: 5 / -1; }

/* ---------- 4 · Mission ---------- */
.mission { overflow-x: clip; z-index: 2; }
.mission__inner { position: relative; z-index: 1; }
.manifesto {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.25;
  max-width: 15.5em; color: var(--ink); font-variation-settings: "SOFT" 100; text-wrap: pretty;
}
.manifesto + .manifesto { margin-top: .9em; }
.manifesto__lead { color: var(--olive); }
.manifesto__lead span { display: block; }
.manifesto--soft { font-style: italic; color: var(--terracotta); font-variation-settings: "SOFT" 100, "WONK" 1; }
.mission__bowl {
  position: absolute; right: -12vw; top: 50%; width: min(48vw, 720px); aspect-ratio: 1;
  transform: translateY(-50%); color: var(--olive); opacity: .5;
}
.mission__bowl .art { font-size: .8px; }
.seam { position: absolute; z-index: 4; pointer-events: none; }
.seam--euc { bottom: 0; left: clamp(16px, 9vw, 160px); width: clamp(200px, 22vw, 320px); aspect-ratio: 240 / 90; transform: translateY(52%) rotate(-9deg); }
.art--filled { fill: var(--sage); color: var(--olive); font-size: 1.1px; }
.film--kitchen { z-index: 1; }

/* ---------- 6 · House rules (menu card) ---------- */
.rules { overflow-x: clip; }
.glow {
  position: absolute; left: 0; top: 50%; width: min(90vw, 1100px); aspect-ratio: 1; pointer-events: none;
  transform: translate(-12%, -50%);
  background: radial-gradient(circle, rgba(62, 107, 79, .55) 0%, rgba(62, 107, 79, 0) 62%);
}
.rules__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.menu-card {
  grid-column: 2 / span 6; position: relative; text-align: center;
  padding: clamp(52px, 5.5vw, 88px) clamp(28px, 4vw, 72px);
  background: var(--cream); color: var(--ink); border-radius: var(--r-paper);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.menu-card::before { inset: 10px; border-radius: 2px; }
.hl--card { --hl-size: clamp(40px, 4.2vw, 62px); }
.hl--card .hl__2 { padding-inline-start: 0; }
.menu-card .divider { margin-block: 28px 36px; }
.courses { display: grid; gap: 34px; }
.course dt { font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.25; color: var(--olive); }
.course dd { font-family: var(--font-display); font-size: 19px; line-height: 1.55; max-width: 40ch; margin: 10px auto 0; color: var(--ink); }
.rules__bowl {
  position: absolute; right: -16vw; top: 50%; width: min(52vw, 780px); aspect-ratio: 1;
  transform: translateY(-50%); color: var(--gold); opacity: .55;
}
.rules__bowl .art { font-size: .8px; }

/* ---------- 7 · Story ---------- */
.story__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: center; }
.story__portrait { grid-column: 1 / span 5; max-width: 500px; margin-top: 12px; }
.story__portrait img { aspect-ratio: 4 / 5; }
.story__copy { grid-column: 7 / span 6; }
.story__copy .hl { margin-bottom: clamp(28px, 3vw, 44px); }
.signature {
  margin-top: 20px; font-family: var(--font-brand); font-style: italic; font-weight: 300;
  font-size: clamp(52px, 5vw, 72px); line-height: 1; color: var(--gold);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ---------- 8 · Programs ---------- */
.programs__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.reset {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 4vw, 64px);
  background: var(--forest-night); border-radius: var(--r-paper) var(--r-photo) var(--r-paper) var(--r-paper);
  border: 1px solid rgba(217, 178, 111, .28);
}
.reset__bowl { position: absolute; top: -16%; right: -12%; width: 46%; aspect-ratio: 1; color: var(--gold); opacity: .45; z-index: -1; }
.reset__bowl .art { font-size: 1.5px; }
.reset__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.05; color: var(--cream); max-width: 60%; }
.reset__line { margin-top: 16px; max-width: 30em; color: var(--sage); }
.reset__next { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--fs-18); }
.reset__next .price { font-size: 34px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 44px; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 0; top: 24px; height: 1px; background: var(--gold); opacity: .55; }
.timeline__item { position: relative; display: grid; gap: 14px; align-content: start; }
.timeline__item--wide { grid-column: span 2; }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; position: relative; }
.timeline__item:not(.timeline__item--wide) .badges { grid-template-columns: 1fr; }
.badge {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest-night); border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-size: 21px; font-variant-numeric: lining-nums;
}
.timeline__item--wide .badges::after {
  content: ""; position: absolute; left: 24px; right: calc(50% - 36px); top: 56px; height: 10px;
  border: 1px solid rgba(217, 178, 111, .55); border-top: 0; border-radius: 0 0 6px 6px;
}
.timeline__item--wide .timeline__text { padding-top: 22px; }
.timeline__item:not(.timeline__item--wide) .timeline__text { padding-top: 22px; }
.timeline__text { font-size: 16px; line-height: 1.55; color: var(--cream); max-width: 34em; }
.included__title { margin-top: 44px; font-size: 15px; font-weight: 500; color: var(--sage); }
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 16px; }
.included li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; }
.icon-circle { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.reset__foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.reset__loyal { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--sage); font-variation-settings: "SOFT" 100, "WONK" 1; }

.programs__side { display: grid; gap: clamp(36px, 4vw, 56px); }
.coaching, .insta { display: grid; gap: 16px; justify-items: start; align-content: start; padding-top: 28px; border-top: 1px solid var(--gold); }
.insta { border-top-color: rgba(217, 178, 111, .35); }
.coaching p, .insta p { font-size: 17px; color: var(--fg); }
.insta p a { color: var(--gold); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 4px; }
.tile { display: block; text-decoration: none; }
.tile__img {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(62, 107, 79, .7), rgba(62, 107, 79, 0) 70%), var(--forest-night);
  border-radius: var(--r-paper) 24px var(--r-paper) var(--r-paper); color: var(--gold);
}
.tile__img .art { opacity: .75; font-size: 1.5px; }
.tile__label { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; }
.tile:hover .tile__label { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 9 · Results ---------- */
.results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.results__ctrl { display: flex; gap: 12px; flex: none; }
.results__row {
  --row-pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  margin-top: clamp(40px, 5vw, 64px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--row-pad); padding-inline: var(--row-pad);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.results__row::-webkit-scrollbar { display: none; }
.results__row:focus-visible { outline-offset: -2px; }
.results__list { display: flex; gap: 24px; width: max-content; padding-bottom: 8px; }
.result { flex: 0 0 clamp(260px, 25vw, 360px); scroll-snap-align: start; }
.result__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-paper) var(--r-photo) var(--r-paper) var(--r-paper);
  background: radial-gradient(circle at 50% 45%, rgba(62, 107, 79, .75), rgba(62, 107, 79, 0) 70%), var(--forest);
  color: var(--gold);
}
.result__photo .art { opacity: .7; font-size: .8px; }
.result__quote { margin-top: 20px; font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.3; color: var(--cream); font-variation-settings: "SOFT" 100; }
.result__who { margin-top: 10px; font-size: var(--fs-14); color: var(--sage); }
.results__fine { margin-top: 28px; }
.tier-cinematic .results__row { cursor: grab; }
.results__row.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.results__row.is-dragging * { pointer-events: none; }

/* ---------- 10 · Smoothies ---------- */
.recipes { overflow-x: clip; }
.seam--orange { top: 0; right: clamp(24px, 12vw, 200px); width: clamp(116px, 13vw, 190px); aspect-ratio: 1; transform: translateY(-52%) rotate(-14deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); }
.recipes__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; margin-top: clamp(44px, 5vw, 72px); align-items: center; }
.recipe-card {
  grid-column: 1 / span 5; position: relative; padding: clamp(32px, 3.4vw, 48px);
  background: var(--cream); color: var(--ink); border-radius: var(--r-paper);
  box-shadow: 0 30px 70px -30px rgba(40, 12, 4, .6);
}
.recipe-card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; color: var(--olive); margin-bottom: 18px; }
.recipe-card__list li { font-family: var(--font-display); font-size: 20px; line-height: 1.4; padding: 10px 0; border-bottom: 1px solid rgba(91, 107, 58, .25); }
.recipe-card__method { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--terracotta); font-variation-settings: "SOFT" 100, "WONK" 1; }
.recipes__form-wrap { grid-column: 7 / span 5; }
@media (min-width: 900px) { .recipe-card { transform: rotate(-1.5deg); } }
.recipes__form .btn { justify-self: start; }

/* ---------- 12 · Place card ---------- */
.join { overflow-x: clip; }
.join .glow { left: 50%; transform: translate(-50%, -50%); }
.place-card { position: relative; max-width: 720px; margin-inline: auto; perspective: 1800px; }
.place-card__inner { display: grid; transform-style: preserve-3d; transition: transform var(--t-turn) var(--ease-io); }
.place-card.is-done .place-card__inner { transform: rotateY(180deg); }
.place-card__front, .place-card__back {
  grid-area: 1 / 1; position: relative;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  padding: clamp(40px, 5vw, 64px) clamp(22px, 5vw, 64px);
  background: var(--cream); color: var(--ink); border-radius: var(--r-paper);
  box-shadow: 0 44px 100px -44px rgba(0, 0, 0, .75);
}
.place-card__front::before, .place-card__back::before { inset: 8px; border-radius: 2px; }
.place-card__front::after, .place-card__back::after { inset: 14px; border-radius: 1px; }
.place-card__back { transform: rotateY(180deg); display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; }
.place-card__front .divider { margin-bottom: 18px; }
.place-card__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; text-align: center; color: var(--olive); font-variation-settings: "SOFT" 100; text-wrap: balance; }
.place-card__title:focus { outline: none; }
.place-card__intro { margin: 14px auto 0; text-align: center; max-width: 30em; color: var(--ink-muted); font-size: 17px; }
.place-card__detox { margin: 18px auto 0; text-align: center; font-size: 16px; }
.join__form { margin-top: 32px; position: relative; z-index: 1; }
.ok-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--forest-night); }
.ok-mark .icon { width: 28px; height: 28px; stroke-width: 2; }
.place-card__ok { max-width: 14em; }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 7vw, 96px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: grid; gap: 22px; align-content: start; justify-items: start; }
.footer__h { font-family: var(--font-ui); font-size: var(--fs-14); font-weight: 500; color: var(--sage); margin-bottom: 14px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { font-size: 16px; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(167, 183, 154, .25);
}
.footer__base .link-btn { color: var(--cream); }
.footer__disclaimer { flex: 1 1 280px; }
.footer__top { margin-left: auto; }

/* ---------- Sticky phone bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 42, 32, .96); border-top: 1px solid rgba(217, 178, 111, .25);
  transform: translateY(110%); transition: transform 300ms var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__price { font-family: var(--font-display); font-weight: 400; margin-left: .25em; }

/* ---------- Privacy dialog ---------- */
.dialog {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: var(--r-paper); background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
}
.dialog::backdrop { background: rgba(15, 42, 32, .72); }
.dialog__body { max-height: calc(100svh - 48px); overflow-y: auto; padding: 56px clamp(22px, 5vw, 56px) 40px; }
.dialog__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 4vw, 44px); color: var(--olive); margin-bottom: 20px; }
.dialog__actions { margin-top: 32px; }
.dialog__x { position: absolute; top: 12px; right: 12px; background: var(--cream); }
.dialog[open] { animation: dialog-in 260ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }

/* Stills that arrive later (Phase 2) cover their line-art placeholder */
.still > picture, .still > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.still.has-img > .art { display: none; }
.mission__bowl.has-img, .rules__bowl.has-img, .reset__bowl.has-img { opacity: 1; }  /* the faint opacity was for the line-art placeholder */
/* Feather the square photo edges so each bowl melts into its section color instead of reading as a pasted tile */
.mission__bowl > picture, .rules__bowl > picture, .reset__bowl > picture {
  --feather: 10%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
                      linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
              linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  mask-composite: intersect;
}
.seam > picture, .seam > picture img { width: 100%; height: 100%; object-fit: contain; }
.seam.has-img > .art { display: none; }

/* Mode switch: open sign-up vs waitlist */
[data-when="waitlist"] { display: none; }
.is-waitlist [data-when="open"] { display: none; }
.is-waitlist [data-when="waitlist"] { display: revert; }
.is-waitlist .waitlist[data-when="waitlist"] { display: grid; }

/* =========================================================================
   4. Motion states (only when script.js runs with GSAP; see the 3s fallback in <head>)
   ========================================================================= */
.motion [data-opener] { visibility: hidden; }
.motion [data-opener-cta] { opacity: 0; }
.motion [data-leaders] .pl-row { --draw: 0; --val: 0; }
.motion [data-leaders].is-drawn .pl-row {
  --draw: 1; --val: 1;
  transition: --draw 1s var(--ease) calc(var(--i, 0) * 110ms), --val .45s var(--ease) calc(var(--i, 0) * 110ms + 650ms);
}

/* =========================================================================
   5. Tier rules
   ========================================================================= */
.tier-cinematic .grain { animation: grain 1s steps(8) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-4%, -6%); } 25% { transform: translate(-9%, 3%); }
  37% { transform: translate(5%, -9%); } 50% { transform: translate(-3%, 8%); } 62% { transform: translate(8%, 2%); }
  75% { transform: translate(2%, -4%); } 87% { transform: translate(-7%, -2%); } 100% { transform: translate(0, 0); }
}
.tier-touch .nav::before, .tier-lite .nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(31, 61, 46, .96); }

/* Cinematic chapters: set once JS has built the pinned scenes (html.is-cine) */
.is-cine .film--intro, .is-cine .film--kitchen, .is-cine .film--circle { height: 100vh; }
.is-cine .film--intro { padding: 24px; }
.is-cine .film--intro .film__frame { height: calc(100vh - 48px); }
.is-cine .film--kitchen .film__frame, .is-cine .film--circle .film__frame { height: 100vh; min-height: 0; }
.is-cine .scroll-cue { display: flex; }
.is-cine .film--kitchen .film__scrim {
  background: linear-gradient(to right, rgba(15, 42, 32, .94) 0%, rgba(15, 42, 32, .78) 26%, rgba(15, 42, 32, .3) 46%, rgba(15, 42, 32, 0) 62%),
              linear-gradient(to top, rgba(15, 42, 32, .5) 0%, rgba(15, 42, 32, 0) 30%);
}
.is-cine .film__photo img { transform-origin: 62% 40%; will-change: transform; }
.is-cine .captions { position: absolute; inset: 0; z-index: 2; padding: 0; max-width: none; pointer-events: none; }
.is-cine .caption {
  position: absolute; left: clamp(32px, 6vw, 112px); top: 40%; max-width: 13em;
  font-size: clamp(34px, 3.4vw, 56px); line-height: 1.18; opacity: 0;
}
.is-cine .caption--last { font-size: clamp(60px, 6.4vw, 104px); }
.is-cine .film--circle .film__scrim {
  background: linear-gradient(to top, rgba(15, 42, 32, .92) 0%, rgba(15, 42, 32, .5) 34%, rgba(15, 42, 32, 0) 60%);
}
.is-cine .circle__content { position: absolute; z-index: 2; left: clamp(32px, 6vw, 112px); right: clamp(32px, 6vw, 112px); bottom: 18vh; padding: 0; }
.is-cine .film--circle .hl--film { --hl-size: clamp(56px, 6.6vw, 108px); }
.is-cine .film--circle .art--film { transform: translate(14%, -16%) scale(.82); }
.is-cine .join { margin-top: -14vh; padding-top: 0; z-index: 3; background: linear-gradient(to bottom, rgba(31, 61, 46, 0) 0, var(--forest) 14vh); }
.is-cine .join .glow { display: none; }
.is-cine .art--film [data-draw-item] { stroke-dasharray: 1 2; }

/* =========================================================================
   6. Breakpoints  (>=1200 desktop · 768–1199 tablet · <768 phone)
   ========================================================================= */
@media (max-width: 1199px) {
  :root { --nav-h: 68px; }
  .nav__inner { display: flex; justify-content: space-between; }
  .nav__left, .nav__link--recipes, .nav .lang-toggle { display: none; }
  .lang-mini, .menu-btn { display: inline-grid; }
  .nav__right { gap: 8px; }
  .nav__cta { margin-right: 6px; }
  .brand__word { font-size: 19px; }
  .monogram { width: 36px; height: 36px; font-size: 17px; }

  .stats .h-section { grid-column: 1 / -1; }
  .stats .pricelist, .stats .fine { grid-column: 1 / -1; }
  .detox__facts { grid-column: 1 / span 7; }
  .detox__who { grid-column: 8 / span 5; }
  .menu-card { grid-column: 1 / span 8; }
  .programs__grid { grid-template-columns: 1fr; }
  .programs__side { grid-template-columns: 1fr 1fr; gap: 40px; }
  .recipe-card { grid-column: 1 / span 6; }
  .recipes__form-wrap { grid-column: 7 / span 6; }
}

@media (max-width: 1023px) and (orientation: portrait) {
  .detox__first { min-height: 0; padding-block: clamp(32px, 6vh, 64px) 0; }
  .detox__portrait { width: min(100%, 420px); }
}

@media (max-width: 1023px) {
  .story__portrait { grid-column: 1 / span 5; }
  .story__copy { grid-column: 6 / span 7; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .menu-card { grid-column: 1 / -1; }
  .rules__bowl { position: relative; right: auto; top: auto; transform: none; width: 92vw; margin: 0 -28vw calc(-1 * clamp(80px, 18vw, 140px)) auto; display: block; }
  .rules { display: flex; flex-direction: column; }
  .rules__bowl { order: -1; align-self: flex-end; }
  .recipes__grid { grid-template-columns: 1fr; }
  .recipe-card, .recipes__form-wrap { grid-column: 1; }
  .recipe-card { max-width: 520px; }
  .detox__lists { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; --section-y: clamp(72px, 18vw, 104px); }
  body { font-size: 17px; }
  .nav__cta { display: none; }
  .brand { gap: 10px; }
  .brand__word { font-size: 18px; }

  /* Detox: headline and button first, inside thumb reach; portrait below */
  .detox { padding-top: calc(var(--nav-h) + 20px); }
  .detox__first { display: block; min-height: 0; padding-bottom: 0; }
  .detox__copy { padding-block: 0; }
  .detox__copy .label { margin-bottom: 18px; font-size: 15px; }
  .hl--opener { --hl-size: 15vw; margin-bottom: 20px; }
  .hl--opener .hl__2 { padding-inline-start: .6em; }
  .detox__copy .lede { margin-bottom: 24px; font-size: 17px; }
  .detox__cta { gap: 16px; }
  .detox__cta .btn { flex: 1 1 auto; }
  .detox__cta .price { font-size: 30px; }
  .detox__portrait { width: calc(100% - 12px); max-width: none; margin: 48px 0 0; justify-self: start; }
  .detox__portrait img { aspect-ratio: 4 / 5; }
  .detox__more { display: grid; grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .detox__facts, .detox__who, .detox__lists, .detox__close { grid-column: 1; }
  .detox__close .btn { width: 100%; }
  .pl-row dt { font-size: 15.5px; }
  .pl-row dt::after { flex-basis: 20px; margin-inline: 10px; }
  .pl-row dd { font-size: 20px; }
  .pricelist--lg dt { font-size: 15.5px; }
  .pricelist--lg dd { font-size: 22px; }
  .pricelist--lg .pl-row { padding-block: 14px; }

  .hl { --hl-size: clamp(42px, 12vw, 56px); }
  .hl--film { --hl-size: 12vw; }
  .hl--opener-sm { --hl-size: 12vw; }
  .hl__2 { padding-inline-start: .6em; }

  .intro__content { left: 20px; right: 20px; bottom: 24px; }
  .intro__sub { font-size: 16px; }
  .intro__content .btn-row .btn { flex: 1 1 100%; }
  .film--intro .film__frame { border-radius: 22px; }

  .mission__bowl { position: relative; right: auto; top: auto; transform: none; width: 96vw; margin: calc(-1 * var(--section-y) + 24px) -34vw 24px auto; display: block; }
  .seam--euc { width: 210px; left: 12px; }
  .manifesto { font-size: clamp(27px, 7.4vw, 34px); }

  .story__inner { grid-template-columns: 1fr; }
  .story__portrait, .story__copy { grid-column: 1; }
  .story__portrait { width: calc(100% - 12px); max-width: none; }

  .programs__side { grid-template-columns: 1fr; }
  .reset { padding: 28px 22px 32px; }
  .reset__title { max-width: 70%; }
  .reset__bowl { width: 62%; top: -10%; right: -22%; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { left: 24px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; }
  .timeline__item--wide { grid-column: auto; }
  .timeline__item { grid-template-columns: auto 1fr; column-gap: 18px; }
  .timeline__item .badges { grid-template-columns: 1fr; row-gap: 10px; }
  .timeline__item--wide .badges::after { display: none; }
  .timeline__item .timeline__text { padding-top: 12px !important; }
  .included { grid-template-columns: 1fr; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles li { flex: 0 0 44%; scroll-snap-align: start; }

  .results__ctrl { display: none; }
  .result { flex-basis: 76vw; }

  .seam--orange { right: 16px; width: 112px; }
  .recipe-card__list li { font-size: 18px; }

  .form__grid, .form__grid--3, .radio-cards { grid-template-columns: 1fr; gap: 18px; }
  .field input[type="text"], .field input[type="email"] { font-size: 16px; }
  .form .btn, .waitlist__form .btn, .recipes__form .btn { width: 100%; justify-self: stretch; }
  .place-card__front, .place-card__back { padding: 40px 22px; }

  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .sticky-cta { display: block; }
}

@media (min-width: 768px) {
  .tier-touch .film--intro { padding: 16px; }
}

/* =========================================================================
   7. Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .grain { display: none; }
}
