/* Homepage storytelling: expressive sections, one consistent navigation shell. */
html:root[data-theme] body[data-home-story]{--home-coral:#c6dcf1;--home-ink:#234a6b;--home-lime:#d3e7fa}
html:root[data-theme] body[data-home-story] .home-section{padding-top:80px;padding-bottom:80px;scroll-margin-top:24px}
html:root[data-theme] body[data-home-story] .home-hero{padding-top:22px;padding-bottom:80px;gap:58px;grid-template-columns:1.05fr 1fr}
html:root[data-theme] body[data-home-story] .home-hero h1{font-size:clamp(2.65rem,4.4vw,4.1rem);letter-spacing:-.055em;line-height:1.08;max-width:630px}
html:root[data-theme] body[data-home-story] .home-hero .lede{font-size:1.15rem;line-height:1.7;max-width:490px}
.hero-explain{font-size:1rem;line-height:1.75;max-width:510px;color:var(--ss-muted)}
.home-image-composition{position:relative;padding:24px 0 34px 18px;min-width:0;isolation:isolate}
.home-image-composition:before{content:'';position:absolute;z-index:-1;inset:0 16px 36px 0;background:var(--home-coral);border-radius:48% 42% 20% 22%;transform:rotate(-4deg)}
html:root[data-theme] body[data-home-story] .home-image-composition .photo-frame{border-radius:130px 20px 80px 20px;aspect-ratio:1.08;overflow:hidden}
.home-image-composition .photo-frame img{height:100%;width:100%;object-fit:cover}
html:root[data-theme] body[data-home-story] .photo-caption{display:none}
.image-note{position:absolute;left:-12px;bottom:4px;display:flex;align-items:center;gap:16px;background:var(--home-lime);color:var(--home-ink);padding:19px 24px;border-radius:12px;box-shadow:0 8px 28px #122b4510;transform:rotate(-3deg);font-size:15px;line-height:1.6}
.note-spark{font-size:40px;line-height:1}
.possibility-strip{background:#e8f0fa;border-block:1px solid #cfdfee;color:#345b7c}
.possibility-strip>.wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;font-size:14px;font-weight:600}
.possibility-strip i{font-size:18px;color:#608db9;font-style:normal}
.starting-story{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:start}
html:root[data-theme] body[data-home-story] .home-section h2{font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.18;max-width:650px;margin:16px 0 24px}
.story-intro p:not(.eyebrow),.experience-story>div>p:not(.eyebrow),.learning-story-grid>div>p:not(.eyebrow){color:var(--ss-muted);line-height:1.8}
.starting-stories{padding-top:24px}
.starting-stories details,.home-faq details{border-bottom:1px solid var(--ss-border)}
.starting-stories summary,.home-faq summary{position:relative;list-style:none;cursor:pointer;font-weight:700;font-size:1.1rem;line-height:1.5;padding:24px 32px 24px 0;color:var(--ss-text)}
.starting-stories summary::-webkit-details-marker,.home-faq summary::-webkit-details-marker{display:none}
.starting-stories summary:after,.home-faq summary:after{content:'+';position:absolute;right:2px;color:var(--ss-accent);font-size:22px;top:22px}
.starting-stories details[open]>summary:after,.home-faq details[open]>summary:after{content:'−'}
.starting-stories details p,.home-faq details p{margin:0 24px 24px 0;color:var(--ss-muted);line-height:1.8}
.workspace-story{background:#244b6d;color:#f2f7fc}
.workspace-story-heading{display:grid;grid-template-columns:1.2fr 1fr;gap:80px;align-items:end}
html:root[data-theme] body[data-home-story] .workspace-story :is(h2,h3){color:#f2f7fc}
html:root[data-theme] body[data-home-story] .workspace-story .eyebrow{color:var(--home-lime)}
.workspace-story-heading>p{color:#d1e2f1;font-size:1.1rem;line-height:1.8;max-width:440px;margin-bottom:24px}
.journey-story-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;margin-top:32px;align-items:start}
.journey-story{list-style:none;margin:0;padding:0}
.journey-story li{display:flex;gap:24px;padding:27px 0;border-top:1px solid #54738e}
.story-number{font-size:14px;font-weight:700;color:var(--home-lime);padding-top:4px}
html:root[data-theme] body[data-home-story] .journey-story h3{font-size:1.3rem;margin:0 0 12px;line-height:1.35}
.journey-story p{color:#d1e2f1;font-size:1rem;line-height:1.75;margin:0 0 12px}
.story-benefit{display:block;font-size:.875rem;color:#d3e7fa;line-height:1.6}
html:root[data-theme] body[data-home-story] .journey-illustration{position:sticky;top:28px;background:#f5f8fc;border:0;border-radius:20px;padding:28px;color:#234a6b;box-shadow:14px 14px 0 #3b6284;margin:28px 14px 0 0}
.illustration-label{font-size:11px;font-weight:700;letter-spacing:.12em;color:#426582;margin:0 0 26px}
.sample-role{display:flex;align-items:center;gap:14px;border-bottom:1px solid #ccdaea;padding-bottom:24px;margin-bottom:12px}
.sample-role-icon{display:flex;align-items:center;justify-content:center;background:#d3e7fa;width:48px;height:48px;flex-shrink:0;border-radius:12px;font-size:26px}
.sample-role strong{font-size:1.2rem;display:block;line-height:1.4}.sample-role div>span{display:block;font-size:.8rem;color:#536e85;margin-top:4px}
.illustrated-step{position:relative;display:flex;gap:14px;align-items:center;padding:21px 10px;color:#536e85}
.illustrated-step>span:first-child{display:flex;align-items:center;justify-content:center;border:1px solid #b6cbdf;border-radius:50%;width:30px;height:30px;flex-shrink:0;font-size:13px}
.illustrated-step strong{display:block;font-size:.95rem;line-height:1.5}.illustrated-step small{display:block;font-size:.8rem;line-height:1.5;margin-top:4px}
.illustrated-step.complete>span:first-child{background:#356b9b;color:white;border-color:#356b9b}
.illustrated-step.current{flex-wrap:wrap;background:#e1edf9;border-radius:10px;color:#295576;margin:4px -4px;padding:18px 14px}
.illustrated-step.current>span:first-child{background:#356b9b;color:white;border-color:#356b9b}
.you-are-here{font-size:9px;font-weight:700;letter-spacing:.06em;margin-left:44px}
.illustration-note{font-size:.875rem;line-height:1.7;color:#426582;padding-top:20px;border-top:1px solid #ccdaea;margin:12px 0 0}
.workspace-demo-note{max-width:950px;color:#d1e2f1;font-size:.875rem;line-height:1.8;border-top:1px solid #54738e;padding-top:24px;margin:20px 0 0}
.experience-story{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}
.word-example{background:#eaf1fb;border-radius:18px;padding:30px;color:#304d68}
.example-label{font-size:11px;letter-spacing:.12em;font-weight:700;margin:0 0 24px;color:#506b85}
.example-before>span,.example-after>span{font-size:12px;font-weight:700}.example-before>p{font-size:1.05rem;line-height:1.8;color:#506b85;margin:10px 0 0}
.example-arrow{font-size:28px;color:#6b8bab;margin:10px 0}
.example-after{border-left:3px solid #356b9b;padding-left:18px}.example-after>span{color:#356b9b}.example-after p{font-size:1.15rem;line-height:1.7;color:#234a6b;margin:10px 0 0}
.example-footnote{font-size:.8rem;line-height:1.7;color:#506b85;margin:24px 0 0}
.learning-story{background:var(--ss-soft)}
.learning-story-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:90px;align-items:center}
.learning-art{position:relative;border-radius:18px;background:#d3e7fa;color:#234a6b;padding:38px;transform:rotate(-2deg);overflow:hidden;min-height:420px;display:flex;flex-direction:column;justify-content:center}
.learning-art-label{font-size:10px;font-weight:700;letter-spacing:.1em;display:block;margin-bottom:30px;position:relative;z-index:1}
.learning-word{display:block;font-size:clamp(3.4rem,6vw,5rem);font-weight:700;letter-spacing:-.055em;line-height:1.04;position:relative;z-index:1}
.learning-star{position:absolute;right:-16px;bottom:0;font-size:230px;line-height:1;color:#abcbe9;transform:rotate(15deg)}
html:root[data-theme] body[data-home-story] .class-status{font-size:.9rem;padding-left:16px;border-left:3px solid var(--ss-accent)}
.home-questions{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px}
.home-faq summary{font-size:1rem}
.home-finish{background:#e3eef9;text-align:center;padding:64px 0;color:#234a6b}
html:root[data-theme] body[data-home-story] .home-finish h2{font-size:clamp(2rem,3.5vw,3.1rem);color:#234a6b;line-height:1.2;margin:18px 0}
html:root[data-theme] body[data-home-story] .home-finish .eyebrow{color:#3d6386}
.home-finish p{color:#496983}.home-finish .button{margin:16px 0 8px}
html:root[data-theme] body[data-home-story] .home-finish .small{color:#496983}
html:root[data-theme=dark] body[data-home-story] :is(.possibility-strip,.home-finish){background:#243f5c;color:#dfebf8;border-color:#476883}
html:root[data-theme=dark] body[data-home-story] .home-finish :is(h2,p,.eyebrow,.small){color:#d5e5f5}
html:root[data-theme=dark] body[data-home-story] .workspace-story{background:#192f49}
@media(max-width:1050px){
 html:root[data-theme] body[data-home-story] .home-hero{gap:36px}
 .starting-story,.experience-story,.learning-story-grid,.home-questions{gap:44px}
 .journey-story-grid,.workspace-story-heading{gap:44px}
 .image-note{left:0;padding:16px 20px}.learning-art{padding:28px}
}
@media(max-width:760px){
 html:root[data-theme] body[data-home-story] .home-section{padding-top:48px;padding-bottom:48px}
 html:root[data-theme] body[data-home-story] .home-hero{grid-template-columns:1fr;padding-top:12px;padding-bottom:42px;gap:28px}
 html:root[data-theme] body[data-home-story] .home-hero h1{font-size:clamp(2.5rem,7vw,3.4rem)}
 .home-image-composition{max-width:520px;margin:0 auto;width:100%}
 html:root[data-theme] body[data-home-story] .home-image-composition .photo-frame{aspect-ratio:1.35;border-top-left-radius:90px}
 .possibility-strip>.wrap{flex-direction:column;align-items:flex-start;gap:8px;padding:18px 0;font-size:13px}.possibility-strip i{display:none}.possibility-strip span:before{content:'✦';margin-right:12px;color:#608db9}
 .starting-story,.experience-story,.learning-story-grid,.home-questions,.workspace-story-heading,.journey-story-grid{grid-template-columns:1fr;gap:24px}
 .starting-stories{padding-top:0}
 html:root[data-theme] body[data-home-story] .journey-illustration{position:static;margin:0 10px 12px 0;padding:24px;box-shadow:10px 10px 0 #3b6284}
 .journey-story-grid{margin-top:0}.workspace-story-heading>p{margin:0 0 12px;max-width:none}.journey-story li{gap:18px}
 .word-example{padding:24px}.learning-art{min-height:300px;max-width:450px;width:100%;margin:0 auto 12px}.learning-word{font-size:3.7rem}.learning-star{font-size:190px}.learning-art-label{margin-bottom:20px}
 .home-finish{padding:48px 0}.home-faq summary{padding-top:20px;padding-bottom:20px}.home-faq details p{margin-right:0}
}
@media(prefers-reduced-motion:reduce){.journey-illustration{position:static!important}}

html:root body[data-home-story] .ai-story{display:grid;grid-template-columns:1fr 1.1fr;gap:56px;padding-top:64px;padding-bottom:48px;border-bottom:1px solid #d5e1ed}
html:root body[data-home-story] .ai-story h2{font-size:clamp(28px,3vw,42px);line-height:1.12;letter-spacing:-.04em;margin:12px 0}
html:root body[data-home-story] .ai-story p{line-height:1.7}
html:root body[data-home-story] .ai-story .ai-disclosure{font-size:14px;color:#526b80}
html:root[data-theme="dark"] body[data-home-story] .ai-story .ai-disclosure{color:#b8cde0}
@media(max-width:700px){html:root body[data-home-story] .ai-story{grid-template-columns:1fr;gap:12px;padding-top:40px}}

/* Homepage reading scale: keep supporting copy comfortable at normal zoom. */
@media screen{
html:root[data-theme] body[data-home-story] main#main p{font-size:clamp(1.25rem,1.65vw,1.5rem);line-height:1.7}
html:root[data-theme] body[data-home-story] main#main :is(.small,.ai-disclosure,.example-footnote,.workspace-demo-note,.class-status,.illustration-note){font-size:1.125rem;line-height:1.65}
html:root[data-theme] body[data-home-story] main#main :is(.eyebrow,.example-label,.illustration-label,.learning-art-label){font-size:1rem;line-height:1.5;letter-spacing:.08em}
html:root[data-theme] body[data-home-story] .possibility-strip>.wrap{font-size:1.125rem;line-height:1.5;flex-wrap:wrap;gap:16px 24px}
html:root[data-theme] body[data-home-story] main#main :is(.story-benefit,.sample-role div>span,.illustrated-step small,.image-note){font-size:1.125rem;line-height:1.6}
html:root[data-theme] body[data-home-story] main#main :is(.example-before>span,.example-after>span,.you-are-here,.story-number){font-size:1rem;line-height:1.5}
html:root[data-theme] body[data-home-story] main#main .illustrated-step strong{font-size:1.125rem}
html:root[data-theme] body[data-home-story] main#main :is(summary,.text-link){font-size:1.25rem;line-height:1.5}
html:root[data-theme] body[data-home-story] main#main :is(.starting-story,.experience-story,.learning-story-grid,.home-questions,.workspace-story-heading,.journey-story-grid,.ai-story)>*{min-width:0}
@media(max-width:760px){html:root[data-theme] body[data-home-story] .possibility-strip>.wrap{gap:12px}}
}

/* Progressive scroll story: pin the overview while each chapter passes. */
@media(min-width:1000px) and (min-height:760px) and (prefers-reduced-motion:no-preference){
html:root[data-theme] body[data-home-story] .scroll-story{align-items:start;gap:64px}
html:root[data-theme] body[data-home-story] .scroll-story .journey-story>li{min-height:65vh;align-items:center;padding:64px 20px;border-top:1px solid #54738e;border-left:3px solid transparent;transition:border-color .25s,background-color .25s}
html:root[data-theme] body[data-home-story] .scroll-story .journey-story>li.is-active{border-left-color:#d3e7fa;background:#d3e7fa0a}
html:root[data-theme] body[data-home-story] .scroll-story .journey-illustration{position:sticky;top:24px;margin-top:0;padding:24px}
html:root[data-theme] body[data-home-story] .scroll-story .illustrated-step{padding:12px 8px;transition:background-color .25s,color .25s}
html:root[data-theme] body[data-home-story] .scroll-story .illustrated-step.current{padding:12px 8px}
html:root[data-theme] body[data-home-story] .scroll-story .illustration-label{margin-bottom:14px}
html:root[data-theme] body[data-home-story] .scroll-story .sample-role{padding-bottom:14px;margin-bottom:8px}
html:root[data-theme] body[data-home-story] .scroll-story .illustration-note{padding-top:14px;margin-bottom:0}
}
@media(max-width:999px),(max-height:759px),(prefers-reduced-motion:reduce){
html:root[data-theme] body[data-home-story] .journey-illustration{position:static}
}

/* A consistent pinned chapter treatment across the homepage. */
@media(min-width:1000px) and (min-height:760px) and (prefers-reduced-motion:no-preference){
html:root[data-theme] body[data-home-story] .home-scroll-panel{min-height:105vh;align-items:start;position:relative}
html:root[data-theme] body[data-home-story] .home-scroll-panel>.home-scroll-pin{position:sticky;top:40px;align-self:start}
html:root[data-theme] body[data-home-story] .home-scroll-panel>.home-scroll-flow{position:relative;top:auto}
html:root[data-theme] body[data-home-story] .home-scroll-panel>:not(.home-scroll-pin){align-self:center}
html:root[data-theme] body[data-home-story] .home-scroll-panel.ai-story{padding-top:80px;padding-bottom:80px}
html:root[data-theme] body[data-home-story] .home-scroll-panel.home-hero{padding-top:40px;padding-bottom:80px}
html:root[data-theme] body[data-home-story] .home-scroll-panel.learning-story-grid{padding-top:80px;padding-bottom:80px}
html:root[data-theme] body[data-home-story] .home-scroll-panel .starting-stories{padding-top:0}
}

/* The final invitation ends naturally without an extra screen of scroll space. */
html:root[data-theme] body[data-home-story] .home-finish{padding:48px 0;min-height:0}
html:root[data-theme] body[data-home-story] .home-finish .small{max-width:none;margin:12px auto 0;text-align:center}
html:root[data-theme] body[data-home-story] .home-finish .button{margin:12px 0 0}
