:root {
  color-scheme: dark;
  --ink: #05070b;
  --surface: #0a0e15;
  --surface-2: #0f1520;
  --surface-3: #151d2a;
  --line: rgba(166, 196, 226, .17);
  --line-strong: rgba(166, 196, 226, .34);
  --text: #f4f7fb;
  --muted: #98a5b5;
  --accent: #67e8f9;
  --accent-2: #a78bfa;
  --signal: #b7ffcb;
  --max: 1180px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(103, 232, 249, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .025) 1px, transparent 1px),
    radial-gradient(circle at 78% -8%, rgba(103, 232, 249, .11), transparent 31rem),
    radial-gradient(circle at 8% 45%, rgba(167, 139, 250, .07), transparent 36rem),
    var(--ink);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.67;
}

a { color: inherit; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 30; background: var(--text); color: var(--ink); padding: .7rem 1rem; border-radius: .4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 11, .78);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .42), transparent);
  pointer-events: none;
}
.nav {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .78rem; text-decoration: none; font-weight: 760; letter-spacing: .1em; font-size: .9rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(103, 232, 249, .55);
  border-radius: 9px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  box-shadow: inset 0 0 24px rgba(103, 232, 249, .08), 0 0 24px rgba(103, 232, 249, .05);
}
.brand small { display: block; color: var(--muted); font-weight: 500; letter-spacing: .05em; }
.nav-links { display: flex; flex-wrap: wrap; gap: .2rem; }
.nav-links a { color: var(--muted); text-decoration: none; padding: .5rem .68rem; border-radius: .45rem; font-size: .9rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.055); }

main { width: min(var(--max), calc(100% - 2rem)); margin: auto; }
.hero {
  min-height: min(780px, calc(100vh - 70px));
  padding: clamp(3.5rem, 7vw, 7rem) 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
  font-weight: 700;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 900px; font-size: clamp(3.2rem, 7vw, 6.9rem); font-weight: 520; }
