/* ============================================================
   IGNITE MY AI — site styles (v3: layout + motion pass)
   ------------------------------------------------------------
   On top of v2's editorial layout, v3 adds:
   · SIGNATURE — the "ignite fuse": a scroll-drawn ember line
   · scroll reveals (Jakub polish + Jhey craft, reduced-motion safe)
   · sticky-heading + threaded How-it-works (grid-break)
   · storytelling service-row hovers (number → arrow, underline wipe)
   · a whisper of warm grain for tactile depth
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--body); font-family: var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--s-6); padding-right: var(--s-6); }
.accent { color: var(--ember); }

/* ---------- atmosphere: warm grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- SIGNATURE: the ignite fuse ---------- */
.fuse { position: fixed; left: 0; top: 0; bottom: 0; width: 3px; z-index: 60; pointer-events: none; }
.fuse__track { position: absolute; inset: 0; background: var(--line); opacity: 0.6; }
.fuse__burn {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: top;
  transform: scaleY(var(--scroll, 0));
  background: linear-gradient(var(--ember) 0%, var(--ember-rich) 42%, var(--pine) 100%);
}
.fuse__head {
  position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--ember-rich); box-shadow: 0 0 12px 2px oklch(64% 0.172 47 / 0.7);
  transform: translateY(calc(var(--scroll, 0) * (100vh - 9px)));
}

/* ---------- scroll reveals (only armed once JS confirms support) ---------- */
html.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
html.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Brand lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup__flame { width: 24px; height: 32px; }
.lockup__wm { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); }
.lockup__wm .em { color: var(--ember); }

[data-lucide] { width: 20px; height: 20px; stroke-width: 2; vertical-align: middle; }

/* ============================================================
   BUTTONS + LINKS
   ============================================================ */
.btn {
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; border-radius: var(--r-pill);
  padding: 14px 24px; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btn [data-lucide] { width: 18px; height: 18px; transition: transform var(--dur-ui) var(--ease-out); }
.btn:hover [data-lucide] { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-deep); box-shadow: var(--shadow-ember); }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 0.95rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { justify-content: center; width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 1rem; color: var(--ember-deep); text-decoration: none; }
.link-arrow [data-lucide] { width: 17px; height: 17px; transition: transform var(--dur-ui) var(--ease-out); }
.link-arrow:hover [data-lucide] { transform: translateX(5px); }

.eyebrow { font-family: var(--font-text); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-deep); }
.eyebrow--center { display: flex; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--dur-panel) var(--ease-out), border-color var(--dur-panel) var(--ease-out);
}
.nav.is-scrolled {
  background: oklch(98.6% 0.006 84 / 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav__links { display: flex; align-items: center; gap: var(--s-7); }
.nav__links ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.96rem; font-weight: 500; color: var(--body); text-decoration: none; white-space: nowrap; transition: color var(--dur-ui) var(--ease-out); }
.nav__links a:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 80px; padding-bottom: 104px; position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6.6vw, 5.2rem);
  line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 26px; text-wrap: balance;
}
.hero__lead { font-size: clamp(1.16rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--body); max-width: 44ch; margin: 0 0 36px; }
.hero__actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero__reassure { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.95rem; margin: 0; }
.hero__reassure [data-lucide] { width: 17px; height: 17px; color: var(--pine); }

