/* ─────────────────────────────────────────────────────────────────────
   fuse — landing
   editorial-dark, ember-accented. one ritual, one fuse, one match.
   ───────────────────────────────────────────────────────────────────── */

:root {
  /* warm coffee/ember palette, oklch for perceptual evenness */
  --bg:         oklch(14% 0.012 50);
  --bg-soft:    oklch(17% 0.014 50);
  --ink:        oklch(94% 0.008 80);
  --ink-dim:    oklch(72% 0.012 80);
  --ink-faint:  oklch(52% 0.014 80);
  --hairline:   oklch(28% 0.012 50);
  --ember:      oklch(72% 0.190 40);
  --ember-hot:  oklch(84% 0.220 55);

  --font-display: 'Antonio', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(14px, 0.6vw + 12px, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: max(env(safe-area-inset-bottom), clamp(1.25rem, 3vw, 2.5rem));
  position: relative;
  overflow-x: hidden;
}

/* film grain — fixed, very faint, additive */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ember halo glow, anchored above the headline */
body::after {
  content: "";
  position: fixed;
  top: -28vh; left: 50%;
  width: 110vw; height: 110vw;
  max-width: 1400px; max-height: 1400px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
    oklch(62% 0.22 40 / 0.16),
    oklch(50% 0.18 35 / 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(28px);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(5rem, 12vw, 9rem);
}

/* utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── RIBBON ─────────────────────────────────────────────────────────── */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(3rem, 9vw, 5.5rem);
  opacity: 0;
  animation: rise 1s var(--ease) 0s forwards;
}
.ribbon__dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 6px var(--ember), 0 0 14px oklch(70% 0.2 40 / 0.5);
}

/* ─── HEADLINE ───────────────────────────────────────────────────────── */
.headline {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw + 0.5rem, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  margin-bottom: clamp(1.4rem, 3.5vw, 2.6rem);
  max-width: 16ch;
}
.headline__line {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 1.05s var(--ease) calc(0.15s + var(--i, 0) * 0.12s) forwards;
}
.headline__line--accent {
  color: var(--ember);
  font-style: italic;
  text-shadow: 0 0 0.25em oklch(70% 0.2 40 / 0.25);
}
.headline__dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  border-radius: 999px;
  background: var(--ember);
  box-shadow:
    0 0 0.35em var(--ember),
    0 0 1em oklch(70% 0.2 40 / 0.55),
    0 0 2.2em oklch(70% 0.2 40 / 0.25);
  margin-left: 0.06em;
  vertical-align: baseline;
  transform: translateY(0.04em);
  animation: breatheDot 3.6s ease-in-out 2s infinite;
}
@keyframes breatheDot {
  0%, 100% {
    box-shadow:
      0 0 0.3em var(--ember),
      0 0 0.9em oklch(70% 0.2 40 / 0.45),
      0 0 2em oklch(70% 0.2 40 / 0.2);
  }
  50% {
    box-shadow:
      0 0 0.45em var(--ember-hot),
      0 0 1.4em oklch(82% 0.22 50 / 0.7),
      0 0 3em oklch(70% 0.2 40 / 0.45);
  }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% {
    text-shadow:
      0 0 0.2em oklch(70% 0.2 40 / 0.4),
      0 0 0.6em oklch(70% 0.2 40 / 0.25);
  }
  50% {
    text-shadow:
      0 0 0.35em oklch(82% 0.22 50 / 0.7),
      0 0 1.1em oklch(70% 0.2 40 / 0.55);
  }
}

/* ─── HERO BODY ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw + 0.5rem, 2.35rem);
  line-height: 1.22;
  letter-spacing: 0.002em;
  max-width: 36ch;
  color: var(--ink);
  margin: 0 auto clamp(2.4rem, 5vw, 3.8rem);
  text-align: center;
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.85s forwards;
}
.lede em {
  color: var(--ember);
  font-style: italic;
  font-weight: 600;
}

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.45rem;
  background: oklch(18% 0.014 50 / 0.5);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition:
    border-color 0.4s var(--ease),
    color 0.3s var(--ease),
    transform 0.2s var(--ease),
    background 0.4s var(--ease);
  opacity: 0;
  animation: rise 1.2s var(--ease) 1.05s forwards;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(closest-side,
    oklch(72% 0.2 40 / 0.32),
    oklch(60% 0.18 35 / 0.15) 50%,
    transparent 75%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.45s var(--ease);
}
.cta:hover {
  border-color: var(--ember);
  color: var(--ember-hot);
  transform: translateY(-1px);
}
.cta:hover::before { opacity: 1; }
.cta:active { transform: translateY(0) scale(0.985); }
.cta:focus-visible {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px oklch(70% 0.2 40 / 0.25);
}

.cta__ember {
  width: 0.5rem; height: 0.5rem;
  border-radius: 999px;
  background: var(--ember);
  box-shadow:
    0 0 0.45em var(--ember),
    0 0 1.4em oklch(70% 0.2 40 / 0.55);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0.45em var(--ember), 0 0 1.4em oklch(70% 0.2 40 / 0.45); }
  50% { transform: scale(1.18); box-shadow: 0 0 0.7em var(--ember-hot), 0 0 2em oklch(70% 0.2 40 / 0.8); }
}

.cta__arrow {
  margin-left: 0.05rem;
  transition: transform 0.3s var(--ease);
  font-family: var(--font-mono);
}
.cta:hover .cta__arrow { transform: translateX(0.25rem); }

.cta__hint {
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-top: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: rise 1.2s var(--ease) 1.25s forwards;
}
.cta__hint--big { animation: none; opacity: 1; }

.cta--big {
  font-size: 1rem;
  padding: 1.15rem 1.85rem;
}

.copy-num {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--ink-dim);
  cursor: pointer;
  border-bottom: 1px dotted var(--hairline);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy-num:hover { color: var(--ember); border-color: var(--ember); }

/* ─── PROMISE ────────────────────────────────────────────────────────── */
.promise {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw + 0.5rem, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0.002em;
  max-width: 28ch;
  color: var(--ink);
  margin: 0 auto;
  text-align: center;
}
.promise em {
  color: var(--ember);
  font-style: italic;
  font-weight: 600;
}

