/* Original CRT grain and scanlines belong to the homepage only. */
body::before, body::after { display: none !important; }
body.home-signal::before, body.home-signal::after { display: block !important; }
body.home-signal::after { animation: none; }
body.home-signal.home-tracking::after { animation: scanlines .1s linear 3; }
@media (prefers-reduced-motion: reduce) {
  body.home-signal::before, body.home-signal::after { display: none !important; }
}

/* Shared frame for the interactive work. The scenes own their own layout. */
body.experience-active {
  display: block;
  background: #080b09;
}
body.experience-active::before { opacity: .012; }
body.experience-active::after { display: none; }
body.experience-active .idle-message,
body.experience-active .now-bar { display: none; }
.experience-view {
  --experience-ink: #dbe8dc;
  --experience-muted: #91ac96;
  --experience-accent: var(--terminal, #00ff41);
  --experience-line: #203d29;
  display: none;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  overflow: clip;
  background: #080b09;
  color: var(--experience-ink);
}
.experience-view.active { display: block; }
.experience-header {
  width: 100%;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--experience-line);
  background: #090e0b;
  font: 12px/1.4 monospace;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.experience-header a,
.experience-header button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--experience-muted);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .2s;
}
.experience-header .experience-brand {
  color: var(--experience-accent);
  font-size: 18px;
  justify-self: start;
  letter-spacing: -.08em;
  text-transform: none;
}
.experience-nav { display: flex; align-items: center; gap: 28px; }
.experience-nav a { position: relative; }
.experience-nav a::before { content: ">"; margin-right: .5em; color: var(--experience-accent); }
.experience-nav a[aria-current="page"] { color: var(--experience-accent); }
.experience-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--experience-accent);
}
.experience-header .experience-home { justify-self: end; gap: 4px; color: var(--experience-accent); }
.experience-header a:hover,
.experience-header button:hover { color: var(--experience-accent); }
.experience-view :focus-visible { outline: 2px solid var(--experience-accent); outline-offset: 5px; }
.experience-host { width: 100%; }
.experience-loading {
  min-height: 60dvh;
  padding: clamp(32px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.experience-loading h2 { font: clamp(32px, 6vw, 80px)/1.1 'Anton', Impact, sans-serif; }
.experience-loading p { max-width: 52ch; color: var(--experience-muted); font: 14px/1.8 monospace; }
.experience-loading button {
  min-height: 48px;
  padding: 12px 24px;
  color: #080b09;
  background: var(--experience-accent);
  border: 0;
  cursor: pointer;
  font: 13px monospace;
}
@media (max-width: 600px) {
  .experience-header { grid-template-columns: auto 1fr auto; gap: 10px; min-height: 64px; padding: 8px 16px; font-size: 10px; }
  .experience-nav { justify-content: center; gap: 16px; }
  .experience-header .experience-brand { font-size: 16px; }
  .experience-header .experience-home { gap: 4px; }
  .experience-nav a[aria-current="page"]::after { bottom: -9px; }
  .experience-view { padding-bottom: 0; }
}
@media (max-width: 360px) {
  .experience-header { gap: 8px; padding-inline: 12px; }
  .experience-nav { gap: 12px; }
  .experience-home span { display: none; }
}
