/* ————— The First-Time Buyer Masterclass — dark editorial ————— */

:root {
  --black: #0a0a09;
  --black-2: #111110;
  --white: #f5f2ea;
  --dim: rgba(245, 242, 234, 0.6);
  --faint: rgba(245, 242, 234, 0.32);
  --gold: #c3a25f;
  --gold-dim: rgba(195, 162, 95, 0.4);
  --hairline: rgba(245, 242, 234, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* cross-fade between pages (Chromium/Safari MPA view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.35s; }
::view-transition-new(root) { animation-duration: 0.55s; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: var(--black); }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* film grain — quiet analog texture over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

/* ————— Top nav ————— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand em { font-style: italic; color: var(--gold); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}
.nav a:hover { color: var(--gold); }
.nav .nav-cta {
  color: var(--black);
  background: var(--gold);
  padding: 11px 22px;
  font-weight: 600;
  transition: background 0.3s;
}
.nav .nav-cta:hover { background: var(--white); color: var(--black); }

/* ————— Masthead hero ————— */
.hero {
  position: relative;
  padding: clamp(60px, 9vh, 110px) 0 0;
  overflow: hidden;
}
.hero-kicker {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 18px;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--faint);
}
.hero-kicker .mid { color: var(--gold); }
.masthead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 12.5vw, 190px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-align: center;
  padding: clamp(36px, 6vh, 70px) 0 0;
  text-transform: uppercase;
}
.masthead .line2 {
  display: block;
  font-style: italic;
  text-transform: none;
  color: var(--gold);
  font-size: 0.42em;
  letter-spacing: 0.04em;
  margin-top: 14px;
}
.hero-deck {
  margin: clamp(34px, 5vh, 56px) auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--dim);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 18px);
}
.hero-cta {
  margin: 44px auto 0;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 38px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--gold);
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn:hover::before { left: 130%; }
.btn:hover { background: var(--white); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(245, 242, 234, 0.3); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

.hero-foot {
  margin-top: clamp(60px, 9vh, 100px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.hero-foot .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px clamp(10px, 2vw, 30px);
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat .num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--gold);
  line-height: 1;
}
.stat .lbl {
  margin-top: 10px;
  font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--faint);
}

/* ————— Marquee ————— */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--faint);
  margin: 0 28px;
}
.marquee b { color: var(--gold); font-weight: 500; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ————— Sections ————— */
.section { padding: clamp(90px, 13vh, 160px) 0; }
.section-head { margin-bottom: clamp(50px, 7vh, 84px); }
.section-head.center { text-align: center; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  margin-top: 20px;
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head p { margin: 20px auto 0; color: var(--dim); font-weight: 300; max-width: 58ch; }

/* ————— The Acts (course index) ————— */
.acts { border-top: 1px solid var(--hairline); }
.act {
  display: grid;
  grid-template-columns: minmax(90px, 200px) 1fr auto;
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
  padding: clamp(34px, 5vh, 56px) 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.act:hover { padding-left: 14px; }
.act-num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(52px, 7vw, 110px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  transition: all 0.4s var(--ease);
}
.act:hover .act-num { color: var(--gold); -webkit-text-stroke: 1px var(--gold); }
.act-info .act-kicker {
  font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}
.act-info h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  transition: color 0.3s;
}
.act:hover .act-info h3 { color: var(--gold); }
.act-info .tagline { margin-top: 12px; color: var(--dim); font-weight: 300; font-size: 15px; max-width: 52ch; }
.act-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.act-count { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.act-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  font-size: 17px;
  color: var(--dim);
  transition: all 0.35s var(--ease);
}
.act:hover .act-arrow { background: var(--gold); color: var(--black); border-color: var(--gold); transform: rotate(-45deg); }
.progress-pill {
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 5px 14px; border-radius: 100px;
  white-space: nowrap;
}

/* ————— Pull quote ————— */
.quote-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(195, 162, 95, 0.07), transparent 65%),
    var(--black-2);
  text-align: center;
  padding: clamp(90px, 13vh, 150px) 0;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 62px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  max-width: 24ch;
  margin: 0 auto;
}
.quote-band blockquote span { color: var(--gold); }
.quote-band cite {
  display: block; margin-top: 36px;
  font-style: normal; font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--faint);
}

