
/* ===== DESIGN COLOR PALETTE ===== */
:root {
  --obsidian-black: #0A0A0A;
  --ink-wash: #141014;
  --ceremonial-gold: #D4AF37;
  --tarnished-bronze: #8B7355;
  --candle-flame: #E8A317;
  --aged-parchment: #E8DCC8;
  --smoke: #6B5B4F;
  --ritual-purple: #2A1B3D;
  --vaporwave-teal: #1A3A3A;
  --gold-highlight: #F5E6A3;
}
/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  background: #0A0A0A;
  color: #E8DCC8;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.svg-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== TYPOGRAPHY ===== */
.gold-foil-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(105deg, #8B7355 0%, #D4AF37 25%, #F5E6A3 50%, #D4AF37 75%, #8B7355 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil-shimmer 6s ease-in-out infinite;
  animation-play-state: paused;
}

.gold-foil-text.shimmer-active { animation-play-state: running; }

.body-text {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: #E8DCC8;
}

.mono-text {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 400;
  color: #8B7355;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

@keyframes foil-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

/* ===== SCROLL CONTAINER ===== */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* ===== SPREAD BASE ===== */
.spread {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.spread-1 { background: #0A0A0A; }
.spread-2 { background: #141014; }
.spread-3 { background: #0A0A0A; }
.spread-4 { background: #141014; }
.spread-5 { background: #0A0A0A; }
/* ===== BLUR-FOCUS REVEAL ===== */
.spread-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 12vw;
  padding-right: 4vw;
  filter: blur(12px);
  opacity: 0.3;
  transition: filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease-out;
  position: relative;
  z-index: 2;
}

.spread-content.in-view {
  filter: blur(0);
  opacity: 1;
}

/* ===== WATERCOLOR WASHES ===== */
.watercolor-wash {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.wash-purple {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(42,27,61,0.6) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 20%, rgba(26,58,58,0.4) 0%, transparent 60%);
  filter: url(#watercolor-1);
}

.wash-teal {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(26,58,58,0.6) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(42,27,61,0.3) 0%, transparent 60%);
  filter: url(#watercolor-2);
}

.wash-combined {
  background:
    radial-gradient(ellipse at 40% 40%, rgba(42,27,61,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(26,58,58,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 10%, rgba(212,175,55,0.1) 0%, transparent 50%);
  filter: url(#watercolor-3);
}

.wash-purple-deep {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(42,27,61,0.7) 0%, transparent 80%),
    radial-gradient(ellipse at 10% 90%, rgba(26,58,58,0.3) 0%, transparent 50%);
  filter: url(#watercolor-1);
}

.wash-teal-deep {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(26,58,58,0.5) 0%, transparent 70%),
    radial-gradient(ellipse at 30% 80%, rgba(42,27,61,0.4) 0%, transparent 60%);
  filter: url(#watercolor-2);
}
/* ===== SPREAD 1: COVER ===== */
.cover-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 0;
}

.spread-1 .spread-content { padding-left: 0; padding-right: 0; }

.cover-logotype h1 {
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  margin-bottom: 24px;
}

.cover-subtitle { margin-bottom: 60px; }
.cover-subtitle .mono-text {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B7355;
}

.cover-flame-container {
  margin-bottom: 60px;
}

.candle-large { width: 60px; height: 100px; }
.candle-medium { width: 45px; height: 75px; }
.candle-small { width: 30px; height: 50px; }
.candle-tiny { width: 24px; height: 40px; margin-top: 20px; }
.candle-colophon { width: 100px; height: 160px; }

.candle-flame { display: block; }

.section-divider {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.divider-line {
  width: 100%;
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
}

.cover-scroll-hint {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(212, 175, 55, 0.4);
  animation: pulse-hint 3s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
/* ===== SPREAD 2: FEATURE ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 30px;
  align-items: center;
  height: 100vh;
}

.feature-text {
  grid-column: 1 / 6;
  padding-right: 40px;
}

.feature-headline {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.1;
  margin-bottom: 40px;
}

.feature-text .body-text {
  margin-bottom: 24px;
}

.meta-text {
  margin-top: 32px;
  color: #6B5B4F;
  font-size: 12px;
}

.feature-candle-panel {
  grid-column: 6 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 0;
}

.candle-vertical-line {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(212,175,55,0.3), rgba(212,175,55,0.05));
  margin: 20px 0;
}

/* ===== SPREAD 3: VISUAL ESSAY ===== */
.essay-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 80vh;
  align-self: center;
}

.essay-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.panel-top-left { grid-column: 1 / 4; grid-row: 1; }
.panel-top-right { grid-column: 4 / 9; grid-row: 1; }
.panel-bottom-full { grid-column: 1 / 9; grid-row: 2; }

.panel-wash {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}

.panel-wash-1 {
  background: radial-gradient(ellipse at 50% 50%, rgba(42,27,61,0.8) 0%, rgba(10,10,10,0.9) 100%);
  filter: url(#watercolor-1);
}

.panel-wash-2 {
  background: radial-gradient(ellipse at 40% 60%, rgba(26,58,58,0.8) 0%, rgba(10,10,10,0.9) 100%);
  filter: url(#watercolor-2);
}

.panel-wash-3 {
  background: radial-gradient(ellipse at 60% 30%, rgba(42,27,61,0.5) 0%, rgba(26,58,58,0.5) 50%, rgba(10,10,10,0.9) 100%);
  filter: url(#watercolor-3);
}

.panel-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: 16px;
}

.panel-text { font-size: 15px; line-height: 1.6; }

.panel-headline {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}
/* ===== SPREAD 4: MANIFESTO ===== */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 100vh;
  align-items: center;
}

.manifesto-text {
  grid-column: 2 / 8;
  padding: 0 4vw;
}

.manifesto-line {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
  margin-bottom: 28px;
  filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  transition: filter 0.6s ease-out, opacity 0.6s ease-out, transform 0.6s ease-out;
}

.manifesto-line.line-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.manifesto-emphasis {
  font-size: clamp(24px, 3vw, 36px);
  margin-top: 12px;
  margin-bottom: 36px;
}

.manifesto-sig {
  margin-top: 20px;
  font-size: 13px;
  color: #6B5B4F;
}

/* ===== SPREAD 5: COLOPHON ===== */
.colophon-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  width: 100%;
}

.colophon-flame-area {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colophon-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 40px;
}

.colophon-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(212, 175, 55, 0.6);
  display: block;
  margin-bottom: 16px;
}

.colophon-text {
  font-size: 14px;
  line-height: 1.7;
  color: #8B7355;
}

.colophon-address {
  margin-top: 12px;
  font-size: 11px;
  color: #6B5B4F;
  word-break: break-all;
}
/* ===== PAGE INDICATOR ===== */
.page-indicator {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  transition: background 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.dot.active {
  background: #D4AF37;
  transform: scale(1.3);
}

/* ===== CANDLE WIND RESPONSE ===== */
.candle-flame {
  transition: transform 0.3s ease-out;
}

/* ===== STAGGER DELAYS FOR BLUR-FOCUS ===== */
.spread-content .gold-foil-text { transition-delay: 0ms; }
.spread-content .body-text { transition-delay: 200ms; }
.spread-content .candle-flame,
.spread-content .section-divider,
.spread-content .cover-scroll-hint { transition-delay: 400ms; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .spread-content {
    padding-left: 6vw;
    padding-right: 3vw;
  }

  .cover-logotype h1 { font-size: clamp(48px, 14vw, 72px); }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .feature-text {
    grid-column: 1 / 5;
    padding-right: 0;
  }

  .feature-candle-panel { display: none; }

  .feature-headline { font-size: clamp(28px, 7vw, 48px); }

  .essay-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr 1fr;
    height: 85vh;
  }

  .panel-top-left { grid-column: 1 / 5; grid-row: 1; }
  .panel-top-right { grid-column: 1 / 5; grid-row: 2; }
  .panel-bottom-full { grid-column: 1 / 5; grid-row: 3; }

  .panel-content { padding: 24px; }

  .manifesto-grid { grid-template-columns: repeat(4, 1fr); }
  .manifesto-text { grid-column: 1 / 5; padding: 0 2vw; }

  .manifesto-line { font-size: 16px; margin-bottom: 20px; }
  .manifesto-emphasis { font-size: 20px; }

  .colophon-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .candle-colophon { width: 70px; height: 110px; }

  .page-indicator { bottom: 20px; right: 16px; }
}

/* ===== SCROLLBAR STYLING ===== */
.scroll-container::-webkit-scrollbar { width: 0; background: transparent; }
.scroll-container { scrollbar-width: none; -ms-overflow-style: none; }