/* THE ULTIMATE EPIPHANIES — Complete in Every Way */

:root {
  --bg-void: #050508;
  --bg-deep: #0a0a12;
  --bg-card: #12121a;
  --bg-elevated: #1a1a28;
  --electric: #00d4ff;
  --electric-soft: #5ee8ff;
  --gold: #ffd700;
  --gold-soft: #ffe066;
  --gold-dark: #cc9900;
  --cream: #f8f6f0;
  --text-primary: #e8e6e0;
  --text-muted: #8a8680;
  --border: rgba(0, 212, 255, 0.2);
  --glow: rgba(0, 212, 255, 0.2);
  --glow-gold: rgba(255, 215, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 140% 100% at 50% -20%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    var(--bg-deep);
  pointer-events: none;
  z-index: -2;
}

.flare-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 215, 0, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(2px 2px at 85% 15%, rgba(255, 215, 0, 0.35), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 50%, rgba(255, 215, 0, 0.25), transparent);
  background-size: 200% 200%;
  animation: flare-pulse 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

@keyframes flare-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--electric);
}

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

.nav a {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--electric-soft);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-image-wrapper {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px var(--glow),
    0 0 100px var(--glow-gold);
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image-wrapper figcaption,
.image-block figcaption {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  transform: scale(1.03);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.tagline {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: var(--gold-soft);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 500;
}

.opening-quote {
  border-left: 4px solid var(--electric);
  padding-left: 1.5rem;
  margin: 2rem auto;
  text-align: left;
  max-width: 600px;
}

.opening-quote p {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.opening-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 650px;
  margin: 0 auto;
}

.hero-intro strong {
  color: var(--electric-soft);
}

/* Sections */
.section {
  padding: 4rem 2rem;
}

.section.dark {
  background: rgba(18, 18, 26, 0.7);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.lead {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: var(--electric-soft);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

/* Content with image */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.content-with-image.reverse {
  direction: rtl;
}

.content-with-image.reverse > * {
  direction: ltr;
}

.text-block p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.text-block strong {
  color: var(--electric-soft);
}

.text-block em {
  color: var(--text-muted);
  font-style: italic;
}

.image-block {
  margin: 0;
}

.image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.image-block img:hover,
.gallery-item img:hover {
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.25), 0 0 40px var(--glow-gold);
}

.image-block figcaption {
  margin-top: 0.75rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 212, 255, 0.08);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item figcaption {
  padding: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border: 2px solid var(--electric);
  background: rgba(0, 212, 255, 0.1);
  color: var(--electric);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: var(--electric);
  color: var(--bg-deep);
  transform: scale(1.05);
}

.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 80px var(--glow);
  animation: lightbox-appear 0.4s ease;
}

@keyframes lightbox-appear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Coda */
.coda {
  padding: 5rem 2rem;
  text-align: center;
}

.coda p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.closing {
  margin-top: 2.5rem;
  padding: 2rem;
}

.closing p {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-soft);
}

.closing cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Footer */
.footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer .fine {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  color: var(--electric);
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.back-to-top:hover {
  background: var(--electric);
  color: var(--bg-deep);
  border-color: var(--electric);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    justify-content: center;
  }

  .content-with-image,
  .content-with-image.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .content-with-image .image-block {
    order: -1;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
