:root {
  --black: #030405;
  --obsidian: #07090b;
  --stone: #11161a;
  --iron: #222a2e;
  --iron-light: #52616a;
  --bone: #f0eee6;
  --muted: #aab2b4;
  --cyan: #00d8ff;
  --cyan-soft: rgba(0, 216, 255, 0.24);
  --red: #f01818;
  --red-soft: rgba(240, 24, 24, 0.32);
  --max: 1180px;
  --header: 76px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 216, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, #030405 0%, #071013 44%, #020303 100%);
  color: var(--bone);
  font-family:
    "Arial Narrow",
    "Bahnschrift",
    "Inter",
    system-ui,
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 80%, transparent);
}

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

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

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--bone);
  color: var(--black);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 18px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(3, 4, 5, 0.88), rgba(3, 4, 5, 0.25));
  border-bottom: 1px solid rgba(240, 238, 230, 0.08);
  backdrop-filter: blur(14px);
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 4, 5, 0.92);
  border-bottom-color: rgba(0, 216, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-sigil {
  width: 18px;
  height: 30px;
  background: linear-gradient(180deg, var(--red), #fff 48%, var(--red));
  clip-path: polygon(50% 0, 78% 34%, 59% 34%, 59% 100%, 41% 100%, 41% 34%, 22% 34%);
  filter: drop-shadow(0 0 12px var(--red));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: rgba(240, 238, 230, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.site-nav a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bone);
  text-shadow: 0 0 14px var(--cyan);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("assets/kaukamanala-red-hero.png");
  background-color: #030405;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  transform: scale(1.03);
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.84), rgba(3, 4, 5, 0.15) 36%, rgba(3, 4, 5, 0.22) 62%, rgba(3, 4, 5, 0.82)),
    linear-gradient(180deg, rgba(3, 4, 5, 0.28), rgba(3, 4, 5, 0.06) 46%, #030405 98%);
}

.storm-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.4;
  background:
    radial-gradient(circle at 48% 49%, rgba(240, 24, 24, 0.34), transparent 15rem),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255, 255, 255, 0.035) 89px, transparent 91px);
  mix-blend-mode: screen;
  animation: stormPulse 6s ease-in-out infinite;
}

.hero-content {
  align-self: end;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto clamp(72px, 10vh, 118px);
  text-align: center;
}

.hero-line {
  max-width: 590px;
  margin: 0 auto 28px;
  color: rgba(240, 238, 230, 0.86);
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  font-weight: 650;
  line-height: 1.16;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(240, 238, 230, 0.18);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(240, 24, 24, 0.95), rgba(92, 0, 0, 0.92));
  border-color: rgba(255, 180, 180, 0.42);
  box-shadow: 0 0 28px rgba(240, 24, 24, 0.22);
}

.button-ghost {
  background: rgba(4, 8, 10, 0.54);
  border-color: rgba(0, 216, 255, 0.34);
  color: rgba(240, 238, 230, 0.9);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 22px;
  height: 42px;
  border: 1px solid rgba(240, 238, 230, 0.3);
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 9px;
  background: var(--cyan);
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--cyan);
  animation: cue 1.5s ease-in-out infinite;
}

.section {
  position: relative;
  padding: clamp(84px, 11vw, 150px) 0;
  overflow: hidden;
}

.section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 0%, rgba(0, 216, 255, 0.08), transparent 36rem);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 42px;
}

