:root {
  --bg: #15100e;
  --bg-2: #1b1512;
  --fg: #f6efe6;
  --fg-dim: rgba(246, 239, 230, 0.68);
  --fg-faint: rgba(246, 239, 230, 0.42);
  --accent: #e2a765;
  --accent-2: #f0c6a8;
  --border: rgba(246, 239, 230, 0.12);

  --oruga: #b5773f;
  --oruga-bg: #1c1712;
  --crisalida: #9b7fd4;
  --crisalida-bg: #171320;
  --mariposa: #ef9e63;
  --mariposa-2: #f2c8d6;
  --mariposa-bg: #201714;

  --serif: 'Fraunces', serif;
  --sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 3px 3px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 700px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}

/* ---------- reveal-on-scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(226, 167, 101, 0.16), transparent 60%),
    radial-gradient(90% 70% at 15% 100%, rgba(155, 127, 212, 0.12), transparent 60%),
    var(--bg);
}

.hero-inner { position: relative; z-index: 2; max-width: 640px; }

.hero .eyebrow { justify-content: center; }
.hero-inner .eyebrow { font-size: 13px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: none; font-weight: 500; margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(40px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 22px;
}

.hero-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--accent-2);
  margin-bottom: 42px;
}

.hero-photo-wrap {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden; margin: 0 auto 22px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 10px rgba(226, 167, 101, 0.06), 0 30px 60px -20px rgba(0,0,0,0.6);
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.hero-credit { font-size: 12px; letter-spacing: 0.12em; color: var(--fg-faint); font-weight: 600; }

.scroll-cue { margin: 46px auto 0; width: 22px; height: 34px; border: 1.5px solid var(--fg-faint); border-radius: 12px; position: relative; }
.scroll-cue span { position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 0; } }

/* ---- ambient hero butterfly ---- */

.hero-butterfly {
  position: absolute; width: 64px; height: 54px; top: 9%; right: 8%;
  color: var(--accent); opacity: 0.5; z-index: 1;
  animation: drift 9s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero-butterfly { top: 5%; right: 6%; width: 46px; height: 38px; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(-24px, 26px) rotate(6deg); }
}

.bfly .wing { fill: currentColor; transform-box: fill-box; transform-origin: 50% 50%; animation: flap 1.6s ease-in-out infinite; }
.bfly .wing-l { animation-name: flap-l; }
.bfly .wing-r { animation-name: flap-r; }
@keyframes flap-l { 0%, 100% { transform: scaleX(1) rotate(0deg); } 50% { transform: scaleX(0.55) rotate(6deg); } }
@keyframes flap-r { 0%, 100% { transform: scaleX(1) rotate(0deg); } 50% { transform: scaleX(0.55) rotate(-6deg); } }
.bfly line { stroke: var(--fg); opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .hero-butterfly, .bfly .wing, .scroll-cue span { animation: none !important; }
}

/* ================= SECTION shell ================= */

.section { padding: 110px 0; position: relative; }

.section h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  margin-bottom: 46px;
  color: var(--fg);
}

/* ================= PAIN ================= */

.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }

.pain-card { background: var(--bg); padding: 38px 32px; }

.pain-mark { font-family: var(--serif); font-size: 13px; color: var(--accent); font-weight: 600; }

.pain-card p { margin: 14px 0 0; font-size: 18px; color: var(--fg); }
.pain-card p span { display: block; font-size: 14px; color: var(--fg-dim); margin-top: 6px; font-weight: 400; }

@media (max-width: 700px) { .pain-grid { grid-template-columns: 1fr; } }

/* ================= COMPARISON ================= */

.comparison { background: var(--bg-2); }

.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.comp-card { border-radius: 18px; padding: 34px 30px; border: 1px solid var(--border); }

.comp-old { background: rgba(255,255,255,0.02); opacity: 0.75; }
.comp-new { background: linear-gradient(160deg, rgba(226,167,101,0.12), transparent 70%), rgba(255,255,255,0.03); border-color: rgba(226,167,101,0.35); }

.comp-label { font-family: var(--serif); font-size: 20px; margin: 0 0 20px; }
.comp-old .comp-label { color: var(--fg-dim); }
.comp-new .comp-label { color: var(--accent-2); }

.comp-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.comp-card li { font-size: 15px; color: var(--fg-dim); padding-left: 20px; position: relative; }
.comp-old li::before { content: '—'; position: absolute; left: 0; color: var(--fg-faint); }
.comp-new li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.comp-new li { color: var(--fg); }

