/* =========================================================
   The Stillwater Club
   Palette taken from the salon: walnut panelling, emerald velvet,
   claret upholstery, candlelight and gilded lettering.
   ========================================================= */

:root {
  --ink: #0d0a07;          /* the room after dark */
  --walnut: #1a120c;
  --walnut-2: #22170f;
  --emerald: #0f2a22;
  --emerald-deep: #0a1d17;
  --claret: #5b1520;
  --claret-deep: #3a0d14;

  --gold: #d4ae64;
  --gold-light: #f1d58f;
  --gold-dark: #9c6d2c;
  --gold-grad: linear-gradient(180deg, #f6e1a4 0%, #d9b268 45%, #a8752f 100%);

  --cream: #f1e6d0;
  --parchment: #d9cbb0;
  --muted: #a99a80;
  --line: rgba(212, 174, 100, 0.28);
  --line-strong: rgba(212, 174, 100, 0.55);

  --ok: #7fae8c;
  --warn: #d9a24f;
  --err: #d7735f;

  --serif-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff3d0; }
::selection { background: var(--claret); color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--ink);
  font-family: var(--sans); font-size: 14px;
}
.skip-link:focus { top: 12px; }

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

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }
.container.wide { width: min(1240px, 100% - 32px); }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-align: center;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The logo's ornament: a hairline broken by a four-pointed star */
.ornament {
  position: relative;
  width: min(320px, 70%);
  height: 18px;
  margin: 22px auto 34px;
}
.ornament::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) calc(50% - 18px), transparent calc(50% - 18px), transparent calc(50% + 18px), var(--gold) calc(50% + 18px), var(--gold) 80%, transparent);
}
.ornament::after {
  content: "✦";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-size: 16px; line-height: 1;
  color: var(--gold-light);
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--parchment);
  font-size: 1.25rem;
}

.lede {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  color: var(--cream);
}

.prose p { margin: 0 0 1.1em; color: var(--parchment); }

