/* ==========================================================================
   Metals & Machines — dark design system
   Research publisher: a weekly brief on mining, uranium & defense.
   ========================================================================== */

@import url("fonts.css"); /* self-hosted fonts: no request to Google */

:root {
  --bg:          #0F1317;
  --bg-raised:   #141A1F;
  --surface:     #1A2128;
  --surface-2:   #222A32;
  --line:        rgba(220, 230, 240, 0.09);
  --line-strong: rgba(220, 230, 240, 0.17);

  --text:        #EEF2F5;
  --text-soft:   #BCB6AE;
  --text-faint:  #8D877F;

  --accent:      #7FA9D8;
  --accent-deep: #5E8CC2;
  --accent-soft: #A8C6E8;
  --accent-tint: rgba(127, 169, 216, 0.12);
  --on-accent:   #0B1520;

  --mining:  #E3AE55;
  --uranium: #B7D36B;
  --defense: #B39DDB;

  --ok:   #62B883;
  --bad:  #E2665C;

  --nav-bg:       rgba(15, 19, 23, 0.82);
  --bar-bg:       rgba(15, 19, 23, 0.94);
  --footer-bg:    #0A0806;
  --hover-tint:   rgba(220, 230, 240, 0.07);
  --input-bg:     rgba(15, 19, 23, 0.6);
  --shadow-deep:  rgba(0, 0, 0, 0.8);
  --accent-glow:  rgba(127, 169, 216, 0.7);
  color-scheme: dark;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;

  --ease: cubic-bezier(.16,.8,.24,1);
  --ease-soft: cubic-bezier(.33,.1,.2,1);
}

/* ---------- Light theme ----------
   The visitor picks it with the sun/moon button (remembered in this browser, see main.js); without a choice the
   site follows the system setting. Both blocks below hold the same values. Text colours are darker than their
   dark-theme twins so every one of them keeps at least 4.5:1 contrast on the light background. */
:root[data-theme="light"] {
  --bg: #F5F3EF; --bg-raised: #EEEBE5; --surface: #FFFFFF; --surface-2: #F1EEE8;
  --line: rgba(20, 24, 28, 0.10); --line-strong: rgba(20, 24, 28, 0.18);
  --text: #15191D; --text-soft: #4B5057; --text-faint: #646970;
  --accent: #2F6DB0; --accent-deep: #24578E; --accent-soft: #255A95; --accent-tint: rgba(47, 109, 176, 0.10); --on-accent: #FFFFFF;
  --mining: #8A5A0B; --uranium: #4E7418; --defense: #6340A8;
  --ok: #2B7F4B; --bad: #B23A2E;
  --nav-bg: rgba(245, 243, 239, 0.88); --bar-bg: rgba(245, 243, 239, 0.96); --footer-bg: #EDE9E3;
  --hover-tint: rgba(20, 24, 28, 0.06); --input-bg: #FFFFFF; --shadow-deep: rgba(20, 24, 28, 0.16); --accent-glow: rgba(47, 109, 176, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F3EF; --bg-raised: #EEEBE5; --surface: #FFFFFF; --surface-2: #F1EEE8;
    --line: rgba(20, 24, 28, 0.10); --line-strong: rgba(20, 24, 28, 0.18);
    --text: #15191D; --text-soft: #4B5057; --text-faint: #646970;
    --accent: #2F6DB0; --accent-deep: #24578E; --accent-soft: #255A95; --accent-tint: rgba(47, 109, 176, 0.10); --on-accent: #FFFFFF;
    --mining: #8A5A0B; --uranium: #4E7418; --defense: #6340A8;
    --ok: #2B7F4B; --bad: #B23A2E;
    --nav-bg: rgba(245, 243, 239, 0.88); --bar-bg: rgba(245, 243, 239, 0.96); --footer-bg: #EDE9E3;
    --hover-tint: rgba(20, 24, 28, 0.06); --input-bg: #FFFFFF; --shadow-deep: rgba(20, 24, 28, 0.16); --accent-glow: rgba(47, 109, 176, 0.35);
    color-scheme: light;
  }
}

