:root { color-scheme: dark; background: #080502; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: #080502; font-family: system-ui, sans-serif; color: #f4d6a2; }
.intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  padding: 140px 0 65px;
}
.cosmos, .vignette { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; z-index: -1; }
.cosmos {
  top: -4%; right: -4%; bottom: -4%; left: -4%; inset: -4%;
  opacity: .76;
  animation: cosmos-arrive 2.8s ease-out both, cosmic-drift 36s 2.8s ease-in-out infinite alternate;
}
.nebula { position: absolute; top: -10%; right: -10%; bottom: -10%; left: -10%; inset: -10%; background: url('./assets/tlo.png') center / cover no-repeat; opacity: 0; transform-origin: center; }
.nebula.is-visible { opacity: 1; }
.nebula-light { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; pointer-events: none; }
.intro:not([data-scene="0"]) .nebula-light, .is-tv .nebula-light { display: none; }
.vignette {
  background: radial-gradient(ellipse at 50% 45%, transparent 10%, rgba(8, 5, 2, 0.188) 55%, rgba(5, 3, 1, 0.788) 100%);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90vw; max-width: 650px;
  width: min(90vw, 650px);
  padding: 0;
  transform: translate3d(var(--brand-x, 0px), var(--brand-y, 0px), 0);
  will-change: transform;
}
.emblem-entrance { transform: scale(var(--scene-scale, 1)) rotate(var(--scene-turn, 0deg)); transition: transform 1.8s cubic-bezier(.22,.7,.18,1); }
.timeline { position: absolute; top: 28px; top: max(28px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: calc(100% - 80px); max-width: 1040px; width: min(1040px, calc(100% - 80px)); z-index: 2; }
.timeline-heading { display: flex; justify-content: space-between; padding: 0 22px; font-size: 12px; letter-spacing: .2em; color: #d9bd90; }
.timeline-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(185, 140, 68, 0.251) transparent; }
.timeline-track { position: relative; min-width: 660px; height: 94px; }
.liquid-rail { position: absolute; left: 0; top: 5px; width: 100%; height: 58px; overflow: visible; pointer-events: none; }
.rail-base { stroke: rgba(214, 181, 120, 0.188); stroke-width: 3; }
.rail-nodes circle { fill: #161009; stroke: rgba(188, 149, 97, 0.302); stroke-width: 2.5; transition: opacity .18s ease; }
.rail-nodes circle.is-filled { opacity: 0; }
.mask-nodes circle { opacity: 0; transition: opacity .18s ease; }
.mask-nodes circle.is-filled { opacity: 1; }
.liquid-core { fill: #fff4da; filter: drop-shadow(0 0 6px #ffc560); }
.track-buttons { position: relative; display: flex; display: grid; grid-template-columns: repeat(12, 1fr); height: 94px; }
.track-button { flex: 1 0 0; appearance: none; border: 0; background: transparent; color: #c2ad8c; font: inherit; cursor: pointer; min-width: 44px; min-height: 44px; padding: 0; }
.track-button:hover { color: #fff0d3; text-shadow: 0 0 14px #f2b356; }
.track-button[aria-current="step"] { color: #ffe3ab; text-shadow: 0 0 18px rgba(255, 191, 87, 0.667); }
.track-button:focus-visible { outline: 1px solid #f8d08c; outline-offset: -3px; border-radius: 12px; }
.timeline-start-label, .timeline-label { position: absolute; z-index: 1; width: max-content; max-width: 100%; max-width: min(320px, 100%); padding: 4px 8px; font-size: 14px; line-height: 1.45; letter-spacing: .045em; text-align: center; text-wrap: balance; color: #ffe3ab; text-shadow: 0 0 14px rgba(212, 141, 56, 0.333); pointer-events: none; }
.timeline-start-label { letter-spacing: .14em; color: #d9bd90; }
.timeline-label { background: linear-gradient(90deg, transparent, rgba(8, 5, 2, 0.910) 14%, rgba(8, 5, 2, 0.910) 86%, transparent); }
.timeline-label.is-preview { color: #fff0d3; }
.stardust { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.music-player { position: absolute; left: 50%; bottom: 72px; bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px)); transform: translateX(-50%); width: calc(100% - 48px); max-width: 430px; width: min(430px, calc(100% - 48px)); display: flex; flex-wrap: wrap; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 0 18px; z-index: 3; }
.play-toggle { width: 48px; height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(198, 148, 80, 0.369); border-radius: 50%; background: rgba(18, 12, 6, 0.702); color: #ffdc98; box-shadow: 0 0 20px rgba(232, 155, 36, 0.071); cursor: pointer; transition: background .2s, box-shadow .2s; }
.play-toggle:hover { background: rgba(57, 37, 9, 0.702); box-shadow: 0 0 24px rgba(232, 155, 36, 0.200); }
.play-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.play-toggle:focus-visible, .track-seek:focus-visible { outline: 2px solid #f5cd85; outline-offset: 4px; }
.track-progress { flex: 1; min-width: 0; }
.track-times { display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; color: #d0b78e; }
.track-seek { --played: 0%; appearance: none; -webkit-appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.track-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #d9a252 0%, #ffdda0 var(--played), rgba(187, 150, 91, 0.200) var(--played), rgba(187, 150, 91, 0.200) 100%); }
.track-seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(187, 150, 91, 0.200); }
.track-seek::-moz-range-progress { height: 3px; background: #f2c47b; }
.track-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #ffe3aa; box-shadow: 0 0 10px rgba(237, 175, 66, 0.333); }
.track-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #ffe3aa; }
.track-seek:disabled { cursor: default; opacity: .45; }
.player-status { flex: 0 0 100%; grid-column: 1 / -1; margin: 4px 0 0; text-align: center; color: #d6bd95; font-size: 14px; line-height: 1.4; }
.player-status:empty { display: none; }
.intro.has-audio { padding-bottom: 155px; }
.intro.has-audio .emblem-entrance { width: 33vw; max-width: 39vh; width: min(39vh, 33vw, 420px); width: min(39svh, 33vw, 420px); }
.intro.has-audio .track-title { min-height: 105px; margin-top: 8px; }
.emblem-entrance {
  position: relative;
  width: 36vw;
  max-width: 460px;
  width: min(46vh, 36vw, 460px); width: min(46svh, 36vw, 460px);
  animation: emblem-arrive 2.4s .25s cubic-bezier(.2,.65,.3,1) both;
}
.emblem {
  display: block;
  width: 100%;
  height: auto;
  animation: light-breathe 7s 2.6s ease-in-out infinite, emblem-float 11s 2.6s ease-in-out infinite;
}
.audio-aura { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; border: 1px solid rgba(239, 186, 101, .22); border-radius: 50%; pointer-events: none; }
.audio-spectrum { position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; pointer-events: none; }
.intro[data-scene="0"] .audio-aura, .intro[data-scene="0"] .audio-spectrum { display: none; }
.intro.has-audio .emblem { animation: none; }
.wordmark {
  display: block;
  width: 100%;
  max-width: 65vh;
  width: min(100%, 65vh); width: min(100%, 65svh);
  height: auto;
  margin-top: -50px;
  animation: title-arrive 2s 1.05s ease-out both;
}
.track-title { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; min-height: 100px; min-height: clamp(90px, 15vh, 140px); min-height: clamp(90px, 15svh, 140px); margin-top: 18px; }
.track-title-text { min-width: 0; margin: 0; font-family: 'Optima', 'Avenir Next', 'Segoe UI', sans-serif; font-size: 1.4rem; font-size: clamp(1.125rem, 2.1vw, 1.625rem); font-weight: 400; line-height: 1.7; letter-spacing: .23em; text-indent: .23em; text-align: center; text-transform: uppercase; text-wrap: balance; color: #f8d28c; background: linear-gradient(180deg, #fff0c7 15%, #e9b965 44%, #966124 53%, #f6d291 66%, #cb9349 95%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 7px rgba(237, 155, 37, 0.271)) drop-shadow(0 1px 1px #5e310b); }
.title-ray { flex: 0 0 70px; flex: 0 0 clamp(32px, 7vw, 100px); height: 25px; aspect-ratio: 4 / 1; background: url('./assets/title-ray.svg') center / contain no-repeat; pointer-events: none; }
.title-ray:first-child { margin-right: 20px; margin-right: clamp(12px, 2vw, 24px); }
.title-ray:last-child { margin-left: 20px; margin-left: clamp(12px, 2vw, 24px); transform: rotate(180deg); }
.has-navigated .emblem-entrance { animation: none; }
.has-navigated .wordmark { animation: none; }
.opening-stage { position: relative; flex: 0 0 auto; width: 100%; height: 190px; margin-top: 8px; }
.intro:not([data-scene="0"]) .opening-stage { display: none; }
.opening-stage .wordmark { position: absolute; top: 50%; left: 50%; max-height: 100%; object-fit: contain; margin: 0; transform: translate(-50%, -50%); animation: opening-mark-arrive 2s 1.05s ease-out both; }
.has-navigated .opening-stage .wordmark { animation: none; }
.opening-stage .opening-copy { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: 100%; min-height: 0; margin: 0; }
.opening-stage .opening-message { min-height: 0; padding: 0 8px; }
.opening-stage .intro-countdown { position: static; width: 100%; height: 100%; }
@keyframes opening-mark-arrive { from { opacity: 0; } to { opacity: 1; } }
.opening-copy { width: 100%; min-height: 150px; display: flex; flex-direction: column; justify-content: center; margin-top: 12px; text-align: center; }
.opening-message { margin: 0 auto; max-width: 610px; min-height: 100px; display: flex; align-items: center; justify-content: center; white-space: pre-line; font-family: 'Optima', 'Avenir Next', 'Segoe UI', sans-serif; font-size: 1.4rem; font-size: clamp(1.125rem, 2.15vw, 1.7rem); font-weight: 400; line-height: 1.8; letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; color: #f4d59a; text-shadow: 0 0 22px rgba(183, 125, 48, 0.251); }
.opening-count-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.intro-countdown { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Optima', 'Avenir Next', sans-serif; font-size: 4rem; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 300; font-variant-numeric: tabular-nums; color: #fff4d5; text-shadow: 0 2px 8px #110700, 0 0 25px #6b3506, 0 0 50px #ffa726; }
.intro-actions { position: absolute; bottom: 35px; bottom: max(35px, calc(env(safe-area-inset-bottom) + 24px)); left: 0; right: 0; display: flex; justify-content: center; z-index: 3; }
.intro-start { min-width: 150px; min-height: 48px; padding: 13px 30px; border: 1px solid rgba(196, 148, 78, 0.439); border-radius: 3px; color: #f7d7a0; background: rgba(14, 9, 4, 0.651); font: inherit; font-size: 14px; letter-spacing: .32em; text-indent: .32em; cursor: pointer; transition: border-color .3s, box-shadow .3s, background .3s; }
.intro-start:hover { border-color: #ffd48b; background: rgba(57, 35, 8, 0.651); box-shadow: 0 0 30px rgba(207, 134, 31, 0.157); }
.intro-start:focus-visible { outline: 2px solid #f5cd85; outline-offset: 5px; }
.intro-actions { flex-direction: column; align-items: center; }
.intro-audio-status { max-width: 420px; margin: 9px 12px 0; color: #d0b78e; font-size: 14px; line-height: 1.4; text-align: center; }
.intro-audio-status:empty { display: none; }
.opening-stage .intro-countdown { font-size: 3rem; font-size: clamp(2rem, 5vw, 4rem); }
.intro:not([data-scene="0"]) .intro-actions { display: none; }
.intro[data-scene="0"] { padding-bottom: 115px; }
.intro[data-scene="0"] .emblem-entrance { width: 36vw; max-width: 40vh; width: min(40vh, 36vw, 420px, max(130px, calc(100vh - 430px))); width: min(40svh, 36vw, 420px, max(130px, calc(100svh - 430px))); }
@keyframes cosmos-arrive { from { opacity: 0; } to { opacity: .76; } }
@keyframes cosmic-drift { from { transform: scale(1) translate3d(var(--sky-x, 0px), var(--sky-y, 0px), 0); } to { transform: scale(1.06) translate3d(calc(var(--sky-x, 0px) - .6%), calc(var(--sky-y, 0px) + .4%), 0); } }
@keyframes emblem-arrive { from { opacity: 0; transform: scale(.93); filter: blur(9px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes title-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes light-breathe { 0%, 100% { filter: brightness(.96); } 50% { filter: brightness(1.13) drop-shadow(0 0 18px rgba(239, 150, 14, 0.149)); } }
@keyframes emblem-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 600px) {
  .opening-stage .intro-countdown { font-size: 2rem; }
  .opening-stage { height: 180px; }
  .intro-actions { left: 82px; right: 12px; }
  .intro[data-scene="0"] { padding-bottom: 110px; }
  .intro[data-scene="0"] .emblem-entrance { width: min(100%, 35vh); width: min(100%, 35svh); }
  .opening-copy { min-height: 180px; margin-top: 8px; }
  .opening-message { min-height: 150px; font-size: 1.1rem; font-size: clamp(1rem, 3.5vw, 1.2rem); line-height: 1.8; letter-spacing: .09em; }
  .intro-countdown { font-size: 3.2rem; }
  .music-player { left: 82px; right: 12px; width: auto; max-width: none; transform: none; gap: 0 12px; }
  .intro.has-audio { padding-bottom: 150px; }
  .intro.has-audio .emblem-entrance { width: min(100%, 33vh); width: min(100%, 33svh); }
  .intro { padding: 35px 12px 55px 82px; }
  .timeline { display: flex; flex-direction: column; width: 64px; left: 10px; left: max(10px, env(safe-area-inset-left)); top: 16px; top: max(16px, env(safe-area-inset-top)); bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; }
  .timeline-heading { display: none; }
  .timeline-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
  .timeline-track { width: 64px; min-width: 0; height: 100%; min-height: 528px; margin: 0; }
  .liquid-rail { top: 0; width: 36px; height: 100%; }
  .track-buttons { flex-direction: column; grid-template-columns: 1fr; grid-template-rows: repeat(12, minmax(44px, 1fr)); height: 100%; }
  .track-button { padding: 0; }
  .timeline-start-label, .timeline-label { max-width: 180px; max-width: min(180px, calc(100vw - 72px)); text-align: left; text-wrap: pretty; padding: 5px 8px; }
  .brand { width: 100%; }
  .emblem-entrance { width: min(100%, 43vh); width: min(100%, 43svh); }
  .wordmark { width: 100%; margin-top: -20px; }
  .track-title { gap: 0; margin-top: 12px; min-height: 115px; }
  .track-title-text { font-size: 1.1rem; font-size: clamp(1rem, 3.8vw, 1.3rem); letter-spacing: .16em; text-indent: .16em; }
  .title-ray { flex-basis: 28px; height: 7px; }
  .title-ray:first-child { margin-right: 10px; }
  .title-ray:last-child { margin-left: 10px; }
  .cosmos { background-position: 54% center; opacity: .65; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .opening-stage { height: 100px; }
  .opening-stage .wordmark { max-width: 250px; }
  .intro[data-scene="0"] { padding-bottom: 85px; }
  .intro[data-scene="0"] .emblem-entrance { width: 32vh; width: 32svh; }
  .opening-copy, .opening-message { min-height: 65px; }
  .opening-message { font-size: 1rem; }
  .intro-actions { bottom: 20px; }
  .intro.has-audio { padding-bottom: 125px; }
  .intro.has-audio .emblem-entrance { width: 30vh; width: 30svh; }
  .intro.has-audio .track-title { min-height: 55px; }
  .music-player { bottom: 46px; }
  .intro { padding-top: 105px; padding-bottom: 35px; }
  .timeline { top: 15px; }
  .timeline-heading { display: none; }
  .brand { width: 65vw; max-width: 570px; width: min(65vw, 570px); padding: 10px 0; }
  .emblem-entrance { width: 42vh; width: 42svh; }
  .wordmark { width: 65%; width: min(65%, 70vh); width: min(65%, 70svh); margin-top: -35px; }
  .track-title { min-height: 65px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .audio-spectrum { display: none; }
  .nebula-light { display: none; }
  *, *::before, *::after { animation: none !important; }
  .brand { transform: none; will-change: auto; }
  .stardust { display: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* TV browsers before modern layout APIs retain the same scene structure. */
@supports not (display: grid) {
  .music-player .track-progress { margin-left: 18px; }
  @media (max-width: 600px) { .music-player .track-progress { margin-left: 12px; } }
}
@supports not (width: min(1px, 2px)) {
  @media (max-width: 600px) {
    .intro .emblem-entrance { width: 100%; max-width: 33vh; }
  }
}
.is-tv .track-button:focus, .is-tv .intro-start:focus, .is-tv .play-toggle:focus, .is-tv .track-seek:focus { outline: 2px solid #f5cd85; outline-offset: -3px; }

/* Avoid filtered/composited image and text layers on Samsung TV GPUs. */
.is-tv .brand {
  position: relative;
  z-index: 1;
  transform: translate(0, 0);
  will-change: auto;
  filter: none;
  -webkit-filter: none;
}
.is-tv .intro .emblem-entrance {
  flex: 0 0 auto;
  width: 38vh;
  max-width: 420px;
  opacity: 1;
  animation: none;
  transition: none;
  filter: none;
  -webkit-filter: none;
}
.is-tv .emblem {
  opacity: 1;
  filter: none;
  -webkit-filter: none;
  animation: none;
}
.is-tv .wordmark {
  opacity: 1;
  filter: none;
  -webkit-filter: none;
  animation: none;
}
.is-tv .opening-stage .wordmark { animation: none; }
.is-tv .track-title-text {
  color: #f8d28c;
  -webkit-text-fill-color: #f8d28c;
  background: none;
  filter: none;
  -webkit-filter: none;
  text-shadow: 0 1px 2px #080502;
}
.is-tv .rail-nodes circle, .is-tv .mask-nodes circle { transition: none; }
@media (max-height: 500px) {
  .is-tv .intro .emblem-entrance { width: 30vh; }
}
.is-tv *, .is-tv *::before, .is-tv *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.is-tv .stardust { display: none; }
.is-tv .audio-spectrum { display: none; }
