/* =============================================================
   Local Hero — Founder seat (founder.html)
   Modules: scroll-progress, reveal, spotlight (gold letter card),
   typewriter (letter opener), odometer (live seat counter).
   Self-contained.
   ============================================================= */

/* ===== SHARED SHELL ========================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--gold-ltd); width: 0; z-index: 100;
  transition: width 80ms linear; pointer-events: none;
}
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 480ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 480ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== PAGE TONE ============================================= */
body[data-page="founder"] { background: var(--surface-soft); }

/* ===== HERO LETTER =========================================== */
.founder-hero {
  padding: 80px 0 32px;
}
.founder-hero-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.founder-hero-intro .t-caption-up {
  color: var(--gold-ltd-ink);
  margin-bottom: 14px;
}

.letter {
  position: relative;
  background: var(--canvas);
  max-width: 720px;
  margin: 0 auto;
  padding: 64px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--gold-ltd);
  box-shadow: 0 12px 40px rgba(200, 155, 60, 0.16),
              0 4px 16px rgba(20, 20, 19, 0.06);
  isolation: isolate;
  overflow: hidden;
}
.letter[data-spotlight]::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 155, 60, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.letter[data-spotlight]:hover::before { opacity: 1; }

.letter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.letter-seats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--gold-ltd-pale);
  border: 1px solid var(--gold-ltd);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-ltd-ink);
  letter-spacing: 0.2px;
}
.letter-seats .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-ltd);
  box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.4);
  animation: gold-pulse 2.4s infinite ease-out;
}
@keyframes gold-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(200, 155, 60, 0); }
}
.letter-seats .odo-inline {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.letter p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--body-strong);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.letter p strong {
  color: var(--gold-ltd-ink);
  font-style: normal;
  font-weight: 500;
}
.letter p:first-of-type {
  font-size: 24px;
}
.letter p .typed::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--gold-ltd);
  animation: tw-blink 1.05s steps(2) infinite;
}
.letter p .typed.is-done::after { display: none; }
@keyframes tw-blink { 50% { opacity: 0; } }

.letter-scribble {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 36px 0 12px;
}
.letter-signature {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  /* render the SVG with its own internal styling; it's a designed asset */
}
.letter-scribble .sign {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
@media (max-width: 720px) {
  .letter-signature { height: 44px; }
}

.letter .btn {
  width: 100%;
  margin-top: 24px;
}

/* ===== ODOMETER (used inside the gold pill) ================== */
.odometer {
  display: inline-flex;
  align-items: baseline;
  height: 1em;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.odo-digit {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  position: relative;
}
.odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.odo-strip span {
  display: block;
  height: 1em;
  line-height: 1;
}

/* ===== "WHAT'S IN THE €179" ================================== */
.whats-in-section { padding: 64px 0 96px; }
.whats-in {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  padding: 56px;
  max-width: 720px;
  margin: 0 auto;
}
.whats-in .t-caption-up {
  color: var(--gold-ltd-ink);
  margin-bottom: 12px;
}
.whats-in h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 400;
  margin: 0 0 28px;
  letter-spacing: -0.4px;
}
.whats-in-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.whats-in-list li {
  padding-left: 28px;
  position: relative;
}
.whats-in-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--gold-ltd-ink);
  font-weight: 600;
}

.benchmark {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--gold-ltd-pale);
  border: 1px solid var(--gold-ltd);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold-ltd-ink);
  line-height: 1.55;
}

.whats-in-cta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.whats-in-cta .t-caption {
  color: var(--muted);
}

/* ===== TRUST FOOTER STRIP ==================================== */
.trust-strip {
  padding: 56px 0 96px;
  text-align: center;
}
.trust-strip-inner {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.trust-strip-inner strong {
  color: var(--ink);
  font-weight: 500;
}

/* ===== RESPONSIVE ============================================ */
@media (max-width: 720px) {
  .letter { padding: 40px 28px; margin: 0 16px; }
  .whats-in { padding: 36px 24px; margin: 0 16px; }
  .letter-head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .letter p:first-of-type { font-size: 20px; }
}

/* ===== REDUCED MOTION ======================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .letter[data-spotlight]::before, .odo-strip,
  .letter-seats .dot {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .letter p .typed::after { display: none; }
}
