:root {
  --bg: #0c0a10;
  --bg-2: #16121d;
  --ink: #f3ece0;
  --muted: #a89fb2;
  --pumpkin: #ff7a1a;
  --pumpkin-hi: #ff8d3a;
  --lime: #b6ff3b;
  --mint: #cfe8c8;
  --purple: #8a4dff;
  --line: rgba(255, 255, 255, .09);
  --radius: 18px;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(138, 77, 255, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 122, 26, .16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Background texture: faint sprinkles + film grain */
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22240%22%3E%3Crect%20x%3D%2281%22%20y%3D%2242%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23ff7a1a%22%20transform%3D%22rotate%28117%2081%2042%29%22/%3E%3Crect%20x%3D%22192%22%20y%3D%2229%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23b6ff3b%22%20transform%3D%22rotate%28105%20192%2029%29%22/%3E%3Crect%20x%3D%2216%22%20y%3D%22105%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23ff7a1a%22%20transform%3D%22rotate%2813%2016%20105%29%22/%3E%3Crect%20x%3D%22131%22%20y%3D%2221%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23b6ff3b%22%20transform%3D%22rotate%28102%20131%2021%29%22/%3E%3Crect%20x%3D%22149%22%20y%3D%22139%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23f3ece0%22%20transform%3D%22rotate%2811%20149%20139%29%22/%3E%3Crect%20x%3D%2219%22%20y%3D%2258%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23b6ff3b%22%20transform%3D%22rotate%28100%2019%2058%29%22/%3E%3Crect%20x%3D%2273%22%20y%3D%2240%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%238a4dff%22%20transform%3D%22rotate%2821%2073%2040%29%22/%3E%3Crect%20x%3D%22133%22%20y%3D%22161%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23b6ff3b%22%20transform%3D%22rotate%2819%20133%20161%29%22/%3E%3Crect%20x%3D%2291%22%20y%3D%22131%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23ff7a1a%22%20transform%3D%22rotate%2811%2091%20131%29%22/%3E%3Crect%20x%3D%22147%22%20y%3D%22119%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%238a4dff%22%20transform%3D%22rotate%2896%20147%20119%29%22/%3E%3Crect%20x%3D%22112%22%20y%3D%22215%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23b6ff3b%22%20transform%3D%22rotate%2865%20112%20215%29%22/%3E%3Crect%20x%3D%22186%22%20y%3D%22165%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%238a4dff%22%20transform%3D%22rotate%2844%20186%20165%29%22/%3E%3Crect%20x%3D%22126%22%20y%3D%22204%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%238a4dff%22%20transform%3D%22rotate%28131%20126%20204%29%22/%3E%3Crect%20x%3D%22144%22%20y%3D%2224%22%20width%3D%229%22%20height%3D%222.6%22%20rx%3D%221.3%22%20fill%3D%22%23b6ff3b%22%20transform%3D%22rotate%2892%20144%2024%29%22/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: .07;
}
body::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.85%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%200%200%200%20.55%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .06; mix-blend-mode: overlay;
}

a { color: inherit; }
img { display: block; }

.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
main { position: relative; z-index: 1; }