/* ─── RITUAL ─────────────────────────────────────────────────────────── */
.ritual {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 1.4rem; height: 1px;
  background: var(--ember);
  box-shadow: 0 0 6px oklch(70% 0.2 40 / 0.6);
}

.ritual__list {
  list-style: none;
  display: grid;
  gap: 0;
  text-align: left;
}
.ritual__list li {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: baseline;
  border-top: 1px solid var(--hairline);
  padding: clamp(1.5rem, 4vw, 2.2rem) 0;
}
.ritual__list li:last-child { border-bottom: 1px solid var(--hairline); }

.ritual__time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ember);
}
.ritual__beat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.5vw + 0.7rem, 1.95rem);
  line-height: 1.25;
  letter-spacing: 0.002em;
  color: var(--ink);
}

/* ─── SAMPLE ─────────────────────────────────────────────────────────── */
.sample {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sample__caption {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-dim);
  margin: 0 auto clamp(1.5rem, 4vw, 2.4rem);
  font-size: clamp(1.2rem, 1.2vw + 0.6rem, 1.5rem);
  letter-spacing: 0.002em;
  max-width: 32ch;
  text-align: center;
}

.player {
  appearance: none;
  background: oklch(18% 0.013 50 / 0.55);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 480px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  text-align: left;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.player:hover {
  border-color: var(--ember);
  background: oklch(19% 0.016 50 / 0.7);
}
.player:focus-visible {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px oklch(70% 0.2 40 / 0.25);
}

.player__bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
}
.player__bars i {
  display: block;
  width: 3px;
  height: var(--h, 50%);
  background: var(--ember);
  border-radius: 2px;
  opacity: 0.85;
  transform-origin: center;
  animation: pulseBar 1.4s ease-in-out infinite;
  animation-play-state: paused;
}
.player__bars i:nth-child(1)  { animation-delay: 0.00s; }
.player__bars i:nth-child(2)  { animation-delay: 0.05s; }
.player__bars i:nth-child(3)  { animation-delay: 0.10s; }
.player__bars i:nth-child(4)  { animation-delay: 0.15s; }
.player__bars i:nth-child(5)  { animation-delay: 0.20s; }
.player__bars i:nth-child(6)  { animation-delay: 0.25s; }
.player__bars i:nth-child(7)  { animation-delay: 0.30s; }
.player__bars i:nth-child(8)  { animation-delay: 0.35s; }
.player__bars i:nth-child(9)  { animation-delay: 0.40s; }
.player__bars i:nth-child(10) { animation-delay: 0.45s; }
.player__bars i:nth-child(11) { animation-delay: 0.50s; }
.player__bars i:nth-child(12) { animation-delay: 0.55s; }
.player__bars i:nth-child(13) { animation-delay: 0.60s; }
.player__bars i:nth-child(14) { animation-delay: 0.65s; }
.player__bars i:nth-child(15) { animation-delay: 0.70s; }

@keyframes pulseBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.55; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
.player[data-playing="true"] .player__bars i { animation-play-state: running; }

.player__meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-align: right;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.player__title { color: var(--ink); }
.player__dur   { color: var(--ink-faint); }

audio { display: none; }

/* ─── IGNITE / FINAL ─────────────────────────────────────────────────── */
.ignite {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
}
.hero__fusion {
  width: 100%;
  max-width: 380px;
  margin: clamp(1.5rem, 4vw, 2.8rem) auto clamp(2rem, 5vw, 3.2rem);
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.7s forwards;
  pointer-events: none;
}
.hero__video {
  display: block;
  width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hero__fusion { display: none; }
}
.ignite__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw + 0.5rem, 6rem);
  color: var(--ink);
  max-width: 14ch;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.ignite__line em {
  color: var(--ember);
  font-style: italic;
  font-weight: 700;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
footer {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(3rem, 9vw, 6rem);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-transform: lowercase;
}
footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--hairline);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
footer a:hover { color: var(--ember); border-color: var(--ember); }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────── */
.promise, .ritual, .sample {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.promise.in, .ritual.in, .sample.in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ribbon { font-size: 0.62rem; gap: 0.55rem; flex-wrap: wrap; }
  .ribbon span:nth-child(3) { margin-left: auto; }
  .ritual__list li { grid-template-columns: 1fr; gap: 0.4rem; }
  .ritual__time { font-size: 0.74rem; }
  .player { padding: 1rem 1.1rem; gap: 1.1rem; }
  footer { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .headline__line, .headline__dot,
  .ribbon, .lede, .cta, .cta__hint,
  .promise, .ritual, .sample { opacity: 1; transform: none; }
  .player__bars i { animation-play-state: paused; }
}
