/* PREVIEW 2026-09-16 · motion layer on top of styles.css
 * Everything here fails visible: with JS off or reduced motion, every word and
 * every step of every demo is on the page, still. One accent, ember, as locked.
 */

/* ---------- hero depth: slow ember glow + sparks + masked headline ---------- */
.hero-live { position: relative; overflow: hidden; }
.hero-live .glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.55; will-change: transform;
}
.hero-live .glow.g1 { width: 560px; height: 420px; left: 50%; top: -160px; margin-left: -280px;
  background: radial-gradient(closest-side, rgba(214,95,53,0.30), rgba(214,95,53,0)); animation: drift1 18s ease-in-out infinite alternate; }
.hero-live .glow.g2 { width: 420px; height: 360px; left: 8%; top: 38%;
  background: radial-gradient(closest-side, rgba(242,210,170,0.9), rgba(242,210,170,0)); animation: drift2 22s ease-in-out infinite alternate; }
.hero-live .glow.g3 { width: 380px; height: 320px; right: 6%; top: 30%;
  background: radial-gradient(closest-side, rgba(193,78,43,0.16), rgba(193,78,43,0)); animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-50px, -30px, 0) scale(0.92); } }
.hero-live canvas.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-live .wrap { z-index: 1; }

.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--i) * 70ms + 80ms); }
.js .split.in .w > span { transform: none; }
.js .split.rv { opacity: 1; transform: none; }

/* ---------- construction funnel ---------- */
.funnel-sec .section-head { max-width: 60ch; }
.funnel {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1.4fr) minmax(0, 2.6fr) minmax(0, 1.4fr) minmax(0, 4fr);
  gap: 0; margin-top: clamp(20px, 3vw, 36px);
}
.f-sources { display: grid; gap: 16px; }
.f-src {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream); border: 1px solid rgba(41,34,25,0.10); border-radius: 22px;
  padding: 16px 20px;
}
.f-src .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; }
.f-src .ic svg { width: 20px; height: 20px; }
.f-src b { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.f-src small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }

