:root {
  --ink: #0a0b0d;
  --elev: #12141a;
  --blue: #0052ff;
  --blue-deep: #003ecc;
  --white: #ffffff;
  --mute: rgba(255, 255, 255, 0.72);
  --line: rgba(0, 82, 255, 0.45);
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 4.5rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 0.75rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: var(--blue);
}

.sparkle-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--blue);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.45;
  animation: twinkle 3.8s ease-in-out infinite;
}

.sparkle:nth-child(even) {
  background: var(--white);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.7) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(16deg);
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 1.5rem;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.92), rgba(10, 11, 13, 0.2) 85%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 2px solid var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-art picture,
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 11, 13, 0.78) 0%,
    rgba(10, 11, 13, 0.22) 55%,
    rgba(10, 11, 13, 0.05) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 6vw 4rem;
  max-width: 46rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.8rem;
}

h1,
h2,
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
  color: var(--white);
}

.hero-title {
  font-size: clamp(3.4rem, 11vw, 8.6rem);
}

.hero-title em {
  font-style: normal;
  color: var(--blue);
  display: block;
}

.lead {
  max-width: 34rem;
  margin: 1.2rem 0 1.6rem;
  font-size: 1.08rem;
  color: var(--mute);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.band {
  padding: 8rem 6vw;
  background: var(--ink);
}

.band-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.copy-block {
  max-width: 34rem;
}

.copy-block h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.copy-block p {
  color: var(--mute);
  margin: 1rem 0 0;
}

.frame-16x9,
.frame-1x1 {
  margin: 0;
  background: transparent;
}

.frame-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.frame-1x1 {
  aspect-ratio: 1 / 1;
  width: min(26rem, 100%);
  justify-self: end;
}

.frame-16x9 img,
.frame-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.record {
  padding: 2rem 6vw 4rem;
}

.record-row {
  max-width: 78rem;
  margin: 0 auto;
  min-height: 100svh;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 8vh 0;
}

.record-copy {
  max-width: 28rem;
}

.year {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  color: var(--blue);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0 0 0.5rem;
}

.record-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.record-copy p {
  color: var(--mute);
  margin: 0.85rem 0 0;
}

.gallery {
  background: var(--elev);
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.gallery-head {
  padding: 0 6vw 2rem;
  max-width: 40rem;
}

.gallery-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.track-wrap {
  overflow: hidden;
}

.track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 6vw 2rem;
  will-change: transform;
}

.polaroid {
  width: min(68vw, 19rem);
  margin: 0;
  background: transparent;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}

.polaroid figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mute);
}

.close {
  padding: 4rem 6vw 5rem;
  max-width: 78rem;
  margin: 0 auto;
}

.close-copy {
  max-width: 36rem;
  padding: 2.5rem 0 0;
}

.close-copy h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.site-footer {
  padding: 2rem 6vw 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--mute);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal {
  max-width: 42rem;
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--blue);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 100px;
  font-weight: 700;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.app-main {
  padding: calc(var(--nav-h) + 2rem) 6vw 3rem;
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.field input {
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 0.75rem;
  padding: 0.85rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.empty {
  color: var(--mute);
}

.how-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.how-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}

.step-n {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
}

.lost-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 6vw 3rem;
  text-align: center;
}

.lost-page img {
  width: min(14rem, 52vw);
  margin: 0 auto 0.8rem;
}

.lost-page h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
}

@media (min-width: 960px) {
  .band-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .record-row {
    grid-template-columns: 1.35fr 0.9fr;
  }

  .record-row.flip {
    grid-template-columns: 0.9fr 1.35fr;
  }

  .record-row.flip .frame-16x9 {
    order: 2;
  }

  .record-copy {
    position: sticky;
    top: 28vh;
  }
}

@media (max-width: 799px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    right: 0.75rem;
    flex-direction: column;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.8rem 1rem;
    border-radius: 1rem;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.35) 0%,
      rgba(10, 11, 13, 0.12) 40%,
      rgba(10, 11, 13, 0.82) 100%
    );
  }

  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 2.2rem;
  }

  .frame-1x1 {
    justify-self: start;
  }

  .record-row {
    min-height: 0;
    padding: 3rem 0;
  }

  .track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle,
  .toast {
    animation: none;
  }
}
