/* =========================================================
   style.css — Hallucinations.io v1.1.0
   GhostFire Digital
   Change summary (v1.1.0): grounded kicker (bracketed index, streamed italic label, Unsourced → grounded source chip)
     replaces the mono eyebrow and the hero rule-line kicker.
     Base (v1.0.0): Umbra / Lucid / Fog / Mirage / Redline identity, grounding engine, citation buttons, matrix.
   ========================================================= */

:root {
  --umbra: #0c0b10;
  --umbra-2: #13121a;
  --umbra-3: #1b1924;
  --lucid: #eeeae2;
  --lucid-2: #bcb7c6;
  --fog: #77728a;
  --mirage: #b79cff;
  --mirage-hi: #d4c6ff;
  --redline: #ff4f3f;
  --line: rgba(238, 234, 226, .09);
  --line-2: rgba(238, 234, 226, .18);
  --f-display: 'Gloock', 'Times New Roman', Georgia, serif;
  --f-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-mono: 'Red Hat Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--umbra);
  color: var(--lucid);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(183, 156, 255, .35); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--mirage); color: var(--umbra);
  font-family: var(--f-mono); font-size: .8rem; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 1px dashed var(--mirage-hi); outline-offset: 5px; }

/* ─── Citation buttons: square brackets that overhang the body, with a superscript reference number ─── */
.cite {
  --c-bg: rgba(238, 234, 226, .05);
  --c-fg: var(--lucid);
  --c-br: rgba(238, 234, 226, .45);
  --c-n: var(--mirage);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px 0 22px;
  border: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, color .3s ease;
}
.cite::before, .cite::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 9px;
  border: 1.5px solid var(--c-br);
  transition: transform .35s var(--ease), border-color .3s ease;
}
.cite::before { left: -5px; border-right: 0; }
.cite::after { right: -5px; border-left: 0; }
.cite-t { white-space: nowrap; }
.cite-t b { font-weight: 700; }
.cite-n {
  position: absolute;
  top: 7px;
  right: 11px;
  font-family: var(--f-mono);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-n);
}
.cite:hover, .cite:focus-visible { --c-br: var(--mirage); background-color: rgba(183, 156, 255, .12); }
.cite:hover::before, .cite:focus-visible::before { transform: translateX(4px); }
.cite:hover::after, .cite:focus-visible::after { transform: translateX(-4px); }
.cite--hot { --c-bg: var(--mirage); --c-fg: #120d22; --c-br: var(--mirage-hi); --c-n: #3a2a72; }
.cite--hot:hover, .cite--hot:focus-visible { --c-br: var(--lucid); background-color: var(--mirage-hi); }
.cite--sm { min-height: 38px; padding: 0 24px 0 16px; font-size: .68rem; }
.cite--sm::before, .cite--sm::after { top: -4px; bottom: -4px; width: 7px; }
.cite--sm .cite-n { top: 5px; right: 8px; font-size: .56rem; }
.cite[disabled] { opacity: .55; cursor: progress; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--gutter);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.nav.is-solid {
  background: rgba(12, 11, 16, .86);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--f-display); font-size: 1.3rem; text-decoration: none; color: var(--lucid); white-space: nowrap; }
