/* ═══════════════════════════════════════════════════════════════
   CELEBRATING 50 YEARS OF LEGACY — bolaray50.com
   Midnight black · Champagne gold · Ivory · Platinum
   ═══════════════════════════════════════════════════════════════ */

:root {
  --black:      #060608;
  --black-2:    #0b0b10;
  --black-3:    #101018;
  --gold:       #c9a75f;
  --gold-deep:  #9a7b3c;
  --gold-light: #e9d5a3;
  --ivory:      #f4efe4;
  --ivory-dim:  #cfc9ba;
  --platinum:   #9aa0ab;
  --line:       rgba(201, 167, 95, 0.22);
  --card:       rgba(255, 255, 255, 0.025);

  --font-display: "Playfair Display", Georgia, serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Montserrat", "Inter", -apple-system, sans-serif;

  --gold-gradient: linear-gradient(100deg, #8a6d34 0%, #c9a75f 25%, #f3e3b4 50%, #c9a75f 75%, #8a6d34 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory-dim);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ─── Gold gradient text ─── */
.gold-text {
  background: var(--gold-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.05em 2.6em;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-gold { color: var(--black); background: var(--gold-gradient); background-size: 200% auto; border: none; }
.btn-gold:hover { background-position: 100% center; box-shadow: 0 8px 40px rgba(201,167,95,0.35); transform: translateY(-2px); }
.btn-ghost { color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(201,167,95,0.1); box-shadow: 0 0 30px rgba(201,167,95,0.15) inset; }

/* ═══════════════ PRELOADER ═══════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s var(--ease), visibility 1s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-monogram {
  font-family: var(--font-display);
  font-size: 3rem; letter-spacing: 0.2em;
  background: var(--gold-gradient); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s linear infinite;
}
.preloader-line {
  width: 0; height: 1px; margin: 1.2rem auto;
  background: var(--gold);
  animation: growLine 1.8s var(--ease) forwards;
}
@keyframes growLine { to { width: 160px; } }
.preloader-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem; color: var(--platinum); letter-spacing: 0.15em;
}

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  transition: all 0.6s var(--ease);
}
.nav.scrolled {
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.8rem; }
.nav-monogram {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-light);
  letter-spacing: 0.08em;
}
.nav-brand-text {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.4em; color: var(--ivory);
}
.nav-brand-text em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links a {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-dim); position: relative; padding: 0.3em 0;
  transition: color 0.4s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.45s var(--ease);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta {
  border: 1px solid var(--gold); color: var(--gold-light);
  padding: 0.7em 1.5em;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--black); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--gold-light); margin: 7px 0; transition: 0.4s var(--ease); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(201,167,95,0.10), transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 110%, rgba(154,123,60,0.08), transparent 60%),
    var(--black);
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 7rem 1.2rem 4rem; }

.hero-kicker {
  font-size: 0.72rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--platinum);
}
.hero-fifty {
  position: relative; width: clamp(150px, 24vw, 220px); height: clamp(150px, 24vw, 220px);
  margin: 2.4rem auto 2.2rem; display: grid; place-items: center;
}
.fifty-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line);
}
.fifty-ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold); border-right-color: rgba(201,167,95,0.4);
  animation: ringSpin 9s linear infinite;
}
.fifty-ring::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  border: 1px dotted rgba(201,167,95,0.35);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.fifty-number {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 9vw, 6.6rem); font-weight: 500; line-height: 1;
  background: var(--gold-gradient); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
  text-shadow: 0 0 80px rgba(201,167,95,0.4);
  filter: drop-shadow(0 0 26px rgba(201,167,95,0.25));
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.14;
  color: var(--ivory); letter-spacing: 0.01em;
}
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin: 1.8rem auto; }
.hero-rule span { width: clamp(60px, 10vw, 130px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-rule i { color: var(--gold); font-style: normal; font-size: 0.85rem; }
.hero-sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--ivory-dim);
  letter-spacing: 0.08em; margin-bottom: 2.8rem;
}
.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1px solid rgba(201,167,95,0.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px; z-index: 2;
}
.hero-scroll span {
  width: 3px; height: 8px; background: var(--gold); border-radius: 2px;
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }

/* Hero entrance animation */
.reveal-hero { opacity: 0; transform: translateY(26px); animation: heroIn 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ═══════════════ SECTIONS ═══════════════ */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--black) 0%, var(--black-2) 18%, var(--black-2) 82%, var(--black) 100%); }

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-kicker {
  font-size: 0.68rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); color: var(--ivory); line-height: 1.2;
}
.section-sub {
  font-family: var(--font-serif); font-style: italic; font-size: 1.12rem;
  color: var(--platinum); margin-top: 0.9rem;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════ ABOUT ═══════════════ */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start;
}
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--line);
  padding: 14px; background: var(--black-2);
}
.photo-frame::before {
  content: ""; position: absolute; inset: 14px; z-index: 1;
  border: 1px solid rgba(201,167,95,0.35); pointer-events: none;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(12%) contrast(1.04); transition: transform 1.2s var(--ease); }