/* ---------- Header (sticky, frosted) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(12, 10, 16, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a {
  font-family: var(--display); font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 99px;
  transition: color .2s, background .2s;
}
.site-header nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }

/* On the home page the small logo only appears once the big one has scrolled away */
.site-header--home .logo { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.site-header--home.show-logo .logo { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 10px rgba(255, 122, 26, .45)); transition: transform .3s var(--ease); }
.logo-mark .leaves { transform-origin: 20px 13px; transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo:hover .logo-mark .leaves { transform: rotate(10deg); }
.logo-text { display: flex; flex-direction: column; line-height: .9; }
.logo-tropical {
  font-family: "Caveat Brush", "Brush Script MT", cursive; font-size: 21px; color: var(--mint);
  transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: 1px;
}
.logo-hagel {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 15px;
  color: var(--pumpkin); text-shadow: 0 0 12px rgba(255, 122, 26, .6);
}

/* Big logo used as the home page title */
.hero { padding: 40px 0 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo--hero { display: inline-flex; justify-content: center; text-align: left; gap: clamp(10px, 2.4vw, 22px); margin: 0 0 28px; font-size: inherit; font-weight: inherit; line-height: 1; }
.logo--hero .logo-mark {
  width: clamp(84px, 18vw, 150px); height: auto; aspect-ratio: 1; margin: -6% -4% 0 -4%;
  animation: glow 4s ease-in-out infinite;
}
.logo--hero:hover .logo-mark { transform: none; }
.logo--hero .logo-tropical { font-size: clamp(44px, 9vw, 84px); margin-bottom: 4px; }
.logo--hero .logo-hagel { font-size: clamp(30px, 6.6vw, 64px); letter-spacing: .1em; text-shadow: 0 0 28px rgba(255, 122, 26, .55); }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(255, 122, 26, .4)); }
  50%      { filter: drop-shadow(0 0 40px rgba(255, 122, 26, .75)); }
}
.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 auto; text-wrap: balance; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lime); border: 1px solid rgba(182, 255, 59, .35); padding: 6px 12px; border-radius: 99px;
  background: rgba(12, 10, 16, .35);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.section-title {
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin: 72px 0 24px; display: flex; align-items: center; gap: 16px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 14px 26px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--pumpkin); color: #1a0d00;
  box-shadow: 0 10px 30px rgba(255, 122, 26, .35);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { background: var(--pumpkin-hi); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 122, 26, .5); }
.btn svg { width: 14px; height: 14px; }
.btn:focus-visible, .icon-btn:focus-visible, .card-cover:focus-visible, .featured-cover:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Round play badge shown over covers */
.play-badge {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--pumpkin); color: #1a0d00;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease);
}
.play-badge svg { width: 24px; height: 24px; margin-left: 3px; }

/* ---------- Featured (latest) release ---------- */
.featured {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 48px; align-items: center;
  padding: 40px; border-radius: 28px; border: 1px solid var(--line);
  background: rgba(22, 18, 29, .5);
  scroll-margin-top: 90px;
}
.featured-bg {
  position: absolute; inset: -25%; z-index: -1;
  background: var(--cover) center / cover no-repeat;
  filter: blur(70px) saturate(1.5); opacity: .6;
  animation: drift 18s ease-in-out infinite alternate;
}
.featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12, 10, 16, .1), rgba(12, 10, 16, .55));
}
@keyframes drift { to { transform: scale(1.12) translate(3%, -2%); } }

.featured-cover {
  position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease);
}
.featured-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-cover:hover { transform: translateY(-4px); }
.featured-cover:hover img { transform: scale(1.04); }
.featured-cover:hover .play-badge { opacity: 1; transform: scale(1); }
.featured-cover .play-badge { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.featured-cover .play-badge svg { width: 30px; height: 30px; }

.featured-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: .95;
  font-size: clamp(44px, 6.4vw, 76px); margin: 18px 0 10px;
}
.featured-meta { color: var(--muted); font-size: 16px; margin: 0 0 28px; font-family: var(--display); }

