/* Netflix, No Chill. Tokens, base, surfaces, sections, motion. */

:root {
  --navy-0: #070e17;
  --navy-1: #0b141e;
  --yellow: #ffe81f;
  --blue: #4bd5ee;
  --holo: #9be9f7;
  --text: #d9e2ee;
  --text-2: rgba(217, 226, 238, 0.62);
  --line: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.35);
  --reject: #ffb38a;
  --display: 'Archivo Black', 'Helvetica Neue', Helvetica, 'Arial Black', Arial, sans-serif;
  font-synthesis: none;
  --display-weight: 900;
  --ui: 'Outfit', system-ui, sans-serif;
  --fs-xs: 13px;
  --fs-body: 17px;
  --fs-h: 22px;
  --fs-big: 40px;
  --fs-huge: 72px;
  --section-pad: 96px 20px;
}

@media (min-width: 900px) {
  :root {
    --fs-h: 32px;
    --fs-big: 56px;
    --fs-huge: 96px;
    --section-pad: 140px 24px;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--navy-0);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy-0);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy-0);
  border-radius: 999px;
  font-size: var(--fs-xs);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }
html.is-locked .skip-link { pointer-events: none; visibility: hidden; }

/* Surfaces */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #e6eef5;
  font-family: var(--ui);
  font-weight: 400;
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.2;
  transition: background 200ms ease;
}
.pill:hover { background: rgba(255, 255, 255, 0.14); }

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  font-family: var(--ui);
  font-size: var(--fs-body);
  text-decoration: none;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy-0);
  font-weight: 500;
  transition: transform 200ms ease;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #e6eef5;
  font-weight: 400;
}

input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--navy-1);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 400;
  font-size: var(--fs-body);
}

/* Sky */

.sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sky canvas,
#nebula {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
}
.sky canvas { width: 100%; }
#sky-near { animation: twinkle 6s ease-in-out infinite alternate; }
#nebula {
  width: 60vw;
  min-width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 213, 238, 0.06) 0%, rgba(75, 213, 238, 0) 70%);
  left: auto;
  right: -40vw;
  top: calc(30svh - 30vw);
}
@keyframes twinkle {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

/* Gate */

#gate {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  z-index: 50;
  background: var(--navy-0);
  display: grid;
  place-items: center;
  padding: 20px;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease;
}
#gate.is-open { transform: translateY(-100%); }
.gate-inner {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.gate-line {
  font-weight: 300;
  font-size: var(--fs-body);
  color: var(--blue);
}
#gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.key-wrap {
  position: relative;
  width: 100%;
}
.key-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1ch;
  height: 1.1em;
  transform: translate(-50%, -50%);
  border-left: 2px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}
.key-wrap.is-empty-focused::after {
  animation: caret 1s steps(2, start) infinite;
}
@keyframes caret {
  from { opacity: 1; }
  to { opacity: 0; }
}
#key {
  letter-spacing: 0.3em;
  text-align: center;
  transition: border-color 600ms ease, letter-spacing 600ms ease, color 600ms ease;
}
#key.is-miss { animation: shake 260ms ease; }
#key.is-correct {
  border-color: var(--yellow);
  letter-spacing: 0.4em;
  color: transparent;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
#gate-msg {
  min-height: 20px;
  font-size: var(--fs-xs);
  color: var(--reject);
}
#gate-hint {
  font-size: var(--fs-xs);
  color: var(--text-2);
  opacity: 0;
  transition: opacity 600ms ease;
}
#gate-hint.is-shown { opacity: 1; }

/* Overture */

