:root {
  --void: #04050a;
  --ice: #94bfff;
  --pearl: #e8ecf4;
  --muted: #9aa5b6;
  --ember: #e5aa79;
  --line: rgba(177, 204, 243, 0.17);
  --display: 'Helvetica Neue', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--pearl);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 5px;
}
button {
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}
.remote-focus :focus {
  outline: 2px solid var(--ice) !important;
  outline-offset: 5px;
}
.small-note a {
  color: var(--ice);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.script-notice {
  position: fixed;
  inset: 30% 10% auto;
  z-index: 30;
  padding: 30px;
  background: var(--void);
}
button:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 34%,
    rgba(4, 5, 10, 0.38) 100%
  );
  z-index: 2;
}
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
#cut,
#flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}
#cut {
  background: #000;
}
#flash {
  background: #dbe9ff;
}
.masthead {
  position: fixed;
  z-index: 12;
  left: clamp(24px, 4vw, 64px);
  right: clamp(24px, 4vw, 64px);
  top: max(28px, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
}
.masthead > span:first-child {
  letter-spacing: 0.5em;
}
#dimension-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  transition: color 1s;
}
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: clamp(28px, 6vw, 96px);
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(4, 5, 10, 0.8),
    rgba(4, 5, 10, 0.28) 52%,
    transparent
  );
  transition:
    opacity 1.3s,
    visibility 1.3s;
}
.gate.departed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate-copy {
  margin-top: 20px;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 0.3em;
  color: var(--ice);
  margin: 0 0 26px;
}
h1 {
  font-size: clamp(64px, 10vw, 142px);
  font-weight: 200;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0 0 30px;
}
h1 > span {
  font-weight: 200;
  letter-spacing: -0.05em;
  color: #ccd7e7;
}
.intro {
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 38px;
}
.enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 19px 25px;
  border: 1px solid rgba(164, 198, 242, 0.35);
  border-radius: 3px;
  background: rgba(103, 145, 204, 0.08);
  font-size: 12px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(16px);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.enter:hover {
  border-color: var(--ice);
  background: rgba(103, 145, 204, 0.17);
  box-shadow: 0 0 38px #94bfff10;
}
.enter > span:last-child {
  font-size: 21px;
  color: var(--ice);
}
.gate-foot {
  position: absolute;
  bottom: max(35px, env(safe-area-inset-bottom));
  left: clamp(28px, 6vw, 96px);
  right: clamp(28px, 6vw, 96px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 0.16em;
}
.gate-foot i {
  font-style: normal;
  padding: 0 10px;
  color: var(--ice);
}
.status {
  font-size: 12px;
  color: var(--ember);
  line-height: 1.6;
  max-width: 420px;
  margin: 14px 0 0;
}
.status:empty {
  display: none;
}
.transport {
  position: fixed;
  z-index: 12;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 64px));
  padding: 18px 22px 12px;
  background: linear-gradient(135deg, #0b111ccd, #080c15a6);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(24px);
  box-shadow: 0 10px 50px #0006;
  transition:
    opacity 0.6s,
    border-color 0.3s;
}
.controls-idle .transport {
  opacity: 0.22;
}
.transport:hover,
.transport:focus-within {
  opacity: 1;
}
.chapter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.chapter-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.025em;
  text-align: left;
}
.chapter-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px #94bfff80;
}
.chapter-more {
  color: var(--muted);
  padding-left: 4px;
}
#clock {
  font: 10px var(--mono);
  white-space: nowrap;
  color: var(--pearl);
}
#clock > span {
  color: var(--muted);
  margin-left: 5px;
}
input[type='range'] {
  accent-color: var(--ice);
  cursor: pointer;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
}
.timeline {
  appearance: none;
}
.timeline::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--ice) var(--progress, 0%),
    #8b9bb137 var(--progress, 0%)
  );
}
.timeline::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 10px #94bfff80;
}
.timeline::-moz-range-track {
  height: 2px;
  background: #8b9bb137;
}
.timeline::-moz-range-progress {
  height: 2px;
  background: var(--ice);
}
.timeline::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--pearl);
}
.actions,
.action-group {
  display: flex;
  align-items: center;
}
.actions {
  justify-content: space-between;
  gap: 10px;
}
.action-group {
  gap: 17px;
}
.actions button,
.lens-options button,
.text-button {
  border: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 11px;
  color: var(--muted);
}
.actions button:hover,
.text-button:hover {
  color: var(--pearl);
}
.actions button > span {
  color: var(--ice);
  margin-left: 4px;
}
.actions #toggle-play {
  color: var(--pearl);
  min-width: 34px;
  text-align: left;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.endtitle {
  position: fixed;
  z-index: 11;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse, rgba(4, 5, 10, 0.4), transparent 60%);
  text-align: center;
}
.endtitle h2 {
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 200;
  letter-spacing: -0.04em;
  margin: 0 0 30px;
}
.endtitle > p:not(.eyebrow) {
  font: 9px var(--mono);
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 0 20px;
}
.endtitle button {
  margin-top: 20px;
  color: var(--ice);
}
dialog {
  position: fixed;
  left: auto;
  right: 32px;
  top: auto;
  bottom: 180px;
  margin: 0;
  width: min(420px, calc(100% - 40px));
  max-height: min(620px, 70dvh);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a101ce8;
  color: var(--pearl);
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #0004;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 12px;
}
.dialog-heading h2 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.close {
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--muted);
  padding: 0 2px;
}
.dialog-copy {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 26px;
}
.chapter-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 14px 0;
  font-size: 12px;
}
.chapter-item small {
  display: block;
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.chapter-item time {
  font: 10px var(--mono);
  color: var(--muted);
}
.chapter-item:hover,
.chapter-item[aria-current='true'] {
  color: var(--ice);
}
.lens-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 22px;
}
.lens-label b {
  font: 11px var(--mono);
  color: var(--ice);
  margin-left: 8px;
}
.lens-label output {
  font: 10px var(--mono);
  color: var(--muted);
}
.small-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 6px 0 0;
}
.lens-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin: 24px 0 15px;
  padding-top: 12px;
}
.lens-options button[aria-pressed='true'] {
  color: var(--ice);
}
@media (max-width: 600px) {
  .masthead {
    top: max(23px, env(safe-area-inset-top));
    font-size: 8px;
  }
  #dimension-label {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .gate {
    align-items: flex-end;
    padding-bottom: 155px;
    background: linear-gradient(0deg, #04050aec, transparent 95%);
  }
  h1 {
    font-size: 76px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.19em;
  }
  .intro {
    font-size: 14px;
    margin-bottom: 26px;
  }
  .gate-foot {
    font-size: 8px;
    letter-spacing: 0.06em;
    bottom: max(35px, env(safe-area-inset-bottom));
  }
  .enter {
    padding: 15px 21px;
    width: 235px;
  }
  .transport {
    width: calc(100% - 28px);
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 14px 15px 8px;
  }
  .actions button {
    font-size: 10px;
  }
  .action-group {
    gap: 14px;
  }
  #fullscreen {
    font-size: 0;
  }
  #fullscreen span {
    font-size: 17px;
  }
  .chapter-button {
    font-size: 11px;
  }
  .chapter-more {
    display: none;
  }
  .controls-idle .transport {
    opacity: 0.45;
  }
  dialog {
    right: 20px;
    bottom: 170px;
    padding: 23px;
  }
  .masthead > span:first-child {
    letter-spacing: 0.23em;
  }
}
@media (max-height: 550px) and (min-width: 600px) {
  .gate {
    padding-top: 60px;
  }
  .gate-copy {
    margin: 0;
  }
  h1 {
    font-size: 70px;
    margin-bottom: 14px;
  }
  .intro {
    margin-bottom: 14px;
    font-size: 13px;
  }
  .eyebrow {
    margin-bottom: 12px;
  }
  .gate-foot {
    bottom: 18px;
  }
  .enter {
    padding: 12px 20px;
  }
  .transport {
    bottom: 10px;
    padding: 10px 20px 4px;
  }
  dialog {
    bottom: 130px;
    max-height: calc(100dvh - 160px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .controls-idle .transport {
    opacity: 1;
  }
}
@media (min-width: 1800px) and (min-height: 900px) {
  .masthead {
    top: 5vh;
    left: 5vw;
    right: 5vw;
    font-size: 16px;
  }
  #dimension-label {
    font-size: 14px;
  }
  .transport {
    width: min(1100px, 80vw);
    bottom: 5vh;
    padding: 24px 32px;
  }
  .chapter-button,
  .actions button {
    font-size: 18px;
  }
  #clock {
    font-size: 16px;
  }
  .action-group {
    gap: 30px;
  }
  dialog {
    right: 6vw;
    bottom: calc(5vh + 200px);
    width: 520px;
    max-height: 65vh;
  }
  .chapter-item,
  .dialog-copy,
  .lens-label,
  .lens-options button {
    font-size: 17px;
  }
  .chapter-item small,
  .chapter-item time,
  .small-note {
    font-size: 14px;
  }
  .enter {
    font-size: 18px;
  }
  .gate-foot,
  .eyebrow {
    font-size: 13px;
  }
}
@media (min-width: 3000px) and (min-height: 1600px) {
  .masthead {
    font-size: 28px;
  }
  #dimension-label {
    font-size: 24px;
  }
  h1 {
    font-size: 250px;
  }
  .intro {
    font-size: 32px;
  }
  .enter {
    font-size: 28px;
    padding: 30px 40px;
    gap: 100px;
  }
  .gate-foot,
  .eyebrow {
    font-size: 22px;
  }
  .transport {
    width: min(2000px, 80vw);
    padding: 32px 45px;
  }
  .transport button,
  dialog button {
    min-height: 76px;
  }
  .chapter-button,
  .actions button {
    font-size: 30px;
  }
  #clock {
    font-size: 28px;
  }
  input[type='range'] {
    height: 64px;
  }
  .action-group {
    gap: 55px;
  }
  dialog {
    width: 900px;
    bottom: calc(5vh + 320px);
    padding: 48px;
  }
  .dialog-heading h2 {
    font-size: 46px;
  }
  .chapter-item,
  .dialog-copy,
  .lens-label,
  .lens-options button {
    font-size: 28px;
  }
  .chapter-item small,
  .chapter-item time,
  .small-note {
    font-size: 23px;
  }
  .dialog-heading .eyebrow {
    font-size: 18px;
  }
  .lens-label output {
    font-size: 22px;
  }
  .endtitle h2 {
    font-size: 180px;
  }
  .endtitle > p:not(.eyebrow),
  .endtitle button {
    font-size: 25px;
  }
}
