/* ARC Edge scan — embedded as the first section of the homepage (source: arc-scan/, the look test).
   Everything is scoped to .sc-embed: its own tokens, a tall track with a sticky 100vh stage, and the
   HUD positioned inside the stage. The look-test controls (terrain modes, depth, play) are left out. */

.sc-embed {
  --bg: #0B0B0A;
  --ink: #F1F1ED; --dim: #9A9A92; --faint: #5E5E56;
  --line: rgba(241,241,237,.13); --line-2: rgba(241,241,237,.26);
  --acc: #F76611; --held: #3AE06E;
  --r: 1.11vw;
  --glass-bg: rgba(0,0,0,.32);
  --glass-glow: inset 0 0 24px 0 rgba(248,247,243,.08), inset 0 6px 12px 0 rgba(248,247,243,.16);
  --halo-held: 0 0 6px rgba(58,224,110,.75), 0 0 18px rgba(58,224,110,.35);
  --halo-ink: 0 0 10px rgba(241,241,237,.35), 0 0 28px rgba(241,241,237,.14);
  --sans: 'Switzer Variable', 'Switzer', Arial, sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Mono', Consolas, monospace;
  --pad: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(.2,.7,.2,1); --ease-k: cubic-bezier(.22,1,.36,1);
  position: relative; height: 1100vh; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { .sc-embed { --r: 4.27vw; } }
.sc-embed.is-static { height: 100vh; }

.sc-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sc-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.sc-lab { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* product nameplate: the same element in the prologue HUD and the fly-through, same corner */
.sc-plate { display: flex; align-items: center; gap: 10px; }
.sc-plate img { height: 18px; width: auto; }
.sc-plate b { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.sc-plate-wrap { position: absolute; left: var(--pad); top: 120px; z-index: 3; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }

/* caption eyebrow: label + 7px square marker */
.sc-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sc-eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--ink); }


/* beat rail, below the site nav */
.sc-rail { position: absolute; left: var(--pad); top: 176px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; }
.sc-rail button { appearance: none; border: 0; background: none; color: var(--faint); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 0; transition: color .3s var(--ease); }
.sc-rail button::before { content: ''; width: 12px; height: 1px; background: currentColor; transition: width .5s var(--ease-k); }
.sc-rail button:hover { color: var(--dim); }
.sc-rail button.is-on { color: var(--ink); }
.sc-rail button.is-on::before { width: 32px; }
.sc-rail button:focus-visible { outline: 1px solid var(--line-2); outline-offset: 2px; }
.sc-rail i { font-style: normal; opacity: .6; }
.sc-embed.is-static .sc-rail { display: none; }

/* captions: one banner headline per beat */
.sc-cap { position: absolute; left: var(--pad); bottom: var(--pad); z-index: 2; pointer-events: none; width: min(62vw, 880px); height: 1px; }
.sc-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 52vh; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(11,11,10,.82), rgba(11,11,10,.5) 45%, rgba(11,11,10,0)); opacity: 0; transition: opacity .8s var(--ease); }
.sc-embed.has-cap .sc-scrim { opacity: 1; }
.sc-h { position: absolute; left: 0; bottom: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sc-h.is-on { opacity: 1; transform: none; }
.sc-hl { max-width: 15ch; font: 700 clamp(30px, 4.2vw, 64px)/.92 var(--sans); letter-spacing: -.03em; text-transform: uppercase; }
.sc-h[data-cap="0"] { bottom: 36px; }
.sc-h[data-cap="0"] .sc-hl { max-width: 21ch; }
.sc-hs { max-width: 38ch; font: 400 clamp(14px, 1.15vw, 18px)/1.4 var(--sans); color: var(--dim); }

/* link-state readout */
.sc-read { position: absolute; right: var(--pad); bottom: var(--pad); z-index: 3; display: flex; flex-direction: column; gap: 8px; min-width: 264px; padding: 16px 24px; background: var(--glass-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--glass-glow); border-radius: var(--r); }
.sc-read .sc-dim { color: var(--dim); }
.sc-state { display: flex; align-items: center; gap: 10px; font: 500 15px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sc-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.sc-dot.is-held { background: var(--held); box-shadow: var(--halo-held); }
.sc-embed #stateTxt.is-lit { text-shadow: var(--halo-ink); }
.sc-dot.is-scan { background: var(--dim); animation: scBlink 1s steps(2, end) infinite; }
@keyframes scBlink { 50% { opacity: .2; } }

/* platform tags, placed from 3D each frame */
.sc-tag { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); will-change: transform; }
.sc-tag.is-on { opacity: 1; }
.sc-tag > .sc-dot { position: absolute; left: -4px; top: -4px; }
.sc-stem { position: absolute; left: 0; bottom: 8px; width: 1px; height: 56px; background: var(--line-2); }
.sc-tag-b { position: absolute; left: 12px; bottom: 50px; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.sc-tag-b b { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.sc-tag-b span { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sc-tag.is-flip .sc-tag-b { left: auto; right: 12px; align-items: flex-end; }
.sc-tag.is-down .sc-stem { bottom: auto; top: 8px; }
.sc-tag.is-down .sc-tag-b { bottom: auto; top: 50px; }

.sc-cue { position: absolute; left: var(--pad); bottom: var(--pad); z-index: 2; color: var(--dim); transition: opacity .6s var(--ease); pointer-events: none; }
.sc-cue.is-off { opacity: 0; }

.sc-fail { position: absolute; inset: 0; display: none; place-items: center; color: var(--dim); }
.sc-embed.no-gl .sc-fail { display: grid; }

@media (max-width: 767px) {
  .sc-rail { display: none; }
  .sc-plate-wrap { top: 96px; }
  .sc-read { left: var(--pad); min-width: 0; }
  .sc-cap { bottom: calc(var(--pad) + 120px); width: auto; right: var(--pad); }
  .sc-cue { bottom: calc(var(--pad) + 120px); }
  .sc-tag-b { white-space: normal; width: 150px; }
  .sc-tag-b .st2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-h, .sc-tag, .sc-cue { transition: none; }
  .sc-dot.is-scan { animation: none; }
}

/* Lit (2026-11-18): the fly-through's captions, tags and readout in ink, not grey. The prologue
   overlay (.hx-embed) keeps its own HUD greys. */
.sc-embed :is(.sc-hs, .sc-tag-b span, .sc-eyebrow, .sc-cue, .sc-read .sc-dim):not(.hx-embed *) { color: var(--ink); }
.sc-embed .sc-rail button { color: #B9B9B1; }
