/* Dead Internet Theory ($DIT) — retro desktop, CRT cat, one human signal. */

:root {
  --blue: #1a3ae6;
  --blue-2: #1532cf;
  --blue-3: #0c1f9a;
  --navy: #071266;
  --sky: #8fb0ff;

  --gray: #c6c6c6;
  --hi: #ffffff;
  --mid: #dfdfdf;
  --lo: #808080;
  --dk: #0a0a0a;
  --title-a: #000a7a;
  --title-b: #1c6fd8;

  --note: #ffe66b;
  --note-2: #f7d94a;
  --note-ink: #2a2412;
  --mag: #ff3df2;
  --cyan: #35e7ff;

  --ui: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --pixel: "Pixelify Sans", Tahoma, Verdana, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hand: "Permanent Marker", "Comic Sans MS", "Chalkboard SE", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 104px;

  --bevel-out: inset -1px -1px var(--dk), inset 1px 1px var(--mid), inset -2px -2px var(--lo), inset 2px 2px var(--hi);
  --bevel-btn: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--mid);
  --bevel-in: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--mid), inset 2px 2px var(--dk);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--blue-2);
  background-image:
    radial-gradient(48% 30% at 82% 10%, rgba(190, 210, 255, .55), transparent 70%),
    radial-gradient(34% 22% at 8% 4%, rgba(255, 255, 255, .28), transparent 72%),
    radial-gradient(40% 26% at 60% 40%, rgba(120, 160, 255, .35), transparent 70%),
    radial-gradient(60% 30% at 20% 70%, rgba(255, 255, 255, .10), transparent 70%),
    linear-gradient(180deg, #2147f2 0%, #1838dc 35%, #1229b8 70%, #0b1b8a 100%);
}

/* Page-wide CRT: faint scanlines + static grain. Static, so it costs nothing. */
.crt {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(180deg, rgba(0, 0, 40, .10) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
img, svg { max-width: 100%; }
p { margin: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--note);
  color: var(--note-ink);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Win98-ish primitives ---------- */

.win {
  background: var(--gray);
  color: #000;
  padding: 3px;
  box-shadow: var(--bevel-out), 0 18px 40px rgba(3, 10, 70, .35);
}

.win-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 2px 3px 2px 6px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
  font: 700 13px/1.2 var(--ui);
}
.win-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-ctrls { display: flex; gap: 2px; flex: none; }
.win-ctrls i {
  display: grid;
  place-items: center;
  width: 18px; height: 16px;
  background: var(--gray);
  color: #000;
  font: 700 11px/1 var(--ui);
  font-style: normal;
  box-shadow: var(--bevel-btn);
}
.win-ctrls i:last-child { margin-left: 2px; }

.field {
  background: #fff;
  color: #000;
  box-shadow: var(--bevel-in);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--gray);
  color: #000;
  font: 400 14px/1.1 var(--ui);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--bevel-btn);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #d2d2d2; }
