/* A presentation stage: shared chrome, deliberate layouts for each story beat. */
#project-intro.author-deck {
 --deck-ink:#123b50;--deck-muted:#506c78;--deck-blue:#087c96;--deck-line:#d5e4e9;
 inset:94px 4vw 26px;transform:none;width:92vw;height:calc(100dvh - 120px);max-height:none;
 padding:20px clamp(24px,3vw,48px) 16px;border:2px solid #668b9e;border-radius:22px;box-shadow:0 18px 55px #123b5038,0 0 0 5px #ffffff70;
 background:#fffdf8;color:var(--deck-ink);display:grid;grid-template-rows:auto minmax(0,1fr) auto;
 overflow:hidden;isolation:isolate;
}
#project-intro.author-deck[hidden]{display:none}
#project-intro.author-deck::before{display:none}
body[data-mode=intro] #map-root{visibility:visible}
body[data-mode=intro].city-exhibit-on #map-root{inset:68px 0 0}
.author-deck .intro-top{min-height:44px;gap:18px;padding-bottom:12px;border-bottom:1px solid var(--deck-line)}
.author-deck .deck-chapters{display:flex;align-items:center;gap:clamp(12px,2vw,32px);margin-right:auto;min-width:0}
.author-deck .deck-chapters button{padding:10px 0;background:none;border:0;border-radius:0;color:var(--deck-muted);font-size:14px;font-weight:500;white-space:nowrap;box-shadow:inset 0 -2px transparent}
.author-deck .deck-chapters [aria-pressed=true]{color:var(--deck-ink);font-weight:750;box-shadow:inset 0 -2px var(--deck-blue)}
.author-deck #intro-close{order:3;flex:none;width:40px;height:40px;background:none;border:1px solid var(--deck-line);border-radius:50%;font-size:25px;font-weight:400;padding:0;line-height:1;color:var(--deck-ink)}
.author-deck .intro-top .voice-button{flex:none}
.author-deck #intro-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 0;scrollbar-width:thin}
.author-deck .story-stage,.author-deck .story-stage.story-portrait-layout{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);
 align-items:center;min-height:100%;padding:0;margin:0;
}
.author-deck .story-speech{width:100%;max-width:620px;margin:0;grid-row:1;grid-column:1;padding:8px 0}
.author-deck .story-photo,.author-deck .story-photo.portrait{
 grid-column:2;grid-row:1;width:100%;height:clamp(280px,54dvh,700px);min-height:0;max-height:none;
 margin:0;background:transparent;border-radius:4px;overflow:hidden;align-self:center;
}
.author-deck .story-photo img,.author-deck .story-photo.portrait img{width:100%;height:100%;max-width:100%;object-fit:contain;border-radius:0}
.author-deck[data-photo-side=left] .story-photo{grid-column:1}
.author-deck[data-photo-side=left] .story-speech{grid-column:2}
#project-intro.author-deck #intro-title{
 font-size:clamp(34px,4.3vw,68px);line-height:1.06;letter-spacing:-.045em;font-weight:750;
 color:var(--deck-ink);margin:0 0 26px;max-width:18ch;text-wrap:balance;
}
.author-deck .opening-paragraph,.author-deck .story-text,.author-deck .story-portrait-layout .story-text{
 font-size:clamp(17px,1.65vw,25px);line-height:1.48;color:var(--deck-muted);margin:0 0 18px;max-width:46ch;
}
.author-deck .story-lesson,.author-deck .story-portrait-layout .story-lesson,.author-deck .opening-paragraph:last-child{
 font-size:clamp(17px,1.65vw,25px);line-height:1.48;color:var(--deck-ink);border:0;padding:0;margin:20px 0 0;
}
.author-deck .story-time{font-size:14px;color:var(--deck-blue);margin:0 0 18px;font-weight:600}
#project-intro.author-deck[data-deck-kind=cover] #intro-title{font-size:clamp(44px,5.7vw,88px);max-width:11ch}
.author-deck[data-deck-kind=cover] .story-photo{background:transparent;height:clamp(300px,59dvh,720px)}
.author-deck[data-deck-kind=cover] .story-photo img{object-fit:contain;object-position:center}
.author-deck .opening-gallery{grid-column:1;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:none;align-items:center}
.author-deck .opening-gallery .story-photo{grid-column:auto;grid-row:auto;height:clamp(240px,47dvh,570px);min-height:0;background:none}
.author-deck .opening-gallery .story-photo:nth-child(2){transform:translateY(26px)}
.author-deck .opening-gallery .story-photo img{object-fit:contain;border-radius:4px}
#project-intro.author-deck[data-deck-kind=statement]{background:#123b50;--deck-ink:#f5fbff;--deck-muted:#c8dce5;--deck-line:#527181;--deck-blue:#83d6e3}
.author-deck .opening-stage.opening-text-only{display:flex;justify-content:center;min-height:100%;padding:12px clamp(0px,5vw,80px)}
.author-deck .opening-text-only .story-speech{max-width:1000px}
.author-deck .opening-text-only #intro-title{font-size:clamp(48px,6vw,88px);margin-bottom:30px}
.author-deck .opening-text-only .opening-paragraph{max-width:58ch;font-size:clamp(19px,2.2vw,32px);line-height:1.45}
.author-deck .opening-text-only .opening-paragraph:last-child{font-size:clamp(28px,3.4vw,48px);font-weight:700;margin-top:28px;color:var(--deck-ink)}
.author-deck .intro-actions{position:static;min-width:0;background:inherit;border-top:1px solid var(--deck-line);padding:12px 0 0;margin:0;gap:24px}
.author-deck #intro-back{width:48px;height:44px;border:1px solid var(--deck-line);border-radius:8px;background:transparent;color:var(--deck-ink)}
.author-deck #intro-back:disabled{opacity:.3}
.author-deck #intro-next{min-height:44px;padding:10px 24px;font-size:14px;background:var(--deck-ink);color:#fff;border:0;border-radius:8px}
.author-deck[data-deck-kind=statement] #intro-next{background:#e5f6fc;color:#123b50}
.author-deck .intro-dots{display:flex;max-width:380px;gap:3px;margin:auto;flex:1}
.author-deck .intro-dots button{flex:1;width:auto;height:28px;min-height:28px;padding:0;border:0;border-radius:0;background:linear-gradient(var(--deck-line),var(--deck-line)) center/100% 3px no-repeat}
.author-deck .intro-dots [aria-pressed=true]{background:linear-gradient(var(--deck-blue),var(--deck-blue)) center/100% 5px no-repeat}
.author-deck[data-deck-kind=data] #intro-content,.author-deck[data-deck-kind=solution] #intro-content{display:flex;flex-direction:column;justify-content:flex-start;max-width:1120px;width:100%;height:100%;min-height:0;margin:0 auto}
.author-deck[data-deck-kind=data] #intro-title,.author-deck[data-deck-kind=solution] #intro-title{max-width:26ch}
.author-deck .intro-lead{font-size:clamp(18px,1.8vw,24px);color:var(--deck-muted);max-width:65ch}
.author-deck .intro-numbers{background:#edf5f7;border:0;padding:30px;border-radius:6px}
.author-deck .intro-numbers strong{font-size:clamp(32px,4.4vw,64px);color:#123b50}
.author-deck .intro-comparison strong{font-size:clamp(26px,3.6vw,48px)}
.author-deck .purpose-pair{margin-top:8px;gap:32px;flex-shrink:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.author-deck .purpose-card{min-width:0;border-radius:0;padding:0;background:none;color:var(--deck-ink)}
.author-deck .purpose-card img{border-radius:4px;max-height:36dvh;object-fit:cover}
.author-deck .purpose-card h2{font-size:32px;margin:18px 0 8px}
.author-deck .purpose-card p{margin:0;color:var(--deck-muted)}
.author-deck button:focus-visible,.author-deck a:focus-visible{outline:3px solid var(--deck-blue);outline-offset:3px}
@media(max-width:900px){
 .author-deck .intro-top{flex-wrap:wrap;gap:8px}
 .author-deck .deck-chapters{order:0;flex:1;gap:18px;overflow:auto}
 .author-deck #intro-close{order:1}
 .author-deck .intro-top .voice-button{order:2;margin-left:auto;min-height:30px;font-size:11px;padding:5px 8px!important}
}
@media(max-width:760px){
 body[data-mode=intro].city-exhibit-on #map-root{inset:110px 0 0}
 #project-intro.author-deck{inset:122px 10px 14px;height:calc(100dvh - 136px);width:calc(100% - 20px);max-height:none;padding:10px 16px 12px;border-radius:16px}
 .author-deck .deck-chapters{gap:16px;flex-basis:100%}.author-deck .deck-chapters button{font-size:12px;padding:10px 0}
 .author-deck #intro-close{width:32px;height:32px}
 .author-deck #intro-content{padding:20px 0}
 .author-deck .story-stage,.author-deck .story-stage.story-portrait-layout{display:flex;flex-direction:column;align-items:stretch;gap:22px;min-height:0}
 .author-deck .story-speech{order:0;max-width:none;padding:0}
 .author-deck .story-photo,.author-deck .story-photo.portrait,.author-deck[data-deck-kind=cover] .story-photo{order:1;height:38dvh;min-height:240px;max-height:420px}
 #project-intro.author-deck #intro-title{font-size:36px;line-height:1.08;margin-bottom:18px;max-width:19ch}
 #project-intro.author-deck[data-deck-kind=cover] #intro-title{font-size:48px;max-width:12ch}
 .author-deck .opening-paragraph,.author-deck .story-text,.author-deck .story-lesson,.author-deck .story-portrait-layout .story-text,.author-deck .story-portrait-layout .story-lesson{font-size:17px;line-height:1.5;margin:0 0 12px}
 .author-deck .opening-gallery{order:1;gap:10px}.author-deck .opening-gallery .story-photo{height:29dvh;min-height:200px}.author-deck .opening-gallery .story-photo:nth-child(2){transform:none}
 .author-deck .opening-stage.opening-text-only{padding:12px 0;min-height:100%;justify-content:center}
 .author-deck .opening-text-only .opening-paragraph{font-size:21px}
 .author-deck .opening-text-only .opening-paragraph:last-child{font-size:30px;margin-top:22px}
 .author-deck .intro-actions{gap:12px;padding-top:10px}.author-deck #intro-next{padding:10px 16px;font-size:12px;max-width:44%}
 .author-deck .intro-dots{gap:2px}
 .author-deck[data-deck-kind=data] #intro-content,.author-deck[data-deck-kind=solution] #intro-content{display:block}
 .author-deck .intro-numbers{padding:16px;gap:10px;flex-wrap:wrap}.author-deck .intro-numbers strong{font-size:30px}
 .author-deck .purpose-pair{grid-template-columns:1fr;gap:28px}.author-deck .purpose-card img{max-height:none}.author-deck .purpose-card h2{font-size:28px;margin-top:12px}
}
@media(prefers-reduced-motion:no-preference){.author-deck #intro-content>.story-stage{animation:deck-reveal .22s ease-out}@keyframes deck-reveal{from{opacity:.45}to{opacity:1}}}

#project-intro.author-deck[data-deck-kind=solution] #intro-title{font-size:clamp(30px,3.4vw,52px);max-width:none;flex-shrink:0;margin-bottom:20px}
.author-deck[data-deck-kind=solution] .purpose-card img{max-height:28dvh}
@media(max-width:760px){.author-deck[data-deck-kind=solution] .purpose-pair{grid-template-columns:1fr}.author-deck[data-deck-kind=solution] .purpose-card img{max-height:none}}

/* Opening: city geography anchors the research question. */
#project-intro.author-deck[data-deck-kind=cover] .opening-city-map #intro-title{font-size:clamp(34px,4.2vw,64px);max-width:18ch}
.author-deck .opening-city-map .story-photo{background:#edf4f2;border:1px solid var(--deck-line);border-radius:18px;position:relative}
.author-deck .opening-city-map .story-photo::after{content:"ASTANA / АСТАНА";position:absolute;left:24px;bottom:24px;color:#123b50;font-size:20px;font-weight:700;letter-spacing:.12em}
.author-deck[data-deck-kind=cover] .opening-city-map .story-photo img{object-fit:cover;transform:scale(1.15)}
.author-deck .opening-city-map .opening-paragraph{font-size:clamp(17px,1.45vw,22px);line-height:1.5}

#project-intro.author-deck[data-deck-kind=cover]{background:#f6f8f5}
.author-deck .city-cover-art{grid-column:2;grid-row:1;position:relative;isolation:isolate;overflow:hidden;margin:0;height:clamp(360px,59dvh,740px);border-radius:20px;background:#0b3043;box-shadow:0 24px 60px #0b304325}
.city-cover-art>img{position:absolute;width:150%;height:150%;max-width:none;left:-25%;top:-25%;object-fit:cover;filter:brightness(1.35);opacity:.7}
.city-cover-grid{position:absolute;inset:0;background:radial-gradient(ellipse at 55% 45%,transparent 15%,#0b3043cc 85%);border:1px solid #ffffff22;border-radius:inherit}
.city-cover-label{position:absolute;left:32px;top:30px;color:#e6f5ed;font-size:clamp(30px,4vw,60px);font-weight:750;letter-spacing:.15em}
.city-cover-label span{display:block;font-size:12px;letter-spacing:.15em;margin-top:10px;font-weight:400;color:#a7d9d8}
.city-cover-art figcaption{position:absolute;bottom:30px;left:32px;right:24px;font-size:clamp(20px,2vw,30px);color:#fff;font-weight:600}
.city-beacon{position:absolute;width:14px;height:14px;border-radius:50%;background:#85edf0;box-shadow:0 0 24px #62e5ff}
.city-beacon::before,.city-beacon::after{content:"";position:absolute;inset:-12px;border:1px solid #85edf0;border-radius:50%}
.beacon-one{left:44%;top:44%}.beacon-two{left:65%;top:60%}.beacon-three{left:33%;top:69%}
@media(prefers-reduced-motion:no-preference){
.city-cover-art>img{animation:city-drift 24s ease-in-out infinite alternate}
.city-beacon::before,.city-beacon::after{animation:city-ripple 4s ease-out infinite}.city-beacon::after{animation-delay:2s}.beacon-two::before{animation-delay:1s}.beacon-three::before{animation-delay:2.5s}
.opening-city-map .story-speech{animation:city-intro .8s ease-out both}
@keyframes city-drift{to{transform:translate(3%,-2%) scale(1.08)}}
@keyframes city-ripple{from{transform:scale(.4);opacity:1}to{transform:scale(3.5);opacity:0}}
@keyframes city-intro{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
}
@media(max-width:760px){.author-deck .city-cover-art{order:1;width:100%;height:340px;flex:none}.city-cover-label{font-size:36px}}
/* Inland geography directly beneath Ansar's aquarium photographs. */
.author-deck .opening-photo-pair .opening-gallery{gap:10px;align-content:center}
.author-deck .opening-photo-pair .opening-gallery .story-photo{height:clamp(140px,24dvh,290px)}
.author-deck .opening-photo-pair .opening-gallery .story-photo:nth-child(2){transform:none}
.author-deck .world-context{grid-column:1/-1;margin:0;background:#e1f1f5;border:1px solid #b6d4de;border-radius:10px;overflow:hidden}
.author-deck .world-context img{display:block;width:100%;height:auto;max-height:25dvh;object-fit:contain}
.author-deck .world-context figcaption{padding:5px 12px 9px;text-align:center;font-size:12px;color:#123b50;font-weight:650}
@media(max-width:760px){.author-deck .world-context img{max-height:none}.author-deck .opening-photo-pair .opening-gallery .story-photo{height:200px;min-height:0}}
/* A subtraction written on Ansar's notebook, not a cropped illustration. */
.author-deck .water-notebook-slide{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,60px);align-items:center;min-height:100%}
#project-intro.author-deck[data-deck-kind=notebook] #intro-title{font-size:clamp(30px,3.6vw,52px);margin-bottom:20px;max-width:19ch}
.author-deck .notebook-intro .intro-lead{font-size:clamp(16px,1.7vw,22px);line-height:1.45}
.author-deck .notebook-intro .intro-footnote{font-size:12px;line-height:1.5;margin-top:20px;color:#607783}
.author-deck .water-notebook{position:relative;margin:0;padding:22px 34px 24px 48px;min-width:0;background:repeating-linear-gradient(transparent 0 31px,#b8d4e36b 31px 32px),#fff9e8;border:1px solid #daceb3;box-shadow:5px 5px 0 #eee7d6;transform:rotate(-1deg);color:#21548b}
.water-notebook:before{content:'';position:absolute;left:29px;top:0;bottom:0;width:1px;background:#d7a19c}
.water-notebook figcaption{font-size:17px;font-style:italic;font-weight:650;padding-bottom:4px}.notebook-unit{font-size:12px;text-align:right;color:#607783;margin-bottom:16px}
.notebook-line{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin-bottom:16px}.notebook-line>span{font-size:13px;max-width:110px}.notebook-line strong,.notebook-answer strong{font-size:clamp(28px,3.5vw,48px);font-family:'Comic Sans MS','Chalkboard SE',cursive;font-weight:600;white-space:nowrap;letter-spacing:-1px;font-variant-numeric:tabular-nums}.notebook-demand strong{position:relative}.notebook-demand em{position:absolute;left:-28px;font-style:normal}
.notebook-answer{border-top:2px solid #21548b;text-align:right;position:relative;padding-top:12px;color:#ad3f35;display:flex;flex-direction:column;gap:4px}.notebook-answer>span{font-size:18px;font-weight:700}.notebook-answer svg{width:80%;height:18px;align-self:flex-end;fill:none;stroke:#ad3f35;stroke-width:3;stroke-linecap:round}
.notebook-note{font-size:17px;font-style:italic;margin:16px 0 0;font-weight:600}.notebook-pencil{position:absolute;right:10px;bottom:9px;font-size:35px;color:#b27b24}
@media(prefers-reduced-motion:no-preference){.notebook-supply{animation:notebook-write .65s both}.notebook-demand{animation:notebook-write .65s .8s both}.notebook-answer{animation:notebook-write .65s 1.7s both}.notebook-answer path{stroke-dasharray:600;stroke-dashoffset:600;animation:notebook-underline .7s 2.2s forwards}.notebook-note{animation:notebook-write .5s 2.7s both}.notebook-pencil{animation:notebook-pencil 2.8s ease-in-out both}@keyframes notebook-write{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes notebook-underline{to{stroke-dashoffset:0}}@keyframes notebook-pencil{0%{transform:translate(-30px,-220px) rotate(-15deg)}35%{transform:translate(0,-155px) rotate(10deg)}65%{transform:translate(-30px,-70px) rotate(-15deg)}100%{transform:none}}}
@media(max-width:760px){.author-deck .water-notebook-slide{grid-template-columns:1fr;gap:20px}.author-deck .water-notebook{padding:18px 22px 20px 40px;transform:none}.notebook-line strong,.notebook-answer strong{font-size:34px}.notebook-line>span{font-size:12px;max-width:85px}.notebook-demand em{left:-22px}.author-deck .notebook-intro .intro-footnote{margin-top:12px}.notebook-note{font-size:15px}}
.author-deck .water-notebook-slide{min-height:0;padding:6px 4px 10px;box-sizing:border-box}
.notebook-line strong,.notebook-answer strong{font-size:clamp(25px,3vw,40px)}
.notebook-line{grid-template-columns:1fr;gap:4px}.notebook-line>span{max-width:none}.notebook-line strong{text-align:right}
@media(max-width:760px){.notebook-line strong,.notebook-answer strong{font-size:29px}}
.water-notebook-slide>div{min-width:0}.author-deck .water-notebook-slide{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media(max-width:760px){.author-deck .water-notebook-slide{grid-template-columns:minmax(0,1fr)}.notebook-line strong,.notebook-answer strong{font-size:clamp(21px,6.8vw,29px)}.notebook-intro .intro-lead{overflow-wrap:break-word}}