.brand i { font-style: normal; font-family: var(--f-mono); font-size: .66em; color: var(--mirage); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lucid-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--lucid); border-bottom-color: var(--mirage); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(18px, 4vh, 44px)) var(--gutter) clamp(36px, 6vh, 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 46% 52% at 76% 58%, rgba(183, 156, 255, .11), rgba(183, 156, 255, 0) 70%),
    radial-gradient(ellipse 40% 40% at 8% 6%, rgba(255, 79, 63, .05), rgba(255, 79, 63, 0) 70%),
    var(--umbra);
}
.hero-inner { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto; }
.wm {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  max-width: 100%;
  font-family: var(--f-display);
  line-height: .92;
  color: var(--lucid);
}
.wm-word { font-size: var(--wm-size, clamp(2.4rem, 7.6vw, 7rem)); letter-spacing: -.015em; white-space: nowrap; }
.wm-tld { margin-left: .22em; font-family: var(--f-mono); font-size: clamp(1rem, 2vw, 1.7rem); font-weight: 700; color: var(--mirage); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
  margin-top: clamp(18px, 3.6vh, 40px);
}
.claim { font-family: var(--f-display); font-size: clamp(1.6rem, 2.7vw, 2.4rem); line-height: 1.1; text-wrap: balance; }
.claim em { font-style: normal; color: var(--mirage-hi); }
.hero-sub { margin-top: 14px; max-width: 40ch; font-size: clamp(1.02rem, 1.3vw, 1.12rem); line-height: 1.6; color: var(--lucid-2); }
.hint-fine, .hint-touch { display: none; color: var(--lucid); }
@media (hover: hover) and (pointer: fine) { .hint-fine { display: inline; } }
@media (hover: none), (pointer: coarse) { .hint-touch { display: inline; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px 18px; margin-top: clamp(20px, 3.4vh, 30px); padding: 0 6px; }
.hero-note { margin-top: 16px; font-family: var(--f-mono); font-size: .72rem; color: var(--fog); }

/* The output panel: two identical text layers; the lens reveals the ground-truth layer */
.out {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 25, 36, .92), rgba(19, 18, 26, .96));
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(183, 156, 255, .25);
}
.out-head, .out-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 18px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fog);
}
.out-head { border-bottom: 1px solid var(--line); }
.out-live { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--lucid-2); }
.out-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mirage); box-shadow: 0 0 10px var(--mirage); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.out-meter b { font-weight: 700; color: var(--lucid); }
.out-meter--src b { color: var(--redline); }
.out-body {
  position: relative;
  height: clamp(200px, 36vh, 340px);
  overflow: hidden;
  cursor: crosshair;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
          mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  touch-action: pan-y;
}
.out-txt {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.62;
  color: var(--lucid);
}
.out-surface .w { transition: opacity .3s ease; }
.out-ground {
  background: #17151f;
  color: var(--lucid-2);
  clip-path: circle(var(--lr, 0px) at var(--gx, -200px) var(--gy, -200px));
  -webkit-clip-path: circle(var(--lr, 0px) at var(--gx, -200px) var(--gy, -200px));
}
.out-ground .t { color: var(--lucid); text-decoration: underline 1px var(--mirage); text-underline-offset: 5px; }
.out-ground .f { color: var(--redline); text-decoration: line-through 2px var(--redline); }
.out-ground .src, .out-ground .nos { position: relative; }
.out-ground .src::after, .out-ground .nos::after {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: -4px;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.out-ground .src::after { content: attr(data-src); color: var(--mirage); }
.out-ground .nos::after { content: "no source"; color: var(--redline); bottom: auto; top: 100%; margin: -3px 0 0; }
.caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--mirage); animation: caret 1s steps(1) infinite; }
.out-ground .caret { visibility: hidden; }
@keyframes caret { 50% { opacity: 0; } }
.lens {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--lr, 0px) * 2);
  height: calc(var(--lr, 0px) * 2);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212, 198, 255, .75), 0 0 0 7px rgba(183, 156, 255, .08), 0 0 40px rgba(183, 156, 255, .3);
  transform: translate(calc(var(--lx, -200px) - var(--lr, 0px)), calc(var(--ly, -200px) - var(--lr, 0px)));
  pointer-events: none;
}
.lens span {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  padding: 2px 7px;
  background: var(--mirage);
  color: #120d22;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.out-foot { border-top: 1px solid var(--line); gap: 26px; }
.out-foot p { display: flex; align-items: baseline; gap: 8px; }
.out-foot b { min-width: 3ch; font-size: .82rem; font-weight: 700; color: var(--lucid); }
.out-foot b.is-red { color: var(--redline); }

/* ─── SECTIONS ─── */
/* Hash loads land on the content, not the section's top padding (in-page jumps are placed by grimy.js). */
.sec { position: relative; padding: clamp(80px, 12vw, 150px) 0; scroll-margin-top: calc(16px - clamp(80px, 12vw, 150px)); }
.sec + .sec { border-top: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin: 0 auto; }
/* Grounded kicker: a bracketed index, a label streamed in like model output, and a chip that starts Unsourced and
   grounds to the section's source when the label finishes (grimy.js). Without script it renders grounded. */
.kick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.kick--hero { margin-bottom: clamp(12px, 2.2vh, 20px); }
.k-ix {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--mirage-hi);
}
.k-ix::before, .k-ix::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 6px;
  border: 1.5px solid var(--mirage);
}
.k-ix::before { left: 0; border-right: 0; }
.k-ix::after { right: 0; border-left: 0; }
.k-t { position: relative; font-family: var(--f-body); font-size: clamp(1.14rem, 1.4vw, 1.3rem); font-style: italic; line-height: 1.2; color: var(--lucid); white-space: nowrap; }
.k-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.14em; background: var(--mirage); animation: caret .9s steps(1) infinite; }
.k-g {
  display: inline-grid;
  padding: 5px 9px 4px;
  border: 1px solid rgba(183, 156, 255, .4);
  background: rgba(183, 156, 255, .07);
  font-family: var(--f-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color .4s ease, background-color .4s ease;
}
.k-g > span { grid-area: 1 / 1; transition: opacity .35s ease, transform .45s var(--ease); }
.kg-p { color: var(--redline); text-decoration: line-through 1.5px; opacity: 0; transform: translateY(-100%); }
.kg-y { display: inline-flex; align-items: center; gap: 7px; color: var(--mirage); }
.kg-y::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mirage); box-shadow: 0 0 8px var(--mirage); }
.kg-y b { font-weight: 700; color: var(--lucid); }
.kick.is-pending .k-t { color: var(--lucid); }
.kick.is-pending .k-g { border-color: rgba(255, 79, 63, .45); border-style: dashed; background: rgba(255, 79, 63, .06); }
.kick.is-pending .kg-p { opacity: 1; transform: none; }
.kick.is-pending .kg-y { opacity: 0; transform: translateY(100%); }
.kick.is-wait .k-ix, .kick.is-wait .k-g { opacity: 0; }
.k-ix, .kick .k-g { transition: opacity .4s ease, border-color .4s ease, background-color .4s ease; }
.kick.is-grounded .k-g { animation: groundSweep .9s var(--ease) 1; background-image: linear-gradient(90deg, transparent, rgba(212, 198, 255, .35), transparent); background-size: 40% 100%; background-repeat: no-repeat; background-position: -60% 0; }
@keyframes groundSweep { to { background-position: 220% 0; } }
.h2 { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--mirage-hi); }
.lede { margin-top: 18px; max-width: 52ch; font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--lucid-2); }
.prose { max-width: 62ch; margin-top: 26px; font-size: clamp(1.06rem, 1.3vw, 1.16rem); line-height: 1.7; color: var(--lucid-2); }
.prose b { font-weight: 500; color: var(--lucid); }