/* Photo areas stay dark in both themes (their text sits on a photograph), and so does the home page's nav
   while it floats over the hero photo. */
.hero-carousel, .sector-banner, .photo-top .nav:not(.is-scrolled) {
  --text: #EEF2F5; --text-soft: #BCB6AE; --text-faint: #8D877F;
  --line: rgba(220, 230, 240, 0.09); --line-strong: rgba(220, 230, 240, 0.17);
  --accent: #7FA9D8; --accent-soft: #A8C6E8; --on-accent: #0B1520; --accent-glow: rgba(127, 169, 216, 0.7);
  --mining: #E3AE55; --uranium: #B7D36B; --defense: #B39DDB; --hover-tint: rgba(220, 230, 240, 0.07);
  color: var(--text);
}
:root[data-theme="light"] .hero-scrim { background: linear-gradient(90deg, rgba(15,19,23,.94) 0%, rgba(15,19,23,.78) 42%, rgba(15,19,23,.35) 100%); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-scrim { background: linear-gradient(90deg, rgba(15,19,23,.94) 0%, rgba(15,19,23,.78) 42%, rgba(15,19,23,.35) 100%); }
}

/* Sun/moon button (added to the nav by main.js): shows the theme you would switch to. */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle[data-mode="dark"] .i-moon, .theme-toggle[data-mode="light"] .i-sun { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: .05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; line-height: 1.65; color: var(--text-soft); }
button { font-family: var(--font-body); cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-soft); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ---------- Radar ping on links and buttons (see initCursor in main.js) ---------- */
.cursor-ping {
  position: fixed; width: 60px; height: 60px; margin: -30px 0 0 -30px; pointer-events: none; z-index: 9999;
  border: 1.5px solid var(--accent); border-radius: 50%;
  animation: cursor-ping .6s var(--ease-soft) forwards;
}
@keyframes cursor-ping {
  from { transform: scale(.14); opacity: .9; }
  to   { transform: scale(1);   opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled {
  padding: 14px 0; background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .ring { stroke: var(--accent); }
.brand .sweep { stroke: var(--accent-soft); }
.brand .blip { fill: var(--accent-soft); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-soft);
  border-radius: 999px; transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--hover-tint); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 600; background: var(--bg);
  display: flex; flex-direction: column; padding: 96px 28px 40px; overflow-y: auto;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .5s var(--ease-soft), visibility 0s linear .5s;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease-soft); }
.mobile-nav a { font-family: var(--font-display); font-size: 26px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 28px; font-family: var(--font-body); font-size: 15px; border-bottom: none; }
.mobile-close {
  position: absolute; top: 24px; right: 22px; background: none; border: none; color: var(--text);
  width: 40px; height: 40px; font-size: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 28px -12px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn[data-magnetic] { will-change: transform; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Hero (full-bleed fade carousel) ---------- */
.hero-carousel { position: relative; width: 100%; height: 100vh; min-height: 660px; max-height: 980px; overflow: hidden; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease-in-out; background-size: cover; background-position: center; }
.carousel-slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,19,23,.94) 0%, rgba(15,19,23,.78) 42%, rgba(15,19,23,.35) 100%),
    linear-gradient(0deg, rgba(15,19,23,1) 0%, transparent 30%);
}
.hero-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; padding-top: 80px; }
.hero-overlay .container { width: 100%; }
.hero-overlay h1 { font-size: clamp(38px, 5.4vw, 70px); max-width: 820px; }
.hero-overlay h1 em { font-style: italic; color: var(--accent-soft); }
.hero-sub { margin-top: 22px; font-size: 18px; max-width: 560px; color: var(--text-soft); }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 44px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(15,19,23,.5); backdrop-filter: blur(6px);
  font-size: 13px; color: var(--text-soft);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 28px; background: rgba(238,242,245,.45); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