.photo-frame:hover img { transform: scale(1.045); }
.photo-placeholder {
  position: absolute; inset: 14px; flex-direction: column; gap: 0.6rem;
  align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 35%, rgba(201,167,95,0.10), transparent 70%), var(--black-3);
  border: 1px solid rgba(201,167,95,0.35);
}
.photo-placeholder span {
  font-family: var(--font-display); font-size: 3.4rem; color: var(--gold);
  border: 1px solid var(--line); border-radius: 50%;
  width: 120px; height: 120px; display: grid; place-items: center;
}
.photo-placeholder small { font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--platinum); }
.about-photo figcaption {
  text-align: center; margin-top: 1.1rem;
  font-family: var(--font-serif); font-style: italic; color: var(--platinum); font-size: 1rem;
}
.about-copy p { margin-bottom: 1.4rem; font-size: 1.02rem; color: var(--ivory-dim); }
.drop-cap::first-letter {
  font-family: var(--font-display); float: left;
  font-size: 3.6em; line-height: 0.85; padding-right: 0.14em; padding-top: 0.06em;
  color: var(--gold);
}

.quote {
  position: relative; margin: 2.6rem 0; padding: 2rem 2.4rem 2rem 3rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(201,167,95,0.06), transparent 70%);
}
.quote-mark {
  position: absolute; top: -0.35em; left: 0.35rem;
  font-family: var(--font-display); font-size: 4rem; color: rgba(201,167,95,0.4); line-height: 1;
}
.quote p {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.55; color: var(--ivory);
  margin: 0 0 0.8rem !important;
}
.quote cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.quote-center { border-left: none; text-align: center; max-width: 760px; margin: 0 auto 2.2rem; padding: 1.6rem 1rem; background: none; }
.quote-center .quote-mark { left: 50%; transform: translateX(-50%); }

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 2.8rem;
}
.stat { background: var(--black); padding: 1.6rem 0.8rem; text-align: center; }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--gold-light);
}
.stat span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--platinum); }

/* ═══════════════ TIMELINE (horizontal showcase) ═══════════════ */
.timeline-wrap { position: relative; }
.timeline {
  display: flex; gap: 1.2rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0.5rem 0.2rem 1.6rem;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.timeline::-webkit-scrollbar { height: 4px; }
.timeline::-webkit-scrollbar-track { background: rgba(201,167,95,0.08); }
.timeline::-webkit-scrollbar-thumb { background: var(--gold-deep); }
.tl-item {
  position: relative; flex: 0 0 auto;
  width: clamp(260px, 30vw, 330px);
  padding: 2.2rem 1.8rem 1.9rem;
  background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid rgba(201,167,95,0.55);
  scroll-snap-align: start;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.tl-item:hover { transform: translateY(-5px); border-color: rgba(201,167,95,0.55); }
.tl-dot {
  position: absolute; top: -7px; left: 1.8rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--gold);
  box-shadow: 0 0 14px rgba(201,167,95,0.6);
}
.tl-year {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 500;
  background: var(--gold-gradient); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tl-tag {
  display: inline-block; font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); padding: 0.35em 1em; margin: 0.55rem 0 0.75rem;
}
.tl-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ivory); margin-bottom: 0.5rem; }
.tl-text { font-size: 0.88rem; color: var(--ivory-dim); }
.tl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6,6,8,0.85); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(6px);
}
.tl-nav:hover { background: var(--gold); color: var(--black); }
.tl-nav.prev { left: -14px; }
.tl-nav.next { right: -14px; }

/* ═══════════════ EMPIRE ═══════════════ */
.empire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.empire-card {
  position: relative; padding: 2.6rem 2.1rem;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
  overflow: hidden;
}
.empire-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-gradient); background-size: 200% auto;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.empire-card:hover { transform: translateY(-8px); border-color: rgba(201,167,95,0.55); box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(201,167,95,0.07); }
.empire-card:hover::before { transform: scaleX(1); }
.empire-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.6rem;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold-light); font-size: 1.3rem;
}
.empire-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--ivory); margin-bottom: 0.35rem; }
.empire-role { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1rem; }
.empire-card p { font-size: 0.92rem; color: var(--ivory-dim); }