.btn:active, .btn[aria-pressed="true"] {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dk), inset -2px -2px var(--mid), inset 2px 2px var(--lo);
}
.btn:active > * { transform: translate(1px, 1px); }
.btn-default { box-shadow: 0 0 0 1px #000, var(--bevel-btn); font-weight: 700; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #000;
}
.btn:focus-visible { box-shadow: var(--bevel-btn), 0 0 0 2px #fff, 0 0 0 4px #000; outline: 1px dotted #000; outline-offset: -6px; }

/* ---------- Header ---------- */

/* A Win98 taskbar docked to the top: start button and quick links on the
   left, the contract address in the tray. Not sticky, so the hero gets the
   whole screen once you scroll. */
.top {
  position: relative;
  z-index: 10;
  background: var(--gray);
  color: #000;
  box-shadow: inset 0 -1px var(--dk), inset 0 -2px var(--lo), 0 6px 20px rgba(3, 10, 70, .3);
}
.top-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand nav" "ca ca";
  align-items: center;
  gap: 6px 8px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px max(8px, var(--gutter)) 8px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  color: #000;
  text-decoration: none;
  box-shadow: var(--bevel-btn);
}
.brand .sol { color: var(--title-a); }
.brand-mark { font: 700 17px/1 var(--pixel); letter-spacing: .02em; }
.brand-name { display: none; font-size: 13px; white-space: nowrap; }
.brand:hover { background: #d2d2d2; }
.top-nav { grid-area: nav; justify-self: end; display: flex; gap: 6px; }

.ca-bar {
  grid-area: ca;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* ---------- Hero: concept first ---------- */

.hero {
  display: grid;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px var(--gutter) 40px;
}

.hero-head, .hero-foot { min-width: 0; }

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font: 500 15px/1 var(--pixel);
  letter-spacing: .04em;
}
.ticker {
  font-size: 20px;
  font-weight: 700;
  color: var(--note);
  text-shadow: 2px 2px 0 var(--navy);
}
.chain { display: inline-flex; align-items: center; gap: 7px; }
.sol { width: 17px; height: 14px; flex: none; }

.title {
  margin: 10px 0 0;
  font-family: var(--pixel);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  font-size: clamp(42px, 14.2vw, 92px);
  color: #fff;
}
.t { display: block; }
.t1 { text-shadow: .045em .045em 0 var(--navy); }

/* "Internet" freezes and leaves a Not Responding trail of itself. */
.t2 { position: relative; width: max-content; max-width: 100%; }
.t2-main { position: relative; display: inline-block; animation: drift 9s steps(1, end) 2s infinite; }
@keyframes drift {
  0%, 93% { transform: none; }
  94% { transform: translateX(-.04em); }
  95.5% { transform: translateX(.03em); }
  97%, 100% { transform: none; }
}
.echo {
  position: absolute;
  left: 0; top: 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.e1 { color: #0e2ab6; transform: translate(.035em, .035em); }
.e2 { color: #0a1d8c; transform: translate(.07em, .07em); }
.e3 { color: #050f55; transform: translate(.105em, .105em); }

.t3 {
  width: max-content;
  margin: .06em 0 0 .7em;
  font-family: var(--hand);
  font-weight: 400;
  text-transform: none;
  font-size: .62em;
  line-height: 1;
  color: var(--note);
  transform: rotate(-4deg);
  transform-origin: left center;
  text-shadow: 3px 3px 0 rgba(5, 12, 80, .55);
}

.lede {
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.5;
  color: #eef2ff;
}
.lede strong { color: var(--note); font-weight: 700; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.hero-links a {
  display: inline-block;
  padding: 6px 0;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.hero-links a:hover { color: var(--note); }

/* ---------- Scene ---------- */

.scene { position: relative; margin: 0; min-width: 0; }
.scene-art { position: relative; }

.cat {
  position: relative;
  z-index: 1;
  display: block;
  width: min(92%, 440px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 22px 30px rgba(3, 10, 70, .45));
}
.cat .snow { opacity: 0; transition: opacity .15s linear; }
.cat.is-snow .snow { opacity: .92; }
.cat .frow { transition: none; }
.eye-led { animation: led 2.8s ease-in-out infinite; }
.tv-led { animation: led 2.8s ease-in-out infinite .4s; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.is-found .eye-led, .is-found .tv-led { fill: var(--note); animation: none; }

.streaks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.streaks i {
  position: absolute;
  left: 0;
  height: 6px;
  width: 46%;
  opacity: 0;
  animation: streak 7s steps(1) infinite;
}
.streaks i:nth-child(1) { top: 24%; background: var(--mag); animation-delay: 1.2s; }
.streaks i:nth-child(2) { top: 61%; left: 40%; height: 4px; background: var(--cyan); animation-delay: 3.6s; }
.streaks i:nth-child(3) { top: 12%; left: 52%; height: 3px; width: 30%; background: #fff; animation-delay: 5.1s; }
@keyframes streak {
  0%, 90% { opacity: 0; transform: translateX(0); }
  91% { opacity: .85; transform: translateX(-30px); }
  93% { opacity: .85; transform: translateX(24px); }
  95% { opacity: .6; transform: translateX(-8px); }
  96%, 100% { opacity: 0; transform: translateX(0); }
}
.scene.is-searching .streaks i { animation-duration: .9s; }
.scene.is-found .streaks i { animation: none; }
.motion-paused .streaks i,
.motion-paused .eye-led,
.motion-paused .tv-led,
.motion-paused .t2-main { animation-play-state: paused; }

/* The human control lives on a sticky note. Yellow = human. */
.sticky {
  background: linear-gradient(180deg, var(--note) 0%, var(--note) 82%, var(--note-2) 100%);
  color: var(--note-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 14px 26px rgba(3, 10, 70, .38);
}

.find {
  position: absolute;
  z-index: 4;
  top: 2%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 62%;
  padding: 14px 16px 12px;
  border: 0;
  text-align: left;
  cursor: pointer;
  transform: rotate(-4deg);
  transition: transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.find:hover { transform: rotate(-2deg) translateY(-2px); }
.find:active { transform: rotate(-2deg) translateY(1px); }
.find:focus-visible { outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 7px #fff, 0 14px 26px rgba(3, 10, 70, .38); }
.find-q { font: 400 clamp(20px, 5.6vw, 28px)/1.05 var(--hand); }
.find-a {
  font: 700 13px/1.2 var(--ui);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.find[aria-disabled="true"] { cursor: progress; }

.slot {
  position: relative;
  z-index: 3;
  display: grid;
  margin-top: -22%;
}
.slot > * { grid-area: 1 / 1; }

.feedwin {
  display: flex;
  flex-direction: column;
  height: 300px;
  min-width: 0;
}
.feedwin.is-off { visibility: hidden; }
.feed-wrap { position: relative; flex: 1; min-height: 0; margin: 3px 0 0; }
.feed { position: absolute; inset: 0; overflow: hidden; }
.feed-inner { will-change: transform; }
.strip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.strip .feed { position: absolute; inset: 0; }

.post {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 10px 9px;
  border-bottom: 1px solid #e2e2e2;
  font-size: 13px;
  line-height: 1.35;
  color: #111;
}
.av { width: 30px; height: 30px; display: block; }
.post-head { display: flex; gap: 6px; min-width: 0; white-space: nowrap; }
.post-head b { overflow: hidden; text-overflow: ellipsis; }
.post-head span { color: #6b6b6b; overflow: hidden; text-overflow: ellipsis; }
.post-body { margin-top: 1px; overflow-wrap: anywhere; }
.post-meta { margin-top: 3px; font: 11.5px/1.2 var(--mono); color: #737373; }
.bot-tag { padding: 0 4px; background: var(--title-a); color: #fff; }
.post.is-glitch { animation: post-glitch .24s steps(2, end) 1; }
@keyframes post-glitch {
  0%   { transform: translateX(0); clip-path: inset(0 0 0 0); }
  25%  { transform: translateX(-7px); clip-path: inset(18% 0 40% 0); }
  50%  { transform: translateX(6px); clip-path: inset(52% 0 8% 0); }
  75%  { transform: translateX(-3px); clip-path: inset(4% 0 66% 0); }
  100% { transform: translateX(0); clip-path: inset(0 0 0 0); }
}

.feed-nojs { display: none; padding: 16px; font-size: 14px; }
.no-js .feed-nojs { display: block; }
.no-js .find, .no-js .pause { display: none; }

.win-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  padding: 3px 2px 1px;
}
.win-status {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  min-height: 26px;
  padding: 3px 8px;
  font: 12px/1.3 var(--mono);
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi);
  overflow: hidden;
  white-space: nowrap;
}
#status-text { overflow: hidden; text-overflow: ellipsis; }
.led { flex: none; width: 8px; height: 8px; background: #d22; box-shadow: inset -1px -1px rgba(0, 0, 0, .35); }
.is-searching .led { background: #f0b400; }
.is-found .led { background: #2bb24c; }

/* The one human message. */
.signal {
  align-self: center;
  justify-self: center;
  width: min(100%, 440px);
  padding: 20px 22px 18px;
  transform: rotate(-2deg);
  animation: note-in .5s cubic-bezier(.2, 1.3, .4, 1) both;
}
.signal-meta { font: 700 11px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.signal-msg {
  min-height: 7.2em;
  margin-top: 10px;
  font: 400 clamp(17px, 4.6vw, 21px)/1.32 var(--hand);
  white-space: pre-line;
}
.caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--note-ink); }
.signal.is-done .caret { display: none; }
.signal-sign { margin-top: 12px; font: 400 15px/1.2 var(--hand); text-align: right; opacity: .85; }
.signal-sign::before { content: "— "; }
@keyframes note-in {
  from { opacity: 0; transform: rotate(-9deg) scale(.86); }
  to   { opacity: 1; transform: rotate(-2deg) scale(1); }
}

figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #d9e2ff;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 112px) var(--gutter); }
.wrap { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  margin-bottom: 10px;
  font: 700 12px/1.2 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4a4a4a;
}
.eyebrow-light { color: #d9e2ff; }

h2 {
  margin: 0 0 18px;
  font: 700 clamp(30px, 6vw, 54px)/1 var(--pixel);
  letter-spacing: -.005em;
  text-wrap: balance;
}

.theory-grid { display: grid; gap: 36px; align-items: start; }
.readme .win-body { padding: 22px clamp(16px, 3vw, 30px) 26px; }
.readme h2 { color: #000; }
.readme p + p { margin-top: 14px; }
.readme p:not(.eyebrow) { max-width: 62ch; font-size: 17px; line-height: 1.6; }

.symptoms {
  justify-self: center;
  width: min(100%, 340px);
  padding: 22px 24px 24px;
  transform: rotate(2.5deg);
  font: 400 19px/1.3 var(--hand);
}
.symptoms-h { font-size: 24px; margin-bottom: 8px; }
.symptoms ul { margin: 0; padding: 0; list-style: none; }
.symptoms li { padding: 5px 0 5px 22px; position: relative; }
.symptoms li::before { content: "–"; position: absolute; left: 2px; }
.symptoms .you { margin-top: 6px; text-decoration: underline wavy rgba(42, 36, 18, .5); text-underline-offset: 5px; }
.symptoms .you span { opacity: .7; }

.others h2 { color: #fff; text-shadow: 3px 3px 0 var(--navy); }
.exits {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.exit {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px 20px;
  background: var(--gray);
  color: #000;
  text-decoration: none;
  box-shadow: var(--bevel-btn), 0 16px 34px rgba(3, 10, 70, .3);
}
.exit:hover { background: #d4d4d4; }
.exit:hover .exit-arrow { transform: translate(3px, -3px); }
.exit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: var(--bevel-btn), 0 0 0 7px #000; }
.exit-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: var(--title-a);
  color: #fff;
  box-shadow: var(--bevel-in);
}
.exit-icon svg { width: 28px; height: 28px; }
.exit-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exit-k { font: 700 12px/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #444; }
.exit-v { font: 700 clamp(20px, 3vw, 28px)/1.1 var(--pixel); overflow-wrap: anywhere; }
.exit-arrow { font: 700 22px/1 var(--ui); transition: transform .2s ease; }

.verify { margin-top: 22px; max-width: 60ch; font-size: 15px; color: #e6ecff; }
.verify a { color: var(--note); }

/* Brief pixel-wipe when a heading arrives. */
.anim .reveal { clip-path: inset(0 100% 0 0); }
.anim .reveal.is-in { clip-path: inset(0 0 0 0); transition: clip-path .7s steps(14, end); }

/* ---------- Footer ---------- */

.foot {
  padding: 26px var(--gutter) 30px;
  background: rgba(4, 10, 60, .55);
  color: #d9e2ff;
  font-size: 13px;
}
.foot-inner {
  display: grid;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
}
.foot-mark { font: 700 20px/1 var(--pixel); color: #fff; margin-bottom: 4px; }
.facts { max-width: 1180px; margin: 18px auto 0; }
.facts summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  cursor: pointer;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.facts-body { margin-top: 12px; max-width: 760px; }
.facts dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { color: #aebcff; }
.facts dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.facts code { font: 12px/1.4 var(--mono); }
.facts-note { margin-top: 12px; color: #aebcff; }
.facts a { color: var(--note); }

/* ---------- Contract address, in the top bar's tray ---------- */

.tb-label { flex: none; font: 700 12px/1.1 var(--ui); }
.tb-label-long { display: none; }

.ca-value {
  display: block;
  flex: 0 1 auto;
  width: calc(22ch + 18px);
  min-width: 0;
  padding: 6px 9px;
  font: 500 13px/1.3 var(--mono);
  letter-spacing: 0;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}
.ca-value::selection { background: var(--title-a); color: #fff; }

.copy { flex: none; min-height: 44px; padding: 0 12px; }
.copy svg { width: 16px; height: 16px; flex: none; }
.copy .i-check { display: none; }
.copy[data-state="copied"] .i-copy { display: none; }
.copy[data-state="copied"] .i-check { display: block; color: #0a7a2a; }
.copy-more { display: none; }
.copy[data-state="copied"] .copy-more { display: none; }

.tb-status {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: max-content;
  max-width: min(420px, calc(100vw - 16px));
  padding: 8px 12px;
  background: #ffffe1;
  color: #000;
  font: 13px/1.35 var(--ui);
  box-shadow: 0 0 0 1px #000, 3px 3px 0 rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.tb-status.is-on { opacity: 1; transform: none; }
.tb-status.is-warn { background: #fff0f0; }

/* ---------- Breakpoints ---------- */

@media (max-width: 380px) {
  .copy { padding: 0 10px; }
}

@media (max-width: 340px) {
  .ca-bar { gap: 6px; }
  .ca-value { width: calc(22ch + 14px); padding: 6px 7px; font-size: 12px; }
}

@media (min-width: 560px) {
  .feedwin { height: 340px; }
}

/* One-line address only once it fits next to its label and button. */
@media (min-width: 640px) {
  .ca-value { width: auto; flex: 0 1 auto; white-space: nowrap; word-break: normal; font-size: 13.5px; }
}

@media (min-width: 720px) {
  .exits { grid-template-columns: 1fr 1fr; }
}

/* Everything on one row: start, quick links, then the address in the tray. */
@media (min-width: 900px) {
  :root { --top-h: 58px; }
  .top-inner { grid-template-columns: auto auto 1fr; grid-template-areas: "brand nav ca"; gap: 8px; padding-bottom: 6px; }
  .top-nav { justify-self: start; }
  .ca-bar { justify-self: end; }
}

@media (min-width: 1100px) {
  .copy-more { display: inline; }
  .tb-label-long { display: inline; }
  .tb-label-short { display: none; }
}

@media (min-width: 1280px) {
  .brand-name { display: inline; }
}

@media (min-width: 900px) {
  .theory-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .symptoms { margin-top: 48px; }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(300px, .74fr) minmax(0, 1.26fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". scene" "head scene" "foot scene" ". scene";
    column-gap: clamp(24px, 3vw, 56px);
    row-gap: 0;
    min-height: calc(100vh - var(--top-h));
    min-height: calc(100svh - var(--top-h));
    padding-bottom: 28px;
  }
  .hero-head { grid-area: head; }
  .hero-foot { grid-area: foot; margin-top: 22px; }
  .scene { grid-area: scene; align-self: center; }
  .title { font-size: clamp(56px, min(6.6vw, 13.5vh), 112px); }
  .lede { font-size: 17px; }

  .scene-art { min-height: min(640px, calc(100svh - var(--top-h) - 80px)); }
  .cat {
    width: min(78%, calc((100svh - var(--top-h) - 100px) * .89));
    margin: 0 0 0 auto;
  }
  .slot {
    position: absolute;
    left: 0;
    bottom: 3%;
    width: 56%;
    height: 54%;
    margin: 0;
  }
  .feedwin { height: 100%; }
  .find { top: 4%; left: 2%; max-width: 42%; }
  .find-q { font-size: clamp(22px, 2vw, 30px); }
  .find-a { font-size: 14px; }
  figcaption { margin-top: 4px; }
}

@media (min-width: 1280px) {
  .ca-value { font-size: 14.5px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eye-led, .tv-led, .streaks i { animation: none; }
  .streaks { display: none; }
  .pause { display: none; }
  .signal { animation: note-fade .2s linear both; }
  .anim .reveal { clip-path: none; }
  .t2-main { animation: none; }
  .find, .exit-arrow, .tb-status { transition: none; }
  .find:hover, .find:active { transform: rotate(-4deg); }
  .post.is-glitch { animation: none; }
}
@keyframes note-fade { from { opacity: 0; } to { opacity: 1; } }

@media print {
  .crt, .streaks, .find, .pause, .copy { display: none; }
  .top { box-shadow: none; }
  .anim .reveal { clip-path: none; }
}
