:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: #0e1423;
  --line: #28364d;
  --text: #f1f6ff;
  --muted: #aab8cf;
  --blue: #77edff;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  font: 100%/1.55 "Space Grotesk", system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }
.frame { width: min(81rem, calc(100% - clamp(2rem, 11vw, 11rem))); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 1rem; padding: .6rem 1rem; background: var(--bg); z-index: 5; transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.header { position: relative; z-index: 2; background: #080b14; border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: 4.75rem; }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-decoration: none; }
.sigil { width: 1rem; height: 1rem; transform: rotate(45deg); border: 2px solid var(--blue); border-right-color: transparent; border-radius: 45%; box-shadow: -.12rem .15rem .5rem #61caff42; }
nav { display: flex; gap: clamp(1rem, 2.5vw, 2.6rem); }
nav a, .footer a { padding-block: .72rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a:hover, .footer a:hover, .quiet-link:hover { color: var(--blue); }
.motion-button { min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: .8rem; }
.motion-button:hover { border-color: var(--blue); color: var(--blue); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0a101b; border-bottom: 1px solid var(--line); }
.hero-art, .hero-shade, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art { z-index: -3; object-fit: cover; object-position: center 26%; transform-origin: 73% 42%; animation: drift 12s ease-in-out infinite alternate; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, #080c17 2%, #080c17ec 22%, #080c1764 48%, transparent 70%), linear-gradient(0deg, #080b14 0%, transparent 35%); }
.hero-grid { z-index: -1; background: linear-gradient(transparent 95%, #8eebff14 96%) 0 0 / 100% 4px; opacity: .32; }
.hero-inner { display: flex; align-items: center; min-height: min(46rem, 84svh); padding-block: 3rem 4rem; }
.hero-content { width: min(36rem, 55%); }
.hero-content > * { animation: arrive .85s both; }
.hero-content h1 { animation-delay: .10s; }
.hero-lead { animation-delay: .17s; }
.hero-content .primary, .hero-content .quiet-link { animation-delay: .24s; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 0 0 .65rem; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.kicker-line { width: 2rem; height: 1px; background: #77edff75; }
h1, h2 { margin: 0; font-family: var(--head); font-weight: 800; }
h1 { font-size: clamp(5.4rem, 13vw, 13rem); line-height: .94; letter-spacing: -.022em; text-wrap: nowrap; }
h1 span { display: block; color: var(--blue); }
h2 { font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: .94; }
.hero-lead { max-width: 28ch; margin: clamp(1.3rem, 3vw, 2.1rem) 0 1.45rem; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.35rem); }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 48px; padding: .56rem .95rem; border: 1px solid var(--blue); background: var(--blue); color: #07121c; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.primary:hover { background: #0c2233; color: var(--blue); }
.primary span { font-size: 1.3rem; }
.quiet-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; margin-inline-start: 1.15rem; font-size: .9rem; text-decoration: none; }
.dossier { border-bottom: 1px solid var(--line); background: var(--panel); }
.dossier-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(2.8rem, 7vw, 6.5rem); }
.dossier p:not(.kicker), .lab-copy > p:not(.kicker) { max-width: 52ch; color: var(--muted); }
.dossier-facts { display: grid; gap: 1.25rem; align-content: center; }
.dossier-facts > div { border-left: 2px solid #77edff87; padding-left: 1rem; }
.dossier-facts h3, .dossier-facts p { margin: 0; }
.dossier-facts h3 { margin-bottom: .25rem; font-size: 1rem; }
.lab { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.75rem, 5vw, 5rem); padding-block: clamp(3rem, 8vw, 8rem); }
.modes { display: flex; flex-wrap: wrap; gap: .48rem; margin-block: 1.3rem 1.2rem; }
.modes button { min-height: 44px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: .45rem .62rem; }
.modes button[aria-pressed="true"], .modes button:hover { border-color: var(--blue); color: var(--blue); }
.chamber { --energy: #77edff; position: relative; isolation: isolate; min-height: 26rem; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 43%, #16304c 0%, #0a1221 49%, #080b14 78%); }
.chamber[data-mode="time"] { --energy: #c7abff; }
.chamber[data-mode="origin"] { --energy: #ffc282; }
.chamber-grid { position: absolute; inset: 0; background-image: linear-gradient(#7898bf22 1px, transparent 1px), linear-gradient(90deg, #7898bf22 1px, transparent 1px); background-size: 2rem 2rem; mask-image: radial-gradient(ellipse at center, #000, transparent 85%); }
.field { position: absolute; width: min(62%, 17rem); aspect-ratio: 1; top: 43%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.ring, .wave, .core, .beam { position: absolute; pointer-events: none; border-radius: 50%; }
.ring { border: 1px solid var(--energy); box-shadow: 0 0 20px color-mix(in srgb, var(--energy) 25%, transparent); }
.ring-outer { inset: 0; border-right-color: transparent; border-bottom-style: dashed; animation: spin 11s linear infinite; }
.ring-middle { inset: 13%; border-left-color: transparent; border-top-style: dashed; animation: spin 7s linear infinite reverse; }
.ring-inner { inset: 26%; border-bottom-color: transparent; animation: spin 4s linear infinite; }
.core { width: 18%; aspect-ratio: 1; background: radial-gradient(circle, #fff, var(--energy) 35%, transparent 70%); box-shadow: 0 0 28px var(--energy); animation: glow 2.5s ease-in-out infinite alternate; }
.wave { width: 22%; aspect-ratio: 1; border: 2px solid var(--energy); opacity: 0; }
.beam { width: 145%; height: 1px; background: var(--energy); opacity: .23; box-shadow: 0 0 16px var(--energy); }
.chamber[data-active] .wave { animation: pulse .95s ease-out both; }
.chamber[data-active][data-mode="time"] .ring-outer, .chamber[data-active][data-mode="time"] .ring-inner { animation-direction: reverse; }
.chamber[data-active][data-mode="time"] .ring-middle { animation-direction: normal; }
.chamber[data-active][data-mode="gravity"] .beam { animation: rise 1.2s ease-out both; }
.chamber[data-active][data-mode="origin"] .field { animation: reform 1.1s ease-in-out both; }
.chamber[data-active] .core { background-color: color-mix(in srgb, var(--energy) 28%, transparent); }
.readout { position: absolute; inset: auto 0 0; min-height: 6rem; padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); background: #080d18ed; }
.readout span { color: var(--energy); letter-spacing: .13em; font-weight: 700; font-size: .71rem; }
.readout p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1rem; padding-block: 1rem; color: var(--muted); font-size: .84rem; }
.footer p { margin: .5rem 0; }
@keyframes drift { to { transform: scale(1.055); } }
@keyframes arrive { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes glow { from { opacity: .5; transform: scale(.72); } to { opacity: .96; transform: scale(1.18); } }
@keyframes pulse { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(5); } }
@keyframes rise { from { opacity: .8; transform: translateY(3rem); } to { opacity: .23; transform: translateY(-3rem); } }
@keyframes reform { 50% { opacity: .14; transform: translate(-50%, -50%) scale(.16) rotate(.5turn); } }
:root[data-paused] { scroll-behavior: auto; }
:root[data-paused] *, :root[data-paused] *::before, :root[data-paused] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-paused]) .hero-content > * { animation: none; }
}
@media (max-width: 800px) {
  .hero-inner { min-height: 40rem; }
  .hero-art { object-position: 65% center; }
  .dossier-inner, .lab { grid-template-columns: 1fr; }
  .chamber { min-height: 24rem; }
}
@media (max-width: 580px) {
  .nav-wrap { flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; min-height: 0; padding-top: .45rem; }
  .brand { min-height: 44px; font-size: .88rem; }
  nav { order: 3; width: 100%; gap: 1.3rem; }
  nav a { font-size: .86rem; }
  .hero-inner { min-height: clamp(35rem, 140vw, 42rem); align-items: end; padding-block: 12rem 1.8rem; }
  .hero-content { width: 100%; }
  .hero-art { height: 87%; object-position: 77% 38%; }
  .hero-shade { background: linear-gradient(0deg, #080b14 11%, #080b14f2 27%, #080b146c 52%, transparent 82%); }
  h1 { font-size: clamp(4.4rem, 18vw, 6.1rem); }
  .hero-lead { max-width: 31ch; }
  .quiet-link { margin-inline-start: .7rem; }
  .chamber { min-height: 21rem; }
}
