/* MotionSites: finite entrance choreography, pointer depth, and a native sticky scroll story. */
.hero { isolation: isolate; }
.hero-media { position: absolute; inset: -5%; transform: translate3d(var(--pointer-x, 0px), calc(var(--hero-scroll-y, 0px) + var(--pointer-y, 0px)), 0) scale(var(--hero-scroll-scale, 1)); }
.hero-media .hero-photo { inset: 0; height: 100%; width: 100%; object-position: center 46%; animation: none; }
.hero-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-line > span { display: block; }
.hero-shade { z-index: 1; }
.hero-content, .hero-bottom { z-index: 3; }
.hero-content { transform: translate3d(calc(var(--pointer-x, 0px) * -.35), calc(var(--hero-copy-y, 0px) + var(--pointer-y, 0px) * -.3), 0); }
.hero-heartline { position: absolute; z-index: 2; right: -3%; bottom: 4%; width: 48%; height: 48%; color: var(--sage); opacity: .48; stroke-width: 1; pointer-events: none; }
.hero-heartline path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.scroll-cue { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; border: 1px solid var(--light-rule); border-radius: 50%; }
.hero-bottom { bottom: 24px; }
.hero-bottom a { min-height: 44px; }

/* The static layout is the baseline for no JavaScript and reduced motion. */
.story-runway { position: relative; background: var(--ink); color: var(--paper); }
.story-stage { position: relative; overflow: clip; padding: 72px 0; }
.story-images { display: none; position: relative; width: min(1280px, calc(100% - 104px)); margin: 40px auto; height: 420px; overflow: clip; }
.story-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; animation: none; }
#moment-morning { opacity: 1; transition: none; }
#moment-respite { opacity: 0; }
.chapter-photo { width: min(640px, 100%); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 32px; }
.story-heading { position: relative; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.story-heading h2 { font-size: clamp(42px, 5vw, 76px); }
.story-heading > span { max-width: 200px; font-size: 14px; color: var(--sage); }
.story-panels { position: relative; }
.story-panel { padding: 48px 0; border-bottom: 1px solid var(--light-rule); }
.story-panel h3 { font-size: clamp(38px, 4.2vw, 62px); }
.story-panel p { font-size: 16px; max-width: 360px; margin-top: 24px; color: var(--paper); }
.story-panel .chapter-time { color: var(--sage); font-size: 13px; margin-bottom: 20px; }
.story-footer { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media .hero-photo { animation: cinematic-arrival 3.6s cubic-bezier(.16,1,.3,1) both; }
  .hero-line > span { animation: headline-arrival 1.15s cubic-bezier(.16,1,.3,1) both; animation-delay: .15s; }
  .hero-line:nth-child(2) > span { animation-delay: .38s; }
  .hero-content > p { animation: copy-arrival .9s ease-out .65s both; }
  .hero-content > .button { animation: copy-arrival .9s ease-out .85s both; }
  .hero-heartline path { animation: heart-trace 3.2s ease-in-out .6s both; }
  .scroll-cue { animation: scroll-invitation 1.8s ease-in-out 1.2s 2; }
  .motion-ready .story-runway { height: auto; min-height: 0; }
  .motion-ready .story-stage { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; padding: 0; }
  .motion-ready .story-images { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
  .motion-ready .story-images img { transform: translate3d(var(--scene-x, -18px), 0, 0) scale(var(--scene-scale, 1.08)); }
  .motion-ready #moment-morning { opacity: calc(1 - var(--scene-mix, 0)); }
  .motion-ready #moment-company { opacity: 1; }
  .motion-ready #moment-respite { opacity: var(--respite-mix, 0); }
  .motion-ready .chapter-photo { display: none; }
  .motion-ready .story-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--shade-strong) 0%, var(--shade-strong) 18%, var(--shade-light) 75%), linear-gradient(0deg, var(--shade-strong), var(--clear) 60%); }
  .motion-ready .story-heading { position: absolute; top: 48px; left: 0; right: 0; }
  .motion-ready .story-heading h2 { font-size: clamp(38px, 4.4vw, 66px); }
  .motion-ready .story-heading > span { align-self: start; text-align: right; }
  .motion-ready .story-panels { height: 100%; }
  .motion-ready .story-panel { position: absolute; inset: auto 0 120px; width: min(520px, 50%); border: 0; padding: 0; opacity: var(--panel-opacity, 0); transform: translate3d(0, var(--panel-y, 40px), 0); pointer-events: none; }
  .motion-ready .story-panel:first-child { --panel-opacity: 1; --panel-y: 0px; }
  .motion-ready .story-panel h3 { font-size: clamp(40px, 4.6vw, 68px); }
  .motion-ready .story-footer { position: absolute; inset: auto 0 36px; display: flex; align-items: center; gap: 32px; font-size: 12px; }
  .story-track { flex: 1; height: 1px; background: var(--light-rule); overflow: clip; }
  .story-track span { display: block; height: 100%; background: var(--paper); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
  .reveal-ready { opacity: 0; transform: translateY(48px); transition: opacity 850ms ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
  .reveal-ready.is-in { opacity: 1; transform: translateY(0); }
  .care-detail { transition: transform 400ms cubic-bezier(.16,1,.3,1); }
  .care-detail:hover { transform: translateY(-6px); }
}
@keyframes cinematic-arrival { from { transform: scale(1.19) translateX(2%); opacity: .25; } to { transform: scale(1); opacity: 1; } }
@keyframes headline-arrival { from { transform: translateY(115%) rotate(3deg); } to { transform: translateY(0) rotate(0); } }
@keyframes copy-arrival { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heart-trace { from { stroke-dashoffset: 1; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes scroll-invitation { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

@media (max-width: 760px) {
  .hero { height: 800px; }
  .hero-content { padding-top: 32px; }
  .hero h1 { font-size: clamp(48px, 13.5vw, 68px); }
  .hero-media { inset: 350px 0 auto; height: 390px; }
  .hero-media .hero-photo { top: 0; height: 100%; object-position: 66% center; }
  .hero-shade { background: linear-gradient(180deg, var(--ink) 40%, var(--clear) 49%, var(--clear) 86%, var(--ink) 94%); }
  .hero-heartline { width: 78%; height: 200px; bottom: 40px; right: -18%; opacity: .35; }
  .hero-bottom { justify-content: flex-end; bottom: 16px; }
  .hero-bottom a { font-size: 12px; }
  .story-stage { padding: 48px 0; }
  .story-images { width: calc(100% - 40px); height: 300px; margin-block: 24px; }
  .story-heading { gap: 24px; flex-direction: column; align-items: start; }
  .story-heading > span { display: none; }
  .story-panel { padding: 32px 0; }
  .story-panel h3 { font-size: 37px; }
  .story-panel p { font-size: 15px; }
  @media (prefers-reduced-motion: no-preference) {
    .motion-ready .story-runway { height: auto; min-height: 0; }
    .motion-ready .story-stage { min-height: 620px; }
    .motion-ready .story-heading { top: 28px; }
    .motion-ready .story-heading h2 { font-size: 40px; }
    .motion-ready .story-images { top: 150px; bottom: auto; height: clamp(230px, 35svh, 330px); }
    .motion-ready .story-images img { object-position: 58% center; }
    .motion-ready .story-images #moment-company, .motion-ready .story-images #moment-respite { object-position: 78% center; }
    .motion-ready .story-shade { background: linear-gradient(0deg, var(--ink) 0%, var(--ink) 39%, var(--clear) 58%, var(--clear)); }
    .motion-ready .story-panel { width: 100%; bottom: 100px; }
    .motion-ready .story-panel h3 { font-size: 40px; }
    .motion-ready .story-panel p { font-size: 15px; max-width: 320px; margin-top: 16px; }
    .motion-ready .story-footer { bottom: 28px; gap: 16px; font-size: 11px; }
    .motion-ready .story-panel .chapter-time { margin-bottom: 12px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-content, .hero-note, .story-images img, .story-panel, .reveal-ready { transform: none !important; }
  .reveal-ready { opacity: 1; }
  .hero-line > span { transform: none; }
  .hero-heartline path { stroke-dashoffset: 0; }
}
@media print {
  .story-runway { height: auto !important; min-height: 0 !important; color: var(--ink); background: var(--paper); }
  .story-stage { position: static !important; height: auto !important; max-height: none !important; }
  .story-images, .story-shade, .story-footer { display: none !important; }
  .story-heading, .story-panel { position: static !important; opacity: 1 !important; transform: none !important; width: 100% !important; }
  .story-panel p, .story-panel .chapter-time { color: var(--ink); }
  .reveal-ready { opacity: 1; transform: none; }
}

@media(prefers-reduced-motion:no-preference) {
  .motion-ready .story-images img { transition: opacity 900ms ease, transform 5s ease; }
  .motion-ready .story-panel { transition: opacity 650ms ease, transform 650ms ease; }
}
