/* ============================================================
   Stackwell, shared design system
   Edit colors/fonts here and every page updates.
   ============================================================ */
:root {
  --bg: #03110D;          /* near-black green base */
  --bg-soft: #08160F;
  --panel: #16302B;       /* forest-green surface */
  --panel-2: #1d3d36;
  --ink: #E0E0E0;         /* light gray TEXT (gold is reserved for the logo + tiny accents) */
  --muted: #9aa49c;
  --faint: #5f6a63;
  --line: rgba(224,224,224,0.10);
  --line-2: rgba(163,133,96,0.20);   /* tan hairline */
  --mint: #A38560;        /* tan/bronze accent (var name kept to avoid renames) */
  --mint-2: #8a6c47;
  --glow: rgba(163,133,96,0.18);
  --maroon: #390517;      /* wine, depth accent */
  --gold: #C9A24B;        /* true gold, logo + rare highlights only */
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Site-wide textured backdrop, fixed full-viewport layer (works on mobile,
   unlike background-attachment:fixed). The embossed-botanical image's own
   vignette frames the content; a light overlay keeps text crisp + on-palette. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-color: #11211a;  /* matches the texture's tone so there's no flash before it loads */
  background-image:
    radial-gradient(900px 620px at 50% 16%, rgba(201,162,75,0.06), transparent 60%),
    linear-gradient(rgba(3,17,13,0.32), rgba(3,17,13,0.50)),
    url("/images/bg.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  /* Ambient cinematic drift, a slow, barely-perceptible breathing zoom. */
  transform: scale(1.04); transform-origin: 50% 42%; will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: ambientDrift 46s ease-in-out infinite alternate; }
}
@keyframes ambientDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(0, -1.4%, 0); }
}
/* Fixed vignette layer: darkens the edges so content sits in a pool of light. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 32%, transparent 52%, rgba(3,17,13,0.55) 100%),
    linear-gradient(to bottom, rgba(3,17,13,0.30) 0%, transparent 18%, transparent 78%, rgba(3,17,13,0.55) 100%);
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(4px);
  background: rgba(3,17,13,0.18);
  border-bottom: 1px solid transparent;
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.nav.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(3,17,13,0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(0,0,0,0.34);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, #16302B, #0a1812);
  border: 1px solid rgba(201,162,75,0.35); box-shadow: 0 6px 18px rgba(0,0,0,0.34); }
.logo .mark svg { width: 23px; height: 23px; display: block; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); padding: 8px 12px; font-size: 16px; cursor: pointer; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px 22px; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, border-color .2s; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--mint), var(--mint-2)); color: #03110D; box-shadow: 0 8px 24px var(--glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px var(--glow); }
.btn-gold { background: linear-gradient(135deg, #D8B45C, #B0892F); color: #03110D; box-shadow: 0 8px 24px rgba(201,162,75,0.28); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(201,162,75,0.38); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 999px; }

/* ---- Typography / sections ---- */
.eyebrow { color: var(--mint); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px; }
h1.display { font-family: 'Playfair Display', serif; font-weight: 600; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.1; letter-spacing: -0.015em; }
h1.display .hl, .hl { color: var(--mint); font-style: italic; }
h2.section-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: clamp(26px, 3.2vw, 37px); line-height: 1.18; letter-spacing: -0.015em; }
/* Card & tier sub-headings in gold */
.card h3, .step h3, .price h3, .post-card h3, .flag-head h3 { color: var(--gold); }
.lead { color: var(--muted); font-size: clamp(16px, 2.1vw, 19px); line-height: 1.75; letter-spacing: 0; }
section { padding-top: 52px; padding-bottom: 52px; }
.section-sm { padding-top: 38px; padding-bottom: 38px; }
.hero { padding-top: 56px; padding-bottom: 32px; }   /* horizontal comes from .wrap */
.pt-xl { padding-top: 40px; }   /* extra breathing room before a section */
@media (max-width: 640px) { .pt-xl { padding-top: 22px; } }
.center { text-align: center; }
.measure { max-width: 52ch; }
.measure-narrow { max-width: 46ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mint); font-weight: 600; background: rgba(163,133,96,0.08); border: 1px solid rgba(163,133,96,0.2); padding: 6px 14px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(163,133,96,0.3); transform: translateY(-3px); }
.card .ic { position: relative; width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 22px; font-size: 20px; }
.card .ic::before { content: ""; position: absolute; inset: 1px; transform: rotate(45deg); border: 1px solid var(--mint); border-radius: 6px; background: rgba(163,133,96,0.07); z-index: -1; }
/* Custom line icons: uniform size, brand bronze, crisp stroke. */
.ic svg { width: 24px; height: 24px; display: block; color: var(--mint); }
.flag-ico { display: inline-flex; line-height: 0; }
.flag-ico svg { width: 22px; height: 22px; display: block; }
.flag-red .flag-ico { color: #c66b6b; }
.flag-green .flag-ico { color: #6fae8a; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---- Green flag / red flag comparison ---- */
.flags { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.flag-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 32px 30px; position: relative; overflow: hidden; }
.flag-col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; }
.flag-red::before { background: linear-gradient(90deg, rgba(198,107,107,0.7), rgba(198,107,107,0)); }
.flag-green::before { background: linear-gradient(90deg, rgba(111,174,138,0.8), rgba(111,174,138,0)); }
.flag-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.flag-ico { font-size: 22px; line-height: 1; }
.flag-head h3 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.flag-col ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.flag-col li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.flag-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; font-size: 15px; }
.flag-red li::before { content: "\2715"; color: #c66b6b; }
.flag-green li::before { content: "\2713"; color: #6fae8a; }

/* ---- Library / course hub ---- */
.lib-feature { background: linear-gradient(135deg, rgba(22,48,43,0.92), rgba(57,5,23,0.32)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 44px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.card .card-tag { margin-top: 16px; }

/* ---- Goal Chaser interactive flow ---- */
.gc-wrap { max-width: 640px; margin: 0 auto; }
.gc-progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 52px; }
.gc-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint-2), var(--mint)); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.gc-step { animation: gcIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gc-eyebrow { color: var(--mint); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.gc-q { font-family: 'Playfair Display', serif; font-weight: 600; font-size: clamp(27px, 3.8vw, 39px); line-height: 1.16; letter-spacing: -0.015em; margin-bottom: 14px; }
.gc-help { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 30px; max-width: 48ch; }
.gc-lead { color: var(--muted); font-size: 18px; line-height: 1.7; margin-bottom: 34px; max-width: 54ch; }
.gc-options { display: flex; flex-wrap: wrap; gap: 12px; }
.gc-chip { font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; cursor: pointer; transition: border-color .15s, background .15s, transform .08s; }
.gc-chip:hover { border-color: rgba(163,133,96,0.45); }
.gc-chip:active { transform: scale(.97); }
.gc-chip.selected { border-color: var(--mint); background: rgba(163,133,96,0.12); color: #fff; }
.gc-text { width: 100%; min-height: 132px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.gc-text::placeholder { color: var(--faint); }
.gc-text:focus { outline: none; border-color: var(--mint); }
.gc-quote { border-left: 2px solid var(--line-2); padding: 4px 0 4px 18px; margin: 0 0 26px; color: var(--ink); font-style: italic; font-size: 18px; line-height: 1.6; }
.gc-pillars { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 18px 0 28px; }
.gc-pillars li { position: relative; padding-left: 28px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.gc-pillars li::before { content: "\25C6"; position: absolute; left: 0; top: 2px; color: var(--mint); font-size: 11px; }
.gc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.gc-spacer { flex: 1; }
.gc-back { background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.gc-back:hover { color: var(--ink); }
.gc-skip { background: none; border: none; color: var(--faint); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.gc-skip:hover { color: var(--muted); }
.gc-meta { color: var(--faint); font-size: 13px; }
@media (max-width: 640px) {
  .gc-progress { margin-bottom: 36px; }
  .gc-actions .btn { width: auto; }
}

/* ---- Prose (article/long-form) ---- */
.prose { max-width: 70ch; }
.prose p { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.prose h2 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 28px; margin: 40px 0 14px; letter-spacing: -0.01em; color: var(--ink); }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.prose ul { color: var(--muted); margin: 0 0 18px 20px; font-size: 17px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--mint); }

/* ---- Waitlist form ---- */
.form-card { background: linear-gradient(180deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; gap: 8px; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.form-card input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-size: 16px; padding: 14px 16px; font-family: inherit; }
.form-card input::placeholder { color: var(--faint); }
.form-msg { font-size: 14px; margin-top: 14px; min-height: 20px; font-weight: 500; }
.form-msg.ok { color: var(--mint); }
.form-msg.err { color: #ff8b7a; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.count { color: var(--ink); font-weight: 600; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, rgba(28,58,43,0.70), rgba(3,17,13,0.84)), url("/images/header-foliage.webp") center/cover no-repeat; border: 1px solid rgba(163,133,96,0.30); border-radius: 26px; padding: 56px 40px; text-align: center; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step .n { font-family: 'Playfair Display', serif; font-size: 38px; color: var(--mint); font-weight: 600; opacity: .85; }
.step h3 { font-size: 17px; font-weight: 600; margin: 6px 0; }
.step p { color: var(--muted); font-size: 14px; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.price.featured { border-color: var(--mint); box-shadow: 0 12px 40px var(--glow); position: relative; }
.price .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--mint); color: #03110D; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.cur-switch { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; color: var(--muted); font-size: 14px; }
.cur-switch select { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 36px 9px 16px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A38560' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.cur-switch select:focus { outline: none; border-color: var(--mint); }
.cur-switch select option { background: var(--bg-soft); color: var(--ink); }
.price h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.price .amt { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 600; margin: 8px 0; }
.price .amt span { font-family: 'Inter'; font-size: 15px; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; margin: 18px 0; }
.price li { color: var(--muted); font-size: 15px; padding: 7px 0 7px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--mint); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 16px; padding: 0 0 22px; max-width: 70ch; }

/* ---- Blog ---- */
.post-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: rgba(163,133,96,0.3); transform: translateY(-3px); }
.post-card .kicker { color: var(--mint); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 20px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .meta { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* ---- Trust row ---- */
.trust { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust span { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--mint); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--ink); }
.footer .tag-row { color: var(--faint); font-size: 13px; margin-top: 16px; }
.footer .follow { margin-top: 16px; }
.footer .follow a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.footer .follow a:hover { color: var(--ink); }
.footer .follow svg { width: 18px; height: 18px; display: block; color: var(--mint); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 13px; padding: 20px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-3, .price-grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 16px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .price-grid, .steps, .flags { grid-template-columns: 1fr; }
  .flag-col { padding: 24px 22px; }
  .lib-feature { padding: 28px 22px; }
  .form-card { flex-direction: column; }
  .form-card .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Tighter rhythm + right-sized type so it fits a phone instead of feeling
     like a shrunk-down desktop layout. */
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 44px; padding-bottom: 28px; }
  section { padding-top: 32px; padding-bottom: 32px; }
  .section-sm { padding-top: 24px; padding-bottom: 24px; }
  h1.display { font-size: clamp(31px, 8.6vw, 46px); line-height: 1.08; }
  h2.section-title { font-size: clamp(24px, 6.6vw, 32px); }
  .lead { font-size: 16px; }
  .cta-band { padding: 36px 22px; border-radius: 20px; }
  .card { padding: 22px; }
  .steps { gap: 28px; }
  .trust { gap: 12px 18px; }
  .nav-inner { padding: 14px 20px; }
  .footer-inner { padding: 32px 20px; gap: 24px; }
}

/* Extra squeeze for very narrow phones (e.g. iPhone SE / 360px Androids). */
@media (max-width: 380px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1.display { font-size: 30px; }
}

/* ============================================================
   Imagery, full-bleed header backgrounds (Unsplash CDN).
   The CDN's `auto=format` serves WebP/AVIF at the requested size,
   so these load light. Each layers a dark + mint overlay over the
   photo for text legibility, and falls back to the brand gradient
   if the image ever fails to load (no broken layout). CSS-only -
   styles every page's <header class="wrap"> with no HTML changes.
   ============================================================ */
.hero, header.wrap:not(.hero) { position: relative; }
.hero::before,
header.wrap:not(.hero)::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 100vw; z-index: -1; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Hero, let the textured backdrop show; just a soft gold glow for focus. */
.hero::before {
  background-image:
    radial-gradient(700px 400px at 78% 14%, rgba(201,162,75,0.10), transparent 62%);
}
/* Inner page headers, texture shows through; faint top settle for legibility. */
header.wrap:not(.hero)::before {
  background-image:
    linear-gradient(180deg, rgba(3,17,13,0.28) 0%, transparent 55%);
}

/* ============================================================
   Intro splash, luxury botanical curtain that fades into the
   site on first load (once per session; see site.js + the
   no-intro head script in index.html).
   ============================================================ */
html.no-intro .intro { display: none !important; }
.intro {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; text-align: center;
  background-color: #16302B;
  background-image:
    radial-gradient(1000px 600px at 50% 42%, rgba(201,162,75,0.06), transparent 60%),
    linear-gradient(180deg, rgba(11,22,16,0.66), rgba(11,22,16,0.82)),
    url("/images/header-foliage.webp");
  background-size: cover; background-position: center;
  opacity: 1; transform: scale(1); transform-origin: center;
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.55,.05,.25,1);
  will-change: opacity, transform;
}
/* Zoom-through reveal: the curtain scales up and fades as you pass into the page. */
.intro.hide { opacity: 0; transform: scale(1.28); pointer-events: none; }
.intro-inner { animation: introIn 1.2s cubic-bezier(.2,.7,.2,1) both; padding: 0 24px; }
/* …and the hero settles forward as the curtain clears. */
@keyframes heroRise { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
html.intro-revealed header.hero { animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { html.intro-revealed header.hero { animation: none; } }
.intro-mark { color: var(--gold); margin: 0 auto 26px; line-height: 0; }
.intro-mark svg { width: clamp(66px, 12vw, 104px); height: auto; display: block; margin: 0 auto; }
.intro-logo {
  font-family: 'Playfair Display', serif; font-weight: 600; color: var(--gold);
  font-size: clamp(42px, 9vw, 96px); line-height: 1; letter-spacing: 0.24em;
  text-transform: uppercase; text-indent: 0.24em; /* offset trailing tracking */
}
.intro-rule { width: 64px; height: 1px; background: var(--gold); opacity: .65; margin: 22px auto; }
.intro-tag {
  color: var(--gold); font-size: clamp(11px, 2.4vw, 13px); letter-spacing: 0.4em;
  text-transform: uppercase; opacity: .85; text-indent: 0.4em;
}
@keyframes introIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro-inner { animation: none; } }

/* ---- Cinematic scroll reveal ---- */
/* Elements below the fold rise + fade as they enter view. The hidden state is
   applied by JS (class added only to below-fold elements) so there is no
   flash of hidden content above the fold. Stagger via --sr-d. */
.reveal { opacity: 0; transform: translateY(30px); will-change: opacity, transform;
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--sr-d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- Library beginner guides ---- */
.g-crumb a { color: inherit; text-decoration: none; }
.g-crumb a:hover { color: var(--ink); }
.g-supp h3 { display: flex; align-items: center; gap: 10px; }
.g-ev { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; margin-left: auto; white-space: nowrap; }
.g-ev.a { color: #8fc09a; border-color: rgba(127,170,134,0.5); }
.g-ev.b { color: var(--gold); border-color: rgba(201,162,75,0.5); }
.g-ev.c { color: var(--muted); border-color: var(--line-2); }
.g-supp .plain { color: var(--mint); font-size: 13px; font-weight: 600; margin: 10px 0 6px; }
.g-callout { background: rgba(163,133,96,0.07); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px 28px; }
.g-callout h3 { font-size: 19px; color: #fff; margin-bottom: 14px; }
.g-callout ul { list-style: none; padding: 0; margin: 0; }
.g-callout li { position: relative; padding-left: 24px; margin: 10px 0; color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.g-callout li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.g-disc { color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 74ch; }
