:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #555;
  --paper: #fff;
  --line: #ddd;
  --accent: #141414;
  font: 16px/1.55 Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #555; outline-offset: 5px; }
.skip { color: var(--paper); position: fixed; top: 8px; left: 8px; z-index: 2; background: var(--accent); padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.top { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.mark { width: 103px; height: auto; display: block; }
nav { display: flex; gap: 30px; font-size: 14px; }
.top-cta { display: flex; gap: 16px; align-items: center; font-size: 14px; font-weight: bold; border: 1px solid var(--line); padding: 9px 14px; }
.hero { padding: clamp(46px, 9vw, 122px) 0; }
.tag { font: 700 11px/1.4 Consolas, monospace; letter-spacing: .085em; }
.tag i { display: inline-block; vertical-align: 1px; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: currentColor; }
h1, h2, h3 { line-height: 1.04; }
h1 { font-size: clamp(36px, 7vw, 94px); letter-spacing: -.085em; margin: 22px 0 24px; }
.intro { color: var(--muted); max-width: 455px; font-size: clamp(16px, 1.55vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; min-height: 48px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: bold; cursor: pointer; }
.primary { background: var(--accent); color: var(--paper); }
.primary:hover { background: #333; }
.secondary { border-color: var(--line); }
.section { padding: 47px 0 55px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head > p { color: var(--muted); max-width: 305px; }
h2 { font-size: clamp(36px, 5vw, 67px); letter-spacing: -.075em; margin-top: 9px; }
.case { display: grid; grid-template-columns: min(23%, 185px) 1fr; align-items: baseline; gap: 12px; padding: 22px 0; border-block: 1px solid var(--line); }
h3 { font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.05em; margin: 7px 0 9px; }
.case p:not(.tag), .services p, .steps p { color: var(--muted); }
.services article { display: grid; grid-template-columns: min(10%, 75px) 1fr; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.services article > span { font: bold 13px Consolas, monospace; }
.steps { padding: 0; margin: 0; list-style-position: inside; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { border: 1px solid var(--line); padding: 18px; }
.steps li::marker { font: bold 13px Consolas, monospace; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: clamp(22px, 5vw, 57px); background: #141414; color: var(--paper); margin: 0 0 34px; }
.brief p:not(.tag) { margin-top: 14px; color: #ddd; max-width: 350px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-style: normal; }
.contacts a { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
.brief .primary { background: var(--paper); color: var(--ink); }
.brief .primary:hover { background: #ddd; }
.brief :focus-visible { outline-color: #fff; }
form { display: grid; align-content: start; gap: 7px; }
label { font-size: 14px; font-weight: bold; }
select, textarea { width: 100%; padding: 10px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #ccc; border-radius: 0; margin-bottom: 5px; }
textarea { resize: vertical; }
form .button { justify-self: start; }
.brief #brief-status { margin: 0; font-size: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 28px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .top { min-height: 65px; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  nav { order: 3; width: 100%; justify-content: space-between; }
  nav a { padding-block: 5px; }
  .steps, .brief { grid-template-columns: 1fr; }
  .hero { padding: 42px 0; }
  .section { padding: 32px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 9px; }
  .footer span { display: none; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

/* Spatial presentation */
body { --ink: #f6f6f6; --muted: #b2b2b2; --paper: #080808; --line: #353535; --accent: #eee; color: var(--ink); background: var(--paper); }
:root { background: #080808; color-scheme: dark; }
:focus-visible { outline-color: #aaa; }
.top { position: relative; z-index: 2; }
.top-cta, .variant-link { white-space: nowrap; }
.variant-link, .explore, .scene-controls button { font: 700 11px/1.5 Consolas, monospace; letter-spacing: .05em; }
.variant-link, .explore { display: inline-flex; gap: 10px; align-items: center; }
.hero { position: relative; isolation: isolate; min-height: min(830px, calc(100svh - 85px)); display: flex; align-items: end; padding: 36px 0; }
.hero-copy { position: relative; z-index: 1; max-width: 560px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(33px, 5.3vw, 76px); }
.hero .intro { max-width: 370px; font-size: 16px; }
.explore { margin-top: 22px; padding: 10px 0; }
.scene { position: absolute; inset: 0 calc((100% - 100vw) / 2); perspective: 900px; overflow: hidden; cursor: grab; touch-action: pan-y; background: radial-gradient(ellipse at 57% 40%, #242424, #080808 72%); }
.scene:active { cursor: grabbing; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#080808 2%,transparent 60%), linear-gradient(90deg,#080808a8,transparent 72%); }
.world { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--scene-y,0px)) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform 130ms linear; }
.grid-wall, .grid-floor { position: absolute; background-image: linear-gradient(#ffffff24 1px, transparent 1px),linear-gradient(90deg,#ffffff24 1px,transparent 1px); background-size: 76px 76px; }
.grid-wall { inset: -22%; transform: translateZ(-240px); mask-image: radial-gradient(ellipse,#000,transparent 71%); }
.grid-floor { left: -35%; right: -35%; top: 50%; height: 140%; transform-origin: 50% 0; transform: rotateX(70deg) translateZ(-165px); mask-image: linear-gradient(transparent,#000 32%,transparent); }
.prism { position: absolute; width: min(53vw, 625px); height: auto; top: 42%; left: 57%; transform: translate3d(-50%,-46%,28px) rotateZ(-10deg) rotateY(-17deg); filter: drop-shadow(0 0 28px #ffffff38); }
.scene-logo { position: absolute; width: min(53vw, 640px); height: auto; top: 45%; left: 57%; transform: translate3d(-50%,-50%,108px); filter: drop-shadow(0 9px 9px #000); }
.scene-controls { position: absolute; z-index: 2; top: 16px; right: 0; display: flex; gap: 8px; }
.scene-controls button { background: #111; border: 1px solid #555; color: #fff; cursor: pointer; padding: 8px; }
.section { padding-block: clamp(52px, 10vw, 130px); }
.case { display: block; }
.case-screen { display: grid; align-content: space-between; min-height: clamp(190px, 36vw, 400px); padding: clamp(20px,4vw,50px); border: 1px solid #494949; background: repeating-linear-gradient(140deg,#181818,#181818 42px,#252525 43px,#181818 44px); overflow: hidden; }
.case-screen span { font: 700 11px Consolas, monospace; letter-spacing: .12em; }
.case-screen strong { font-size: clamp(34px, 10vw, 130px); line-height: 1; letter-spacing: -.09em; }
.case > .tag { margin-top: 16px; }
.brief { background: #151515; color: #f6f6f6; color-scheme: dark; }
.brief .primary, .primary { background: #fff; color: #111; }
.brief .primary:hover, .primary:hover { background: #ddd; }
select, textarea { color: #fff; background: #111; border-color: #777; }
.brief textarea::placeholder { color: #aaa; opacity: 1; }
.chapter .section-head { transition: translate 650ms ease, opacity 650ms ease; }
.chapter.waiting .section-head { translate: 0 20px; opacity: .45; }
/* Editorial presentation */
.editorial { --paper: #f8f8f8; --ink: #141414; --muted: #555; --line: #ccc; color-scheme: light; }
.editorial .mark { filter: invert(1); }
.editorial .hero { min-height: auto; display: block; padding: clamp(32px, 7vw, 90px) 0 40px; }
.editorial .hero-copy { max-width: none; }
.editorial .hero h1 { font-size: clamp(33px, 8vw, 106px); }
.editorial .hero .intro { max-width: 440px; }
.editorial .hero-copy > .tag { display: none; }
.editorial .masthead { overflow: hidden; margin: 0 0 28px; padding-block: 18px; border-block: 1px solid var(--line); }
.editorial .masthead img { display: block; width: 100%; height: auto; filter: invert(1); animation: masthead-in 750ms cubic-bezier(.2,.75,.25,1) both; }
@keyframes masthead-in { from { transform: translateY(110%); } }
.editorial .case-screen { min-height: clamp(180px, 35vw, 360px); background: radial-gradient(ellipse at 75% 10%, #535353, #101010 70%); color: #fff; }
.editorial .case-screen strong { transition: transform 350ms ease; transform-origin: left center; }
.editorial .case:hover .case-screen strong { transform: scale(1.04); }
.editorial .contacts a { color: #fff; }
.editorial .primary { color: #111; }
@media (max-width: 700px) {
  .top { gap: 9px; }
  .hero { min-height: 620px; min-height: min(710px, 85svh); padding-bottom: 26px; }
  .scene-logo { width: 72vw; left: 50%; top: 34%; }
  .prism { width: min(78vw, 470px); left: 50%; top: 33%; }
  .hero h1 { margin: 10px 0; }
  .hero .intro { font-size: 14px; }
  .scene-controls button { padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .world, .chapter .section-head, .editorial .case-screen strong { transition: none; }
  .editorial .masthead img { animation: none; }
}

/* The spatial sequence ends after the featured project. */
.spatial {
  --color-reveal: 0%;
  --scene-glow: color-mix(in srgb, #292929, #6145b8 var(--color-reveal));
  --scene-haze: color-mix(in srgb, #0b0b0b, #161738 var(--color-reveal));
  --project-tone: color-mix(in srgb, #bcbcbc, #a8bfff var(--color-reveal));
  --page-violet: color-mix(in srgb, #080808, #25164a var(--color-reveal));
  --page-blue: color-mix(in srgb, var(--page-violet), #123b74 var(--background-services, 0%));
  --page-teal: color-mix(in srgb, var(--page-blue), #10524a var(--background-process, 0%));
  --page-background: color-mix(in srgb, var(--page-teal), #551d36 var(--background-brief, 0%));
  background-color: var(--page-background);
}
.spatial .top {
  position: sticky;
  top: 0;
  z-index: 4;
  padding-inline: clamp(12px, 2vw, 28px);
  background: #080808;
  background: var(--page-background);
}
.spatial .top .scene-controls { position: static; flex-wrap: wrap; }
.spatial .hero {
  min-height: 100svh;
  padding: 0;
}
.hero-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.spatial .scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  perspective: 950px;
  background: radial-gradient(ellipse at 64% 40%, #292929, #0b0b0b 51%, #080808 75%);
  background:
    radial-gradient(ellipse 42% 52% at var(--background-x, 64%) var(--background-y, 40%),
      color-mix(in srgb, var(--scene-glow), #fff 18%), var(--scene-glow) 36%, transparent 100%),
    radial-gradient(ellipse at 64% 40%, var(--scene-haze), #080808 75%);
}
.spatial .scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("circuit.svg") center / cover no-repeat;
  opacity: .26;
  pointer-events: none;
}
.spatial .scene::after { background: linear-gradient(0deg, #080808 1%, transparent 34%); }
.panel-wall {
  position: absolute;
  inset: -9%;
  background: url("panel-wall.svg") center / cover no-repeat;
  opacity: .7;
  transform: translate(var(--wall-x, 0%), var(--wall-y, 0%));
  pointer-events: none;
}
.panel-wall::before,
.panel-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("panel-wall.svg") center / cover no-repeat;
  mask-image: radial-gradient(ellipse 32% 42% at var(--light-x, 50%) var(--light-y, 45%), #000 12%, transparent 100%);
}
.panel-wall::before {
  filter: brightness(2.8);
  opacity: .85;
}
.panel-wall::after {
  filter: sepia(1) saturate(7) hue-rotate(193deg);
  opacity: var(--reflection-color, 0);
}
.wall-wave {
  position: absolute;
  inset: -22%;
  background-image:
    radial-gradient(circle, #000 0 38%, transparent 55%),
    repeating-radial-gradient(ellipse at 58% 115%, #777 0 4%, #101010 5% 8%, #aaa 9% 12%, #151515 13% 18%);
  background-size: 5px 5px, 100% 100%;
  background-position: 0 0, var(--wave-x, 0px) var(--wave-y, 0px);
  background-repeat: repeat, no-repeat;
  transform: rotate(-28deg);
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 65%);
  opacity: .55;
}
.spatial .world {
  --radius: 580px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 90ms linear;
}
.spatial .grid-floor {
  inset: 50% auto auto 50%;
  width: 2100px;
  height: 1700px;
  background-size: 76px 76px;
  mask-image: radial-gradient(#0008 8%, transparent 65%);
  transform-origin: center;
  transform: translate(-50%, calc(-50% + 290px)) rotateX(90deg);
}
.station {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(116vw, 1310px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotateY(var(--angle, 0deg)) translateZ(calc(0px - var(--radius)));
  backface-visibility: hidden;
}
.station-brand { opacity: var(--brand-opacity, 1); }
.brand-seo {
  position: absolute;
  top: calc(100% + .18em);
  right: 0;
  display: flex;
  align-items: center;
  gap: .35em;
  color: #ddd;
  font: 800 clamp(24px, 5vw, 64px)/1 Arial, sans-serif;
  letter-spacing: .12em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}
.brand-seo::before {
  content: "";
  width: 1.25em;
  border-top: 1px solid #777;
}
.chrome-logo {
  position: relative;
  display: block;
  width: min(100%, 138svh);
  height: auto;
  transform: rotateX(var(--object-x, -7deg)) rotateY(var(--object-y, -12deg)) rotateZ(-5deg);
  transition: transform 100ms linear;
  filter: drop-shadow(0 22px 32px #000);
}
.cursor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --cursor-position: var(--cursor-x, 50%) var(--cursor-y, 50%);
  --cursor-color: hsl(var(--cursor-hue, 273) 88% 57%);
  background:
    radial-gradient(circle clamp(80px, 13vw, 200px) at var(--cursor-position),
      #e8eeff55, transparent 100%),
    radial-gradient(ellipse 72% 85% at var(--cursor-position),
      var(--cursor-color), color-mix(in srgb, var(--cursor-color) 65%, transparent) 45%, transparent 100%);
  opacity: calc(var(--cursor-glow, 0) * var(--hero-color, 1) * .76);
  transition: opacity 160ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}
.wall-wordmarks {
  position: absolute;
  inset: -25% -10%;
  display: grid;
  align-content: center;
  gap: 3vh;
  overflow: hidden;
  color: #ddd;
  opacity: .15;
  transform: rotate(-16deg) translate(var(--wave-x, 0px), var(--wave-y, 0px));
  mask-image: radial-gradient(ellipse, #000 34%, transparent 73%);
}
.wall-wordmarks span {
  font: 900 clamp(128px, 28vw, 480px)/.82 Arial, sans-serif;
  letter-spacing: -.1em;
  white-space: nowrap;
}
.wall-wordmarks span:nth-child(2) { translate: 19% 0; }
.spatial main { position: relative; z-index: 1; pointer-events: none; }
.spatial main a, .spatial main button, .spatial main form, .spatial main .top, .spatial main .section, .spatial main .brief { pointer-events: auto; }
.spatial #work {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 85px);
  scroll-margin-top: 85px;
  padding: clamp(42px, 7vh, 90px) 0 clamp(48px, 8vw, 118px);
  border: 0;
  color: #101010;
  --muted: #555;
}
.spatial #work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f9f9f8;
  box-shadow: 0 0 0 100vmax #f9f9f8;
  clip-path: inset(0 -100vmax);
}
.spatial #works-title { font-size: clamp(42px, 7.5vw, 112px); text-transform: uppercase; }
.work-gallery-hint {
  width: min(100%, 1040px);
  margin: clamp(16px, 2vw, 28px) 0 8px auto;
  color: var(--muted);
  font: 700 11px Consolas, monospace;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}
.work-gallery-hint span { margin-left: .5em; }
.work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  width: min(100%, 1040px);
  max-height: clamp(180px, 54svh, 700px);
  margin-inline-start: auto;
  padding: 4px clamp(6px, 1.2vw, 16px) 4px 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #626262 #e1e1df;
}
.work-gallery:focus-visible {
  outline: 2px solid #494d87;
  outline-offset: 2px;
}
.work-card { display: block; }
.work-card:hover { text-decoration: none; }
.work-card > :is(.forma-cover, .term-cover) {
  border-radius: clamp(12px, 1.5vw, 24px);
  aspect-ratio: 1.46;
}
.work-card :is(.forma-cover, .term-cover) svg {
  transition: transform .45s ease;
}
.work-card:is(:hover, :focus-visible) :is(.forma-cover, .term-cover) svg {
  transform: scale(1.055);
}
.work-card :is(.forma-cover > span, .term-cover > strong) {
  position: absolute;
  top: clamp(16px, 3vw, 34px);
  left: clamp(16px, 3vw, 34px);
  font: 800 clamp(24px, 3vw, 46px)/1 Arial, sans-serif;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.work-card .term-cover > span { align-self: end; }
.work-card .forma-cover svg { width: 74%; margin-left: auto; }
.work-card .term-cover svg { top: 25%; }
.forma-cover, .term-cover {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  aspect-ratio: 1.6;
  padding: clamp(14px, 3vw, 32px);
  overflow: hidden;
}
.forma-cover { background: #e5decf; color: #23221d; }
.forma-cover span { font: 700 clamp(24px, 4vw, 58px)/1 Georgia, serif; }
.forma-cover svg { width: 55%; height: auto; }
.term-cover {
  flex-direction: column;
  align-items: start;
  background: radial-gradient(ellipse at 75% 0%, #5051a2, #161b39 72%);
  color: #fff;
}
.term-cover span { font: 700 12px Consolas, monospace; letter-spacing: .1em; }
.term-cover strong { position: relative; z-index: 1; font-size: clamp(30px, 5vw, 70px); letter-spacing: -.07em; line-height: 1; }
.term-cover svg { position: absolute; inset: 17% 0 auto 22%; width: 76%; opacity: .66; }
.work-card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #10101028;
}
.work-card-label h3 { margin: 0 0 3px; }
.work-card-label p { color: var(--muted); }
.work-card-label > span { font-size: 24px; transition: transform .2s ease; }
.work-card:hover .work-card-label > span, .work-card:focus-visible .work-card-label > span { transform: translate(3px,-3px); }
.case-page { padding-block: clamp(34px, 7vw, 90px); }
.case-page > :is(.forma-cover, .term-cover) { max-width: 820px; }
.case-page h2 { margin-top: 30px; }
.case-page > p:last-child { margin-top: 12px; max-width: 55ch; }
.spatial #services, .spatial #process {
  min-height: 76svh;
  align-content: center;
  padding-block: clamp(40px, 7vw, 88px);
  scroll-margin-top: 85px;
}
.spatial .steps { gap: 24px; }
.spatial .steps li { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
.spatial .brief { scroll-margin-top: 100px; margin: 24px 0 44px; border: 1px solid #353535; background: #111; }
.spatial #services { --section-accent: #8cbcff; }
.spatial #process { --section-accent: #72dccc; }
.spatial #brief { --section-accent: #ffb9d1; }
.spatial :is(#services, #process, #brief) {
  --section-reveal: 0%;
  --section-tone: color-mix(in srgb, #f6f6f6, var(--section-accent) var(--section-reveal));
  --section-line: color-mix(in srgb, #353535, var(--section-tone) 32%);
}
.spatial :is(#services, #process, #brief) h2 { color: var(--section-tone); }
.spatial #services article, .spatial #process .steps li { border-color: var(--section-line); }
.spatial #brief {
  background: color-mix(in srgb, #111, var(--page-background) 65%);
  border-color: var(--section-line);
}
.spatial #brief .primary { background: var(--section-tone); }
.spatial #brief .primary:hover { background: color-mix(in srgb, var(--section-tone), #fff 50%); }
.spatial .footer { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .spatial #work {
    scroll-margin-top: 120px;
  }
  .station { width: 141vw; top: 42%; }
  .spatial #services, .spatial #process, .spatial .brief { scroll-margin-top: 120px; }
  .spatial .steps { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .spatial .world { transition: none; }
  .work-card :is(.forma-cover, .term-cover) svg,
  .work-card-label > span { transition: none; }
}

.spatial .scene-header {
  position: fixed;
  inset: 0 0 auto;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: clamp(12px, 2vw, 32px);
  padding: 12px clamp(16px, 3vw, 54px);
  border: 0;
  background: color-mix(in srgb, transparent, var(--page-background) var(--color-reveal));
}
.scene-header nav { justify-self: center; }
.spatial .scene-header { isolation: isolate; }
.spatial .scene-header::before,
.spatial .scene-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.spatial .scene-header::before {
  background:
    linear-gradient(110deg, transparent, #50bfff, #ae78ff, transparent) 0 100% / 44% 1px no-repeat,
    radial-gradient(ellipse at center, #6150e96b, #168abd26 42%, transparent 72%) 0 100% / 56% 130% no-repeat;
  animation: header-signal 7s ease-in-out infinite alternate;
}
.spatial .scene-header::after {
  background:
    radial-gradient(circle, #c2eeff 1px, transparent 1.7px) 0 0 / 24px 24px,
    linear-gradient(90deg, #7cbfff36 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(#7cbfff36 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at var(--header-x, 50%) var(--header-y, 50%), #7257ed7a, #1a9fc333 65%, transparent);
  mask-image: radial-gradient(ellipse 235px 92px at var(--header-x, 50%) var(--header-y, 50%), #000, transparent 100%);
  opacity: 0;
  transition: opacity .45s ease;
}
.spatial .scene-header[data-pointer]::after { opacity: .85; }
@keyframes header-signal {
  from { background-position: -65% 100%, -60% 100%; }
  to { background-position: 165% 100%, 160% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spatial .scene-header::before { animation: none; background-position: 50% 100%; }
  .spatial .scene-header::after { display: none; }
}
.scene-header nav a, .scene-header .top-cta { font: 700 12px Consolas, monospace; letter-spacing: .07em; }
.scene-header .top-cta { border: 1px solid #a5a5a5; border-radius: 999px; padding: 11px 15px; }
.spatial .scene-header .scene-controls { align-items: center; }
.scene-header .scene-controls button { border-color: #666; background: #101010; }
.orbit-control { display: inline-flex; align-items: center; gap: 7px; font: 400 11px Consolas, monospace; }
.orbit-control input { width: 60px; margin: 0; accent-color: #eee; }
.spatial .skip { z-index: 5; }
@media (max-width: 820px) {
  .spatial .scene-header { display: flex; flex-wrap: wrap; }
  .scene-header nav { width: 100%; order: 3; }
  .scene-header .top-cta { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .chrome-logo { transition: none; }
}
