/* Native-scroll explanations. Default: complete, ordinary document flow. */
.scroll-story{--story-accent:#9ae6cd;--story-muted:#9eafa8;color:#f0f5f2;max-width:1240px!important;margin:110px auto!important;padding:0 32px!important;border:0!important;position:relative}
.scroll-story *{box-sizing:border-box}.scroll-story .story-intro{max-width:800px;margin:0 0 48px}.scroll-story .story-eyebrow{font-size:12px;letter-spacing:.17em;text-transform:uppercase;color:var(--story-accent);margin:0 0 20px}.scroll-story .story-intro h2{font-size:clamp(32px,4.4vw,60px);line-height:1.07;letter-spacing:-.045em;margin:0}.story-layout{display:block}.story-visual{margin:0;padding:0;width:100%;max-width:620px}.story-canvas{width:100%;aspect-ratio:1.22;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#16352b70,transparent 70%);border-radius:20px;isolation:isolate}.story-canvas svg{display:block;width:100%;height:100%;overflow:visible}.story-canvas svg text{font-family:inherit;fill:#dce9e3;font-size:18px}.story-canvas svg .muted{fill:#96aaa0;font-size:14px}.story-canvas svg .big{font-size:30px;font-weight:650;letter-spacing:-.04em}.story-canvas svg .code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:19px}.story-canvas svg .line{stroke:#8adfc4;stroke-width:2;fill:none}.story-canvas svg .soft{fill:#142a23}.story-canvas svg .accent{fill:#9ae6cd}.story-canvas svg .ink{fill:#10231c}.story-canvas img{max-width:100%}.story-caption{font-size:12px;line-height:1.5;color:#91a49b;margin:18px 12px 0;max-width:52ch}.story-beat{padding:40px 0;max-width:560px}.story-beat h3{font-size:clamp(25px,2.8vw,38px);line-height:1.13;letter-spacing:-.035em;margin:0 0 22px}.story-beat p{font-size:18px;line-height:1.7;color:#bbc9c2;margin:0 0 20px;max-width:39ch}.story-beat a{color:var(--story-accent);text-underline-offset:4px}.story-beat a.source{font-size:13px}.story-beat .article-heading,.story-beat .article-copy{display:contents}.story-beat .section-number{display:none}.story-beat code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;overflow-wrap:anywhere}.story-beat .story-count{font-size:12px;color:var(--story-accent);letter-spacing:.12em;margin-bottom:16px}.story-beat sup{font-size:11px}.story-beat ul{font-size:18px;line-height:1.7;color:#bbc9c2}.story-beat .note{font-size:13px}.scroll-story.is-scrolling .story-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:70px;align-items:start}.scroll-story.is-scrolling .story-visual{position:sticky;top:max(90px,calc((100svh - 490px)/2));align-self:start}.scroll-story.is-scrolling .story-beat{min-height:86svh;display:flex;flex-direction:column;justify-content:center;padding:90px 0}.scroll-story.is-scrolling .story-beat:first-child{padding-top:40px}.scroll-story.is-scrolling .story-beat:last-child{padding-bottom:40px}.story-canvas [data-focus]{opacity:.45}.story-canvas [data-reveal]{opacity:1}.story-canvas [data-fadeout]{opacity:1}
.story-code{position:absolute;inset:12% 5%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;display:flex;flex-direction:column;justify-content:center;font-size:clamp(14px,1.6vw,21px);line-height:1.8}.story-code .code-line{white-space:pre;color:#d5e4dc;padding:9px 14px;border-radius:9px}.story-code .code-line[data-focus]{opacity:1;background:rgba(125,230,192,var(--glow,0))}.story-code .code-line b{color:#abe6d1;font-weight:400}.story-code .terminal{margin:30px 14px 0;color:#a5e5cb;font-size:23px;position:relative;min-height:74px}.story-code .terminal small{display:block;color:#7f9e8d;font:11px system-ui;letter-spacing:.15em;margin-bottom:8px}.story-code .terminal .output{display:block}.story-code .code-label{font:12px system-ui;color:#8eaa9b;letter-spacing:.12em;margin:0 14px 20px}.story-network{position:relative;height:100%}.story-network img{position:absolute;object-fit:contain;filter:drop-shadow(0 10px 20px #0006);width:24%;height:35%}.story-network .device{left:1%;top:15%}.story-network .router{left:37%;top:35%;width:27%}.story-network .server{right:1%;top:15%;width:28%;height:45%}.story-network svg{position:absolute;inset:0}.story-network .packet{offset-path:path('M 70 130 C 120 130 120 260 250 260 S 390 130 430 130');offset-distance:calc(var(--travel,0)*1%);position:absolute;width:10px;height:10px;background:#b5ffe3;box-shadow:0 0 20px #9affd7;border-radius:50%;display:none}
.story-compare{position:absolute;inset:9% 5%;display:flex;flex-direction:column;justify-content:center;gap:12px}.story-compare .compare-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:15px;padding:18px 20px;background:#14251f;border-radius:14px;opacity:.35;transform:translateX(calc((1 - var(--weight,0))*10px))}.story-compare .compare-row span{font-size:16px;color:#b4c8bd}.story-compare .compare-row strong{font-size:19px;color:#d8f4e5;letter-spacing:-.02em}.story-compare .compare-row[data-focus]{opacity:calc(.32 + var(--weight,0)*.68)}.story-compare .compare-note{font-size:12px;line-height:1.5;color:#8ca396;margin:14px 5px 0}.story-goal{position:absolute;inset:10% 5%;display:flex;flex-direction:column;justify-content:center;gap:16px}.story-goal .goal-line{padding:19px 22px;background:#13271f;border-radius:16px}.story-goal .goal-line small{display:block;color:#83a591;font-size:11px;letter-spacing:.14em;margin-bottom:10px}.story-goal .goal-line strong{font-size:22px;color:#daf2e5;line-height:1.3;font-weight:500}.story-sky{position:absolute;inset:0;background-position:center;background-size:cover;border-radius:20px}.story-sky .sky-wash{position:absolute;inset:0;background:linear-gradient(#a0836e,#756747);opacity:var(--skyglow,.65)}.story-sky .sky-words{position:absolute;left:25px;bottom:24px;font-size:20px;color:white;text-shadow:0 2px 12px #000}.story-sky .sky-words small{display:block;font-size:12px;margin-top:7px}
@media(max-width:760px){.scroll-story{margin:70px auto!important;padding:0 22px!important}.scroll-story .story-intro{margin-bottom:26px}.scroll-story .story-intro h2{font-size:36px}.scroll-story.is-scrolling .story-layout{display:block}.scroll-story.is-scrolling .story-visual{top:65px;z-index:2;max-width:none;background:#080e0b;padding:0 0 13px;margin:0 -6px;width:calc(100% + 12px)}.story-canvas{aspect-ratio:1.8;max-height:30svh;border-radius:14px}.story-canvas svg{height:100%;width:100%}.story-caption{font-size:10px;line-height:1.4;margin:6px 7px 0}.scroll-story.is-scrolling .story-beat{min-height:82svh;padding:45px 0 70px;justify-content:flex-start;scroll-margin-top:42svh}.scroll-story.is-scrolling .story-beat:first-child{padding-top:28px}.story-beat h3{font-size:29px;margin-bottom:18px}.story-beat p{font-size:17px;line-height:1.65}.story-code{inset:3% 7%;font-size:13px;line-height:1.25}.story-code .code-label{font-size:9px;margin-bottom:9px}.story-code .code-line{padding:4px 10px}.story-code .terminal{font-size:17px;margin:10px 10px 0;min-height:32px}.story-code .terminal small{font-size:9px;margin-bottom:4px}.story-compare{inset:3% 3%;gap:6px}.story-compare .compare-row{padding:8px 12px;border-radius:8px}.story-compare .compare-row span{font-size:12px}.story-compare .compare-row strong{font-size:13px}.story-compare .compare-note{font-size:9px;margin:3px}.story-goal{inset:4% 4%;gap:6px}.story-goal .goal-line{padding:10px 14px;border-radius:9px}.story-goal .goal-line small{font-size:9px;margin-bottom:4px}.story-goal .goal-line strong{font-size:15px}.story-sky .sky-words{font-size:16px;bottom:15px}.story-network img{height:45%;top:5%}.story-network .router{top:32%}.story-network .server{height:55%;top:4%}}
@media(prefers-reduced-motion:reduce),(max-height:599px){.scroll-story .story-layout{display:block!important}.scroll-story .story-visual{position:relative!important;top:auto!important}.scroll-story .story-beat{min-height:0!important;padding:32px 0!important}.story-canvas [data-focus],.story-canvas [data-reveal]{opacity:1!important}.story-canvas [data-fadeout]{opacity:1!important}.story-compare .compare-row{transform:none!important;opacity:1!important}}
/* Escape inherited reading-column padding without altering the original hero. */
@media(max-width:760px){.reading>.scroll-story,.container>.scroll-story{width:calc(100% + 32px);margin-left:-16px!important;margin-right:-16px!important;padding-inline:0!important}.story-canvas{aspect-ratio:1.45;max-height:32svh}.story-code{font-size:clamp(11px,3.15vw,14px)}.story-code .code-line{padding-inline:5px}.story-beat p{max-width:none}.story-visual{max-width:none}}
/* Keep the explanation beside its visual, including on a phone. */
.scroll-story.is-scrolling{min-height:calc(var(--beats,3)*85svh + 280px)}
.scroll-story.is-scrolling .story-layout{position:sticky;top:100px;gap:60px;align-items:center}
.scroll-story.is-scrolling .story-visual{position:relative;top:auto;padding:0;align-self:center}
.scroll-story.is-scrolling .story-beats{display:grid;align-items:center}
.scroll-story.is-scrolling .story-beat,.scroll-story.is-scrolling .story-beat:first-child,.scroll-story.is-scrolling .story-beat:last-child{grid-area:1/1;min-height:0;padding:12px 0;display:block}
.scroll-story .story-beat p{font-size:18px;line-height:1.65}.scroll-story .story-count{font-size:12px!important}
@media(max-width:760px){.scroll-story.is-scrolling{min-height:calc(var(--beats,3)*85svh + 200px)}.scroll-story.is-scrolling .story-layout{top:78px;display:block}.scroll-story.is-scrolling .story-visual{position:relative;top:0;margin:0 0 24px;width:100%;background:none}.scroll-story .story-canvas{aspect-ratio:1.65;max-height:26svh}.scroll-story .story-caption{font-size:10px;margin:6px 0 0}.scroll-story .story-beat h3{font-size:26px;margin-bottom:15px}.scroll-story .story-beat p{font-size:16px;line-height:1.55;margin-bottom:14px}.scroll-story .story-beat .source{font-size:12px}.scroll-story .story-beat .story-count{margin-bottom:10px}.story-code{font-size:12px}.story-compare .compare-row{padding:7px 10px}.story-goal .goal-line strong{font-size:14px}}
@media(prefers-reduced-motion:reduce),(max-height:599px){.scroll-story{min-height:0!important}.scroll-story .story-layout{position:static!important;display:block!important}.scroll-story .story-beats{display:block!important}.scroll-story .story-beat{opacity:1!important;transform:none!important;pointer-events:auto!important}}
.scroll-story:not(.is-scrolling) [data-focus]{opacity:1!important;transform:none!important}
.scroll-story:not(.is-scrolling) .story-beats{display:block}
.scroll-story:not(.is-scrolling) .story-beat{opacity:1!important;transform:none!important;pointer-events:auto!important}
/* Reserve room for the complete two-line result; never crop the last output. */
.story-code{inset:7% 5%;font-size:clamp(14px,1.5vw,20px);line-height:1.5}.story-code .code-line{padding:6px 14px}.story-code .terminal{font-size:22px;line-height:1.35;margin-top:18px;min-height:68px}.story-code .code-label{margin-bottom:14px}
@media(max-width:760px){.story-code{inset:2% 5%;font-size:12px;line-height:1.3}.story-code .code-line{padding:3px 5px}.story-code .code-label{font-size:9px;margin-bottom:8px}.story-code .terminal{font-size:16px;line-height:1.2;margin:8px 5px 0;min-height:36px}.story-code .terminal small{font-size:8px;margin-bottom:4px}}
