main > section.life-moments { max-width: 1280px; margin: 0 auto; padding: 80px 28px; }
.life-heading { max-width: 640px; margin: 0 0 32px; }
.life-heading h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); line-height: 1.1; margin-top: 12px; }
.life-grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.life-grid::-webkit-scrollbar { display: none; }
.life-moment { margin: 0; min-width: 0; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.life-media { position: relative; overflow: hidden; border-radius: 20px; isolation: isolate; background: var(--surface-raised); aspect-ratio: 16 / 9; }
.life-media::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.38)); pointer-events: none; z-index: 1; }
.life-moment video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.life-moment figcaption { padding: 18px 2px 0; color: var(--text); font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.life-overlay { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 56px; padding: 12px; display: flex; gap: 10px; align-items: center; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.life-overlay > div { display: grid; gap: 4px; min-width: 0; }
.life-overlay strong { font-size: 14px; color: #fff; }
.life-overlay span:not(.life-orb) { font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.9); }
.life-overlay .life-demo { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.life-orb { width: 26px; height: 26px; flex: none; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--surface-raised), var(--accent)); box-shadow: inset 0 0 6px var(--accent-border); }
.life-moment.is-overlay-visible .life-overlay { opacity: 1; transform: none; }
.life-control { position: absolute; z-index: 3; right: 14px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.35); color: white; cursor: pointer; }
.life-control[hidden] { display: none; }
.life-control:focus-visible, .life-moment video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 680px) { main > section.life-moments { padding: 40px 16px; } .life-grid { gap: 16px; } .life-media { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .life-overlay { transition: none; } }

/* Scroll-driven films: the section grows tall and its stage stays pinned
   under the header while the page scroll slides the track sideways. */
.life-moments.is-scroll-driven { --life-top: 72px; --life-step: 85svh; height: calc(100svh + (var(--life-count) - 1) * var(--life-step)); padding-top: 0; padding-bottom: 0; }
.is-scroll-driven .life-stage { position: sticky; top: var(--life-top); height: calc(100svh - var(--life-top)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.is-scroll-driven .life-heading { margin-bottom: 20px; }
.is-scroll-driven .life-grid { overflow: visible; scroll-snap-type: none; will-change: transform; }
.is-scroll-driven .life-moment { flex-basis: min(100%, calc((100svh - var(--life-top) - 260px) * 16 / 9)); }
.is-scroll-driven .life-moment:not(.is-current) { opacity: .45; transition: opacity .4s ease; }
.life-progress { height: 2px; margin-top: 20px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.life-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--life-progress, 0)); }
@media (max-width: 680px) {
  .life-moments.is-scroll-driven { --life-top: 60px; --life-step: 75svh; }
  .is-scroll-driven .life-moment { flex-basis: min(100%, calc((100svh - var(--life-top) - 240px) * 4 / 5)); }
}

:root.marketing-home:not([data-theme="dark"]) {
  --surface: #fff;
  --surface-muted: #f7f7f7;
  --surface-strong: #ededed;
}

/* Context demos are transparent layers, timed by the actual film playback. */
.life-context { position: absolute; z-index: 2; top: 8%; right: 5%; width: min(42%, 380px); color: white; text-shadow: 0 2px 10px rgba(0,0,0,.85); pointer-events: none; }
.context-demo { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.context-sequence { display: grid; gap: 18px; margin-top: 20px; }
.context-step { font-size: clamp(15px, 2vw, 26px); line-height: 1.3; opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.context-step.is-visible { opacity: .7; transform: none; }
.context-step.is-current { opacity: 1; }
.context-wave { display: flex; align-items: center; gap: 4px; height: 40px; margin-top: 16px; }
.context-wave i { display: block; width: 3px; height: 12px; background: currentColor; border-radius: 4px; animation: context-voice 1s ease-in-out infinite alternate; animation-play-state: paused; }
.context-wave i:nth-child(3n) { height: 30px; animation-delay: -.6s; }
.context-wave i:nth-child(3n + 1) { height: 22px; animation-delay: -.3s; }
.is-playing .context-wave i { animation-play-state: running; }
.context-inbox .context-wave, .context-steps .context-wave { display: none; }
.context-inbox .context-step { transform: translateX(26px); }
.context-inbox .context-step.is-visible { transform: none; }
.context-steps .context-sequence { border-left: 1px solid rgba(255,255,255,.55); padding-left: 20px; }
.context-steps .context-step { position: relative; }
.context-steps .context-step::before { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: white; left: -24px; top: .5em; }
.life-control { width: 44px; height: 44px; }
@keyframes context-voice { to { transform: scaleY(.3); opacity: .6; } }
@media (max-width: 680px) {
  .life-context { top: auto; bottom: 150px; left: 24px; right: 24px; width: auto; }
  .context-sequence { gap: 10px; margin-top: 12px; }
  .context-step { font-size: 18px; }
  .life-overlay { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .context-step { transition: none; transform: none; }
  .context-wave i { animation: none; }
}

/* Scroll reveals the film; the brand marks join the conversation in sequence. */
.life-scroll-reveal { opacity: 0; transform: translateY(36px) scale(.985); transition: opacity .8s ease, transform 1s cubic-bezier(.16,1,.3,1); }
.life-scroll-reveal.is-in-view { opacity: 1; transform: none; }
.context-network-flow { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: 12px 0; }
.context-brand { display: inline-flex; position: relative; opacity: 0; transform: translateY(20px) scale(.65) rotate(-12deg); transition: opacity .55s, transform .8s cubic-bezier(.16,1,.3,1); filter: drop-shadow(0 2px 6px rgba(0,0,0,.28)); }
.context-brand:nth-child(2) { transition-delay: .16s; }
.context-brand:nth-child(3) { transition-delay: .32s; }
.is-in-view .is-visible .context-brand { opacity: 1; transform: none; }
.context-brand .network-logo { width: clamp(32px, 4vw, 52px); height: clamp(32px, 4vw, 52px); }
.is-in-view.is-playing .is-visible .context-brand .network-logo { animation: context-brand-float 3s ease-in-out infinite; }
.context-brand:nth-child(2) .network-logo { animation-delay: -.8s !important; }
.context-brand:nth-child(3) .network-logo { animation-delay: -1.6s !important; }
.context-brand:not(:last-child)::after { content: ''; position: absolute; top: 50%; left: calc(100% + 6px); width: clamp(8px, 1.5vw, 20px); height: 1px; background: rgba(255,255,255,.7); transform: scaleX(0); transform-origin: left; transition: transform .6s .5s; }
.is-in-view .is-visible .context-brand::after { transform: scaleX(1); }
@keyframes context-brand-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@supports (animation-timeline: view()) {
  .life-heading.is-in-view { animation: life-scroll-entry linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes life-scroll-entry { from { opacity: .2; transform: translateY(30px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .life-scroll-reveal, .context-brand { opacity: 1; transform: none; transition: none; }
  .life-heading.is-in-view, .context-brand .network-logo { animation: none !important; }
  .context-brand::after { transform: none; transition: none; }
}