/* work feed */
.feed { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: 26px 28px; max-width: 430px; margin-left: auto; }
.feed::before { content: ""; position: absolute; inset: -14% -10% -20% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(120% 90% at 72% 18%, var(--ember-soft), transparent 62%); filter: blur(10px); }
.feed__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.feed__id { display: flex; align-items: center; gap: 12px; }
.feed__spark { width: 40px; height: 40px; border-radius: 12px; background: var(--ember-pale); display: grid; place-items: center; flex-shrink: 0; }
.feed__spark img { width: 18px; height: 24px; }
.feed__title { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); letter-spacing: -0.01em; }
.feed__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); }
.tag--live { background: var(--pine-soft); color: var(--pine); }
.tag__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--pine); }
.feed__steps { list-style: none; margin: 0; padding: 0; position: relative; }
.feed__steps::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--ember) 0%, var(--pine) 100%); opacity: 0.18; }
.feed__step { display: flex; align-items: center; gap: 13px; padding: 9px 0; }
.feed__dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--sunk); color: var(--faint); z-index: 1; transition: background var(--dur-panel) var(--ease-out), color var(--dur-panel) var(--ease-out); }
.feed__dot [data-lucide] { width: 17px; height: 17px; }
.feed__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.feed__txt b { font-weight: 600; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.feed__txt span { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.feed__check { width: 16px; height: 16px; color: var(--pine); transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.feed__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-faint); display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--body); }
.feed__foot [data-lucide] { width: 17px; height: 17px; color: var(--pine); }
.feed__foot b { color: var(--ink); }
.feed__dot[data-tone="denim"] { background: var(--denim-soft); color: var(--denim); }
.feed__dot[data-tone="ember"] { background: var(--ember-soft); color: var(--ember-deep); }
.feed__dot[data-tone="pine"]  { background: var(--pine-soft);  color: var(--pine); }
.feed--armed .feed__dot { background: var(--sunk); color: var(--faint); }
.feed--armed .feed__check { opacity: 0; transform: scale(0.6); }
.feed--armed .feed__foot { opacity: 0; transition: opacity var(--dur-panel) var(--ease-out); }
.feed--armed.is-live .feed__step .feed__dot,
.feed--armed.is-live .feed__step .feed__check { transition-delay: calc(var(--i) * 180ms); }
.feed--armed.is-live .feed__step[style*="--i:0"] .feed__dot { background: var(--denim-soft); color: var(--denim); }
.feed--armed.is-live .feed__step[style*="--i:1"] .feed__dot { background: var(--ember-soft); color: var(--ember-deep); }
.feed--armed.is-live .feed__step[style*="--i:2"] .feed__dot { background: var(--pine-soft);  color: var(--pine); }
.feed--armed.is-live .feed__check { opacity: 1; transform: none; }
.feed--armed.is-live .feed__foot { opacity: 1; transition-delay: 600ms; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); position: relative; z-index: 2; }
.trust__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 24px 0; }
.trust__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.trust__name { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--muted); letter-spacing: -0.01em; }
.trust__dot { color: var(--line-strong); }

/* ============================================================
   sections (varied rhythm) — keep content above grain/fuse
   ============================================================ */
.section { padding-top: var(--s-9); padding-bottom: var(--s-9); position: relative; z-index: 2; }
.section--how { padding-top: 128px; padding-bottom: 128px; position: relative; z-index: 2; }
.section--svc { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.section--results { padding-top: 132px; padding-bottom: 132px; }

/* ============================================================
   HOW IT WORKS — sticky head + threaded vertical steps
   ============================================================ */
.how { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 80px; align-items: start; }
.how__aside { position: sticky; top: 116px; }
.how__aside .eyebrow { margin-bottom: 18px; }
.how__aside h2 { margin: 0 0 16px; }
.how__aside p { margin: 0; max-width: 36ch; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 18px; bottom: 70px; width: 2px; background: linear-gradient(var(--ember), var(--pine)); opacity: 0.22; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 30px; padding-bottom: 64px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.02em; color: var(--ember);
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ember-line); background: var(--surface);
  display: grid; place-items: center; z-index: 1; box-shadow: var(--shadow-sm);
}
.step__body { padding-top: 9px; }
.step__body h3 { margin: 0 0 10px; font-size: 1.5rem; }
.step__body p { margin: 0; max-width: 46ch; }

/* ============================================================
   SERVICES — hairline rows + storytelling hover
   ============================================================ */
