/* ENDOkey story: content, actions and navigation have separate layout rows. */
html:has(.story-home){scroll-behavior:smooth}
.story-home{--story-header:82px;--story-gutter:clamp(24px,5.5vw,100px)}
.journey-intro,.journey{color:#14132f;background:#fff}
.journey-intro{margin-top:var(--story-header);min-height:calc(calc(100 * var(--story-vh,1svh)) - var(--story-header));padding:28px var(--story-gutter) 22px;display:grid;grid-template-rows:auto 1fr auto auto;gap:24px;box-sizing:border-box;isolation:isolate}
.journey-brand{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.16em;line-height:1.5;font-weight:800;text-transform:uppercase;color:#303b81}
.journey-brand>span{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#609b35}
.journey-intro-content,.journey-panel{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:4%;align-items:center;min-width:0}
.journey-intro-content{min-height:420px}
.journey-copy{position:relative;z-index:2;min-width:0}
.journey-stage{font-size:11px;letter-spacing:.1em;line-height:1.5;color:#646d78;margin:0 0 20px;text-transform:uppercase;font-weight:600}
.journey-copy h1,.journey-copy h2{font-weight:400;line-height:1.06;letter-spacing:-.047em;margin:0;color:#14132f;text-wrap:balance;overflow-wrap:normal}
.journey-copy h1{font-size:clamp(46px,5.5vw,84px);max-width:11ch}
.journey-copy h2{font-size:clamp(32px,min(4.2vw,calc(6.2 * var(--story-vh,1svh))),64px);max-width:16ch}
.journey-copy em{font-style:normal;color:#619936}
.journey-description{font-size:clamp(15px,1.25vw,18px);line-height:1.58;color:#485166;max-width:470px;margin:24px 0 0}
.journey-note{font-size:13px;line-height:1.5;font-weight:600;color:#303b81;max-width:450px;margin:18px 0 0;padding-left:14px;border-left:2px solid #81a957}
.journey-image{position:relative;align-self:stretch;min-width:0;min-height:0;overflow:hidden;margin:0;isolation:isolate;pointer-events:none}
.journey-image>img{position:absolute;right:0;top:0;height:100%;width:auto;max-width:none;object-fit:contain;}
.journey-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;position:relative;z-index:3}
.journey-actions .button{font-size:12px;padding:15px 20px;min-height:48px;white-space:nowrap}
.journey-actions .text-link{font-size:12px;white-space:nowrap}
.journey-intro-foot{display:flex;justify-content:space-between;gap:24px;padding-top:20px;border-top:1px solid #dce1df;font-size:11px;line-height:1.5;color:#646d78}
.journey-intro-foot a{color:#303b81;text-decoration:none;white-space:nowrap}
.story-home #how,.story-home #product{scroll-margin-top:var(--story-header)}
.journey-sticky{padding:24px var(--story-gutter) 18px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:18px;box-sizing:border-box;background:#fff}
.journey-panels{min-height:0;min-width:0}
.journey-panel{padding:50px 0;min-height:580px;scroll-margin-top:calc(var(--story-header) + 20px)}
.journey-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px}
.journey-caption{font-size:10px;line-height:1.5;color:#646d78}
.journey-nav{border-top:1px solid #dce1df;padding-top:10px}
.journey-stops{display:flex;gap:10px}
.journey-stops a{flex:1;min-width:0;display:flex;gap:8px;align-items:baseline;padding:10px 3px;border-top:2px solid transparent;color:#68717b;text-decoration:none;transition:color 160ms,border-color 160ms;min-height:44px;box-sizing:border-box}
.journey-stops a[aria-current="step"]{color:#26376c;border-color:#609b35}
.journey-stops span{font-size:10px;font-variant-numeric:tabular-nums}
.journey-stops b{font-size:10px;line-height:1.4;font-weight:500}
.journey a:focus-visible,.journey button:focus-visible,.journey-intro a:focus-visible,.journey-intro button:focus-visible{outline:2px solid #3936c8;outline-offset:4px}
.journey.is-enhanced{height:calc(650 * var(--story-vh,1svh))}
.journey.is-enhanced .journey-sticky{position:sticky;top:var(--story-header);height:calc(calc(100 * var(--story-vh,1svh)) - var(--story-header))}
.journey.is-enhanced .journey-panels{display:grid;position:relative}
.journey.is-enhanced .journey-panel{grid-area:1 / 1;min-height:0;padding:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 260ms ease,visibility 0s 260ms}
.journey.is-enhanced .journey-panel.is-current{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 260ms ease,visibility 0s}
.journey.is-enhanced .journey-copy{transition:opacity 130ms ease}
.journey.is-enhanced .journey-panel:not(.is-current) .journey-copy{opacity:0}
.journey:not(.is-enhanced) .journey-panel+.journey-panel{border-top:1px solid #e5e8e4}
.journey:not(.is-enhanced) .journey-nav{grid-row:2}
.journey:not(.is-enhanced) .journey-stops{flex-wrap:wrap}
.journey:not(.is-enhanced) .journey-stops a{flex:1 0 100px}
.journey:not(.is-enhanced) .journey-panels{grid-row:4}
.journey:not(.is-enhanced) .journey-bottom{grid-row:3}

.journey-image.journey-morphology{display:flex;align-items:flex-end;justify-content:center;flex-direction:column;overflow:visible}
.morphology-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:20px 28px;width:min(100%,calc(calc(100 * var(--story-vh,1svh)) - 240px));height:calc(100% - 38px);max-height:800px;align-self:flex-end}
.morphology-item{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;min-width:0;min-height:0;margin:0;text-align:center}
.morphology-item>img{height:100%;width:100%;min-height:0;object-fit:contain}
.morphology-item>figcaption{font-family:var(--font);font-size:clamp(15px,1.05vw,21px);line-height:1.35;color:#28394b;font-weight:500;letter-spacing:0;padding:0}
.morphology-caption{align-self:flex-end;width:100%;font-size:13px;color:#647181;text-align:center;line-height:1.5;margin:18px 0 0}
.story-home #product .button.primary{background:#fff;color:#252669;border-color:#fff}
.story-home #product .product-actions{gap:10px}
@media(min-width:761px) and (max-height:750px){
 .journey-sticky{gap:12px;padding-top:18px;padding-bottom:12px}
 .journey-stage{margin-bottom:12px}
 .journey-description{margin-top:16px;font-size:15px;line-height:1.5}
 .journey-note{margin-top:12px;font-size:12px}
 .journey-intro{gap:18px;padding-top:20px}
 .journey-intro-content{min-height:340px}
 .journey-copy h1{font-size:clamp(44px,calc(8 * var(--story-vh,1svh)),68px)}
 .journey-intro-foot{padding-top:14px}
}
@media(max-width:1050px){
 .journey-stops a{flex-direction:column;gap:4px}
 .journey-description{font-size:15px}
 .journey-stops{gap:5px}
 .journey-caption{max-width:130px}
}
@media(max-width:760px){
 .story-home{--story-header:66px;--story-gutter:22px}
 .journey-intro{padding-top:22px;gap:20px}
 .journey-brand{font-size:8px;letter-spacing:.12em}
 .journey-intro-content,.journey-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(180px,1fr);gap:16px;align-items:start}
 .journey-intro-content{min-height:0}
 .journey-copy h1{font-size:clamp(40px,10vw,64px);max-width:12ch}
 .journey-copy h2{font-size:clamp(30px,7.8vw,44px);max-width:20ch}
 .journey-stage{font-size:9px;margin-bottom:12px}
 .journey-description{font-size:14px;line-height:1.5;margin-top:15px;max-width:540px}
 .journey-note{font-size:11px;line-height:1.5;margin-top:12px}
 .journey-image{height:320px;width:100%}
 
 .journey-intro .journey-image{height:280px}
 .journey-actions{gap:16px}
 .journey-actions .button{font-size:11px;padding:13px 15px;min-height:46px}
 .journey-actions .text-link{font-size:11px}
 .journey-intro-foot{font-size:10px;padding-top:16px}
 .journey-intro-foot>span{max-width:200px}
 .journey-sticky{padding-top:18px;padding-bottom:12px;gap:14px}
 .journey-panel{padding:32px 0;min-height:0}
 .journey-bottom{gap:8px}
 .journey-caption{display:none}
 .journey-stops{gap:5px}
 .journey-stops a{align-items:center;justify-content:center;padding:8px 0;min-height:40px}
 .journey-stops span{font-size:11px}
 .journey-stops b{display:none}
 .journey-nav{padding-top:4px}
 .journey.is-enhanced .journey-panel{grid-template-rows:auto minmax(0,1fr)}
 .journey.is-enhanced .journey-image{height:100%}
 
 .journey:not(.is-enhanced) .journey-stops b{display:block}
 .journey:not(.is-enhanced) .journey-stops a{align-items:flex-start;flex:1 0 70px}
}
@media(max-width:370px){
 .story-home{--story-gutter:18px}
 .journey-actions{gap:12px}
 .journey-actions .button{font-size:10px;padding:12px}
 .journey-actions .text-link{font-size:10px}
 .journey-copy h1{font-size:40px}
 .journey-intro-foot>span{max-width:160px}
}
@media(prefers-reduced-motion:reduce){
 html:has(.story-home){scroll-behavior:auto}
 .journey *, .journey-intro *{transition:none!important}
}

.mobile-purchase{display:none}
@media(max-width:760px){
 html:has(.story-home){scroll-padding-top:76px;scroll-padding-bottom:96px}
 .story-home{--story-header:64px;--story-gutter:20px;padding-bottom:96px}
 .mobile-purchase{position:fixed;z-index:45;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 10px 10px 18px;border:1px solid #ffffff80;border-radius:19px;background:#15263a;color:white;box-shadow:0 8px 30px #11203624}
 .mobile-purchase-info{display:flex;flex-direction:column;gap:3px;text-decoration:none;color:white;min-width:0}
 .mobile-purchase-info>span{font-size:10px;letter-spacing:.1em;font-weight:600}
 .mobile-purchase-info>strong{font-size:17px;line-height:1.2;font-weight:600;white-space:nowrap}
 .mobile-purchase>button{display:flex;align-items:center;justify-content:center;gap:20px;min-height:46px;padding:0 22px;border:0;border-radius:12px;background:#d2ecb7;color:#172a15;font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer}
 .cart-open .mobile-purchase{visibility:hidden}
 .journey-intro{min-height:calc(calc(100 * var(--story-vh,1svh)) - var(--story-header) - 92px);padding-top:24px;padding-bottom:20px;gap:18px;grid-template-rows:auto 1fr auto}
 .journey-intro .journey-brand{font-size:8px;letter-spacing:.1em}
 .journey-intro .journey-stage{font-size:9px;letter-spacing:.05em}
 .journey-intro .journey-copy h1{font-size:clamp(39px,10.8vw,56px);line-height:1.02;max-width:12ch}
 .journey-intro-content{grid-template-rows:auto minmax(230px,1fr);gap:22px}
 .journey-intro .journey-image{height:280px}
 .journey-intro .journey-note{margin-top:14px}
 .journey-intro .journey-actions,.journey-bottom{display:none}
 .journey-intro-foot{border-top:0;padding-top:0}
 .journey-intro-foot>span{display:none}
 .journey-intro-foot>a{padding:8px 0;font-size:11px}
 .journey-sticky{gap:16px;padding-top:22px}
 .journey.is-enhanced .journey-sticky{height:calc(calc(100 * var(--story-vh,1svh)) - var(--story-header) - 94px);grid-template-rows:auto minmax(0,1fr) auto}
 .journey-nav{grid-row:3}
 .journey-copy h2{font-size:clamp(29px,7.7vw,40px);line-height:1.09}
 .journey-description{font-size:14px;line-height:1.55}
 .journey-note{font-size:11px;font-weight:500}
 .journey-panel{padding:36px 0}
 .journey:not(.is-enhanced) .journey-panels{grid-row:3}
 .journey:not(.is-enhanced) .journey-nav{grid-row:2}
 .journey:not(.is-enhanced) .journey-panel{gap:22px}
 .journey:not(.is-enhanced) .journey-image{height:340px}
 .journey-stops a{min-height:36px;padding-top:7px;padding-bottom:7px}
 .story-home .product{padding-top:48px;padding-bottom:48px}
 .story-home .product .product-copy h2{font-size:clamp(36px,10vw,52px)}
}

html:has(.story-home){scroll-padding-top:0}

@media(max-width:760px){
 .product-actions-visible .mobile-purchase{visibility:hidden;pointer-events:none}
 .journey-intro{min-height:calc(calc(100 * var(--story-vh,1svh)) - var(--story-header));padding-bottom:104px}
}

@media(min-width:1200px){
 .journey-brand{font-size:12px}
 .journey-stage{font-size:13px}
 .journey-description{font-size:clamp(17px,1.25vw,23px);max-width:29em}
 .journey-note{font-size:clamp(14px,1vw,18px);max-width:31em}
 .journey-actions .button{font-size:15px;padding:17px 25px;min-height:54px}
 .journey-actions .text-link{font-size:14px}
 .journey-caption,.journey-intro-foot{font-size:12px}
 .journey-stops span,.journey-stops b{font-size:12px}
 .journey-copy h1{font-size:clamp(72px,5.6vw,118px)}
 .journey-copy h2{font-size:clamp(42px,min(4.3vw,calc(6.7 * var(--story-vh,1svh))),86px)}
 .journey-morphology{transform:translateX(20px)}
 .morphology-grid{width:min(100%,calc(calc(100 * var(--story-vh,1svh)) - 230px))}
}
@media(min-width:1200px) and (max-height:750px){
 .journey-brand{font-size:10px}
 .journey-stage{font-size:11px}
 .journey-description{font-size:16px}
 .journey-note{font-size:12px}
 .journey-copy h1{font-size:clamp(52px,calc(8 * var(--story-vh,1svh)),68px)}
 .journey-copy h2{font-size:clamp(32px,calc(6.2 * var(--story-vh,1svh)),47px)}
 .journey-actions .button{font-size:13px;padding:14px 20px;min-height:48px}
 .journey-stops span,.journey-stops b{font-size:11px}
}
@media(min-width:1920px){
 .story-home{--story-gutter:5.5vw}
 .journey-intro{gap:30px;padding-top:36px;padding-bottom:28px}
 .journey-intro-content{min-height:540px}
 .journey-sticky{padding-top:30px;padding-bottom:24px;gap:24px}
 .journey-copy h1{max-width:12ch}
 .journey-copy h2{max-width:17ch}
 .journey-description{margin-top:30px}
 .journey-note{margin-top:24px}
 .journey-brand{font-size:13px}
 .journey-stage{font-size:15px}
 .journey-stops span,.journey-stops b{font-size:14px}
 .journey-caption,.journey-intro-foot{font-size:14px}
}
@media(max-width:760px){
 .journey-image.journey-morphology{align-items:center}
 .morphology-grid{width:min(100%,350px);height:calc(100% - 24px);gap:12px 16px}
 .morphology-item{gap:2px}
 .morphology-item>figcaption{font-size:13px;line-height:1.3}
 .morphology-caption{margin-top:8px;font-size:10px;align-self:center}
}

.header-order{justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;border:0;border-radius:4px;min-height:46px;background:#18263a;color:#fff;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.header-order>span{margin-left:-7px}
.floating-cart{position:fixed;right:24px;bottom:24px;z-index:46;display:grid;place-items:center;width:58px;height:58px;padding:0;border:1px solid #ffffff38;border-radius:18px;background:#18263a;color:#fff;box-shadow:0 5px 20px #11203620;cursor:pointer}
.floating-cart [data-cart-count]{position:absolute;right:-3px;top:-5px;min-width:21px;height:21px;padding:0 4px;border:2px solid white;border-radius:50%;background:#619936;color:#fff;font:600 11px/17px Arial,sans-serif}
.floating-cart:focus-visible,.header-order:focus-visible{outline:3px solid #81b351;outline-offset:4px}
.cart-open .floating-cart,.menu-open .floating-cart{visibility:hidden}
@media(min-width:1920px){.header-order{font-size:16px;min-height:52px;padding:15px 25px}.floating-cart{width:64px;height:64px;right:28px;bottom:28px}}
@media(max-width:760px){
 .story-home .site-header{grid-template-columns:minmax(0,1fr) auto 44px;gap:8px}
 .header-order{grid-column:2;grid-row:1;min-height:40px;padding:10px 13px;font-size:12px;border-radius:8px;gap:7px}
 .header-order>span{display:none}
 .header-order svg{width:15px;height:15px}
 .floating-cart{width:44px;height:44px;right:16px;bottom:calc(100px + env(safe-area-inset-bottom,0px));border-radius:14px}
 .floating-cart svg{width:23px;height:23px}
 .floating-cart [data-cart-count]{font-size:10px;min-width:18px;height:18px;line-height:14px}
 .product-actions-visible .floating-cart{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}

@media(max-width:760px){
 .mobile-purchase{right:78px;gap:8px;padding:10px 8px 10px 14px}
 .mobile-purchase>button{gap:8px;padding:0 13px;font-size:13px}
 .mobile-purchase-info>strong{font-size:16px}
 .floating-cart{right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));width:52px;height:62px;border-radius:16px}
 .product-actions-visible .floating-cart{visibility:hidden}
}

@media(min-width:1600px){
 .story-home .site-header .brand{width:132px;height:48px}
 .story-home .main-menu a{font-size:15px}
}
@media(max-width:760px){
 .journey-intro .journey-image{height:100%;min-height:280px}
}

/* Mobile composition keeps the tooth axis centred, not the transparent canvas. */
.header-order{text-decoration:none}
@media(max-width:760px){
 .journey-image>img{right:auto;left:50%;transform:translateX(-66.3%)}
 .journey-image>img[src*="scene-01"]{transform:translateX(-67.5%)}
 .journey-image>img[src*="scene-02"],
 .journey-image>img[src*="scene-05"],
 .journey-image>img[src*="scene-06"]{transform:translateX(-68.8%)}
 .journey-intro-content{grid-template-rows:auto auto;gap:16px}
 .journey-intro .journey-image{height:clamp(360px,calc(49 * var(--story-vh,1svh)),440px);min-height:0}
 .journey-intro{gap:18px}
 .journey.is-enhanced{height:calc(650 * var(--story-vh,1svh))}
 .journey.is-enhanced .journey-sticky{
  height:calc(calc(100 * var(--story-vh,1svh)) - var(--story-header) - 90px - env(safe-area-inset-bottom,0px));
  padding-top:14px;padding-bottom:8px;gap:10px;
  grid-template-rows:minmax(0,1fr) auto;
 }
 .journey.is-enhanced .journey-sticky>.journey-brand{display:none}
 .journey.is-enhanced .journey-nav{grid-row:2}
 .journey.is-enhanced .journey-panel{grid-template-rows:auto minmax(0,1fr);gap:10px}
 .journey.is-enhanced .journey-copy h2{font-size:clamp(26px,7.2vw,36px);line-height:1.06}
 .journey.is-enhanced .journey-stage{margin-bottom:8px}
 .journey.is-enhanced .journey-description{font-size:13px;line-height:1.45;margin-top:12px}
 .journey.is-enhanced .journey-note{font-size:11px;line-height:1.4;margin-top:9px}
 .journey.is-enhanced .journey-image>img{height:106%;top:-3%}
 .journey.is-enhanced .morphology-grid{max-width:310px;gap:8px 12px}
 .journey.is-enhanced .morphology-item>figcaption{font-size:11px}
 .journey.is-enhanced .morphology-caption{margin-top:5px;font-size:9px}
}

/* Switching chapters must not become a browser scroll anchor. */
.journey{overflow-anchor:none}