.fine {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-grad);
  color: #1b1209;
  box-shadow: 0 0 0 1px rgba(255, 230, 170, .35) inset, 0 6px 24px rgba(212, 174, 100, .22);
}
.btn-gold:hover { color: #1b1209; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 230, 170, .5) inset, 0 10px 32px rgba(212, 174, 100, .35); }
.btn-ghost {
  background: rgba(13, 10, 7, .35);
  color: var(--gold-light);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold-light); background: rgba(212, 174, 100, .08); color: #fff3d0; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.75rem; letter-spacing: 0.18em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Gilded frame ---------- */

.frame {
  position: relative;
  padding: 8px;
  background: linear-gradient(145deg, #6e4d22, #e2c27d 30%, #8a5f27 55%, #e8cc8a 80%, #6e4d22);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .6);
}
.frame::after {
  content: "";
  position: absolute; inset: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .35);
  pointer-events: none;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 10, 7, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand img {
  width: 150px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}
.site-header.scrolled .nav-brand img,
.site-header.open .nav-brand img { opacity: 1; transform: none; }

.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--parchment);
  padding: 6px 0;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold-light); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--gold-light);
}
.nav-menu a.nav-cta::after { display: none; }
.nav-menu a.nav-cta:hover { background: rgba(212, 174, 100, .1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 12px 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1px; background: var(--gold-light); transition: transform .3s ease, opacity .3s ease; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-brand img { width: 128px; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px;
    background: rgba(13, 10, 7, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .site-header.open { background: rgba(13, 10, 7, .97); border-bottom-color: var(--line); }
  .site-header.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { padding: 16px 4px; border-bottom: 1px solid rgba(212, 174, 100, .12); font-size: 0.8125rem; }
  .nav-menu a::after { display: none; }
  .nav-menu a.nav-cta { margin-top: 18px; text-align: center; border: 1px solid var(--line-strong); }
}

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 8px) 16px clamp(64px, 9vw, 110px);
  text-align: center;
  background:
    radial-gradient(1200px 520px at 50% 18%, rgba(214, 160, 76, .20), transparent 70%),
    linear-gradient(180deg, #120c07 0%, var(--ink) 100%);
  --section-bg: var(--ink);
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 50%; top: 40%;
  width: 1400px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(126, 26, 34, .25), transparent);
  pointer-events: none;
}
.hero-logo { position: relative; margin: 0 auto clamp(20px, 3vw, 36px); width: min(560px, 86vw); }
.hero-logo img { filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }

.hero-photo { position: relative; margin: 0 auto; width: min(1240px, 100%); }
.hero-photo img { width: 100%; }

.hero-pillars {
  list-style: none;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px clamp(20px, 4vw, 48px);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0;
}
.hero-pillars li { display: flex; flex-direction: column; align-items: center; }
.hero-pillars .num {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-pillars .lbl {
  margin-top: 10px;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--parchment);
}
.hero-pillars .star { color: var(--gold); font-size: 14px; }

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

@media (max-width: 560px) {
  .hero-pillars .star { display: none; }
  .hero-pillars { gap: 22px 28px; }
  .hero-pillars li:last-child { flex-basis: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .frame { padding: 5px; }
  .frame::after { inset: 5px; }
}

/* ---------- 2. Philosophy ---------- */

.philosophy {
  --section-bg: var(--walnut);
  background:
    linear-gradient(180deg, var(--ink), transparent 120px),
    radial-gradient(900px 500px at 85% 10%, rgba(212, 174, 100, .07), transparent 70%),
    var(--walnut);
}
.philosophy .prose { text-align: center; }

.virtues {
  list-style: none; margin: 52px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.virtues li { padding: 26px 12px; text-align: center; }
.virtues li + li { border-left: 1px solid var(--line); }
.virtues h3 {
  margin: 0 0 8px;
  font-family: var(--serif-display); font-weight: 500; font-size: 0.9375rem; letter-spacing: .08em;
  color: var(--gold-light);
}
.virtues p { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 760px) {
  .virtues { grid-template-columns: 1fr 1fr; }
  .virtues li + li { border-left: 0; }
  .virtues li { border-bottom: 1px solid var(--line); }
  .virtues li:nth-child(even) { border-left: 1px solid var(--line); }
  .virtues li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

.note {
  margin: 44px auto 0;
  max-width: 600px;
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- 3. The Principle ---------- */

.principle {
  --section-bg: var(--emerald-deep);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(40, 96, 76, .35), transparent 70%),
    linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch;
  max-width: 1000px;
}
.flow-step {
  position: relative;
  padding: 38px 24px 30px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212, 174, 100, .07), rgba(0, 0, 0, .12));
}
.flow-index {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  min-width: 30px; height: 30px; padding: 0 8px;
  display: grid; place-items: center;
  font-family: var(--serif-display); font-size: 0.8125rem;
  color: var(--ink); background: var(--gold-grad); border-radius: 15px;
}
.flow-step h3 {
  margin: 0 0 10px;
  font-family: var(--serif-display); font-weight: 500; font-size: 1.1875rem; letter-spacing: .04em;
  color: var(--gold-light);
}
.flow-step p { margin: 0; color: var(--parchment); font-size: 1.0625rem; line-height: 1.45; }
.flow-arrow { position: relative; }
.flow-arrow::before {
  content: ""; position: absolute; left: 8px; right: 14px; top: 50%; height: 1px; background: var(--gold);
}
.flow-arrow::after {
  content: ""; position: absolute; right: 9px; top: 50%;
  width: 9px; height: 9px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; grid-template-rows: auto 48px auto 48px auto; max-width: 420px; }
  .flow-arrow::before { left: 50%; right: auto; top: 6px; bottom: 12px; width: 1px; height: auto; }
  .flow-arrow::after { right: auto; left: 50%; top: auto; bottom: 8px; transform: translateX(-50%) rotate(135deg); }
}

.principle-text {
  max-width: 680px; margin: 48px auto 40px;
  text-align: center; color: var(--parchment); font-size: 1.25rem;
}
.principle-text em { color: var(--gold-light); font-style: italic; }

/* Disclosure (details/summary) — used by the principle and the FAQ */
.disclosure {
  max-width: 760px; margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.disclosure + .disclosure { border-top: 0; }
.disclosure summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--serif-display); font-size: 1.0625rem; letter-spacing: .04em;
  color: var(--cream);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--sans); font-size: 18px; font-weight: 300; color: var(--gold-light);
  transition: transform .3s ease;
}
.disclosure[open] summary::after { transform: rotate(45deg); }
.disclosure summary:hover { color: var(--gold-light); }
.disclosure-body { padding: 0 4px 26px; color: var(--parchment); }
.disclosure-body p { margin: 0 0 12px; }
.principle .disclosure-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.principle .disclosure-body .fine { grid-column: 1 / -1; margin-top: 8px; }
.rule h4 {
  margin: 8px 0 6px;
  font-family: var(--sans); font-weight: 500; font-size: 0.75rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.rule p { font-size: 1.0625rem; line-height: 1.5; }
@media (max-width: 640px) { .principle .disclosure-body { grid-template-columns: 1fr; } }

/* ---------- 4. The Sixteen ---------- */

.founders {
  --section-bg: var(--walnut);
  background:
    radial-gradient(1000px 600px at 15% 0%, rgba(91, 21, 32, .28), transparent 70%),
    radial-gradient(900px 600px at 90% 100%, rgba(15, 42, 34, .5), transparent 70%),
    var(--walnut);
}
.equation {
  display: block; margin-top: 10px;
  font-family: var(--serif-display); font-size: 0.9375rem; letter-spacing: .14em; color: var(--gold);
}

.founder-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
@media (max-width: 1080px) { .founder-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .founder-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 440px)  { .founder-grid { grid-template-columns: 1fr; } }

.founder-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(34, 23, 15, .9), rgba(16, 11, 8, .95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.founder-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }

.founder-portrait {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.founder-card:hover .founder-portrait img { transform: scale(1.04); }
.founder-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(16, 11, 8, .75));
  pointer-events: none;
}
.founder-archetype {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 1;
  font-family: var(--sans); font-size: 0.6875rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-light); text-align: center;
}