#overture {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  z-index: 40;
  display: none;
  place-items: center;
  overflow: clip;
  pointer-events: none;
  transition: opacity 400ms ease;
}
#overture.is-running { display: grid; }
#overture.is-ending { opacity: 0; }
#intro-line {
  grid-area: 1 / 1;
  max-width: 30ch;
  padding: 0 20px;
  text-align: center;
  font-weight: 300;
  font-size: 18px;
  color: var(--blue);
  opacity: 0;
}
#intro-line.is-playing { animation: intro 2.6s ease forwards; }
@keyframes intro {
  0% { opacity: 0; }
  31% { opacity: 1; }
  69% { opacity: 1; }
  100% { opacity: 0; }
}
#title-card {
  grid-area: 1 / 1;
  width: 92vw;
  max-width: 720px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  font-size: clamp(40px, 12vw, 96px);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-align: center;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 232, 31, 0.22);
  transform-origin: 50% 50%;
  will-change: transform;
  opacity: 0;
}
#title-card.is-playing { animation: title-recede 5s ease-in forwards; }
@keyframes title-recede {
  0% { transform: scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: scale(0.12); opacity: 0; }
}
#skip-intro {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  pointer-events: auto;
}
@media (min-width: 900px) {
  #intro-line { font-size: 24px; }
}

/* Dock */

#dock {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  opacity: 0;
  transition: opacity 400ms ease;
}
#dock.is-shown { display: block; }
#dock.is-visible { opacity: 1; }
#dock .pill { padding: 6px; gap: 4px; }
#dock a,
#dock button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #e6eef5;
  text-decoration: none;
  transition: background 200ms ease;
}
#dock a.is-active { background: rgba(255, 255, 255, 0.12); }
#dock button[aria-disabled="true"] { color: var(--text-2); cursor: default; }
@media (min-width: 900px) {
  #dock { top: auto; bottom: 20px; }
}

/* Main and sections */

main { position: relative; z-index: 1; }
main:focus { outline: none; }

section {
  position: relative;
  padding: var(--section-pad);
  border-top: 1px solid var(--line);
}
section:first-child { border-top: 0; }
.col {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: var(--fs-h);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

/* Crawl */

#crawl {
  padding: 0;
  min-height: 260vh;
  min-height: 260svh;
  border-top: 0;
}
.crawl-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  perspective: 900px;
  perspective-origin: 50% 100%;
  display: flex;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%);
  opacity: 0;
  transition: opacity 600ms ease;
}
.crawl-stage.no-mask { -webkit-mask-image: none; mask-image: none; }
.crawl-stage.is-visible { opacity: 1; }
.crawl {
  position: absolute;
  bottom: 0;
  width: min(94vw, 900px);
  padding: 0 4px;
  transform-origin: 50% 100%;
  transform: rotateX(20deg) translateY(calc((70 - 110 * var(--p, 0)) * 1svh));
  will-change: transform;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: normal;
  font-size: clamp(34px, 6.5vw, 58px);
  line-height: 1.3;
  color: var(--yellow);
  text-align: justify;
  -webkit-hyphens: none;
  hyphens: none;
}
.crawl p { margin-bottom: 1em; }
.crawl-ep {
  font-weight: var(--display-weight);
  font-size: clamp(20px, 3.5vw, 30px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}
.crawl-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 11vw, 84px);
  text-align: center;
  color: var(--yellow);
  margin-bottom: 40px;
  line-height: 1.15;
}
@media (max-width: 600px) {
  .crawl-stage { perspective: 700px; }
  .crawl { text-align: left; font-size: 20px; }
}
@media (min-width: 900px) {
    #descend { bottom: 84px; }
}
#descend {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}
#descend.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 600ms ease, visibility 0s; }
#descend .chev {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1px solid #e6eef5;
  border-bottom: 1px solid #e6eef5;
  transform: translateY(-2px) rotate(45deg);
}

/* Stillness */

#still {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 96px 20px;
  background: rgba(11, 20, 30, 0.6);
}
.still-a {
  font-weight: 300;
  font-size: var(--fs-big);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f3f6fb;
  max-width: 14ch;
  text-wrap: balance;
}
.still-b {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: var(--fs-h);
  line-height: 1.4;
  color: var(--text);
  margin-top: 48px;
  max-width: 24ch;
}
.still-c {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.12em;
  margin-top: 16px;
}
.still-a, .still-b, .still-c {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}
#still.is-seen .still-a { opacity: 1; transform: none; }
#still.is-seen .still-b { opacity: 1; transform: none; transition-delay: 700ms; }
#still.is-seen .still-c { opacity: 1; transform: none; transition-delay: 1100ms; }
@media (min-width: 900px) {
  .still-a { font-size: var(--fs-huge); }
}

