body:has(#home-view:not([hidden])) .site-header {
  background: #101218;
  border-bottom-color: #333844;
  color: #f8f1e1;
}
body:has(#home-view:not([hidden])) .site-header .brand-icon { background: #6d8bf6; color: #101626; }
body:has(#home-view:not([hidden])) .site-header .brand-dot,
body:has(#home-view:not([hidden])) .site-header nav .demo-badge { color: #afbacd; }
body:has(#home-view:not([hidden])) .site-header .header-cta { border-color: #697182; color: #fff7e8; }
body:has(#home-view:not([hidden])) .site-header .header-cta:hover { background: #dce4ff; color: #171b28; }
.scene-intro {
  --scene-text: #fff6e7;
  --scene-muted: #bbc3d3;
  --scene-blue: #adc0ff;
  --scene-rule: #a6b5d645;
  --scene-progress: 0;
  position: relative;
  isolation: isolate;
  color: var(--scene-text);
  background: #11141c;
  min-height: max(660px, calc(100svh - 91px));
  padding: 24px 4vw 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.scene-stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 73% 47%, #465879 0%, #2a3650 26%, #1b2438 46%, #11141c 74%);
}
.scene-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #11141c 0%, #11141cf2 17%, #11141cbd 32%, #11141c12 54%, transparent 76%);
}
.scene-grid {
  position: absolute;
  inset: 0 0 0 37%;
  background-image: linear-gradient(#becbfb13 1px, transparent 1px), linear-gradient(90deg, #becbfb13 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse at 68% 44%, #000 8%, transparent 78%);
}
.scene-poster {
  position: absolute;
  object-fit: contain;
  top: 5%;
  right: 0;
  width: 61%;
  height: 88%;
  filter: drop-shadow(0 32px 32px #05070b80);
  transition: opacity .45s ease;
}
#chart-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .45s ease;
}
.scene-ready #chart-scene { opacity: 1; }
.scene-ready .scene-poster { opacity: 0; }
.scene-meta, .scene-instrument-label, .scene-kicker, .scene-seek button span {
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .16em;
}
.scene-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--scene-rule);
  color: var(--scene-muted);
}
.scene-meta span:first-child { display: flex; align-items: center; gap: 9px; }
.scene-meta i { display: inline-block; width: 6px; height: 6px; background: #a9bcff; border-radius: 50%; box-shadow: 0 0 12px #a9bcff; }
.scene-meta b { color: #7f9cf4; padding-inline: 4px; }
.scene-content { align-self: center; padding-block: 34px 62px; width: min(54%, 720px); }
.scene-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--scene-blue); }
.scene-kicker span { width: 22px; height: 1px; background: var(--scene-blue); }
.scene-content h1 {
  font: 400 clamp(64px, 8.1vw, 134px)/.88 var(--serif);
  letter-spacing: -.058em;
  margin: 0;
  white-space: nowrap;
}
.scene-content h1 em { font-style: normal; color: var(--scene-blue); }
.scene-description { font-size: clamp(14px, 1.18vw, 17px); line-height: 1.7; color: #d2d8e3; max-width: 36ch; margin: 24px 0 23px; }
.scene-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.scene-actions a {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  border-radius: 2px;
}
.scene-actions a span { font-size: 17px; line-height: 1; }
.scene-enter { background: #c2d0ff; color: #101a35; }
.scene-enter:hover { background: #e5ebff; }
.scene-sample { border: 1px solid #8092b5; color: #f4f5ff; }
.scene-sample:hover { background: #2c3b58; }
.scene-instrument {
  position: absolute;
  z-index: 1;
  right: 4vw;
  bottom: 102px;
  width: min(28vw, 298px);
  background: #141c2bed;
  border: 1px solid #8da3da70;
  border-left: 2px solid #9db4ff;
  padding: 13px 16px;
  color: #e8eeff;
  box-shadow: 0 8px 40px #04070b50;
}
.scene-instrument-label { display: flex; justify-content: space-between; gap: 9px; color: #a9bcf0; font-size: 9px; }
.scene-discrepancy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font: 400 clamp(22px, 2.5vw, 35px)/1.15 var(--serif);
  margin-top: 6px;
}
.scene-discrepancy del { color: #ebb4a1; text-decoration-thickness: 1px; }
.scene-discrepancy ins { color: #becfff; text-decoration: none; }
.scene-discrepancy span { color: #aebdeb; font: 400 18px var(--sans); }
.scene-instrument p { font-size: 11px; line-height: 1.35; color: #c0cbe0; margin: 7px 0 0; }
.scene-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border-top: 1px solid var(--scene-rule);
  color: var(--scene-muted);
}
.scene-footer [hidden] { display: none; }
.scene-sequence { width: min(100%, 365px); }
.scene-seek { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.scene-seek button, .scene-playback button, .scene-process {
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: #ccd4e3;
  font: 600 12px var(--sans);
  text-decoration: none;
}
.scene-seek button { text-align: left; }
.scene-seek button span { padding-right: 4px; color: #a2aecd; }
.scene-seek button[aria-pressed=true], .scene-seek button[aria-pressed=true] span { color: #e6edff; }
.scene-progress { height: 2px; background: #a6b5d640; }
.scene-progress span { display: block; height: 100%; background: #a4bbff; transform: scaleX(var(--scene-progress)); transform-origin: left; }
.scene-process { grid-column: 2; display: inline-flex; align-items: center; gap: 12px; }
.scene-playback { display: flex; gap: 7px; justify-content: flex-end; }
.scene-playback button { min-width: 44px; border: 1px solid #677caa80; padding-inline: 9px; }
#scene-replay { font-size: 20px; }
.scene-seek button:hover, .scene-playback button:hover, .scene-process:hover { color: #fff; }
.scene-intro :is(button, a):focus-visible { outline: 2px solid #b8c9ff; outline-offset: 4px; }
@media (min-width: 760px) and (max-height: 770px) {
  .scene-intro { min-height: max(590px, calc(100svh - 91px)); }
  .scene-content { padding-bottom: 42px; }
  .scene-content h1 { font-size: clamp(64px, 7.45vw, 104px); }
}
@media (max-width: 759px) {
  .scene-intro {
    min-height: max(760px, calc(100svh - 76px));
    padding: 12px 5vw 0;
    grid-template-rows: auto 1fr auto auto;
  }
  .scene-meta { font-size: 9px; padding-bottom: 9px; grid-row: 1; }
  .scene-stage { inset: 20px 0 auto; height: min(52svh, 430px); min-height: 290px; background: radial-gradient(ellipse at 49% 38%, #465879, #26344e 44%, #11141c 85%); }
  .scene-stage::after { background: linear-gradient(0deg, #11141c 0%, #11141c12 21%, transparent 46%); }
  .scene-grid { inset: 0; background-size: 42px 42px; }
  .scene-poster { top: 4%; height: 95%; width: 100%; }
  .scene-instrument {
    position: relative;
    align-self: end;
    justify-self: end;
    width: min(71vw, 255px);
    inset: auto;
    margin-top: clamp(225px, 34svh, 330px);
    margin-bottom: 7px;
    padding: 8px 11px;
    grid-row: 2;
  }
  .scene-instrument-label { font-size: 8px; }
  .scene-discrepancy { font-size: 23px; margin-top: 4px; }
  .scene-instrument p { display: none; }
  .scene-content { grid-row: 3; width: 100%; padding: 21px 0 18px; }
  .scene-kicker { margin-bottom: 12px; font-size: 9px; }
  .scene-content h1 { font-size: clamp(51px, 13.2vw, 92px); }
  .scene-description { margin: 14px 0; font-size: 14px; }
  .scene-actions { gap: 8px; }
  .scene-actions a { min-height: 44px; padding: 8px 10px; gap: 7px; font-size: 12px; }
  .scene-footer { grid-row: 4; grid-template-columns: 1fr auto; gap: 6px; padding: 4px 0 10px; }
  .scene-sequence { width: 100%; }
  .scene-seek { gap: 5px; }
  .scene-seek button { font-size: 11px; }
  .scene-seek button span { font-size: 8px; padding-right: 1px; }
  .scene-process { grid-row: 2; grid-column: 1 / -1; justify-self: start; min-height: 44px; }
  .scene-playback { grid-row: 1; grid-column: 2; }
}
@media (max-width: 360px) {
  .scene-content h1 { font-size: clamp(45px, 14.2vw, 51px); }
  .scene-footer { column-gap: 10px; }
  .scene-seek button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #chart-scene, .scene-poster { transition: none; }
}
body:has(#home-view:not([hidden])) .site-header {
  box-shadow: 0 0 0 100vmax #101218;
  clip-path: inset(0 -100vmax);
}
.scene-discrepancy { font-size: clamp(20px, 2.15vw, 30px); }
.scene-discrepancy :is(del,ins) { white-space: nowrap; }
@media (max-width: 759px) {
  .scene-intro { min-height: max(650px, calc(100svh - 76px)); }
  .scene-stage { height: min(48svh, 405px); min-height: 245px; }
  .scene-instrument { margin-top: clamp(170px, 28svh, 290px); }
  .scene-discrepancy { font-size: 22px; }
}
@media (max-width: 360px) {
  .scene-meta { letter-spacing: .095em; }
  .scene-meta span:first-child { white-space: nowrap; }
  .scene-meta span:last-child { text-align: right; }
  .scene-description { font-size: 13px; }
}