h2 { font-size: clamp(2rem, 4.1vw, 3.65rem); font-weight: 560; }
h3 { font-size: 1.28rem; font-weight: 620; letter-spacing: -.025em; }
.hero p { max-width: 670px; margin: 1.45rem 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 45px;
  padding: .65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 660;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button.primary { background: var(--text); border-color: var(--text); color: var(--ink); }
.button:hover { transform: translateY(-2px); border-color: var(--accent); }

.concept-console {
  position: relative;
  min-height: 520px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 23, 34, .86), rgba(5, 7, 11, .72));
  box-shadow: 0 34px 100px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.05);
  overflow: hidden;
}
.concept-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(103,232,249,.045), transparent 62%);
  pointer-events: none;
}
.console-top { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.console-status { color: var(--signal); }
.concept-stage {
  --rx: -10deg;
  --ry: 14deg;
  position: relative;
  height: 330px;
  display: grid;
  place-items: center;
  perspective: 900px;
  touch-action: pan-y;
}
.system {
  position: relative;
  width: 260px;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%) translateZ(38px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(103,232,249,.65);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), rgba(103,232,249,.12) 28%, rgba(5,7,11,.9) 70%);
  color: var(--text);
  box-shadow: 0 0 42px rgba(103,232,249,.19), inset 0 0 24px rgba(103,232,249,.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-align: center;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: opacity .35s ease, border-color .35s ease, filter .35s ease;
}
.orbit span {
  position: absolute;
  left: 50%;
  top: -10px;
  translate: -50% 0;
  padding: .24rem .48rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(5,7,11,.9);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  white-space: nowrap;
}
.orbit.conditions { width: 255px; height: 255px; margin: -127.5px; transform: rotateX(68deg) rotateZ(10deg); animation: orbit-a 18s linear infinite; }
.orbit.action { width: 196px; height: 196px; margin: -98px; transform: rotateY(68deg) rotateZ(-20deg); animation: orbit-b 14s linear infinite reverse; }
.orbit.result { width: 142px; height: 142px; margin: -71px; transform: rotateX(32deg) rotateY(38deg); animation: orbit-c 11s linear infinite; }
.concept-console[data-time="0"] .conditions,
.concept-console[data-time="1"] .action,
.concept-console[data-time="2"] .result { border-color: var(--accent); filter: drop-shadow(0 0 7px rgba(103,232,249,.55)); }
.concept-console[data-time="0"] .conditions span,
.concept-console[data-time="1"] .action span,
.concept-console[data-time="2"] .result span { color: var(--text); border-color: rgba(103,232,249,.55); }
.concept-console[data-time="0"] .action,
.concept-console[data-time="0"] .result,
.concept-console[data-time="1"] .conditions,
.concept-console[data-time="1"] .result,
.concept-console[data-time="2"] .conditions,
.concept-console[data-time="2"] .action { opacity: .32; }
.time-control { position: relative; z-index: 3; }
.time-control label { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .78rem; }
.time-control label strong { color: var(--text); font-weight: 600; }
.time-control input { width: 100%; margin: .75rem 0 .55rem; accent-color: var(--accent); cursor: pointer; }
.time-steps { display: grid; grid-template-columns: repeat(3, 1fr); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.time-steps span:nth-child(2) { text-align: center; }
.time-steps span:last-child { text-align: right; }
.concept-output { position: relative; z-index: 3; min-height: 68px; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); color: #cbd5e1; font-size: .9rem; }

@keyframes orbit-a { to { transform: rotateX(68deg) rotateZ(370deg); } }
@keyframes orbit-b { to { transform: rotateY(68deg) rotateZ(340deg); } }
@keyframes orbit-c { to { transform: rotateX(32deg) rotateY(38deg) rotateZ(360deg); } }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 2rem; margin-bottom: 2.2rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 700px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  background: rgba(10, 14, 21, .8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card:hover::after { opacity: .8; }
.card .number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem; }
.card p { color: var(--muted); margin: 1rem 0 0; max-width: 48ch; }
.card footer { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; margin-top: 2rem; }
.tag { display: inline-flex; width: fit-content; padding: .25rem .52rem; border: 1px solid var(--line); border-radius: 5px; color: var(--signal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.statement { position: relative; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(15,21,32,.96), rgba(5,7,11,.92)); overflow: hidden; }
.statement::after { content: "5.5"; position: absolute; right: -1rem; bottom: -3.5rem; color: rgba(103,232,249,.04); font-size: clamp(9rem, 22vw, 18rem); font-weight: 800; line-height: 1; letter-spacing: -.1em; pointer-events: none; }
.statement blockquote { position: relative; z-index: 1; margin: 0; max-width: 25ch; font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.12; letter-spacing: -.05em; }
.statement p { position: relative; z-index: 1; max-width: 62ch; color: var(--muted); margin: 2rem 0 0; }

.page-hero { position: relative; padding: clamp(4rem, 8vw, 7rem) 0 3rem; max-width: 930px; }
.page-hero::before { content: ""; position: absolute; left: -42px; top: 4rem; width: 1px; height: 52%; background: linear-gradient(var(--accent), transparent); }
.page-hero h1 { font-size: clamp(2.9rem, 6vw, 5.5rem); font-weight: 540; }
.page-hero p { color: var(--muted); font-size: 1.16rem; max-width: 700px; }
.article { max-width: 790px; padding: 0 0 6rem; }
.article section { padding: 2rem 0; border-top: 1px solid var(--line); }
.article h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); margin-bottom: 1rem; font-weight: 580; }
.article p, .article li { color: #c8d1dd; }
.article .lead { color: var(--text); font-size: 1.46rem; line-height: 1.45; letter-spacing: -.02em; }
.article ol, .article ul { padding-left: 1.25rem; }
.note { padding: 1.2rem; border-left: 2px solid var(--accent); background: var(--surface); color: var(--muted); }
.labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.label-card { padding: 1.25rem; border-top: 1px solid var(--accent); background: rgba(10,14,21,.72); }
.label-card p { color: var(--muted); margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); }
.footer-inner { width: min(var(--max), calc(100% - 2rem)); margin: auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner a { color: var(--text); }

.spatial-navigation { position: relative; z-index: 50; }
.map-trigger {
  position: fixed;
  left: 1.25rem;
  top: 1.1rem;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: .72rem;
  min-height: 50px;
  padding: .42rem .72rem .42rem .42rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 7, 11, .76);
  color: var(--text);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 44px rgba(0,0,0,.28);
  cursor: pointer;
}
.map-trigger-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(103,232,249,.5); border-radius: 8px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; }
.map-trigger strong, .map-trigger small { display: block; text-align: left; line-height: 1.15; }
.map-trigger strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .69rem; letter-spacing: .13em; }
.map-trigger small { color: var(--muted); font-size: .66rem; margin-top: .2rem; }
.map-trigger:hover .map-trigger-mark { color: var(--ink); background: var(--accent); box-shadow: 0 0 28px rgba(103,232,249,.24); }
.current-coordinate {
  position: fixed;
  right: 1.3rem;
  top: 1.3rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,7,11,.64);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.current-coordinate span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.current-coordinate strong { color: var(--text); font-weight: 600; }
