:root {
  --origin-ink: #050f1c;
  --origin-text: #f3fbfa;
  --origin-accent: #a5edf3;
  --masthead-height: clamp(68px, 7vw, 82px);
}

.site-header {
  height: var(--masthead-height);
  background: #f4f3ee;
  color: var(--ink);
  border-color: #d7dcd9;
  box-shadow: 0 0 0 100vmax #f4f3ee;
}

.site-header nav a:hover {
  color: #086a7d;
}

.arrow-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.closing .arrow-icon {
  transition: transform .2s;
}

.closing a:hover .arrow-icon {
  transform: translate(3px, 3px);
}

.origin {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(500px, calc(88svh - var(--masthead-height)), 760px);
  overflow: hidden;
  background: var(--origin-ink);
  color: var(--origin-text);
}

.origin-art,
.origin::before,
.splash-media,
.splash-media::after,
.splash-still,
.splash-film {
  position: absolute;
  inset: 0;
}

.origin-art,
.splash-still,
.splash-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-art {
  z-index: -2;
  object-position: center 47%;
}

.origin::before {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #050f1cf7, #050f1cc7 27%, #050f1c52 50%, transparent 72%),
    linear-gradient(0deg, #050f1c 0%, transparent 27%, transparent 89%, #050f1c62);
}

.origin-inner {
  padding-block: 65px;
}

.origin-kicker,
.splash-kicker {
  margin: 0 0 18px;
  color: var(--origin-accent);
  font-size: 10px;
  letter-spacing: .16em;
}

.origin h1,
.splash-caption > p:last-child {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.origin h1 {
  max-width: 55%;
  font-size: clamp(62px, 7.2vw, 115px);
  line-height: .94;
}

.origin h1 em {
  color: var(--origin-accent);
  font-family: Georgia, serif;
  font-weight: 400;
}

.origin-description {
  max-width: 30ch;
  margin: 24px 0 0;
  color: #d1e1e7;
  font-size: clamp(14px, 1.32vw, 18px);
  line-height: 1.6;
}

.origin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 22px;
}

.origin-explore,
.origin-replay {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0;
  border: 0;
  font: 650 13px/1 'DM Sans', Arial, sans-serif;
  color: inherit;
  background: none;
}

.origin-explore {
  border-radius: 30px;
  padding-inline: 17px;
  background: var(--origin-accent);
  color: var(--origin-ink);
  transition: background-color .2s;
}

.origin-explore:hover {
  background: white;
}

.origin-replay {
  cursor: pointer;
  transition: color .2s;
}

.origin-replay {
  font-size: 12px;
  color: #cddfe6;
}

.origin-replay[hidden] {
  display: none;
}

.origin-replay:hover {
  color: var(--origin-accent);
}

:is(.origin, .origin-splash) :is(a, button):focus-visible {
  outline: 2px solid var(--origin-accent);
  outline-offset: 4px;
}

html.showing-origin {
  overflow: hidden;
}

.origin-splash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--origin-ink);
  color: var(--origin-text);
  opacity: 1;
  transition: opacity 520ms ease;
}

.origin-splash::backdrop {
  background: transparent;
}

.origin-splash.is-leaving {
  opacity: 0;
}

.splash-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.splash-media::after {
  content: "";
  background: linear-gradient(0deg, #050f1cf7, #050f1c90 20%, transparent 53%),
    linear-gradient(180deg, #050f1c96, transparent 26%);
}

.splash-still,
.splash-film,
.splash-caption {
  opacity: 0;
}

.splash-film {
  object-position: center;
  pointer-events: none;
}

.origin-splash[data-chapter="1"] .splash-ghost,
.origin-splash[data-chapter="2"] .splash-gift,
.origin-splash[data-chapter="3"] .splash-awake,
.origin-splash.has-film .splash-film,
.origin-splash[data-chapter="1"] .splash-caption-ghost,
.origin-splash[data-chapter="2"] .splash-caption-gift,
.origin-splash[data-chapter="3"] .splash-caption-awake {
  opacity: 1;
}

.origin-splash.has-film .splash-still {
  opacity: 0;
}

.splash-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(29px, env(safe-area-inset-bottom));
}

.splash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.splash-sound {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff42;
  border-radius: 28px;
  background: #050f1cc9;
  color: var(--origin-text);
  font: 650 12px/1 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}

.splash-sound:hover { background: #152b3d; }

.splash-brand .brand-wordmark {
  width: clamp(95px, 10vw, 142px);
}

.splash-brand .brand-symbol {
  width: clamp(26px, 3vw, 37px);
}

.splash-captions {
  display: grid;
  align-items: end;
  margin-bottom: clamp(18px, 3vh, 36px);
  max-width: 730px;
}

.splash-caption {
  grid-area: 1 / 1;
}

.splash-caption > p:last-child {
  font-size: clamp(37px, 5vw, 76px);
  line-height: 1.02;
  text-shadow: 0 1px 24px #050f1c9c;
}

.splash-kicker {
  margin-bottom: 10px;
}

.splash-loader {
  display: grid;
  gap: 10px;
  width: min(270px, 78%);
  color: #e3f2f4;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.splash-progress {
  display: block;
  width: 100%;
  height: 2px;
  border: 0;
  overflow: hidden;
  border-radius: 8px;
  appearance: none;
  background: #d8f7ff52;
  color: var(--origin-accent);
}

.splash-progress::-webkit-progress-bar {
  background: #d8f7ff52;
}

.splash-progress::-webkit-progress-value {
  background: var(--origin-accent);
}

.splash-progress::-moz-progress-bar {
  background: var(--origin-accent);
}

@media (max-width: 700px) {
  .origin {
    min-height: 0;
  }

  .origin-art {
    height: clamp(290px, 53svh, 450px);
    object-position: 67% 45%;
  }

  .origin::before {
    background: linear-gradient(0deg, #050f1c 0%, #050f1c 8%, #050f1cc7 28%, transparent 65%);
  }

  .origin-inner {
    padding-block: clamp(235px, 39svh, 335px) 37px;
  }

  .origin-kicker {
    margin-bottom: 14px;
  }

  .origin h1 {
    max-width: none;
    font-size: clamp(54px, 12.5vw, 80px);
  }

  .origin-description {
    margin-top: 15px;
  }

  .origin-actions {
    gap: 8px 14px;
    margin-top: 16px;
  }

  .splash-still {
    object-position: 81% center;
  }

  .splash-ghost {
    object-position: 87% center;
  }

  .splash-media::after {
    background: linear-gradient(0deg, #050f1cf7, #050f1c9e 15%, transparent 45%),
      linear-gradient(180deg, #050f1c96, transparent 22%);
  }

  .splash-layout {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .splash-layout {
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .splash-captions {
    margin-bottom: 13px;
  }

  .splash-caption > p:last-child {
    font-size: 34px;
  }
}
