@font-face {
  font-family: Geist;
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #090d10;
  --ink: #f4f5f6;
  --muted: #c1c6ca;
  --line: #343a40;
  --nav: 64px;
  --scene: calc(100svh - var(--nav));
  --edge: clamp(18px, 5.5vw, 98px);
  font-family: Geist, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: var(--nav); scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav);
  padding: 0 var(--edge);
  border-bottom: 1px solid var(--line);
  background: #090d10f5;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.095em;
}
.wordmark span { margin-inline: 2px; color: var(--muted); font-size: .75em; }
nav { display: flex; gap: clamp(14px, 3.4vw, 54px); }
nav a { display: grid; place-items: center; min-height: 44px; padding: 0 3px; color: var(--muted); }
nav a:hover, .game-actions :is(a, button):hover, .journey-link:hover { color: #fff; }

.journey {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.stage, .journey-content { grid-area: 1 / 1; }
.journey-content { position: relative; }
.stage {
  position: sticky;
  top: var(--nav);
  height: var(--scene);
  align-self: start;
  display: grid;
  place-items: center;
  overflow: clip;
  background: var(--background);
  pointer-events: none;
}
.frames {
  position: relative;
  width: min(100%, var(--scene));
  filter: blur(calc(var(--defocus, 0) * 18px));
}
.frames, .opening-frames { display: grid; aspect-ratio: 1; }
.frames > *, .opening-frames > * { grid-area: 1 / 1; display: block; width: 100%; height: auto; }
.stage-title {
  position: absolute;
  inset: 0;
  opacity: var(--title-opacity, 1);
}
.stage-title h1 {
  position: absolute;
  inset-inline: 2%;
  inset-block-start: 50%;
  height: min(76%, 76vw);
  translate: 0 -50%;
  margin: 0;
}
.title-art {
  display: block;
  fill: var(--ink);
  font-weight: 650;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--background);
  opacity: calc(var(--defocus, 0) * .69);
}
.progress {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  right: var(--edge);
  width: 84px;
  height: 1px;
  background: #c1c6ca50;
  opacity: calc(1 - var(--defocus, 0));
}
.progress::before {
  content: "";
  display: block;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: var(--ink);
}
.frame-track { position: relative; min-height: 220svh; pointer-events: none; }
.hero {
  min-height: var(--scene);
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 2rem var(--edge) clamp(40px, 8svh, 90px);
}
.journey-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--muted);
  text-shadow: 0 1px 3px var(--background), 0 0 5px var(--background);
  pointer-events: auto;
}
.journey-link span { font-size: 18px; }
.album { position: relative; }
.release {
  width: min(100% - var(--edge) * 2, 760px);
  margin-inline: auto;
  padding-block: clamp(34px, 8svh, 98px) 4svh;
  font-size: clamp(21px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.033em;
}
.release p {
  display: flow-root;
  margin: 0;
  padding-block: clamp(28px, 9svh, 112px);
}
.release strong { font-weight: 600; }
.listen {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(15px, 5vw, 56px);
  min-height: min(65svh, 510px);
  padding: 50px var(--edge);
}
.listen a {
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 110px);
  aspect-ratio: 1;
  border: 1px solid #dce2e666;
  border-radius: 50%;
  background: #090d1033;
}
.listen a:hover { border-color: var(--ink); background: #090d10aa; }
.listen img { filter: invert(.95); }
[data-motion-ready] [data-reveal] {
  opacity: var(--reveal, 1);
  translate: 0 calc((1 - var(--reveal, 1)) * 28px);
}
[data-motion-ready] [data-reveal]:focus-visible { opacity: 1; translate: none; }

.play {
  display: grid;
  justify-items: center;
  padding: clamp(72px, 17svh, 172px) var(--edge);
  border-top: 1px solid var(--line);
}
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
  padding: 12px 24px;
  border: 1px solid #f4f5f6;
  border-radius: 999px;
  background: #f4f5f6;
  color: #090d10;
  font-weight: 550;
  text-align: left;
}
.play-button:hover { background: #dce2e6; border-color: #dce2e6; }
.game-dialog {
  width: min(1140px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070809;
  color: var(--ink);
}
.game-dialog::backdrop { background: #030507c9; backdrop-filter: blur(5px); }
html:has(.game-dialog[open]) { overflow: hidden; }
.game { min-width: 0; background: #070809; }
.game iframe {
  display: block;
  width: 100%;
  height: min(78dvh, calc(100dvh - 102px));
  border: 0;
}
.game:fullscreen { display: flex; flex-direction: column; }
.game:fullscreen iframe { flex: 1; min-height: 0; }
.game-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.game-toolbar h2 { margin: 0; padding-block: 6px; font-size: 14px; font-weight: 550; }
.game-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 13px;
  font-size: 12px;
  color: var(--muted);
}
.game-actions :is(a, button) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.game-actions .game-external { justify-content: center; min-width: 36px; font-size: 17px; }
.game-actions [data-close-game] { color: var(--ink); }
.game-actions [data-close-game] span { font-size: 18px; line-height: 1; }
.site-footer { display: flex; justify-content: center; padding-bottom: 24px; }
.site-footer a { display: grid; place-items: center; min-height: 44px; min-width: 44px; font-size: 20px; }

.opening {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: var(--background);
  pointer-events: none;
}
.opening-frames { width: min(clamp(96px, 16vw, 174px), 42svh); }
.skip {
  position: absolute;
  right: var(--edge);
  bottom: clamp(16px, 4vh, 45px);
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  pointer-events: auto;
}
.skip span { margin-left: 5px; }

@media (max-width: 800px) {
  :root { --nav: 56px; }
  .hero { padding-bottom: clamp(30px, 6svh, 60px); }
  .frame-track { min-height: 200svh; }
  .release { font-size: clamp(20px, 5.7vw, 30px); }

}
@media (prefers-reduced-motion: reduce) {
  .opening, .progress, #travessia, .journey-link { display: none; }
  .frame-track { min-height: 0; }
  .frames { filter: none; }
  [data-motion-ready] [data-reveal] { opacity: 1; translate: none; }
}
