:root {
  --ink: #eaf4fa;
  --muted: #9aafbd;
  --line: rgba(186, 217, 232, 0.18);
  --blue: #1598d3;
  --deep-blue: #075882;
  --amber: #e3a33a;
  --base: #07131c;
  --panel: #0c202c;
  --paper: #dfe9ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--base);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -50px; z-index: 20; padding: 10px 14px; color: #07131c; background: #fff; }
.skip-link:focus { top: 16px; }
.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7, 19, 28, 0.94); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; font-size: 11px; letter-spacing: 0.13em; font-weight: 700; }
.brand img { width: 89px; height: auto; filter: brightness(0) invert(1) grayscale(1) contrast(1.4); opacity: .9; }
.site-header p { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(320px, .84fr) minmax(520px, 1.16fr); border-bottom: 1px solid var(--line); }
.intro { padding: clamp(48px, 8vh, 104px) clamp(24px, 5.6vw, 96px); display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 18px; color: #73d1ff; font-family: "Courier New", monospace; font-size: 11px; letter-spacing: .12em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 24px; font-size: clamp(40px, 4.9vw, 78px); line-height: .98; letter-spacing: -.04em; }
.lede { max-width: 530px; margin-bottom: 42px; color: var(--muted); font-size: 16px; }
.object-switcher { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; border: 1px solid var(--line); margin-bottom: 45px; }
.object-tab, .mode-button, .mobile-controls button { border: 0; border-radius: 0; color: var(--ink); cursor: pointer; background: transparent; }
.object-tab { min-height: 58px; padding: 10px 13px; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: left; transition: background .2s, color .2s; }
.object-tab:last-child { border-right: 0; }
.object-tab:hover, .object-tab:focus-visible { color: #fff; background: rgba(61, 157, 205, .15); outline: 1px solid #7ddcff; outline-offset: -1px; }
.object-tab.is-active { color: #fff; background: var(--deep-blue); box-shadow: inset 0 -3px 0 var(--amber); }
.object-index { margin-bottom: 10px; color: var(--amber); font-family: "Courier New", monospace; font-size: 11px; letter-spacing: .12em; }
.object-copy h2 { margin-bottom: 12px; font-size: clamp(25px, 2.1vw, 38px); letter-spacing: -.03em; }
.object-copy > p:last-child { max-width: 460px; color: var(--muted); }
.view-mode { display: inline-flex; margin: 24px 0 32px; border: 1px solid var(--line); }
.mode-button { min-height: 42px; padding: 0 20px; color: var(--muted); font-size: 12px; border-right: 1px solid var(--line); }
.mode-button:last-child { border-right: 0; }
.mode-button.is-active { color: #03141d; background: #d8edf5; font-weight: 700; }
.mode-button:focus-visible, .mobile-controls button:focus-visible { outline: 2px solid #7ddcff; outline-offset: 2px; }
.object-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 580px; margin: 0; }
.object-notes div { padding-top: 13px; border-top: 1px solid var(--line); }
.object-notes dt { margin-bottom: 8px; color: var(--blue); font-family: "Courier New", monospace; font-size: 11px; }
.object-notes dd { margin: 0; color: #b9cbd5; font-size: 12px; }
.stage-shell { position: relative; min-height: 640px; overflow: hidden; background: radial-gradient(circle at 62% 38%, rgba(28, 91, 119, .44), transparent 35%), linear-gradient(135deg, #0d2937 0%, #07131c 56%, #061018 100%); }
.stage-shell::before { position: absolute; content: ""; inset: 0; pointer-events: none; opacity: .38; background-image: linear-gradient(rgba(192, 228, 242, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(192, 228, 242, .07) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); }
.stage-topline, .stage-footer { position: absolute; z-index: 2; left: 32px; right: 32px; display: flex; justify-content: space-between; gap: 18px; color: #a9c5d1; font-family: "Courier New", monospace; font-size: 10px; letter-spacing: .1em; pointer-events: none; }
.stage-topline { top: 28px; }
.stage-footer { bottom: 25px; align-items: center; }
.desktop-hint span { color: var(--amber); padding: 0 7px; }
.scene-wrap { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.scene-wrap:active { cursor: grabbing; }
#scene { display: block; width: 100%; height: 100%; }
.axis { position: absolute; background: rgba(166, 219, 237, .16); pointer-events: none; }
.axis-x { width: 46%; height: 1px; left: 27%; bottom: 20%; transform: rotate(-5deg); }
.axis-y { width: 1px; height: 38%; left: 50%; bottom: 13%; }
.object-marker { position: absolute; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(232, 246, 250, .8); border-radius: 50%; color: #effaff; font: 10px/1 "Courier New", monospace; pointer-events: none; box-shadow: 0 0 0 5px rgba(12, 45, 59, .28); }
.marker-a { top: 31%; left: 59%; }
.marker-b { top: 60%; left: 71%; }
.marker-c { top: 69%; left: 40%; }
.mobile-controls { display: none; gap: 7px; pointer-events: auto; }
.mobile-controls button { min-width: 34px; height: 34px; padding: 0 7px; border: 1px solid var(--line); background: rgba(5, 17, 25, .72); color: #def3fb; font-size: 10px; }
.mobile-controls .reset-view { padding: 0 12px; }
.reference-section { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(500px, 1.28fr); gap: clamp(30px, 7vw, 120px); padding: clamp(70px, 11vw, 150px) max(24px, calc((100vw - 1320px) / 2)); background: #e8f0f2; color: #0a1a25; }
.reference-heading { max-width: 420px; }
.reference-heading .eyebrow { color: #087cba; }
.reference-heading h2 { margin-bottom: 20px; font-size: clamp(31px, 3.3vw, 54px); line-height: 1; letter-spacing: -.04em; }
.reference-heading p:last-child { color: #4e6571; }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.reference-card { min-height: 212px; overflow: hidden; background: #fff; border: 1px solid #c9d6da; }
.reference-card:first-child { grid-column: span 2; }
.reference-card img { display: block; width: 100%; height: 190px; object-fit: cover; filter: saturate(.95) contrast(1.03); }
.reference-card:first-child img { height: 270px; }
.reference-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 17px 17px; }
.reference-caption strong { font-size: 14px; }
.reference-caption span { color: #718590; font: 10px "Courier New", monospace; letter-spacing: .08em; white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px max(24px, calc((100vw - 1320px) / 2)); color: #85a2b0; font: 10px "Courier New", monospace; letter-spacing: .09em; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .intro { min-height: auto; padding-bottom: 54px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-shell { min-height: min(70vh, 700px); }
  .reference-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand { gap: 9px; font-size: 9px; }
  .brand img { width: 72px; }
  .site-header p { display: none; }
  .hero { min-height: auto; }
  .intro { padding: 48px 18px 42px; }
  h1 { font-size: 42px; }
  .lede { margin-bottom: 30px; font-size: 15px; }
  .object-switcher { margin-bottom: 32px; }
  .object-tab { min-height: 62px; padding: 8px; font-size: 11px; }
  .object-notes { grid-template-columns: 1fr; gap: 11px; }
  .object-notes div { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; }
  .object-notes dt { margin: 0; }
  .stage-shell { min-height: 520px; }
  .stage-topline, .stage-footer { left: 16px; right: 16px; }
  .stage-topline { top: 17px; font-size: 9px; }
  .stage-topline span:last-child { display: none; }
  .desktop-hint { display: none; }
  .mobile-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .marker-a { top: 27%; left: 60%; }
  .marker-b { top: 60%; left: 75%; }
  .marker-c { top: 70%; left: 29%; }
  .reference-section { padding: 72px 18px; }
  .reference-grid { grid-template-columns: 1fr; }
  .reference-card:first-child { grid-column: auto; }
  .reference-card img, .reference-card:first-child img { height: 220px; }
  .site-footer { padding: 18px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
