/* BitsSecured — "Observatory Gold" design system.
   Deep petrol space, champagne gold, mint signal, ivory type. Fonts are self-hosted (no third-party requests). */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/sora-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/sora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --void: #020d10;
  --deep: #06191d;
  --petrol: #0e2f33;
  --surface: rgba(6, 24, 28, 0.78);
  --surface-strong: rgba(5, 20, 24, 0.92);
  --surface-raised: rgba(12, 38, 42, 0.86);
  --line: rgba(226, 194, 125, 0.16);
  --line-strong: rgba(226, 194, 125, 0.42);
  --gold: #e2c27d;
  --gold-soft: #f0dca8;
  --gold-deep: #b8934a;
  --mint: #a8edc7;
  --ember: #f2a98a;
  --ivory: #f4efe3;
  --text: #e6e0d1;
  --muted: #bdb5a3;
  --faint: #948d7d;
  --on-gold: #1a1306;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 20px;
  --radius-small: 12px;
  --wrap: 1200px;
  --gutter: 24px;
  --shadow-glow: 0 0 0 1px var(--line), 0 18px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { color: var(--ivory); margin: 0 0 0.5em; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 0.98; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
small, .small { font-size: 13.5px; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.lede, .section-lede { font-size: 18px; font-weight: 300; line-height: 1.65; color: var(--muted); max-width: 640px; }
.text-link { color: var(--gold); font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.text-link:hover { border-color: var(--gold); }

/* ---------- Cosmos background ---------- */
.cosmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 760px at 80% 72%, #0f3236 0%, #06191d 46%, var(--void) 100%); }
.cosmos > :not(.binary) { position: absolute; }
.cosmos { --stage-w: max(100vw, 160vh); --stage-h: max(62.5vw, 100vh); }
.stars { inset: -240px; background-image:
  radial-gradient(1px 1px at 20px 30px, #fff8e6, transparent), radial-gradient(1px 1px at 120px 80px, #cfe9df, transparent),
  radial-gradient(1.5px 1.5px at 170px 160px, #fff, transparent), radial-gradient(1px 1px at 60px 150px, #e9d9b0, transparent),
  radial-gradient(1px 1px at 90px 10px, #fff, transparent);
  background-size: 200px 200px; opacity: 0.5; animation: drift 170s linear infinite; }
.stars-far { background-size: 330px 330px; opacity: 0.28; animation-duration: 280s; }
@keyframes drift { to { transform: translate(-200px, -100px); } }

/* Planets and lasers share one 1600×1000 stage that always covers the viewport, so beams stay attached to planets. */
.planet, .planet-ring, .laser, .ship { --x: 0; --y: 0; }
.planet, .planet-ring, .laser {
  left: calc(50% - var(--stage-w) / 2 + var(--stage-w) * var(--x));
  top: calc(50% - var(--stage-h) / 2 + var(--stage-h) * var(--y));
}
.planet { border-radius: 50%; animation: float 40s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.planet-major { --x: 0.55625; --y: 0.42; width: calc(var(--stage-w) * 0.475); aspect-ratio: 1;
  background: radial-gradient(circle at 34% 28%, #f6dfa6 0%, #c9974c 18%, #6e4a22 42%, #241708 68%, #0b0703 82%);
  box-shadow: 0 0 110px 14px rgba(226, 194, 125, 0.2), inset -60px -40px 120px rgba(0, 0, 0, 0.75); }
.planet-ring { --x: 0.48125; --y: 0.30; width: calc(var(--stage-w) * 0.625); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(226, 194, 125, 0.42); box-shadow: 0 0 18px rgba(226, 194, 125, 0.16);
  transform: rotate(-16deg) scaleY(0.22); animation: ring-glow 12s ease-in-out infinite; }
@keyframes ring-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.planet-mint { --x: 0.659375; --y: 0.125; width: calc(var(--stage-w) * 0.06875); aspect-ratio: 1; animation-duration: 28s;
  background: radial-gradient(circle at 35% 30%, #e6fff4 0%, #a8edc7 22%, #3f8d78 55%, #0d2b27 85%);
  box-shadow: 0 0 40px 6px rgba(168, 237, 199, 0.25); }
.planet-gold { --x: 0.920625; --y: 0.373; width: calc(var(--stage-w) * 0.03375); aspect-ratio: 1; animation-duration: 22s;
  background: radial-gradient(circle at 35% 30%, #fff4dc 0%, #e2c27d 35%, #5d4524 80%);
  box-shadow: 0 0 24px 4px rgba(226, 194, 125, 0.3); }
.planet-moon { --x: 0.003; --y: 0.845; width: calc(var(--stage-w) * 0.10625); aspect-ratio: 1; opacity: 0.6; animation-duration: 52s;
  background: radial-gradient(circle at 60% 30%, #cfd8dc 0%, #56656b 40%, #11191c 85%); }
.laser { height: 2px; transform-origin: 0 50%; transform: rotate(var(--angle));
  width: calc(var(--stage-w) * var(--len));
  background: linear-gradient(90deg, rgba(255, 248, 230, 0), rgba(255, 250, 238, 0.95) 50%, rgba(255, 248, 230, 0));
  box-shadow: 0 0 6px 1px rgba(226, 194, 125, 0.6), 0 0 22px 5px rgba(226, 194, 125, 0.16);
  animation: breathe 7s ease-in-out infinite; }
.laser::after { content: ""; position: absolute; top: -3px; left: 0; width: 46px; height: 8px; border-radius: 4px;
  background: radial-gradient(closest-side, #fff, rgba(226, 194, 125, 0.7) 45%, rgba(226, 194, 125, 0));
  animation: travel 3.6s linear infinite; }
.laser-1 { --x: 0.69375; --y: 0.18; --len: 0.2799; --angle: 29.4deg; }
.laser-2 { --x: 0.9375; --y: 0.40; --len: 0.2884; --angle: 119.9deg; animation-delay: 2.1s; }
.laser-2::after { animation-delay: 1.2s; }
.laser-3 { --x: 0.69375; --y: 0.18; --len: 0.4002; --angle: 75.5deg; animation-delay: 4.2s; }
.laser-3::after { animation-delay: 2.4s; animation-duration: 4.6s; }
@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 46px); } }
.ship { left: 0; top: 0; animation: fly 38s linear infinite; }
@keyframes fly {
  0% { transform: translate(-140px, 74vh) rotate(-17deg); opacity: 0; }
  4% { opacity: 0.85; }
  55% { transform: translate(104vw, 16vh) rotate(-17deg); opacity: 0.85; }
  57%, 100% { transform: translate(108vw, 14vh) rotate(-17deg); opacity: 0; }
}
.binary { position: absolute; overflow: hidden; font-family: var(--font-mono); font-size: 11px; line-height: 17px; letter-spacing: 3px;
  color: var(--mint); opacity: 0.15; white-space: pre; }
.binary > div { animation: scroll-binary 52s linear infinite; }
.binary-a { right: 28px; top: 110px; width: 150px; height: 200px; }
.binary-b { left: 28px; bottom: 28px; width: 150px; height: 110px; }
@keyframes scroll-binary { to { transform: translateY(-50%); } }

/* Reading pages keep the universe but quieter, so text always wins. */
.cosmos-calm .cosmos { background: radial-gradient(1100px 700px at 88% 80%, #0c2a2e 0%, #05161a 50%, var(--void) 100%); }
.cosmos-calm .planet-major { opacity: 0.42; }
.cosmos-calm .planet-ring { opacity: 0.4; animation: none; }
.cosmos-calm .laser { opacity: 0.45; animation: none; }
.cosmos-calm .binary { opacity: 0.1; }
.cosmos-calm .planet-moon { opacity: 0.35; }

@media (max-width: 760px) {
  .cosmos { --stage-w: max(100vw, 160vh); }
  .planet, .planet-ring, .laser { left: calc(50% - var(--stage-w) * 0.7 + var(--stage-w) * var(--x)); }
  .binary-a { top: auto; bottom: 28px; right: 16px; height: 120px; width: 120px; }
  .binary-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmos *, .cosmos *::after { animation: none !important; }
  .ship { display: none; }
  html { scroll-behavior: auto; }
  .card, .button { transition: none !important; }
}

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(2, 13, 16, 0.72); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; background: url('../img/logo.webp') no-repeat; background-size: 62px 62px; background-position: -11px -8px; }
.brand-word { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.3em; color: var(--ivory); }
.brand-word span { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li + li { margin: 0; }
.main-nav ul a { display: block; padding: 10px 12px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 10px; letter-spacing: 0.02em; }
.main-nav ul a:hover { color: var(--ivory); background: rgba(226, 194, 125, 0.06); }
.main-nav ul a[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -1px 0 var(--gold); border-radius: 0; }
.main-nav .nav-pro { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin { color: var(--ivory); text-decoration: none; font-size: 14px; padding: 10px 14px; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 1.5px; background: var(--ivory); margin: 0 auto; position: relative; transition: transform 0.2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px; background: var(--surface-strong); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav-actions { justify-content: space-between; }
}

/* ---------- Buttons and badges ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px;
  border-radius: 999px; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s; }
.button-gold, .button-dark { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 28px rgba(226, 194, 125, 0.22); }
.button-gold:hover, .button-dark:hover { background: var(--gold-soft); color: var(--on-gold); transform: translateY(-1px); box-shadow: 0 10px 34px rgba(226, 194, 125, 0.32); }
.button-ghost, .button-outline { background: transparent; color: var(--ivory); border-color: var(--line-strong); font-weight: 400; }
.button-ghost:hover, .button-outline:hover { border-color: var(--gold); color: var(--ivory); background: rgba(226, 194, 125, 0.06); }
.button-small { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.pill { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(26, 19, 6, 0.14); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--gold); white-space: nowrap; }
.badge-free { color: var(--mint); border-color: rgba(168, 237, 199, 0.45); }
.badge-pro { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.badge-sample { color: var(--ivory); border-color: rgba(244, 239, 227, 0.4); }
.badge-locked, .badge-coming-next { color: var(--faint); border-color: rgba(148, 141, 125, 0.45); border-style: dashed; }
.badge-micro { color: var(--mint); border-color: rgba(168, 237, 199, 0.3); }

/* ---------- Sections and cards ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-heading { margin-bottom: 40px; max-width: 760px; }
.section-heading h2 { margin-bottom: 14px; }
.section-end { margin-top: 32px; }
.page-intro { padding: 88px 0 48px; }
.page-intro h1 { max-width: 900px; margin-bottom: 22px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.panel { background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.card:hover, .card:focus-within { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 194, 125, 0.08); }
.card h3 { margin: 8px 0 6px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .meta { margin-top: auto; padding-top: 14px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-top .meta { margin: 0 0 0 auto; padding: 0; }
.card-category { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 14px !important; }
.card-link { color: var(--ivory); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { color: var(--gold-soft); }
.card-arrow { position: absolute; right: 24px; bottom: 22px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: 0.25s; }
.card:hover .card-arrow { opacity: 1; transform: none; }
.notice { padding: 16px 20px; border-radius: var(--radius-small); background: rgba(168, 237, 199, 0.06); border: 1px solid rgba(168, 237, 199, 0.22); color: var(--text); font-size: 14.5px; }
.notice strong { color: var(--mint); font-weight: 600; }
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 0; }

/* ---------- Home ---------- */
.hero { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 72px 0 96px; }
.hero-copy { max-width: 660px; }
.hero h1 { font-size: clamp(50px, 7vw, 96px); margin-bottom: 28px; }
.hero h1 em { display: block; }
.hero .lede { font-size: 19px; margin-bottom: 36px; }
.hero-note { margin-top: 28px; font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; color: var(--ivory); }
.stat span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stat-gold strong { color: var(--gold); }
.journey { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.journey li { counter-increment: step; display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); margin: 0; }
.journey li::before { content: "0" counter(step); font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold); }
.journey h3 { margin: 4px 0 6px; }
.journey p { margin: 0; color: var(--muted); font-size: 15px; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-panel { padding: 40px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(226, 194, 125, 0.12), rgba(6, 24, 28, 0.9) 45%); border: 1px solid var(--line-strong); }
.feature-numbers { display: flex; gap: 40px; margin: 18px 0 22px; }
.feature-numbers strong { display: block; font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--ivory); font-weight: 500; }
.feature-numbers span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.feature-panel ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14.5px; }
.feature-panel li::before { content: "◆"; color: var(--gold); font-size: 8px; margin-right: 10px; vertical-align: 2px; }
.pro-band { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 47, 51, 0.55), rgba(2, 13, 16, 0.4)); }
.offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .feature, .offer { grid-template-columns: 1fr; } }
.tool-card .tool-glyph { font-family: var(--font-mono); color: var(--mint); font-size: 13px; letter-spacing: 0.1em; }

/* ---------- Lesson reading layout ---------- */
.reading-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 48px; align-items: start; padding-bottom: 96px; }
.reading-aside { position: sticky; top: 104px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.reading-aside h2 { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.reading-aside ol { list-style: none; padding: 0; margin: 0 0 18px; }
.reading-aside li { margin: 0; }
.reading-aside a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(226, 194, 125, 0.08); }
.reading-aside a:hover { color: var(--ivory); }
.reading-aside .small { margin: 0; }
.reading { background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); }
.reading > section + section { margin-top: 48px; }
.reading h2 { font-size: clamp(28px, 3vw, 38px); }
.reading p, .reading li { font-size: 17px; line-height: 1.8; }
.section-number { display: block; font-family: var(--font-display); font-size: 22px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 4px; }
.objectives ul { list-style: none; padding: 0; }
.objectives li { position: relative; padding-left: 30px; }
.objectives li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 14px; height: 1px; background: var(--gold); }
.callout { position: relative; padding: 32px; border-radius: var(--radius-small); background: linear-gradient(160deg, rgba(168, 237, 199, 0.08), rgba(6, 24, 28, 0.6)); border: 1px solid rgba(168, 237, 199, 0.22); }
.callout .eyebrow { color: var(--mint); }
.callout small { display: block; margin-top: 12px; color: var(--faint); font-size: 13px; }
.mistakes li::marker { color: var(--ember); }
.checklist { display: grid; gap: 10px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-small); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.check:hover { border-color: var(--line-strong); }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 3px 0 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--on-gold); border-bottom: 2px solid var(--on-gold); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { opacity: 1; }
.check:has(input:checked) { background: rgba(226, 194, 125, 0.06); border-color: var(--line-strong); }
.check:has(input:checked) span { color: var(--muted); }
.recap { padding: 28px 32px; border-radius: var(--radius-small); border: 1px solid var(--line-strong); background: rgba(226, 194, 125, 0.05); }
.recap p { font-family: var(--font-display); font-size: 24px; line-height: 1.45; color: var(--ivory); margin: 0; }
.next-steps { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 32px; border-radius: var(--radius-small); background: var(--surface-raised); border: 1px solid var(--line); }
.next-steps h2 { margin: 0; font-size: 30px; }
.source-note { margin-top: 32px; font-size: 14px; }
.pro-offer { margin-top: 48px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(150deg, rgba(226, 194, 125, 0.1), rgba(5, 20, 24, 0.94) 50%); }
.pro-offer h2 { font-size: clamp(26px, 2.6vw, 34px); }
.pro-offer .actions { margin: 20px 0 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: 13px; color: var(--faint); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
@media (max-width: 980px) {
  .reading-layout { grid-template-columns: 1fr; gap: 20px; }
  .reading-aside { position: static; }
}

/* ---------- Quiz (classes used by assets/js/quizzes.js) ---------- */
.quiz-root { padding-bottom: 96px; }
.quiz-form { display: grid; gap: 20px; margin-top: 24px; }
.quiz-feedback:empty { display: none; }
.quiz-feedback { color: var(--gold); font-size: 15px; }
.question { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-strong); min-width: 0; }
.question legend { float: left; width: 100%; padding: 0; margin-bottom: 20px; font-size: 19px; font-weight: 400; color: var(--ivory); line-height: 1.5; }
.question legend + * { clear: both; }
.q-number { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.options label { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 56px; border-radius: var(--radius-small);
  border: 1px solid var(--line); background: rgba(2, 13, 16, 0.5); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.options label:hover { border-color: var(--line-strong); }
.options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.options label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.options label:has(input:checked) { border-color: var(--gold); background: rgba(226, 194, 125, 0.09); }
.options label span { display: flex; align-items: baseline; gap: 14px; color: var(--text); }
.options label b { flex-shrink: 0; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--gold); }
.options label:has(input:checked) b { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.options.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.answer-explanation { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-small); font-size: 15px; line-height: 1.65; background: rgba(2, 13, 16, 0.6); border: 1px solid var(--line); }
.question.is-correct { border-color: rgba(168, 237, 199, 0.55); box-shadow: 0 0 0 1px rgba(168, 237, 199, 0.12); }
.question.is-correct .answer-explanation { border-color: rgba(168, 237, 199, 0.35); color: var(--text); }
.question.needs-review { border-color: rgba(242, 169, 138, 0.55); }
.question.needs-review .answer-explanation { border-color: rgba(242, 169, 138, 0.35); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quiz-result { margin-top: 24px; padding: 24px 28px; border-radius: var(--radius); background: rgba(226, 194, 125, 0.08); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 26px; line-height: 1.35; color: var(--ivory); }

/* ---------- Exam (classes used by assets/js/exam.js and pro-exam.js) ---------- */
.exam-root { padding-bottom: 96px; }
.exam-intro .split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin: 24px 0 28px; }
@media (max-width: 860px) { .exam-intro .split { grid-template-columns: 1fr; } }
.exam-intro .reading { padding: 32px; }
.exam-intro .reading p, .exam-intro .reading li { font-size: 15.5px; }
.planned-box { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-strong); }
.planned-box h2 { font-size: 28px; }
.check-label { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; cursor: pointer; font-size: 15px; }
.check-label input { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.exam-status:empty { display: none; }
.exam-status { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-small); border: 1px solid var(--line); background: var(--surface-strong); color: var(--gold); font-size: 14.5px; }
.exam-toolbar { position: sticky; top: 84px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; margin-bottom: 20px; border-radius: var(--radius); background: rgba(5, 20, 24, 0.95); border: 1px solid var(--line-strong); }
.exam-toolbar .eyebrow { margin: 0 0 2px; font-size: 10.5px; }
.exam-clock { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 32px; letter-spacing: 0.06em; color: var(--gold); line-height: 1.1; }
.exam-count { display: block; color: var(--ivory); font-weight: 600; font-size: 15px; }
.exam-flags { color: var(--muted); }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .exam-layout { grid-template-columns: 1fr; } }
.exam-question-panel { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line); }
.exam-position { font-family: var(--font-mono); letter-spacing: 0.16em; }
.exam-question { font-family: var(--font-body); font-weight: 400; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ivory); margin-bottom: 24px; }
.exam-question:focus { outline: none; }
.exam-options label span { display: block; }
.exam-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.exam-flag[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.exam-navigation { padding: 24px; border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line); }
.exam-navigation h2 { font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.question-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin: 16px 0 20px; }
.question-nav button { position: relative; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.question-nav button:hover { border-color: var(--line-strong); color: var(--ivory); }
.question-nav button.answered { background: rgba(226, 194, 125, 0.22); border-color: rgba(226, 194, 125, 0.4); color: var(--ivory); }
.question-nav button.flagged::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.question-nav button.current { outline: 2px solid var(--ivory); outline-offset: 1px; }
.exam-result { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line-strong); }
.exam-result:focus { outline: none; }
.exam-result h2 { font-size: clamp(40px, 5vw, 64px); }
.exam-result h2 + .lede { margin-bottom: 8px; }
.exam-result .notice { margin: 20px 0; }
.exam-result > .button { margin-bottom: 36px; }
.review-question { border-top: 1px solid var(--line); padding: 14px 0; }
.review-question summary { cursor: pointer; color: var(--ivory); line-height: 1.5; }
.review-question summary:hover { color: var(--gold-soft); }
.review-question p { margin: 10px 0 0; font-size: 15px; }
.exam-dialog { max-width: 480px; width: calc(100% - 32px); padding: 32px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #061a1e; color: var(--text); }
.exam-dialog::backdrop { background: rgba(2, 13, 16, 0.78); backdrop-filter: blur(4px); }
.exam-dialog h2 { font-size: 32px; }

/* ---------- Tools (classes used by assets/js/tools.js) ---------- */
.tool-panel { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line); }
.tool-form { display: grid; gap: 14px; margin: 24px 0; }
.tool-form > label { font-size: 14px; color: var(--muted); }
.tool-form input[type="text"], .tool-form input[type="password"], .tool-form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-small); border: 1px solid var(--line-strong); background: rgba(2, 13, 16, 0.7);
  color: var(--ivory); font-family: var(--font-body); font-size: 16px; }