.reading-axis { position: fixed; z-index: 42; left: 1.54rem; top: 5.6rem; bottom: 1.4rem; width: 1px; background: var(--line); }
.reading-axis span { display: block; width: 1px; height: 100%; background: linear-gradient(var(--accent), var(--accent-2)); transform: scaleY(0); transform-origin: top; }

.atlas-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 6, 10, .95);
  color: var(--text);
  overflow: auto;
}
.atlas-dialog::backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.atlas-panel { width: min(1120px, calc(100% - 2rem)); min-height: 100%; margin: auto; padding: clamp(1.2rem, 3vw, 2.5rem) 0; display: grid; grid-template-rows: auto auto 1fr auto; }
.atlas-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.atlas-head h2 { margin-top: .25rem; }
.atlas-close { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.atlas-close:hover { border-color: var(--accent); color: var(--accent); rotate: 90deg; }
.atlas-instruction { max-width: 670px; color: var(--muted); margin: 1.2rem 0 0; }
.atlas-universe {
  --atlas-x: -4deg;
  --atlas-y: 8deg;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(66vh, 620px);
  aspect-ratio: 1;
  margin: 1rem 0;
  perspective: 1100px;
  transform-style: preserve-3d;
  transform: rotateX(var(--atlas-x)) rotateY(var(--atlas-y));
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.atlas-universe::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(103,232,249,.12), transparent 68%); filter: blur(20px); }
.atlas-core, .atlas-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: rgba(7,10,16,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 0 24px rgba(103,232,249,.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.atlas-core { left: 50%; top: 50%; width: 122px; height: 122px; translate: -50% -50%; border-radius: 50%; }
.atlas-core span { color: var(--accent); font-size: 2.1rem; font-weight: 700; letter-spacing: -.06em; }
.atlas-core small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; letter-spacing: .16em; margin-top: -1.9rem; }
.atlas-node { width: 118px; height: 72px; border-radius: 10px; }
.atlas-node small { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; }
.atlas-node strong { font-size: .86rem; font-weight: 610; }
.atlas-core:hover, .atlas-node:hover, .atlas-core[aria-current="page"], .atlas-node[aria-current="page"] { border-color: var(--accent); box-shadow: 0 0 42px rgba(103,232,249,.16), inset 0 0 28px rgba(103,232,249,.08); transform: translateZ(36px) scale(1.06); }
.node-1 { left: 50%; top: 4%; translate: -50% 0; }
.node-2 { right: 2%; top: 50%; translate: 0 -50%; }
.node-3 { left: 50%; bottom: 4%; translate: -50% 0; }
.node-4 { left: 2%; top: 50%; translate: 0 -50%; }
.atlas-ring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.ring-a { width: 82%; height: 82%; transform: rotateX(68deg); animation: atlas-spin-a 22s linear infinite; }
.ring-b { width: 68%; height: 68%; transform: rotateY(62deg); animation: atlas-spin-b 18s linear infinite reverse; }
.ring-c { width: 52%; height: 52%; transform: rotateX(48deg) rotateY(44deg); animation: atlas-spin-c 14s linear infinite; }
.atlas-linear { display: none; }
.atlas-foot { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.atlas-foot a { color: var(--text); }
@keyframes atlas-spin-a { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes atlas-spin-b { to { transform: rotateY(62deg) rotateZ(360deg); } }
@keyframes atlas-spin-c { to { transform: rotateX(48deg) rotateY(44deg) rotateZ(360deg); } }

.atlas-ready main { padding-top: .5rem; }
.atlas-ready .hero { min-height: 100vh; }
.atlas-ready .page-hero { padding-top: clamp(7.5rem, 12vw, 10rem); }

.idea-lab, .method-lab {
  --level: .5;
  position: relative;
  width: min(1040px, 100%);
  margin: 1rem 0 3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14,20,30,.94), rgba(5,7,11,.88));
  overflow: hidden;
}
.idea-lab::before, .method-lab::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 42%, rgba(103,232,249,.08), transparent 42%); pointer-events: none; }
.lab-grid { position: relative; display: grid; grid-template-columns: minmax(0,.85fr) minmax(330px,1.15fr); gap: clamp(1.5rem,4vw,4rem); align-items: center; }
.lab-copy h2 { margin-top: .35rem; font-size: clamp(1.65rem,3vw,2.55rem); }
.lab-copy p { color: var(--muted); }
.lab-control { margin-top: 1.4rem; }
.lab-control label { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; }
.lab-control strong { color: var(--text); }
.lab-control input { width: 100%; margin: .85rem 0; accent-color: var(--accent); cursor: pointer; }
.lab-output { min-height: 72px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #d7e0eb; }
.lab-stage { position: relative; height: 340px; display: grid; place-items: center; perspective: 900px; }

.agency-visual { position: relative; width: 310px; height: 310px; display: grid; place-items: center; transform: rotateX(58deg) rotateZ(-16deg); transform-style: preserve-3d; }
.agency-shell { position: absolute; width: var(--field-size); height: var(--field-size); border: 1px solid rgba(103,232,249,.55); border-radius: 50%; box-shadow: 0 0 28px rgba(103,232,249,var(--glow-alpha)); transition: width .5s ease, height .5s ease, box-shadow .5s ease; }
.agency-shell::before, .agency-shell::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.agency-shell::before { inset: 15%; }
.agency-shell::after { inset: 32%; }
.agency-point { position: absolute; width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; background: rgba(5,7,11,.9); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; text-align: center; transform: translateZ(45px) rotateZ(16deg) rotateX(-58deg); box-shadow: 0 0 30px rgba(103,232,249,.18); }

.counter-visual { position: relative; width: min(100%, 430px); height: 280px; transform-style: preserve-3d; transform: rotateX(55deg) rotateZ(-8deg); }
.timeline { position: absolute; left: 5%; right: 5%; height: 2px; background: var(--line-strong); }
.timeline.actual { top: 34%; }
.timeline.hypothetical { top: 68%; color: var(--accent); }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 50%; width: 13px; height: 13px; translate: 0 -50%; border: 1px solid currentColor; border-radius: 50%; background: var(--surface); }
.timeline::before { left: 0; }
.timeline::after { right: 0; }
.timeline span { position: absolute; left: 0; top: -2rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; transform: rotateZ(8deg) rotateX(-55deg); transform-origin: left; white-space: nowrap; }
.causal-gate { position: absolute; left: 50%; top: 20%; width: 3px; height: 170px; background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: bottom; transform: translateX(-50%) rotateZ(var(--gate-angle)); transition: transform .55s ease; box-shadow: 0 0 20px rgba(103,232,249,.3); }
.gate-label { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; transform: rotateZ(8deg) rotateX(-55deg); white-space: nowrap; }

