@font-face {
  font-family: 'Next Art';
  src: url('../assets/fonts/next-art-light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Next Art';
  src: url('../assets/fonts/next-art-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Next Art';
  src: url('../assets/fonts/next-art-semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Next Art';
  src: url('../assets/fonts/next-art-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Next Art';
  src: url('../assets/fonts/next-art-heavy.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --font: 'Next Art', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: #eceef3;
  --muted: rgba(236, 238, 243, 0.6);
  --line: #c4c8d4;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0a0b10;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.gated { overflow: hidden; }

a { color: inherit; }

#defs { position: absolute; }

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

.sea {
  position: relative;
  overflow-x: clip;
}

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.doodle {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.doodle svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--logo-fill);
}

.doodle.far {
  opacity: 0.4;
  filter: blur(1.3px);
}

.sea-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.card {
  position: relative;
  max-width: 64rem;
  padding: 0 2rem;
  text-align: center;
  will-change: opacity, transform;
}

.card::before {
  content: '';
  position: absolute;
  inset: -40% -15%;
  z-index: -1;
  background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3) 55%, transparent);
  pointer-events: none;
}

.title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  background: linear-gradient(to bottom, var(--line), var(--fade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7));
}

.subtitle {
  margin: 1rem 0 0;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--line);
  opacity: 0.85;
}

.copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.5rem;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.links a {
  pointer-events: auto;
  padding: 0.7rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s;
}

.links a:hover {
  background: color-mix(in srgb, var(--line) 16%, transparent);
  border-color: var(--line);
}

.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.hud-top a { text-decoration: none; color: var(--muted); transition: color 0.3s; }
.hud-top a:hover { color: var(--text); }
.hud-top .wordmark { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--text); }

.hud-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 1.4rem;
  pointer-events: none;
}

.bar {
  --fill: 0%;
  --rail: linear-gradient(to right, var(--line) var(--fill), rgba(255, 255, 255, 0.16) var(--fill));
  height: 20px;
  margin: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.bar::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: var(--rail); }
.bar::-moz-range-track { height: 2px; border-radius: 2px; background: var(--rail); }

.bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px color-mix(in srgb, var(--line) 70%, transparent);
  transition: transform 0.2s;
}
.bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px color-mix(in srgb, var(--line) 70%, transparent);
  transition: transform 0.2s;
}
.bar:hover::-webkit-slider-thumb, .bar:active::-webkit-slider-thumb { transform: scale(1.3); }
.bar:hover::-moz-range-thumb, .bar:active::-moz-range-thumb { transform: scale(1.3); }

.volume { width: 80vw; }

.seek {
  display: block;
  width: min(26rem, 70vw);
  margin: 1.75rem auto 0;
}

#gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 50% 40%, #14161d 0%, #060709 70%);
  transition: opacity 0.9s ease, visibility 0.9s;
}
#gate.is-gone { opacity: 0; visibility: hidden; }

.gate-inner { text-align: center; }

.gate-logo { margin: 0 0 2.5rem; line-height: 0; }

.gate-logo svg {
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 5 / 6;
  fill: url(#fade-0);
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6));
}

#gate button {
  font: 600 0.95rem var(--font);
  letter-spacing: 0.06em;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(to bottom, var(--gate-top), var(--gate-bottom));
  color: #0a0b10;
  cursor: pointer;
  transition: transform 0.2s;
}
#gate button:hover { transform: translateY(-1px); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }

.sea-nav {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sea-nav button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}
.sea-nav button:hover { transform: scale(1.4); }
.sea-nav button.is-active { background: #eceef3; transform: scale(1.3); }
.sea-nav button:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }

@media (max-width: 640px) {
  .sea-nav { right: 0.6rem; gap: 0.7rem; }
  .hud-top { padding: 1rem; }
  .card { padding: 0 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
}