/* ═══════════════ FAMILY ═══════════════ */
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.family-card {
  text-align: center; padding: 2.6rem 1.4rem;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), border-color 0.6s, background 0.6s;
}
.family-card:hover { transform: translateY(-6px); border-color: rgba(201,167,95,0.5); background: rgba(201,167,95,0.04); }
.family-emblem {
  width: 64px; height: 64px; margin: 0 auto 1.4rem;
  border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light);
}
.family-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ivory); }
.family-rel { display: block; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0.5rem 0 1rem; }
.family-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; color: var(--ivory-dim); line-height: 1.6; }

/* ═══════════════ GALLERY ═══════════════ */
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.6rem; }
.gallery-tab {
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory-dim); background: none; border: 1px solid var(--line);
  padding: 0.75em 1.7em; cursor: pointer; transition: all 0.45s var(--ease);
}
.gallery-tab:hover { color: var(--gold-light); border-color: var(--gold); }
.gallery-tab.active { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 500; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); padding: 10px; background: var(--black-2);
  transition: border-color 0.5s, opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery-item.hide, .gallery-item.capped { display: none; }
.gallery-more { text-align: center; margin-top: 2rem; }
.gallery-item:hover { border-color: rgba(201,167,95,0.6); }
.gallery-item-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 1s; filter: grayscale(20%); }
.gallery-item:hover img { transform: scale(1.09); filter: grayscale(0%); }
.gallery-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,167,95,0.08), transparent 70%), var(--black-3);
  border: 1px solid rgba(201,167,95,0.2);
  transition: transform 1s var(--ease);
}
.gallery-item:hover .gallery-ph { transform: scale(1.05); }
.gallery-ph span { font-family: var(--font-display); font-size: 1.9rem; color: rgba(201,167,95,0.65); }
.gallery-ph small { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--platinum); }
.gallery-caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(4,4,6,0.92));
  font-family: var(--font-serif); font-style: italic; font-size: 0.98rem; color: var(--ivory);
  opacity: 0; transform: translateY(10px); transition: all 0.55s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: none; }

/* ═══════════════ TRIBUTES ═══════════════ */
.tribute-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.tribute-card {
  position: relative; padding: 2.4rem 2rem 2rem;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), border-color 0.6s;
}
.tribute-card:hover { transform: translateY(-5px); border-color: rgba(201,167,95,0.5); }
.tribute-card::before {
  content: "“"; position: absolute; top: 0.4rem; left: 1.2rem;
  font-family: var(--font-display); font-size: 3.2rem; color: rgba(201,167,95,0.35); line-height: 1;
}
.tribute-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.08rem; color: var(--ivory); line-height: 1.6; margin-bottom: 1.4rem; }
.tribute-card footer strong { display: block; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.tribute-card footer span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--platinum); }

.tribute-form-wrap {
  max-width: 720px; margin: 0 auto; padding: 3rem clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201,167,95,0.05), transparent 60%);
}
.form-title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--ivory); text-align: center; margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
#tributeForm input, #tributeForm textarea {
  width: 100%; padding: 1em 1.2em;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color: var(--ivory); font-family: var(--font-sans); font-size: 0.92rem; font-weight: 300;
  transition: border-color 0.4s; resize: vertical;
}
#tributeForm input::placeholder, #tributeForm textarea::placeholder { color: rgba(154,160,171,0.7); }
#tributeForm input:focus, #tributeForm textarea:focus { outline: none; border-color: var(--gold); }
#tributeForm textarea { margin-bottom: 1.4rem; }
#tributeForm .btn { width: 100%; }
.form-note { text-align: center; font-size: 0.72rem; color: var(--platinum); margin-top: 1rem; letter-spacing: 0.06em; }
.form-feedback { text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--gold-light); margin-top: 0.7rem; min-height: 1.6em; }

/* ═══════════════ 50 LESSONS ═══════════════ */
.lessons-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.55rem;
  max-width: 860px; margin: 0 auto 2.8rem;
}
.lesson-medallion {
  aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--ivory-dim); background: var(--card);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; transition: all 0.45s var(--ease);
}
.lesson-medallion:hover { border-color: var(--gold); color: var(--gold-light); transform: scale(1.12); box-shadow: 0 0 22px rgba(201,167,95,0.25); }
.lesson-medallion.active {
  background: var(--gold-gradient); background-size: 200% auto; color: var(--black);
  border-color: var(--gold); font-weight: 600;
  box-shadow: 0 0 30px rgba(201,167,95,0.45);
}
.lesson-display {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 2.8rem 2rem; border: 1px solid var(--line); position: relative;
  background: linear-gradient(180deg, rgba(201,167,95,0.045), transparent);
  min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.lesson-display::before, .lesson-display::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold);
}
.lesson-display::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.lesson-display::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.lesson-display-num {
  font-family: var(--font-display); font-size: 2rem;
  background: var(--gold-gradient); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lesson-display-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--ivory); line-height: 1.6;
  transition: opacity 0.4s;
}
.lesson-display-text.fading { opacity: 0; }

