/* ==========================================================================
   SCROLL-CRAFT & PEAR.NO CINEMATIC EDITORIAL HERO STAGE
   ========================================================================== */
#hero-stage.stage {
  position: relative;
  height: 350vh;
  background: #0B0A09;
  z-index: 25;
}

#hero-pin.pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B0A09 url('../imgs/blog-hero.webp') center/cover no-repeat;
}

.hero-scrub-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
  filter: brightness(0.70) contrast(1.08);
  will-change: transform;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(11,10,9,0.2) 0%, rgba(11,10,9,0.7) 65%, rgba(11,10,9,0.95) 100%),
              linear-gradient(180deg, rgba(11,10,9,0.85) 0%, rgba(11,10,9,0.15) 30%, rgba(11,10,9,0.25) 70%, rgba(11,10,9,0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.stage-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.stage-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.beat-item {
  position: absolute;
  left: var(--pad, 32px);
  right: var(--pad, 32px);
  max-width: 980px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  pointer-events: none;
  color: var(--bone);
  will-change: transform, opacity;
}

.beat-item.active {
  pointer-events: auto;
}

/* Masked Line-by-Line Reveal (Pear.no signature) */
.ln {
  display: block;
  overflow: hidden;
  line-height: inherit;
}

.ln i {
  display: inline-block;
  font-style: normal;
  transform: translateY(0);
  will-change: transform, opacity;
  transition: none !important; /* Managed continuously by JS 60fps Lerp */
}

.beat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184,153,104,0.25);
  max-width: 820px;
}

.stage-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 8.5vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 24px;
}

.stage-serif-italic {
  font-style: italic !important;
  color: var(--gold-soft);
  font-weight: 400;
}

.stage-serif-gold {
  color: var(--gold-soft);
  font-style: italic !important;
  font-weight: 400;
}

.stage-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.8vw, 70px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 22px;
  max-width: 880px;
}

.stage-tagline,
.stage-body {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(244,239,230,0.85);
  max-width: 720px;
  margin-bottom: 28px;
}

.stage-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  pointer-events: auto;
}

.stage-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hint-mouse {
  width: 18px;
  height: 30px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hint-wheel {
  width: 3px;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  animation: mouseWheel 1.8s infinite;
}

@keyframes mouseWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.beat-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(184, 153, 104, 0.12);
  border: 1px solid rgba(184, 153, 104, 0.35);
  backdrop-filter: blur(8px);
}

.beat-kpis {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 640px;
}

.beat-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
  letter-spacing: -0.02em;
}

.kpi-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.6);
  text-transform: uppercase;
}

.beat-partners {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(20, 19, 17, 0.75);
  border: 1px solid rgba(184, 153, 104, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.partner-pill span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--bone);
}

.partner-pill small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* CHAPTER RAIL (Pear.no Signature Right Rail) */
.chapter-rail {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 18px;
}

.rail-track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(244,239,230,0.12);
  border-radius: 2px;
}

.rail-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
  background: none;
  border: none;
  padding: 4px 0;
}

.rail-item:hover {
  opacity: 0.85;
  transform: translateX(-3px);
}

.rail-item.active {
  opacity: 1;
  transform: translateX(-5px);
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* BOTTOM SCRUBBER BAR */
.stage-scrubber-bar {
  position: absolute;
  bottom: 28px;
  left: var(--pad, 32px);
  right: var(--pad, 32px);
  max-width: calc(var(--container) - 64px);
  margin: 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.scrub-track {
  width: 100%;
  height: 3px;
  background: rgba(244,239,230,0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.scrub-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
  border-radius: 2px;
  transition: width 0.08s linear;
}

.scrub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-light);
}

.scrub-status {
  color: var(--gold-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scrub-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* QUICK CONSULTATION SECTION */
.quick-consult-wrap {
  background: linear-gradient(135deg, rgba(22,19,15,0.96) 0%, rgba(14,14,12,0.98) 100%);
  border: 1px solid rgba(184,153,104,0.3);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

@media (max-width: 992px) {
  .chapter-rail {
    right: 20px;
    gap: 14px;
    padding-right: 12px;
  }
  .rail-label {
    display: none;
  }
  .beat-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  #hero-stage.stage {
    height: 300vh;
  }
  .stage-scrubber-bar {
    bottom: 20px;
  }
  .chapter-rail {
    display: none;
  }
  .quick-consult-wrap {
    padding: 32px 20px;
  }
}

/* ==========================================================================
   PEAR.NO 3D CYLINDRICAL QUESTIONS (SSS) SECTION
   ========================================================================== */
.questions-stage {
  position: relative;
  background: #0B0A09;
  color: var(--bone);
  padding: 130px 0 150px;
  overflow: hidden;
  border-top: 1px solid rgba(184, 153, 104, 0.2);
  border-bottom: 1px solid rgba(184, 153, 104, 0.2);
}

.questions-head {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 5;
}

.questions-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.questions-eyebrow::before,
.questions-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.questions-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--bone);
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 820px;
}

.questions-title em {
  font-style: italic;
  color: var(--gold-soft);
}

.questions-sub {
  font-size: 16px;
  color: var(--mist-light);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3D Cylindrical Carousel Arena (Pear.no signature) */
.faq-arena {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1600px;
  perspective-origin: 50% 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 30px;
  user-select: none;
}

/* Question Card (Pear.no exact replica with luxury law firm DNA) */
.fq-card {
  box-sizing: border-box;
  width: 330px;
  height: 380px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, filter, opacity;
  background: rgba(22, 19, 15, 0.94);
  border: 1px solid rgba(184, 153, 104, 0.28);
  border-radius: 4px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(184, 153, 104, 0.06);
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.fq-card:hover {
  border-color: var(--gold);
}

.fq-card.on {
  border-color: var(--gold);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 30px rgba(184, 153, 104, 0.22);
  background: rgba(28, 24, 19, 0.98);
}

/* Pear Star Sparkle Ornaments */
.fq-star {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0.25;
}

.fq-star svg {
  width: 100%;
  height: 100%;
  fill: var(--gold);
  display: block;
}

.fq-card.on .fq-star {
  opacity: 1;
  transform: scale(1.2);
}

.fq-star.top-left {
  top: 10px;
  left: 10px;
}

.fq-star.bottom-right {
  bottom: 10px;
  right: 10px;
}

.fq-card-inner-frame {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(184, 153, 104, 0.15);
  pointer-events: none;
  border-radius: 2px;
}

.fq-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.fq-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--bone);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.fq-card-answer {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist-light);
  opacity: 0.35;
  transition: opacity 0.45s ease;
  margin-top: auto;
}

.fq-card.on .fq-card-answer {
  opacity: 0.95;
  color: #E8DCC4;
}

/* Controls */
.fq-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}