/* Lineage: four dated points on one line, from a wandering mind to a confident machine */
.lineage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.6vw, 36px);
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-2);
}
.ln { position: relative; padding-top: 30px; }
.ln::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--mirage);
  background: var(--umbra);
}
.ln--skill::before { background: var(--mirage); box-shadow: 0 0 14px rgba(183, 156, 255, .7); }
.ln--flaw::before { border-color: var(--redline); background: var(--redline); box-shadow: 0 0 14px rgba(255, 79, 63, .6); }
.ln-y { font-family: var(--f-display); font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; }
.ln-k { margin-top: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mirage); }
.ln--flaw .ln-k { color: var(--redline); }
.ln-t { margin-top: 10px; font-size: 1rem; line-height: 1.6; color: var(--lucid-2); }
.ln-t i { font-style: italic; color: var(--lucid); }
.ln-s { margin-top: 12px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
.ln-s::before { content: "src \00b7  "; color: var(--mirage); }
.def { margin: clamp(36px, 5vw, 52px) 0 0; padding-left: clamp(18px, 2.4vw, 28px); border-left: 2px solid var(--mirage); }
.def p { max-width: 30ch; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; }
.def cite { display: block; margin-top: 12px; font-family: var(--f-mono); font-size: .72rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
.def cite i { font-style: normal; color: var(--lucid-2); }

/* The matrix: two axes, four buyers; cells place themselves from their data-row / data-col */
.sec--uses { background: var(--umbra-2); }
.matrix {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  margin-top: clamp(30px, 4.4vw, 52px);
}
.matrix [data-row="machines"] { grid-row: 2; }
.matrix [data-row="minds"] { grid-row: 3; }
.matrix [data-col="stop"] { grid-column: 2; }
.matrix [data-col="use"] { grid-column: 3; }
.mx-ax--col { grid-row: 1; padding: 0 0 12px 22px; }
.mx-ax--row { grid-column: 1; display: flex; align-items: center; justify-content: center; }
.mx-ax span {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog);
  transition: color .3s ease;
}
.mx-ax--row span { writing-mode: vertical-rl; transform: rotate(180deg); }
.mx-ax.on span { color: var(--mirage-hi); }
.mx-ax--col[data-col="stop"].on span { color: var(--redline); }
.mx-cell {
  position: relative;
  min-height: clamp(170px, 21vh, 220px);
  margin: 0 -1px -1px 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line-2);
  background: var(--umbra);
  transition: background-color .4s ease;
  outline-offset: -6px;
}
.mx-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.mx-cell[data-col="stop"]::before { --g: rgba(255, 79, 63, .14); }
.mx-cell[data-col="use"]::before { --g: rgba(183, 156, 255, .18); }
.mx-cell[data-row="machines"][data-col="stop"]::before { background: radial-gradient(circle at 100% 100%, var(--g), transparent 70%); }
.mx-cell[data-row="machines"][data-col="use"]::before { background: radial-gradient(circle at 0 100%, var(--g), transparent 70%); }
.mx-cell[data-row="minds"][data-col="stop"]::before { background: radial-gradient(circle at 100% 0, var(--g), transparent 70%); }
.mx-cell[data-row="minds"][data-col="use"]::before { background: radial-gradient(circle at 0 0, var(--g), transparent 70%); }
.mx-cell.on::before { opacity: 1; }
.mx-code { position: relative; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); }
.mx-cell[data-col="stop"].on .mx-code { color: var(--redline); }
.mx-cell[data-col="use"].on .mx-code { color: var(--mirage); }
.mx-cell h3 { position: relative; margin-top: 14px; font-family: var(--f-display); font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.12; }
.mx-cell p:last-child { position: relative; margin-top: 10px; max-width: 40ch; font-size: 1rem; line-height: 1.6; color: var(--lucid-2); }

