/* Five scroll chapters, backed by readable static content. */
.standards-story{display:block;min-height:0;background:var(--surface-blue,linear-gradient(145deg,#153e60,#081c32));color:#fff}
.standards-stage{padding:66px max(24px,calc((100vw - 1160px)/2)) 45px}
.standards-heading{text-align:center}.standards-heading>p{font-size:12px;letter-spacing:.18em;color:#aec5d5;margin:0 0 12px}.standards-heading h2{margin:0;font-size:clamp(28px,3.5vw,44px);font-weight:400}
.standard-chapter{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:7%;padding:65px 0;border-bottom:1px solid #ffffff20}
.standard-copy .standard-count{font:400 64px/1.1 Prompt,sans-serif;color:#ecf3f8;margin:0 0 22px;letter-spacing:-.04em}.standard-count span{font-size:16px;letter-spacing:0;color:#9db9cd;margin-left:8px}.standard-copy h3{font-size:clamp(24px,2.5vw,34px);font-weight:500;line-height:1.5;margin:0 0 16px}.standard-copy>p:last-child{color:#d4e1e9;font-size:17px;line-height:1.9;margin:0;max-width:470px}
.standard-diagram{min-width:0}.standard-diagram svg{display:block;width:100%;max-height:380px;overflow:visible}.standard-diagram text{fill:#d9e6ef;font:15px 'Noto Sans Thai',sans-serif;stroke:none}.standard-diagram text.secondary{font-size:12px;fill:#99b2c5}.standard-diagram .muted{stroke:#a4c0d15c;stroke-width:1}.standard-diagram .accent{stroke:#e6cc97;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.standard-diagram .node{fill:#163b56;stroke:#b9d0df88;stroke-width:1}.standard-diagram .tile{fill:#09243b;stroke:#b8d1e1;stroke-width:1}.standard-diagram .fastener{fill:#e6cc97;stroke:#f4ebd8;stroke-width:1}
.standards-steps,.standards-scroll{display:none}
.standards-story.motion-ready{height:550svh;position:relative}
.motion-ready .standards-stage{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;padding-top:38px;padding-bottom:90px;overflow:hidden}
.motion-ready .standards-chapters{position:relative;min-height:390px;height:52svh;max-height:550px;margin-top:20px}
.motion-ready .standard-chapter{position:absolute;inset:0;border:0;padding:20px 0;opacity:0;visibility:hidden;transform:translateY(18px);transition:opacity .45s ease,transform .55s ease,visibility .45s;pointer-events:none}
.motion-ready .standard-chapter.is-active{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.motion-ready .standards-steps{display:flex;justify-content:center;gap:12px;margin:16px 0 0}
.standards-steps button{border:0;border-top:2px solid #ffffff25;background:transparent;color:#92adbf;min-height:44px;width:62px;padding:12px 8px;font:400 14px Prompt,sans-serif;cursor:pointer;transition:color .25s,border-color .25s}
.standards-steps button[aria-current=step]{border-color:#e6cc97;color:#fff}
.motion-ready .standards-scroll{display:block;text-align:center;color:#a5bdce;font-size:12px;margin:10px 0 0}
.motion-ready .draw{stroke-dasharray:1;stroke-dashoffset:1}.motion-ready .is-active .draw{animation:standard-draw 1.5s cubic-bezier(.22,.7,.3,1) .12s both}
.motion-ready .tile,.motion-ready .reveal{opacity:0}.motion-ready .is-active .tile,.motion-ready .is-active .reveal{animation:standard-reveal .8s ease calc(var(--i,0)*.07s + .2s) both}
.motion-ready .is-active .align-piece{animation:standard-align 1.2s cubic-bezier(.22,.7,.3,1) calc(var(--i,0)*.12s) both}
@keyframes standard-draw{to{stroke-dashoffset:0}}@keyframes standard-reveal{from{opacity:0}to{opacity:1}}@keyframes standard-align{from{transform:translateY(-24px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:720px){.standards-stage{padding:44px 24px}.standards-heading>p{font-size:11px}.standards-heading h2{font-size:28px}.standard-chapter{grid-template-columns:1fr;gap:15px;padding:40px 0}.standard-copy .standard-count{font-size:42px;margin:0 0 10px}.standard-copy h3{font-size:23px;margin-bottom:10px}.standard-copy>p:last-child{font-size:15px;line-height:1.8}.standard-diagram svg{max-height:245px}.motion-ready .standards-stage{padding:25px 24px 88px}.motion-ready .standards-chapters{min-height:0;height:57svh;max-height:540px;margin-top:12px}.motion-ready .standard-chapter{padding:12px 0;gap:4px;grid-template-rows:auto minmax(0,1fr)}.motion-ready .standard-diagram{height:100%;min-height:0;display:flex;align-items:center;justify-content:center}.motion-ready .standard-diagram svg{max-height:100%;width:100%}.motion-ready .standards-steps{margin-top:8px;gap:9px}.standards-steps button{width:50px}.motion-ready .standards-scroll{margin-top:2px}}
@media(max-height:640px){.motion-ready .standards-stage{padding-top:16px;padding-bottom:65px}.motion-ready .standards-heading>p,.motion-ready .standards-scroll{display:none}.motion-ready .standards-heading h2{font-size:24px}.motion-ready .standards-chapters{height:60svh}.standard-copy .standard-count{font-size:28px;margin-bottom:5px}.standard-copy h3{font-size:20px}.standard-copy>p:last-child{font-size:14px}}
@media(prefers-reduced-motion:reduce){.standard-chapter,.standard-diagram *{animation:none!important;transition:none!important}}

/* Reserve graphic space explicitly, including iOS intrinsic SVG sizing. */
.standards-story.motion-ready .standards-chapters{flex:none;height:clamp(400px,55svh,550px)}
.standards-story .standard-diagram{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#72dce412,transparent 70%);border-radius:20px}
.standards-story .standard-diagram svg{height:300px;width:100%;max-height:none;flex:none}
.standards-story .standard-diagram .accent{stroke:#92e5e8;filter:drop-shadow(0 0 4px #79e5ed70)}
.standards-story .standard-diagram .tile{fill:#113c5a;stroke:#93cedc}
.standards-story .standard-diagram .muted{stroke:#a4c0d180}
@media(max-width:720px){
 .standards-story.motion-ready .standards-stage{justify-content:center;height:auto;min-height:100svh;padding:26px 24px 88px}
 .standards-story.motion-ready .standards-chapters{height:auto;min-height:0;max-height:none;display:grid;margin-top:20px}
 .standards-story.motion-ready .standard-chapter{position:relative;inset:auto;grid-area:1/1;grid-template-rows:auto auto;align-content:start;gap:12px;padding:0}
 .standards-story .standard-diagram{height:clamp(180px,27svh,270px);min-height:180px}
 .standards-story .standard-diagram svg{height:100%;width:100%;max-height:100%}
 .standards-story.motion-ready .standards-steps{margin-top:14px}
 .standards-story .standard-copy .standard-count{font-size:38px;margin-bottom:10px}
 .standards-story .standard-copy h3{font-size:23px;line-height:1.5}
}