/* ---------- Previous years: card grid ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card-cover {
  position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-cover:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 122, 26, .4); }
.card-cover:hover img { transform: scale(1.05); }
.card-cover:hover .play-badge { opacity: 1; transform: scale(1); }
.card-year { font-family: var(--display); font-weight: 700; color: var(--pumpkin); font-size: 14px; letter-spacing: .08em; margin-top: 16px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 4px 0 2px; letter-spacing: -.01em; }
.card-meta { color: var(--muted); font-size: 13px; }
.card-links { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(243, 236, 224, .8); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn.spotify:hover { color: #1ed760; border-color: #1ed760; }
.icon-btn.apple:hover   { color: #fa4a63; border-color: #fa4a63; }
.icon-btn.youtube:hover { color: #ff3b3b; border-color: #ff3b3b; }

/* ---------- Song page ---------- */
.page-backdrop {
  position: absolute; top: 0; left: 0; right: 0; height: 900px; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.page-backdrop::before {
  content: ""; position: absolute; inset: -20%;
  background: var(--cover) center / cover no-repeat;
  filter: blur(90px) saturate(1.4); opacity: .32;
  animation: drift 20s ease-in-out infinite alternate;
}

.song-hero {
  display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center;
  padding: 32px 0 24px;
}
.cover {
  aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #120c1c;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.song-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .92;
  font-size: clamp(48px, 7.4vw, 92px); margin: 18px 0 0;
}
.song-title .accent { color: var(--pumpkin); text-shadow: 0 0 40px rgba(255, 122, 26, .5); }

/* Player with waveform */
.player {
  margin-top: 32px; padding: 18px 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: rgba(22, 18, 29, .55); border: 1px solid var(--line); border-radius: 22px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.play-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pumpkin); color: #1a0d00; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(255, 122, 26, .4);
  transition: transform .2s var(--ease), background .2s;
}
.play-btn:hover { transform: scale(1.06); background: var(--pumpkin-hi); }
.play-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.play-btn svg { width: 22px; height: 22px; }
.play-btn .i-pause { display: none; }
.player.is-playing .play-btn .i-play { display: none; }
.player.is-playing .play-btn .i-pause { display: block; }

.track-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.track-info strong { color: var(--ink); font-weight: 600; }

.wave { position: relative; height: 56px; border-radius: 8px; }
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave .seek {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.wave:focus-within { outline: 2px solid var(--lime); outline-offset: 4px; }

/* Content */
.content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0 16px; }
.content h2, .lyrics h2 {
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 14px;
}
.content p { color: var(--muted); margin: 0 0 12px; }
.credits { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.credits li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.credits li span:last-child { color: var(--ink); }

.lyrics { padding: 48px 0 0; border-top: 1px solid var(--line); margin-top: 24px; }
.lyrics h2 { margin-bottom: 28px; }
.lyrics-text { columns: 2 320px; column-gap: 64px; font-size: 18px; line-height: 1.7; }
.lyrics-text p { margin: 0 0 1.6em; break-inside: avoid; color: var(--ink); }

footer {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 48px;
  color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .featured { grid-template-columns: minmax(0, 300px) 1fr; gap: 32px; padding: 28px; }
  .song-hero { grid-template-columns: 300px 1fr; gap: 36px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 60px; }
  .site-header nav a { padding: 8px 10px; }
  .hero { padding: 20px 0 32px; }
  .lead { font-size: 17px; }
  .section-title { margin: 52px 0 20px; }

  .featured { grid-template-columns: 1fr; gap: 22px; padding: 16px 16px 22px; border-radius: 24px; }
  .featured-title { margin-top: 14px; }
  .featured-meta { margin-bottom: 20px; }
  .featured .btn { width: 100%; padding: 16px; }
  .featured-cover .play-badge { display: none; }

  .grid { gap: 28px 14px; }
  .card-title { font-size: 16px; }
  .card-year { margin-top: 12px; font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; }
  .card-links { gap: 6px; }

  .song-hero, .content { grid-template-columns: 1fr; gap: 24px; }
  .song-hero { padding: 12px 0 8px; }
  .cover { max-width: 440px; width: 100%; margin: 0 auto; }
  .player { padding: 14px; gap: 14px; }
  .play-btn { width: 54px; height: 54px; }
  .wave { height: 48px; }
  .content { padding: 36px 0 8px; }
  .lyrics-text { font-size: 17px; }

  footer { flex-direction: column; gap: 6px; margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.section-title { scroll-margin-top: 90px; }
