:root {
  --bg: #04061A;
  --text: #EDE9E1;
  --muted: #BEBBC8;
  --faint: #9C99A8;
  --hairline: rgba(237, 233, 225, 0.1);
  --focus: #FFD27A;
  --grad: linear-gradient(#3B82F6, #C026D3, #F59E0B);
}

html {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

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

/* Header + hero */

.top {
  position: relative;
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
}

.wordmark {
  font-family: 'Marcellus', serif;
  font-size: 21px;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a {
  color: #C9C5D6;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  /* 31.25vw = the image's 1600:500 ratio. Not aspect-ratio: with min-height
     it would force a min-width and push the hero wider than the screen. */
  height: max(300px, 31.25vw);
  background: url(assets/hero.webp) center top / cover no-repeat;
  animation: fadeIn 1.6s ease-out both;
  --side-fade: 10%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(4, 6, 26, .7) 0%, transparent 18%, transparent 80%, var(--bg) 100%),
    linear-gradient(to right, var(--bg) 0%, transparent var(--side-fade), transparent calc(100% - var(--side-fade)), var(--bg) 100%);
}

/* The box is never wider than the image's 3.2:1, so "cover" always scales the
   image to the box height: sizing the sun by height keeps it on the sun. */
.hero__sun {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 19%;
  height: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 200, 110, .9) 0%, rgba(255, 140, 40, .35) 30%, transparent 65%);
  mix-blend-mode: screen;
  opacity: .25;
  animation: sun 5s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sun {
  0%, 100% { opacity: .25; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: .7; transform: translate(-50%, -50%) scale(1.06); }
}

/* Waveform + statement */

.wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 46px;
  margin: 32px 0 14px;
}

.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: center;
  animation: bar 1.9s ease-in-out infinite;
}

@keyframes bar {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}

.statement {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'Marcellus', serif;
  font-size: 30px;
  line-height: 1.3;
  text-align: center;
}

/* Artists */

.artists h2 {
  margin: 88px 0 0;
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.15;
  text-align: center;
}

.horizon {
  display: block;
  overflow: visible;
  fill: none;
}

.horizon path {
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(192, 38, 211, .5));
}

/* Same max width as .artist-grid so each hill stays over its artist. */
.horizon--wide {
  width: 100%;
  max-width: 1440px;
  height: 80px;
  margin: 14px auto 0;
}

.horizon--single {
  display: none;
  width: min(80%, 320px);
  height: auto;
  margin: 10px auto 24px;
}

.js .artists path.draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* Transition only on the way in, so adding .js after a first paint hides the
   line instantly instead of animating it away. */
.js .artists.is-drawn path.draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.4s ease-out;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
  text-align: center;
}

.artist {
  position: relative;
  min-width: 0;
}

.artist__glow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 6%;
  height: 58%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(34px);
  opacity: .18;
  animation: breathe 7s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes breathe {
  0%, 100% { opacity: .18; }
  50% { opacity: .42; }
}

.artist img {
  position: relative;
  display: block;
  width: 82%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  transition: filter .5s, transform .6s;
}

.mw {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin: 10px 0 4px;
}

.mw i {
  width: 2px;
  border-radius: 2px;
  background: var(--link);
  opacity: .55;
  animation: bar 1.4s ease-in-out infinite paused;
}

.artist:hover .mw i,
.artist:focus-within .mw i {
  opacity: 1;
  animation-play-state: running;
}

.artist:hover img,
.artist:focus-within img {
  filter: brightness(1.18);
  transform: scale(1.03);
}

.artist h3 {
  position: relative;
  margin: 4px 0 6px;
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
}

.artist .bn {
  display: block;
  margin-top: 4px;
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #E4E0D8;
}

.artist p {
  position: relative;
  margin: 0;
  color: var(--muted);
}

.artist a {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* About + footer */

.about {
  max-width: 620px;
  margin: 96px auto 0;
  padding: 0 24px;
  text-align: center;
}

.about h2 {
  margin: 0 0 18px;
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
}

.about p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer {
  margin-top: 96px;
  padding: 32px 16px 36px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.site-footer__email {
  font-family: 'Marcellus', serif;
  font-size: 24px;
  text-decoration: none;
}

.site-footer__email:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: 14px 0;
  font-size: 14px;
}

.site-footer nav a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.site-footer small {
  display: block;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 699px) {
  .artists h2 {
    font-size: 40px;
  }

  .horizon--wide {
    display: none;
  }

  .horizon--single {
    display: block;
  }

  .artist-grid {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 0 16px;
  }
}

@media (max-width: 599px) {
  .site-header {
    position: static;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px 6px;
  }

  .hero {
    height: max(250px, 31.25vw);
    --side-fade: 5%;
  }

  .statement {
    font-size: 24px;
  }

  .site-footer__email {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .artists path.draw {
    stroke-dashoffset: 0;
  }
}
