/* Quantum Decrypt · mobile first. Durations 120/240/400/800 ms, one ease-out curve, DOM motion uses
   transform and opacity only. */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/unbounded-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-0: #050B1A;
  --navy-1: #0A1A3A;
  --cyan: #3BE8FF;
  --mint: #7CF5D2;
  --amber: #FFB547;
  --text: #E8EEF7;
  --muted: #8A96AA;
  --steel-top: #F4F7FB;
  --steel-bot: #7E8AA0;
  --line: rgba(160, 196, 255, 0.14);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  --glass-solid: rgba(10, 22, 48, 0.72);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --d1: 120ms;
  --d2: 240ms;
  --d3: 400ms;
  --d4: 800ms;
  --gutter: 16px;
  --radius: 18px;
  --sphere: min(calc(100vw - 2 * var(--gutter)), 520px);
  --font-display: 'Unbounded', 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy-0); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--navy-1) 0%, rgba(10, 26, 58, 0) 60%),
    radial-gradient(90% 60% at 50% 55%, #0A1A3A 0%, var(--navy-0) 78%) fixed,
    var(--navy-0);
}
/* film grain: one static noise tile over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
sup { font-size: 0.68em; line-height: 0; }
.mono, code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.t-muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--cyan); color: var(--navy-0); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- loading curtain ---------- */
.curtain { display: none; }
.js .curtain {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy-0);
  pointer-events: none;
}
.curtain-mark { width: 72px; height: 72px; }
.js.is-loaded .curtain { animation: curtain-out var(--d3) var(--ease) both; }
@keyframes curtain-out { to { opacity: 0; visibility: hidden; } }

/* ---------- header ---------- */
.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 6px rgba(59, 232, 255, 0.35)); transition: transform var(--d3) var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-name { font: 800 12px/1 var(--font-display); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 10px; border-radius: 999px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color var(--d1) var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:not(.nav-x) { position: relative; }
.nav a:not(.nav-x)::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform var(--d2) var(--ease); }
.nav a:not(.nav-x):hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a:not(.nav-x):not([href$='.html']) { display: none; }
.nav-x { display: inline-flex; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; padding: 12px 0 0; }
/* the sphere's canvas and glow are wider than the sphere; clip them sideways (not downward) so phones
   never get a wider page. `clip`, unlike `hidden`, does not turn the hero into a scroll container. */
.hero { overflow-x: hidden; overflow-y: visible; }
@supports (overflow: clip) { .hero { overflow-x: clip; } }
.hero::before { /* dot grid that fades out toward the edges */
  content: '';
  position: absolute;
  inset: -80px 0 -20% 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(170, 205, 255, 0.22) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 80%);
  mask-image: radial-gradient(60% 55% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 80%);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 10px 0 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(59, 232, 255, 0.42);
  border-radius: 999px;
  background: rgba(10, 30, 60, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(59, 232, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}
.pill:hover { color: var(--text); border-color: rgba(59, 232, 255, 0.7); }
.pill-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pill-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--cyan); opacity: 0; }
.pill .mono { color: var(--cyan); font-weight: 600; }
.pill-dot.is-off { background: var(--muted); box-shadow: none; }

.headline {
  margin: 0;
  font: 800 clamp(36px, 13.6vw, 72px)/0.96 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.headline-line {
  position: relative;
  display: block;
  padding: 0 0.02em;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--steel-top) 0%, #DDE4EE 34%, #A9B4C6 58%, #8D99AE 80%, var(--steel-bot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(4, 10, 24, 0.9)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
}
.headline-line::after { /* soft inner highlight along the top of the glyphs */
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 22%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform: translateY(0.035em);
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-sub { max-width: 36em; margin: 18px auto 0; color: #C3CCDA; font-size: 17px; line-height: 1.5; text-wrap: balance; }

.cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  color: #03121E;
  font: 600 16px/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(59, 232, 255, 0.28);
  transition: transform var(--d2) var(--ease);
}
.cta::before { /* the glow that brightens on hover */
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  filter: blur(18px);
  opacity: 0.35;
  transition: opacity var(--d2) var(--ease);
}
.cta-shine { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.cta-shine::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0)); transform: translateX(-140%) skewX(-18deg); opacity: 0; }
.cta:hover { color: #03121E; transform: translateY(-2px); }
.cta:hover::before { opacity: 0.75; }
.cta:active { transform: translateY(0); }
.cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(59, 232, 255, 0.45);
  border-radius: 50%;
  background: rgba(10, 30, 60, 0.5);
  color: var(--cyan);
  transition: transform var(--d2) var(--ease);
}
.cta-arrow:hover { color: var(--mint); transform: translateY(-2px); }