@media (max-width: 700px) { .comp-grid { grid-template-columns: 1fr; } }

/* ================= QUOTE ================= */

.quote-section { text-align: center; }

.quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 5vw, 46px);
  color: var(--accent-2);
  line-height: 1.25;
  margin: 0 0 32px;
}

.quote-body { font-size: 16px; color: var(--fg-dim); line-height: 1.8; }

/* ================= INCLUDES ================= */

.includes { background: var(--bg-2); }

.includes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.incl-card {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px; border-radius: 14px;
  background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
}

.incl-icon { font-size: 20px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 800px) { .includes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .includes-grid { grid-template-columns: 1fr; } }

/* ================= JOURNEY ================= */

.journey-track { position: relative; padding-left: 70px; }

.journey-line {
  position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}

.journey-line-fill {
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--oruga), var(--crisalida), var(--mariposa));
  transition: height 1.2s cubic-bezier(0.16,1,0.3,1);
}

.phase { position: relative; margin-bottom: 90px; }
.phase:last-child { margin-bottom: 0; }

.phase-icon-wrap {
  position: absolute; left: -70px; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1.5px solid var(--border);
}

.phase[data-phase="1"] .phase-icon-wrap { border-color: rgba(181,119,63,0.5); }
.phase[data-phase="2"] .phase-icon-wrap { border-color: rgba(155,127,212,0.5); }
.phase[data-phase="3"] .phase-icon-wrap { border-color: rgba(239,158,99,0.6); }

.phase-icon { width: 20px; height: 20px; border-radius: 50%; }
.icon-oruga { background: var(--oruga); box-shadow: 0 0 16px rgba(181,119,63,0.5); }
.icon-crisalida { background: var(--crisalida); box-shadow: 0 0 16px rgba(155,127,212,0.5); border-radius: 40% 40% 45% 45% / 55% 55% 45% 45%; }

.phase-butterfly { width: 46px; height: 38px; color: var(--mariposa); }
.phase-butterfly .bfly .wing { animation-duration: 2.2s; }

.phase-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--fg-faint); margin: 4px 0 10px; }
.phase[data-phase="1"] .phase-kicker { color: var(--oruga); }
.phase[data-phase="2"] .phase-kicker { color: var(--crisalida); }
.phase[data-phase="3"] .phase-kicker { color: var(--mariposa); }

.phase h3 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 6px; }

.phase-sub { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--fg-dim); margin: 0 0 22px; }

.phase ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; max-width: 560px; }

.phase ol li { display: flex; gap: 14px; font-size: 15px; color: var(--fg-dim); line-height: 1.55; }

.phase ol li::before {
  content: counter(li); counter-increment: li;
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--bg);
  background: var(--fg-faint);
}

.phase ol { counter-reset: li; }
.phase[data-phase="1"] ol li::before { background: var(--oruga); }
.phase[data-phase="2"] ol li::before { background: var(--crisalida); }
.phase[data-phase="3"] ol li::before { background: var(--mariposa); }

@media (max-width: 640px) {
  .journey-track { padding-left: 54px; }
  .journey-line { left: 19px; }
  .phase-icon-wrap { left: -54px; width: 42px; height: 42px; }
}

/* ================= ABOUT ================= */

.about { background: var(--bg-2); }

.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }

.about-photo img { border-radius: 22px; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 25%; }

.about-copy p { color: var(--fg-dim); font-size: 15.5px; line-height: 1.75; }
.about-copy em { color: var(--accent-2); font-style: italic; }

.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.chip {
  font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: rgba(226,167,101,0.1); border: 1px solid rgba(226,167,101,0.3); color: var(--accent-2);
}

@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 280px; margin: 0 auto; } }

/* ================= CTA ================= */

.cta { text-align: center; }

.cta h2 { margin-bottom: 20px; }

.cta p { color: var(--fg-dim); font-size: 16px; max-width: 44ch; margin: 0 auto 36px; }

.cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  color: var(--bg); background: linear-gradient(120deg, var(--accent), var(--mariposa-2));
  padding: 16px 32px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 20px 40px -16px rgba(226,167,101,0.5);
  transition: transform 0.25s ease;
}

.cta-button:hover { transform: translateY(-2px) scale(1.02); }

.cta-handle { margin-top: 22px; font-size: 12px; letter-spacing: 0.12em; color: var(--fg-faint); font-weight: 600; }

.footer { text-align: center; padding: 40px 0 60px; font-size: 12px; color: var(--fg-faint); }
