/* ==========================================================================
   The Hospitality Club — site styles
   Brand rules: docs/bible/02-brand.md and brand/Hospitality-Club-Brand-Guidelines.pdf
   - Black, white and ONE warm amber accent (#F2A54E), used thinly: rings,
     hairlines, small labels. Never as a button fill or a large area.
   - The logo has black lettering: only place it on white/light surfaces.
   - Display: Gilda Display. Body: Avenir Next (Nunito Sans web fallback).
   ========================================================================== */

@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gilda-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin-wght-italic.woff2') format('woff2');
}

:root {
  /* Colour — from the brand guidelines */
  --black: #000000;
  --ink: #0b0b0b;          /* large dark areas */
  --white: #ffffff;
  --paper: #f5f5f4;        /* quiet light section (neutral, not cream) */
  --line: #e4e4e2;         /* hairlines on light */
  --line-dark: #2b2b2b;    /* hairlines on dark */
  --muted: #5f5f5f;        /* secondary text on light (6.4:1) */
  --muted-dark: #a8a8a8;   /* secondary text on dark (8.6:1) */
  --amber: #f2a54e;        /* THE accent — thin use only */
  --danger: #b42318;

  /* Type */
  --font-display: 'Gilda Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-body: 'Avenir Next', 'Avenir', 'Nunito Sans', Arial, sans-serif;

  /* Layout */
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--amber); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--black); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.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;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--black); color: var(--white); padding: 0.75rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section + .section:not(.section--dark):not(.section--paper) { border-top: 1px solid var(--line); }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.stack > * + * { margin-top: 1.25rem; }
.grid--tight { gap: 2rem; }
.mt-1 { margin-top: 0.75rem; } .mt-2 { margin-top: 1.25rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0 !important; }
blockquote { margin: 0; }

/* ---------- Type scale ---------- */
.display-xl { font-size: clamp(2.75rem, 6.4vw, 5.5rem); line-height: 1.03; }
.display-l  { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.display-m  { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.display-s  { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.section--dark .lede { color: var(--muted-dark); }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--muted-dark); }
.small { font-size: 0.9rem; }

/* Eyebrow: small tracked capitals led by a short amber rule (as in the brand guidelines) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font: 700 0.72rem/1.2 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--amber); flex: none; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--amber); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head > * + * { margin-top: 1.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: end; }
.section-head--split > * + * { margin-top: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.95rem 1.75rem;
  border: 1px solid var(--black); border-radius: var(--radius);
  background: var(--black); color: var(--white);
  font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.button:hover { background: var(--white); color: var(--black); box-shadow: inset 0 -2px 0 var(--amber); }
.button[disabled] { opacity: 0.55; cursor: progress; }
.button--ghost { background: transparent; color: var(--black); }
.button--ghost:hover { background: var(--black); color: var(--white); }
.section--dark .button, .hero .button { background: var(--white); color: var(--black); border-color: var(--white); }
.section--dark .button:hover, .hero .button:hover { background: transparent; color: var(--white); }

/* Secondary action: text link with an amber underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.6rem; border-bottom: 1px solid var(--amber);
}
.link-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

/* ---------- Ring motif (echoes the open ring of the logo) ---------- */
.ring { color: var(--amber); fill: none; stroke: currentColor; stroke-linecap: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.75rem; transition: min-height 0.3s var(--ease); }
.is-scrolled .site-header__inner { min-height: 4.5rem; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: clamp(12.5rem, 19vw, 16.5rem); transition: width 0.3s var(--ease); }
.is-scrolled .brand img { width: clamp(11.5rem, 14vw, 13rem); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__links { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); list-style: none; }
.nav__links a {
  font: 700 0.74rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.5rem; border-bottom: 1px solid transparent;
}
.nav__links a:hover, .nav__links a[aria-current='page'] { border-bottom-color: var(--amber); }
.nav .button { min-height: 2.85rem; padding: 0.8rem 1.3rem; }
.nav-toggle { display: none; }
@media (max-width: 68rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.65rem; background: none; border: 0; padding: 0.75rem 0;
    font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--black); cursor: pointer;
  }
  .nav-toggle__bars { width: 1.4rem; height: 0.7rem; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars::after { top: calc(100% - 1.5px); }
  .nav-open .nav-toggle__bars::before { top: 50%; transform: rotate(45deg); }
  .nav-open .nav-toggle__bars::after { top: 50%; transform: rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line); padding: 0.5rem var(--gutter) 2rem;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-0.5rem); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; font: 400 1.5rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current='page'] { border-bottom-color: var(--amber); }
  .nav .button { margin-top: 1.5rem; min-height: 3.25rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white);
  padding-block: clamp(5rem, 12vh, 8.5rem) clamp(4rem, 10vh, 7rem);
  min-height: min(54rem, calc(100svh - 5.75rem));
  display: grid; align-items: center;
}
/* Photo slot: when the photograph exists, save it as /assets/img/hero.webp and add class="hero hero--photo".
   (Inline style attributes are blocked by the Content Security Policy, so photos are set here.) */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: none center / cover no-repeat; opacity: 0.55; }