.photo-mining  { background-image: url("../assets/img/hero-metals.jpg"); }
.photo-uranium { background-image: url("../assets/img/hero-uranium.jpg"); }
.photo-defense { background-image: url("../assets/img/hero-defense.jpg"); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 112px 0; }
.section-raised { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { margin-top: 16px; font-size: 17px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px 28px;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-soft); margin-bottom: 18px;
}

/* ---------- Testimonials (shown only when real ones exist) ---------- */
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.testimonial figcaption { font-size: 14px; color: var(--text-faint); }
.testimonial figcaption b { color: var(--text); font-weight: 600; }
.testimonial-note { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-faint); }

/* ---------- Problem: noise → signal ---------- */
.noise-signal { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: 36px; align-items: center; }
.source-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.source-cloud span {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-faint);
}
.source-cloud span:nth-child(3n) { opacity: .6; }
.source-cloud span:nth-child(5n) { opacity: .45; }
.funnel-arrow { color: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.funnel-arrow svg { color: var(--accent); }
.mini-brief { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 22px; }
.mini-brief-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--text-faint); }
.mini-brief-head b { color: var(--text); font-family: var(--font-display); font-size: 15px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-soft); }
.mini-row .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 58px 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 20px; left: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--accent);
}
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; }

/* ---------- Sector cards ---------- */
.sector-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px 28px; overflow: hidden; }
.sector-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c, var(--accent)); }
.sector-card .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.sector-card h3 { font-size: 22px; margin: 12px 0 10px; }
.sector-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sector-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.sector-card li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--c); }
.c-mining { --c: var(--mining); }
.c-uranium { --c: var(--uranium); }
.c-defense { --c: var(--defense); }

/* Sector detail page */
.sector-block { padding: 96px 0; border-top: 1px solid var(--line); }
.sector-banner { position: relative; height: 260px; border-radius: var(--radius-l); overflow: hidden; margin-bottom: 44px; background-size: cover; background-position: center; }
.sector-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,19,23,.92) 0%, rgba(15,19,23,.45) 60%, rgba(15,19,23,.2) 100%); }
.sector-banner .inner { position: absolute; left: 40px; bottom: 34px; right: 40px; z-index: 2; }
.sector-banner h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 8px; }
.detail-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail-cols .card h3 { font-size: 16px; letter-spacing: .02em; }
.detail-cols ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.detail-cols li + li { margin-top: 8px; }
.thesis { margin-bottom: 24px; padding: 22px 26px; border-left: 3px solid var(--c); background: var(--surface); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.thesis b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }

