/* ============================================================
   Longevity Health — DRAFT redesign
   Restrained, cinematic, private-wealth. Not DTC.
   ============================================================ */

:root {
  --ink: #0d0e0c;            /* warm near-black */
  --ink-2: #141613;          /* raised surface */
  --ink-3: #1c1f1b;          /* card surface */
  --line: rgba(232, 226, 211, 0.10);
  --paper: #ece7da;          /* off-white text */
  --paper-dim: #a8a395;      /* secondary text */
  --gold: #b3995f;           /* muted gold */
  --gold-soft: #cdb98a;
  --serif: "Iowan Old Style", "Palatino", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity; /* one scroll settles on the next section; long sections still scroll freely */
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: rgba(179, 153, 95, 0.35); }

/* ---------- type ---------- */
h1, h2, h3, .statement { font-family: var(--serif); font-weight: 400; letter-spacing: 0.005em; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--paper);
}

.section-lede {
  max-width: 620px;
  color: var(--paper-dim);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-bottom: 48px;
}

/* ---------- layout ---------- */
.section { padding: clamp(90px, 12vh, 150px) 0; position: relative; }
.hero, .section { scroll-snap-align: start; scroll-margin-top: 70px; }
.hero { scroll-margin-top: 0; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-inner.narrow { max-width: 880px; }
.section-inner.center { text-align: center; }
.section-inner.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.btn .arrow { transition: transform .35s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: #14130e;
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 14, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}
.nav-logo-word { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); margin-left: 12px; font-family: var(--sans); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color .3s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta { padding: 10px 20px; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-burger span { display: block; height: 1px; background: var(--paper); transition: transform .3s ease; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px var(--pad) 28px;
  background: rgba(13, 14, 12, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  padding: 12px 0;
  text-decoration: none;
  color: var(--paper);
  font-size: 16px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
.nav-mobile.open { display: flex; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px var(--pad) 80px;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  transition: opacity 1.4s ease;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 14, 12, 0.55), rgba(13, 14, 12, 0.35) 45%, rgba(13, 14, 12, 0.8) 100%);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero.has-video .hero-video.on { opacity: 1; }
.hero.has-video .hero-shade { opacity: 1; }
.hero.has-video #heroCanvas { opacity: 0; } /* film takes over; no blend-mode (perf) */
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--paper-dim);
  font-size: clamp(16px, 1.8vw, 19px);
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-limit {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-scrollhint {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scrollhint span {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollhint 2.6s ease-in-out infinite;
}
@keyframes scrollhint {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- members ---------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 64px;
}
.member-card {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center top;
  transition: transform .4s ease;
}
.member-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(13, 14, 12, 0.82) 100%);
}
.member-card:hover { transform: translateY(-3px); }
.member-status {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.25;
  color: var(--paper);
}
.member-sub {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.spouses-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-2), rgba(179, 153, 95, 0.05));
  border-radius: 2px;
  padding: clamp(28px, 4.5vw, 56px);
  align-items: center;
}
.spouses-copy h3 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 16px; }
.spouses-copy p { color: var(--paper-dim); }
.spouses-quote {
  border-left: 1px solid var(--gold);
  padding-left: clamp(20px, 2.5vw, 36px);
}
.spouses-quote p {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin-bottom: 16px;
}
.spouses-quote footer {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- executive physical ---------- */
.physical { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.physical-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 28px;
  background: var(--ink);
}
.phys-step {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
}
.phys-step:last-child { border-right: 0; }
.phys-num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 18px;
}
.phys-step h3 { font-size: 21px; margin-bottom: 12px; }
.phys-step p { font-size: 15px; color: var(--paper-dim); }

/* ---------- placeholders ---------- */
.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(179, 153, 95, 0.4);
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(232, 226, 211, 0.02) 12px 24px);
  color: var(--paper-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  min-height: 120px;
  padding: 16px;
}
.physical-media { min-height: clamp(220px, 38vw, 420px); }

/* ---------- what we do ---------- */
.statement {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.3;
}
.statement-dim { color: var(--paper-dim); }

