:root {
  --bg: #2a1912;
  --bg-2: #331f16;
  --panel: #3d271c;
  --ink: #f7ecda;
  --ink-dim: #e0cdb2;
  --ink-faint: #b39a7f;
  --gold: #d2ad69;
  --gold-hi: #efd49b;
  --gold-lo: #9c783a;
  --line: rgba(210, 173, 105, .28);
  --paper: #f3ead6;
  --paper-ink: #2a241b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); }
::selection { background: var(--gold); color: var(--bg); }

.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100; 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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-3%, 2%); }
  60% { transform: translate(2%, -3%); }
  80% { transform: translate(-1%, 3%); }
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
}
.eyebrow.center { justify-content: center; }
.rule { display: inline-block; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.center .rule:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; }
h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.04; }
h3 { font-size: 28px; line-height: 1.15; }
.mono, .link-mono { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 2px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, color .4s;
  white-space: nowrap;
}
.btn-gold {
  color: #17120a;
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  box-shadow: 0 10px 40px -12px rgba(200, 165, 101, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
  position: relative; overflow: hidden;
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(200, 165, 101, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line); color: var(--gold); padding: 12px 18px; font-size: 11px; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(200, 165, 101, .08); }
.btn-ghost .short { display: none; }
.btn-lg { padding: 20px 34px; font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background .5s, padding .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(42, 25, 18, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; overflow: visible; }
.brand-mark path { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round; }
.brand-mark .sig { stroke-width: 1.4; }
.brand-mark text { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; fill: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); transition: color .3s; }
.nav-links a:hover, .link-mono:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.link-mono { color: var(--ink-dim); transition: color .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .8;
  transform: scale(1.08);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 72% 50%, transparent 0%, rgba(42, 25, 18, .55) 60%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(42, 25, 18, .85) 38%, rgba(42, 25, 18, .2) 70%, rgba(42, 25, 18, .6) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
#scene {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-dim); max-width: 520px; margin: 30px 0 42px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.price-tag { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.price-tag span { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-left: 6px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint);
}
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 110px; width: max-content; animation: marquee 80s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink-dim); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); font-size: 12px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 100px) var(--gutter); position: relative; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* preview */
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.preview-copy p:not(.eyebrow) { color: var(--ink-dim); max-width: 460px; margin-top: 26px; }
.paper-wrap { perspective: 1400px; }
.paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 30%),
    var(--paper);
  color: var(--paper-ink);
  padding: clamp(28px, 4vw, 54px);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 50px 100px -30px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(200, 165, 101, .35),
    0 0 0 8px rgba(243, 234, 214, .04),
    0 0 80px -10px rgba(200, 165, 101, .18);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  position: relative;
}
.paper::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(138, 109, 59, .35); pointer-events: none;
}
.paper header { text-align: center; margin-bottom: 28px; }
.paper-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #8a7a5c; }
.paper h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.paper-rule { display: block; width: 70px; height: 1px; margin: 16px auto 0; background: var(--gold-lo); }
.paper p { font-family: var(--serif); font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.paper mark { background: rgba(200, 165, 101, .32); color: inherit; padding: 0 3px; }
.blurred { filter: blur(4.5px); user-select: none; opacity: .75; }
.paper-lock {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(138, 109, 59, .3);
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #6d5f45;
}
.seal {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #8a6d3b;
  border: 1px solid rgba(138, 109, 59, .45);
  background: rgba(200, 165, 101, .12);
}

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.step {
  position: relative; padding: 44px 36px 48px;
  background: linear-gradient(160deg, rgba(200, 165, 101, .08), rgba(200, 165, 101, 0) 50%), var(--panel);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(236, 210, 155, .12), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.step:hover { border-color: rgba(200, 165, 101, .55); }
.step:hover::after { opacity: 1; }
.step-no {
  display: block; font-family: var(--serif); font-size: 84px; line-height: 1; font-weight: 400;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 34px; transform: translateZ(40px);
}
.step h3 { transform: translateZ(28px); margin-bottom: 14px; }
.step p { color: var(--ink-dim); margin: 0; transform: translateZ(16px); }

/* editorial */
.editorial {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--bg-2); border-block: 1px solid var(--line);
}
.ed-img { margin: 0; overflow: hidden; border: 1px solid var(--line); position: relative; }
.ed-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.ed-img:hover img { transform: scale(1.06); }
.ed-img-b { margin-top: 90px; }
.ed-copy { text-align: center; }
.ed-copy .eyebrow { justify-content: center; }
.ed-copy blockquote { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; margin: 0 0 28px; color: var(--ink); }
.ed-copy p:not(.eyebrow) { color: var(--ink-dim); max-width: 400px; margin: 0 auto; }

/* included */
.included { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.included-img {
  min-height: 620px; background-size: cover; background-position: center;
  border: 1px solid var(--line);
  box-shadow: 30px 30px 0 -1px var(--bg-2), 30px 30px 0 0 var(--line);
}
.clauses { list-style: none; padding: 0; margin: 44px 0 0; }
.clauses li {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 17px; color: var(--ink);
  transition: padding-left .5s var(--ease), color .3s;
}
.clauses li:last-child { border-bottom: 1px solid var(--line); }
.clauses li:hover { padding-left: 10px; }
.clauses li span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); }
.clauses.compact { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(9, auto); grid-auto-flow: column; column-gap: 36px; }
.clauses.compact li { grid-template-columns: 34px 1fr; gap: 10px; padding: 13px 0; border-top: 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; }
.clauses.compact li:nth-child(1), .clauses.compact li:nth-child(10) { border-top: 1px solid var(--line); }
.clauses.compact li span { font-size: 11px; }

