:root {
  --ink: #060a18;
  --navy: #0b1430;
  --navy-2: #121d42;
  --gold: #d9b26a;
  --gold-hi: #f6dc9c;
  --gold-lo: #8a6a2e;
  --bark: #4a3420;
  --cream: #efe4cc;
  --muted: #a99d84;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel Decorative", "Cinzel", serif;
  --caps: "Cinzel", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at 50% -10%, #1a2756 0%, var(--navy) 35%, var(--ink) 80%) fixed;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)} 100%{transform:translate(2%,-3%)} }

main, .foot, .nav { position: relative; z-index: 2; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(6,10,24,.78); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(217,178,106,.15); }
.nav-brand { font-family: var(--display); font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: .04em; }
.nav nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); align-items: center; }
.nav nav a { font-family: var(--caps); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--cream); opacity: .8; }
.nav nav a:hover { opacity: 1; color: var(--gold-hi); }
.nav .nav-buy { border: 1px solid var(--gold); padding: .5rem 1rem; color: var(--gold-hi); opacity: 1; }
@media (max-width: 720px) { .nav nav a:not(.nav-buy) { display: none; } }

/* ---------- SHARED ---------- */
section { padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 4rem); }
.eyebrow { font-family: var(--caps); font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
h2 {
  font-family: var(--display); font-weight: 700; line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.5rem;
}
.lede { max-width: 46rem; color: var(--muted); font-size: 1.3rem; margin-bottom: 3rem; }
.center { text-align: center; margin-top: 3.5rem; }
.fine { font-size: .95rem; color: var(--muted); font-style: italic; margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem;
  padding: 1.05rem 2rem; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.btn-gold {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, #b88a3c);
  box-shadow: 0 0 0 1px rgba(246,220,156,.5), 0 10px 40px -10px rgba(217,178,106,.7);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); animation: sweep 3.6s ease-in-out infinite;
}
@keyframes sweep { 0%,60% { left: -120%; } 100% { left: 160%; } }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold-hi), 0 18px 50px -10px rgba(217,178,106,.9); }
.btn-ghost { color: var(--gold-hi); border: 1px solid rgba(217,178,106,.55); }
.btn-ghost:hover { background: rgba(217,178,106,.1); transform: translateY(-2px); }
.btn-xl { padding: 1.3rem 2.6rem; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem;
  padding-top: 7rem; max-width: 1300px; margin: 0 auto; position: relative;
}
.title { font-family: var(--display); font-weight: 900; line-height: .9; margin: .4rem 0 1.5rem; }
.title span {
  display: block; font-size: clamp(3.8rem, 11vw, 9rem);
  background: linear-gradient(175deg, #fff3cf 0%, var(--gold-hi) 25%, var(--gold) 55%, #7b5a22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(217,178,106,.35));
  opacity: 0; transform: translateY(60px) scale(.96); letter-spacing: .01em;
  animation: rise 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.title .t1 { animation-delay: .2s; }
.title .t2 { animation-delay: .45s; }
.title .t3 { animation-delay: .7s; position: relative; }
@keyframes rise { to { opacity: 1; transform: none; } }
.subtitle { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-style: italic; color: var(--gold-hi); opacity: .9; }

.hero-book { position: relative; perspective: 1600px; display: flex; justify-content: center; }
.book3d {
  position: relative; width: min(420px, 80vw);
  transform: rotateY(-18deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .2s ease-out;
  box-shadow: -30px 40px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(217,178,106,.3);
  animation: float 7s ease-in-out infinite;
}
.book3d::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -22px; width: 22px;
  background: linear-gradient(90deg, #2b1d10, var(--bark) 60%, #2b1d10);
  transform: rotateY(-90deg); transform-origin: right;
}
.book3d img { width: 100%; height: auto; }
.book-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255,235,180,.22) 45%, transparent 60%);
  background-size: 250% 100%; animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%,100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.book-glow {
  position: absolute; inset: 10% 0 -10%; z-index: -1;
  background: radial-gradient(circle, rgba(217,178,106,.35), transparent 65%); filter: blur(40px);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; transform: scale(1.08); } }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid var(--gold); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
  .hero-book { order: -1; }
  .book3d { width: min(300px, 70vw); }
  .cta-row { justify-content: center; }
  .scroll-cue { display: none; }
}

/* ---------- HOOK ---------- */
.hook { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1.2rem; }
.hook .line {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 500; line-height: 1.2;
  opacity: .08; filter: blur(6px); transition: opacity 1s, filter 1s, color 1s;
}
.hook .line.in { opacity: 1; filter: none; }
.hook .line em { color: var(--gold-hi); }
.hook .big { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: clamp(2rem, 5.5vw, 4.4rem); margin-top: 1rem; }