/* ---------- pillars ---------- */
.pillar-num { font-family: var(--serif); color: var(--gold); font-size: 28px; display: block; line-height: 1; }
.pillar-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 10px 0 12px;
}
.pillar-head-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 12px; }
.pillar-lede { color: var(--paper-dim); max-width: 560px; margin-bottom: 28px; font-size: 16px; }

.p1 { margin: clamp(40px, 6vh, 64px) 0 clamp(56px, 8vh, 96px); }
.dx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dx-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 8px;
  padding: 16px;
  transition: border-color .4s ease;
}
.dx-card:hover { border-color: rgba(179, 153, 95, 0.4); }
.dx-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: #10160f;
  margin-top: 2px;
}
.dx-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-glyph { position: relative; border: 1px solid rgba(179, 153, 95, 0.4); }
.dx-glyph::before, .dx-glyph::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%; left: 50%;
}
.dx-glyph::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.dx-glyph::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.dx-extra { display: none; }
.dx-grid.expanded .dx-extra { display: flex; }
.dx-more-btn { padding: 10px 22px; font-size: 12px; }
.dx-name { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--paper); line-height: 1.25; }
.dx-desc { display: block; font-size: 13px; color: var(--paper-dim); line-height: 1.5; margin-top: 3px; }
.diag-more { margin-top: 16px; color: var(--gold); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

.p23 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vh, 64px);
}
.pgraphic { margin-top: 24px; max-width: 440px; }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.team-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 2px;
  padding: 20px;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 20px;
  min-height: 0;
  border-radius: 2px;
  background: #000;
}
.team-card h3 { font-size: 22px; margin-bottom: 4px; }
.team-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.team-card > p:last-child { font-size: 14px; color: var(--paper-dim); }

/* ---------- back office strip ---------- */
.backoffice {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: clamp(28px, 4vw, 64px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-2), rgba(179, 153, 95, 0.05));
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  align-items: center;
}
.backoffice-copy h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.backoffice-copy p { color: var(--paper-dim); font-size: 15px; }
.backoffice-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.backoffice-list li {
  font-size: 14px;
  color: var(--paper);
  padding-left: 18px;
  position: relative;
}
.backoffice-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: var(--gold);
}
@media (max-width: 820px) {
  .backoffice { grid-template-columns: 1fr; }
  .backoffice-list { grid-template-columns: 1fr; }
}

/* ---------- dr. vass ---------- */
.drvass { border-top: 1px solid var(--line); }
.vass-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.vass-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #000;
}
.vass-bjj { margin-top: 16px; }
.vass-bjj img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: block;
}
.vass-bjj figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.vass-bjj.missing img, .vass-bjj.missing figcaption { display: none; }
.vass-bjj.missing::before {
  content: "PLACEHOLDER — save the podium photo as assets/vass-bjj.jpg";
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  border: 1px dashed rgba(179, 153, 95, 0.4);
  border-radius: 4px;
  color: var(--paper-dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.vass-photo-caption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: center;
}
.vass-copy > p { color: var(--paper-dim); margin-bottom: 18px; max-width: 620px; }
.vass-copy .section-title { margin-bottom: 26px; }
.vass-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 26px 0;
  max-width: 560px;
}
.vass-facts li {
  font-size: 14px;
  color: var(--paper);
  padding-left: 18px;
  position: relative;
}
.vass-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.team-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  text-decoration: none;
}
.team-link:hover { color: var(--gold); }

/* ---------- stories ---------- */
.stories { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stories-video {
  margin: 0 0 48px;
  border: 1px solid rgba(179, 153, 95, 0.35);
  border-radius: 2px;
  overflow: hidden;
  background: #0a0b09;
}
.stories-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0a0b09;
}
.stories-video figcaption {
  padding: 14px 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--line);
}