/* Tap targets */

.star-target {
  position: absolute;
  width: 44px; height: 44px;
  left: 14%;
  top: 22%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.star-target::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #f3f6fb;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}
.star-target::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)) center / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)) center / 100% 1px no-repeat;
  pointer-events: none;
}
.star-target-tiny {
  position: relative;
  left: auto; top: auto;
  display: inline-grid;
  vertical-align: middle;
  width: 24px; height: 24px;
  padding: 10px;
  box-sizing: content-box;
  margin: 0 -18px 0 -18px;
}
.star-target-tiny::before { width: 3px; height: 3px; box-shadow: none; transform: translateY(4px); }
.star-target-tiny::after { display: none; }
.text-target {
  color: inherit;
  cursor: default;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Plan */

.plan-col { max-width: 760px; }
.readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 56px;
  border-top: 1px solid rgba(255, 232, 31, 0.35);
  border-bottom: 1px solid rgba(255, 232, 31, 0.35);
}
.readout > div { padding: 14px 0; }
.readout > div + div { border-left: 1px solid rgba(255, 232, 31, 0.2); padding-left: 16px; }
.readout dt { font-family: var(--ui); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.readout dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--yellow);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.route {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
  display: grid;
  gap: 20px;
}
.route::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed rgba(255, 232, 31, 0.5);
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}
#plan.is-seen .route::before { transform: scaleY(1); }
.stop {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 28px 28px 30px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(32px) translateX(calc(var(--i) * 24px));
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(300ms + var(--i) * 260ms);
}
#plan.is-seen .stop { opacity: 1; transform: translateX(calc(var(--i) * 24px)); }
.stop:hover { transform: translateX(calc(var(--i) * 24px)) translateY(-3px); }
.stop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, var(--tint) 0%, transparent 60%);
}
.stop::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 38px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  transform: rotate(45deg);
  box-shadow: 0 0 0 5px var(--navy-1), 0 0 18px rgba(255, 232, 31, 0.6);
}
.stop-theater { --tint: rgba(75, 213, 238, 0.22); }
.stop-sababa { --tint: rgba(255, 232, 31, 0.18); }
.stop-cabin { --tint: rgba(155, 233, 247, 0.16); }
.stop-num {
  position: absolute;
  right: 14px;
  top: -22px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 150px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}
.stop-when {
  display: inline-block;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--blue);
}
.stop-name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}
.stop-name a { color: inherit; text-decoration: none; border-bottom: 3px solid rgba(255, 232, 31, 0.35); }
.stop-name a:hover, .stop-name a:focus-visible { border-bottom-color: var(--yellow); outline: none; }
.stop p { max-width: 40ch; color: var(--text); }
@media (max-width: 640px) {
  .route { padding-left: 22px; }
  .stop { padding: 22px 20px 24px; transform: translateY(32px); }
  #plan.is-seen .stop, .stop:hover { transform: none; }
  .stop::after { left: -22px; }
  .stop-num { font-size: 110px; top: -14px; }
  .readout > div + div { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .route::before, .stop { transition: none; transform: none; opacity: 1; }
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: var(--fs-xs);
  color: var(--text);
}
.status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

/* Reply */

#rsvp {
  min-height: 80vh;
  min-height: 80svh;
  background: rgba(11, 20, 30, 0.6);
  overflow: hidden;
  padding-bottom: 160px;
}
@media (min-width: 900px) {
  #rsvp { padding-bottom: 140px; }
}
.sub { color: var(--text-2); margin-top: -16px; margin-bottom: 32px; }
.field-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-2);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.field-msg {
  min-height: 20px;
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--reject);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
#no {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
#no.is-hidden { visibility: hidden; }
#no.is-nudged { animation: nudge 160ms ease; }
@keyframes nudge {
  50% { opacity: 0.7; }
}
#no-note {
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--text-2);
  min-height: 20px;
}

