:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #171717;
  --text: #f1f1eb;
  --muted: #8d8d85;
  --line: #2b2b28;
  --acid: #c8ff00;
  --acid-soft: rgba(200, 255, 0, .12);
  --danger: #ff664d;
  --max: 1600px;
  --pad: clamp(20px, 3vw, 52px);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-width: 320px;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--acid); color: #050505; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--acid);
  color: #000;
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }

.mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hidden { display: none; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.scanline {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0, rgba(255,255,255,.018) 50%, transparent 100%);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .2s ease;
}
.cursor-dot { width: 5px; height: 5px; background: var(--acid); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(200,255,0,.7); transition: width .2s, height .2s, border-color .2s, opacity .2s; }
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 58px; height: 58px; border-color: var(--text); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(10,10,10,.78);
  backdrop-filter: blur(18px);
}
.brand { font-weight: 900; font-size: clamp(19px, 2vw, 30px); letter-spacing: -.04em; justify-self: start; }
.system-status { font: 10px var(--mono); letter-spacing: .1em; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); }
.menu-toggle { justify-self: end; border: 0; background: none; font: 12px var(--mono); letter-spacing: .12em; cursor: pointer; padding: 10px 0; }
.main-nav {
  position: fixed;
  top: 72px;
  right: 0;
  width: min(560px, 100vw);
  height: calc(100vh - 72px);
  padding: 8vh var(--pad);
  display: flex;
  flex-direction: column;
  background: var(--acid);
  color: #050505;
  transform: translateX(105%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  border-left: 1px solid #000;
}
.main-nav.open { transform: translateX(0); }
.main-nav a { font-weight: 900; font-size: clamp(28px, 4vw, 58px); padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.25); letter-spacing: -.04em; }

.section, .hero { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 110px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 30px;
  align-items: end;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 72px var(--pad) 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .17;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; position: relative; z-index: 1; font-size: 10px; color: var(--muted); }
