/* Motion follows the material: open the scene, then follow three working moments. */
.hero-line,.hero-line>span{display:block}
.hero-line{overflow:hidden;padding-bottom:.04em;margin-bottom:-.04em}
.has-scroll-motion .hero-line>span{animation:open-hero-line .85s cubic-bezier(.2,.7,.25,1) both}
.has-scroll-motion .hero-line:nth-child(2)>span{animation-delay:.12s}
@keyframes open-hero-line{from{transform:translateY(110%)}to{transform:translateY(0)}}
.has-scroll-motion .site-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--cyan);transform:scaleX(var(--page-progress,0));transform-origin:left;pointer-events:none}
@media(min-width:901px){.has-scroll-motion [data-hero-motion]{transform:translate3d(0,var(--hero-shift,0px),0)}}

/* A coordinated photo reveal leaves labels and controls readable throughout. */
.has-scroll-motion .discovery-grid[data-scroll-reveal] .discovery-photo img,
.has-scroll-motion .packaging-photos[data-scroll-reveal] img,
.has-scroll-motion .scroll-story-chapter[data-scroll-reveal] .scroll-story-inline img{clip-path:inset(0 0 100% 0);transition:clip-path .85s cubic-bezier(.2,.7,.25,1)}
.has-scroll-motion .discovery-grid[data-scroll-reveal].is-in-view .discovery-photo img,
.has-scroll-motion .discovery-grid[data-scroll-reveal]:focus-within .discovery-photo img,
.has-scroll-motion .packaging-photos[data-scroll-reveal].is-in-view img,
.has-scroll-motion .scroll-story-chapter[data-scroll-reveal].is-in-view .scroll-story-inline img{clip-path:inset(0)}
.discovery-card:nth-child(2) .discovery-photo img{transition-delay:.08s}
.discovery-card:nth-child(3) .discovery-photo img{transition-delay:.16s}
.discovery-card:nth-child(4) .discovery-photo img{transition-delay:.24s}
.has-scroll-motion .gallery-section[data-gallery-view="all"] [data-scroll-parallax] img{transform:translate3d(0,var(--photo-shift,0px),0) scale(1.12)}
.has-scroll-motion .app-flow[data-scroll-reveal] .app-capture{transform:translateY(28px);opacity:.35;transition:transform .8s cubic-bezier(.2,.7,.25,1),opacity .8s ease}
.has-scroll-motion .app-flow[data-scroll-reveal].is-in-view .app-capture,
.has-scroll-motion .app-flow[data-scroll-reveal]:focus-within .app-capture{transform:none;opacity:1}
.app-flow[data-scroll-reveal] .flow-step:nth-child(2) .app-capture{transition-delay:.1s}
.app-flow[data-scroll-reveal] .flow-step:nth-child(3) .app-capture{transition-delay:.2s}

