/* ============================================================
   Nikita Khatsarevich — DP Platform (static build)
   Ported 1:1 from the Next.js editorial landing.
   A24 / MUBI / Apple aesthetic: monochrome, editorial, black.
   ============================================================ */

:root {
  --background: #000000;   /* deep black */
  --surface: #0d0d0f;      /* barely-there elevation */
  --surface-2: #161618;    /* nested elements */
  --foreground: #f2f2f0;   /* warm off-white (editorial) */
  --muted: #8a8a8e;
  --border: #1e1e20;       /* hairline */
  --accent: #e7e2d8;       /* restrained warm highlight */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { letter-spacing: -0.02em; margin: 0; font-weight: 600; }

/* Layout container — mirrors max-w-6xl + px-5 */
.wrap {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Editorial primitives ---------- */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-solid {
  background: var(--foreground);
  color: #000;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--foreground);
  transition: opacity 0.15s ease, transform 0.08s ease;
}
.btn-solid:hover { opacity: 0.85; }
.btn-solid:active { transform: translateY(1px); }

/* Patreon-coral "Become a member" — promo bar + article CTA blocks only
   (hero and home final CTA stay white) */
.promo-bar .btn-solid,
body:not(.is-home) .final-cta .btn-solid {
  background: #ff424d;
  color: #fff;
  border-color: #ff424d;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.22s ease, transform 0.16s ease;
}
.promo-bar .btn-solid:hover,
body:not(.is-home) .final-cta .btn-solid:hover {
  background: #f2323e;
  border-color: #f2323e;
  opacity: 1;
}
body:not(.is-home) .final-cta .hero-cta { box-shadow: 0 12px 44px rgba(255, 66, 77, 0.32); }
body:not(.is-home) .final-cta .hero-cta:hover { box-shadow: 0 18px 56px rgba(255, 66, 77, 0.46); }

.btn-line {
  border: 1px solid #38383c;
  color: var(--foreground);
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-line:hover {
  border-color: var(--foreground);
  background: rgba(255, 255, 255, 0.04);
}
.btn-square { border-radius: 0.125rem; }
.btn-lg { font-size: 1rem; }

.link-muted { color: var(--foreground); transition: color 0.15s ease; }
.link-muted:hover { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.nav-links { display: none; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin-left: auto; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 9999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--foreground); background: rgba(255, 255, 255, 0.05); }
.nav-ig { display: inline-flex; align-items: center; }
.nav-ig svg { width: 1.2rem; height: 1.2rem; display: block; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }

/* Header "Become a member" — coral, desktop only */
.nav-join {
  display: none;
  align-items: center;
  padding: 0.52rem 1.15rem;
  border-radius: 9999px;
  background: #ff424d;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.08s ease;
}
.nav-join:hover { background: #f2323e; }
.nav-join:active { transform: translateY(1px); }
@media (min-width: 768px) { .nav-join { display: inline-flex; } }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2rem; height: 2rem;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 20px;
  background: var(--foreground);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 0.6rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.mobile-menu a:hover { color: var(--foreground); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 90vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);          /* tiny push-in so edges never show */
}
/* Cinematic multi-layer wash: darker at the bottom-left where the copy sits */
.hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--background) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.12) 74%, rgba(0,0,0,0.4) 100%),
    linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 42%, rgba(0,0,0,0) 72%);
}
.hero-inner { position: relative; padding-bottom: 5rem; }

/* Eyebrow with a small live dot */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; color: rgba(242,242,240,0.72); }
.hero-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 7px rgba(255, 59, 48, 0.75);
  animation: recBlink 1.4s steps(1, end) infinite;
}
/* Blinks on/off like a camera REC light */
@keyframes recBlink {
  0%, 62%      { opacity: 1; }
  62.01%, 100% { opacity: 0.12; }
}