/* Acquisition */
.acq-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.acq-grid > *, .inq-grid > * { min-width: 0; }
.steps { margin-top: 34px; border-top: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps span { grid-row: span 2; font-family: var(--f-mono); font-size: .84rem; font-weight: 700; color: var(--mirage); padding-top: 4px; }
.steps b { font-family: var(--f-display); font-weight: 400; font-size: 1.32rem; }
.steps em { font-style: normal; color: var(--lucid-2); font-size: 1.02rem; }
.acq-side { display: flex; flex-direction: column; gap: 22px; }
.answer {
  padding: 0 clamp(22px, 3vw, 34px) clamp(22px, 3vw, 30px);
  background: linear-gradient(180deg, var(--umbra-3), var(--umbra-2));
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.ans-head {
  display: flex;
  justify-content: space-between;
  margin: 0 calc(-1 * clamp(22px, 3vw, 34px));
  padding: 11px clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fog);
}
.ans-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--mirage); }
.ans-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mirage); box-shadow: 0 0 10px var(--mirage); }
.ans-bin {
  display: inline-flex;
  align-items: flex-start;
  gap: .08em;
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5.2vw, 4.2rem);
  line-height: 1;
  color: var(--lucid);
  text-decoration: none;
}
.ans-bin span { background: linear-gradient(var(--mirage), var(--mirage)) 0 100% / 0 2px no-repeat; transition: background-size .45s ease; }
.ans-bin sup { font-family: var(--f-mono); font-size: .26em; font-weight: 700; color: var(--mirage); }
.ans-bin:hover span, .ans-bin:focus-visible span { background-size: 100% 2px; }
.ans-src { margin-top: 10px; font-family: var(--f-mono); font-size: .72rem; color: var(--fog); }
.ans-src sup { color: var(--mirage); font-weight: 700; }
.ans-cta { margin-top: 24px; padding: 0 6px; }
.facts { margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fog); padding-top: 4px; }
.facts dd { margin: 0; font-size: 1rem; }
.ans-meter { display: flex; gap: 22px; margin-top: 16px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
.ans-meter b { color: var(--mirage); }
.routes { padding: 22px 24px 26px; border: 1px dashed rgba(183, 156, 255, .4); background: rgba(183, 156, 255, .04); }
.routes-k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mirage); }
.routes-t { margin-top: 8px; font-size: 1.02rem; color: var(--lucid-2); }
.routes-cta { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 20px; padding: 0 6px; }

/* Inquiry form */
.inq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form .full, .form .form-status, .form .form-foot { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row { display: flex; flex-direction: column; gap: 8px; }
.row label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lucid-2); }
.row label .opt { text-transform: none; color: var(--fog); }
.row input, .row textarea, .row select {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--lucid);
  font: inherit;
  font-size: 1.06rem;
  transition: border-color .25s ease;
}
.row select {
  padding-right: 28px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b79cff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 6px center / 12px 8px;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}
.row select option { background: var(--umbra-2); color: var(--lucid); }
.row textarea { resize: vertical; min-height: 110px; }
.row input:focus, .row textarea:focus, .row select:focus { outline: none; border-bottom-color: var(--mirage); box-shadow: 0 1px 0 var(--mirage); }
.row-note { margin-top: -6px; font-family: var(--f-mono); font-size: .72rem; color: var(--fog); }
.row-note b { color: var(--lucid); }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; font-size: 1rem; border-left: 2px solid var(--mirage); background: rgba(183, 156, 255, .1); }
.form-status.err { border-left-color: var(--redline); background: rgba(255, 79, 63, .1); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; padding-left: 6px; }
.form-note { font-size: 1rem; color: var(--lucid-2); }
.form-note a { color: var(--lucid); text-decoration-color: var(--mirage); text-underline-offset: 3px; }