/* The same three chapters remain a complete photo story without enhancement. */
.work-story[data-scroll-story]{padding:42px;margin-top:48px;border-radius:20px;scroll-margin-top:110px}
.work-story[data-scroll-story] .work-story-heading{align-items:flex-end;margin-bottom:20px}
.work-story[data-scroll-story] .work-story-heading h3{font-size:38px;line-height:1.3;letter-spacing:-.05em}
.work-story-label{font-size:12px!important;color:#8bdcf0!important;margin-bottom:15px}
.work-story[data-scroll-story] .work-story-heading>p{font-size:14px;line-height:1.9;max-width:330px;padding-bottom:3px}
.scroll-story-stage{display:none;min-width:0}
.scroll-story-chapter{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:56px;min-height:62svh;padding:42px 0;border-bottom:1px solid #ffffff24}
.scroll-story-chapter:last-child{border-bottom:0}
.scroll-story-copy{min-width:0}
.scroll-story-verb{display:inline-block;font-size:12px;font-weight:700;color:#8bdcf0;border:1px solid #ffffff35;border-radius:24px;padding:6px 12px;margin-bottom:24px}
.scroll-story-copy h4{font-size:38px;line-height:1.35;letter-spacing:-.05em;margin:0;max-width:400px;font-weight:700}
.scroll-story-copy>p{color:#d0e4e9;font-size:16px;line-height:1.9;margin-top:23px;max-width:360px}
.scroll-story-inline{min-width:0;overflow:hidden;border-radius:10px}
.scroll-story-inline img{width:100%;height:auto;max-height:330px;aspect-ratio:1.5;object-fit:cover;border-radius:10px}
.scroll-story-inline figcaption{font-size:12px;color:#d0e4e9;padding-top:13px}

/* A fixed photo stage and real text chapters make the scroll position meaningful. */
.work-story.is-enhanced .scroll-story-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:start}
.work-story.is-enhanced .scroll-story-stage{display:block;position:sticky;top:126px;padding-top:36px}
.scroll-story-frames{position:relative;height:min(53svh,510px);overflow:hidden;border-radius:12px}
.scroll-story-frame{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) 43px;gap:0;opacity:0;transform:scale(1.035);transition:opacity .7s ease,transform .9s cubic-bezier(.2,.7,.25,1);pointer-events:none}
.scroll-story-frame.is-active{opacity:1;transform:scale(1)}
.scroll-story-frame img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px}
.scroll-story-frame figcaption{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#d0e4e9}
.scroll-story-frame figcaption>span:last-child{font-size:11px;color:#8bdcf0}
.scroll-story-progress{height:3px;background:#ffffff24;border-radius:3px;overflow:hidden;margin-top:10px}
.scroll-story-progress>span{display:block;width:100%;height:100%;background:var(--cyan);transform:scaleX(var(--story-progress,0));transform-origin:left;transition:transform .6s ease}
.scroll-story-location{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#b6d4db;margin-top:15px}
.work-story.is-enhanced .scroll-story-chapter{min-height:62svh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding:42px 0 42px 30px;border-bottom:0;border-left:2px solid #ffffff21;transition:border-color .45s ease}
.work-story.is-enhanced .scroll-story-copy h4{font-size:40px;color:#c5dce2;transition:color .45s ease}
.work-story.is-enhanced .scroll-story-chapter.is-active{border-left-color:var(--cyan)}
.work-story.is-enhanced .scroll-story-chapter.is-active h4{color:white}
.work-story.is-enhanced .scroll-story-chapter.is-active .scroll-story-verb{background:var(--cyan);border-color:var(--cyan);color:var(--sea)}
.work-story.is-enhanced .scroll-story-inline{display:none}

.motion-toggle{position:fixed;right:22px;bottom:22px;z-index:9;min-height:44px;border:1px solid #abcbd4;border-radius:25px;padding:10px 17px;background:#fffffff5;color:var(--sea);font-size:12px;line-height:1.5;box-shadow:0 4px 20px #063f4b12}
.motion-toggle:hover{background:var(--foam)}
.motion-toggle::before{content:"Ⅱ";font-size:13px;margin-right:8px;font-weight:700}
.motion-toggle[aria-pressed="true"]::before{content:"▷"}
.dialog-open .motion-toggle{visibility:hidden}

@media(max-width:1100px){
.work-story[data-scroll-story]{padding:34px}
.work-story.is-enhanced .scroll-story-layout{grid-template-columns:1fr 1fr;gap:40px}
.work-story[data-scroll-story] .work-story-heading h3{font-size:34px}
.work-story[data-scroll-story] .work-story-heading>p{font-size:13px;max-width:280px}
.work-story.is-enhanced .scroll-story-copy h4{font-size:34px}
.scroll-story-copy h4{font-size:32px}.scroll-story-copy>p{font-size:15px}
}
@media(max-width:900px){
.work-story.is-enhanced .scroll-story-frames{height:min(48svh,360px)}
.work-story[data-scroll-story]{padding:29px}
.scroll-story-chapter{min-height:0;padding-block:35px;gap:30px}
.scroll-story-copy h4{font-size:30px}.scroll-story-copy>p{font-size:14px;margin-top:18px}
.scroll-story-verb{margin-bottom:18px}
}
@media(max-width:600px){
.work-story[data-scroll-story]{padding:28px 20px;margin-top:32px;border-radius:15px}
.work-story[data-scroll-story] .work-story-heading{display:block;margin-bottom:5px}
.work-story[data-scroll-story] .work-story-heading h3{font-size:29px}
.work-story-label{font-size:11px!important;margin-bottom:14px}
.work-story[data-scroll-story] .work-story-heading>p{font-size:13px;margin-top:19px;max-width:none}
.scroll-story-chapter{grid-template-columns:1fr;gap:23px;padding-block:31px}
.scroll-story-copy h4{font-size:29px;max-width:300px}
.scroll-story-copy>p{font-size:14px;margin-top:16px;max-width:none}
.scroll-story-verb{font-size:11px;margin-bottom:16px;padding:5px 11px}
.scroll-story-inline img{max-height:none;aspect-ratio:1.3}.scroll-story-inline figcaption{font-size:11px;padding-top:11px}
.motion-toggle{right:12px;bottom:12px;width:44px;height:44px;font-size:0;padding:0}.motion-toggle::before{font-size:15px;margin-right:0}
}
@media(max-width:350px){
.work-story[data-scroll-story]{padding-inline:17px}.work-story[data-scroll-story] .work-story-heading h3{font-size:26px}.scroll-story-copy h4{font-size:26px}
}
@media(prefers-reduced-motion:reduce){
.hero-line>span,.discovery-photo img,.packaging-photos img,.app-capture,.scroll-story-frame,.scroll-story-inline img,.scroll-story-progress>span{animation:none!important;transition:none!important}
.motion-toggle{display:none}
}