.hero-title {
  margin-top: 1.15rem;
  max-width: 52rem;
  font-size: clamp(2.4rem, 6.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-intro {
  margin-top: 1.35rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(242, 242, 240, 0.82);
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Premium primary CTA in the hero */
.hero-cta {
  padding: 0.95rem 2.1rem;
  font-size: 1.05rem;
  gap: 0.6rem;
  box-shadow: 0 12px 44px rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, box-shadow 0.22s ease, opacity 0.15s ease;
}
.hero-cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 18px 56px rgba(255, 255, 255, 0.24);
}
.hero-cta:active { transform: translateY(0); }
.hero-cta .btn-arrow { transition: transform 0.2s ease; }
.hero-cta:hover .btn-arrow { transform: translateX(4px); }

/* Glass secondary CTA on the image */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  color: var(--foreground);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn-glass:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.42); }
.btn-glass:active { transform: translateY(1px); }
.btn-glass .btn-arrow { transition: transform 0.2s ease; }
.btn-glass:hover .btn-arrow { transform: translateX(3px); }

/* Social-proof row under the CTAs */
.hero-proof {
  margin-top: 1.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  font-size: 0.8125rem;
  color: rgba(242,242,240,0.66);
}
.hero-proof-item { display: inline-flex; align-items: center; }
.hero-proof .patreon-mark { width: 0.85rem; height: 0.85rem; color: #ff424d; margin-right: 0.45rem; }
.hero-proof strong { color: var(--foreground); font-weight: 600; }
.hero-proof-sep { opacity: 0.45; }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.4rem;
  height: 2.3rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
  z-index: 2;
}
.hero-scroll span {
  width: 3px; height: 0.5rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
  animation: heroScroll 1.7s ease-in-out infinite;
}
@keyframes heroScroll {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40%      { opacity: 1; }
  60%      { opacity: 1; transform: translateY(0.55rem); }
  80%      { opacity: 0; transform: translateY(0.55rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-live, .hero-scroll span { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 5rem; scroll-margin-top: 5rem; }
.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
}
.lede {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: var(--muted);
}
.hairline { border-top: 1px solid var(--border); }

/* Shared media thumb */
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 0.125rem;
  background: var(--surface);
}
.thumb-video { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

/* ---------- Breakdown cards ---------- */
.breakdown-grid { position: relative; margin-top: 2.25rem; column-gap: 1.5rem; row-gap: 2.5rem; }
.card .thumb img { transition: transform 0.5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.lock {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: #fff;
  backdrop-filter: blur(6px);
}
.lock-ic { width: 0.72rem; height: 0.72rem; flex-shrink: 0; }
/* Free variant — identical to the Members pill, just no lock icon */
.breakdown-grid .card.is-hidden { display: none; }

/* Breakdown Library — segmented topic filter (left-aligned, under the header) */
.bd-filters {
  position: relative;
  display: inline-flex;
  gap: 0.2rem;
  margin-top: 1.9rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  max-width: 100%;
}
/* Sliding white pill that glides between filters */
.bd-indicator {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: 0;
  border-radius: 9999px;
  background: var(--foreground);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd-filter {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.bd-filter:hover { color: var(--foreground); }
.bd-filter.is-active { color: #000; }
.bd-count {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.bd-filter.is-active .bd-count { opacity: 0.6; }
.breakdown-grid.has-filter { margin-top: 1.9rem; }
/* Filter transitions are handled per-card (FLIP) in script.js */

@media (max-width: 560px) {
  .bd-filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bd-filters::-webkit-scrollbar { display: none; }
  .bd-filter { flex: 0 0 auto; }
}

.show-more-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.75rem;
  border-radius: 9999px;
  border: 1px solid #38383c;
  background: transparent;
  color: var(--foreground);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.08s ease;
}
.show-more:hover { border-color: var(--foreground); background: rgba(255, 255, 255, 0.06); }
.show-more:active { transform: translateY(1px); }
.show-more-arrow { font-size: 1.15rem; line-height: 1; transition: transform 0.2s ease; }
.show-more:hover .show-more-arrow { transform: translateY(3px); }
.tag-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.card-title { margin-top: 0.375rem; font-size: 1.125rem; font-weight: 500; }
.card-sub { margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Courses ---------- */
.course-list {
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.course-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.5rem;
}
.course-row + .course-row { border-top: 1px solid var(--border); }
.course-thumb { max-width: 10rem; }
.course-title { margin-top: 0.25rem; font-size: 1.25rem; font-weight: 500; transition: color 0.15s ease; }
.course-row:hover .course-title { color: var(--muted); }
.course-desc { max-width: 36rem; }
.course-view { display: none; font-size: 0.875rem; color: var(--muted); transition: color 0.15s ease; }
.course-row:hover .course-view { color: var(--foreground); }
.section-cta { margin-top: 2rem; }

/* ---------- Journal ---------- */
.journal-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 0.125rem;
  background: var(--border);
  overflow: hidden;
}
.journal-cell { background: var(--background); padding: 1.5rem; }
.journal-title { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 500; line-height: 1.35; }

/* ---------- Archive ---------- */
.archive-grid { margin-top: 2.25rem; }
.archive-cell img { opacity: 0.9; transition: opacity 0.2s ease; }
.archive-cell:hover img { opacity: 1; }

/* ---------- Membership ---------- */
.membership {
  border-top: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.5);
}
.membership-inner { padding-block: 5rem; }
.tier-grid { margin-top: 2.5rem; }
.tier {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.125rem;
  padding: 1.75rem;
}
.tier-highlight {
  border-color: rgba(242, 242, 240, 0.4);
  background: var(--background);
}
.tier-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.tier-price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.25rem; }
.price { font-size: 2.25rem; font-weight: 600; }
.period { font-size: 0.875rem; color: var(--muted); }
.tier-note { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted); }
.tier-benefits {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.tier-benefits li { display: flex; gap: 0.625rem; color: rgba(242, 242, 240, 0.85); }
.tier-benefits .dash { color: var(--muted); }
.tier-cta { margin-top: 1.75rem; }

/* Hero debug picker (local only) */
.hero-debug-toggle {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 201;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid #2a2a2e;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.hero-debug-toggle.open { border-color: var(--accent); }

.hero-debug {
  position: fixed;
  right: 0.9rem;
  bottom: 3.9rem;
  z-index: 200;
  width: min(90vw, 400px);
  background: rgba(10, 10, 12, 0.94);
  border: 1px solid #2a2a2e;
  border-radius: 0.55rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  padding: 0.55rem;
  font-family: var(--font-mono, monospace);
}
.hero-debug-head { font-size: 0.6875rem; color: var(--accent); margin-bottom: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-debug-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.hero-debug .thumb-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.hero-debug .thumb-btn img { width: 100%; height: 40px; object-fit: cover; display: block; border-radius: 0.35rem 0.35rem 0 0; }
.hero-debug .thumb-btn span { display: block; font-size: 0.5rem; color: var(--muted); padding: 0.15rem 0.1rem; text-align: center; line-height: 1.2; }
.hero-debug .thumb-btn.active { border-color: var(--accent); }
.hero-debug .thumb-btn.active span { color: var(--accent); }

/* Full-bleed BTS bands used as cinematic dividers between blocks */
.bts-band { display: block; overflow: hidden; background: var(--surface); }
.bts-band > img {
  display: block;
  width: 100%;
  height: clamp(320px, 58vh, 640px);
  object-fit: cover;
  filter: saturate(1.02);
}
/* Parallax band — image is taller than the window and shifts on scroll */
.bts-parallax {
  position: relative;
  overflow: hidden;
  height: clamp(380px, 66vh, 720px);
  background: var(--surface);
}
.bts-parallax img {
  position: absolute;
  top: -16%;
  left: 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
  will-change: transform;
}

.bts-band.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.bts-band.strip img { height: clamp(240px, 34vh, 440px); }
@media (max-width: 640px) {
  .bts-band.strip { grid-template-columns: 1fr 1fr; }
  .bts-band.strip img { height: 42vw; }
  .bts-band.strip img:last-child { grid-column: 1 / -1; height: 54vw; } /* 3rd photo spans full width — no empty cell */
}

/* ============================================================
   Marketing sections (What's included, stats, benefits, CTA)
   ============================================================ */
/* Feature grid */
.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  overflow: hidden;
}
.feature { background: var(--background); padding: 1.75rem; }
.feature-icon { display: inline-flex; color: var(--accent); }
.feature-icon svg { width: 1.75rem; height: 1.75rem; }
.feature-title { margin-top: 1rem; font-size: 1.0625rem; font-weight: 600; }
.feature-text { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

/* Stats strip */
.stats-strip { background: var(--background); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: transparent;
}
.stat {
  background: var(--background);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-num { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 0.8125rem; color: var(--muted); }

/* Check list */
.check-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 2.5rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: rgba(242, 242, 240, 0.9);
}
.check-list .check {
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
  flex: none;
}

/* Roles */
.roles { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.role {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: rgba(242, 242, 240, 0.9);
}

/* Benefits list */
.benefits-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  overflow: hidden;
}
.benefits-list li {
  background: var(--background);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  font-size: 0.98rem;
  color: rgba(242, 242, 240, 0.9);
}
.benefit-icon { font-size: 1.15rem; line-height: 1; flex: none; }

/* Final CTA */
/* Cinematic closing CTA — mirrors the hero treatment */
.final-cta { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: #000; scroll-margin-top: 4.5rem; }
/* Home CTA sits mid-page → close it with a bottom line like the top; posts keep the clean gradient */
body.is-home .final-cta { border-bottom: 1px solid var(--border); }
.final-cta-parallax { position: absolute; inset: 0; overflow: hidden; }
.final-cta-bg { position: absolute; top: -16%; left: 0; width: 100%; height: 132%; object-fit: cover; will-change: transform; }
.final-cta-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.8) 86%, #000 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.final-cta-inner { position: relative; padding-block: 8rem; text-align: center; }
.final-cta-eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; color: rgba(242,242,240,0.75); }
.final-cta-title {
  margin-top: 0.9rem;
  font-size: clamp(2.1rem, 5.4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 42rem;
  margin-inline: auto;
}
.final-cta-dek { margin-top: 1.1rem; margin-inline: auto; text-align: center; color: rgba(242,242,240,0.8); }
.final-cta-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.final-cta-proof { justify-content: center; margin-top: 1.9rem; color: rgba(242,242,240,0.68); }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-list { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Post page (breakdown article)
   ============================================================ */
/* One balanced, centered column for the whole article */
.post { padding-bottom: 2rem; }
.post-head,
.post-hero,
.post-body { max-width: 64rem; }

.post-head { padding-top: 3rem; }

/* Prominent Back button, left-aligned */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid #38383c;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: border-color 0.15s ease, background 0.15s ease, gap 0.15s ease;
}
.post-back:hover { border-color: var(--foreground); background: rgba(255, 255, 255, 0.05); gap: 0.75rem; }
.post-back-arrow { font-size: 1.05rem; line-height: 1; }

.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.post-badge { position: static; backdrop-filter: none; }
.post-title { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; }
.post-dek { margin-top: 1.25rem; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }

.post-hero { margin-top: 2.5rem; }
.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* Article body — comfortable editorial measure */
.post-body { padding-top: 2.5rem; padding-bottom: 1rem; }
.post-body > p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(242, 242, 240, 0.86);
  margin: 0 0 1.4rem;
}
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--foreground); }

.post-fig { margin: 2rem 0; }
.post-fig img { width: 100%; height: auto; border-radius: 0.25rem; background: var(--surface); }
/* Two figures side by side in one row */
.post-fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; align-items: start; }
.post-fig-row .post-fig { margin: 0; }
@media (max-width: 600px) { .post-fig-row { grid-template-columns: 1fr; } }

.post-video { position: relative; margin: 2rem 0; aspect-ratio: 16 / 9; border-radius: 0.25rem; overflow: hidden; background: var(--surface); }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-cta-band {
  margin-top: 3.5rem;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.5);
}
.post-cta-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-brand {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--foreground);
}
.footer-legal { margin-top: 0.75rem; font-size: 0.75rem; }