/* the stage: the sphere, its glow, its poster and the floating plaintext */
.stage-row { display: grid; gap: 20px; justify-items: center; margin-top: 28px; padding: 0 var(--gutter); }
.stage { position: relative; width: var(--sphere); aspect-ratio: 1; }
.stage-glow {
  position: absolute;
  inset: -34%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 232, 255, 0.34), rgba(59, 232, 255, 0.12) 45%, rgba(59, 232, 255, 0) 72%);
  pointer-events: none;
}
.stage-glow::after { /* amber flood, shown when a key is found */
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.55), rgba(255, 181, 71, 0.16) 50%, rgba(255, 181, 71, 0) 75%);
  opacity: 0;
  transition: opacity var(--d4) var(--ease);
}
.stage[data-state='found'] .stage-glow::after { opacity: 1; }
.stage-poster, .stage-poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster img { object-fit: contain; }
.stage canvas { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; max-width: none; pointer-events: none; opacity: 0; transition: opacity var(--d4) var(--ease); }
.stage.is-3d canvas { opacity: 1; }
.stage.is-3d .stage-poster { opacity: 0; transition: opacity var(--d4) var(--ease) var(--d2); }
/* poster mode (no WebGL, low power, reduced motion): the glow carries the lab state */
.stage:not(.is-3d)[data-state='search'] .stage-glow { animation: glow-search 1.6s var(--ease) infinite alternate; }
@keyframes glow-search { from { opacity: 0.75; } to { opacity: 1; } }
.stage-plain {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  padding: 10px 16px;
  border: 1px solid rgba(255, 181, 71, 0.45);
  border-radius: 12px;
  background: rgba(20, 12, 4, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--amber);
  font: 600 clamp(15px, 3.6vw, 24px)/1.2 var(--font-mono);
  white-space: nowrap;
  box-shadow: 0 0 40px rgba(255, 181, 71, 0.35);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 10px)) scale(0.96);
  transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease);
  pointer-events: none;
}
.stage-plain.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.callouts { display: contents; }
.stage-row { grid-template-columns: 1fr 1fr; }
.stage-row .stage { grid-column: 1 / -1; grid-row: 1; }
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 24, 50, 0.55);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--d2) var(--ease);
}
.callout:hover { color: var(--text); transform: translateY(-2px); }
.callout-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(59, 232, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(59, 232, 255, 0.12), rgba(59, 232, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.callout-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d2) var(--ease); }
.callout:hover .callout-icon svg { transform: scale(1.12); }
.callout-icon::before { /* soft halo that breathes around the icon */
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(59, 232, 255, 0.28), rgba(59, 232, 255, 0));
  opacity: 0.35;
}
.callout-text { display: grid; gap: 3px; min-width: 0; }
.callout-text strong { font: 700 12px/1.25 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase; }
.callout-text span { color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (max-width: 959px) {
  .callout { flex-direction: column; gap: 10px; padding: 14px; }
}

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: 72px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--cyan); font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow span { padding: 4px 7px; border: 1px solid rgba(59, 232, 255, 0.35); border-radius: 6px; }
.h2 {
  max-width: 20em;
  font: 800 clamp(26px, 7vw, 46px)/1.08 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--steel-top), var(--steel-bot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.lead { max-width: 44em; margin: 16px 0 0; color: #BAC4D3; font-size: 17px; }
.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass), var(--glass-solid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ---------- lab ---------- */
.toy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px dashed rgba(59, 232, 255, 0.45);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 14px;
  line-height: 1.35;
}
.toy-label svg { flex: none; }
.lab-grid { display: grid; gap: 18px; margin-top: 26px; }
.terminal { overflow: hidden; min-width: 0; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(160, 196, 255, 0.22); }
.terminal-bar b { margin-left: auto; color: var(--muted); font: 500 12px/1 var(--font-mono); }
.terminal-body { min-height: 330px; padding: 14px; font: 400 12.5px/1.65 var(--font-mono); overflow-wrap: anywhere; }
.js .terminal-body::after { content: ''; display: block; width: 8px; height: 15px; margin-top: 4px; background: var(--cyan); opacity: 0.85; }
.t-line { display: grid; grid-template-columns: 9.5em 1fr; gap: 0 10px; margin: 0; }
.t-line.t-muted { display: block; font-family: var(--font-body); font-size: 14px; line-height: 1.55; }
.t-k { color: var(--muted); }
.t-v { color: var(--text); min-width: 0; }
.t-c { color: var(--cyan); }
.t-a { color: var(--amber); }
.t-ok { color: var(--mint); }
.t-head { margin: 0 0 6px; color: var(--steel-top); font-weight: 600; }
.t-gap { height: 8px; }
.terminal-progress { height: 4px; background: rgba(160, 196, 255, 0.1); }
.terminal-progress-bar { width: 100%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber)); transform: scaleX(0); transform-origin: left; }
.t-bar { display: inline-block; vertical-align: middle; width: min(180px, 42vw); height: 8px; margin-right: 8px; border-radius: 4px; background: rgba(160, 196, 255, 0.12); overflow: hidden; }
.t-bar i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber)); transform: scaleX(0); transform-origin: left; }