.section-number {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  text-shadow: 0 0 18px var(--cyan-soft);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading p:not(.section-number),
.chronicle-copy p:not(.section-number),
.merch-copy p:not(.section-number) {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.7;
}

.section-music {
  background:
    linear-gradient(180deg, #030405 0%, rgba(7, 16, 19, 0.96) 38%, #050607 100%),
    url("assets/kaukamanala-cyan-temple.png") center / cover fixed;
  background-blend-mode: normal, luminosity;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.track-console {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 218px;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at 100% 0%, rgba(0, 216, 255, 0.16), transparent 14rem),
    rgba(4, 7, 8, 0.72);
  border: 1px solid rgba(0, 216, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 24px 80px rgba(0, 0, 0, 0.36);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.track-console::after {
  position: absolute;
  inset: 9px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(240, 238, 230, 0.06);
  clip-path: inherit;
}

.track-console.is-active,
.track-console:focus-within,
.track-console:hover {
  border-color: rgba(0, 216, 255, 0.58);
  box-shadow: 0 0 34px rgba(0, 216, 255, 0.1), 0 24px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.track-meta {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.track-meta span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

audio {
  width: 100%;
  min-height: 42px;
  accent-color: var(--cyan);
  filter: saturate(0.8);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.platform-row a,
.platform-row button {
  appearance: none;
  font-family: inherit;
  padding: 11px 13px;
  border: 1px solid rgba(240, 238, 230, 0.1);
  background: transparent;
  color: rgba(240, 238, 230, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.platform-row a:hover,
.platform-row a:focus-visible,
.platform-row button:hover,
.platform-row button:focus-visible {
  color: var(--bone);
  background: rgba(0, 216, 255, 0.08);
  border-color: rgba(0, 216, 255, 0.34);
}

.platform-row button {
  color: var(--bone);
  border-color: rgba(240, 24, 24, 0.32);
  background: rgba(240, 24, 24, 0.12);
  box-shadow: inset 0 0 18px rgba(240, 24, 24, 0.08);
}

.platform-row button:hover,
.platform-row button:focus-visible {
  background: rgba(240, 24, 24, 0.2);
  border-color: rgba(240, 24, 24, 0.62);
  box-shadow: 0 0 24px rgba(240, 24, 24, 0.16);
}

.chronicle-layout,
.merch-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  align-items: center;
  gap: clamp(36px, 7vw, 86px);
}

.chronicle-image {
  position: relative;
  margin: 0;
  border: 1px solid rgba(0, 216, 255, 0.22);
  background: #050607;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.chronicle-image::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 54%, rgba(3, 4, 5, 0.76)),
    radial-gradient(circle at 42% 20%, rgba(0, 216, 255, 0.22), transparent 18rem);
}

.chronicle-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section-visuals {
  background: linear-gradient(180deg, rgba(3, 4, 5, 0.1), rgba(0, 0, 0, 0.5));
}

.visual-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
}

.visual-panel {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 238, 230, 0.09);
  background: var(--stone);
}

.visual-panel-wide {
  min-height: 430px;
}

.visual-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(3, 4, 5, 0.05), rgba(3, 4, 5, 0.68));
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease;
}

.visual-panel:hover img {
  transform: scale(1.035);
}

.section-merch {
  background:
    radial-gradient(circle at 18% 35%, rgba(240, 24, 24, 0.1), transparent 24rem),
    radial-gradient(circle at 78% 12%, rgba(0, 216, 255, 0.11), transparent 28rem),
    #030405;
}

.merch-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 360px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(240, 238, 230, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(8, 11, 12, 0.72);
}

.shirt {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.08), transparent 6rem),
    linear-gradient(145deg, #0c0f11, #020303);
  clip-path: polygon(28% 0, 72% 0, 92% 18%, 80% 34%, 80% 100%, 20% 100%, 20% 34%, 8% 18%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shirt::before {
  position: absolute;
  inset: 22% 27% 28%;
  content: "";
  border: 1px solid rgba(0, 216, 255, 0.2);
  box-shadow: 0 0 24px rgba(0, 216, 255, 0.08);
}

.shirt-front span,
.shirt-back span {
  z-index: 1;
  color: rgba(240, 238, 230, 0.72);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.shirt-front span {
  color: rgba(240, 24, 24, 0.92);
  text-shadow: 0 0 18px rgba(240, 24, 24, 0.38);
}

.shirt-back span {
  color: rgba(0, 216, 255, 0.86);
  text-shadow: 0 0 18px rgba(0, 216, 255, 0.32);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 58px);
  border-top: 1px solid rgba(240, 238, 230, 0.08);
  background: #020303;
  color: rgba(240, 238, 230, 0.68);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

.lyrics-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 40px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.lyrics-layer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.lyrics-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(240, 24, 24, 0.18), transparent 28rem),
    rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.lyrics-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(780px, calc(100svh - 34px));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 88% 0%, rgba(0, 216, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 12% 14%, rgba(240, 24, 24, 0.14), transparent 17rem),
    rgba(4, 7, 8, 0.94);
  border: 1px solid rgba(0, 216, 255, 0.28);
  box-shadow:
    0 32px 120px rgba(0, 0, 0, 0.64),
    0 0 48px rgba(0, 216, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transform: translateY(22px) scale(0.98);
  transition: transform 260ms ease;
  overflow: hidden;
}

.lyrics-layer.is-open .lyrics-panel {
  transform: translateY(0) scale(1);
}

.lyrics-panel::before {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(240, 238, 230, 0.07);
  clip-path: inherit;
}

.lyrics-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid rgba(240, 238, 230, 0.09);
}

.lyrics-kicker {
  margin: 0 0 9px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.lyrics-panel h2 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  line-height: 0.92;
  text-shadow: 0 0 22px rgba(0, 216, 255, 0.16);
}

.lyrics-close {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(240, 238, 230, 0.14);
  background: rgba(3, 4, 5, 0.54);
  color: var(--bone);
  cursor: pointer;
}

.lyrics-close span,
.lyrics-close::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  content: "";
  background: currentColor;
}

.lyrics-close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lyrics-close::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lyrics-close:hover,
.lyrics-close:focus-visible {
  color: var(--red);
  border-color: rgba(240, 24, 24, 0.5);
  box-shadow: 0 0 22px rgba(240, 24, 24, 0.18);
}

.lyrics-body {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  color: rgba(240, 238, 230, 0.9);
  font-family:
    "Arial Narrow",
    "Bahnschrift",
    "Inter",
    system-ui,
    sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 520;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow: auto;
  scrollbar-color: rgba(0, 216, 255, 0.46) rgba(255, 255, 255, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stormPulse {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes cue {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header: 104px;
  }

  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    gap: 0;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .site-nav a:last-child {
    display: none;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-bg {
    background-position: center var(--header);
    background-size: auto 72vh;
  }

  .track-grid,
  .chronicle-layout,
  .merch-layout,
  .visual-strip {
    grid-template-columns: 1fr;
  }

  .visual-panel,
  .visual-panel-wide {
    min-height: 260px;
  }

  .chronicle-layout,
  .merch-layout {
    gap: 34px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-nav {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-bottom: 76px;
  }

  .hero-line {
    max-width: min(300px, 100%);
    font-size: 1rem;
    line-height: 1.22;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .section-shell {
    width: calc(100% - 28px);
  }

  .track-console {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }

  .platform-row a,
  .platform-row button {
    width: 100%;
  }

  .merch-preview {
    grid-template-columns: 1fr;
  }

  .lyrics-layer {
    align-items: end;
    padding: 10px;
  }

  .lyrics-panel {
    max-height: calc(100svh - 20px);
  }

  .lyrics-panel-head {
    padding: 20px;
  }

  .lyrics-body {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