.f-wires { position: relative; height: 100%; min-height: 220px; }
.f-wires svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.f-wires path { fill: none; stroke: rgba(193,78,43,0.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.f-wires path.flow { stroke: var(--ember); stroke-width: 2.5; stroke-dasharray: 10 190; stroke-linecap: round; animation: flow 2.4s linear infinite; }
.f-wires path.flow:nth-of-type(5) { animation-delay: -0.8s; }
.f-wires path.flow:nth-of-type(6) { animation-delay: -1.6s; }
@keyframes flow { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

.f-core {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--ember-soft), var(--ember-deep));
  display: grid; place-items: center; color: var(--cream); text-align: center;
  box-shadow: 0 18px 44px rgba(162,63,31,0.28);
}
.f-core::before, .f-core::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(193,78,43,0.35); animation: ring 3.2s cubic-bezier(0.16,1,0.3,1) infinite;
}
.f-core::after { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.f-core svg { width: 38%; height: auto; }
.f-core span { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(0.95rem, 1.3vw, 1.15rem); margin-top: 2px; }

.f-out { background: var(--cream); border: 1px solid rgba(41,34,25,0.10); border-radius: 28px; padding: 22px; }
.f-out h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; margin-bottom: 14px; }
.f-out h3 em { font-style: italic; font-weight: 400; color: var(--ember); }
.f-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); padding: 12px 2px; font-size: 15px;
}
.f-slot .day { color: var(--muted); }
.f-slot .tag { font-weight: 600; color: var(--ember-deep); display: inline-flex; align-items: center; gap: 7px; }
.f-slot .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.js .funnel .f-slot { opacity: 0.25; transition: opacity 0.6s ease; }
.js .funnel .f-slot .tag { opacity: 0; transform: translateX(-8px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.js .funnel .f-slot.on { opacity: 1; }
.js .funnel .f-slot.on .tag { opacity: 1; transform: none; }

/* ---------- missed call phone demo ---------- */
.callsec .split-demo {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.phone {
  position: relative; width: min(330px, 100%); aspect-ratio: 330 / 640; margin: 0 auto;
  border-radius: 48px; background: var(--ink); padding: 12px;
  box-shadow: 0 40px 80px rgba(41,34,25,0.22), 0 0 0 1px rgba(41,34,25,0.4);
}
.phone .screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column;
}
.phone .notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: var(--ink); z-index: 3; }
.phone .who { padding: 48px 20px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.phone .who .av { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 6px; background: var(--sand); display: grid; place-items: center; }
.phone .who .av svg { width: 22px; height: 22px; }
.phone .who b { font-size: 14px; font-weight: 600; }
.phone .thread { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 16px 14px; justify-content: flex-end; }
.phone .msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.4; }
.phone .msg.them { align-self: flex-start; background: var(--sand); color: var(--ink); border-bottom-left-radius: 6px; }
.phone .msg.you { align-self: flex-end; background: var(--ember); color: var(--cream); border-bottom-right-radius: 6px; }
.phone .sys-line { align-self: center; font-size: 12px; font-weight: 600; color: var(--ember-deep); display: inline-flex; align-items: center; gap: 6px; }
.phone .sys-line svg { width: 14px; height: 14px; }
.phone .booked { align-self: stretch; background: var(--cream); border: 1px solid rgba(193,78,43,0.35); border-radius: 16px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.phone .booked i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--ember); display: grid; place-items: center; }
.phone .booked i svg { width: 14px; height: 14px; }
.phone .typing { align-self: flex-end; background: var(--ember); border-radius: 18px; padding: 11px 14px; display: flex; gap: 4px; }
.phone .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); animation: blink 1.1s infinite; }
.phone .typing span:nth-child(2) { animation-delay: 0.15s; }
.phone .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.phone .typing { display: none; }
.js-demo .phone .typing.show { display: flex; }