/* Mobile pinned CTA — hidden by default, shown on phones only */
.mobile-cta {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2rem;
  z-index: 31;
  padding: 1.05rem 2.25rem;
  font-size: 1.0625rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
/* Gradient scrim so the pinned pill sits on a clean base, not on top of text */
.mobile-cta-scrim {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(to top, var(--background) 26%, rgba(0, 0, 0, 0.55) 60%, transparent);
}

@media (max-width: 767px) {
  /* Non-home pages keep the plain pinned CTA pill */
  .mobile-cta { display: inline-flex; }
  .mobile-cta-scrim { display: block; }
  body { padding-bottom: 7rem; }
  /* Where the promo bar runs (home + articles) it IS the mobile CTA — retire the plain pill */
  body.has-promo .mobile-cta,
  body.has-promo .mobile-cta-scrim { display: none; }
  body.has-promo { padding-bottom: 2rem; }
  /* Hero keeps its own full-width CTA button on phones */
  .hero-actions { flex-direction: column; align-items: stretch; }
  /* Hero crop: shift left so the DP (subject) is visible in portrait */
  .hero-bg { object-position: 20% center; }
  .hero-scroll { display: none; }
  .hero { min-height: 84vh; }

  /* Hero text — tighter, more elegant rhythm on phones */
  .hero-inner { padding-bottom: 3rem; }
  .hero .eyebrow { font-size: 0.625rem; letter-spacing: 0.16em; }
  .hero-title {
    margin-top: 0.85rem;
    font-size: 2.15rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }
  .hero-intro {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(242, 242, 240, 0.72);
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .course-row { grid-template-columns: 10rem 1fr auto; gap: 1.75rem; }
  .course-view { display: block; }
}

@media (min-width: 768px) {
  .journal-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Footer legal links ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--foreground); }
.footer-ig { display: inline-flex; align-items: center; }
.footer-ig svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal { max-width: 52rem; padding-top: 7rem; }
.legal .section-title { margin-top: 0.75rem; }
.legal-meta {
  margin-top: 1rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.legal-body { margin-top: 2.5rem; color: #c9c9c6; line-height: 1.7; }
.legal-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--foreground);
}
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-body li { margin-bottom: 0.5rem; }
.legal-body a { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent); }
.legal-body strong { color: var(--foreground); font-weight: 600; }
.legal-back { margin-top: 3rem; }
.legal-back a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.legal-back a:hover { color: var(--foreground); }

