/* Experimental TOP concept. The published index.html keeps its own design. */
.motion-test { overflow-x: clip; background: #fff; }
.motion-progress { position: fixed; inset: 0 auto auto 0; z-index: 80; width: 100%; height: 3px; background: #1b70f1; transform: scaleX(0); transform-origin: left; pointer-events: none; animation: read-progress linear both; animation-timeline: scroll(root block); }
.motion-test .hero { position: relative; isolation: isolate; width: min(1340px, calc(100% - 64px)); min-height: min(730px, calc(100svh - 76px)); padding: 70px 4.5% 90px; grid-template-columns: minmax(0, 1fr) minmax(0, .91fr); gap: 4%; }
.motion-test .hero::before { content: ""; position: absolute; z-index: -2; inset: 24px 0 38px 37%; border-radius: 46% 54% 40% 60% / 50% 41% 59% 50%; background: #e8f3ff; transform: rotate(-8deg); animation: hero-breathe 9s ease-in-out infinite alternate; }
.motion-test .hero::after { content: ""; position: absolute; z-index: -1; width: 130px; aspect-ratio: 1; right: 4%; top: 6%; border: 1px solid #4a88e5; border-radius: 50%; opacity: .7; }
.motion-test .hero-copy { position: relative; z-index: 2; }
.motion-test .hero-kicker { width: fit-content; margin-bottom: 22px; padding: 8px 12px; border-radius: 4px; color: #0b4fae; background: #e8f3ff; font-weight: 700; }
.motion-test .hero h1 { max-width: 660px; margin-bottom: 24px; font-size: clamp(44px, 5.25vw, 78px); line-height: 1.18; letter-spacing: -.055em; }
.motion-test .hero h1 span { width: fit-content; overflow: hidden; animation: type-rise .8s both; }
.motion-test .hero h1 span:nth-child(2) { animation-delay: .12s; }
.motion-test .hero h1 span:nth-child(3) { color: #1264dc; animation-delay: .24s; }
.motion-test .hero-lead { max-width: 550px; font-size: 17px; line-height: 1.8; }
.motion-test .hero-cta { position: relative; z-index: 3; }
.motion-test .hero-cta a { transition: transform .25s ease, filter .25s ease; }
.motion-test .hero-cta a:hover { transform: translateY(-4px); filter: drop-shadow(0 8px 12px rgb(13 59 128 / 15%)); }
.motion-test .hero-visual { position: relative; align-self: stretch; display: grid; align-content: end; min-height: 570px; animation: hero-parallax linear both; animation-timeline: scroll(root block); animation-range: 0 650px; }
.motion-test .hero-visual::before { content: ""; position: absolute; z-index: -1; width: 74%; aspect-ratio: 1; left: 12%; bottom: 14%; border-radius: 50%; background: #cde5fc; box-shadow: 0 0 0 34px rgb(202 228 251 / 45%); }
.motion-test .hero-visual picture { width: min(92%, 520px); margin-inline: auto; transform-origin: bottom center; animation: visual-arrive 1s .18s both, visual-float 7s 1.2s ease-in-out infinite alternate; }
.motion-test .hero-photo { max-height: 600px; object-fit: contain; filter: drop-shadow(0 28px 28px rgb(9 34 79 / 14%)); }
.motion-test .hero-visual figcaption { position: relative; z-index: 1; font-size: 13px; }
.motion-statement { overflow: hidden; padding: 58px max(24px, calc((100vw - 1100px) / 2)); color: #fff; background: #0c2452; }
.motion-statement p { margin: 0 0 20px; color: #a9d7ff; font-size: 17px; font-weight: 700; }
.motion-statement div { display: flex; justify-content: space-between; gap: 22px; }
.motion-statement span { display: block; font-size: clamp(30px, 5vw, 70px); font-weight: 800; line-height: 1.2; letter-spacing: -.05em; }
.motion-statement span + span::before { content: "→"; margin-right: clamp(12px, 2vw, 34px); color: #62a6f2; font-weight: 400; }
.motion-test .legacy-overview .problem-section, .motion-test .legacy-overview .feature-section, .motion-test .scene-section, .motion-test .points-section, .motion-test .media-section, .motion-test .faq-section { padding-top: 104px; padding-bottom: 104px; }
.motion-test .legacy-overview .feature-section { width: min(1180px, calc(100% - 64px)); }
.motion-test .scene-grid { max-width: 1100px; }
.motion-test .scene-card { transition: transform .35s ease, background-color .35s ease, box-shadow .35s ease; }
.motion-test .scene-card:hover { transform: translateX(12px); background: #f3f8ff; box-shadow: -6px 0 #2172df; }
.motion-test .scene-photo { transition: transform .5s ease; }
.motion-test .scene-card:hover .scene-photo { transform: scale(1.035); }
.motion-test .point-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.motion-test .point-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgb(13 45 100 / 12%); }
.motion-test .feature-card { transition: transform .35s ease, box-shadow .35s ease; }
.motion-test .feature-card:hover { transform: translateY(-7px); box-shadow: 0 22px 42px rgb(13 45 100 / 11%); }
html.motion-ready .motion-reveal { opacity: 0; transform: translateY(42px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.motion-ready .motion-reveal.is-visible { opacity: 1; transform: translateY(0); }
html.motion-ready .motion-reveal:nth-child(2) { transition-delay: .08s; }
html.motion-ready .motion-reveal:nth-child(3) { transition-delay: .16s; }
@keyframes hero-breathe { to { border-radius: 56% 44% 58% 42% / 43% 55% 45% 57%; transform: rotate(1deg) scale(1.035); } }
@keyframes read-progress { to { transform: scaleX(1); } }
@keyframes hero-parallax { to { transform: translateY(80px); } }
@keyframes type-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visual-arrive { from { opacity: 0; transform: translateY(60px) scale(.93); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes visual-float { to { transform: translateY(-14px); } }
@media (max-width: 900px) {
  .motion-test .hero { min-height: 0; padding-inline: 3%; }
  .motion-test .hero h1 { font-size: clamp(37px, 5.4vw, 56px); }
  .motion-test .hero-visual { min-height: 470px; }
  .motion-statement { padding-block: 44px; }
}
@media (max-width: 760px) {
  .motion-test .hero { width: calc(100% - 32px); padding: 28px 12px 42px; grid-template-columns: 1fr; gap: 8px; }
  .motion-test .hero::before { inset: auto -12px 16px 8%; height: 46%; }
  .motion-test .hero::after { width: 74px; top: auto; bottom: 25%; }
  .motion-test .hero h1 { font-size: clamp(33px, 8vw, 48px); }
  .motion-test .hero-lead { font-size: 16px; }
  .motion-test .hero-visual { min-height: 350px; animation: none; }
  .motion-test .hero-photo { max-height: 390px; }
  .motion-statement { padding: 35px 24px; }
  .motion-statement div { flex-direction: column; gap: 8px; }
  .motion-statement span { font-size: clamp(28px, 8vw, 42px); }
  .motion-statement span + span::before { content: "↓"; display: inline-block; width: 42px; margin-right: 8px; }
  .motion-test .legacy-overview .problem-section, .motion-test .legacy-overview .feature-section, .motion-test .scene-section, .motion-test .points-section, .motion-test .media-section, .motion-test .faq-section { padding-top: 64px; padding-bottom: 64px; }
  .motion-test .legacy-overview .feature-section { width: calc(100% - 40px); }
  .motion-test .sticky-contact { display: none; }
  body.motion-test { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-progress, .motion-test .hero::before, .motion-test .hero h1 span, .motion-test .hero-visual picture { animation: none; }
  .motion-test .hero-visual { animation: none; }
  html.motion-ready .motion-reveal { opacity: 1; transform: none; transition: none; }
  .motion-test .scene-card, .motion-test .scene-photo, .motion-test .point-card, .motion-test .feature-card, .motion-test .hero-cta a { transition: none; }
}

/* A four-chapter story: the image stays in view while the narrative advances. */
.habit-story { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #f4f8fd; }
.story-stage { position: sticky; top: 85px; height: calc(100svh - 85px); min-height: 480px; overflow: hidden; background: #12264f; }
.story-frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.07); transition: opacity .8s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.story-frame.is-active { opacity: 1; transform: scale(1); }
.story-frame img { width: 100%; height: 100%; object-fit: cover; }
.story-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(8 25 55 / 85%)); }
.story-overlay { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 12%; color: white; font-size: clamp(28px, 3.2vw, 50px); font-weight: 800; line-height: 1.45; }
.story-overlay strong { font-size: clamp(90px, 12vw, 170px); line-height: 1; font-weight: 700; }
.story-track { position: absolute; z-index: 2; bottom: 6%; left: 8%; right: 8%; display: flex; gap: 8px; }
.story-track i { height: 3px; flex: 1; background: #ffffff45; transition: background .5s; }
.story-track i.is-active { background: #fff; }
.story-chapter { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(26px, 6vw, 105px); }
.story-time { color: #1965d0; font-weight: 700; font-size: 16px; }
.story-chapter h2 { margin: 8px 0 30px; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.5; }
.story-chapter > p:not(.story-time) { max-width: 460px; font-size: 17px; line-height: 2; }
.story-chapter a { align-self: start; margin-top: 14px; }
.story-finale { padding: 110px 24px; text-align: center; background: #0b2451; color: white; }
.story-finale > p { color: #abd4ff; }
.story-finale h2 { color: white; font-size: clamp(32px, 4.5vw, 62px); line-height: 1.5; margin: 20px 0 40px; }
.story-start { display: inline-flex; gap: 40px; align-items: center; padding: 20px 32px; border-radius: 6px; background: white; color: #0b2451; font-size: 18px; font-weight: 700; transition: transform .25s; }
.story-start:hover { transform: translateY(-5px); }
@media(max-width:760px) {
  .habit-story { display: block; }
  .story-stage { top: 72px; height: 38svh; min-height: 230px; z-index: 3; }
  .story-overlay { font-size: 25px; bottom: 17%; }
  .story-overlay strong { font-size: 64px; }
  .story-chapter { min-height: 68svh; padding: 42px 28px 70px; }
  .story-chapter h2 { font-size: 30px; margin-bottom: 18px; }
  .story-chapter > p:not(.story-time) { font-size: 16px; }
  .story-finale { padding-block: 75px; }
}
@media(prefers-reduced-motion:reduce) {
  .story-frame { transition: none; transform: none; }
  .story-start { transition: none; }
}

/* Let the original photographic light dissolve into the white page. */
.motion-test .hero::before,
.motion-test .hero::after,
.motion-test .hero-visual::before { content: none; }
.motion-test .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.motion-test .hero h1 { font-size: clamp(34px, 4.1vw, 60px); }
.motion-test .hero-visual picture { width: 110%; max-width: none; margin-left: -5%; }
.motion-test .hero-photo {
  filter: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent);
  mask-composite: intersect;
}
.motion-test .scene-section { width: min(1180px, calc(100% - 64px)); border: 0; }
.motion-test .scene-section .section-heading { margin-bottom: 60px; }
.motion-test .scene-grid { max-width: none; border: 0; padding-bottom: 8vh; }
.motion-test .scene-card {
  position: sticky; top: 110px; min-height: 540px; margin-bottom: 12vh; padding: 54px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto;
  gap: 20px 46px; overflow: hidden; border: 1px solid #dde7f2; border-radius: 26px;
  background: #eef5fd; box-shadow: 0 -14px 40px rgb(16 40 77 / 8%);
  isolation: isolate;
}
.motion-test .scene-card:nth-child(2) { top: 128px; background: #edf7f3; }
.motion-test .scene-card:nth-child(3) { top: 146px; background: #f7f3ec; }
.motion-test .scene-number { position: absolute; z-index: -1; top: 4px; left: 26px; font-size: 160px; font-weight: 800; color: rgb(27 66 110 / 6%); }
.motion-test .scene-copy { grid-column: 1; grid-row: 1; padding: 0; border: 0; align-self: center; }
.motion-test .scene-copy h3 { margin-bottom: 18px; font-size: 18px; }
.motion-test .scene-copy p { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.6; }
.motion-test .scene-photo { grid-column: 2; grid-row: 1 / 3; width: 100%; height: 390px; max-width: none; border-radius: 14px; object-fit: cover; }
.motion-test .scene-card b { grid-column: 1; grid-row: 2; justify-self: start; padding: 13px 20px; border-radius: 5px; background: #fff; font-size: 16px; text-decoration: none; }
.motion-test .scene-card b::after { content: ' ↗'; }
.motion-test .scene-card:hover { transform: none; background: #eef5fd; box-shadow: 0 -14px 40px rgb(16 40 77 / 8%); }
.motion-test .scene-card:nth-child(2):hover { background: #edf7f3; }
.motion-test .scene-card:nth-child(3):hover { background: #f7f3ec; }
@supports (animation-timeline: view()) {
  .motion-test .scene-photo { animation: scene-photo-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@keyframes scene-photo-reveal { from { clip-path: inset(12% 8% round 40px); transform: scale(.94); } to { clip-path: inset(0 round 14px); transform: scale(1); } }
@media(max-width:760px) {
  .motion-test .hero { grid-template-columns: 1fr; }
  .motion-test .hero h1 { font-size: clamp(30px, 7vw, 46px); }
  .motion-test .hero-visual picture { width: 100%; margin-left: 0; }
  .motion-test .scene-section { width: calc(100% - 32px); }
  .motion-test .scene-card { top: 82px; min-height: 0; padding: 26px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 20px; margin-bottom: 9vh; border-radius: 18px; }
  .motion-test .scene-card:nth-child(2) { top: 94px; }
  .motion-test .scene-card:nth-child(3) { top: 106px; }
  .motion-test .scene-copy { grid-row: 1; }
  .motion-test .scene-copy p { font-size: 22px; }
  .motion-test .scene-photo { grid-column: 1; grid-row: 2; height: clamp(150px, 25svh, 230px); }
  .motion-test .scene-card b { grid-column: 1; grid-row: 3; }
}
@media(max-height:700px), (prefers-reduced-motion:reduce) {
  .motion-test .scene-card { position: relative; top: auto !important; }
  .motion-test .scene-photo { animation: none; }
}

/* Rewards become the next chapter, with alternating image-led panels. */
.motion-test .points-section { width: min(1180px, calc(100% - 64px)); border: 0; }
.motion-test .points-section .section-heading { max-width: 900px; margin-bottom: 64px; }
.motion-test .points-section .section-heading h2 { font-size: clamp(28px, 3.5vw, 46px); }
.motion-test .points-grid { grid-template-columns: 1fr; gap: 36px; }
.motion-test .point-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; gap: 12px 60px; padding: 54px 60px; min-height: 390px; border: 0; border-radius: 26px; background: #eef5fd; }
.motion-test .point-card:nth-child(2) { background: #edf7f3; }
.motion-test .point-card:nth-child(3) { background: #fcf5e9; }
.motion-test .point-card::before { content: ''; position: absolute; z-index: -1; right: 5%; top: 8%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff9; }
.motion-test .point-card .scene-icon { grid-column: 1; grid-row: 1; margin: 0 0 8px; width: 42px; height: 42px; }
.motion-test .point-card h3 { grid-column: 1; grid-row: 2; font-size: clamp(23px, 2.4vw, 32px); margin: 0; }
.motion-test .point-card p { grid-column: 1; grid-row: 3; font-size: 17px; margin: 0; }
.motion-test .point-card b { grid-column: 1; grid-row: 4; align-self: end; justify-self: start; padding: 12px 22px; margin-top: 18px; background: white; border-radius: 5px; text-decoration: none; }
.motion-test .point-card b::after { content: ' ↗'; }
.motion-test .point-card .point-visual { grid-column: 2; grid-row: 1 / 5; align-self: center; width: 100%; height: 280px; margin: 0; object-fit: contain; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
.motion-test .point-card:nth-child(2) .point-visual { grid-column: 1; }
.motion-test .point-card:nth-child(2) :is(.scene-icon, h3, p, b) { grid-column: 2; }
.motion-test .point-card:nth-child(2)::before { right: auto; left: 5%; }
html.motion-ready .motion-test .point-card:not(.is-visible) .point-visual { transform: translate(55px, 35px) rotate(8deg) scale(.85); opacity: 0; }
html.motion-ready .motion-test .point-card:nth-child(2):not(.is-visible) .point-visual { transform: translate(-55px, 35px) rotate(-8deg) scale(.85); }
.motion-test .point-card:hover { transform: translateY(-4px); background: #eef5fd; }
.motion-test .point-card:nth-child(2):hover { background: #edf7f3; }
.motion-test .point-card:nth-child(3):hover { background: #fcf5e9; }
.motion-test .point-card:hover .point-visual { transform: translateY(-10px) rotate(-2deg); }
.motion-test .media-section { margin-top: 50px; border-top: 1px solid #dde7f2; }
.motion-test .media-grid { gap: 40px; }
.motion-test .faq-list details { transition: background .25s ease; }
.motion-test .faq-list details[open] { background: #f1f6fc; border-radius: 10px; padding-inline: 16px; }
@media(max-width:760px) {
  .motion-test .points-section { width: calc(100% - 32px); }
  .motion-test .points-grid { gap: 24px; }
  .motion-test .point-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; padding: 28px; gap: 12px; min-height: 0; }
  .motion-test .point-card .point-visual, .motion-test .point-card:nth-child(2) .point-visual { grid-column: 1; grid-row: 4; height: 190px; }
  .motion-test .point-card:nth-child(2) :is(.scene-icon, h3, p, b) { grid-column: 1; }
  .motion-test .point-card b { grid-row: 5; }
  .motion-test .point-card::before { width: 65%; top: auto; bottom: 12%; }
  .motion-test .point-card p { font-size: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .motion-test .point-card, .motion-test .point-card .point-visual { transition: none; }
  .motion-test .point-card:hover, .motion-test .point-card:hover .point-visual { transform: none; }
}