.stories-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.featured-quote {
  border: 1px solid rgba(179, 153, 95, 0.35);
  background: var(--ink);
  border-radius: 2px;
  padding: clamp(28px, 3.5vw, 44px);
}
.featured-quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  margin-bottom: 20px;
}
.featured-quote footer {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.stories-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.filter-btn:hover { color: var(--paper); }
.filter-btn.active { color: var(--gold-soft); border-color: var(--gold); }

.stories-grid {
  column-count: 3;
  column-gap: 16px;
}
.story-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border: 1px solid var(--line);
  background: var(--ink);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 16px;
}
.story-card p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.story-card p::before { content: "\201C"; color: var(--gold); font-family: var(--serif); }
.story-card p::after { content: "\201D"; color: var(--gold); font-family: var(--serif); }
.story-card footer {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.story-card footer strong { color: var(--gold); font-weight: 500; }
.story-card.hidden { display: none; }
.stories-more { text-align: center; margin-top: 28px; }

/* ---------- membership ---------- */
.membership .section-title { margin-bottom: 28px; }
.membership .hero-limit { display: block; margin-bottom: 32px; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  transition: color .3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-soft); }
.faq-icon {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform .35s ease;
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 1px; }
.faq-icon::after { left: 6px; top: 0; width: 1px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-body { padding: 0 4px 28px; color: var(--paper-dim); max-width: 720px; }
.section-lede a { color: var(--gold-soft); }

/* ---------- apply ---------- */
.apply-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 2px;
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}
.apply-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.apply-steps li {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.apply-steps li.active { color: var(--gold-soft); border-color: var(--gold); }
.apply-steps li.done { color: var(--paper); }

.apply-step { display: none; border: 0; }
.apply-step.active { display: block; }
.apply-step label {
  display: block;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.apply-step input, .apply-step select, .apply-step textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 14px;
  transition: border-color .3s ease;
}
.apply-step input:focus, .apply-step select:focus, .apply-step textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #c96f5e;
}
label.invalid .field-error { display: block; }
label.invalid input, label.invalid select { border-color: #c96f5e; }

.apply-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.apply-nav .btn:only-child { margin-left: auto; }
.apply-booking-lede { color: var(--paper-dim); margin-bottom: 24px; }
.booking-placeholder { min-height: 260px; }
.apply-done h3 { font-size: 28px; margin-bottom: 12px; }
.apply-done p { color: var(--paper-dim); }
.apply-note { font-size: 13px; margin-top: 16px; color: var(--gold); }

.apply-quote { text-align: center; }
.apply-quote p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 14px;
}
.apply-quote footer {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
}
.footer-links a:hover { color: var(--paper); }
.footer-fine { font-size: 12px; color: var(--paper-dim); line-height: 1.8; }

