:root {
  --paper: #f3ebdf;
  --paper-soft: #f9f2e9;
  --paper-deep: #d7c4a4;
  --wine: #6d0d18;
  --wine-deep: #43080d;
  --wine-soft: #8b1d2a;
  --gold: #d7b266;
  --gold-soft: #f0d89a;
  --text: #231914;
  --muted: #5f4b43;
  --white: #ffffff;
  --shadow: rgba(44, 24, 20, 0.14);

  --hero-photo-1: url("ignisprom1.png");
  --hero-photo-2: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80");
  --hero-photo-3: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=80");
  --gallery-photo-1: url("ignisprom1.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 235, 223, 0.82);
  border-bottom: 1px solid rgba(109, 13, 24, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--wine-deep);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(30, 17, 18, 0.82), rgba(30, 17, 18, 0.52)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1500&q=80") center/cover no-repeat;
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 620px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--wine-soft);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 5vw, 6rem);
  max-width: 540px;
}

.subtitle {
  max-width: 620px;
  margin-top: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--wine-deep);
  box-shadow: 0 18px 30px rgba(215, 178, 102, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding: 0;
  margin: 2.5rem 0 0;
}

.stats li {
  display: grid;
  gap: 0.3rem;
}

.stats strong {
  font-size: 1.8rem;
  color: var(--gold-soft);
}

.stats span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  grid-template-rows: 230px 180px;
  gap: 1rem;
}

.photo {
  position: relative;
  display: flex;
  align-items: end;
  padding: 1rem;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(214, 178, 103, 0.8);
  box-shadow: 0 18px 36px rgba(38, 21, 18, 0.18);
  color: var(--white);
  font-weight: 600;
  background: var(--wine-soft);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.52));
  z-index: 1;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo span {
  position: relative;
  z-index: 2;
}

.photo-a {
  background: var(--hero-photo-1) center/cover no-repeat;
}

.photo-b {
  background: var(--hero-photo-2) center/cover no-repeat;
  transform: translateY(1.2rem);
}

.photo-c {
  grid-column: 1 / 3;
  background: var(--hero-photo-3) center/cover no-repeat;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  margin-bottom: 2.4rem;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  color: var(--text);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.memory-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(109, 13, 24, 0.08);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 16px 28px rgba(31, 17, 16, 0.04);
}

.card-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 13, 24, 0.12), rgba(215, 178, 102, 0.18));
  color: var(--wine);
  border-radius: 18px;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.memory-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  color: var(--wine-deep);
}

.memory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.people-section {
  background: var(--paper-soft);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.person-card {
  overflow: hidden;
  border: 1px solid rgba(109, 13, 24, 0.1);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(31, 17, 16, 0.08);
}

.person-card:nth-child(n + 5) {
  display: none;
}

.people-grid.expanded .person-card:nth-child(n + 5) {
  display: block;
}

.people-toggle {
  display: block;
  margin: 2rem auto 0;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.people-toggle:hover {
  background: var(--wine);
  color: var(--white);
  transform: translateY(-2px);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.person-card:hover img {
  transform: scale(1.04);
}

.person-info {
  padding: 1rem 1.1rem 1.25rem;
}

.person-number {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.person-info h3 {
  margin: 0 0 0.35rem;
  color: var(--wine-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
}

.person-info p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gallery-section {
  background: linear-gradient(180deg, rgba(215, 178, 102, 0.08), rgba(255,255,255,0.2));
  padding: 6rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 22px;
  background: #d9d4ce;
  box-shadow: 0 14px 28px rgba(31, 17, 16, 0.08);
}

.gallery-item.tall {
  grid-row: span 2;
  min-height: 550px;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(33, 17, 15, 0.38);
  color: var(--white);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 10, 10, 0.84);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: min(1180px, 92vw);
}

.person-details-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(300px, 28vw);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(88vw, 760px);
  height: auto;
  max-height: min(88vh, 760px);
  aspect-ratio: 4 / 5;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  max-width: min(100%, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(215, 178, 102, 0.8);
  background: #1c1211;
}

.lightbox-ring {
  display: none;
  position: absolute;
  inset: -44px;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.ignis-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(215, 178, 102, 0.65));
}

.ignis-path path {
  fill: none;
  stroke: rgba(215, 178, 102, 0.9);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.ignis-path text {
  color: var(--gold-soft);
  fill: var(--gold-soft);
  font-family: "Inter", sans-serif;
  font-size: 3px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.lightbox.person-lightbox .lightbox-ring {
  display: block;
}

.person-details {
  display: none;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(215, 178, 102, 0.55);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(67, 8, 13, 0.96), rgba(30, 17, 18, 0.94));
  color: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  transform: translateX(28px) rotate(1deg);
  opacity: 0;
}

.lightbox.person-lightbox .person-details {
  display: block;
  animation: details-arrive 0.65s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.details-kicker,
.details-number {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.details-number {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 2.4rem;
  letter-spacing: 0;
}

.person-details h2 {
  margin: 0.2rem 0 0.65rem;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  line-height: 0.95;
}

.details-description {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

.details-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.details-list div {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.details-list dt {
  margin-bottom: 0.2rem;
  color: var(--gold-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
}

.details-role {
  display: none;
  position: relative;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(215, 178, 102, 0.2), rgba(109, 13, 24, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
  animation: role-arrive 0.45s 0.35s ease both;
}

.details-role.active {
  display: grid;
  gap: 0.25rem;
}

.details-role span {
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details-role strong {
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.music-player {
  display: none;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(215, 178, 102, 0.55);
  border-radius: 14px;
  background: rgba(30, 17, 18, 0.9);
  color: var(--white);
}

.lightbox.person-lightbox .music-player {
  display: grid;
  animation: role-arrive 0.45s 0.45s ease both;
}

.music-player-heading,
.music-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.music-note {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wine-deep);
  font-size: 1.35rem;
}

.music-label,
.music-player label {
  display: block;
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-player strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
}

.music-player select {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.music-player select option {
  color: var(--text);
}

.music-controls button {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.volume-control {
  margin-left: auto;
}

.music-controls input {
  width: 72px;
  accent-color: var(--gold);
}

@keyframes role-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes details-arrive {
  from { opacity: 0; transform: translateX(28px) rotate(1deg); }
  to { opacity: 1; transform: translateX(0) rotate(0); }
}

.lightbox-ring + img {
  position: relative;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.timeline-list {
  display: grid;
  gap: 1.1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 1.2rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(109, 13, 24, 0.08);
  box-shadow: 0 12px 22px rgba(38, 25, 22, 0.04);
}

.year {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109, 13, 24, 0.12), rgba(215, 178, 102, 0.18));
  color: var(--wine-deep);
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  color: var(--wine-deep);
}

.timeline-item p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer {
  background: #231914;
  color: rgba(255,255,255,0.84);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cards-grid,
  .people-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .cards-grid,
  .people-grid,
  .gallery-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .footer-content {
    flex-direction: column;
  }

  .lightbox-view {
    flex-direction: column;
    gap: 1.5rem;
    max-height: 92vh;
    overflow-y: auto;
  }

  .lightbox-stage {
    width: min(72vw, 420px) !important;
    height: min(58vh, 500px) !important;
  }

  .person-details {
    width: 100%;
    padding: 1.1rem;
    transform: translateY(20px) rotate(1deg);
  }

  .person-details-column {
    width: min(420px, 82vw);
  }

  @keyframes details-arrive {
    from { opacity: 0; transform: translateY(20px) rotate(1deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
  }
}