.alt-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.svc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.svc__head .eyebrow { margin-bottom: 16px; }
.svc__head h2 { margin: 0; }
.svc__sub { max-width: 40ch; margin: 0; }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 56px 26px minmax(0, 1.05fr) 1.4fr; align-items: center; gap: 24px;
  padding: 32px 8px; border-bottom: 1px solid var(--line); position: relative; cursor: default;
  transition: background var(--dur-ui) var(--ease-out), padding var(--dur-ui) var(--ease-out);
}
.svc-row:hover { background: var(--surface); padding-left: 18px; padding-right: 18px; }
.svc-row__no { grid-column: 1; grid-row: 1; font-family: var(--font-mono); font-size: 0.82rem; color: var(--faint); transition: opacity var(--dur-ui) var(--ease-out); }
.svc-row__arrow { grid-column: 1; grid-row: 1; width: 22px; height: 22px; color: var(--ember); opacity: 0; transform: translate(-6px, 6px); transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.svc-row:hover .svc-row__no { opacity: 0; }
.svc-row:hover .svc-row__arrow { opacity: 1; transform: none; }
.svc-row__icon { grid-column: 2; width: 26px; height: 26px; color: var(--ember-deep); stroke-width: 2; transition: transform var(--dur-ui) var(--ease-out); }
.svc-row:hover .svc-row__icon { transform: translateX(4px); }
.svc-row__title { grid-column: 3; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.015em; color: var(--ink); margin: 0; position: relative; width: max-content; max-width: 100%; }
.svc-row__title::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--ember); transition: width var(--dur-panel) var(--ease-out); }
.svc-row:hover .svc-row__title::after { width: 100%; }
.svc-row__body { grid-column: 4; margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--body); }

/* ============================================================
   RESULTS — one focal point
   ============================================================ */
