/* Site layout. Tokens live in tokens.css, components in omni.css. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; }
body { margin: 0; background: transparent; /* html paints the void, so the field (z-index -1) shows */ color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bloom-deep); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--plasma); outline-offset: 3px; }

/* ---------- persistent dot field ----------
   One canvas for the whole visit, kept across page changes. It sits behind the page (z-index -1, so
   the scanlines' blend still reaches it) and covers the first screen; omni.js decides how much of
   it shows (the whole screen at home, the 440px page head elsewhere). */
.deck-field { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: max(100svh, 440px); z-index: -1; pointer-events: none; }
.deck-field canvas { width: 100%; height: 100%; }

/* ---------- page transitions ----------
   A violet scanline sweeps the screen while the old page powers down and the next one boots up. */
.warp { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 40; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--bloom) 18%, var(--plasma) 50%, var(--bloom) 82%, transparent);
  box-shadow: 0 0 18px 2px rgba(166, 107, 255, .55), 0 -40px 60px -20px rgba(166, 107, 255, .18); }

/* our own transitions run instead of the browser's cross-fade, which would freeze the field */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 40px; }
.topbar.is-solid { background: rgba(7, 5, 12, .85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rim); }
.brand { font-family: var(--font-deck); font-size: 15px; letter-spacing: .3em; text-decoration: none; }
.topnav { display: flex; gap: 26px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); }
.topnav a[aria-current="page"]::before { content: "▸ "; color: var(--flare); }
.meta { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.menu-btn { display: none; }

/* ---------- home hero ---------- */
.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.stage .fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,5,12,.8) 0%, rgba(7,5,12,.3) 32%, rgba(7,5,12,0) 52%); }
.mainmenu { position: absolute; left: 40px; top: 50%; transform: translateY(-55%); width: 340px; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.hero { position: absolute; right: 56px; bottom: 9vh; max-width: 640px; text-align: right; z-index: 3; }
.hero .eyebrow { color: var(--flare); margin-bottom: 16px; }
.hero h1 { margin: 0; font-family: var(--font-deck); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: .02em; }
.hero h1 span { display: block; }
.hero h1 .b { color: var(--bloom); text-shadow: var(--glow-bloom); }
.hero p { margin: 18px 0 24px auto; max-width: 440px; font-weight: 300; font-size: 18px; line-height: 28px; color: var(--muted); text-shadow: 0 1px 14px var(--void), 0 0 4px var(--void); }
.actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- inner pages ---------- */
.pagehead { position: relative; height: 440px; overflow: hidden; border-bottom: 1px solid var(--rim); }
.pagehead .fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,5,12,.92) 0%, rgba(7,5,12,.4) 50%, rgba(7,5,12,0) 75%); }
.pagehead .txt { position: absolute; left: 48px; bottom: 56px; max-width: 680px; }
.crumb { color: var(--flare); margin-bottom: 16px; }
.pagehead h1 { margin: 0; font-family: var(--font-deck); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: .02em; }
.lead { margin: 18px 0 0; font-weight: 300; font-size: 19px; line-height: 30px; color: var(--muted); }
.section { padding: 80px 48px 24px; max-width: 1280px; margin: 0 auto; }
.sh { margin-bottom: 28px; }
.sh .omni-label { color: var(--flare); }
.sh h2 { margin: 8px 0 0; font-family: var(--font-deck); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; letter-spacing: .04em; }
.prose { max-width: 680px; color: var(--muted); font-weight: 300; font-size: 17px; line-height: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rim); }
.step { padding: 24px; border-right: 1px solid var(--rim); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--font-mono); font-size: 40px; line-height: 1; color: var(--rim-strong); transition: color .2s, text-shadow .2s; }
.step:hover .n { color: var(--flare); text-shadow: var(--glow-flare); }
.step h3 { margin: 16px 0 8px; font-family: var(--font-deck); font-weight: 400; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-weight: 300; font-size: 14px; line-height: 22px; }
.cta { position: relative; max-width: 1184px; margin: 80px auto; padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: rgba(42, 11, 99, .45);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.cta::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--bloom); clip-path: inherit; pointer-events: none; }
.cta h2 { margin: 0; font-family: var(--font-deck); font-weight: 400; font-size: 36px; letter-spacing: .04em; }
.cta p { margin: 8px 0 0; color: var(--muted); font-weight: 300; }

/* ---------- contact ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; background: rgba(15, 11, 26, .8); color: var(--ink); border: 1px solid var(--rim-strong); font: 16px/24px var(--font-sans); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--plasma); outline-offset: 0; border-color: var(--bloom); }
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; }
.lost .omni-glitch { font-size: clamp(80px, 16vw, 200px); line-height: .9; color: var(--bloom); }
.lost p { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .topbar { padding: 14px 16px; }
  .topnav, .meta .hide-sm { display: none; }
  .menu-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; background: rgba(15,11,26,.8); color: var(--ink); border: 1px solid var(--rim-strong); font: 12px var(--font-mono); letter-spacing: .22em; cursor: pointer; }
  .mainmenu { position: fixed; inset: 64px 16px auto 16px; width: auto; transform: none; display: none; z-index: 30; }
  .mainmenu.is-open { display: flex; }
  .topnav.is-open { display: flex; position: fixed; inset: 64px 16px auto 16px; flex-direction: column; gap: 14px; padding: 20px; background: rgba(15,11,26,.95); border: 1px solid var(--rim-strong); z-index: 30; }
  .hero { left: 16px; right: 16px; bottom: 48px; text-align: left; }
  .hero p { margin-left: 0; }
  .actions { justify-content: flex-start; }
  .stage .fade { background: linear-gradient(0deg, rgba(7,5,12,.9) 0%, rgba(7,5,12,.2) 60%); }
  .pagehead .txt { left: 16px; right: 16px; }
  .section { padding: 56px 16px 16px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rim); }
  .cta { margin: 56px 16px; padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .omni-footer { padding: 40px 16px 20px; }
  .omni-footer__top { grid-template-columns: 1fr 1fr; }
  .omni-footer__bar { flex-direction: column; gap: 8px; }
}

/* home uses the big plate menu instead of the top nav */
.is-home .topnav { display: none; }
.is-home .topbar { background: transparent; border: 0; }
a.omni-btn { text-decoration: none; }
.pagehead h1 .ln { display: block; }
@media (max-width: 900px) {
  .brand { font-size: 13px; letter-spacing: .18em; }
  .omni-sound { height: 32px; padding: 0 10px; }
  .omni-sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