/* the incoming-call overlay */
.phone .ring {
  position: absolute; inset: 0; z-index: 2; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.phone .ring .pulse { width: 74px; height: 74px; border-radius: 50%; background: var(--ember); display: grid; place-items: center; position: relative; }
.phone .ring .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ember-soft); animation: ring 1.4s ease-out infinite; }
.phone .ring .pulse svg { width: 30px; height: 30px; }
.phone .ring b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.phone .ring small { font-size: 13px; opacity: 0.75; }
.phone .ring.missed .pulse { background: #6B5F52; }
.phone .ring.missed .pulse::after { animation: none; opacity: 0; }
/* with no JS the ring overlay is hidden and the whole thread shows */
.phone .ring { opacity: 0; pointer-events: none; }
.js-demo .phone .ring.show { opacity: 1; }
.js-demo .phone .beat { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.js-demo .phone .beat.show { opacity: 1; transform: none; }
.js-demo .phone .beat:not(.show) { position: absolute; visibility: hidden; }

.call-steps { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.call-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--body-warm); transition: color 0.4s ease; }
.call-steps li .sno { font-family: var(--serif); font-style: italic; color: var(--faint); font-size: 1.2rem; transition: color 0.4s ease; }
.call-steps li.on { color: var(--ink); }
.call-steps li.on .sno { color: var(--ember); }

/* ---------- video showcase: a dark ember band that echoes the launch videos ---------- */
.showcase {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(72px, 9vw, 130px);
  background: radial-gradient(900px 520px at 50% 0%, #5A2A18 0%, #2A1D15 62%, #1F1610 100%);
  border-radius: var(--band-r); color: var(--cream);
  padding: clamp(72px, 9vw, 120px) 0;
}
.showcase canvas.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.showcase h2 { color: var(--cream); }
.showcase h2 em { color: #F0875C; }
.showcase .section-head p { color: rgba(246,240,228,0.78); }
.reels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); max-width: 860px; margin: 0 auto; }
.reel { margin: 0; }
.reel .frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  background: #120c08 center / cover no-repeat;
  box-shadow: 0 30px 70px rgba(40,16,6,0.42), 0 0 0 1px rgba(246,240,228,0.10);
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .snd {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,22,16,0.72); color: var(--cream); border: 1px solid rgba(246,240,228,0.25);
  border-radius: 999px; padding: 9px 14px; font: 600 14px/1 var(--sans); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.reel .snd:hover { background: var(--ember); border-color: var(--ember); }
.reel .snd svg { width: 16px; height: 16px; }
.reel .snd:focus-visible { outline: 2.5px solid #F0875C; outline-offset: 3px; }
.reel figcaption { margin-top: 18px; }
.reel figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.reel figcaption span { color: rgba(246,240,228,0.72); font-size: 15.5px; }

/* business page: one reel beside text */
.reel-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.reel-split .reel { max-width: 340px; width: 100%; margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .funnel { grid-template-columns: 1fr; justify-items: center; }
  .f-sources, .f-out { width: 100%; max-width: 440px; }
  .f-wires { min-height: 0; height: 56px; width: 100%; max-width: 440px; }
  .f-core { width: 132px; }
  .callsec .split-demo, .reel-split { grid-template-columns: 1fr; }
  .callsec .phone { order: 2; }
  .reel-split .reel { order: 2; }
}
@media (max-width: 600px) {
  .reels { grid-template-columns: 1fr; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live .glow, .f-wires path.flow, .f-core::before, .f-core::after, .phone .typing span, .phone .ring .pulse::after { animation: none !important; }
  .f-wires path.flow { display: none; }
  .reel .frame { transform: none !important; }
}

.f-wires svg.v { display: none; }
@media (max-width: 920px) {
  .f-wires svg.h { display: none; }
  .f-wires svg.v { display: block; }
}

/* ---------- mobile pass 2026-09-16 ---------- */
@media (max-width: 600px) {
  .funnel-sec .section-head { margin-bottom: 24px; }
  .f-src { padding: 12px 16px; border-radius: 18px; }
  .f-core { width: 112px; }
  .f-out { padding: 18px; border-radius: 22px; }
  .f-out h3 { font-size: 1.3rem; }
  .callsec .split-demo { gap: 36px; }
  .call-steps { margin-top: 20px; }
  .call-steps li { padding: 12px 0; grid-template-columns: 38px 1fr; font-size: 15.5px; }
  .phone { width: 264px; border-radius: 40px; padding: 10px; }
  .phone .screen { border-radius: 31px; }
  .phone .who { padding: 40px 16px 10px; }
  .phone .who .av { width: 34px; height: 34px; }
  .phone .thread { padding: 12px 10px; gap: 7px; }
  .phone .msg { font-size: 12.5px; padding: 8px 11px; }
  .phone .booked { font-size: 12px; }
  .showcase { padding: 64px 0 56px; }
  .showcase .section-head { margin-bottom: 28px; }
  /* reels become a swipe row so two tall videos do not stack into two screens of scroll */
  .reels {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    max-width: none; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(20px, 4vw, 48px)); padding: 0 clamp(20px, 4vw, 48px) 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reels .reel { scroll-snap-align: center; }
  .reel .frame { border-radius: 22px; }
  .reel .snd { right: 10px; bottom: 10px; padding: 11px 13px; font-size: 13px; min-height: 44px; }
  .reel figcaption { margin-top: 12px; }
  .reel figcaption b { font-size: 1.15rem; }
  .reel figcaption span { font-size: 14px; display: block; line-height: 1.45; }
  .reel-split .reel { max-width: 260px; }
  .hero-live .glow { filter: blur(40px); opacity: 0.45; }
  .hero-live .glow.g3 { display: none; }
}

/* the ring overlay leaves instantly, so a fast scroll never shows a ghost of it */
.js-demo .phone .ring:not(.show) { transition: none; visibility: hidden; }