.hero-copy { grid-column: 1 / -1; position: relative; z-index: 1; align-self: center; }
.mega-title { margin: 5vh 0 3vh; font-size: clamp(56px, 10.7vw, 180px); line-height: .78; letter-spacing: -.075em; font-weight: 950; text-transform: uppercase; max-width: 1500px; }
.mega-title span { display: block; }
.mega-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); text-stroke: 1.5px var(--text); }
.glitch { position: relative; display: inline-block; }
.glitch.glitching::before, .glitch.glitching::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glitch.glitching::before { color: var(--acid); clip-path: inset(10% 0 65% 0); transform: translate(-4px, 2px); }
.glitch.glitching::after { color: #fff; clip-path: inset(62% 0 12% 0); transform: translate(5px, -2px); }
.hero-intro { max-width: 760px; font-size: clamp(18px, 2vw, 31px); line-height: 1.25; letter-spacing: -.025em; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; border: 1px solid var(--text); padding: 17px 20px; font: 700 12px var(--mono); letter-spacing: .08em; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; text-transform: uppercase; }
.button-primary { background: var(--text); color: #070707; }
.button-primary:hover { background: var(--acid); border-color: var(--acid); }
.button-acid { background: var(--acid); border-color: var(--acid); color: #050505; }
.button-acid:hover { background: var(--text); border-color: var(--text); }
.warning { font-size: 9px; color: var(--muted); }
.hero-terminal { grid-column: 1; width: min(600px, 100%); border: 1px solid var(--line); background: rgba(10,10,10,.72); font-size: 9px; position: relative; z-index: 1; }
.terminal-title { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 12px; color: var(--muted); }
.terminal-lines { padding: 10px 12px; min-height: 104px; }
.terminal-lines p { margin: 0 0 7px; color: #b7b7ae; }
.terminal-lines p span { color: var(--acid); margin-right: 12px; }
.tabs-counter { grid-column: 2; justify-self: end; border: 0; background: none; font-size: 9px; color: var(--muted); cursor: pointer; position: relative; z-index: 1; }
.tabs-counter strong { display: block; color: var(--text); font: 900 clamp(46px, 7vw, 96px) var(--sans); letter-spacing: -.06em; }

.section { padding-top: clamp(100px, 13vw, 210px); padding-bottom: clamp(100px, 13vw, 210px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(220px, 420px); gap: 20px; align-items: start; margin-bottom: clamp(50px, 8vw, 120px); }
.section-index { color: var(--acid); font-size: 11px; padding-top: 8px; }
.section-head h2 { margin: 0; font-size: clamp(45px, 8vw, 125px); line-height: .83; letter-spacing: -.065em; }
.section-head p { margin: 7px 0 0; color: #c2c2ba; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.35; }

.experiment-list { border-top: 1px solid var(--line); }
.experiment-card { display: grid; grid-template-columns: 120px 1fr 150px 160px; gap: 30px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding .3s, background .3s; position: relative; }
.experiment-card::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--acid); opacity: 0; transform: scaleY(.7); transition: .28s; z-index: -1; }
.experiment-card:hover::before { opacity: 1; transform: scaleY(1); }
.experiment-card:hover { color: #050505; padding-left: 14px; padding-right: 14px; }
.experiment-card:hover .experiment-summary, .experiment-card:hover .experiment-status { color: rgba(0,0,0,.65); }
.experiment-number, .experiment-status { font-size: 10px; color: var(--muted); }
.eyebrow { font: 10px var(--mono); letter-spacing: .11em; color: var(--acid); margin: 0 0 12px; }
.experiment-card:hover .eyebrow { color: #050505; }
.experiment-card h3 { margin: 0; font-size: clamp(24px, 3vw, 48px); line-height: 1; letter-spacing: -.04em; }
.experiment-summary { color: var(--muted); max-width: 760px; margin-bottom: 0; }
.experiment-open { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 6px 0; font: 10px var(--mono); cursor: pointer; text-align: left; justify-self: start; }

.machine-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.machine-card { min-height: 410px; padding: clamp(28px, 4vw, 58px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.machine-card::after { content: attr(data-id); position: absolute; right: -15px; bottom: -32px; font-size: 140px; font-weight: 900; opacity: .02; }
.machine-live { background: var(--acid); color: #050505; }
.machine-id { font-size: 9px; color: var(--muted); }
.machine-live .machine-id { color: rgba(0,0,0,.55); }
.machine-card h3 { font-size: clamp(31px, 4vw, 60px); line-height: .95; letter-spacing: -.05em; margin: 55px 0 20px; }
.machine-card p { font-size: 17px; line-height: 1.4; max-width: 540px; color: #aaa99f; }
.machine-live p { color: rgba(0,0,0,.7); }
.machine-link { margin-top: auto; font: 10px var(--mono); letter-spacing: .06em; text-decoration: underline; text-underline-offset: 5px; }
.machine-link.dim { opacity: .55; text-decoration: none; }

.autopsy-section { max-width: none; padding-left: var(--pad); padding-right: var(--pad); background: #efefe8; color: #090909; }
.autopsy-shell { max-width: var(--max); margin: auto; border: 1px solid #111; background: #f5f5ee; }
.autopsy-head, .autopsy-foot { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; font-size: 9px; border-bottom: 1px solid #111; }
.autopsy-foot { border-bottom: 0; border-top: 1px solid #111; display: block; color: #66665f; }
.autopsy-light { display: flex; align-items: center; gap: 8px; }
.autopsy-light i { width: 7px; height: 7px; border-radius: 50%; background: #82a800; box-shadow: 0 0 10px #82a800; }
.autopsy-main { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 620px; }
.autopsy-copy, .autopsy-console { padding: clamp(30px, 5vw, 76px); }
.autopsy-copy { border-right: 1px solid #111; }
.autopsy-copy .eyebrow { color: #5c7600; }
.autopsy-copy h2 { font-size: clamp(50px, 7.5vw, 118px); line-height: .82; letter-spacing: -.07em; margin: 40px 0; }
.autopsy-copy h2 span { color: #839f00; }
.autopsy-copy > p:last-child { font-size: 17px; line-height: 1.5; max-width: 520px; }
.autopsy-console { background: #101010; color: var(--text); display: flex; flex-direction: column; justify-content: center; }
.autopsy-form label { display: block; font: 10px var(--mono); color: var(--muted); margin-bottom: 10px; letter-spacing: .08em; }
.url-row { display: grid; grid-template-columns: 1fr auto; }
.url-row input { width: 100%; min-width: 0; border: 1px solid #4b4b46; border-right: 0; background: #080808; color: var(--text); padding: 18px; outline: 0; font-family: var(--mono); }
.url-row input:focus { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.analysis-state { margin-top: 24px; min-height: 27px; font-size: 10px; color: #9e9e96; }
.analysis-state .prompt { color: var(--acid); margin-right: 10px; }
.analysis-result { margin-top: 28px; border-top: 1px solid #363631; }
.result-score { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; padding: 24px 0; border-bottom: 1px solid #363631; }
.result-score strong { font-size: clamp(62px, 8vw, 110px); letter-spacing: -.07em; line-height: .75; color: var(--acid); }
.result-score div { font: 9px var(--mono); color: var(--muted); }
.result-roast { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.15; padding: 22px 0; margin: 0; border-bottom: 1px solid #363631; }
.finding { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; padding: 13px 0; border-bottom: 1px solid #2d2d29; align-items: center; }
.finding-code { font: 9px var(--mono); color: var(--acid); }
.finding-title { font-size: 13px; }
.finding-state { font: 8px var(--mono); color: var(--muted); }
.finding-state.bad { color: var(--danger); }
.finding-state.good { color: var(--acid); }
.analysis-error { color: #ff8e7b; font: 11px var(--mono); line-height: 1.55; padding: 18px 0; }

.hm-stage { display: grid; grid-template-columns: 1fr minmax(180px, .45fr) 1fr; min-height: 650px; border: 1px solid var(--line); }
.hm-column { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.machine-side { background: var(--text); color: #070707; }
.hm-label { font-size: 10px; color: var(--muted); }
.traits { margin: auto 0; display: flex; flex-direction: column; gap: 8px; }
.traits span { font-weight: 900; font-size: clamp(28px, 4vw, 66px); line-height: .9; letter-spacing: -.05em; transition: transform .25s; width: max-content; max-width: 100%; }
.traits span:hover { transform: translateX(15px); color: var(--acid); }
.machine-side .traits span:hover { color: #668300; }
.hm-center { border-left: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: clamp(28px, 4vw, 56px); line-height: .82; letter-spacing: -.05em; text-align: center; }
.hm-center span:nth-child(2), .hm-center span:nth-child(4) { color: var(--acid); }
.hm-note { font-size: 9px; color: var(--muted); margin-top: 12px; text-align: right; }
.manifesto { margin: clamp(80px, 13vw, 180px) 0 0; padding: 0; border: 0; font-size: clamp(34px, 6vw, 95px); line-height: .95; font-weight: 850; letter-spacing: -.055em; }
.manifesto p { margin: 0; }
.manifesto p:last-child { color: var(--acid); }

.observation-list { border-top: 1px solid var(--line); }
.observation { display: grid; grid-template-columns: 90px 1fr 40px; gap: 24px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .25s; }
.observation:hover { padding-left: 18px; }
.observation .mono { color: var(--muted); font-size: 9px; padding-top: 8px; }
.observation h3 { margin: 0; font-size: clamp(27px, 4vw, 57px); line-height: 1; letter-spacing: -.045em; font-weight: 650; max-width: 1200px; }
.obs-arrow { font-size: 28px; transition: transform .25s; }
.observation:hover .obs-arrow { transform: translate(8px,-8px); color: var(--acid); }

.system-break { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 0; }
.system-marquee { background: var(--acid); color: #050505; display: flex; width: max-content; white-space: nowrap; font-weight: 950; font-size: clamp(42px, 8vw, 130px); line-height: .83; letter-spacing: -.06em; padding: 16px 0 20px; animation: marquee 24s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.metrics { max-width: var(--max); margin: auto; padding: clamp(60px, 8vw, 110px) var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.metrics div { background: var(--bg); padding: 28px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.metrics span { font-size: clamp(48px, 6vw, 96px); font-weight: 900; letter-spacing: -.06em; }
.metrics small { font: 9px var(--mono); color: var(--muted); line-height: 1.5; }

.submit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 140px); }
.submit-copy h2 { font-size: clamp(60px, 10vw, 150px); line-height: .78; letter-spacing: -.075em; margin: 34px 0 42px; }
.submit-copy > p { max-width: 650px; font-size: 20px; line-height: 1.4; }
.submit-copy .commercial { font-size: 9px; color: var(--muted); line-height: 1.6; margin-top: 70px; }
.lab-form { align-self: end; }
.lab-form label { display: block; border-top: 1px solid var(--line); padding: 24px 0; }
.lab-form label > span { display: block; font: 9px var(--mono); color: var(--muted); margin-bottom: 12px; }
.lab-form input, .lab-form textarea { width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--text); font-size: clamp(20px, 2vw, 32px); padding: 0; }
.lab-form input::placeholder, .lab-form textarea::placeholder { color: #55554f; }
.submit-button { width: 100%; margin-top: 25px; }

.site-footer { max-width: var(--max); margin: auto; min-height: 100px; padding: 28px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.site-footer > :last-child { text-align: right; }
#footer-easter { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
#footer-easter:hover { color: var(--acid); }

.lab-dialog { width: min(680px, calc(100vw - 30px)); background: var(--acid); color: #050505; border: 0; padding: clamp(30px, 5vw, 62px); box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.lab-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: #050505; font-size: 30px; cursor: pointer; }
.dialog-kicker, .dialog-code { font-size: 9px; }
.lab-dialog h2 { font-size: clamp(42px, 7vw, 84px); line-height: .85; letter-spacing: -.06em; margin: 40px 0 25px; }
.lab-dialog p { font-size: 18px; line-height: 1.4; }
.dialog-code { margin-top: 50px; border-top: 1px solid rgba(0,0,0,.3); padding-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); padding: 12px 16px; background: var(--acid); color: #050505; font-size: 9px; opacity: 0; pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.js .reveal-line { opacity: 0; transform: translateY(110%); animation: line-in .9s cubic-bezier(.16,1,.3,1) forwards; }
.js .reveal-line:nth-child(2) { animation-delay: .09s; }
.js .reveal-line:nth-child(3) { animation-delay: .18s; }
.js .reveal-line:nth-child(4) { animation-delay: .27s; }
@keyframes line-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .experiment-card { grid-template-columns: 90px 1fr 130px; }
  .experiment-open { grid-column: 2; }
  .autopsy-main { grid-template-columns: 1fr; }
  .autopsy-copy { border-right: 0; border-bottom: 1px solid #111; }
  .hm-stage { grid-template-columns: 1fr 120px 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }
  .cursor-dot, .cursor-ring { display: none; }
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; }
  .system-status { display: none; }
  .main-nav { top: 62px; height: calc(100vh - 62px); }
  .hero { padding-top: 90px; grid-template-columns: 1fr; min-height: auto; }
  .hero::before { inset-top: 62px; background-size: 48px 48px; }
  .hero-meta { gap: 8px; flex-wrap: wrap; }
  .hero-meta span:last-child { display: none; }
  .mega-title { font-size: clamp(49px, 17vw, 92px); margin-top: 12vh; }
  .hero-terminal { grid-column: 1; margin-top: 40px; }
  .tabs-counter { grid-column: 1; justify-self: start; margin-top: 22px; }
  .section-head { grid-template-columns: 44px 1fr; }
  .section-head p { grid-column: 2; }
  .experiment-card { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .experiment-card:hover { padding-left: 8px; padding-right: 8px; }
  .experiment-open { grid-column: 1; }
  .machine-grid { grid-template-columns: 1fr; }
  .machine-card { min-height: 330px; }
  .url-row { grid-template-columns: 1fr; gap: 10px; }
  .url-row input { border-right: 1px solid #4b4b46; }
  .autopsy-head { grid-template-columns: 1fr auto; }
  .autopsy-head span:nth-child(2) { display: none; }
  .hm-stage { grid-template-columns: 1fr; }
  .hm-center { min-height: 180px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-direction: row; gap: 8px; flex-wrap: wrap; padding: 30px; }
  .hm-column { min-height: 480px; }
  .observation { grid-template-columns: 65px 1fr; }
  .obs-arrow { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; padding-left: var(--pad); padding-right: var(--pad); }
  .metrics div { min-height: 145px; padding: 18px; }
  .submit-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer > :last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-line { opacity: 1; transform: none; }
}