.lab-side { display: grid; gap: 18px; min-width: 0; }
.chart { margin: 0; padding: 16px; }
.chart figcaption { display: grid; gap: 2px; margin-bottom: 10px; }
.chart figcaption strong { font-size: 15px; }
.chart figcaption span { color: var(--muted); font-size: 13px; }
.chart-plot { min-height: 210px; }
.chart-plot svg { width: 100%; height: auto; overflow: visible; }
.chart-plot text { fill: var(--muted); font: 400 11px var(--font-mono); }
/* ---------- Q-Day clock ---------- */
.qbars { margin: 26px 0 0; padding: 18px; }
.qbars figcaption { display: grid; gap: 2px; margin-bottom: 10px; }
.qbars figcaption strong { font-size: 15px; }
.qbars figcaption span { color: var(--muted); font-size: 13px; }
.qbars-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.qbars-rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.qbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.qbar-label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.qbar-label small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.qbar-track { position: relative; height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(160, 196, 255, 0.12) 0 1px, transparent 1px 20%), rgba(160, 196, 255, 0.04); }
.qbar-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); opacity: 0.55; transform-origin: left; }
.qbar-now .qbar-track i { opacity: 1; box-shadow: 0 0 18px rgba(255, 181, 71, 0.45); }
.qbar-chip .qbar-track i { background: var(--cyan); opacity: 1; box-shadow: 0 0 14px rgba(59, 232, 255, 0.7); }
.qbar-v { min-width: 7.5em; color: var(--text); font-size: 13px; text-align: right; }
.qbars-axis { position: relative; height: 18px; margin: 6px calc(7.5em + 12px) 0 0; color: var(--muted); font: 11px var(--font-mono); }
.qbars-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.qbars-axis span:first-child { transform: none; }
.qbars-axis span:last-child { transform: translateX(-100%); }
.qday-facts { display: grid; gap: 12px; margin: 18px 0 6px; }
.qday-facts p { margin: 0; padding: 14px 16px; border-left: 2px solid var(--amber); background: rgba(255, 181, 71, 0.05); color: #C3CCDA; }
.qday-facts b { color: var(--amber); font-size: 18px; margin-right: 4px; }
@media (min-width: 760px) {
  .qbar { grid-template-columns: 230px minmax(0, 1fr) auto; }
  .qbar-label { grid-column: auto; }
  .qbars-axis { margin-left: 242px; }
  .qday-facts { grid-template-columns: 1fr 1fr; }
}
.lab-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12px; }
.lab-table th, .lab-table td { padding: 6px 4px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.lab-table th { color: var(--muted); font-family: var(--font-body); }
.lab-table td:nth-child(2) { color: var(--amber); }
.lab-note { margin: 0; padding: 10px 14px 12px; color: var(--muted); font-size: 12.5px; }
.extrapolate { padding: 18px; }
.extrapolate h3 { margin-bottom: 10px; font: 800 15px/1.2 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.extrapolate p { color: #C3CCDA; font-size: 15px; }
.extrapolate .mono { color: var(--text); }
.ex-cyan { color: var(--cyan); }
.ex-amber { color: var(--amber); }
.ex-src { margin: 0; font-size: 14px; }

/* ---------- live counter ---------- */
.counter { margin: 8px 0 22px; }
.counter-figure {
  margin: 0;
  color: var(--amber);
  font: 600 clamp(40px, 12vw, 96px)/1 var(--font-mono);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 22px rgba(255, 181, 71, 0.22));
}
.counter-figure.is-na { color: var(--muted); font-size: clamp(22px, 6vw, 40px); letter-spacing: 0; filter: none; }
.counter-caption { margin: 10px 0 0; max-width: 30em; font-size: clamp(18px, 4.6vw, 26px); line-height: 1.3; }
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.odo-d { display: inline-block; position: relative; height: 1em; overflow: hidden; }
.odo-strip { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.odo-strip span { display: block; height: 1em; line-height: 1; }
.odo-ghost { visibility: hidden; }
.pool-list { display: grid; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.pool-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 24, 50, 0.5); }
.pool-row b { font-weight: 600; }
.pool-row .mono { margin-left: auto; color: var(--amber); }
.pool-row .na { margin-left: auto; color: var(--muted); font-size: 14px; }
.pool-row a, .pool-row .src { width: 100%; color: var(--muted); font-size: 13px; }
.pool-row a:hover { color: var(--cyan); }
.counter-second { max-width: 46em; padding: 14px 16px; border-left: 2px solid var(--cyan); background: rgba(59, 232, 255, 0.05); font-size: 16px; }
.counter-second .mono { color: var(--cyan); font-weight: 600; }
.updated { color: var(--muted); font-size: 13px; }

/* ---------- most exposed ---------- */
.cards { display: grid; gap: 14px; margin-top: 26px; }
.card { display: grid; gap: 10px; padding: 18px; }
.card::after { content: ''; position: absolute; inset: -1px; border: 1px solid rgba(59, 232, 255, 0.5); border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity var(--d2) var(--ease); }
.card:has(.badge-curve)::after { border-color: rgba(255, 181, 71, 0.55); }
.card:hover::after { opacity: 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-rank { color: var(--muted); font: 500 12px var(--font-mono); }
.card h3 { font: 800 18px/1.2 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 600 11.5px/1.2 var(--font-body); letter-spacing: 0.04em; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-curve { border: 1px solid rgba(255, 181, 71, 0.5); background: rgba(255, 181, 71, 0.1); color: var(--amber); }
.badge-hash { border: 1px solid rgba(59, 232, 255, 0.5); background: rgba(59, 232, 255, 0.08); color: var(--cyan); }
.badge-unknown { border: 1px solid rgba(138, 150, 170, 0.5); background: rgba(138, 150, 170, 0.1); color: #AEB8C7; }
.card-tvl { margin: 0; font: 600 26px/1.1 var(--font-mono); }
.card-tvl small { display: block; margin-top: 4px; color: var(--muted); font: 400 12.5px/1.3 var(--font-body); }
.card-tvl.is-na { color: var(--muted); font-size: 16px; }
.card p { margin: 0; color: #BAC4D3; font-size: 14.5px; }
.card-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }

/* ---------- wallet ---------- */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 0; padding: 12px 16px; border: 1px solid rgba(255, 181, 71, 0.5); border-radius: 12px; background: rgba(255, 181, 71, 0.08); font-size: 14px; }
.demo-banner strong { color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.demo-picks { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.demo-pick { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 24, 50, 0.6); color: var(--text); font: 500 13px var(--font-mono); cursor: pointer; }
.demo-pick:hover { border-color: var(--cyan); }
.wallet-form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding: 10px; border-radius: 22px; }
.wallet-input {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 16px;
  border: 1px solid rgba(59, 232, 255, 0.25);
  border-radius: 14px;
  background: rgba(3, 9, 22, 0.6);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.wallet-input::placeholder { color: #66738A; }
.wallet-input:focus { border-color: var(--cyan); }
.wallet-go { min-height: 56px; }
.wallet-msg { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.wallet-msg.is-error { color: var(--amber); }
.scan { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 28px 0; }
.scan-sphere { position: relative; width: 220px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.scan-sphere img { width: 100%; height: 100%; }
.scan-cracked { position: absolute; inset: 0; opacity: 0; transition: opacity var(--d4) var(--ease); }
.scan.is-cracked .scan-cracked { opacity: 1; }
.scan.is-cracked .scan-beam { opacity: 0; }
.scan-phases { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.scan-phases li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; opacity: 0.4; transition: opacity var(--d2) var(--ease); }
.scan-phases li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.scan[data-phase='1'] .scan-phases li:nth-child(-n + 1), .scan[data-phase='2'] .scan-phases li:nth-child(-n + 2), .scan[data-phase='3'] .scan-phases li:nth-child(-n + 3), .scan[data-phase='4'] .scan-phases li { opacity: 1; color: var(--cyan); border-color: rgba(59, 232, 255, 0.4); }
.scan[data-phase='4'] .scan-phases li:nth-child(n + 3) { color: var(--amber); border-color: rgba(255, 181, 71, 0.5); }
.scan-beam {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(59, 232, 255, 0), rgba(59, 232, 255, 0.55) 50%, rgba(59, 232, 255, 0));
  box-shadow: 0 0 30px rgba(59, 232, 255, 0.45);
  mix-blend-mode: screen;
  transform: translateY(-120%);
  animation: beam 1s var(--ease) infinite alternate;
}
@keyframes beam { to { transform: translateY(560%); } }
.scan-text { color: var(--cyan); }
.report { margin-top: 28px; }
.report-head { display: grid; gap: 6px; margin-bottom: 18px; }
.report-head .mono { color: var(--muted); font-size: 13px; }
.report-score { font: 800 clamp(24px, 6.4vw, 40px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: -0.005em; }
.report-score b { color: var(--amber); }
.report-score b.is-safe { color: var(--cyan); }
.report-sub { color: #BAC4D3; }
.report-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.r-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 24, 50, 0.55); }
.r-item .badge { justify-self: start; }
@media (max-width: 759px) {
  .r-item { grid-template-columns: 1fr; }
  .demo-pick { font-size: 12px; white-space: nowrap; }
}
@media (min-width: 760px) {
  .r-item .badge { grid-row: span 2; align-self: start; }
}
.r-item strong { font-size: 15.5px; }
.r-item > span:not(.badge) { color: #AEB9C9; font-size: 14px; }
.r-item .mono { color: var(--text); }
.report-meta { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
/* split bar: decrypted / survive / unknown */
.split { display: flex; gap: 3px; max-width: 560px; height: 10px; margin: 14px 0 8px; border-radius: 999px; overflow: hidden; transform-origin: left; }
.split span { display: block; min-width: 10px; }
.split-d { background: var(--amber); }
.split-s { background: var(--cyan); }
.split-u { background: #5D6A80; }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--muted); font-size: 13px; }
.lg::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.lg-d::before { background: var(--amber); }
.lg-s::before { background: var(--cyan); }
.lg-u::before { background: #5D6A80; }
/* headline figures */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 6px; }
.tile { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 24, 50, 0.6); }
.tile-amber { border-color: rgba(255, 181, 71, 0.4); background: linear-gradient(180deg, rgba(255, 181, 71, 0.09), rgba(10, 24, 50, 0.6)); }
.tile-k { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tile-v { color: var(--text); font: 600 clamp(19px, 5vw, 28px)/1.1 var(--font-mono); overflow-wrap: anywhere; }
.tile-amber .tile-v { color: var(--amber); }
.tile-s { color: #AEB9C9; font-size: 13px; line-height: 1.45; }
/* Q-Day timeline */
.report-h { margin: 30px 0 16px; color: var(--steel-top); font: 800 15px/1.2 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 66px; top: 10px; bottom: 26px; width: 1px; background: linear-gradient(180deg, rgba(232, 238, 247, 0.5), rgba(255, 181, 71, 0.55) 30%, rgba(59, 232, 255, 0.4)); }
.tl { position: relative; display: grid; grid-template-columns: 54px 24px minmax(0, 1fr); padding: 0 0 18px; }
.tl-t { padding: 3px 8px 0 0; color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.tl-node { position: relative; z-index: 1; width: 13px; height: 13px; margin: 4px 0 0 6px; border: 2px solid var(--navy-0); border-radius: 50%; background: #5D6A80; }
.tl-exposed .tl-node { background: var(--text); }
.tl-decrypted .tl-node { background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, 0.65); }
.tl-survives .tl-node { background: var(--cyan); box-shadow: 0 0 12px rgba(59, 232, 255, 0.55); }
.tl-body strong { display: block; font-size: 15.5px; line-height: 1.3; }
.tl-decrypted .tl-body strong { color: var(--amber); }
.tl-survives .tl-body strong { color: var(--cyan); }
.tl-body p { margin: 4px 0 0; color: #AEB9C9; font-size: 14px; }
.prep { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prep-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; border: 1px solid rgba(59, 232, 255, 0.22); border-radius: 14px; background: linear-gradient(180deg, rgba(59, 232, 255, 0.06), rgba(10, 24, 50, 0.5)); }
.prep-n { color: var(--cyan); font-size: 13px; padding-top: 2px; }
.prep-item strong { display: block; font-size: 15.5px; }
.prep-item p { margin: 4px 0 6px; color: #AEB9C9; font-size: 14px; }
.prep-item a { font-size: 14px; }
@media (min-width: 960px) { .prep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-details { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 24, 50, 0.4); }
.report-details summary { cursor: pointer; font-weight: 600; }
.report-details[open] summary { margin-bottom: 12px; }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.share { display: grid; gap: 14px; margin-top: 28px; }
.share canvas { width: 100%; max-width: 440px; height: auto; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(59, 232, 255, 0.45); border-radius: 999px; background: rgba(10, 30, 60, 0.5); color: var(--text); font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; transition: transform var(--d2) var(--ease); }
.btn-ghost:hover { color: var(--text); transform: translateY(-2px); }

/* ---------- token ---------- */
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding: 14px 16px; }
.ca-label { color: var(--muted); font-size: 13px; width: 100%; }
.ca-value { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--cyan); font-size: 14px; }
.ca-copy { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 13px var(--font-body); cursor: pointer; }
.token-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; padding: 0; list-style: none; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; }
.footer-note { margin: 0; color: var(--text); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }

/* ---------- method page ---------- */
.doc { padding: 36px 0 80px; }
.doc h1 { font: 800 clamp(30px, 8vw, 56px)/1.05 var(--font-display); text-transform: uppercase; background: linear-gradient(180deg, var(--steel-top), var(--steel-bot)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.doc h2 { margin: 48px 0 12px; font: 800 clamp(20px, 5vw, 28px)/1.15 var(--font-display); text-transform: uppercase; color: var(--steel-top); scroll-margin-top: 24px; }
.doc h3 { margin: 26px 0 8px; font-size: 18px; }
.doc p, .doc li { max-width: 46em; color: #C3CCDA; }
.doc li { margin-bottom: 6px; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc code { font-size: 0.9em; color: var(--cyan); overflow-wrap: anywhere; }
.doc .note { padding: 14px 16px; border-left: 2px solid var(--amber); background: rgba(255, 181, 71, 0.06); }

/* ---------- tablet ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; --sphere: min(64vw, 540px); }
  .nav a:not(.nav-x):not([href$='.html']) { display: inline-block; }
  .brand-name { font-size: 13px; }
  .hero-sub { font-size: 19px; }
  .headline { font-size: clamp(56px, 10.4vw, 104px); }
  .lab-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-form { flex-direction: row; align-items: center; }
  .wallet-go { flex: none; min-width: 150px; }
  .share { grid-template-columns: minmax(0, 440px) 1fr; align-items: start; }
  .share-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .pool-row a, .pool-row .src { width: auto; }
}

/* ---------- desktop: the sphere sits half below the fold, callouts on its sides ---------- */
@media (min-width: 960px) {
  :root { --sphere: clamp(440px, min(56vw, 90vh), 820px); }
  .hero { display: flex; flex-direction: column; min-height: max(100svh, 700px); padding-top: 0; }
  .headline { font-size: clamp(64px, min(8.6vw, 13.4vh), 128px); }
  .pill { margin-top: 4px; }
  .stage-row {
    grid-template-columns: minmax(0, 1fr) var(--sphere) minmax(0, 1fr);
    align-items: start;
    gap: 0 clamp(16px, 2.5vw, 40px);
    width: 100%;
    max-width: 1360px;
    margin: auto auto calc(var(--sphere) / -2);
    padding-top: 24px;
  }
  .stage-row .stage { grid-column: 2; grid-row: 1; }
  .callouts { display: grid; gap: 18px; align-content: start; padding-top: calc(var(--sphere) * 0.08); }
  .callouts-left { grid-column: 1; grid-row: 1; justify-items: end; }
  .callouts-right { grid-column: 3; grid-row: 1; justify-items: start; }
  .callout { flex-direction: row; max-width: 270px; padding: 0; border: 0; background: none; }
  .callouts-left .callout { flex-direction: row-reverse; text-align: right; }
  .callouts-left .callout:nth-child(2) { margin-right: calc(var(--sphere) * -0.04); }
  .callouts-right .callout:nth-child(2) { margin-left: calc(var(--sphere) * -0.04); }
  .callout-icon { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(180deg, rgba(59, 232, 255, 0.14), rgba(10, 30, 60, 0.4)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .callout-text strong { font-size: 13px; }
  .callout-text span { font-size: 14px; }
  .section.lab { padding-top: calc(var(--sphere) / 2 + 56px); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) and (max-width: 1199px) {
  :root { --sphere: clamp(440px, min(50vw, 86vh), 600px); }
  .callout { max-width: 230px; }
  .callout-text span { font-size: 13px; }
}

/* ---------- motion: page load (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .stage-glow, .js .headline-line, .js .pill, .js .hero-sub, .js .cta-row, .js .callouts-left .callout, .js .callouts-right .callout, .js .stage-poster, .js .hero::before { opacity: 0; }
  .js.is-loaded .stage-glow { animation: fade-in var(--d4) var(--ease) both; }
  .js.is-loaded .hero::before { animation: fade-in var(--d4) var(--ease) both; }
  .js.is-loaded .headline-line { animation: rise var(--d3) var(--ease) both; animation-delay: 120ms; }
  .js.is-loaded .headline-line + .headline-line { animation-delay: 180ms; }
  .js.is-loaded .pill { animation: rise var(--d3) var(--ease) 260ms both; }
  .js.is-loaded .hero-sub { animation: rise var(--d3) var(--ease) 300ms both; }
  .js.is-loaded .cta-row { animation: rise var(--d3) var(--ease) 360ms both; }
  .js.is-loaded .callouts-left .callout { animation: from-left var(--d3) var(--ease) 480ms both; }
  .js.is-loaded .callouts-right .callout { animation: from-right var(--d3) var(--ease) 480ms both; }
  .js.is-loaded .callouts .callout:nth-child(2) { animation-delay: 540ms; }
  .js.is-loaded .stage-poster { animation: rise-far var(--d4) var(--ease) 200ms both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes rise-far { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  @keyframes from-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
  @keyframes from-right { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
  .stage.is-3d .stage-poster { animation: none; }

  /* scroll reveals: native scroll-driven animations, IntersectionObserver fallback (.no-sda) */
  @supports (animation-timeline: view()) {
    .js .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
  .js.no-sda .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease); }
  .js.no-sda .reveal.is-in { opacity: 1; transform: none; }

  /* exposed cards: time-based rise with a 30 ms stagger */
  .js .cards .card { opacity: 0; transform: translateY(16px); transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease); transition-delay: calc(var(--i, 0) * 30ms); }
  .js .cards.is-in .card { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }


/* ---------- ambient motion: transform and opacity only, off under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero icons float, each on its own phase */
  .callout-icon { animation: float 5.6s ease-in-out infinite; will-change: transform; }
  .callouts-left .callout:nth-child(1) .callout-icon { animation-delay: -0.4s; }
  .callouts-left .callout:nth-child(2) .callout-icon { animation-delay: -2.3s; animation-duration: 6.2s; }
  .callouts-right .callout:nth-child(1) .callout-icon { animation-delay: -1.5s; animation-duration: 5.9s; }
  .callouts-right .callout:nth-child(2) .callout-icon { animation-delay: -3.4s; animation-duration: 6.5s; }
  .callout-icon::before { animation: halo 2.8s ease-in-out infinite alternate; }
  @keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    30% { transform: translate3d(0, -10px, 0) rotate(-2.5deg); }
    65% { transform: translate3d(0, 4px, 0) rotate(1.5deg); }
  }
  @keyframes halo { from { opacity: 0.2; } to { opacity: 0.8; } }

  /* loading curtain: the logo breathes while the page settles */
  .js .curtain-mark { animation: breathe-logo 1.2s ease-in-out infinite alternate; }
  @keyframes breathe-logo { from { opacity: 0.6; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }

  /* live dot: a beacon ring */
  .pill-dot:not(.is-off)::after { animation: beacon 2s var(--ease) infinite; }
  @keyframes beacon { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

  /* CTA: a light sweep every few seconds; the arrow bobs toward the lab */
  .cta-shine::before { animation: shine 4.2s var(--ease) 1.6s infinite; }
  @keyframes shine {
    0% { opacity: 0; transform: translateX(-140%) skewX(-18deg); }
    8% { opacity: 1; }
    30%, 100% { opacity: 0; transform: translateX(340%) skewX(-18deg); }
  }
  .cta-arrow svg { animation: bob 2.4s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

  /* headline: slow glint on the steel; glow and dot grid breathe and drift */
  .headline-line::after { animation: glint 6s ease-in-out infinite; }
  .headline-line + .headline-line::after { animation-delay: -3s; }
  @keyframes glint { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }
  .js.is-loaded .stage-glow { animation: fade-in var(--d4) var(--ease) both, breathe 7s ease-in-out var(--d4) infinite alternate; }
  @keyframes breathe { from { transform: scale(0.96); } to { transform: scale(1.05); } }
  .js.is-loaded .hero::before { animation: fade-in var(--d4) var(--ease) both, drift 18s linear infinite; }
  @keyframes drift { from { transform: translateY(0); } to { transform: translateY(26px); } }

  /* lab: lines type in, a cursor blinks, each new point pops onto the chart */
  .js .terminal-body .t-line { animation: line-in var(--d2) var(--ease) both; }
  @keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  .js .terminal-body::after { animation: blink 1.05s steps(2, jump-none) infinite; }
  @keyframes blink { from { opacity: 0.9; } to { opacity: 0; } }
  #lab-chart circle.is-new { transform-box: fill-box; transform-origin: center; animation: pop var(--d3) cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }

  /* cards lift on hover; the Shor-vulnerable dot beats */
  .js .cards.is-in .card:hover { transform: translateY(-4px); transition-delay: 0s; }
  .badge-curve::before { animation: beat 1.6s ease-in-out infinite; }
  @keyframes beat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

  /* wallet report: the bar grows, figures and timeline steps rise in sequence, decrypted nodes pulse */
  .r-item { animation: rise var(--d3) var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .split { animation: grow var(--d4) var(--ease) 150ms both; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
  .tile { animation: rise var(--d3) var(--ease) both; }
  .tile:nth-child(2) { animation-delay: 80ms; }
  .tile:nth-child(3) { animation-delay: 160ms; }
  .tile:nth-child(4) { animation-delay: 240ms; }
  .tl { animation: rise var(--d3) var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms + 300ms); }
  .tl-decrypted .tl-node { animation: node-pulse 1.8s ease-in-out infinite; }
  .prep-item { animation: rise var(--d3) var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 500ms); }
  .js .qbars .qbar-track i { transform: scaleX(0); transition: transform var(--d4) var(--ease); transition-delay: calc(var(--r, 0) * 110ms + 150ms); }
  .js .qbars.is-in .qbar-track i { transform: none; }
  @keyframes node-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
  .scan-phases li.is-on { transform: translateY(-1px); }
}

/* desktop: a thin line from each icon toward the sphere, with a light pulse running along it */
.callout-pulse { display: none; }
@media (min-width: 960px) {
  .callout-icon { --line: clamp(36px, 4.5vw, 72px); }
  .callout-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: var(--line);
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 232, 255, 0.55), rgba(59, 232, 255, 0));
    pointer-events: none;
  }
  .callouts-left .callout-icon::after { left: calc(100% + 8px); }
  .callouts-right .callout-icon::after { right: calc(100% + 8px); transform: scaleX(-1); }
  .callout-pulse { display: block; position: absolute; top: calc(50% - 2px); width: 5px; height: 5px; border-radius: 50%; background: #E8FFFF; box-shadow: 0 0 10px 2px rgba(59, 232, 255, 0.8); opacity: 0; pointer-events: none; }
  .callouts-left .callout-pulse { left: calc(100% + 8px); }
  .callouts-right .callout-pulse { right: calc(100% + 8px); }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .callouts-left .callout-pulse { animation: pulse-right 3.4s var(--ease) infinite; }
  .callouts-right .callout-pulse { animation: pulse-left 3.4s var(--ease) infinite; }
  .callouts-left .callout:nth-child(2) .callout-pulse { animation-delay: 1.1s; }
  .callouts-right .callout:nth-child(1) .callout-pulse { animation-delay: 0.6s; }
  .callouts-right .callout:nth-child(2) .callout-pulse { animation-delay: 1.7s; }
  @keyframes pulse-right {
    0% { opacity: 0; transform: translateX(0); }
    12% { opacity: 1; }
    55%, 100% { opacity: 0; transform: translateX(var(--line)); }
  }
  @keyframes pulse-left {
    0% { opacity: 0; transform: translateX(0); }
    12% { opacity: 1; }
    55%, 100% { opacity: 0; transform: translateX(calc(var(--line) * -1)); }
  }
}

/* reduced motion: no 3D, no parallax, fades only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js.is-loaded .hero-copy, .js.is-loaded .stage-row { animation: fade-in var(--d3) linear both; }
  .js .cards .card { opacity: 0; transition: opacity var(--d3) linear; }
  .js .cards.is-in .card { opacity: 1; }
  .cta, .cta-arrow, .callout, .btn-ghost { transition: none; }
  .cta:hover, .cta-arrow:hover, .callout:hover, .btn-ghost:hover { transform: none; }
  .odo-strip { transition: none; }
  .scan-beam { animation: none; opacity: 0.6; transform: translateY(220%); }
  .stage-plain { transition: opacity var(--d3) linear; transform: translate(-50%, -50%); }
  .stage:not(.is-3d)[data-state='search'] .stage-glow { animation: none; }
}