.hero--photo::before { background-image: url('/assets/img/hero.webp'); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 11, 0.95) 0%, rgba(11, 11, 11, 0.72) 55%, rgba(11, 11, 11, 0.3) 100%); }
.hero__ring { position: absolute; z-index: 0; width: min(60rem, 92vw); right: max(-27rem, -34vw); top: 50%; transform: translateY(-50%); stroke-width: 0.35; pointer-events: none; }
.hero__content { position: relative; z-index: 1; max-width: 50rem; }
@media (max-width: 52rem) { .hero__ring { width: 30rem; right: -19rem; top: auto; bottom: -12rem; transform: none; opacity: 0.7; } }
.hero h1 { margin-top: 1.75rem; }
.hero__sub { margin-top: 1.75rem; max-width: 37rem; font-size: clamp(1.125rem, 1.7vw, 1.35rem); line-height: 1.55; color: #d4d4d4; }
.hero .actions { margin-top: 2.75rem; }
.hero .link-arrow { color: var(--white); }
.hero__note {
  margin-top: 2.75rem; display: flex; align-items: center; gap: 1rem;
  font: 700 0.75rem/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark);
}
.hero__note::before { content: ''; width: 2.5rem; height: 1px; background: var(--amber); flex: none; }

/* Inner-page hero (light) */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 1.5rem; max-width: 20ch; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .actions { margin-top: 2.25rem; }
.page-hero__ring { position: absolute; width: 36rem; right: -13rem; top: -7rem; stroke-width: 0.3; pointer-events: none; }
@media (max-width: 52rem) { .page-hero__ring { width: 22rem; right: -10rem; top: -6rem; } }

