:root {
  --ink: #071c2b;
  --navy: #14384d;
  --paper: #f4f7f1;
  --white: #ffffff;
  --cyan: #60f5ff;
  --green: #b9ff42;
  --orange: #ff8b4d;
  --muted: #a8bec8;
  --line: #2d5264;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.world-shell { min-height: 100vh; overflow: hidden; }
.world-header,
.world-main,
.world-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.world-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.world-brand { display: flex; align-items: center; gap: 18px; }
.world-brand img { width: 155px; filter: brightness(0) invert(1); }
.case-stamp {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--cyan);
  font: 800 12px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.world-nav { display: flex; gap: 22px; color: var(--muted); font-weight: 800; }
.world-nav a:hover, .world-nav a[aria-current="page"] { color: var(--green); }

.lab-hero {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}
.lab-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 680px;
  height: 680px;
  right: -260px;
  top: -170px;
  border: 1px solid rgba(96, 245, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(96, 245, 255, .025), 0 0 0 180px rgba(96, 245, 255, .018);
}
.kicker {
  margin: 0 0 20px;
  color: var(--green);
  font: 900 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-size: clamp(62px, 9vw, 118px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 950;
}
h1 em { display: block; color: var(--cyan); font-style: normal; }
h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 950;
}
h3 { margin-bottom: 10px; font-size: 25px; line-height: 1.05; }
p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-copy .lead { max-width: 620px; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.lab-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 6px 6px 0 var(--cyan);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lab-button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--cyan); }
.lab-button.secondary { background: transparent; color: var(--white); box-shadow: none; border-color: var(--line); }

.monitor {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: #04141f;
  box-shadow: 20px 24px 0 #0c2939;
}
.monitor-grid {
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: linear-gradient(rgba(96,245,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(96,245,255,.25) 1px, transparent 1px);
  background-size: 28px 28px;
}
.monitor svg { position: absolute; inset: 50% 0 auto; width: 100%; height: 230px; transform: translateY(-50%); filter: drop-shadow(0 0 10px rgba(185,255,66,.75)); }
.monitor path { fill: none; stroke: var(--green); stroke-width: 5; stroke-linejoin: bevel; }
.monitor-label { position: absolute; inset: 22px 24px auto; display: flex; justify-content: space-between; color: var(--cyan); font: 800 12px ui-monospace, monospace; letter-spacing: .1em; }
.monitor-clue { position: absolute; inset: auto 24px 22px; color: var(--white); font: 800 14px ui-monospace, monospace; }
.blink { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .18; } }