.scarcity-visual { position: relative; width: min(100%, 390px); height: 290px; transform-style: preserve-3d; transform: rotateX(55deg) rotateZ(-10deg); }
.choice-plane { position: absolute; top: 50%; width: 145px; height: 165px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(8,12,18,.9); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; transition: transform .55s ease, opacity .55s ease, border-color .55s ease; }
.choice-plane.accept { left: 3%; transform: translateY(-50%) translateZ(var(--accept-depth)); border-color: rgba(103,232,249,.55); }
.choice-plane.refuse { right: 3%; transform: translateY(-50%) translateZ(var(--option-depth)); opacity: var(--option-opacity); }
.pressure-wave { position: absolute; inset: 22%; border: 1px solid var(--accent-2); border-radius: 50%; opacity: var(--pressure-opacity); animation: pressure-pulse 2.8s ease-in-out infinite; }
@keyframes pressure-pulse { 50% { transform: scale(1.22); opacity: .08; } }

.door-visual { position: relative; width: 260px; height: 310px; transform-style: preserve-3d; transform: translateZ(calc(var(--door-distance) * -1)) rotateX(-4deg); transition: transform .55s ease; }
.door-frame { position: absolute; inset: 8% 18%; border: 5px solid rgba(152,165,181,.55); border-bottom: 0; transform-style: preserve-3d; }
.door-panel { position: absolute; inset: 0; transform-origin: left center; transform: rotateY(var(--door-angle)); background: linear-gradient(135deg, rgba(103,232,249,.22), rgba(10,14,21,.96)); border: 1px solid var(--accent); box-shadow: 20px 16px 40px rgba(0,0,0,.42); transition: transform .55s ease; }
.door-panel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px var(--signal); }
.door-floor { position: absolute; left: 10%; right: 10%; bottom: 3%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: rotateX(74deg); }