/* ---------- gold underline accent: thin tapered rule, draws in once ---------- */
.gold-underline { position: relative; display: inline-block; }
.gold-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.12em;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(179, 153, 95, 0) 0%,
    rgba(179, 153, 95, 0.9) 12%,
    rgba(205, 185, 138, 0.9) 55%,
    rgba(179, 153, 95, 0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gold-underline.drawn::after { transform: scaleX(1); }

/* ---------- reveal (GSAP sets final state; CSS fallback when no JS) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.no-motion .reveal, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .physical-steps { grid-template-columns: 1fr 1fr; }
  .phys-step:nth-child(2n) { border-right: 0; }
  .phys-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stories-grid { column-count: 2; }
  .spouses-panel { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .dx-grid { grid-template-columns: repeat(2, 1fr); }
  .p23 { grid-template-columns: 1fr; gap: 56px; }
  .vass-grid { grid-template-columns: 1fr; }
  .vass-photo-col { max-width: 380px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav.open { background: rgba(13, 14, 12, 0.97); }
  .stories-grid { column-count: 1; }
  .members-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dx-grid { grid-template-columns: 1fr; }
  .physical-steps { grid-template-columns: 1fr; }
  .phys-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .phys-step:last-child { border-bottom: 0; }
  .apply-nav { flex-direction: column-reverse; }
  .apply-nav .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-scrollhint span { animation: none; }
}

/* ============================================================
   LIGHT THEME (brand palette: cream / evergreen / bronze)
   Toggle with the floating Dark/Light pill (draft A/B only).
   ============================================================ */
html.theme-light {
  --ink: #EEEAE1;
  --ink-2: #E6E1D2;
  --ink-3: #DFD9C8;
  --line: rgba(47, 79, 62, 0.16);
  --paper: #1A1712;
  --paper-dim: #5B574B;
  --gold: #9A7A4E;
  --gold-soft: #7E6334;
  --evergreen: #2F4F3E;
}
html.theme-light ::selection { background: rgba(154, 122, 78, 0.3); }

/* nav: always solid cream in light mode (dark text would vanish over the hero film) */
html.theme-light .nav {
  background: rgba(238, 234, 225, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
html.theme-light .nav-mobile { background: rgba(238, 234, 225, 0.97); }
html.theme-light .nav-links a { color: var(--paper-dim); }
html.theme-light .nav-links a:hover { color: var(--paper); }
html.theme-light .nav-logo { color: var(--paper); }
html.theme-light .nav-burger span { background: var(--paper); }

/* buttons go evergreen like the live site */
html.theme-light .btn-gold { background: var(--evergreen); border-color: var(--evergreen); color: #EEEAE1; }
html.theme-light .btn-gold:hover { background: #3C634E; border-color: #3C634E; }

/* hero stays cinematic: light text over the film */
html.theme-light .hero-title,
html.theme-light .hero-sub,
html.theme-light .hero-eyebrow { color: #ECE7DA; }
html.theme-light .hero-sub { color: rgba(236, 231, 218, 0.8); }
html.theme-light .hero-limit { color: #CDB98A; }
html.theme-light .hero .btn-gold { background: #CDB98A; border-color: #CDB98A; color: #14130E; }

/* member cards keep light text over photos */
html.theme-light .member-status { color: #ECE7DA; }
html.theme-light .member-sub { color: #CDB98A; }

/* surfaces */
html.theme-light .physical,
html.theme-light .stories { background: #E7E2D2; }
html.theme-light .physical-steps { background: #EEEAE1; }
html.theme-light .dx-card,
html.theme-light .story-card,
html.theme-light .diag-item,
html.theme-light .team-card { background: rgba(255, 255, 255, 0.45); }
html.theme-light .featured-quote { background: rgba(255, 255, 255, 0.55); border-color: rgba(154, 122, 78, 0.4); }
html.theme-light .apply-card,
html.theme-light .spouses-panel,
html.theme-light .backoffice { background: rgba(255, 255, 255, 0.4); }
html.theme-light .apply-step input,
html.theme-light .apply-step select,
html.theme-light .apply-step textarea { background: #FFFDF8; }
html.theme-light .stories-video { background: #10160F; border-color: rgba(154, 122, 78, 0.45); }
html.theme-light .stories-video figcaption { background: #EEEAE1; }
html.theme-light .levers span { color: var(--paper-dim); }
html.theme-light .footer-fine,
html.theme-light .statement-dim { color: var(--paper-dim); }

/* pillar 2 diagram: cream pills, evergreen lines */
html.theme-light .pgraphic rect { fill: #EEEAE1; stroke: rgba(47, 79, 62, 0.5); }
html.theme-light .pgraphic path { stroke: #2F4F3E; }
html.theme-light .pgraphic text[fill="#ece7da"] { fill: #2F4F3E; }
html.theme-light .pgraphic circle[fill="#b3995f"] { fill: #2F4F3E; }
html.theme-light .pgraphic text[fill="#14130e"] { fill: #EEEAE1; }
html.theme-light .pgraphic text[fill="#b3995f"] { fill: #9A7A4E; }
/* pillar 3 diagram: evergreen spokes, ink names */
html.theme-light .pgraphic line { stroke: #2F4F3E; }
html.theme-light .pgraphic circle[stroke="#b3995f"] { stroke: #9A7A4E; }

/* gold underline goes bronze */
html.theme-light .gold-underline::after {
  background: linear-gradient(90deg,
    rgba(154, 122, 78, 0) 0%,
    rgba(154, 122, 78, 0.9) 12%,
    rgba(126, 99, 52, 0.9) 55%,
    rgba(154, 122, 78, 0) 100%);
}

/* ---------- theme toggle pill (draft A/B) ---------- */
.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.theme-toggle::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.theme-toggle:hover { border-color: var(--gold); }