/* Footer */
.foot { padding: 64px var(--gutter) 72px; text-align: center; border-top: 1px solid var(--line); background: #08070b; color: var(--lucid-2); }
.foot-mark { font-family: var(--f-display); font-size: 1.8rem; color: var(--lucid); }
.foot-mark i { font-style: normal; font-family: var(--f-mono); font-size: .6em; color: var(--mirage); }
.foot-creed { margin-top: 8px; font-family: var(--f-display); font-size: 1.05rem; }
.foot-meta { margin-top: 14px; font-family: var(--f-mono); font-size: .72rem; color: var(--fog); }
.foot-meta a { color: var(--lucid); text-decoration: none; transition: color .3s ease; }
.foot-meta a:hover, .foot-meta a:focus-visible { color: var(--mirage-hi); }
.foot-ug { margin-top: 6px; font-family: var(--f-mono); font-size: .72rem; color: var(--fog); }
.foot-ug i { font-style: italic; font-weight: 700; color: var(--mirage); }

/* Blink back-to-top */
.blink {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 40;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--umbra-3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--ease), box-shadow .3s ease;
}
.blink.is-on { opacity: 1; transform: none; pointer-events: auto; }
.blink:hover, .blink:focus-visible { box-shadow: 0 0 0 1px var(--mirage), 0 10px 30px rgba(0, 0, 0, .6); }
.blink svg { width: 100%; height: 100%; }
.bk-track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.bk-prog { fill: none; stroke: var(--mirage); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; transform: rotate(-90deg); transform-origin: 24px 24px; }
.bk-eye { transform-origin: 24px 24px; }
.bk-lid { fill: none; stroke: var(--lucid); stroke-width: 1.6; stroke-linejoin: round; }
.bk-iris { fill: var(--mirage); transform-origin: 24px 24px; transition: transform .4s var(--ease), fill .4s ease; }
.bk-pupil { fill: var(--umbra); }
.blink.is-open .bk-iris { fill: var(--mirage-hi); transform: scale(1.32); }
.blink:hover .bk-eye, .blink:focus-visible .bk-eye { animation: blinkLid .42s ease; }
@keyframes blinkLid { 40% { transform: scaleY(.08); } 100% { transform: scaleY(1); } }

/* Reveals */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s var(--ease); }
.rv.in-view { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .acq-grid, .inq-grid { grid-template-columns: minmax(0, 1fr); }
  .lineage { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 34px clamp(18px, 3vw, 30px); }
  .ln { border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .foot { padding-bottom: 104px; }
  .matrix { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .matrix .mx-ax { display: none; }
  .matrix .mx-cell { grid-row: auto; grid-column: auto; min-height: 0; }
  .out-foot { gap: 18px; }
  .out-head { gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .k-t { white-space: normal; }
  .wm-word { font-size: var(--wm-size, 11vw); }
  .hero-cta { flex-direction: column; align-items: stretch; width: min(340px, 100%); }
  .hero-cta .cite, .routes-cta .cite, .ans-cta .cite { justify-content: center; width: 100%; }
  .routes-cta { flex-direction: column; }
  .routes { padding: 18px 16px 22px; }
  .lineage { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 84px 1fr; }
  .brand { font-size: 1.08rem; }
  .out-txt { left: 16px; right: 16px; }
  .out-head .out-meter:not(.out-meter--src) { display: none; }
  .answer, .ans-head { padding-left: 18px; padding-right: 18px; }
  .ans-head { margin-left: -18px; margin-right: -18px; }
}
@media (max-width: 380px) {
  .out-foot { gap: 12px; padding: 10px 14px; font-size: .6rem; }
  .out-foot p { gap: 5px; }
  .nav .cite { padding: 0 18px 0 12px; }
  .nav .cite-n { display: none; }
  .brand { font-size: 1rem; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .hero-sub { margin-top: 10px; }
  .hero-cta { margin-top: 16px; }
  .out-body { height: clamp(180px, 34vh, 260px); }
}
@media (max-height: 820px) and (min-width: 901px) {
  .mx-cell { min-height: 150px; padding: 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .cite, .cite::before, .cite::after, .blink, .bk-iris, .mx-cell, .mx-cell::before, .ans-bin span, .out-surface .w { transition: none; }
  .out-live i, .caret, .k-caret, .kick.is-grounded .k-g, .blink:hover .bk-eye, .blink:focus-visible .bk-eye { animation: none; }
}