/* ---------- Promo bar (Become a member) ---------- */
.promo-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 51rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem 1.15rem 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.promo-bar.is-visible { transform: translateY(0); opacity: 1; }
.promo-thumbs {
  flex-shrink: 0;
  position: relative;
  width: 7.25rem;
  height: 3.5rem;
}
.promo-thumbs > * {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.1rem;
  height: 2.45rem;      /* ~16:9 mini-card */
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.promo-thumbs img { object-fit: cover; }
/* neat left-leaning deck: 3 photos peeking behind a "+50" tile */
.promo-thumbs > :nth-child(1) { transform: translate(-50%, -50%) rotate(-13deg) translateX(-1.55rem); z-index: 1; }
.promo-thumbs > :nth-child(2) { transform: translate(-50%, -50%) rotate(-7deg)  translateX(-0.9rem);  z-index: 2; }
.promo-thumbs > :nth-child(3) { transform: translate(-50%, -50%) rotate(-1deg)  translateX(-0.25rem); z-index: 3; }
.promo-thumbs > :nth-child(4) { transform: translate(-50%, -50%) rotate(7deg)   translateX(0.65rem);  z-index: 4; }
.promo-bar:hover .promo-thumbs > :nth-child(1) { transform: translate(-50%, -50%) rotate(-18deg) translateX(-2rem); }
.promo-bar:hover .promo-thumbs > :nth-child(2) { transform: translate(-50%, -50%) rotate(-9deg)  translateX(-1.1rem); }
.promo-bar:hover .promo-thumbs > :nth-child(3) { transform: translate(-50%, -50%) rotate(0deg)   translateX(-0.2rem); }
.promo-bar:hover .promo-thumbs > :nth-child(4) { transform: translate(-50%, -50%) rotate(10deg)  translateX(0.95rem); }
/* the "+50" count card — same weight as the photos, not louder */
.promo-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #202024, #121215);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--foreground);
}
.promo-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.promo-text strong { color: var(--foreground); font-weight: 600; }
.promo-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.promo-bar .btn-solid {
  flex-shrink: 0;
  padding: 0.65rem 1.6rem;
  font-size: 0.875rem;
}
.promo-members {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.promo-count-wrap { display: inline-flex; align-items: center; gap: 0.35rem; }
.promo-members .patron-count { color: var(--foreground); font-weight: 600; }
.patreon-mark { width: 0.72rem; height: 0.72rem; color: #ff424d; flex-shrink: 0; }
.promo-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.promo-close:hover { color: var(--foreground); background: #222227; border-color: #38383c; }

/* Duplicate CTA on phones (pinned bar already covers it) → desktop only */
@media (max-width: 767px) {
  .legal { padding-top: 5.5rem; }

  /* Promo bar becomes the mobile CTA: stacked deck → text → full-width button → count */
  .promo-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    left: 0.6rem;
    right: auto;
    bottom: 0.8rem;
    width: calc(100vw - 1.2rem);
    max-width: none;
    gap: 0.7rem;
    padding: 2rem 1rem 1.1rem;   /* extra top room so text clears the peeking deck */
  }
  /* Deck peeks out above the bar (like the close button) → shorter bar */
  .promo-thumbs {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -54%);
    width: 6.25rem;
    height: 3rem;
  }
  .promo-text { flex: none; min-width: 0; font-size: 0.82rem; line-height: 1.5; text-align: center; }
  .promo-cta { width: 100%; gap: 0.6rem; }
  .promo-bar .btn-solid { width: 100%; padding: 0.85rem; font-size: 0.95rem; }
  .promo-close { top: -0.7rem; right: -0.35rem; width: 1.8rem; height: 1.8rem; }
}

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { color: var(--foreground); }
.faq-item summary:hover::after { border-color: var(--foreground); }
.faq-a {
  padding: 0 0.25rem 1.5rem;
  max-width: 46rem;
  color: #c9c9c6;
  line-height: 1.7;
}
.faq-a p { margin: 0 0 0.85rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0.25rem 0 0; padding-left: 1.15rem; }
.faq-a li { margin-bottom: 0.55rem; }
.faq-a strong { color: var(--foreground); font-weight: 600; }

/* subtle open animation */
.faq-item[open] .faq-a { animation: faqReveal 0.28s ease; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Post: persistent floating "back home" ---------- */
.post-back-fixed {
  position: fixed;
  top: 5.9rem;
  left: 1.5rem;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem 0.6rem 0.95rem;
  border-radius: 9999px;
  background: rgba(13, 13, 15, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.15s ease, border-color 0.15s ease;
}
.post-back-fixed.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.post-back-fixed:hover { color: var(--foreground); border-color: #38383c; }
.post-back-fixed .arrow { font-size: 1.05rem; line-height: 1; transition: transform 0.2s ease; }
.post-back-fixed:hover .arrow { transform: translateX(-3px); }

/* ---------- Post: "more breakdowns" playlist ---------- */
.post-more { padding-top: 4.5rem; padding-bottom: 1rem; }
.post-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-more-head .section-title { margin-top: 0.4rem; }
.post-more-all { flex-shrink: 0; font-size: 0.85rem; color: var(--muted); transition: color 0.15s ease; }
.post-more-all:hover { color: var(--foreground); }
.post-more-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* hide the stray scrollbar line */
}
.post-more-row::-webkit-scrollbar { display: none; }
.post-more-row .card { flex: 0 0 clamp(14rem, 38vw, 18.5rem); scroll-snap-align: start; }

@media (max-width: 767px) {
  .post-back-fixed { top: 5.25rem; left: 1rem; padding: 0.5rem 1rem 0.5rem 0.85rem; font-size: 0.8rem; }
  .post-more-row .card { flex-basis: 72vw; }
}

/* ============================================================
   Scroll-reveal animations
   ============================================================ */
/* Hero: flash-free staggered entrance on load */
.hero-inner > * { opacity: 0; animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.27s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.39s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.5s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-scroll { opacity: 0; animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards; }

/* Everything else: revealed on scroll by IntersectionObserver (adds .in-view) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .hero-scroll { opacity: 1; animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