.method-lab { margin-top: 2.5rem; }
.method-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.method-controls { display: grid; gap: .55rem; margin-top: 1.4rem; }
.method-controls button { display: flex; align-items: center; gap: .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.method-controls button span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.method-controls button[aria-pressed="true"], .method-controls button:hover { color: var(--text); border-color: var(--accent); background: rgba(103,232,249,.05); }
.method-scene { height: 360px; display: grid; place-items: center; perspective: 900px; }
.method-cube { position: relative; width: 190px; height: 190px; transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(0deg); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.cube-face { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; border: 1px solid rgba(103,232,249,.45); background: rgba(8,12,18,.88); color: var(--text); font-size: .8rem; text-align: center; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 40px rgba(103,232,249,.05); }
.cube-front { transform: translateZ(95px); }
.cube-right { transform: rotateY(90deg) translateZ(95px); }
.cube-back { transform: rotateY(180deg) translateZ(95px); }
.cube-left { transform: rotateY(-90deg) translateZ(95px); }
.cube-top { transform: rotateX(90deg) translateZ(95px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(95px); }
.method-output { min-height: 70px; margin-top: 1rem; color: #d7e0eb; }

.card, .label-card { transform: perspective(900px) translateY(var(--reveal-y, 0)) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)); transform-style: preserve-3d; }
.card:hover { transform: perspective(900px) translateY(-4px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)); }
.reveal-ready .article > section, .reveal-ready .section-head { opacity: 0; transform: translateY(22px); }
.reveal-ready .article > section.is-visible, .reveal-ready .section-head.is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready .card { --reveal-y: 22px; opacity: 0; }
.reveal-ready .card.is-visible { --reveal-y: 0px; opacity: 1; transition: opacity .65s ease, transform .65s ease; }

@media (max-width: 900px) {
  .nav { align-items: flex-start; padding: .9rem 0; }
  .nav-links { justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 2.5rem; }
  .concept-console { max-width: 620px; width: 100%; }
  .section-head { grid-template-columns: 1fr; }
  .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid, .method-grid { grid-template-columns: 1fr; }
  .lab-copy { max-width: 660px; }
}
@media (max-width: 620px) {
  body { background-size: 48px 48px, 48px 48px, auto, auto, auto; }
  .nav { display: block; }
  .nav-links { margin-top: .75rem; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: .35rem; }
  .nav-links a { white-space: nowrap; }
  .hero { padding-top: 5.5rem; }
  .grid, .labels { grid-template-columns: 1fr; }
  .card { min-height: 225px; }
  .concept-console { min-height: 475px; }
  .concept-stage { height: 290px; transform: scale(.9); margin: -8px; }
  .page-hero::before { display: none; }
  .map-trigger { left: .75rem; top: .7rem; }
  .map-trigger small { display: none; }
  .current-coordinate { right: .75rem; top: .85rem; }
  .reading-axis { display: none; }
  .atlas-panel { grid-template-rows: auto auto auto auto; }
  .atlas-universe { display: none; }
  .atlas-linear { position: relative; display: grid; gap: .7rem; margin: 2rem 0; padding: .4rem 0; }
  .atlas-linear::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--accent), var(--accent-2), transparent); opacity: .45; }
  .atlas-linear a { position: relative; z-index: 1; width: 82%; display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(10,14,21,.92); text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
  .atlas-linear a:nth-child(even) { justify-self: end; }
  .atlas-linear a:nth-child(odd) { justify-self: start; }
  .atlas-linear a span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); background: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .atlas-linear a:hover, .atlas-linear a[aria-current="page"] { border-color: var(--accent); transform: translateX(3px); }
  .atlas-foot span { display: none; }
  .lab-grid { display: block; }
  .lab-stage { height: 300px; margin-top: 1.2rem; overflow: hidden; }
  .agency-visual, .counter-visual, .scarcity-visual { scale: .82; }
  .method-scene { height: 300px; }
  .method-cube { width: 150px; height: 150px; }
  .cube-front { transform: translateZ(75px); }
  .cube-right { transform: rotateY(90deg) translateZ(75px); }
  .cube-back { transform: rotateY(180deg) translateZ(75px); }
  .cube-left { transform: rotateY(-90deg) translateZ(75px); }
  .cube-top { transform: rotateX(90deg) translateZ(75px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(75px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