.fq-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(184, 153, 104, 0.35);
  background: rgba(22, 19, 15, 0.8);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.fq-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: scale(1.08);
}

.fq-dots {
  display: flex;
  gap: 10px;
}

.fq-dot {
  width: 28px;
  height: 2px;
  background: rgba(244, 239, 230, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fq-dot.active {
  background: var(--gold);
  height: 3px;
}

/* DYNAMIC SCROLL TYPOGRAPHY (Pear.no Continuous Movement) */
.scrub-text-line {
  display: block;
  overflow: hidden;
  line-height: inherit;
}

.scrub-text-line > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(112%);
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

@media (max-width: 768px) {
  .faq-arena {
    height: 420px;
  }
  .fq-card {
    width: 280px;
    height: 360px;
    padding: 28px 20px;
  }
  .fq-card-title {
    font-size: 18px;
  }
  .fq-card-answer {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   MANIFESTO SCROLL FLOW (Enters from Bottom, Dissolves Upwards)
   ========================================================================== */
#manifesto-stage.manifesto-stage {
  position: relative;
  height: 250vh;
  background: #0B0A09;
  z-index: 20;
}

.manifesto-pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(34, 27, 19, 0.72) 0%, rgba(16, 14, 12, 0.96) 55%, #0B0A09 100%);
  border-bottom: 1px solid rgba(184, 153, 104, 0.2);
}

.manifesto-bg-glow {
  position: absolute;
  width: 850px;
  height: 520px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(184, 153, 104, 0.18) 0%, rgba(184, 153, 104, 0.04) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(65px);
  will-change: opacity, transform;
}

.manifesto-bg-crest {
  position: absolute;
  width: clamp(260px, 34vw, 420px);
  height: clamp(260px, 34vw, 420px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  will-change: transform, opacity;
}

.manifesto-crest-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 25px rgba(184, 153, 104, 0.18));
}

.manifesto-container {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad, 32px);
}

.manifesto-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.manifesto-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
  will-change: transform, opacity;
}

.manifesto-eyebrow::before,
.manifesto-eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.3vw, 56px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0 auto 42px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manifesto-quote .m-ln {
  display: block;
  overflow: hidden;
}

.manifesto-quote .m-ln i {
  display: inline-block;
  font-style: normal;
  will-change: transform, opacity, filter;
  transform: translateY(0);
  opacity: 1;
  transition: none !important;
}

.manifesto-quote em.gold {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 500;
  text-shadow: 0 0 30px rgba(207, 180, 122, 0.3);
}

.manifesto-signature {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.65);
  border: 1px solid rgba(184, 153, 104, 0.25);
  backdrop-filter: blur(10px);
  will-change: transform, opacity;
  transform: translateY(0);
}

.sig-names {
  color: var(--gold);
  font-weight: 500;
}

.sig-dot {
  opacity: 0.5;
}

.sig-role {
  color: var(--mist-light);
}

@media (max-width: 768px) {
  #manifesto-stage.manifesto-stage {
    height: 200vh;
  }
  .manifesto-quote {
    font-size: clamp(22px, 5.8vw, 34px);
    line-height: 1.4;
  }
  .manifesto-signature {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    padding: 10px 18px;
  }
  .sig-dot {
    display: none;
  }
}