.section--results .eyebrow { margin-bottom: 28px; }
.testimonial { margin: 0; }
.testimonial__quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 36px; max-width: 20ch; text-wrap: balance; }
.testimonial__by { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: var(--sunk); border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.avatar [data-lucide] { width: 24px; height: 24px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { display: block; font-weight: 600; color: var(--ink); }
.testimonial__role { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 2px; }
.results__maths { margin: 72px 0 0; padding-top: 36px; border-top: 1px solid var(--line); max-width: 760px; font-size: 1.15rem; line-height: 1.7; color: var(--body); }
.results__maths b { color: var(--ink); font-weight: 600; }
.results__lead-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ember); letter-spacing: -0.02em; }
.results__sep { display: inline-block; }
.results__maths .results__sep::before { content: "  ·  "; color: var(--line-strong); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq__head { margin-bottom: 48px; }
.faq__head .eyebrow { margin-bottom: 16px; }
.faq__head h2 { margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; padding: 24px 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.012em; }
.faq-item__q [data-lucide] { width: 20px; height: 20px; color: var(--ember-deep); flex-shrink: 0; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-panel) var(--ease-spring); }
.faq-item.is-open .faq-item__a { max-height: 240px; }
.faq-item__a p { margin: 0 0 24px; max-width: 64ch; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta { background: var(--ink-invert); position: relative; overflow: hidden; z-index: 2; }
.cta__thread { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 120% at 88% -10%, oklch(64% 0.172 47 / 0.40), transparent 60%), radial-gradient(34% 110% at 6% 120%, oklch(52% 0.082 165 / 0.30), transparent 60%); }
.cta__inner { position: relative; text-align: center; padding-top: 104px; padding-bottom: 104px; }
.cta .eyebrow { color: var(--ember-rich); margin-bottom: 20px; }
.cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--on-dark); margin: 0 auto 20px; max-width: 16ch; text-wrap: balance; }
.cta__lead { color: var(--on-dark-mut); font-size: 1.2rem; line-height: 1.6; margin: 0 auto 36px; max-width: 44ch; }
.cta__actions { display: flex; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-invert); border-top: 1px solid oklch(100% 0 0 / 0.08); position: relative; z-index: 2; }
.footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-top: 60px; padding-bottom: var(--s-7); }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { width: 22px; height: 29px; }
.footer__brand .lockup__wm { color: var(--on-dark); font-size: 1.2rem; }
.footer__brand .lockup__wm .em { color: var(--ember-rich); }
.footer__tag { color: var(--on-dark-mut); font-size: 0.95rem; line-height: 1.6; max-width: 32ch; margin: 0; }
.footer__h { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: var(--on-dark); text-decoration: none; font-size: 0.95rem; opacity: 0.82; transition: opacity var(--dur-ui) var(--ease-out); }
.footer__col a:hover { opacity: 1; }
.footer__bar { border-top: 1px solid oklch(100% 0 0 / 0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; color: var(--on-dark-mut); font-size: 0.85rem; }

/* ============================================================
   BOOKING MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; background: oklch(24% 0.018 56 / 0.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: imai-fade 200ms var(--ease-out); }
.modal[hidden] { display: none; }
.modal__card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); width: min(440px, 100%); padding: 30px; animation: imai-pop 240ms var(--ease-out); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal__head .eyebrow { margin-bottom: 10px; }
.modal__head h3 { margin: 0; font-size: 1.5rem; }
.modal__close { background: var(--sunk); border: none; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; color: var(--muted); }
.modal__close [data-lucide] { width: 17px; height: 17px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal__note { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0; }
.modal__err { text-align: center; font-size: 0.85rem; color: var(--ember-deep); margin: 0; }
.modal__err a { color: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input { font-family: var(--font-text); font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; outline: none; transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.field input:focus { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.modal__success { text-align: center; padding: 12px 0; }
.modal__success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--pine-soft); display: grid; place-items: center; margin: 0 auto 18px; color: var(--pine); }
.modal__success-icon [data-lucide] { width: 28px; height: 28px; stroke-width: 2.5; }
.modal__success h3 { margin: 0 0 10px; font-size: 1.5rem; }
.modal__success p { margin: 0 0 24px; }
@keyframes imai-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes imai-pop  { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   v4 — GSAP motion enhancements (degrade cleanly without JS)
   ============================================================ */
/* kinetic hero headline: lines ride up out of a clip mask.
   No pre-hide — if GSAP never runs, the headline just shows normally. */
.hero__title .hl-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .hl-inner { display: block; }

/* flagship: the lit thread GSAP draws over the faint base line */
.steps__draw {
  position: absolute; left: 27px; top: 18px; width: 2px; height: calc(100% - 88px);
  transform-origin: top; transform: scaleY(0); border-radius: 2px;
  background: linear-gradient(var(--ember), var(--pine)); z-index: 0;
}
/* each step's node ignites as the thread passes it */
.step__n { transition: background var(--dur-panel) var(--ease-out), color var(--dur-panel) var(--ease-out), border-color var(--dur-panel) var(--ease-out), box-shadow var(--dur-panel) var(--ease-out); }
.step.is-lit .step__n { background: var(--ember); color: #fff; border-color: var(--ember); box-shadow: var(--shadow-ember); }

/* form: gentle shake when a required field is missing on submit */
@keyframes imai-shake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-5px)} 40%,60%{transform:translateX(5px)} }
.modal__card.shake { animation: imai-shake 0.4s var(--ease-out); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .how { grid-template-columns: 1fr; gap: 52px; }
  .how__aside { position: static; }
  .how__aside p { max-width: 56ch; }
}
@media (max-width: 900px) {
  .fuse { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .feed { margin-left: 0; max-width: 460px; }
  .svc__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .svc-row { grid-template-columns: 40px 26px 1fr; row-gap: 4px; }
  .svc-row__body { grid-column: 3 / 4; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links ul { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-left: var(--s-5); padding-right: var(--s-5); }
  .section, .section--how, .section--results { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .hero { padding-top: 48px; padding-bottom: var(--s-8); }
  .hero__actions { gap: 18px; }
  .step { grid-template-columns: 48px 1fr; gap: 22px; padding-bottom: 48px; }
  .step__n { width: 48px; height: 48px; font-size: 1.3rem; }
  .steps::before, .steps__draw { left: 23px; }
  .svc-row { grid-template-columns: 32px 1fr; }
  .svc-row__icon { display: none; }
  .svc-row__title { grid-column: 2; }
  .svc-row__body { grid-column: 2 / 3; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 6px; }
  .results__maths { font-size: 1.05rem; }
}

/* ============================================================
   REDUCED MOTION — keep meaning, drop movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .feed--armed .feed__dot, .feed--armed .feed__check, .feed--armed .feed__foot { opacity: 1 !important; transform: none !important; }
  .fuse__head { box-shadow: none; }
}