/* ---------- MARQUEE ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid rgba(217,178,106,.3); background: rgba(217,178,106,.06); padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: .95rem; white-space: nowrap; color: var(--gold-hi); }
.marquee i { color: var(--gold-lo); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- RULE ---------- */
.rule { text-align: center; max-width: 1200px; margin: 0 auto; }
.ornament { font-size: 2.6rem; color: var(--gold); margin-bottom: 1rem; }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 3rem 0 4rem; }
.rule-card {
  border: 1px solid rgba(217,178,106,.3); padding: 2.4rem 1.4rem; position: relative;
  background: linear-gradient(180deg, rgba(18,29,66,.75), rgba(6,10,24,.6));
}
.rule-card::before, .rule-card::after { content: "✦"; position: absolute; color: var(--gold); font-size: .8rem; }
.rule-card::before { top: -.55rem; left: 50%; translate: -50% 0; background: var(--navy); padding: 0 .4rem; }
.rule-card::after { bottom: -.55rem; left: 50%; translate: -50% 0; background: var(--ink); padding: 0 .4rem; }
.rule-card .num { font-family: var(--display); font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.rule-card p { font-size: 1.45rem; }
.rule-card strong { color: var(--gold-hi); font-weight: 600; }
.pull { font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; max-width: 52rem; margin: 0 auto; color: var(--cream); line-height: 1.45; }
@media (max-width: 800px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ANCHORS ---------- */
.anchors { max-width: 1300px; margin: 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.stat {
  padding: 2rem 1.6rem; border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(217,178,106,.08), rgba(6,10,24,.2));
}
.stat-n { font-family: var(--caps); font-weight: 600; color: var(--gold-hi); font-size: 2.6rem; line-height: 1; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.stat-n span { font-size: 1.1rem; color: var(--gold); letter-spacing: .1em; }
.stat h3 { font-family: var(--caps); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.stat p { color: var(--muted); font-size: 1.05rem; }

/* ---------- GATES ---------- */
.gates { background: linear-gradient(180deg, transparent, rgba(18,29,66,.55), transparent); }
.gates-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.gates-head { position: sticky; top: 7rem; align-self: start; }
.gate-list { list-style: none; counter-reset: g; }
.gate-list li {
  counter-increment: g; position: relative; padding: 1.4rem 0 1.4rem 4.5rem;
  border-bottom: 1px solid rgba(217,178,106,.18); font-size: 1.35rem;
}
.gate-list li::before {
  content: counter(g, upper-roman); position: absolute; left: 0; top: 1.25rem;
  font-family: var(--display); color: var(--gold); font-size: 1.5rem; width: 3.5rem;
}
.gate-list strong { color: var(--gold-hi); }
@media (max-width: 860px) { .gates-inner { grid-template-columns: 1fr; gap: 1rem; } .gates-head { position: static; } }

/* ---------- ARTICLES ---------- */
.articles { max-width: 1300px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  font-family: var(--caps); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: transparent; color: var(--cream); border: 1px solid rgba(217,178,106,.35);
  padding: .65rem 1rem; cursor: pointer; transition: all .25s;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: rgba(217,178,106,.18); border: 1px solid rgba(217,178,106,.18); }
.art {
  background: var(--ink); padding: 1.5rem 1.4rem; text-align: left; cursor: pointer; border: 0; color: inherit;
  font: inherit; display: flex; flex-direction: column; gap: .35rem; min-height: 170px;
  transition: background .3s; position: relative; overflow: hidden;
}
.art::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217,178,106,.2), transparent 60%);
}
.art:hover { background: #0c1533; }
.art:hover::after { opacity: 1; }
.art .n { font-family: var(--caps); color: var(--gold); font-size: .78rem; letter-spacing: .2em; }
.art .t { font-family: var(--caps); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--cream); }
.art .s { font-style: italic; color: var(--muted); font-size: 1rem; }
.art .p { margin-top: auto; padding-top: .6rem; font-size: .98rem; color: var(--gold-hi); opacity: 0; transform: translateY(8px); transition: all .35s; }
.art:hover .p, .art:focus-visible .p { opacity: 1; transform: none; }
.art:focus-visible { outline: 1px solid var(--gold); outline-offset: -1px; }
@media (hover: none) { .art .p { opacity: 1; transform: none; } }

/* ---------- TRIAD ---------- */
.triad { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(.6rem, 2vw, 2rem); text-align: center; }
.triad-word span {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.triad-arrow { font-size: clamp(1.6rem, 4vw, 3rem); color: var(--gold); }
.triad-tag { flex-basis: 100%; font-family: var(--caps); letter-spacing: .25em; text-transform: uppercase; color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }

/* ---------- AUTHORS ---------- */
.authors { max-width: 1250px; margin: 0 auto; }
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.author {
  padding: 2.6rem; border: 1px solid rgba(217,178,106,.3);
  background: linear-gradient(160deg, rgba(18,29,66,.85), rgba(6,10,24,.7));
  position: relative;
}
.author::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217,178,106,.12); pointer-events: none; }
.monogram {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: #1a1206; font-size: 1.05rem;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  box-shadow: 0 0 30px rgba(217,178,106,.4); margin-bottom: 1.4rem;
}
.author h3 { font-family: var(--caps); font-size: 1.55rem; color: var(--gold-hi); line-height: 1.2; }
.creds { font-family: var(--caps); letter-spacing: .2em; color: var(--gold); font-size: .85rem; margin-bottom: 1rem; }
.tagline { font-style: italic; font-size: 1.3rem; color: var(--cream); margin-bottom: 1.2rem; }
.author p:not(.creds):not(.tagline) { color: var(--muted); margin-bottom: 1rem; font-size: 1.1rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.badges li { font-family: var(--caps); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(217,178,106,.4); padding: .4rem .7rem; color: var(--gold-hi); }
.together { margin-top: 3rem; text-align: center; max-width: 52rem; margin-inline: auto; }
.together h3 { font-family: var(--display); color: var(--gold); font-size: 2rem; margin-bottom: 1rem; }
.together p { color: var(--muted); font-size: 1.2rem; }
.kitchen { margin-top: 1.6rem; font-style: italic; color: var(--cream) !important; font-size: clamp(1.35rem, 2.4vw, 1.8rem) !important; line-height: 1.45; }
@media (max-width: 860px) { .author-grid { grid-template-columns: 1fr; } .author { padding: 1.8rem; } }

/* ---------- FINAL ---------- */
.final { background: radial-gradient(ellipse at 30% 50%, rgba(217,178,106,.12), transparent 60%); }
.final-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.final-book img { box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(217,178,106,.35); width: 100%; height: auto; }
.price { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; color: var(--gold-hi); margin: .5rem 0 1rem; text-shadow: 0 0 40px rgba(217,178,106,.5); }
.price .cur { font-size: .45em; vertical-align: top; margin-right: .1em; }
.price .cents { font-size: .4em; }
.final-copy > p:not(.eyebrow):not(.fine) { color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.share > span { font-family: var(--caps); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: .5rem; }
.share-btn { font-family: var(--caps); font-size: .72rem; letter-spacing: .1em; padding: .5rem .85rem; background: transparent; border: 1px solid rgba(217,178,106,.35); color: var(--cream); cursor: pointer; text-decoration: none; }
.share-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
@media (max-width: 900px) { .final-inner { grid-template-columns: 1fr; text-align: center; } .share { justify-content: center; } }

/* ---------- FOOTER ---------- */
.foot { text-align: center; padding: 4rem 1.5rem 7rem; border-top: 1px solid rgba(217,178,106,.2); color: var(--muted); font-size: 1rem; }
.foot-brand { font-family: var(--display); color: var(--gold); font-size: 1.6rem; margin-bottom: .6rem; }
.disclaimer { max-width: 48rem; margin: 1.5rem auto; font-size: .9rem; font-style: italic; }
.glory { font-family: var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-size: .8rem; }

/* ---------- STICKY BUY ---------- */
.sticky-buy {
  position: fixed; z-index: 30; bottom: 1.2rem; left: 50%; translate: -50% 150%;
  font-family: var(--caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  padding: .95rem 1.8rem; color: #1a1206; text-decoration: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 30px rgba(217,178,106,.4);
  transition: translate .5s cubic-bezier(.2,.7,.2,1);
}
.sticky-buy.show { translate: -50% 0; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(3,5,12,.82); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-card {
  max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; position: relative;
  background: linear-gradient(170deg, var(--navy-2), var(--ink)); border: 1px solid rgba(217,178,106,.45);
  padding: 2.6rem; animation: pop .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-x { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; color: var(--gold); font-size: 2rem; cursor: pointer; line-height: 1; }
.m-num { font-family: var(--caps); color: var(--gold); letter-spacing: .25em; font-size: .8rem; text-transform: uppercase; }
.modal-card h3 { font-family: var(--caps); font-size: 1.8rem; color: var(--gold-hi); line-height: 1.2; margin: .4rem 0 .2rem; }
.m-sub { font-style: italic; color: var(--muted); margin-bottom: 1.6rem; }
.modal-card dt { font-family: var(--caps); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 1.2rem; }
.modal-card dd { font-size: 1.12rem; }
.m-practice { font-size: 1.35rem !important; font-style: italic; color: var(--gold-hi); border-left: 2px solid var(--gold); padding-left: 1rem; margin-top: .4rem; }
.modal-card .btn { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .title span, .hook .line { opacity: 1 !important; transform: none !important; filter: none !important; }
}