.tool-form textarea { resize: vertical; min-height: 160px; }
.tool-form input:focus, .tool-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.tool-form .button { justify-self: start; }
.tool-result { margin: 8px 0 20px; padding: 24px; border-radius: var(--radius-small); background: rgba(226, 194, 125, 0.07); border: 1px solid var(--line-strong); }
.tool-result:focus { outline: none; }
.tool-result h2 { font-size: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(2, 13, 16, 0.88); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.footer-brand em { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.site-footer h2 { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer ul a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.site-footer ul a:hover { color: var(--ivory); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Generic content pages ---------- */
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td, .data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .data-table th { color: var(--gold); font-weight: 400; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-small); border: 1px solid var(--line); margin: 20px 0; }
.link-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.link-list li { margin: 0; }
.link-list a { display: inline-flex; gap: 10px; text-decoration: none; }
.link-list a::before { content: "→"; color: var(--gold); }
.empty-state { text-align: center; padding: 96px 0; }
.empty-state h1 { margin-bottom: 18px; }

@media print {
  .cosmos, .site-header, .site-footer, .pro-offer, .actions, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .reading, .panel, .card { background: none; border-color: #ccc; }
  h1, h2, h3, p, li { color: #000; }
}
.empty-state .lede { margin: 0 auto 28px; } .empty-state .actions { justify-content: center; }

/* Phones: keep the universe, but text must stay readable over the planet. */
@media (max-width: 760px) {
  .cosmos-full .planet-major { opacity: 0.5; }
  .cosmos-full .planet-ring { opacity: 0.45; }
  .planet-mint { opacity: 0.75; }
  .hero .lede, .page-intro .lede, .hero-note { text-shadow: 0 1px 14px rgba(2, 13, 16, 0.95), 0 0 2px rgba(2, 13, 16, 0.9); }
  .hero { min-height: 0; padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .page-intro { padding: 56px 0 32px; }
}
.quiz-root .next-steps, .quiz-root .pro-offer { margin-top: 24px; }
@media (max-width: 1240px) {
  .main-nav { background: #04151a; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); max-height: calc(100vh - 76px); overflow-y: auto; }
}
.journey { padding: 4px 28px; border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line); }
.journey li:first-child { border-top: 0; }
.stats { background: linear-gradient(90deg, rgba(2, 13, 16, 0.85), rgba(2, 13, 16, 0.55)); padding-left: 24px; padding-right: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
/* Home: once the visitor scrolls past the hero, the universe steps back behind the content. */
.cosmos-full .planet-major, .cosmos-full .planet-ring, .cosmos-full .laser { transition: opacity 1.2s ease; }
.cosmos-full.is-scrolled .planet-major { opacity: 0.4; }
.cosmos-full.is-scrolled .planet-ring, .cosmos-full.is-scrolled .laser { opacity: 0.35; }

/* ---------- Language ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 40px; min-height: 34px; padding: 0 8px; border-radius: 999px; font-size: 12px;
  letter-spacing: 0.12em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ivory); }
.lang-switch a[aria-current="true"] { background: rgba(226, 194, 125, 0.16); color: var(--gold); }
.lang-suggest { position: relative; z-index: 20; background: #06232a; border-bottom: 1px solid var(--line-strong); }
.lang-suggest .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.lang-suggest p { margin: 0; color: var(--ivory); font-size: 15px; }
.main-nav ul a, .nav-signin, .button { white-space: nowrap; }

/* ======================================================================
   Cinematic layer: GPU-rendered planets (cosmos-gl.js) + glossy glass UI.
   ====================================================================== */
.cosmos-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.has-cosmos-gl .cosmos > .planet, .has-cosmos-gl .cosmos > .planet-ring, .has-cosmos-gl .cosmos > .laser, .has-cosmos-gl .cosmos > .stars { display: none; }
.has-cosmos-gl .cosmos { background: #010a0c; }
.has-cosmos-gl .binary { z-index: 1; }

:root {
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 38%, rgba(4, 18, 22, 0.42) 100%);
  --glass-strong: linear-gradient(150deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.018) 30%, rgba(3, 15, 18, 0.80) 100%);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 24px 70px rgba(0, 0, 0, 0.45);
}
.card, .panel, .reading-aside, .journey, .stats, .feature-panel, .planned-box, .tool-panel, .question, .exam-question-panel,
.exam-navigation, .exam-result, .exam-toolbar, .next-steps, .pro-offer, .notice, .recap, .callout {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.reading, .question, .exam-question-panel, .tool-panel, .exam-result { background: var(--glass-strong); }
/* Specular sheen: a soft diagonal highlight, as on polished glass. */
.card::before, .panel::before, .reading::before, .question::before, .feature-panel::before, .pro-offer::before, .exam-question-panel::before, .tool-panel::before, .next-steps::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.025) 22%, transparent 42%);
}
.reading { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.card::after { content: ""; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.10) 50%, transparent 60%);
  transform: translateX(-30%); transition: transform 0.9s ease, opacity 0.4s ease; }
.card:hover::after { opacity: 1; transform: translateX(30%); }
.card:hover, .card:focus-within { border-color: rgba(226, 194, 125, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(226, 194, 125, 0.12), 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(226, 194, 125, 0.08); }
.site-header { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(2, 13, 16, 0.55)); border-bottom-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04); }
/* Polished gold buttons: metallic gradient, inner light, soft glow. */
.button-gold, .button-dark {
  background: linear-gradient(180deg, #f6e3b0 0%, #e2c27d 45%, #c9a35a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 6px rgba(120, 82, 24, 0.35), 0 10px 30px rgba(226, 194, 125, 0.28);
}
.button-gold:hover, .button-dark:hover { background: linear-gradient(180deg, #fbecc6 0%, #ecd08f 45%, #d4ae66 100%); }
.button-ghost, .button-outline { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)); border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.options label { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(2, 13, 16, 0.55)); border-color: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.badge { background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.badge-pro { background: linear-gradient(180deg, #f6e3b0, #d9b46a); }
h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .panel, .reading, .question { background: rgba(5, 20, 24, 0.92); }
}
@media (prefers-reduced-motion: reduce) { .card::after { display: none; } }
/* Security event log: decorative, faint, slow. */
.cyber-log { position: absolute; right: 28px; bottom: 24px; width: 250px; height: 118px; overflow: hidden; z-index: 1;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 19px; letter-spacing: 0.06em; white-space: pre; color: var(--mint); opacity: 0.2;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.cyber-log > div { animation: scroll-binary 40s linear infinite; }
.cosmos-calm .cyber-log { opacity: 0.1; }
@media (max-width: 760px) { .cyber-log { display: none; } }
/* Mathematics of security: faint formulas drifting very slowly at the edges. */
.math-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.math { position: absolute; font-family: var(--font-display); font-style: italic; font-size: 17px; letter-spacing: 0.02em; color: var(--gold-soft);
  opacity: 0.11; white-space: nowrap; animation: math-drift 60s ease-in-out infinite alternate; }
.math.m1 { top: 13%; left: 46%; font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: 0.18em; color: var(--mint); }
.math.m2 { top: 31%; left: 58%; font-size: 22px; animation-duration: 74s; }
.math.m3 { top: 57%; left: 3%; animation-duration: 66s; }
.math.m4 { top: 72%; left: 55%; animation-duration: 80s; }
.math.m5 { top: 88%; left: 30%; animation-duration: 70s; }
.math.m6 { top: 21%; left: 4%; animation-duration: 84s; }
.math.m7 { top: 47%; left: 70%; font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--mint); animation-duration: 90s; }
.math.m8 { top: 95%; left: 70%; animation-duration: 76s; }
.math.m9 { top: 40%; left: 2%; font-size: 14px; animation-duration: 68s; }
.math.m10 { top: 9%; left: 78%; font-family: var(--font-mono); font-style: normal; font-size: 11px; animation-duration: 72s; }
@keyframes math-drift { from { transform: translate(0, 0); } to { transform: translate(-26px, -14px); } }
.cosmos-calm .math { opacity: 0.06; }
@media (max-width: 760px) { .math { font-size: 13px; } .math.m2, .math.m4, .math.m7, .math.m8 { display: none; } }
@media (prefers-reduced-motion: reduce) { .math { animation: none; } }