/* ═══════════════ EVENT ═══════════════ */
.event-card {
  max-width: 880px; margin: 0 auto 2.4rem; padding: clamp(2rem, 5vw, 3.6rem);
  border: 1px solid var(--gold); position: relative;
  background: linear-gradient(180deg, rgba(201,167,95,0.07), rgba(201,167,95,0.015));
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.event-card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(201,167,95,0.3);
}
.event-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.5rem; margin-bottom: 2.6rem; }
.event-item .event-label {
  display: block; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.event-item strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ivory); line-height: 1.35; }
.event-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.event-map { max-width: 880px; margin: 0 auto; border: 1px solid var(--line); padding: 10px; background: var(--black-2); }
.event-map iframe {
  width: 100%; height: 280px; border: 0; display: block;
  filter: grayscale(85%) invert(90%) contrast(85%) sepia(18%);
}

/* ═══════════════ VIDEO ═══════════════ */
.video-section { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(201,167,95,0.06), transparent 70%), var(--black); }
.video-frame {
  max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9;
  border: 1px solid var(--gold); padding: 10px; background: var(--black-2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(201,167,95,0.08);
}
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-poster {
  width: 100%; height: 100%; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  background:
    radial-gradient(ellipse 60% 60% at 50% 42%, rgba(201,167,95,0.13), transparent 70%),
    var(--black-3);
  cursor: pointer;
}
.video-play {
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-light);
  display: grid; place-items: center; margin-bottom: 1rem;
  transition: all 0.5s var(--ease); position: relative;
}
.video-play::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(201,167,95,0.3);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.video-poster:hover .video-play { background: var(--gold); color: var(--black); box-shadow: 0 0 50px rgba(201,167,95,0.5); }
.video-poster-title { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--ivory); letter-spacing: 0.12em; }
.video-poster-sub { font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--platinum); }

/* ═══════════════ CLOSING ═══════════════ */
.closing {
  position: relative; text-align: center;
  padding: clamp(5rem, 9vw, 7rem) 0; overflow: hidden;
  background: var(--black);
}
.closing-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,167,95,0.13), transparent 60%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 0%,100% { opacity: 0.55; transform: translate(-50%,-50%) scale(0.94); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } }
.closing-content { position: relative; z-index: 2; }
.closing-fifty {
  font-family: var(--font-display); font-size: clamp(6rem, 16vw, 11rem); line-height: 1;
  background: var(--gold-gradient); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
  opacity: 0.9; filter: drop-shadow(0 0 40px rgba(201,167,95,0.3));
}
.closing-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--ivory); margin: 1.4rem 0 0.9rem; }
.closing-sub { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--platinum); margin-bottom: 2.6rem; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; background: var(--black); }
.footer-inner { text-align: center; }
.footer-monogram {
  display: inline-block; font-family: var(--font-display); font-size: 1.1rem;
  color: var(--gold); letter-spacing: 0.3em; margin-bottom: 1rem;
}
.footer p { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--platinum); }
.footer-fine { margin-top: 0.6rem; opacity: 0.65; }
.footer-fine a { border-bottom: 1px solid rgba(201,167,95,0.4); transition: color 0.3s; }
.footer-fine a:hover { color: var(--gold-light); }

/* ═══════════════ LIGHTBOX ═══════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4,4,6,0.94); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox-body { max-width: min(1000px, 92vw); max-height: 86vh; border: 1px solid var(--gold); padding: 10px; background: var(--black-2); }
.lightbox-body img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-body .gallery-ph { min-width: min(640px, 80vw); min-height: min(420px, 55vh); }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 2rem;
  font-size: 2.4rem; line-height: 1; color: var(--gold-light);
  background: none; border: none; cursor: pointer; transition: transform 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1000px) {
  .empire-grid { grid-template-columns: repeat(2, 1fr); }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .tribute-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lessons-grid { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(6,6,8,0.97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav-links a { font-size: 0.85rem; }
  .nav.open .nav-links { opacity: 1; visibility: visible; z-index: 99; }
  .nav-toggle { display: block; position: relative; z-index: 101; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .tl-nav { display: none; }

  .event-details { grid-template-columns: 1fr; gap: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .empire-grid, .family-grid, .tribute-grid, .gallery-grid { grid-template-columns: 1fr; }
  .lessons-grid { grid-template-columns: repeat(5, 1fr); }
  .nav-brand-text { display: none; }
}

/* ═══════════════ MOTION SAFETY ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
}
