/* GHOST — v0.3 "specimen sheet" design.
   One accent (ghost lilac) on near-black ink; heavy expanded display type
   set solid + outline; mono labels; hairline grid instead of cards. */
@font-face { font-family: 'Archivo'; src: url('./archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('./jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('./jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #07080b;
  --panel: #0c0e13;
  --line: #1c2130;
  --line-2: #2b3245;
  --text: #eef0f6;
  --muted: #9aa1b3;
  --accent: #9ec5ff;          /* mid-point of the holo gradient, for lines and small text */
  --cyan: #64efdb;
  --blue: #8098ff;
  --violet: #cd77ff;
  --holo: linear-gradient(100deg, #64efdb 0%, #8098ff 52%, #cd77ff 100%);
  --accent-ink: #061018;
  --danger: #ffb4a8;
  --danger-bg: #2a1214;
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::after { /* faint scanlines: CRT texture, never blocks clicks */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30;
  background: repeating-linear-gradient(0deg, #ffffff05 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
body::before { /* faint blueprint grid behind the hero only */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(#000 40%, transparent);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- display type ---------- */
.display { font-family: var(--display); font-weight: 900; font-stretch: 112%; line-height: .9; letter-spacing: -.02em; margin: 0; text-transform: uppercase; text-wrap: balance; }
.display span { display: block; }
.display .outline { color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
.display .accent { background: linear-gradient(100deg, #64efdb 0%, #8098ff 25%, #cd77ff 50%, #8098ff 75%, #64efdb 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px #8098ff55); animation: holo 7s linear infinite; }
@keyframes holo { to { background-position: -200% 0; } }
.hero h1 span { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 span:nth-child(2) { animation-delay: .08s; }
.hero h1 span:nth-child(3) { animation-delay: .16s; }
.hero h1 span.accent { animation: rise .9s cubic-bezier(.2,.8,.2,1) .24s both, holo 7s linear infinite; }
@keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
.ring { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hero-ghost { transform-origin: 50% 60%; }
.ghost-eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.spark { animation: drift 9s ease-in-out infinite; transform-box: fill-box; }
.spark:nth-of-type(2) { animation-delay: -3s; } .spark:nth-of-type(3) { animation-delay: -6s; }
@keyframes drift { 50% { transform: translate(6px, -14px); opacity: .5; } }
.display.mid { font-size: clamp(36px, 6vw, 76px); }
.display.mid span { display: inline; }
.display.small { font-size: clamp(26px, 3.2vw, 38px); }
.display.small span { display: block; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 72px; padding-inline: var(--gutter) max(20px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); box-shadow: 0 0 12px #64efdb44, inset 0 0 8px #8098ff33; font-size: 10px; letter-spacing: .06em; }
.nav-mid { margin: 0; color: var(--muted); }
.nav-links { display: flex; justify-content: flex-end; gap: 24px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1440px) { .nav { grid-template-columns: auto 1fr; } .nav-mid { display: none; } .nav-links { gap: 20px; } }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 56px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0 0 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(56px, 9.2vw, 132px); }
.hero-sub { max-width: 30em; color: var(--muted); font-size: 18px; margin: 28px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); background: transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-solid { background: var(--holo); border-color: transparent; color: var(--accent-ink); box-shadow: 0 0 0 1px #ffffff14 inset, 0 10px 40px -10px #8098ff88; }
.btn-solid:hover { filter: brightness(1.08) saturate(1.1); }
.btn-line:hover { border-color: var(--cyan); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.ca-box { margin-top: 28px; border: 1px solid var(--line-2); padding: 16px 18px; max-width: 600px; background: var(--panel); }
.ca-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.ca-copy { background: none; border: 0; color: var(--cyan); padding: 0; font-size: 11px; }
.ca-value { margin: 10px 0 0; font-size: 13px; letter-spacing: .02em; text-transform: none; overflow-wrap: anywhere; color: var(--text); }
.fine { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 14px 0 0; max-width: 600px; }

.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; padding-top: 72px; }
section[id], #top { scroll-margin-top: 88px; }
.spec { position: absolute; top: 0; right: 0; margin: 0; text-align: right; color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.ring { position: relative; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #1b2150 0%, #0d1024 50%, var(--ink) 72%); box-shadow: inset 0 0 0 14px #0a0b10, inset 0 0 0 15px var(--line), 0 0 120px -30px #8098ff66; }
.ring::before, .ring::after { content: ""; position: absolute; inset: -18px; pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 22px 1px no-repeat, linear-gradient(var(--cyan), var(--cyan)) top left / 1px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right / 22px 1px no-repeat, linear-gradient(var(--cyan), var(--cyan)) top right / 1px 22px no-repeat,
    linear-gradient(var(--violet), var(--violet)) bottom left / 22px 1px no-repeat, linear-gradient(var(--violet), var(--violet)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--violet), var(--violet)) bottom right / 22px 1px no-repeat, linear-gradient(var(--violet), var(--violet)) bottom right / 1px 22px no-repeat; }
.ring::after { inset: 50% -18px auto; height: 1px; background: linear-gradient(90deg, transparent, #64efdb55 20%, transparent 40%, transparent 60%, #cd77ff55 80%, transparent); }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-ghost { position: relative; width: 78%; height: auto; filter: drop-shadow(0 0 46px #7b7efaaa); animation: bob 6s ease-in-out infinite; }
.tag { position: absolute; bottom: 28px; right: 6%; margin: 0; border: 1px solid var(--line-2); background: var(--panel); padding: 8px 12px; font-size: 10.5px; color: var(--text); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.statement { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); border-top: 1px solid var(--line); }
.statement .big { font-size: clamp(40px, 7.4vw, 108px); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.label { color: var(--cyan); margin: 0; font-size: 11.5px; }

.cols { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cols article { padding: 32px 32px 40px; border-left: 1px solid var(--line); min-width: 0; }
.cols article:first-child { border-left: 0; padding-left: 0; }
.cols h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; margin: 44px 0 14px; letter-spacing: -.01em; }
.cols p:not(.label) { color: var(--muted); margin: 0; max-width: 30em; }

.app, .ghosts, .never { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter) 24px; }
.invite { border: 1px solid var(--blue); color: var(--text); padding: 14px 16px; margin-bottom: 18px; font-size: 12px; line-height: 1.6; }
.workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); }
.panel { padding: 28px; min-width: 0; background: var(--panel); }
.panel + .panel { border-left: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; color: var(--text); font-size: 11.5px; margin-bottom: 18px; }
.step-tag { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.steps li { border-top: 2px solid var(--line-2); padding-top: 8px; }
.steps li.active { border-image: var(--holo) 1; color: var(--text); }
.steps li.done { border-color: #3b5f86; color: #bcd3ee; }
.options { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; min-width: 0; }
.options legend { padding: 0; margin-bottom: 10px; }
.radio-line { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); padding: 14px; cursor: pointer; }
.radio-line:has(input:checked) { border-color: var(--cyan); box-shadow: inset 3px 0 0 var(--cyan); }
.radio-line input { accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.radio-line span { display: flex; flex-direction: column; }
.radio-line b { font-weight: 700; font-size: 15px; }
.radio-line small { color: var(--muted); font-size: 13px; }
.radio-line.disabled { opacity: .6; cursor: not-allowed; }
#address-block .label { display: block; margin-bottom: 10px; }
.field { width: 100%; min-height: 52px; background: var(--ink); border: 1px solid var(--line-2); padding: 0 14px; font-size: 16px; letter-spacing: .02em; text-transform: none; color: var(--text); }
.field::placeholder { color: #7d8496; }
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px #64efdb22; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 22px; }
.turnstile { margin: 0 0 14px; min-height: 65px; }
.error { color: var(--danger); background: var(--danger-bg); border: 1px solid #6b2b2f; padding: 12px 14px; margin-top: 14px; font-size: 14px; }
.privacy { margin-top: 18px; color: var(--muted); font-size: 13px; }
.privacy summary { cursor: pointer; color: var(--text); }
.privacy p { margin: 8px 0 0; }

/* result */
.result { display: flex; flex-direction: column; }
.empty { margin: auto 0; display: grid; gap: 16px; padding: 24px 0; }
.empty p:last-child { color: var(--muted); margin: 0; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.result-head > div { min-width: 0; }
.result-head .section-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--cyan); }
.result-head h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(28px, 3.4vw, 42px); line-height: .95; margin: 10px 0 6px; overflow-wrap: anywhere; }
.result-head p { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.demo-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; border: 1px solid var(--violet); color: #e2b8ff; padding: 6px 9px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); margin: 22px 0; }
.stat { padding: 14px; border-left: 1px solid var(--line-2); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.roast-box { border-left: 2px solid; border-image: linear-gradient(var(--cyan), var(--violet)) 1; padding: 4px 0 4px 18px; }
.roast-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--cyan); }
.roast-box blockquote { margin: 10px 0; font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.roast-box p { color: var(--muted); font-size: 14px; margin: 0; }
.evidence { margin-top: 22px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.evidence strong { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text); font-weight: 700; }
.evidence ul { margin: 10px 0; padding-left: 18px; }
.evidence li { margin-bottom: 6px; }
.evidence p { margin: 8px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.result-actions button { min-height: 48px; border: 1px solid var(--line-2); background: transparent; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.result-actions button:first-child { background: var(--holo); border-color: transparent; color: var(--accent-ink); }
.result-actions button:hover { border-color: var(--cyan); }
.share-note { color: var(--muted); font-size: 12px; margin: 10px 0 0; text-align: center; }
.manual-copy { margin-top: 12px; display: grid; gap: 6px; font-size: 12px; color: var(--text); }
.manual-copy input { width: 100%; background: var(--ink); border: 1px solid var(--line-2); color: var(--text); padding: 10px; font-size: 14px; }
.card-preview { margin: 16px 0 0; display: grid; gap: 6px; }
.card-preview img { width: 100%; height: auto; border: 1px solid var(--line-2); }
.card-preview figcaption { color: var(--muted); font-size: 12px; text-align: center; }
#result-title:focus { outline: none; }

/* ghosts table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.ghost-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ghost-table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 11px; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.ghost-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ghost-table td:nth-child(1) { color: var(--cyan); width: 90px; }
.ghost-table td:nth-child(2) { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.05; }
.ghost-table td:nth-child(3) { color: var(--muted); }
.ghost-table tr:hover td:nth-child(2) { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* never list */
.never-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.never-list li { display: flex; gap: 18px; align-items: baseline; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.never-list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.never-list .mono { color: var(--cyan); font-size: 11px; }

.road { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter) 24px; }
.road-intro { color: var(--muted); max-width: 40em; margin: 0; }
.road-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.road-list li { display: grid; grid-template-columns: 56px 112px minmax(0, 1fr) 150px; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.road-list h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.05; margin: 0 0 6px; text-transform: uppercase; }
.road-list p { margin: 0; color: var(--muted); max-width: 46em; }
.road-id { color: var(--muted); }
.road-date { color: var(--muted); text-align: right; font-size: 11px; }
.chip { justify-self: start; font-size: 10.5px; padding: 5px 9px; border: 1px solid var(--line-2); color: var(--muted); }
.is-live .chip { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px #64efdb33; }
.is-live .chip::before { content: "● "; animation: pulse 2.4s ease-in-out infinite; }
.is-next .chip { border-color: var(--blue); color: #b3c0ff; }
.is-next h3 { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-live::before, .is-next::before { content: ""; position: absolute; left: -12px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); }
.is-later { opacity: .75; }

.footer { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 48px; display: grid; gap: 12px; justify-items: start; }
.footer p { margin: 0; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-mid { display: none; }
  .nav-links a:not(#nav-x) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { min-height: 0; padding-top: 48px; }
  .ring { width: min(320px, 74vw); }
  .spec { font-size: 9.5px; }
  .tag { bottom: 8px; right: 0; }
  .workspace { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .road-list li { grid-template-columns: 44px auto 1fr; gap: 10px 14px; }
  .road-list li > div { grid-column: 1 / -1; }
  .road-date { grid-column: 3; grid-row: 1; }
  .is-live::before, .is-next::before { left: -8px; }
  .road { padding-top: 64px; }
  .cols { grid-template-columns: 1fr; }
  .cols article, .cols article:first-child { border-left: 0; padding: 28px 0 32px; border-top: 1px solid var(--line); }
  .cols article:first-child { border-top: 0; }
  .cols h3 { margin-top: 20px; }
  .never-list { grid-template-columns: 1fr; }
  .never-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .app, .ghosts, .never { padding-top: 64px; }
  .statement { padding-block: 56px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(44px, 15vw, 64px); }
  .hero-sub { font-size: 16px; }
  .btn { width: 100%; }
  .panel { padding: 20px 16px; }
  .stat strong { font-size: 28px; }
  .result-actions { grid-template-columns: 1fr; }
  .steps { font-size: 9.5px; }
  .spec { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-ghost, .orbits, .dot, .display .accent, .hero h1 span, .ghost-eye, .spark { animation: none !important; }
  .ring { transform: none !important; }
  * { transition: none !important; }
}

/* ---- v0.3.1: Sixth-Sense-style focus-in headlines + how-it-works headline ---- */
.how-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 32px; display: grid; gap: 14px; }
.how-head .display .accent { animation: holo 7s linear infinite; }
.js-reveal .reveal { filter: blur(10px); opacity: .35; transform: translateY(14px); transition: filter .9s cubic-bezier(.2,.8,.2,1), opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1); }
.js-reveal .reveal.in { filter: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { filter: none !important; opacity: 1 !important; transform: none !important; } }

/* ---- v0.4: The Lab (Deep Memory, Parallel Ghost, Paper Lab) ---- */
.lab-sec { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter) 24px; }
.lab-intro { color: var(--muted); max-width: 46em; margin: 0; }
.lab-panel { border: 1px solid var(--line); background: var(--panel); padding: 24px; display: grid; gap: 24px; min-width: 0; }
.lab-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; padding: 5px 9px; border: 1px solid var(--line-2); color: var(--muted); }
.chip.is-live { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px #64efdb33; }
.mem-stats, .paper-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line-2); }
.mem-stats .stat, .paper-stats .stat { border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: -1px; }
.mem-stats .stat strong, .paper-stats .stat strong { font-size: 26px; }
.stat.up strong, .up { color: var(--cyan); }
.stat.down strong, .down { color: #ff8fa3; }
.mem-grid, .paper-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.mem-block { display: grid; gap: 12px; align-content: start; min-width: 0; }
.muted-label, .muted { color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; border-bottom: 1px solid var(--line-2); }
.hours span { display: block; height: var(--h, 0%); min-height: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity: .85; }
.hours-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.patterns { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text); }
.since { color: var(--cyan); font-size: 11px; margin: 0; }
.lab-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 14px; }
.lab-table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 10.5px; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.lab-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.flag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; border: 1px solid var(--line-2); padding: 3px 6px; margin-right: 4px; color: #e2b8ff; white-space: nowrap; }
.check-line { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; }
.check-line input { accent-color: var(--cyan); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check-line span { display: flex; flex-direction: column; }
.check-line small { color: var(--muted); font-size: 13px; }
#deep-option { margin-top: -8px; margin-bottom: 8px; }
.rules { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.rules legend { padding: 0; margin-bottom: 6px; }
.par-results { display: grid; gap: 22px; }
.par-row { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.par-line { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.par-line > span { color: var(--muted); font-size: 11px; }
.par-line b { font-family: var(--display); font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; }
.par-bar { height: 14px; background: #ffffff08; border: 1px solid var(--line); }
.par-bar span { display: block; height: 100%; width: var(--w, 0%); }
.par-bar.you span { background: #6b7591; }
.par-bar.ghost span { background: var(--holo); }
.par-bar.neg span { background: #ff8fa366; }
.par-bar.ghost.neg span { background: linear-gradient(90deg, #ff8fa3aa, #cd77ff88); }
.par-verdict { margin: 0; color: var(--text); }
.par-verdict .muted { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; margin-left: 8px; }
.paper-row { display: flex; gap: 8px; }
.paper-row .field { flex: 1; min-width: 0; }
.paper-row .btn { flex: none; }
.paper-quick { display: flex; gap: 8px; }
.chip-btn { background: none; border: 1px solid var(--line-2); color: var(--text); padding: 6px 10px; font-size: 11px; }
.chip-btn:hover { border-color: var(--cyan); }
.paper-token { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.paper-token-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.paper-token-head b { font-family: var(--display); font-weight: 900; font-size: 24px; }
.paper-token-head .mono { color: var(--muted); font-size: 11px; }
.paper-sells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paper-sells .btn { padding: 0 8px; min-height: 44px; font-size: 11px; }
.paper-msg { margin: 0; min-height: 1.6em; font-size: 14px; color: var(--muted); }
.paper-msg.ok { color: var(--cyan); }
.paper-msg.warn { color: var(--danger); }
.paper-msg.ghost { color: #e2b8ff; border-left: 2px solid var(--violet); padding-left: 12px; }
.rules-form { display: grid; gap: 12px; }
.rules-form label { display: grid; gap: 6px; color: var(--text); font-size: 14px; }
.rules-form label span { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.rules-form .field { width: 90px; min-height: 42px; }
.rules-form .btn:disabled { opacity: .45; cursor: not-allowed; }
.journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journal li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.journal .mono { color: var(--muted); font-size: 10.5px; margin-right: 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.paper-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.paper-foot .fine { margin: 0; }
.paper-off { border: 1px dashed var(--line-2); padding: 14px; color: var(--muted); }
.paper-off p { margin: 0; }
@media (max-width: 860px) { .mem-grid, .paper-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .lab-panel { padding: 16px; }
  .par-line { grid-template-columns: 70px minmax(0, 1fr); }
  .par-line b { grid-column: 2; font-size: 17px; }
  .lab-sec { padding-top: 64px; }
}
.keep-case { text-transform: none !important; letter-spacing: .04em !important; }