.section { padding: 86px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 750px; margin-bottom: 42px; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mission-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: #0a2535;
  transition: border-color .2s ease, transform .2s ease;
}
.mission-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.mission-number { color: var(--cyan); font: 900 13px ui-monospace, monospace; letter-spacing: .14em; }
.mission-icon { min-height: 100px; display: grid; place-items: center; color: var(--green); font: 950 64px/1 ui-monospace, monospace; }
.mission-card p { flex: 1; }
.mission-link { color: var(--green); font-weight: 900; }
.status-pill { width: fit-content; margin-top: 16px; padding: 7px 10px; background: rgba(96,245,255,.08); color: var(--cyan); font: 800 12px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

.evidence-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.field-note { padding: 34px; background: var(--paper); color: var(--navy); transform: rotate(-1deg); box-shadow: 12px 14px 0 rgba(0,0,0,.22); }
.field-note p { color: #4f6570; }
.field-note strong { display: block; margin-bottom: 20px; font: 900 13px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.field-note .scribble { margin: 12px 0 24px; color: var(--navy); font-size: 30px; font-weight: 950; line-height: 1.05; }
.evidence-card { border: 1px solid var(--line); background: #0a2535; box-shadow: 12px 14px 0 rgba(0,0,0,.22); }
.evidence-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.evidence-card div { display: flex; justify-content: space-between; gap: 18px; padding: 16px 18px; color: var(--muted); font: 800 12px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.evidence-card strong { color: var(--green); }
.rules { display: grid; gap: 16px; counter-reset: rule; }
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule::before { counter-increment: rule; content: "0" counter(rule); color: var(--green); font: 900 17px ui-monospace, monospace; }
.rule p { margin: 4px 0 0; }

.world-footer { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.world-footer strong { color: var(--white); }

.subpage-main { padding: 70px 0 100px; }
.subpage-hero { max-width: none; padding: 40px 0 34px; }
.subpage-hero > .lead { max-width: 790px; }
.subpage-hero h1 { font-size: clamp(54px, 8vw, 96px); }
.progress-line { display: grid; grid-template-columns: repeat(4, 1fr); margin: 52px 0 0; }
.progress-line a {
  position: relative;
  border-top: 4px solid var(--line);
  padding: 14px 10px 0 0;
  color: var(--muted);
  font: 800 12px ui-monospace, monospace;
  letter-spacing: .06em;
  transition: color .25s ease, border-color .25s ease;
}
.progress-line a::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: -8px;
  left: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.progress-line a span { margin-right: 5px; }
.progress-line a.active { border-color: var(--green); color: var(--green); }
.progress-line a.active::before { border-color: var(--green); background: var(--green); }
.progress-line a[aria-current="step"]::before { box-shadow: 0 0 0 6px rgba(185,255,66,.13), 0 0 18px rgba(185,255,66,.55); }
.step-list { display: grid; gap: 18px; }
.step-card { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 34px 28px; border: 1px solid var(--line); background: #0a2535; scroll-margin-top: 24px; }
.step-card-visual { grid-template-columns: 100px minmax(0, 1fr); align-items: start; }
.step-code { color: var(--cyan); font: 950 34px ui-monospace, monospace; }
.step-card p { max-width: 750px; margin-bottom: 0; }
.step-card p strong { color: var(--white); }
.step-copy { max-width: 790px; }
.step-media { margin: 0; border: 1px solid var(--line); background: #04141f; }
.step-media img { width: 100%; height: auto; }
.step-media figcaption { padding: 12px 14px; color: var(--muted); font: 800 12px/1.45 ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; }
.connect-guide { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.guide-panel { display: flex; align-self: start; margin: 0; border: 1px solid var(--line); background: #f5efe2; overflow: hidden; }
.guide-panel img { width: 100%; height: auto; object-fit: contain; align-self: flex-start; }
.guide-panel-wide { grid-column: span 2; }
.step-wide-media { grid-column: 2; margin: 12px 0 0; border: 1px solid var(--line); background: #f5efe2; overflow: hidden; }
.step-wide-media img { width: 100%; height: auto; }
.mini-checklist { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: connect-check; }
.mini-checklist li { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 10px; color: var(--muted); line-height: 1.55; counter-increment: connect-check; }
.mini-checklist li::before { content: counter(connect-check); display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--green); color: var(--green); font: 900 12px ui-monospace, monospace; }
.compare-prompt { margin-top: 24px !important; padding: 18px 20px; border-left: 4px solid var(--green); background: rgba(185,255,66,.06); }
.safety-note { margin-top: 24px; padding: 20px 24px; border-left: 5px solid var(--orange); background: rgba(255,139,77,.08); }
.safety-note strong { color: #ffb28a; }
.material-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.material-tags span { padding: 7px 10px; border: 1px solid var(--line); color: var(--cyan); font: 800 12px ui-monospace, monospace; text-transform: uppercase; }

.app-explainer { margin-bottom: 54px; padding: 34px; border: 1px solid var(--line); background: #0a2535; }
.app-explainer-copy { max-width: 880px; margin-bottom: 30px; }
.app-explainer-copy p:last-child { max-width: 800px; margin-bottom: 0; font-size: 19px; }
.app-explainer-media { margin: 0; border: 1px solid var(--line); background: #f5efe2; overflow: hidden; }
.app-explainer-media img { width: 100%; height: auto; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.app-card { padding: 28px; border: 1px solid var(--line); background: #0a2535; }
.app-card-live { border-color: var(--green); }
.app-card .app-screen { height: 145px; display: grid; place-items: center; margin-bottom: 24px; background-color: #04141f; background-image: linear-gradient(rgba(96,245,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(96,245,255,.18) 1px, transparent 1px); background-size: 20px 20px; color: var(--green); font: 950 48px ui-monospace, monospace; }
.app-card .lab-button { width: 100%; margin-top: 12px; box-shadow: 4px 4px 0 var(--cyan); }
.app-card button:disabled { cursor: not-allowed; background: transparent; border-color: var(--line); color: var(--muted); box-shadow: none; }
.tap-lab { margin-top: 54px; padding: 34px; border: 1px solid var(--line); background: #04141f; }
.tap-stage { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; background-image: linear-gradient(rgba(96,245,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(96,245,255,.13) 1px, transparent 1px); background-size: 24px 24px; }
.tap-target { position: relative; z-index: 2; width: 128px; height: 128px; border: 4px solid var(--green); border-radius: 50%; background: #0a2535; color: white; font-weight: 950; cursor: pointer; box-shadow: 0 0 0 12px rgba(185,255,66,.08); }
.tap-target:active { transform: scale(.95); }
.tap-ring { position: absolute; width: 120px; height: 120px; border: 4px solid var(--cyan); border-radius: 50%; opacity: 0; pointer-events: none; }
.tap-stage.pulse .tap-ring { animation: pulse .7s ease-out; }
@keyframes pulse { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(4); } }
.reading { margin: 18px 0 0; color: var(--cyan); font: 800 14px ui-monospace, monospace; }
.mode-guide { display: grid; grid-template-columns: .7fr 1.3fr; gap: 42px; margin-top: 54px; padding: 34px; border: 1px solid var(--line); background: #04141f; }
.mode-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-steps article { padding: 22px; border: 1px solid var(--line); background: #0a2535; }
.mode-steps span { color: var(--green); font: 900 12px ui-monospace, monospace; letter-spacing: .12em; }
.mode-steps p { margin-bottom: 0; }
.signal-recipe { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; padding: 34px; border: 1px solid var(--line); background: #04141f; }
.signal-recipe ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: recipe; }
.signal-recipe li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); counter-increment: recipe; }
.signal-recipe li::before { content: "0" counter(recipe); grid-row: 1 / 3; color: var(--cyan); font: 900 16px ui-monospace, monospace; }
.signal-recipe li span { color: var(--muted); line-height: 1.5; }
.signal-recipe-media { grid-column: 1 / -1; margin: 8px 0 0; border: 1px solid var(--line); background: #f5efe2; overflow: hidden; }
.signal-recipe-media img { width: 100%; height: auto; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-card { padding: 28px; border: 1px solid var(--line); background: #0a2535; }
.project-card > span { color: var(--green); font: 900 12px ui-monospace, monospace; letter-spacing: .12em; }
.project-card h3 { margin-top: 28px; }
.project-card code { display: block; width: fit-content; padding: 10px 12px; background: #04141f; color: var(--cyan); font-size: 14px; }
.project-card small { display: block; margin-top: 18px; color: var(--muted); font: 800 12px ui-monospace, monospace; letter-spacing: .08em; }
.project-card-live { border-color: var(--green); box-shadow: inset 0 4px 0 var(--green); }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.project-actions .lab-button { min-height: 48px; box-shadow: 4px 4px 0 var(--cyan); }
.project-actions .secondary { box-shadow: none; }
.experiment-matrix { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; }
.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.matrix-grid div { min-height: 140px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matrix-grid strong { display: block; margin-bottom: 28px; color: var(--green); font-size: 20px; }
.matrix-grid span { color: var(--muted); line-height: 1.55; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 880px) {
  .lab-hero, .evidence-strip, .mode-guide, .signal-recipe, .experiment-matrix { grid-template-columns: 1fr; }
  .mission-grid, .app-grid { grid-template-columns: 1fr; }
  .mode-steps { grid-template-columns: 1fr; }
  .monitor { min-height: 360px; }
  .mission-card { min-height: 260px; }
  .step-card-visual { grid-template-columns: 78px 1fr; }
  .connect-guide { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .world-header, .world-main, .world-footer { width: min(100% - 28px, 1160px); }
  .world-header { min-height: auto; padding: 16px 0; align-items: flex-start; }
  .world-brand img { width: 112px; }
  .case-stamp { display: none; }
  .world-nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; font-size: 13px; }
  .lab-hero { min-height: auto; padding: 60px 0; gap: 40px; }
  h1 { font-size: clamp(56px, 19vw, 80px); }
  .hero-actions .lab-button { width: 100%; }
  .monitor { min-height: 290px; box-shadow: 9px 11px 0 #0c2939; }
  .section { padding: 62px 0; }
  .step-card, .step-card-visual { grid-template-columns: 1fr; gap: 10px; padding: 25px 20px; }
  .connect-guide { grid-column: 1; grid-template-columns: 1fr; margin-top: 18px; }
  .guide-panel-wide { grid-column: 1; }
  .step-wide-media { grid-column: 1; margin-top: 18px; }
  .project-grid, .matrix-grid { grid-template-columns: 1fr; }
  .evidence-card div { flex-direction: column; }
  .progress-line { grid-template-columns: repeat(4, 1fr); margin-top: 38px; }
  .progress-line a { min-width: 0; padding-right: 4px; font-size: 10px; letter-spacing: 0; }
  .progress-line a span { display: block; margin: 0 0 3px; }
  .app-explainer { padding: 25px 20px; }
  .app-explainer-copy p:last-child { font-size: 17px; }
  .world-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 0; }
}