.founder-info { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 22px; text-align: center; }
.founder-name {
  margin: 0;
  font-family: var(--serif-display); font-weight: 500; font-size: 1.1875rem; letter-spacing: .03em;
  color: var(--cream);
}
.founder-tagline {
  flex: 1;
  margin: 10px 0 16px;
  font-style: italic; font-size: 1.0625rem; line-height: 1.4; color: var(--parchment);
}
.founder-circle {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1rem; color: var(--gold-light);
}
.founder-count {
  margin: 2px 0 16px;
  font-family: var(--sans); font-size: 0.6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.founder-card .btn { width: 100%; }

/* Founder dialog */
.founder-dialog {
  width: min(1000px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1d140d, #110c08);
  color: var(--cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
  overflow: auto;
  --section-bg: #1a120c;
}
.founder-dialog::backdrop { background: rgba(6, 4, 3, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.founder-dialog[open] { animation: dialog-in .35s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.dialog-close {
  position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; z-index: 2;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(13, 10, 7, .8); color: var(--gold-light);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.dialog-close:hover { border-color: var(--gold-light); }
.dialog-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; padding: 40px; }
.dialog-portrait { align-self: start; position: sticky; top: 40px; }
.dialog-body .eyebrow { text-align: left; }
.dialog-body h2 {
  margin: 0;
  font-family: var(--serif-display); font-weight: 500; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dialog-meta {
  margin: 10px 0 0;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.dialog-tagline {
  margin: 20px 0 8px; padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-style: italic; font-size: 1.375rem; line-height: 1.4; color: var(--cream);
}
.dialog-body h3 {
  margin: 26px 0 6px;
  font-family: var(--sans); font-weight: 500; font-size: 0.75rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.dialog-body p { margin: 0; color: var(--parchment); }
.dialog-body .dialog-club { font-style: italic; color: var(--cream); }

@media (max-width: 820px) {
  .dialog-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px 32px; }
  .dialog-portrait { position: relative; top: 0; width: min(300px, 80%); margin: 8px auto 0; }
  .dialog-body .eyebrow, .dialog-body h2, .dialog-meta { text-align: center; }
}

/* ---------- 5. Your Access ---------- */

.access {
  --section-bg: var(--claret-deep);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(140, 34, 48, .35), transparent 70%),
    linear-gradient(180deg, var(--claret-deep), #1e0a0d);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.access-form, .campaign-wallet .row { display: flex; gap: 10px; }
input[type="text"], input[type="url"] {
  flex: 1; min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 6, 4, .6);
  color: var(--cream);
  font-family: var(--sans); font-size: 0.9375rem; letter-spacing: .02em;
}
input::placeholder { color: #7d705c; }
input:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(212, 174, 100, .18); }
input[aria-invalid="true"] { border-color: var(--err); }
@media (max-width: 560px) { .access-form { flex-direction: column; } }

.form-error { min-height: 1.4em; margin: 8px 0 0; font-family: var(--sans); font-size: 0.8125rem; color: var(--err); }

.access-result {
  margin: 24px 0 0;
  padding: 30px clamp(20px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 6, 5, .55);
  animation: fade-up .45s ease;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  display: inline-block; padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.badge-gtd { background: var(--gold-grad); color: var(--ink); }
.badge-fcfs { border: 1px solid var(--gold); color: var(--gold-light); }
.badge-public { border: 1px solid var(--line-strong); color: var(--parchment); }
.result-title { margin: 0; font-family: var(--serif-display); font-weight: 500; font-size: 1.375rem; color: var(--cream); }
.result-wallet { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); word-break: break-all; }
.result-text { margin: 0 0 20px; color: var(--parchment); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.result-grid > div { padding: 16px; background: #150b0b; }
.result-grid dt { margin: 0 0 4px; font-family: var(--sans); font-size: 0.6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.result-grid dd { margin: 0; font-size: 1.0625rem; line-height: 1.35; color: var(--cream); }
.result-grid .tz { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr; } }

.countdown { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; align-items: flex-end; }
.countdown-label { flex-basis: 100%; margin: 0 0 2px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown .unit {
  min-width: 72px; padding: 10px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .25);
}
.countdown .unit b { display: block; font-family: var(--serif-display); font-weight: 500; font-size: 1.75rem; line-height: 1.1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.countdown .unit span { font-family: var(--sans); font-size: 0.625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.countdown.live b { color: var(--ok); }

.guarantee {
  margin: 20px 0 0; padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(212, 174, 100, .07);
  font-size: 1.0625rem; color: var(--cream);
}

.phase-table { margin-top: 48px; }
.phase-table h3 {
  margin: 0 0 14px; text-align: center;
  font-family: var(--sans); font-weight: 500; font-size: 0.75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.phase-table ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.phase-table li {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.phase-table .p-name { font-family: var(--serif-display); color: var(--gold-light); }
.phase-table .p-time { color: var(--parchment); font-size: 1.0625rem; }
.phase-table .p-state { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.phase-table .p-state.live { color: var(--ok); }
.phase-table .tz-note { margin: 10px 0 0; text-align: center; }
@media (max-width: 560px) {
  .phase-table li { grid-template-columns: 1fr auto; }
  .phase-table .p-time { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 6. Earn Your Invitation ---------- */

.campaign {
  --section-bg: var(--emerald-deep);
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(40, 96, 76, .3), transparent 70%),
    linear-gradient(180deg, var(--emerald-deep), #07140f);
}
.campaign-places { margin: -24px auto 40px; text-align: center; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.campaign-bar {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 10;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center;
  margin-bottom: 36px; padding: 22px 26px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(7, 20, 15, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.campaign-wallet label { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 0.6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.campaign-wallet input { min-height: 42px; }
.campaign-wallet .form-error { min-height: 0; }
.progress-label { margin: 0 0 10px; font-family: var(--serif-display); font-size: 1.125rem; color: var(--cream); }
.progress-label strong { font-weight: 500; color: var(--gold-light); }
.progress-track { height: 6px; border-radius: 3px; background: rgba(212, 174, 100, .14); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--gold-grad); transition: width .6s ease; }
.status-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 0; font-family: var(--sans); font-size: 0.75rem; letter-spacing: .06em; color: var(--parchment); }
.status-legend li { display: flex; align-items: center; gap: 7px; }
.status-legend b { font-weight: 500; color: var(--gold-light); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.submitted { background: var(--warn); }
.dot.verified { background: var(--ok); }
.dot.gtd { background: var(--gold-light); box-shadow: 0 0 8px var(--gold); }

@media (max-width: 820px) {
  .campaign-bar { position: relative; top: 0; grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}

.invite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .invite-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .invite-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px)  { .invite-grid { grid-template-columns: 1fr; } }

.invite-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(241, 230, 208, .045), rgba(0, 0, 0, .2));
}
.invite-card.is-verified { border-color: rgba(127, 174, 140, .55); }
.invite-card.is-submitted { border-color: rgba(217, 162, 79, .5); }
.invite-card.is-locked { opacity: .62; }
.invite-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.invite-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.invite-head h3 { margin: 0; font-family: var(--serif-display); font-weight: 500; font-size: 1rem; line-height: 1.25; color: var(--cream); }
.invite-head p { margin: 2px 0 0; font-family: var(--sans); font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.invite-message {
  margin: 0 0 14px; padding: 14px 14px 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(0, 0, 0, .22);
  font-style: italic; font-size: 1.0625rem; line-height: 1.45; color: var(--parchment);
}
.invite-step { margin: 0 0 12px; font-family: var(--sans); font-size: 0.8125rem; line-height: 1.55; color: var(--parchment); }
.invite-step b { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.invite-actions { margin-top: auto; display: grid; gap: 10px; }
.invite-form { display: grid; gap: 8px; }
.invite-form .form-error { min-height: 0; margin: 0; }
.invite-actions input { width: 100%; min-height: 42px; font-size: 0.8125rem; }
.invite-actions .btn { width: 100%; }
.invite-status {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 0;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: .1em; color: var(--muted);
}
.invite-status .dot { background: #5a5040; }
.invite-status.submitted .dot { background: var(--warn); }
.invite-status.verified .dot { background: var(--ok); }
.invite-status.rejected .dot { background: var(--err); }
.invite-lock { margin-top: auto; padding: 14px; text-align: center; border: 1px dashed var(--line); font-family: var(--sans); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 7. FAQ ---------- */

.faq { --section-bg: var(--walnut); background: var(--walnut); }

/* ---------- Footer ---------- */

.site-footer {
  --section-bg: var(--ink);
  padding: 80px 0 48px;
  text-align: center;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer-logo { width: 220px; margin: 0 auto; }
.footer-motto { margin: 14px 0 26px; font-style: italic; color: var(--muted); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 22px; }
.footer-links a { font-family: var(--sans); font-size: 0.75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--parchment); }
.footer-links a:hover { color: var(--gold-light); }
.footer-contract { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); word-break: break-all; }
.site-footer .fine { max-width: 620px; margin: 10px auto 0; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