/* pricing */
.pricing { display: grid; place-items: center; perspective: 1400px; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200, 165, 101, .1), transparent 70%); }
.price-card {
  width: min(560px, 100%); text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: linear-gradient(170deg, rgba(200, 165, 101, .12), rgba(200, 165, 101, .02) 40%), var(--panel);
  border: 1px solid rgba(200, 165, 101, .4);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 10px rgba(200, 165, 101, .04);
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.price-card::before, .price-card::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 1px solid var(--gold);
}
.price-card::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.price-card::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.price { display: flex; justify-content: center; align-items: flex-start; gap: 10px; transform: translateZ(50px); }
.price .num {
  font-family: var(--serif); font-size: clamp(96px, 13vw, 150px); line-height: .9; font-weight: 500;
  background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price .cur { font-family: var(--serif); font-size: 34px; color: var(--gold); margin-top: 14px; }
.price-note { color: var(--ink-dim); margin: 22px auto 40px; max-width: 380px; transform: translateZ(24px); }
.price-card .btn { transform: translateZ(36px); }
.price-card .btn:hover { transform: translateZ(36px) translateY(-2px); }
.price-points { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.price-points li { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.price-points li::before { content: "◆"; color: var(--gold); margin-right: 8px; font-size: 8px; }

/* footer */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 44px var(--gutter); border-top: 1px solid var(--line); color: var(--ink-faint);
}
.footer p { margin: 0; font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero-inner { text-shadow: 0 2px 24px rgba(42, 25, 18, .9); }
  .preview, .included { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr 1fr; }
  .ed-copy { grid-column: 1 / -1; order: -1; margin-bottom: 20px; }
  .ed-img-b { margin-top: 70px; }
  .included-img { min-height: 380px; }
}
@media (max-width: 640px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .link-mono { display: none; }
  .brand-name { font-size: 18px; }
  .btn-ghost { padding: 10px 14px; font-size: 10px; letter-spacing: .18em; }
  .btn-ghost .long { display: none; }
  .btn-ghost .short { display: inline; }
  .hero { align-items: flex-end; padding-top: 110px; padding-bottom: 96px; }
  .hero .eyebrow { letter-spacing: .16em; font-size: 10px; gap: 10px; }
  .hero .rule { width: 22px; }
  .lead { margin: 22px 0 30px; }
  .hero::before {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(42, 25, 18, .85) 45%, rgba(42, 25, 18, .25) 80%, rgba(42, 25, 18, .6) 100%);
  }
  .included-img { box-shadow: none; }
  .step { padding: 34px 26px 38px; }
  .clauses li { grid-template-columns: 48px 1fr; font-size: 16px; }
  .clauses.compact { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .clauses.compact li { grid-template-columns: 40px 1fr; }
  .clauses.compact li:nth-child(10) { border-top: 0; }
  .marquee span { font-size: 20px; }
  .marquee-track { gap: 70px; }
}
.static-shot .hero { min-height: 900px; }
.static-shot .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .scroll-hint span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