.success {
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: settle 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes settle {
  from { transform: scale(1.15); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success .stamp {
  position: absolute;
  right: -10px;
  top: 12px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 72px;
  color: var(--yellow);
  opacity: 0.08;
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.success h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 22px;
  margin-bottom: 12px;
}
.success h3:focus { outline: none; }
.success .signed {
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.success .btn-row { margin-top: 24px; }
.reply-text {
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--text-2);
  word-break: break-word;
}

/* Footer */

footer {
  position: relative;
  z-index: 1;
  padding: 48px 20px calc(64px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: var(--fs-xs);
  text-transform: lowercase;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

/* Holograms */

dialog.holo {
  width: 88vw;
  max-width: 460px;
  margin: auto;
  padding: 28px 24px;
  border: 1px solid rgba(75, 213, 238, 0.55);
  border-radius: 16px;
  background: rgba(75, 213, 238, 0.06);
  color: var(--holo);
  font-family: var(--ui);
  font-size: var(--fs-body);
  box-shadow: 0 0 0 1px rgba(75, 213, 238, 0.15), 0 0 24px rgba(75, 213, 238, 0.12);
  overflow: hidden;
  opacity: 0;
}
dialog.holo::backdrop { background: rgba(7, 14, 23, 0.86); }
dialog.holo[open] { animation: holo-in 400ms ease forwards; }
dialog.holo.is-closing { animation: holo-out 200ms ease forwards; }
@keyframes holo-in {
  0% { opacity: 0; }
  33% { opacity: 0.8; }
  66% { opacity: 0.3; }
  100% { opacity: 1; }
}
@keyframes holo-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
dialog.holo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}
dialog.holo > * { position: relative; }
dialog.holo .scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) 0 0 / 100% 2px no-repeat;
  transform: translateY(-2px);
  will-change: transform;
  animation: sweep 3s linear infinite;
}
@keyframes sweep {
  from { transform: translateY(-2px); }
  to { transform: translateY(100%); }
}
dialog.holo h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 22px;
  color: var(--holo);
  margin-bottom: 16px;
}
dialog.holo p + p { margin-top: 12px; }
dialog.holo .holo-foot {
  margin-top: 20px;
  font-size: var(--fs-xs);
  color: rgba(155, 233, 247, 0.7);
}
dialog.holo .holo-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
dialog.holo dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
dialog.holo dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(155, 233, 247, 0.7);
}
dialog.holo dd {
  margin: 2px 0 0;
  font-size: 16px;
  color: #f3f6fb;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #sky-near { animation: none; }
  .key-wrap.is-empty-focused::after { animation: none; opacity: 1; }
  #key.is-miss { animation: none; }
  #gate { transition: opacity 300ms ease !important; }
  #gate.is-open { transform: none; opacity: 0; }
  #intro-line.is-playing { animation: none; opacity: 1; }
  #title-card.is-playing { animation: title-fade 2.8s ease forwards !important; animation-duration: 2.8s !important; }
  @keyframes title-fade {
    0% { opacity: 0; }
    21% { opacity: 1; }
    79% { opacity: 1; }
    100% { opacity: 0; }
  }
  #overture { transition: opacity 300ms ease !important; }
  #crawl { min-height: auto; padding: var(--section-pad); }
  .crawl-stage {
    position: static;
    height: auto;
    perspective: none;
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
    opacity: 1;
    transition: none;
  }
  .crawl {
    position: static;
    transform: none;
    will-change: auto;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 900ms ease !important;
  }
  .crawl.is-seen { opacity: 1; }
  #descend { display: none; }
  .still-a, .still-b, .still-c {
    transform: none;
    transition: opacity 300ms ease !important;
  }
  #no { transition: none; }
  .success { animation: settle-fade 300ms ease both !important; animation-duration: 300ms !important; }
  @keyframes settle-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  dialog.holo[open] { animation: settle-fade 200ms ease forwards !important; animation-duration: 200ms !important; }
  dialog.holo.is-closing { animation: holo-out 200ms ease forwards !important; animation-duration: 200ms !important; }
  dialog.holo .scan { animation: none; transform: translateY(-2px); }
  #dock { transition: opacity 300ms ease !important; }
}