/* ---------- Brief (newsletter mock) ---------- */
.brief { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-l); overflow: hidden; max-width: 820px; margin: 0 auto; box-shadow: 0 40px 90px -40px var(--shadow-deep); }
.brief-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 30px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.brief-head b { font-family: var(--font-display); font-size: 17px; }
.brief-head span { font-size: 13px; color: var(--text-faint); }
.brief-body { padding: 10px 30px 30px; }
.brief-section { padding-top: 26px; }
.brief-section > h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.brief-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.brief-summary li { font-size: 15px; color: var(--text-soft); display: flex; align-items: flex-start; gap: 10px; }
.signal { padding: 18px 0; border-top: 1px solid var(--line); }
.signal:first-of-type { border-top: none; padding-top: 0; }
.signal-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.signal h5 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); flex: 1 1 100%; }
.signal p { font-size: 14.5px; }
.signal p + p { margin-top: 6px; }
.signal .why { color: var(--text-soft); }
.signal .why b { color: var(--text); font-weight: 600; }
.signal .src { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-soft); border-bottom: 1px dashed rgba(168,198,232,.4); }
.sector-tag { flex: none; align-self: flex-start; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.score { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.score i { width: 7px; height: 7px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.score i.on { background: var(--accent); border-color: var(--accent); }
.against { padding: 18px 20px; border: 1px dashed rgba(226,102,92,.45); border-radius: var(--radius-s); background: rgba(226,102,92,.06); }
.against h5 { color: var(--text); }
.cal { width: 100%; border-collapse: collapse; font-size: 14px; }
.cal td { padding: 9px 0; border-top: 1px solid var(--line); color: var(--text-soft); vertical-align: top; }
.cal td:first-child { width: 110px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.disclosure-box { padding: 16px 18px; border-radius: var(--radius-s); background: var(--bg-raised); border: 1px solid var(--line); font-size: 13px; color: var(--text-faint); line-height: 1.65; }
.disclosure-box b { color: var(--text-soft); }
.placeholder { color: var(--text-faint); font-style: italic; }

.brief-fade { position: relative; max-height: 560px; overflow: hidden; }
.brief-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(0deg, var(--bg-raised) 10%, transparent); }

/* ---------- Banners ---------- */
.sample-banner, .draft-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-s);
  font-size: 14px; line-height: 1.6; margin-bottom: 30px;
}
.sample-banner { background: var(--accent-tint); border: 1px solid rgba(127,169,216,.35); color: var(--accent-soft); }
.draft-banner { background: rgba(226,102,92,.08); border: 1px solid rgba(226,102,92,.4); color: #F1A69F; }
.sample-banner b, .draft-banner b { color: var(--text); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(127,169,216,.6); box-shadow: 0 0 0 1px rgba(127,169,216,.25), 0 40px 80px -40px rgba(127,169,216,.35); }
.plan-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.plan-name { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); font-weight: 600; }
.plan h3 { font-size: 24px; margin: 10px 0 4px; }
.plan-price { font-family: var(--font-display); font-size: 40px; font-weight: 700; margin: 14px 0 2px; }
.plan-price span { font-size: 14px; font-family: var(--font-body); color: var(--text-faint); font-weight: 500; }
.plan-alt { font-size: 13.5px; color: var(--text-faint); min-height: 20px; }
.plan-desc { font-size: 14.5px; margin: 16px 0 22px; }
.plan-features { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-features li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.plan-features svg { flex: none; margin-top: 3px; color: var(--accent); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 15px; }

/* ---------- Subscribe box (pre-launch) ---------- */
.subscribe { max-width: 520px; }
.subscribe form { display: flex; gap: 10px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--input-bg); color: var(--text); font-size: 14.5px; font-family: var(--font-body);
}
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe-note { margin-top: 10px; font-size: 13px; color: var(--text-faint); }
.subscribe-msg { margin-top: 10px; font-size: 13.5px; color: var(--accent-soft); display: none; }
.subscribe-msg.is-visible { display: block; }

.cta-band { border-radius: var(--radius-l); padding: 64px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: radial-gradient(120% 140% at 100% 0%, rgba(127,169,216,.28), transparent 55%), var(--surface); border: 1px solid var(--line-strong); }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); max-width: 520px; }
.cta-band p { margin-top: 12px; }

