/* ═══════════════════════════════════════════
   Castle of Midnight — Scroll Sections
   ═══════════════════════════════════════════ */

/* ─── Apple-style scroll sections ─── */

.scroll-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 24px;
  position: relative;
}

/* Animated elements (JS-driven) */
.anim {
  will-change: transform, opacity, filter;
  opacity: 0;
  transform: scale(0.88) translateY(60px);
  filter: blur(8px);
  transition: none;
}

.anim.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.anim.zoom-past {
  opacity: 0;
  transform: scale(1.08) translateY(-40px);
  filter: blur(4px);
}

/* ─── Background utilities ─── */

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-sand  { background: var(--sand); }

/* ─── Divider ─── */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.section-divider .line {
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--sand), transparent);
  opacity: 0.5;
}

/* ─── Typography ─── */

.section-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.45;
  margin-bottom: 32px;
  text-align: center;
}

.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--dark);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.heading-lg em {
  font-style: italic;
  font-weight: 400;
}

.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  color: var(--dark);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.heading-xl em {
  font-style: italic;
}

.body-text {
  font-weight: 300;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  color: var(--dark);
  line-height: 2.1;
  opacity: 0.55;
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: center;
}

.sub-text {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--dark);
  text-align: center;
  max-width: 480px;
  line-height: 1.9;
  margin-bottom: 48px;
  opacity: 0.5;
}

.accent-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--dark);
  opacity: 0.4;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 50px;
}

.thin-line {
  width: 40px;
  height: 1px;
  background: var(--sand);
  margin: 0 auto 50px;
}

/* ─── Values row ─── */

.values-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.value-item {
  text-align: center;
}

.value-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 3.2rem;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 10px;
}

.value-label {
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.35;
}

/* ─── Quote ─── */

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--dark);
  max-width: 660px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  opacity: 0.65;
  text-align: center;
}

.quote-attr {
  margin-top: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.3;
  text-align: center;
}

/* ─── Responsive ─── */

@media (max-width: 700px) {
  .values-row { gap: 40px; }
  .scroll-section { min-height: auto; padding: 80px 24px; }
}
