:root {
  --color-accent: #b91c1c;
  --color-bg: #f5f2eb;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6560;
  --color-dark: #111111;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: currentColor;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav a:hover {
  color: #fff;
}

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

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.parallax-img-wrapper {
  position: absolute;
  inset: -5% 0;
  z-index: 0;
  will-change: transform;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 7rem;
}

.hero__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.9;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__dates {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.hero__quote {
  max-width: 600px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  border-left: 2px solid var(--color-accent);
  padding-left: 1.25rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

/* Biography */
.biography {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--color-surface);
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.biography__image {
  position: relative;
}

.biography__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
  min-height: 500px;
}

.image-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

.biography__text {
  padding: 3rem 3rem 3rem 0;
}

@media (max-width: 900px) {
  .biography {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .biography__image img {
    border-radius: 4px 4px 0 0;
    min-height: auto;
  }
  .biography__text {
    padding: 2rem;
  }
}

.lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.biography p {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.signature {
  width: 160px;
  margin-top: 1.5rem;
  opacity: 0.8;
}

/* Quote section */
.quote-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.quote-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

.quote-section__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 4rem 1.5rem;
}

.quote-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.3;
  margin: 0 0 1.5rem;
}

.quote-section cite {
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

/* Timeline */
.timeline-section {
  background: var(--color-surface);
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(185, 28, 28, 0.2));
}

.timeline__item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateX(-5px);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.15);
}

.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.timeline__item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.timeline__item p {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0;
}

@media (min-width: 768px) {
  .timeline {
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before {
    left: 50%;
  }
  .timeline__item {
    width: 50%;
    padding: 0 3rem;
  }
  .timeline__item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
  }
  .timeline__item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
  }
  .timeline__item:nth-child(odd)::before {
    left: auto;
    right: -0.5rem;
    transform: translateX(50%);
  }
  .timeline__item:nth-child(even)::before {
    left: -0.5rem;
    transform: translateX(-50%);
  }
  .timeline__item:nth-child(odd) p,
  .timeline__item:nth-child(odd) h3 {
    margin-left: auto;
  }
}

/* Discography */
.discography {
  background: var(--color-dark);
  color: #f5f2eb;
  max-width: none;
  padding: 6rem 1.5rem;
}

.discography__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.track:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.03);
}

.track__year {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.track__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

/* Gallery */
.gallery-section {
  background: var(--color-bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--color-dark);
}

.gallery__item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery__item:hover figcaption {
  transform: translateY(0);
}

/* Memory */
.memory {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.memory__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.memory__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 4rem 1.5rem;
}

.memory__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 1.5rem;
}

.memory__content p {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.candle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
}

.candle__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.candle:hover .candle__icon,
.candle.is-lit .candle__icon {
  border-color: var(--color-accent);
  background: rgba(185, 28, 28, 0.15);
}

.candle__flame {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(to top, #f97316, #fde047);
  opacity: 0;
  filter: blur(2px);
  transition: opacity 0.4s ease;
  animation: flicker 1.5s ease-in-out infinite alternate;
}

.candle.is-lit .candle__flame {
  opacity: 1;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.candle__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.candle__count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.95);
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__caption {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 1rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Utilities */
.text-center {
  text-align: center;
}
