:root {
  --navy-900: #101a2e; --navy-800: #1a2740; --navy-700: #283852; --navy-600: #33456b;
  --gold-400: #d9b968; --gold-500: #c9a24b; --gold-600: #9e8046;
  --silver-300: #c7cdd6; --silver-500: #8b95a5; --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--navy-900); scroll-behavior: smooth; }
body {
  background: var(--navy-900); color: var(--silver-300);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--navy-600);
  background: rgba(16,26,46,.92); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.wordmark { text-transform: uppercase; white-space: nowrap; }
.wordmark .light { font-family: "Montserrat", sans-serif; font-weight: 500;
  letter-spacing: .32em; color: #fff; font-size: 12px; }
.wordmark .gold { font-family: "Montserrat", sans-serif; font-weight: 800;
  letter-spacing: .08em; color: var(--gold-500); font-size: 14px; margin-left: 6px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--silver-500); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold-400); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Type helpers */
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .25em; color: var(--gold-600); }
h1, h2, h3 { font-family: "Montserrat", sans-serif; color: #fff; }
.section-title { font-weight: 600; font-size: clamp(26px, 4vw, 36px); margin-top: 14px; }
.section-sub { color: var(--silver-500); margin-top: 12px; max-width: 560px; }
.wireframe-rule { height: 1px; margin: 52px 0 0; opacity: .5;
  background: linear-gradient(90deg, transparent, var(--gold-600) 20%, var(--silver-500) 50%, var(--gold-600) 80%, transparent); }

/* Hero logo animation (base + covering clone) */
.hero { position: relative; text-align: center; padding: 64px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/hero_backdrop.jpg") center 35% / cover no-repeat;
  opacity: .16;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
}
.hero-inner { position: relative; }
.hero-mark { position: relative; width: min(340px, 70vw); aspect-ratio: 760/570;
  margin: 0 auto; perspective: 900px; filter: drop-shadow(0 12px 40px rgba(0,0,0,.5)); }
.hero-words { display: block; width: min(230px, 48vw); margin: 34px auto 0;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45)); }
.hero-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.clone-layer { transform-origin: 50% 42%; animation: flyToward 9s ease-in-out infinite; will-change: transform; }
@keyframes flyToward {
  0%   { transform: scale(1.0)  rotateY(0)     rotateZ(0); }
  25%  { transform: scale(1.06) rotateY(-7deg) rotateZ(-.8deg); }
  50%  { transform: scale(1.12) rotateY(0)     rotateZ(0); }
  75%  { transform: scale(1.06) rotateY(7deg)  rotateZ(.8deg); }
  100% { transform: scale(1.0)  rotateY(0)     rotateZ(0); }
}
@media (prefers-reduced-motion: reduce) { .clone-layer { animation: none; } }
.hero h1 { font-weight: 600; font-size: clamp(32px, 5vw, 50px); line-height: 1.15;
  max-width: 640px; margin: 22px auto 0; }
.hero .sub { max-width: 540px; margin: 16px auto 0; color: var(--silver-500); font-size: 17px; }

/* Episode list */
.episode-list { margin-top: 32px; border: 1px solid var(--navy-600); border-radius: 12px; overflow: hidden; }
.episode { display: grid; grid-template-columns: 48px 64px 1fr auto; gap: 16px;
  align-items: center; background: var(--navy-900); padding: 17px 20px;
  border-bottom: 1px solid var(--navy-600); }
.episode:last-child { border-bottom: none; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-500);
  display: grid; place-items: center; background: transparent; cursor: pointer; transition: background .2s; }
.play:hover { background: rgba(201,162,75,.12); }
.play svg { width: 14px; height: 14px; fill: var(--gold-400); }
.episode .code { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--gold-600); }
.e-title { color: #fff; font-size: 15px; font-weight: 500; }
.e-sub { color: var(--silver-500); font-size: 12px; }
.dur { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--silver-500); }
.seek { grid-column: 1 / -1; display: none; align-items: center; gap: 12px; padding-top: 4px; }
.episode.active .seek { display: flex; }
.seek input[type=range] { flex: 1; accent-color: var(--gold-500); height: 4px; }
.seek .time { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--silver-500); min-width: 88px; text-align: right; }
@media (max-width: 640px) { .episode { grid-template-columns: 48px 1fr auto; } .episode .code { display: none; } }

/* Fact breaks (parallax on desktop) */
.fact-break { position: relative; min-height: 64vh; background-size: cover;
  background-position: center; display: grid; place-items: center; padding: 80px 24px; }
@media (min-width: 1024px) and (hover: hover) { .fact-break { background-attachment: fixed; } }
.fact-break::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,26,46,.85), rgba(16,26,46,.35) 45%, rgba(16,26,46,.85)); }
.fact-card { position: relative; max-width: 620px; text-align: center; }
.fact-label { font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-400); }
.fact { margin-top: 18px; font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.fact-source { margin-top: 14px; font-size: 13px; color: var(--silver-300); }

/* Article cards */
.grid { display: grid; gap: 24px; padding: 36px 0 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { display: block; text-decoration: none; background: var(--navy-800);
  border: 1px solid var(--navy-600); border-radius: 10px; padding: 26px;
  transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(201,162,75,.6); transform: translateY(-2px); }
.data-block { font-family: "IBM Plex Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); }
.card h3 { font-weight: 600; font-size: 20px; line-height: 1.3; margin-top: 13px; transition: color .2s; }
.card:hover h3 { color: var(--gold-400); }
.card p { margin-top: 10px; font-size: 14px; color: var(--silver-500); }
.read-more { display: inline-block; margin-top: 16px; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); }

/* Article pages */
.article-hero { position: relative; min-height: 76vh; background-size: cover;
  background-position: center; display: grid; align-items: end; }
@media (min-width: 1024px) and (hover: hover) { .article-hero { background-attachment: fixed; } }
.article-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,26,46,.55), rgba(16,26,46,.96)); }
.article-hero .container { position: relative; padding-bottom: 44px; }
article.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
article.prose h2 { font-size: 24px; font-weight: 600; margin: 42px 0 14px; }
article.prose p { margin: 16px 0; font-size: 16.5px; }
article.prose strong { color: var(--white); }
article.prose .formula { font-family: "IBM Plex Mono", monospace; background: var(--navy-800);
  border: 1px solid var(--navy-600); border-radius: 8px; padding: 14px 18px;
  margin: 20px 0; color: var(--gold-400); font-size: 15px; overflow-x: auto; }
figure.blueprint { margin: 36px 0; opacity: .9; }
figure.blueprint svg { width: 100%; height: auto; }
figure.blueprint figcaption { text-align: center; margin-top: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--silver-500); }

/* Library teaser */
.price-card { position: relative; border: 1px solid var(--gold-500); background: var(--navy-800);
  border-radius: 12px; padding: 30px; max-width: 380px; }
.badge { position: absolute; top: -12px; left: 24px; background: var(--gold-500);
  color: var(--navy-900); font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.plan { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-600); }
.amount { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 40px; color: #fff; margin-top: 12px; }
.amount span { font-size: 15px; font-weight: 500; color: var(--silver-500); }
.price-card ul { list-style: none; margin: 16px 0 22px; }
.price-card li { font-size: 14px; padding: 5px 0 5px 20px; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold-600); }
.btn-soon { display: inline-block; padding: 12px 24px; border-radius: 8px;
  border: 1px dashed var(--gold-600); color: var(--gold-600);
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; }

footer { border-top: 1px solid var(--navy-600); padding: 40px 0; text-align: center; }
footer img { width: 52px; margin-bottom: 12px; }