/* ---------- Principles / facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { padding: 26px 24px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-size: 36px; color: var(--accent-soft); }
.fact span { font-size: 14px; color: var(--text-soft); }

/* ---------- Track record ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; padding: 14px 18px; background: var(--surface-2); }
.table td { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--text-soft); vertical-align: top; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-faint); }
.empty-state b { display: block; color: var(--text); font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--text-faint); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.75; color: var(--text-soft); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-soft); border-bottom: 1px dashed rgba(168,198,232,.4); }
.prose strong { color: var(--text); }
.prose .tbd { background: rgba(226,102,92,.12); color: #F1A69F; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.legal-nav a { font-size: 13.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); }
.legal-nav a.active, .legal-nav a:hover { border-color: var(--accent); color: var(--accent-soft); }
.holdings { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.holdings th, .holdings td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); color: var(--text-soft); vertical-align: top; }
.holdings th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero { padding: 180px 0 80px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 800px; }
.page-hero p { margin-top: 18px; font-size: 17px; max-width: 620px; }
.page-hero-glow { position: absolute; top: -30%; right: -10%; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(127,169,216,.16), transparent 70%); z-index: 1; }

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--text-faint); }
.disclaimer-strip a { color: var(--accent-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-desc { margin-top: 14px; font-size: 14px; max-width: 300px; color: var(--text-faint); }
.footer h5 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 14px; color: var(--text-faint); transition: color .25s var(--ease); }
.footer a:hover { color: var(--accent-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 26px; font-size: 12.5px; color: var(--text-faint); }
.footer-legal { margin-top: 24px; font-size: 12px; line-height: 1.8; color: var(--text-faint); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .carousel-slide { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-3, .pricing-grid, .detail-cols { grid-template-columns: 1fr 1fr; }
  .steps, .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .noise-signal { grid-template-columns: 1fr; }
  .funnel-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 20px; }
  .hero-carousel { height: 100svh; min-height: 600px; }
  .hero-overlay { align-items: flex-start; padding-top: 120px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(15,19,23,.9) 0%, rgba(15,19,23,.8) 60%, rgba(15,19,23,1) 100%); }
  .scroll-cue { display: none; }
  .section { padding: 76px 0; }
  .grid-2, .grid-3, .pricing-grid, .steps, .detail-cols, .facts { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 26px; }
  .subscribe form { flex-direction: column; }
  .source-cloud span:nth-child(n+13) { display: none; }
  .brief-body, .brief-head { padding-left: 20px; padding-right: 20px; }
  .sector-banner .inner { left: 24px; right: 24px; }
  .page-hero { padding: 140px 0 56px; }
}

/* ---------- Phones ---------- */
/* Bottom "Join free on Telegram" bar, added by main.js; slides in after the first screen. */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 450;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-cta.is-shown { transform: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section-head p { font-size: 15.5px; }
  /* The hero grows with its text instead of cutting it off on short screens (iPhone SE and the like). */
  .hero-carousel { height: auto; min-height: 100svh; max-height: none; }
  .hero-overlay { position: relative; inset: auto; padding: 108px 0 44px; }
  .hero-sub { font-size: 16px; margin-top: 16px; }
  .hero-cta { flex-direction: column; margin-top: 26px; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
  .hero-meta { margin-top: 26px; }
  .page-hero { padding: 116px 0 40px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 16px; }
  .plan { padding: 26px 22px; }
  .plan-price { font-size: 34px; }
  .plan-desc { margin: 12px 0 16px; }
  .plan-features { gap: 9px; margin-bottom: 22px; }
  /* Comparison tables fit the screen instead of scrolling sideways. */
  .table-wrap .table.compare { min-width: 0; font-size: 13px; }
  .table-wrap .table.compare th, .table-wrap .table.compare td { padding: 12px 10px; }
  .table-wrap .table.compare th { font-size: 10.5px; letter-spacing: .06em; }
  .holdings { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
  .holdings th:nth-child(3), .holdings td:nth-child(3) { display: none; } /* listing venue: the least useful column */
  .fact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
  .fact b { font-size: 30px; min-width: 36px; }
  .cta-band { padding: 32px 22px; }
  .prose h2 { font-size: 21px; margin-top: 34px; }
  .prose p, .prose li { font-size: 15px; }
  .footer { padding: 52px 0 28px; }
  .footer ul { gap: 2px; }
  .footer a { display: inline-block; padding: 7px 0; }
  .footer-top { gap: 28px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Weekly issue on Telegram: free vs Pro ---------- */
[hidden] { display: none !important; }
.plan-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 10.5px; letter-spacing: .06em; color: var(--text-faint); vertical-align: middle; }
.pro-divider { display: flex; align-items: center; gap: 14px; margin: 30px 0 6px; color: var(--accent-soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.pro-divider::before, .pro-divider::after { content: ""; flex: 1; height: 1px; background: var(--accent-tint); }
.pro-sections { list-style: none; margin: 0; padding: 0; }
.pro-sections li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.pro-sections li:first-child { border-top: 0; }
.pro-sections b { font-size: 14.5px; color: var(--text); }
.pro-sections span { font-size: 13.5px; color: var(--text-faint); }
.table.compare { min-width: 560px; }
.table.compare th:not(:first-child), .table.compare td:not(:first-child) { text-align: center; width: 22%; }
.table.compare td b { color: var(--text); font-weight: 600; }
.table.compare td.yes { color: var(--ok); font-size: 17px; }
.table.compare td.no { color: var(--text-faint); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.claim-fallback code { display: block; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--bg-raised); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; color: var(--text); user-select: all; }

.footer-credits { margin-top: 10px; font-size: 11.5px; color: var(--text-faint); line-height: 1.6; }
.footer-credits a { color: var(--text-soft); border-bottom: 1px dotted var(--line-strong); }

/* ---------- Sections over a photograph (home page) ----------
   Photos are saved already muted, so no CSS filter runs while scrolling. These sections stay dark in both
   themes, like the hero; cards, the table and the call-to-action sit on translucent panels.
   - Plans: NASA Earth Observatory, "City Lights of the United States 2012" (public domain), 75% saturation, 85%
     brightness. The whole photo spans the screen width from the top of the section so the outline of the United
     States reads at a glance, then fades into the background (the photo is 3:2, so its height is 66.7vw).
   - Final call to action: U.S. Department of Energy, "Gas centrifuge cascade" (public domain), 70% saturation,
     80% brightness. */
.section-photo {
  --bg: #0F1317; --bg-raised: #141A1F; --surface: #1A2128; --surface-2: #222A32;
  --text: #EEF2F5; --text-soft: #BCB6AE; --text-faint: #8D877F;
  --line: rgba(220, 230, 240, 0.09); --line-strong: rgba(220, 230, 240, 0.17);
  --accent: #7FA9D8; --accent-deep: #5E8CC2; --accent-soft: #A8C6E8; --accent-tint: rgba(127, 169, 216, 0.12); --on-accent: #0B1520;
  --ok: #62B883; --bad: #E2665C; --hover-tint: rgba(220, 230, 240, 0.07); --accent-glow: rgba(127, 169, 216, 0.7);
  color: var(--text);
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #0F1317; background-repeat: no-repeat;
}
.section-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section-photo .section-head { text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 18px rgba(6,9,12,.95); }
.section-photo .section-head p { color: #D3D8DD; }
.section-photo .plan { background: rgba(26, 33, 40, 0.82); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.section-photo .table-wrap { background: rgba(15, 19, 23, 0.80); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.section-photo .cta-band {
  background: radial-gradient(120% 140% at 100% 0%, rgba(127,169,216,.22), transparent 55%), rgba(20, 26, 31, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.section-photo--plans { background-image: url("../assets/img/plans-night.jpg"); background-position: 50% 0; background-size: 100% auto; }
.section-photo--plans::before { background: linear-gradient(180deg, rgba(15,19,23,.55) 0, rgba(15,19,23,.22) 18vw, rgba(15,19,23,.35) 45vw, #0F1317 66.7vw); }

.section-photo--cta { background-image: url("../assets/img/cta-centrifuges.jpg"); background-position: 50% 45%; background-size: cover; }
.section-photo--cta::before { background: linear-gradient(180deg, rgba(15,19,23,.85) 0%, rgba(15,19,23,.40) 30%, rgba(15,19,23,.40) 70%, rgba(10,8,6,.95) 100%); }

/* Phones: the map sits behind the title, a little larger and lower so the country stays readable. */
@media (max-width: 600px) {
  .section-photo--plans { background-size: 125% auto; background-position: 55% 24px; }
  .section-photo--plans::before { background: linear-gradient(180deg, rgba(15,19,23,.50) 0, rgba(15,19,23,.20) 30vw, rgba(15,19,23,.45) 70vw, #0F1317 calc(24px + 83.4vw)); }
  .section-photo--cta { background-position: 40% 50%; }
}

/* ---------- Scrollbar ----------
   A thin scrollbar in the theme colours instead of the default grey bar. It stays visible: mouse users rely on
   it to see where they are and to scroll. */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--bg); }
