/* ALAU LAB build 85 — one evening: ink, warm paper and brass. One family (Manrope), hierarchy by size, weight and tracking. */
:root{--brass:#c29a63;--brass-deep:#8c6a3c;--dusk-1:#10172a;--dusk-2:#2b2f4a;--dusk-3:#a9706a;--ease-out:cubic-bezier(.23,1,.32,1);--ease-io:cubic-bezier(.77,0,.175,1)}
body{font-variant-numeric:tabular-nums;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
h1,h2,.chapter h2,.office-copy h1,.question-content h2{font-weight:500;letter-spacing:-.048em;text-wrap:balance}
.office-copy h1{line-height:.99;font-size:clamp(64px,8.2vw,148px)}
.office-copy .eyebrow,.chapter-copy .eyebrow,.game-copy .eyebrow{display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:.2em}
.office-copy .eyebrow:before,.chapter-copy .eyebrow:before,.game-copy .eyebrow:before{content:'';width:38px;height:1px;background:var(--brass);flex:none}
.office-bottom{border-top:1px solid #f1e6d62e;padding-top:20px}
.header[data-theme=office],.header[data-theme=office] a:last-child{color:#f3eee4}
.header .wordmark{font-weight:600}
.office-shade{background:linear-gradient(90deg,#090c16e6 0%,#090c1699 30%,transparent 58%),linear-gradient(0deg,#090c16e0 0%,transparent 48%),linear-gradient(180deg,#090c16a6,transparent 18%)}
.office-veil{position:absolute;inset:0;z-index:6;background:#151714;opacity:0;pointer-events:none}
.game-canvas{transform-origin:50% 55%}

/* Press and hover: transform only, fast, ease-out. */
.button,.text-link,.chapter-nav a,.admin-entry,.admin-primary,.agent-label,.finale-index a,.web-search-action{transition:transform .16s var(--ease-out),background-color .2s ease,color .2s ease,border-color .2s ease,opacity .2s ease}
.button:active,.text-link:active,.chapter-nav a:active,.admin-entry:active,.admin-primary:active,.web-search-action:active,.finale-index a:active{transform:scale(.97)}
.button:hover{transform:none}
@media(hover:hover) and (pointer:fine){.button:hover{transform:translateY(-2px)}.button:active{transform:scale(.97)}}
.chapter-nav{background:#14171fdb;border-color:#f1e6d61f;box-shadow:0 14px 40px -12px #0007}
.chapter-nav a{color:#e9e3d8;font-weight:500}
.chapter-nav a[aria-current="true"]{background:#efe9dd;color:#14171f}
.story-progress>span{background:var(--brass)}

.feature-list{list-style:none;margin:34px 0 0;padding:0;display:grid;max-width:420px}
.feature-list li{display:flex;align-items:center;gap:16px;padding:13px 0;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);font-size:15px;line-height:1.4}
.feature-list li:before{content:'';width:6px;height:6px;border:1px solid var(--brass);transform:rotate(45deg);flex:none}

/* Satellite cards around the phone. */
.apps-satellites{position:absolute;inset:0;pointer-events:none;z-index:2}
.satellite{position:absolute;display:flex;flex-direction:column;gap:7px;padding:18px 20px;border-radius:18px;background:#f6f2eaf2;color:#171a18;box-shadow:0 30px 60px -24px #0009;min-width:210px}
.satellite span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#6f6a60}
.satellite strong{font-size:19px;font-weight:600;letter-spacing:-.02em}
.satellite small{font-size:13px;color:#5d5b53}
.satellite-a{left:calc(75vw + 112px);top:22%;min-width:190px}
.satellite-b{right:calc(25vw + 118px);bottom:19%;min-width:190px}
.satellite-b strong{display:flex;align-items:center;gap:10px}
.satellite-b strong:before{content:'';width:9px;height:9px;border-radius:50%;background:#5d8f4e;box-shadow:0 0 0 5px #5d8f4e22}

@media(min-width:761px){
 /* Apps: giant headline against a dusk panel that holds the phone. */
 .apps-scene{isolation:isolate;background:radial-gradient(900px 600px at 8% 105%,#e2cdb2 0%,transparent 70%),#eeede7}
 .apps-scene:before{content:'';position:absolute;top:22px;bottom:22px;right:22px;width:47%;border-radius:30px;background:radial-gradient(120% 70% at 62% 108%,#f0a86c 0%,#a9706a 24%,transparent 58%),linear-gradient(172deg,#0f1628 0%,#273050 55%,#5b4a63 100%);z-index:-1}
 .apps-scene .two-column{grid-template-columns:1.05fr .95fr;gap:3vw;max-width:none}
 .apps-scene .chapter-copy h2{font-size:clamp(62px,7.4vw,138px);line-height:.98}
 .apps-scene .chapter-copy .muted{font-size:18px;color:#55564e}
 .apps-scene .phone{width:min(330px,calc((100svh - 132px)*.49));transform:none;justify-self:center}
 .apps-scene .iphone-screen{height:min(660px,calc(100svh - 132px))}
 .apps-scene .demo-label{color:#6f6a60}

 /* Web: headline across the top, the browser takes the whole stage below it. */
 .web-scene{padding-top:88px;padding-bottom:96px;background:linear-gradient(#15171409 1px,transparent 1px) 0 0/100% 72px,linear-gradient(90deg,#15171409 1px,transparent 1px) 0 0/72px 100%,radial-gradient(1000px 640px at 88% 4%,#e8c9a666,transparent 68%),#eeede7}
 .web-scene .two-column{display:flex;flex-direction:column;align-items:stretch;gap:26px;max-width:1360px;height:100%;justify-content:center}
 .web-scene .chapter-copy{display:grid;grid-template-columns:1fr minmax(260px,400px);column-gap:48px;align-items:end}
 .web-scene .chapter-copy .eyebrow{grid-column:1/-1;margin-bottom:12px}
 .web-scene .chapter-copy h2{font-size:clamp(44px,4.9vw,86px);line-height:1;margin:0}
 .web-scene .chapter-copy .muted{display:none}
 .web-scene .chapter-copy .feature-list{margin:0}
 .web-scene .feature-list li{padding:9px 0;font-size:14px}
 .web-scene .browser{max-width:none;width:100%;justify-self:stretch;box-shadow:0 60px 110px -50px #14172080}
 .web-scene .browser-hero{height:clamp(170px,calc(100svh - 630px),520px);min-height:0;padding:22px clamp(28px,4vw,64px)}
 .web-scene .browser-hero h3{font-size:clamp(34px,min(4.6vw,7svh),84px);margin:14px 0}
 .web-scene .browser-hero .stays-location{margin-top:12px}
 .web-scene .site-nav-links{font-size:12px!important}
 .web-scene .web-search strong{font-size:13px}

 /* Automation: the dashboard dominates; the flow reads as a vertical line. */
 .automation-scene{background:radial-gradient(760px 560px at 72% 46%,#2f4a3c 0%,transparent 68%),radial-gradient(520px 380px at 4% 108%,#6a4b30 0%,transparent 70%),#121a17}
 .automation-scene .two-column{grid-template-columns:.62fr 1.75fr;gap:3.4vw;max-width:1720px}
 .automation-scene .chapter-copy h2{font-size:clamp(40px,3.9vw,76px);line-height:1.02}
 .automation-scene .dashboard-browser{max-width:1180px;box-shadow:0 70px 130px -50px #000d,0 0 0 1px #d9c49a2b}
 .automation-scene .admin-app{min-height:min(620px,calc(100svh - 270px))}
 .flow-line{list-style:none;margin:34px 0 0;padding:0;display:grid;gap:0}
 .flow-line li{position:relative;padding:9px 0 9px 28px;font-size:14px;color:#cfd8ca}
 .flow-line li:before{content:'';position:absolute;left:0;top:50%;width:9px;height:9px;margin-top:-5px;border-radius:50%;background:var(--brass);box-shadow:0 0 0 4px #c29a6322}
 .flow-line li:not(:last-child):after{content:'';position:absolute;left:4px;top:calc(50% + 9px);height:calc(100% - 18px);width:1px;background:linear-gradient(var(--brass),#c29a6340)}

 /* Agents: centred, night-time team room. */
 .agents-scene{padding-top:84px;padding-bottom:92px;background:radial-gradient(900px 520px at 50% 108%,#e9b98a66,transparent 70%),#edf0e9}
 .agents-scene .two-column{display:flex;flex-direction:column;align-items:center;gap:22px;max-width:1280px;height:100%;justify-content:center}
 .agents-scene .chapter-copy{text-align:center;display:flex;flex-direction:column;align-items:center}
 .agents-scene .chapter-copy h2{font-size:clamp(34px,3.7vw,66px);line-height:1;margin:12px 0 0}
 .agents-scene .chapter-copy h2 br{display:none}
 .agents-scene .chapter-copy .muted{display:none}
 .agents-scene .agents-browser{max-width:1180px;justify-self:center;box-shadow:0 70px 130px -55px #0f1628b0}
 .agents-scene .agents-browser .agents-visual{height:clamp(240px,calc(100svh - 500px),500px);min-height:0}
}
@media(min-width:761px) and (max-width:1100px){.satellite{display:none}.web-scene .chapter-copy{grid-template-columns:1fr}.web-scene .chapter-copy .feature-list{display:none}.flow-line{display:none}}
@media(min-width:761px) and (max-height:760px){.apps-scene .feature-list li{padding:8px 0;font-size:13px}.satellite-b{display:none}.flow-line{margin-top:18px}.flow-line li{padding-top:6px;padding-bottom:6px}.web-scene .feature-list li{padding:6px 0;font-size:13px}}

/* Finale: the same Astana evening seen from the office, with every direction one tap away. */
.contact.finale{isolation:isolate;display:flex;align-items:flex-start;min-height:max(100svh,760px);padding-top:128px;padding-bottom:110px;background:#10131f}
.finale-sky{position:absolute;left:0;bottom:0;width:100%;height:78%;object-fit:cover;object-position:50% 70%;z-index:-2}
.finale:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#10131f 18%,#10131fb8 48%,#10131f52 72%,#10131fd9 94%)}
.finale .chapter-content{display:grid;grid-template-columns:1.15fr .85fr;gap:6vw;align-items:start;padding:0}
.finale h2{font-size:clamp(52px,7.4vw,136px);line-height:.98;margin:0}
.finale .muted{color:#c9c3b6;font-size:17px}
.finale .phone-number{display:inline-flex;min-height:48px;align-items:center;font-size:clamp(28px,3.1vw,52px);letter-spacing:-.03em;font-weight:500}
.finale-index{list-style:none;margin:8px 0 0;padding:0;border-top:1px solid #f1e6d633}
.finale-index a{display:grid;grid-template-columns:1fr auto;gap:4px 18px;padding:19px 0;border-bottom:1px solid #f1e6d633;min-height:44px}
.finale-index b{font-size:clamp(19px,1.7vw,27px);font-weight:500;letter-spacing:-.025em}
.finale-index span{grid-column:1;font-size:13px;color:#b9b3a8}
.finale-index i{grid-column:2;grid-row:1/span 2;align-self:center;font-style:normal;font-size:22px;color:var(--brass);transition:transform .2s var(--ease-out)}
@media(hover:hover) and (pointer:fine){.finale-index a:hover i{transform:translate(5px,0)}.finale-index a:hover{border-color:var(--brass)}}
.finale footer{color:#c9c3b6!important}

/* Reduced motion: finished states, nothing hidden. */
.motion-reduced .office-veil{display:none}
.motion-reduced .apps-satellites{display:none}
.motion-reduced .apps-scene:before{display:none}
@media(prefers-reduced-motion:reduce){.button,.text-link,.finale-index a,.finale-index i{transition:none}}

@media(max-width:760px){
 .office-copy h1{font-size:clamp(54px,15.4vw,92px)}
 .office-shade{background:linear-gradient(0deg,#090c16ee 0%,#090c1699 34%,transparent 62%),linear-gradient(180deg,#090c16b3,transparent 20%)}
 .office-copy .eyebrow{font-size:10px;max-width:none;gap:10px}.office-copy .eyebrow:before,.chapter-copy .eyebrow:before,.game-copy .eyebrow:before{width:22px}
 .chapter-copy .eyebrow,.game-copy .eyebrow{font-size:10px;gap:10px}
 .feature-list,.flow-line,.apps-satellites{display:none}
 .apps-scene{background:radial-gradient(520px 520px at 50% 108%,#e6a87488,transparent 72%),#eeede7}
 .chapter-nav{gap:2px}.chapter-nav a{padding:10px 13px;font-size:12px;flex:none}
 .contact.finale{padding-top:104px;padding-bottom:40px;flex-direction:column;align-items:stretch}
 .finale .chapter-content{grid-template-columns:1fr;gap:34px}
 .finale h2{font-size:clamp(46px,13.4vw,74px)}
 .finale .muted{font-size:15px;margin:18px 0}
 .finale footer{position:static!important;margin-top:34px}
 .finale-index a{padding:14px 0}
 .finale-sky{height:52%}
}

/* Agents: the team room at night, with the Bayterek as the only warm centre. */
.agents-page{background:#10172a;color:#efe9dd}
.agents-site-top{background:#151e34;border-bottom-color:#f1e6d61c;color:#efe9dd}
.agents-site-top>span{color:#a9b2c8}
.agents-assistant-toggle{background:#efe9dd;border-color:#efe9dd;color:#14192a;font-weight:600}
.agents-page-heading>span{color:#d6b57c}
.agents-page-heading h3{font-weight:500}
.agents-page-heading p{color:#aab3c9}
.agents-visual{background:radial-gradient(ellipse at 50% 62%,#35385a 0%,#1b2440 38%,#10172a 74%)}
.agent-label{background:#18223ae6;border-color:#f1e6d626;color:#f4efe4;box-shadow:0 10px 26px -10px #000a;backdrop-filter:blur(8px)}
.agent-label>span{color:#aeb8cf}
.agent-label:hover,.agent-label.selected{border-color:var(--agent-color);box-shadow:0 0 0 1px var(--agent-color),0 12px 30px -8px #000c}
.bayterek-caption b{color:#f2d39a}.bayterek-caption span{color:#b9b3c4}
.agents-scene-note{color:#7f8aa6}
.agent-task-summary{background:#151e34;border-top-color:#f1e6d61c}
.agent-task-summary b{color:#f4efe4}.agent-task-summary>div>span{color:#aab3c9}
.agent-summary-symbol{background:#c29a6326;color:#e4bd7c}
.agents-connected{color:#a9d27a}
.agents-preview{background:#10172a}
.bayterek-fallback{border-color:#d9d3c8;box-shadow:inset 0 0 0 10px #2a3450}

/* Short laptop screens: every landed window stays above the chapter navigation. */
@media(min-width:761px) and (max-height:780px){
 .web-scene{padding-top:76px;padding-bottom:88px}
 .web-scene .two-column{gap:16px}
 .web-scene .chapter-copy{grid-template-columns:1fr}
 .web-scene .chapter-copy .feature-list{display:none}
 .web-scene .chapter-copy .eyebrow{margin-bottom:6px}
 .web-scene .chapter-copy h2{font-size:42px}
 .web-scene .chapter-copy h2 br{display:none}
 .web-scene .browser-site-nav{padding:11px 22px}
 .web-scene .web-search{padding:10px 22px}
 .web-scene .site-bottom{display:none}
 .web-scene .browser-hero{height:clamp(150px,calc(100svh - 480px),320px);padding:14px 34px}
 .web-scene .browser-hero h3{font-size:34px;margin:8px 0}
 .web-scene .browser-hero .stays-location{display:none}
 .automation-scene{padding-top:76px;padding-bottom:92px}
 .automation-scene .admin-app{min-height:0;height:calc(100svh - 247px);overflow:hidden}
 .agents-scene{padding-top:72px;padding-bottom:86px}
 .agents-scene .two-column{gap:12px}
 .agents-scene .chapter-copy .eyebrow{display:none}
 .agents-scene .chapter-copy h2{font-size:34px;margin:0}
 .agents-scene .agents-browser .agents-visual{height:clamp(190px,calc(100svh - 462px),330px)}
 .agents-scene .agents-browser .agents-page{min-height:0}
 .agents-scene .agents-browser .agents-page-heading{padding-top:8px}
 .agents-scene .agents-browser .agents-page-heading p,.agents-scene .agents-browser .agents-page-heading>span{display:none}
 .agents-scene .agents-browser .agents-page-heading h3{font-size:16px;margin:2px 0}
 .agents-scene .agents-browser .agents-page-heading h3 br{display:none}
 .agents-scene .agents-browser .agent-task-summary{min-height:44px;padding:8px 18px}
 .agents-scene .agents-browser .agent-label>span{display:none}
}
.header.over-finale{background:linear-gradient(#10131f 76%,#10131f00)}
@media(min-width:761px) and (max-height:780px){.contact.finale{min-height:max(100svh,640px);padding-top:104px;padding-bottom:80px}.finale h2{font-size:clamp(46px,6vw,92px)}.finale .muted{margin:16px 0}.finale .choice{margin-top:18px}.finale-index a{padding:12px 0}}
/* The assistant stays a light card inside the dark team room. */
.agents-page .agent-chat-drawer .chat{color:#171a18}
.agents-page .agent-chat-drawer .chat .text-link{color:#171a18}
.agents-page .close-agent-chat{color:#4c5148}
@media(max-width:760px) and (max-height:900px){.agents-scene .demo-label{display:none}}
@media(max-width:760px) and (max-height:800px){.web-scene .demo-label,.apps-scene .demo-label,.automation-scene .demo-label{display:none}}
/* Office footage: the question sits directly on the final frame, with no panel of its own. */
.office-film .invitation{background:transparent;border-color:transparent}
/* Minimal wording: headlines carry the chapters; the name lives on the studio wall and in the address. */
.header{display:none}
.chapter .eyebrow,.chapter .chapter-copy .muted,.chapter .feature-list,.chapter .demo-label,.apps-satellites,.game-copy p,.game-controls,.question-scroll,.finale-index span,.finale footer p{display:none!important}
.finale footer{justify-content:center}
.chapter .flow-line,.agents-page-heading>span,.agents-page-heading>p,.agents-scene-note,.agents-connected{display:none!important}
.office-copy .office-bottom{display:flex;justify-content:center;border:0;background:none}
.office-copy .scroll-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;text-align:center}
.office-copy .scroll-prompt .scroll-arrow{margin:0}
/* Games: a film title set in the sky, clear of the traveller. The copy box has no height, hence bottom offsets. */
@media(prefers-reduced-motion:no-preference){
 html:not(.motion-reduced) .game-copy{position:absolute!important;inset:0!important;display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;transform:none!important}
 html:not(.motion-reduced) #games-title{position:absolute;left:0;right:0;bottom:80vh;margin:0!important;max-width:none;padding-left:.62em;text-align:center;text-transform:uppercase;line-height:1;font-weight:400;font-size:clamp(40px,4.8vw,84px);letter-spacing:.62em;color:#f6f1e6;text-shadow:0 2px 34px #0a102099}
 html:not(.motion-reduced) .game-shade{background:linear-gradient(180deg,#0b1224a6 0%,#0b12244d 22%,transparent 40%)}
}
@media(max-width:760px){html:not(.motion-reduced) #games-title{bottom:81vh;font-size:40px}}
.motion-reduced #games-title{text-transform:uppercase;text-align:center;font-size:clamp(34px,3.6vw,64px)!important;letter-spacing:.62em!important;padding-left:.62em!important;font-weight:400!important}
/* The poster must sit exactly where the first frame will be drawn. */
@media(max-width:760px),(orientation:portrait){.office-poster{object-position:center}}
@media(min-width:761px) and (orientation:landscape) and (max-aspect-ratio:149/100){.office-poster{object-position:10% center}}
/* Footage carries its own light: shade only the corner behind the headline, so the lettering stays lit. */
.office-film .office-shade{background:radial-gradient(ellipse 72% 66% at 0% 100%,#090c16eb 0%,#090c16a6 46%,transparent 74%),linear-gradient(0deg,#090c16b3 0%,transparent 26%),linear-gradient(180deg,#090c1673,transparent 14%)}
@media(max-width:760px){.office-film .office-shade{background:linear-gradient(0deg,#090c16ee 0%,#090c1699 32%,transparent 54%),linear-gradient(180deg,#090c1680,transparent 16%)}}