/* ————— Journey chapters ————— */
.chapters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.chapter {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 44px 28px 54px;
  transition: background 0.35s var(--ease);
  position: relative;
}
.chapter:hover { background: rgba(195, 162, 95, 0.05); }
.chapter .roman {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--gold);
}
.chapter h4 {
  font-family: var(--serif);
  font-size: 23px; font-weight: 500;
  margin: 18px 0 12px;
  line-height: 1.15;
}
.chapter p { font-size: 13px; color: var(--dim); font-weight: 300; line-height: 1.6; }

/* ————— Manifesto ————— */
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 120px); align-items: start; }
.manifesto h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
}
.manifesto h2 em { font-style: italic; color: var(--gold); }
.manifesto-body { padding-top: 10px; }
.manifesto-body p { color: var(--dim); font-weight: 300; margin-bottom: 22px; font-size: 15.5px; }
.manifesto-body p::first-letter { color: var(--gold); }
.manifesto-body .sig {
  margin-top: 34px;
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--white);
}

/* ————— Closing CTA ————— */
.closing {
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding: clamp(100px, 15vh, 180px) 0;
  background: radial-gradient(800px 400px at 50% -20%, rgba(195, 162, 95, 0.08), transparent 60%);
}
.closing h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1;
}
.closing h2 em { font-style: italic; color: var(--gold); }
.closing p { margin: 26px auto 0; color: var(--dim); font-weight: 300; max-width: 46ch; }
.closing .btn { margin-top: 44px; }

/* ————— Footer ————— */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 8vh, 84px) 0 40px;
  background: var(--black-2);
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-note { margin-top: 14px; max-width: 40ch; font-weight: 300; font-size: 13.5px; color: var(--dim); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 12.5px; color: var(--dim); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-links .fl-label {
  font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 6px;
}
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 11px; color: var(--faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  letter-spacing: 0.08em;
}

/* reveal — light, GPU-only, never blocks the scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 0.06s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* masthead slow letter-spacing settle */
.masthead { animation: tighten 1.6s var(--ease) both 0.1s; }
@keyframes tighten {
  from { letter-spacing: 0.09em; opacity: 0; }
  to { letter-spacing: 0.01em; opacity: 1; }
}

/* marquee pauses under the cursor */
.marquee:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .masthead { animation: none; }
  .marquee-track { animation: none; }
}

/* ————— Responsive ————— */
@media (max-width: 980px) {
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .manifesto { grid-template-columns: 1fr; }
  .hero-foot .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 58px; gap: 12px; }
  .brand { font-size: 16px; white-space: nowrap; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta {
    padding: 9px 14px;
    font-size: 9px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  /* hero: stacked kicker, tighter rhythm, full-width CTAs */
  .hero { padding-top: 48px; }
  .hero-kicker {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    letter-spacing: 0.28em;
  }
  .masthead { font-size: 12.5vw; padding-top: 34px; animation: none; opacity: 1; }
  .masthead .line2 { font-size: 0.52em; margin-top: 10px; }
  .hero-deck { font-size: 15px; padding: 0 4px; }
  .hero-cta { flex-direction: column; margin-top: 34px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-foot { margin-top: 52px; }
  .stat { padding: 22px 8px; }
  .stat .num { font-size: 26px; }
  .stat .lbl { font-size: 8.5px; letter-spacing: 0.22em; }
  .marquee { padding: 14px 0; }
  .marquee span { font-size: 14px; margin: 0 18px; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  /* acts: card-like, tap-friendly */
  .act { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .act:hover { padding-left: 0; }
  .act-num { font-size: 40px; }
  .act-info h3 { font-size: 26px; }
  .act-info .tagline { font-size: 14px; }
  .act-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .act-arrow { width: 42px; height: 42px; font-size: 14px; }

  .quote-band { padding: 70px 0; }
  .quote-band blockquote { font-size: 26px; }
  .chapters { grid-template-columns: 1fr; }
  .chapter { padding: 30px 22px 34px; }
  .closing { padding: 90px 0; }
  .closing .btn { width: 100%; justify-content: center; }
  .footer-grid { flex-direction: column; }
}