/* ---------- Proof strip ---------- */
.strip { display: grid; gap: 2rem clamp(2rem, 5vw, 4.5rem); grid-template-columns: auto 1fr; align-items: center; }
.strip__show { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; }
.strip__show img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 50%; outline: 1px solid var(--amber); outline-offset: 5px; }
.strip__label { display: block; font: 700 0.7rem/1.3 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.strip__name { display: block; font: 400 1.65rem/1.15 var(--font-display); margin-top: 0.35rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.stats li { padding: 0.25rem clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--amber); }
.stats strong { display: block; font: 400 clamp(2.75rem, 5vw, 4rem)/1 var(--font-display); }
.stats span { display: block; margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 52rem) {
  .strip { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats li { display: flex; align-items: baseline; gap: 1rem; }
  .stats span { margin-top: 0; }
}

/* ---------- Realities list (Why a club) ---------- */
.realities { list-style: none; counter-reset: r; border-top: 1px solid var(--line); }
.realities li {
  counter-increment: r; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: baseline;
  padding-block: 1.4rem; border-bottom: 1px solid var(--line);
  font: 400 clamp(1.35rem, 2.4vw, 2rem)/1.25 var(--font-display);
}
.realities li::before { content: counter(r, decimal-leading-zero); font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.16em; color: var(--muted); }
.statement { margin-top: clamp(3.5rem, 7vw, 5.5rem); text-align: center; font: 400 clamp(1.9rem, 4.2vw, 3.4rem)/1.15 var(--font-display); }
.statement span { display: block; }
.statement .ring { width: 3.5rem; margin: 0 auto 1.5rem; stroke-width: 2.5; }

/* ---------- Benefits (What changes) ---------- */
.benefit { padding-top: 1.75rem; border-top: 1px solid var(--line-dark); }
.benefit__num { font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.2em; color: var(--amber); }
.benefit h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-top: 1.25rem; }
.benefit p { margin-top: 1rem; color: var(--muted-dark); font-size: 1.05rem; }

/* ---------- Rituals ---------- */
.rituals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ritual { padding: clamp(1.5rem, 2.5vw, 2.25rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 15rem; display: flex; flex-direction: column; gap: 0.9rem; background: var(--white); transition: background-color 0.3s var(--ease); }
.ritual:hover { background: var(--paper); }
.ritual__rhythm { font: 700 0.68rem/1.3 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.ritual__rhythm::before { content: ''; width: 0.55rem; height: 0.55rem; border: 1px solid var(--amber); border-radius: 50%; flex: none; }
.ritual h3 { font-size: 1.85rem; }
.ritual p { color: var(--muted); font-size: 0.98rem; margin-top: auto; }
.ritual--cta { background: var(--ink); color: var(--white); }
.ritual--cta:hover { background: #1a1a1a; }
.ritual--cta .ritual__rhythm { color: var(--amber); }
.ritual--cta .link-arrow { color: var(--white); }

/* ---------- Pillars (the course) ---------- */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); column-gap: 2.5rem; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.75rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.pillar__num { font: 400 1.75rem/1 var(--font-display); position: relative; }
.pillar__num::after { content: ''; position: absolute; left: 0; top: 2.2rem; width: 1.5rem; height: 1px; background: var(--amber); }
.pillar h3 { font-size: 1.4rem; line-height: 1.2; }
.pillar p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.pillar__who { display: block; margin-top: 0.7rem; font: 700 0.66rem/1.3 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pillar--tbc h3 { color: var(--muted); }

/* ---------- Worked examples ---------- */
.example { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; background: var(--white); }
.example__tag { font: 700 0.66rem/1.3 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.example h3 { font-size: 1.6rem; line-height: 1.2; }
.example p { color: var(--muted); font-size: 0.98rem; }
.sum { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--amber); font-variant-numeric: tabular-nums; }
.sum__line { font-size: 0.98rem; }
.sum__total { display: block; margin-top: 0.5rem; font: 400 2.1rem/1.1 var(--font-display); }
.sum__total--soft { font-size: 1.1rem; font-family: var(--font-body); color: var(--muted); }
.earnings-note { margin-top: 2rem; font-size: 0.85rem; color: var(--muted); max-width: 46rem; }

/* ---------- Founders ---------- */
.founder { display: grid; gap: 1.5rem; align-content: start; }
.founder__photo { aspect-ratio: 4 / 3; }
.founder h3 { font-size: clamp(2rem, 3vw, 2.5rem); }
.founder__role { font: 700 0.7rem/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-top: 0.75rem; }
.founder ul { list-style: none; margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.founder li { padding-left: 1.5rem; position: relative; color: var(--muted-dark); }
.founder li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 0.75rem; height: 1px; background: var(--amber); }
.section:not(.section--dark) .founder li { color: var(--muted); }
.section:not(.section--dark) .founder__role { color: var(--muted); }
.founder .link-arrow { margin-top: 1.5rem; }

/* Photo / video placeholders — replaced by real photography (no stock) */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden; width: 100%;
  background: linear-gradient(160deg, #1c1c1c, #0e0e0e); color: var(--muted-dark); border: 1px solid var(--line-dark);
}
.ph > svg.ring { width: 36%; stroke-width: 0.6; }
.ph__label { position: absolute; left: 1rem; bottom: 0.9rem; right: 1rem; font: 700 0.66rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.section:not(.section--dark) .ph { background: linear-gradient(160deg, #f0f0ef, #e2e2e0); color: var(--muted); border-color: var(--line); }
.ph--video::after {
  content: ''; position: absolute; width: 4.25rem; height: 4.25rem; border: 1px solid currentColor; border-radius: 50%;
  background: no-repeat 55% center / 1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23f2a54e'/%3E%3C/svg%3E");
}
.ph--video > svg.ring { opacity: 0.35; }
.photo { width: 100%; height: 100%; object-fit: cover; }

/* ---------- The door ---------- */
.door-list { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.door-list li { position: relative; padding-left: 2rem; }
.door-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.door-list--yes li::before { content: '✓'; }
.door-list--no li::before { content: '—'; color: var(--muted); }
.door-list--no li { color: var(--muted); }
.steps { list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 400 2.25rem/1 var(--font-display); }
.steps h3 { font-size: 1.4rem; line-height: 1.2; }
.steps p { margin-top: 0.35rem; color: var(--muted); }
.section--dark .steps, .section--dark .steps li { border-color: var(--line-dark); }
.section--dark .steps p { color: var(--muted-dark); }
.privacy-line { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--amber); font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--font-display); max-width: 38rem; }

/* ---------- Layers (guest / member / private) ---------- */
.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); border: 1px solid var(--line); }
.layer { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; }
.layer + .layer { border-left: 1px solid var(--line); }
.layer--member { background: var(--ink); color: var(--white); }
.layer h3 { font-size: 2.1rem; }
.layer__who { font: 700 0.68rem/1.3 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.layer--member .layer__who { color: var(--amber); }
.layer ul { list-style: none; display: grid; gap: 0.55rem; }
.layer li { padding-left: 1.25rem; position: relative; }
.layer li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 1px; background: var(--amber); }
.layer--member li { color: #dcdcdc; }
.layer__how { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.layer--member .layer__how { border-color: var(--line-dark); color: var(--muted-dark); }
@media (max-width: 62rem) { .layer + .layer { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Ritual table (membership page) ---------- */
.ritual-table { width: 100%; border-collapse: collapse; }
.ritual-table th, .ritual-table td { text-align: left; vertical-align: top; padding: 1.35rem 1.25rem 1.35rem 0; border-bottom: 1px solid var(--line); }
.ritual-table tbody th { font: 400 1.55rem/1.2 var(--font-display); width: 24%; }
.ritual-table td:last-child { width: 24%; font: 700 0.7rem/1.6 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ritual-table thead th { font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--black); }
@media (max-width: 44rem) {
  .ritual-table thead { display: none; }
  .ritual-table tr { display: block; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
  .ritual-table th, .ritual-table td { display: block; width: auto !important; border: 0; padding: 0.2rem 0; }
}

/* ---------- Lessons (course page) ---------- */
.lesson { display: grid; gap: 1rem; align-content: start; }
.lesson .ph { aspect-ratio: 16 / 9; }
.lesson__num { font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.lesson h3 { font-size: 1.5rem; line-height: 1.2; }
.lesson p { color: var(--muted); }

/* ---------- Episodes (stories page) ---------- */
.episodes { list-style: none; border-top: 1px solid var(--line); }
.episode a { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1.5rem; align-items: baseline; padding-block: 1.6rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left 0.3s var(--ease); }
.episode a:hover { padding-left: 0.75rem; }
.episode a:hover h3 { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.episode time { font: 700 0.7rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.episode h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
.episode__go { font: 700 0.7rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 44rem) { .episode a { grid-template-columns: 1fr; gap: 0.5rem; } .episode__go { display: none; } }
.listen { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding-block: 1.5rem; font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.25 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 1.9rem/1 var(--font-body); transition: transform 0.3s var(--ease); flex: none; color: var(--black); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #333; }
.faq details > div { padding: 0 0 1.75rem; max-width: 44rem; color: var(--muted); }
.faq details > div p + p { margin-top: 0.9rem; }

/* ---------- Quotes (built, hidden until the first real testimonial) ---------- */
.quote { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.3 var(--font-display); }
.quote footer { margin-top: 1.25rem; font: 600 0.85rem/1.4 var(--font-body); letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Closing call to action ---------- */
.cta-band { text-align: center; }
.cta-band .ring { width: 4.5rem; margin: 0 auto 2rem; stroke-width: 1.6; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 1.5rem auto 0; max-width: 34rem; }
.cta-band .actions { justify-content: center; margin-top: 2.5rem; }
.cta-band .link-arrow { color: var(--white); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 0.7rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.field .optional { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
.field__hint { font-size: 0.88rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 0.95rem;
  border: 1px solid #c9c9c7; border-radius: var(--radius); background: var(--white); color: var(--black);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background: var(--white) no-repeat right 1rem center / 0.75rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8f8f8d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black), 0 4px 0 -1px var(--amber); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field__error { font-size: 0.88rem; color: var(--danger); }
.field__error:empty { display: none; }
.form__footer { grid-column: 1 / -1; display: grid; gap: 1rem; justify-items: start; margin-top: 0.5rem; }
.form__fine { font-size: 0.85rem; color: var(--muted); max-width: 40rem; }
.form__status { font-size: 0.98rem; }
.form__status[data-state='error'] { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; }
.form-success .ring { width: 3.5rem; stroke-width: 2.5; }
.form-success h3 { font-size: clamp(2rem, 4vw, 2.75rem); }
.form-success p { color: var(--muted); max-width: 34rem; }
.form-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3.25rem); }
.form-panel--top-rule { border-top: 2px solid var(--black); }
@media (max-width: 40rem) { .form { grid-template-columns: 1fr; } .form__footer .button { width: 100%; } }

/* ---------- Scorecard ---------- */
.scorecard { counter-reset: q; border-top: 1px solid var(--line); }
.q { counter-increment: q; border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 1.75rem 0; min-width: 0; }
.q__head { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; }
.q__num { font: 400 1.4rem/1.3 var(--font-display); }
.q__num::before { content: counter(q, decimal-leading-zero); }
.q__pillar { font: 700 0.66rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.q__text { font: 400 1.35rem/1.3 var(--font-display); padding: 0; }
.q__options { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0 0 4rem; }
.q__options label { position: relative; }
.q__options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.q__options span { display: inline-block; padding: 0.6rem 1rem; border: 1px solid #c9c9c7; border-radius: 999px; font-size: 0.92rem; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.q__options input:hover + span { border-color: var(--black); }
.q__options input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.q__options input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 40rem) { .q__options { margin-left: 0; } }
.progress { position: sticky; top: 4.5rem; z-index: 5; background: rgba(255,255,255,0.97); padding-block: 0.9rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; font: 700 0.7rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.progress__bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.progress__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--amber); transition: width 0.4s var(--ease); }
.score-result { display: grid; gap: 1.25rem; }
.score-result__score { font: 400 clamp(4rem, 10vw, 7rem)/1 var(--font-display); }
.score-result__score small { font-size: 0.32em; color: var(--muted); }
.score-areas { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.score-areas li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.score-areas strong { font: 400 1.25rem/1.2 var(--font-display); }
.score-areas span { font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; background: var(--white); }
.site-footer__top { display: grid; grid-template-columns: minmax(12rem, 15rem) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.site-footer__logo { width: 11.25rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem; }
.footer-cols h2 { font: 700 0.68rem/1.3 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-cols ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.site-footer__notes { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.site-footer__notes p { max-width: 62rem; }
@media (max-width: 44rem) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- Simple pages (privacy, thank you, 404) ---------- */
.page-simple { width: min(100% - 2 * var(--gutter), 46rem); margin: 0 auto; padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-simple h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-top: 1.25rem; }
.page-simple h2 { font-size: 1.75rem; margin-top: 2.75rem; }
.page-simple p, .page-simple li { color: var(--muted); margin-top: 1rem; }
.page-simple ul { padding-left: 1.25rem; }
.page-simple--center { text-align: center; min-height: 55vh; display: grid; align-content: center; justify-items: center; }
.page-simple--center .eyebrow { justify-content: center; }
.page-simple--center .actions { justify-content: center; margin-top: 2.5rem; }
.page-simple .ring { width: 4rem; margin: 0 auto 1rem; stroke-width: 2; }

/* ---------- Staging-only notes ---------- */
/* Content placeholders: <p class="todo">…</p>. Visible on staging only: the Worker
   adds data-env="staging" to <html> there. Production never shows them. */
.todo { display: none !important; }
[data-env='staging'] .todo, [data-env='preview'] .todo {
  display: block !important; margin-top: 1rem; padding: 0.6rem 0.8rem; border: 1px dashed #e8572a; color: #a8340d; background: #fff5f0;
  font: 600 0.78rem/1.45 var(--font-body); letter-spacing: 0.01em; text-transform: none; text-align: left;
}
[data-env='staging'] .section--dark .todo, [data-env='staging'] .hero .todo, [data-env='staging'] .layer--member .todo { background: #2a1710; color: #ffb79c; }
.env-ribbon {
  position: fixed; right: 0.75rem; bottom: 0.75rem; z-index: 1000; pointer-events: none;
  padding: 0.4rem 0.75rem; border-radius: 999px; background: #e8572a; color: #fff;
  font: 700 0.62rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Motion (progressive: only when JS is running and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-visible > :nth-child(2) { transition-delay: 0.07s; }
  .js .reveal-stagger.is-visible > :nth-child(3) { transition-delay: 0.14s; }
  .js .reveal-stagger.is-visible > :nth-child(4) { transition-delay: 0.21s; }
  .js .reveal-stagger.is-visible > :nth-child(5) { transition-delay: 0.28s; }
  .js .reveal-stagger.is-visible > :nth-child(6) { transition-delay: 0.35s; }
  .js .reveal-stagger.is-visible > :nth-child(n+7) { transition-delay: 0.42s; }
  .hero__ring path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 2.4s 0.25s var(--ease) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

@media print {
  .site-header, .site-footer, .env-ribbon, .todo, .nav-toggle { display: none !important; }
  .section--dark, .hero { background: none; color: #000; }
}

/* ---------- Page-specific components ---------- */
.benefit--light { border-top-color: var(--black); }
.apply-grid { align-items: start; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 62rem) { .apply-grid { grid-template-columns: 1fr; } }
.apply-aside { position: sticky; top: 7rem; }
@media (max-width: 62rem) { .apply-aside { position: static; } }
.lesson-video { aspect-ratio: 16 / 9; }

/* Member card (membership page) */
.member-card {
  aspect-ratio: 1.586; max-width: 30rem; width: 100%; justify-self: center; align-self: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 1px 0 var(--amber) inset;
  padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column;
  transform: rotate(-2deg); transition: transform 0.6s var(--ease);
}
.member-card:hover { transform: rotate(0deg) translateY(-4px); }
.member-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.member-card__top span { font: 700 0.66rem/1.3 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; padding: 0.4rem 0.6rem; border: 1px solid var(--amber); }
.member-card__top img { width: 3.75rem; height: 3.75rem; }
.member-card__title { margin-top: auto; font: 400 clamp(2rem, 4vw, 2.75rem)/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.member-card__meta { margin-top: 0.6rem; font: 700 0.68rem/1.3 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Minimal header (coming-soon, privacy): logo + one button */
.site-header__inner > .button { min-height: 2.75rem; padding: 0.75rem 1.1rem; }
@media (max-width: 30rem) { .site-header__inner > .button { font-size: 0.66rem; letter-spacing: 0.1em; padding: 0.7rem 0.8rem; } .brand img { width: 10.5rem; } }
