
/* Paper-grounded visual stories — independent of existing portfolio components */
.story-atlas{--atlas:#2b6cb0;--atlas-soft:rgba(43,108,176,.09);--atlas-dark:#163c71;padding:clamp(50px,7vw,96px) 0;position:relative}
.story-atlas--gref-rag{--atlas:#16846b;--atlas-soft:rgba(22,132,107,.08);--atlas-dark:#075e4d}
.story-atlas--mot{--atlas:#7655bb;--atlas-soft:rgba(118,85,187,.09);--atlas-dark:#50317e}
.story-atlas--ram-gnn{--atlas:#b66b29;--atlas-soft:rgba(182,107,41,.09);--atlas-dark:#82440d}
.story-atlas--steel-rag{--atlas:#26669d;--atlas-soft:rgba(38,102,157,.08)}
.story-atlas--scienceon-mpr-citeg{--atlas:#187e75;--atlas-soft:rgba(24,126,117,.08)}
.story-atlas--alibaba-search{--atlas:#bd681a;--atlas-soft:rgba(189,104,26,.08)}
.story-atlas--blue-carbon{--atlas:#178d9b;--atlas-soft:rgba(23,141,155,.08)}
.story-atlas--bioai{--atlas:#7f64a1;--atlas-soft:rgba(127,100,161,.08)}
.story-atlas-intro{max-width:850px;margin-bottom:28px}.story-atlas-intro .eyebrow{color:var(--atlas)}
.story-atlas-intro h2{font-size:clamp(30px,4vw,52px);line-height:1.12;margin:0 0 16px}
.story-atlas-intro p{color:var(--muted);font-size:clamp(15px,1.6vw,18px);line-height:1.8}
.story-shell{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:29px;box-shadow:var(--shadow);padding:clamp(18px,3vw,34px)}
.story-shell::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--atlas)}
.story-shell--split .story-content{grid-template-columns:minmax(0,1.4fr) minmax(240px,.7fr)}
.story-shell--cinema .story-content{grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr)}
.story-shell--stack .story-content{grid-template-columns:1fr}
.story-shell--columns .story-content{grid-template-columns:minmax(260px,.8fr) minmax(0,1.5fr)}
.story-storyboard{display:flex;gap:10px;flex-wrap:wrap;padding:0 0 22px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.story-storyboard button{appearance:none;cursor:pointer;text-align:left;display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--bg-soft);border:1px solid var(--line);border-radius:13px;color:var(--muted);font-size:13px;font-weight:750;max-width:100%}
.story-storyboard button:hover{border-color:var(--atlas)}.story-storyboard button:focus-visible,.story-secondary button:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
.story-storyboard button[aria-selected="true"]{background:var(--atlas-soft);border-color:var(--atlas);color:var(--text)}
.story-storyboard .story-num{font-size:11px;font-weight:800;color:var(--atlas)}
.story-content{display:grid;gap:24px;align-items:start}.story-art{min-width:0}
.story-svg-frame{background:var(--bg-soft);border:1px solid var(--line);border-radius:23px;overflow:hidden;padding:12px;position:relative}
.story-svg-frame svg{width:100%;height:auto;display:block;max-height:420px}
.story-svg-frame .story-watermark{position:absolute;bottom:7px;right:12px;letter-spacing:.12em;font-size:10px;font-weight:800;color:var(--subtle);opacity:.85}
.story-text .story-kicker{color:var(--atlas);font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:850;margin-bottom:8px}
.story-text h3{font-size:clamp(23px,3vw,34px);letter-spacing:-.04em;line-height:1.22;margin:0 0 13px}
.story-text p{color:var(--muted);line-height:1.85;font-size:15px}
.story-text strong{color:var(--text)}.story-points{display:grid;gap:11px;margin:20px 0}
.story-point{display:flex;align-items:start;gap:11px;padding:12px 13px;background:var(--atlas-soft);border-radius:13px;line-height:1.55;font-size:14px}
.story-point::before{content:"✓";color:var(--atlas);font-weight:900}
.story-footnote{font-size:12px!important;line-height:1.6!important;color:var(--subtle)!important;margin:17px 0 0}
.story-figure-label{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.03em;margin-bottom:12px;color:var(--atlas);background:var(--surface)}
.story-secondary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.story-secondary button{appearance:none;cursor:pointer;border:1px solid var(--line);background:var(--surface);border-radius:999px;color:var(--muted);padding:8px 13px;font-size:12px;font-weight:800}
.story-secondary button[aria-pressed="true"]{background:var(--atlas);border-color:var(--atlas);color:white}
.story-metrics{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.story-metric{min-width:130px;flex:1;padding:13px 16px;border:1px solid var(--line);border-radius:16px;background:var(--bg-soft)}
.story-metric strong{font-size:clamp(18px,2.5vw,27px);line-height:1.2;display:block;color:var(--atlas)}
.story-metric span{font-size:12px;line-height:1.45;display:block;color:var(--muted);margin-top:6px}
.story-notice{border-left:3px solid var(--atlas);border-radius:0 14px 14px 0;background:var(--atlas-soft);padding:14px 18px;font-size:13px;color:var(--muted);line-height:1.7}
.story-source{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-top:16px;flex-wrap:wrap}
.story-source a{color:var(--atlas);text-decoration:underline;text-underline-offset:3px}
.story-atlas svg .svtext{fill:#203049;font-size:14px;font-family:Inter,Arial,sans-serif}
.story-atlas svg .svsmall{fill:#60718a;font-size:11.5px;font-family:Inter,Arial,sans-serif}
.story-atlas svg .svtitle{fill:#203049;font-size:17px;font-family:Inter,Arial,sans-serif;font-weight:800}
.story-atlas svg .svlight{fill:#fff;font-size:14px;font-family:Inter,Arial,sans-serif;font-weight:750}
.story-atlas svg .svline{stroke:#7998b4;stroke-width:2.5;stroke-linecap:round;fill:none}
.story-atlas svg .svdash{stroke:#adc0d3;stroke-width:2;stroke-dasharray:5 7;fill:none}
.story-atlas svg .svfocus{stroke:var(--atlas);stroke-width:3;fill:none;stroke-linecap:round}
.story-atlas svg .svcard{fill:#fff;stroke:#d8e3ef;stroke-width:1.5}
.story-atlas svg .svgood{fill:#e6f7f2;stroke:#83cab8;stroke-width:1.5}
.story-atlas svg .svmuted{fill:#edf2f8;stroke:#d8e3ef;stroke-width:1.5}
.story-atlas svg .svnoise{fill:#fdf1dc;stroke:#edcd93;stroke-width:1.5}
.story-progress{height:3px;border-radius:999px;overflow:hidden;background:var(--line);margin:-18px 0 20px}.story-progress span{display:block;height:100%;background:var(--atlas);transition:width .32s ease}
.story-atlas--mot .story-svg-frame{background:linear-gradient(140deg,rgba(118,85,187,.07),var(--bg-soft))}
.story-atlas--blue-carbon .story-svg-frame{background:linear-gradient(145deg,#edf8fb,var(--bg-soft))}
.story-atlas--gref-rag .story-svg-frame{background:linear-gradient(145deg,#ecf9f5,var(--bg-soft))}
.story-atlas--ram-gnn .story-svg-frame{background:linear-gradient(145deg,#faf4e9,var(--bg-soft))}
html[data-theme="dark"] .story-atlas svg .svtext,html[data-theme="dark"] .story-atlas svg .svtitle{fill:#d9e7fc}
html[data-theme="dark"] .story-atlas svg .svsmall{fill:#9eacc1}
html[data-theme="dark"] .story-atlas svg .svcard{fill:#15273e;stroke:#35516f}
html[data-theme="dark"] .story-atlas svg .svgood{fill:#103f38;stroke:#338575}
html[data-theme="dark"] .story-atlas svg .svmuted{fill:#182d46;stroke:#35516f}
html[data-theme="dark"] .story-atlas svg .svnoise{fill:#4a3620;stroke:#8a6238}
@media(max-width:900px){.story-shell--split .story-content,.story-shell--cinema .story-content,.story-shell--columns .story-content{grid-template-columns:1fr}.story-content{gap:18px}.story-storyboard{overflow-x:auto;flex-wrap:nowrap;padding-bottom:14px}.story-storyboard button{flex:0 0 auto}.story-svg-frame svg{max-height:none}}
@media(max-width:600px){.story-shell{padding:17px;border-radius:20px}.story-atlas{padding:52px 0}.story-metric{min-width:calc(50% - 10px)}.story-svg-frame{padding:4px;border-radius:15px}.story-svg-frame svg{min-width:0}}
@media(prefers-reduced-motion:reduce){.story-progress span{transition:none}}

/* Distinct visual hierarchy by case-study genre */
.story-shell--columns .story-art{order:2}.story-shell--columns .story-text{order:1}
.story-shell--stack .story-content{display:flex;flex-direction:column}.story-shell--stack .story-art{width:100%}.story-shell--stack .story-text{width:100%}
.story-shell--cinema .story-svg-frame{border-radius:12px;border-width:2px}.story-shell--cinema .story-svg-frame::before{content:"CASE STUDY";position:absolute;right:16px;top:10px;color:var(--atlas);font-weight:850;font-size:10px;letter-spacing:.14em}
@media(max-width:900px){.story-shell--columns .story-art,.story-shell--columns .story-text{order:initial}}

/* Bilingual narrative paragraphs: existing portfolio sets html[data-language] */
.story-atlas-intro>.story-intro-en{display:none}
html[data-language="en"] .story-atlas-intro>p:not(.eyebrow):not(.story-intro-en){display:none}
html[data-language="en"] .story-atlas-intro>.story-intro-en{display:block}

/* v9 typography / canvas: paper-quality figures with deliberate hierarchy */
.story-atlas {isolation:isolate}
.story-atlas .story-atlas-intro{max-width:900px}
.story-atlas .story-atlas-intro h2{font-family:var(--font-sans);font-weight:850;line-height:1.23;letter-spacing:-.05em;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
.story-shell{background:var(--surface);border-color:var(--line);border-radius:26px;box-shadow:0 18px 50px rgba(10,37,65,.065)}
.story-atlas .story-storyboard{gap:9px}
.story-storyboard button{border-radius:15px;font-size:12px;font-family:var(--font-sans);font-weight:700;line-height:1.47;max-width:240px;white-space:normal;word-break:keep-all;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.story-storyboard button:hover{transform:translateY(-2px)}
.story-storyboard button[aria-selected="true"]{box-shadow:inset 0 -2px 0 var(--atlas)}
.story-storyboard .story-num{font-size:10px;white-space:nowrap}
.story-text h3{font-family:var(--font-sans);font-size:clamp(24px,2.65vw,36px);font-weight:850;line-height:1.3;letter-spacing:-.035em;word-break:keep-all}
.story-text p{line-height:1.9;font-family:var(--font-sans);font-weight:450;word-break:keep-all}
.story-point{background:var(--atlas-soft);padding:13px 16px;border:1px solid color-mix(in srgb,var(--atlas) 12%,transparent);word-break:keep-all}
.story-metrics{gap:10px;border-top:1px solid var(--line);padding-top:21px;margin-top:25px}
.story-metric{background:transparent;border-radius:12px;padding:12px 14px}
.story-metric strong{letter-spacing:-.03em;overflow-wrap:anywhere}
.story-svg-frame{padding:clamp(12px,2vw,24px);background:var(--bg-soft);border-color:var(--line);border-radius:18px;overflow:hidden}
.story-svg-frame svg{width:100%;height:auto;display:block;min-width:0;max-height:none;overflow:visible}
.story-atlas svg text{font-family:var(--font-sans)!important;paint-order:stroke;stroke-width:0;letter-spacing:-.015em}
.story-atlas svg .svtext{font-size:15px;font-weight:650}
.story-atlas svg .svsmall{font-size:12.5px;font-weight:550}
.story-atlas svg .svtitle{font-size:18px;font-weight:850}
.story-figure-label{font-family:var(--font-sans);letter-spacing:.06em}
.story-source{border-top:1px solid var(--line);padding-top:13px;font-size:12px}
.story-player{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 19px}
.story-player button{border:1px solid var(--line);color:var(--text);background:var(--bg-soft);min-height:40px;padding:9px 15px;border-radius:12px;font-size:12px;font-weight:800;cursor:pointer}
.story-player button:hover{border-color:var(--atlas);background:var(--atlas-soft)}
.story-player .story-step-count{font-weight:850;font-size:12px;color:var(--atlas);margin-inline-start:auto;font-variant-numeric:tabular-nums}
.story-player button[data-play="true"]{border-color:var(--atlas);background:var(--atlas-soft)}
.story-demo{margin:22px 0 6px;padding:clamp(15px,2vw,22px);border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,var(--bg-soft),var(--surface));overflow:hidden}
.story-demo-header{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin:0 0 16px}
.story-demo-header strong{font-size:15px;font-weight:850}
.story-demo-header span{color:var(--muted);font-size:12px}
.story-demo-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.65fr);align-items:center;gap:18px}
.story-demo p{font-size:13px;line-height:1.75;color:var(--muted);margin:0}
.story-demo output{font-size:13px;font-weight:800;color:var(--atlas)}
.story-demo input[type="range"]{accent-color:var(--atlas);width:100%;min-height:30px}
.story-demo button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:9px 13px;background:var(--surface);color:var(--text);font-weight:750;font-size:12px}
.story-demo button[aria-pressed="true"]{background:var(--atlas);color:#fff;border-color:var(--atlas)}
.story-demo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}
.story-demo-choice{min-height:48px;text-align:left}
.story-demo-panel{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:14px;min-width:0;min-height:105px}
.story-demo-panel h4{font-size:13px;line-height:1.5;letter-spacing:0;margin:0 0 10px;overflow-wrap:break-word}
.story-demo-panel svg{max-height:200px}
.story-demo-line{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.story-demo-evidence{display:grid;gap:8px}
.story-demo-evidence div{border-radius:12px;padding:11px 13px;background:var(--atlas-soft);font-size:12px;line-height:1.6}
.story-demo-micro{color:var(--muted);font-size:11px!important;margin-top:8px!important}
.story-atlas--star .story-demo{border-top:3px solid #376eae}
.story-atlas--gref-rag .story-demo{border-top:3px solid #16846b}
.story-atlas--mot .story-demo{border-top:3px solid #7655bb}
.story-atlas--ram-gnn .story-demo{border-top:3px solid #b66b29}
.story-atlas--bioai .story-demo{border-top:3px solid #8760a7}
.story-atlas--blue-carbon .story-demo{border-top:3px solid #168d9b}
.story-atlas--mpr-citeg .story-demo,.story-atlas--scienceon-mpr-citeg .story-demo{border-top:3px solid #187e75}
.story-atlas--mpr-citeg{--atlas:#187e75;--atlas-soft:rgba(24,126,117,.08)}
.story-atlas--mpr-citeg .story-svg-frame{background:linear-gradient(160deg,#ecfaf6,var(--bg-soft))}
.story-shell--cinema .story-content{grid-template-columns:1fr}
.story-shell--cinema .story-svg-frame{padding:clamp(14px,2vw,26px)}
.story-shell--cinema .story-svg-frame svg{max-width:940px;margin-inline:auto}
.story-shell--cinema .story-text{display:grid;grid-template-columns:.7fr 1.3fr;column-gap:25px;align-items:start}
.story-shell--cinema .story-text .story-figure-label,.story-shell--cinema .story-text .story-kicker,.story-shell--cinema .story-text h3{grid-column:1}
.story-shell--cinema .story-text>p,.story-shell--cinema .story-text .story-points{grid-column:2}
.story-shell--cinema .story-text .story-footnote{grid-column:1/-1}
.story-shell--columns .story-content{grid-template-columns:minmax(280px,.62fr) minmax(0,1.38fr)}
.story-shell--split .story-content{grid-template-columns:minmax(0,1.55fr) minmax(255px,.7fr)}
.story-shell--columns .story-svg-frame{background:var(--atlas-soft)}
.story-shell--stack .story-text{display:grid;grid-template-columns:1fr 1fr;gap:12px 28px}
.story-shell--stack .story-text>.story-figure-label,.story-shell--stack .story-text>.story-kicker,.story-shell--stack .story-text>h3{grid-column:1}
.story-shell--stack .story-text>.story-points{grid-column:2;grid-row:2/span 3;margin:0}
.story-shell--stack .story-text>.story-footnote{grid-column:1/-1}
.story-atlas--ram-gnn .story-shell{background:linear-gradient(180deg,var(--surface),var(--bg-soft))}
.story-atlas--star .story-shell::before{background:linear-gradient(90deg,#1c619f,#42bd9e)}
.story-atlas--mot .story-shell::before{background:linear-gradient(90deg,#623cbb,#a779d7)}
.story-atlas--blue-carbon .story-shell::before{background:linear-gradient(90deg,#137c9d,#48af80)}
html[data-theme="dark"] .story-atlas--blue-carbon .story-svg-frame,html[data-theme="dark"] .story-atlas--gref-rag .story-svg-frame,html[data-theme="dark"] .story-atlas--ram-gnn .story-svg-frame,html[data-theme="dark"] .story-atlas--mpr-citeg .story-svg-frame{background:var(--bg-soft)}
@media(max-width:1000px){.story-shell--cinema .story-text,.story-shell--columns .story-content,.story-shell--split .story-content{grid-template-columns:1fr}.story-shell--cinema .story-text>*,.story-shell--stack .story-text>*{grid-column:1!important}.story-shell--stack .story-text{display:block}.story-shell--stack .story-text .story-points{margin-top:16px}}
@media(max-width:760px){.story-storyboard button{max-width:200px;min-height:50px}.story-svg-frame{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:var(--line-strong) transparent}.story-svg-frame svg{min-width:635px;width:635px;max-width:none}.story-svg-frame::after{content:"↔ Swipe to inspect figure";display:block;text-align:center;color:var(--subtle);font:600 11px var(--font-sans);padding:8px 0}.story-content{gap:15px}.story-text h3{font-size:clamp(23px,6vw,29px)}.story-demo-body{grid-template-columns:1fr}.story-player button{flex:0 0 auto}.story-metric{min-width:calc(50% - 10px)}}
@media(max-width:460px){.story-shell{padding:14px!important}.story-atlas-intro h2{font-size:clamp(27px,7vw,35px)}.story-demo{padding:13px}.story-atlas .story-storyboard{margin-bottom:13px}.story-player .story-step-count{width:100%;margin-left:0}}
@media(prefers-reduced-motion:reduce){.story-storyboard button{transition:none}.story-player *{scroll-behavior:auto}}


/* v10 — universal figure-tab readability and text hierarchy.
   Figure metadata, a short heading and the step counter occupy SEPARATE rows. */
.story-atlas .story-storyboard{
  display:grid;grid-template-columns:repeat(var(--story-tabs,3),minmax(0,1fr));
  gap:12px;overflow:visible;flex-wrap:initial;align-items:stretch;padding:0 0 24px;
  scroll-padding-inline:4px;
}
.story-atlas .story-storyboard[data-count="2"]{--story-tabs:2}
.story-atlas .story-storyboard[data-count="3"]{--story-tabs:3}
.story-atlas .story-storyboard[data-count="4"]{--story-tabs:4}
.story-atlas .story-storyboard.is-many{
  display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;
}
.story-atlas .story-storyboard button{
  box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  gap:9px;min-width:0;width:100%;max-width:none;min-height:125px;
  padding:16px 17px 14px;text-align:left;line-height:1.38;
  word-break:keep-all;overflow-wrap:break-word;white-space:normal;
  border-radius:17px;position:relative;scroll-snap-align:start;
}
.story-atlas .story-storyboard.is-many button{
  flex:0 0 clamp(208px,22vw,240px);width:auto;
}
.story-atlas .story-tab-meta{
  display:block;max-width:100%;color:var(--atlas);font-size:10.5px;
  font-weight:800;letter-spacing:.055em;line-height:1.45;
  text-transform:uppercase;overflow-wrap:break-word;word-break:normal;
}
.story-atlas .story-tab-title{
  display:block;width:100%;font-family:var(--font-sans);
  color:var(--text);font-size:clamp(15px,1.27vw,17px);
  font-weight:820;line-height:1.46;letter-spacing:-.025em;
  word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;
}
.story-atlas .story-tab-index{
  align-self:flex-end;display:block;margin-top:auto;color:var(--subtle);
  font-size:10.5px;font-weight:750;letter-spacing:.07em;font-variant-numeric:tabular-nums;
}
.story-atlas .story-storyboard button[aria-selected="true"]{
  background:var(--atlas-soft);border-width:1.5px;
  box-shadow:inset 0 -3px 0 var(--atlas);
}
.story-atlas .story-storyboard button:hover{
  background:color-mix(in srgb,var(--atlas-soft) 65%,var(--surface));
}
.story-atlas .story-storyboard button:focus-visible{
  outline:3px solid var(--atlas);outline-offset:3px;z-index:3;
}
/* Supporting figure typography: no low-contrast miniature captions in cramped columns */
.story-atlas .story-figure-label{white-space:normal;line-height:1.5;font-size:11px}
.story-atlas .story-kicker{line-height:1.5;overflow-wrap:break-word}
.story-atlas .story-text h3{overflow-wrap:break-word;word-break:keep-all}
.story-atlas .story-text p,.story-atlas .story-point{
  font-size:clamp(14px,1.1vw,16px);line-height:1.85;overflow-wrap:break-word;word-break:keep-all;
}
.story-atlas .story-point::before{flex:0 0 auto}
.story-atlas .story-metrics>*{min-width:0}
.story-atlas .story-metric strong{font-size:clamp(17px,1.8vw,24px);line-height:1.32}
.story-atlas .story-metric span{font-size:13px;line-height:1.65}
.story-atlas .story-demo button,.story-atlas .story-player button{
  white-space:normal;word-break:keep-all;overflow-wrap:break-word;text-align:left;
  font-size:13px;line-height:1.5;
}
.story-atlas .story-demo-panel h4{font-size:14px}
.story-atlas .story-demo-panel p{font-size:13px;line-height:1.75}
.story-atlas .story-demo-choice{min-width:0}
.story-atlas .story-secondary{align-items:flex-start}
.story-atlas .story-secondary button{line-height:1.55;white-space:normal;word-break:keep-all}
@media(max-width:960px){
 .story-atlas .story-storyboard:not(.is-many){grid-template-columns:repeat(min(var(--story-tabs,3),2),minmax(0,1fr))}
 .story-atlas .story-storyboard.is-many button{flex-basis:218px}
}
@media(max-width:640px){
 .story-atlas .story-storyboard,.story-atlas .story-storyboard:not(.is-many){
   display:flex;flex-wrap:nowrap;overflow-x:auto;gap:11px;
   scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:15px;
 }
 .story-atlas .story-storyboard button,.story-atlas .story-storyboard.is-many button{
   flex:0 0 min(255px,78vw);width:min(255px,78vw);min-height:116px;
   padding:15px 16px;max-width:none;
 }
 .story-atlas .story-tab-title{font-size:16px}
 .story-atlas .story-tab-meta{font-size:10px}
 .story-atlas .story-text h3{line-height:1.37}
 .story-atlas .story-demo-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
}
html[data-theme="dark"] .story-atlas .story-tab-title{color:var(--text)}

/* Make intentional mobile diagram panning explicit, above—not below—the clipped canvas. */
.story-pan-hint{display:none!important}
@media(max-width:760px){
 .story-atlas .story-pan-hint{
   display:flex!important;align-items:center;gap:7px;margin:4px 0 10px!important;
   font-size:12px!important;font-weight:750;color:var(--atlas)!important;line-height:1.5!important;
   padding:8px 12px;width:max-content;max-width:100%;
   border:1px solid var(--line);border-radius:999px;background:var(--surface);
   word-break:keep-all;white-space:normal;
 }
 .story-atlas .story-svg-frame{scroll-padding-left:8px}
}

/* v11: reading-scale correction within legacy figure explorer (overrides earlier miniature labels). */
.story-atlas .story-text p:not(.story-footnote),.story-atlas .story-point{
 font-size:clamp(16px,1.22vw,18px);line-height:1.83;word-break:keep-all;
}
.story-atlas .story-atlas-intro>p:not(.eyebrow){font-size:clamp(17px,1.33vw,20px);line-height:1.82}
.story-atlas .story-text h3{font-size:clamp(27px,2.5vw,37px);line-height:1.3}
.story-atlas .story-tab-title{font-size:clamp(16px,1.14vw,18px);line-height:1.5}
.story-atlas .story-tab-meta{font-size:11.5px;line-height:1.55}
.story-atlas .story-figure-label,.story-atlas .story-source,.story-atlas .story-footnote{font-size:12.5px!important;line-height:1.7!important}
.story-atlas .story-secondary button,.story-atlas .story-player button,.story-atlas .story-demo button{font-size:13.5px;line-height:1.55}
.story-atlas .story-metric span{font-size:13.5px;line-height:1.65}
@media(max-width:760px){.story-atlas .story-storyboard button{min-height:123px}.story-atlas .story-text p:not(.story-footnote),.story-atlas .story-point{font-size:16px}.story-atlas .story-tab-title{font-size:16px}}


/* StAR's "why hyperbolic?" is a comparative geometry lesson, not a bare tree generator.
   Diagram coordinates are illustrative; bars compare exact intrinsic circumferences. */
.story-atlas--star .story-demo-body:has(.story-star-control){display:block;min-width:0}
.story-atlas--star .story-demo:has(.story-star-control){padding:clamp(16px,2.6vw,28px);border-top-width:4px}
.story-atlas--star .story-demo:has(.story-star-control)>.story-demo-header{display:flex;justify-content:space-between;align-items:center;gap:8px 16px;margin-bottom:22px}
.story-atlas--star .story-demo:has(.story-star-control)>.story-demo-header strong{font-size:clamp(18px,2vw,24px);line-height:1.4;letter-spacing:-.03em;word-break:keep-all}
.story-atlas--star .story-demo:has(.story-star-control)>.story-demo-header span{font-size:13.5px;line-height:1.65}
.story-star-control{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px;padding:14px 17px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.story-star-control label{flex:1;min-width:210px;font-size:15px!important}
.story-star-control input{display:block;margin-top:10px}
.story-star-control .story-demo-line{min-width:125px;font-size:14px}
.story-star-control .story-demo-line output{font-size:22px!important;line-height:1;font-variant-numeric:tabular-nums}
.story-star-comparison{min-width:0}
.story-star-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.story-star-space{min-width:0;display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);border-radius:18px;padding:15px;background:var(--surface)}
.story-star-space--euclid{border-top:4px solid #cd883a}
.story-star-space--hyper{border-top:4px solid #218e7b}
.story-star-space-head{display:flex;flex-direction:column;align-self:stretch;gap:5px;min-width:0}
.story-star-model{font-size:11px;font-weight:900;letter-spacing:.06em;color:var(--muted);line-height:1.5}
.story-star-space-head strong{font-size:clamp(16px,1.7vw,20px);line-height:1.45;letter-spacing:-.027em;color:var(--text);font-weight:850;word-break:keep-all}
.story-star-space-head small{font-size:13px;line-height:1.55;color:var(--muted);word-break:keep-all}
.story-star-geometry-svg{display:block;width:min(100%,310px);height:auto;aspect-ratio:1/1;flex:0 0 auto;margin-top:7px;color:var(--muted)}
.story-star-geometry-svg circle,.story-star-geometry-svg path{vector-effect:non-scaling-stroke}
.story-star-evidence{border-radius:17px;margin-top:15px;padding:clamp(17px,2.4vw,24px);border:1px solid var(--line);background:var(--surface)}
.story-star-evidence-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin-bottom:8px}
.story-star-evidence-heading>span{font-size:clamp(15px,1.35vw,18px);font-weight:800;color:var(--text);line-height:1.55}
.story-star-evidence-heading>strong{font-size:clamp(24px,2.6vw,33px);font-weight:900;color:#168774;line-height:1.2;font-variant-numeric:tabular-nums}
.story-star-evidence-formula{color:var(--muted);font-size:13px;line-height:1.6;margin-bottom:19px;font-variant-numeric:tabular-nums}
.story-star-meter{margin:0 0 16px}
.story-star-meter-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px}
.story-star-meter-top span{font-size:14px;color:var(--text);font-weight:750}
.story-star-meter-top strong{font-size:17px;color:var(--text);font-variant-numeric:tabular-nums}
.story-star-meter-track{height:17px;overflow:hidden;border-radius:9px;background:var(--line)}
.story-star-meter-track>div{height:100%;border-radius:9px;transition:width .18s ease}
.story-star-meter-track .is-euclid{background:#c98643}
.story-star-meter-track .is-hyper{background:#218e7b}
.story-star-spacing{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;border-top:1px solid var(--line);padding-top:16px;margin-top:8px!important;font-size:14px!important;color:var(--text)!important;line-height:1.65!important}
.story-star-spacing strong{font-size:clamp(17px,2vw,23px);font-variant-numeric:tabular-nums;color:var(--text)}
.story-star-spacing span{color:#168774}
.story-star-caveat{font-size:14px!important;line-height:1.8!important;margin:15px 0 0!important;color:var(--muted)!important;max-width:90ch;word-break:keep-all}
.story-atlas--star .story-demo:has(.story-star-control)>.story-demo-micro{font-size:12.5px!important;line-height:1.8!important;margin-top:13px!important}
html[data-theme="dark"] .story-star-evidence-heading>strong,
html[data-theme="dark"] .story-star-spacing span{color:#79dcc9}
html[data-theme="dark"] .story-star-space--hyper{border-top-color:#79dcc9}
@media(max-width:760px){
 .story-star-views{grid-template-columns:1fr;gap:11px}
 .story-star-space{padding:16px}
 .story-star-geometry-svg{width:min(100%,285px)}
 .story-star-control{padding:13px;gap:9px}
 .story-star-control label{min-width:160px}
 .story-star-space-head strong{font-size:18px}
 .story-star-evidence{padding:17px}
 .story-star-spacing{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){.story-star-meter-track>div{transition:none}}

/* Answer the user's question at first glance, before requiring any scrolling. */
.story-star-headline{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;border-radius:16px;border:1px solid rgba(32,145,122,.3);background:rgba(32,145,122,.07);padding:15px 20px;margin:0 0 15px}
.story-star-headline>span{font-size:clamp(15px,1.2vw,17px);font-weight:800;color:var(--text);line-height:1.55}
.story-star-headline>strong{margin-inline-start:auto;font-size:clamp(23px,2.5vw,31px);font-weight:900;color:#168774;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.story-star-headline>small{width:100%;font-size:13px;line-height:1.62;color:var(--muted)}
html[data-theme="dark"] .story-star-headline{background:rgba(103,212,190,.11)}
html[data-theme="dark"] .story-star-headline>strong{color:#79dcc9}
@media(max-width:600px){.story-star-headline{padding:14px 16px;gap:8px}.story-star-headline>strong{margin-inline-start:0}.story-star-headline>span{width:100%}}
