/* ══════════════════════════════════════
   GRAPHITE CARD + CANDLES
   ══════════════════════════════════════ */

/* ── Graphite card ── */
/* Wrapper for card + floating CTA */
.card-cta-wrapper {
  position: relative;
  max-width: 760px;
  margin: 0 auto 0;
}

/* ── CTA button below the card ── */
.cta-below-card {
  display: flex;
  justify-content: center;
  padding: 260px 0 120px;
}

.cta-btn--big {
  min-width: 320px;
  min-height: 72px;
  font-size: 1.2rem;
  padding: 22px 56px;
  letter-spacing: 0.1em;
}

/* Smooth text cycling transition */
.cta-cycle-text {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cta-cycle-text--out {
  opacity: 0;
  transform: translateY(-8px);
}

.cta-cycle-text--in {
  opacity: 1;
  transform: translateY(0);
}

.graphite-card {
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(2% 0%, 98% 0%, 100% 3%, 100% 100%, 98% 100%, 0% 100%, 0% 3%);
  /* Scroll-driven grow */
  transform: scale(var(--card-scale, 1));
  transform-origin: top center;
  transition: transform 0.15s ease-out;
}

.graphite-strip {
  height: 14px;
  background: linear-gradient(120deg, #ffd24d 0%, #ff5b5b 35%, #c45bff 70%, #6b5bff 100%);
}

.graphite-body {
  padding: 2.5rem 3rem 3rem;
}

/* Heading row with candles */
.heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.graphite-body .graphite-heading {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ll-amber);
  font-family: "Electrolize", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0;
}

/* ── CSS Candle (translated from the_last_lantern CustomPaint) ── */
.candle {
  position: relative;
  width: 30px;
  height: 60px;
  flex-shrink: 0;
}

.candle-holder {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 7px;
  background: #c68a00;
  border-radius: 2px;
}

.candle-body {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 22px;
  background: linear-gradient(180deg, #fff3d4 0%, #ffe4a0 100%);
  border-radius: 1px;
}

.candle-wick {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #3e2200;
  border-radius: 1px 1px 0 0;
}

.candle-flame-wrap {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 24px;
}

.candle-glow {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 160, 0, 0.45) 0%, transparent 70%);
  animation: candle-glow-pulse 1.8s ease-in-out infinite alternate;
}

.candle-flame-outer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: linear-gradient(0deg, #e65100 0%, #ff9800 40%, #fdd835 100%);
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  clip-path: ellipse(50% 50% at 50% 60%);
  animation: candle-flicker 1.5s ease-in-out infinite alternate;
}

.candle-flame-inner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 11px;
  background: linear-gradient(0deg, #ff8f00 0%, #ffe082 50%, #fff9c4 100%);
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  clip-path: ellipse(50% 50% at 50% 60%);
  animation: candle-flicker-inner 1.2s ease-in-out infinite alternate;
}

/* Candle on the right side is slightly offset in timing */
.candle--right .candle-flame-outer {
  animation-delay: -0.4s;
}
.candle--right .candle-flame-inner {
  animation-delay: -0.6s;
}
.candle--right .candle-glow {
  animation-delay: -0.3s;
}

@keyframes candle-flicker {
  0%   { transform: translateX(-50%) scaleX(1) scaleY(1); }
  30%  { transform: translateX(-50%) scaleX(0.85) scaleY(1.1); }
  60%  { transform: translateX(-48%) scaleX(1.1) scaleY(0.9); }
  100% { transform: translateX(-52%) scaleX(0.9) scaleY(1.05); }
}

@keyframes candle-flicker-inner {
  0%   { transform: translateX(-50%) scaleX(1) scaleY(1); opacity: 0.9; }
  50%  { transform: translateX(-48%) scaleX(0.8) scaleY(1.15); opacity: 1; }
  100% { transform: translateX(-52%) scaleX(1.1) scaleY(0.9); opacity: 0.85; }
}

@keyframes candle-glow-pulse {
  0%   { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.8; transform: translateX(-50%) scale(1.15); }
}

/* ── Card text styles ── */
.graphite-body p {
  color: rgba(255, 255, 255, 0.75);
  font-family: "Electrolize", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.graphite-body p:last-child {
  margin-bottom: 0;
}

.graphite-body strong {
  color: var(--ll-white);
  font-weight: 600;
}

.graphite-body em {
  color: var(--ll-amber);
  font-style: italic;
}

.graphite-body .underline {
  text-decoration: underline;
  text-decoration-color: rgba(255, 180, 0, 0.5);
  text-underline-offset: 3px;
}
