/* One palette for every system preference and every site view. */
:root{color-scheme:dark;--background:#111214;--surface:#1a1d20;--surface-raised:#22272b;--hover:#2b3338;--text:#f2f4f5;--muted:#b8c0c5;--border:#3b454c;--border-strong:#77888f;--accent:#72dad3}
*{box-sizing:border-box}html{font-size:16px;scroll-behavior:auto}body{margin:0;background:var(--background);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.5}a{color:inherit;text-underline-offset:.24em}a:hover{text-decoration-thickness:2px}button,a.button{font:inherit;cursor:pointer}button,.button{border:1px solid var(--border-strong);border-radius:4px;background:var(--surface);color:var(--text);padding:.7rem 1rem;display:inline-block;text-decoration:none}button:hover,.button:hover{background:var(--hover)}a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus{outline:3px solid var(--accent);outline-offset:5px}header,main,footer,.noscript{max-width:1320px;margin:auto;padding-left:40px;padding-right:40px}header{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding-top:24px;padding-bottom:24px;border-bottom:1px solid var(--border)}header nav{display:flex;gap:4px;margin-left:auto}header nav a{padding:8px 12px;text-decoration:none}header nav [aria-current]{background:var(--hover);border-radius:3px;text-decoration:underline}.brand{font-size:30px;font-weight:700;letter-spacing:-1px;text-decoration:none}.brand small{font-size:12px;letter-spacing:0;font-weight:400;border:1px solid var(--border-strong);padding:2px 5px;vertical-align:top;display:inline-block;margin:4px 0 0 3px}.prototype{font-size:.75rem;color:var(--muted)}.hero{padding:40px 0 28px;position:relative}.eyebrow{font-size:.875rem;color:var(--muted);margin:0 0 14px}h1{font-size:clamp(2rem,3.1vw,2.75rem);line-height:1.13;letter-spacing:-.035em;margin:0 0 18px;max-width:920px}h2{font-size:1.5rem;line-height:1.2;letter-spacing:-.02em;margin:0 0 8px}h3{font-size:1.25rem;line-height:1.25;margin:0 0 12px;word-break:normal;overflow-wrap:normal}p{margin:0 0 16px}.hero .desktop-intro>p{max-width:720px;margin-bottom:24px;color:var(--muted);font-size:1.125rem}.watch{background:var(--accent);color:var(--background);border-color:var(--accent)}.watch:hover{background:#9ce9e3}.group-nav{display:flex;gap:30px;flex-wrap:wrap;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:15px 0}.group-nav a{text-decoration:none}.ecosystem{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);column-gap:32px;row-gap:34px;padding-top:32px}.group-heading{display:flex;gap:12px;margin-bottom:20px}.group-heading p{color:var(--muted);margin:0;max-width:700px;font-size:.9375rem}.index{font-size:.75rem;border-top:1px solid var(--border-strong);padding-top:4px;margin-top:2px}.resources{display:grid;gap:16px}.build .resources{grid-template-columns:repeat(2,minmax(0,1fr))}.resource{background:var(--surface);padding:24px;border:1px solid var(--border);border-radius:4px;min-width:0;display:flex;flex-direction:column}.resource p:not(.type):not(.status){font-size:1rem;color:var(--muted)}.resource .type{font-size:.75rem;color:var(--muted);margin-bottom:12px}.resource.primary{grid-column:1/-1;background:var(--surface-raised);border-color:var(--border-strong)}.primary h3{font-size:2rem;letter-spacing:-.035em}.primary>p:not(.type){max-width:620px}.links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:auto;padding-top:6px}.links a{font-size:.875rem;font-weight:600}.status{font-size:.8125rem;border-top:1px dashed var(--border-strong);padding-top:14px;margin: auto 0 0}.automate{grid-column:1/-1}.automate .resources{grid-template-columns:repeat(2,minmax(0,1fr))}.external-note{font-size:.75rem;color:var(--muted);margin:20px 0 36px}.mobile-intro{display:none}.copy-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:24px}code{font-size:.875rem;user-select:all;overflow-wrap:anywhere}.intro{padding:48px 0;max-width:880px;margin:auto}.intro>p{max-width:700px}.placeholder{height:170px;border:1px dashed var(--border-strong);display:grid;place-items:center;background:var(--surface);margin:26px 0}.placeholder span{height:5px;width:5px;border-radius:50%;background:var(--border-strong)}.actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-bottom:24px}footer{display:flex;gap:20px;flex-wrap:wrap;align-items:baseline;border-top:1px solid var(--border);padding-top:24px;padding-bottom:32px;font-size:.8125rem}footer>p{margin-right:auto}details{width:100%;padding-top:14px;border-top:1px solid var(--border)}summary{cursor:pointer;width:fit-content}details p{margin-top:14px;max-width:620px}.js-only{display:none}.js .js-only{display:block}.skip-link{position:fixed;left:16px;top:-100px;z-index:10;background:var(--background);padding:12px}.skip-link:focus{top:16px}.error,.noscript{padding-top:20px}#announcer{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:var(--text);color:var(--text);padding:12px 20px;border-radius:4px;z-index:5}#announcer:empty{display:none}section[id]{scroll-margin-top:24px}
@media(max-width:1023px){header,main,footer,.noscript{padding-left:24px;padding-right:24px}header{gap:12px}.prototype{width:100%;font-size:.6875rem}.desktop-intro{display:none}.mobile-intro{display:block}.hero{padding-top:30px}.hero h1{font-size:2rem;max-width:600px}.mobile-intro>p{max-width:600px}.group-nav{gap:12px 24px}.ecosystem{display:block}.group{margin-bottom:32px}.build .resources,.automate .resources{grid-template-columns:1fr}.resource.primary{grid-column:auto}.resource{padding:20px}.primary h3{font-size:1.5rem}.group-heading{margin-bottom:16px}.intro{display:none}.external-note{margin-top:0}.links{gap:14px 24px}.links a{padding:5px 0}.copy-row button{width:auto}h1{letter-spacing:-.025em}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* First working scroll slice, added after explicit user continuation. */
body:has(.scroll-intro) header{position:fixed;top:0;left:0;right:0;z-index:3;background:var(--background);border-bottom:0;padding-top:16px;padding-bottom:16px}
body:has(.scroll-intro) main{max-width:none;padding:0}.scroll-intro{max-width:none;margin:0;padding:0;height:340vh}.scene-stage{height:100vh;position:sticky;top:0;display:flex;align-items:center;flex-direction:column;padding:100px 48px 30px}.scene-top{width:100%;max-width:1240px;display:flex;justify-content:space-between;gap:24px;font-size:.875rem;color:var(--muted)}.scene-copy{text-align:center;margin-top:5vh}.scene-copy h1{max-width:950px;outline-offset:8px}.scene-copy p{color:var(--muted)}.scene-glyph{width:320px;height:320px;flex-shrink:1;min-height:120px;margin:auto}.scene-bottom{text-align:center;min-height:130px;width:100%;max-width:650px}.scene-bottom progress{height:3px;width:160px;display:block;margin:16px auto;accent-color:var(--accent)}.scene-end[hidden]{display:none}.scene-end p{font-size:.875rem}.scene-hint{font-size:.875rem}.scroll-intro.calm{height:100vh}.scene-stage .scene-copy h1{font-size:clamp(2rem,3.1vw,2.75rem)}

body:has(.scroll-intro) footer{display:none}.scene-copy h1:focus{outline:none}

/* Second slice: Icons gains depth, on the same pinned scroll timeline. */
.scroll-intro{height:540vh}.scroll-intro.calm{height:100vh}
.scene-glyph{overflow:visible}.cross-shadow,.cross-sides,.cross-glass,.cross-spark{opacity:0}
.scene-product{display:flex;justify-content:center;align-items:center;gap:24px;margin-bottom:20px;font-size:.875rem}
.scene-product p{margin:0}.scene-product strong{font-size:1.125rem}.scene-copy{min-height:105px}
@media(max-height:780px){.scene-stage{padding-top:90px;padding-bottom:20px}.scene-copy{margin-top:1vh;min-height:85px}.scene-glyph{width:250px;height:250px}.scene-bottom{min-height:120px}.scene-product{margin-bottom:12px}}

/* Static storyboard: composition follows SPEC §9, with shared endpoint positions. */
.static-intro{height:2020vh}
.static-intro .scene-stage{padding:60px 32px 64px;background:var(--background);gap:0}
.static-intro .scene-top{position:absolute;top:12px;left:32px;right:140px;width:auto;max-width:none;align-items:center;font-size:.75rem;height:32px}
.static-intro .chapter-label{margin:0}
.static-intro .scene-top a{padding:6px 8px}
.scene-composition{width:100%;max-width:none;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:16px}
.static-intro .scene-copy{margin:0;min-height:0;align-self:center;text-align:center}
.static-intro .scene-copy h1{font-size:clamp(1.6rem,2.8vw,2.4rem);max-width:950px;margin:0 auto 18px;text-wrap:balance}
.static-intro .scene-description{margin:0 auto;max-width:680px;text-wrap:pretty}
.still-frame{min-width:0;min-height:0;width:100%;height:100%;position:relative;display:flex;justify-content:center;align-items:center}
.still-frame img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;max-width:none}
.static-intro[data-layout="right"] .scene-composition{grid-template-columns:minmax(0,2fr) minmax(0,3fr);grid-template-rows:minmax(0,1fr);column-gap:clamp(32px,4vw,64px)}
.static-intro[data-layout="left"] .scene-composition{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr);column-gap:clamp(32px,4vw,64px)}
.static-intro[data-layout="left"] .still-frame{grid-column:1;grid-row:1}
.static-intro[data-layout="left"] .scene-copy{grid-column:2;grid-row:1}
.static-intro[data-layout="right"] .still-frame{grid-column:2;grid-row:1}
.static-intro[data-layout="right"] .scene-copy{grid-column:1;grid-row:1}
.static-intro:is([data-layout="left"],[data-layout="right"]) .scene-copy{text-align:left;min-width:0}
.static-intro[data-layout="left"] .scene-copy{padding-right:clamp(24px,4vw,80px)}
.static-intro[data-layout="right"] .scene-copy{padding-left:clamp(24px,4vw,80px)}
.static-intro:is([data-layout="left"],[data-layout="right"]) .scene-copy h1{font-size:clamp(1.6rem,2.7vw,2.4rem);margin-left:0}
.static-intro[data-copy-hidden="true"] .scene-copy{visibility:hidden}
.frame-error{position:absolute;background:var(--background);padding:24px;max-width:100%}
.static-intro .scene-bottom{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 64px);min-height:0;display:flex;align-items:center;gap:16px;padding:8px 12px;background:rgba(17,18,20,.92);border:1px solid var(--border);border-radius:8px;z-index:2}
.scene-time{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:4px;height:clamp(100px,20vh,180px);border-radius:4px;background:rgba(255,255,255,.18);overflow:hidden;z-index:3;pointer-events:none}
.scene-time[hidden]{display:none}
.scene-time span{display:block;width:100%;height:100%;background:var(--accent);border-radius:inherit;transform:scaleY(0);transform-origin:bottom}
.static-intro .frame-caption{display:none}
.static-intro .frame-controls{margin:0;gap:20px}
.static-intro .scene-end .button{font-size:.75rem;padding:5px 10px}
.static-intro .scene-end{margin:0}
.frame-caption{font-size:.75rem;color:var(--muted);margin:0}
.frame-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.frame-controls button{font-size:.75rem;padding:5px 10px}
.frame-controls .scene-hint{margin:0}
.frame-controls button:disabled{opacity:.35;cursor:default}
body:has(.static-intro) header{top:12px;left:auto;right:24px;width:auto;max-width:none;margin:0;padding:0;background:transparent;border:0;gap:0;font-size:.75rem}
body:has(.static-intro) header nav{gap:2px}
body:has(.static-intro) header nav a{padding:6px 8px}
@media(max-height:780px){.scene-composition{gap:12px}}

/* Canvas and precomposed video share a full 16:9 scene under semantic copy. */
.scene-composition{position:relative}
.static-intro[data-full-frame="true"] .still-frame{position:absolute;inset:0;grid-column:auto;grid-row:auto}
.static-intro[data-full-frame="true"] .scene-copy{z-index:1;position:relative;pointer-events:none}
.static-intro[data-full-frame="true"][data-layout="center"] .scene-copy{align-self:start}
.intro-canvas,.final-canvas,.scene-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.intro-canvas[hidden],.final-canvas[hidden],.scene-video[hidden]{display:none}
.static-intro[data-canvas="true"] .still-frame>img{visibility:hidden}
.frame-error{z-index:2}

/* Composite the entire media stack once against the scene background.
   Generated dark backplates vary below #111214; lighten removes their rectangle
   without changing brighter glass, type or the point, or exposing the poster
   through a video. Keep semantic copy and controls outside this blend group. */
.static-intro[data-full-frame="true"] .scene-composition{isolation:isolate;background:var(--background)}
.static-intro[data-full-frame="true"] .still-frame{mix-blend-mode:lighten}

/* Three legacy posters have a slightly lighter blue black. Remap only the
   bottom 32/255 levels; all brighter values stay exactly on the identity curve. */
.static-intro .still-frame>img:is([src="/media/point.png"],[src="/media/flat.png"],[src="/media/button.png"]){filter:url(#scene-poster-black)}

.scene-filter-defs{position:absolute;pointer-events:none}

.static-intro .scene-product-name{font-size:.8125rem;letter-spacing:.02em;color:var(--accent);margin:0 0 12px;overflow-wrap:anywhere}
.static-intro .scene-product-type{font-size:.8125rem;color:var(--muted);margin:12px 0 0}
.static-intro .scene-product-name:empty,.static-intro .scene-product-type:empty,.static-intro .scene-product-status:empty{display:none}
.scene-resource-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:20px;font-size:.875rem}
.scene-resource-links[hidden]{display:none}
.scene-resource-links a{pointer-events:auto}

/* Interface foundation: one licensed family and consistent action states. */
@font-face{font-family:TriplexGolos;src:url('/hub-font.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--font-ui:TriplexGolos,Arial,Helvetica,sans-serif;--surface-card:#16181a;--border-subtle:#303538;--accent-hover:#9ce9e3;--on-accent:#111214;--radius-control:10px}
body{font-family:var(--font-ui)}
button,.button{border-radius:var(--radius-control);font-weight:500}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
::selection{background:var(--accent);color:var(--on-accent)}
header nav{padding:3px;border:1px solid var(--border-subtle);border-radius:var(--radius-control)}
header nav a{min-width:38px;text-align:center;border-radius:7px;font-size:.8125rem;line-height:20px}
header nav [aria-current]{background:var(--surface-raised);color:var(--text);text-decoration:none;border-radius:7px}
header nav a:hover{background:var(--hover)}
.static-intro .scene-copy h1,.static-intro:is([data-layout="left"],[data-layout="right"]) .scene-copy h1{font-weight:500;line-height:1.14;letter-spacing:-.035em;font-size:clamp(1.625rem,2.7vw,2.625rem)}
.static-intro .scene-description,.static-intro .scene-product-type.scene-product-label,.static-intro .scene-product-type code{font-size:clamp(1rem,1.2vw,1.125rem);line-height:1.6}
.static-intro .scene-product-name{font-size:.875rem;letter-spacing:0;font-weight:500;line-height:1.45}
.static-intro .scene-product-type{font-size:.8125rem;line-height:1.5}
.scene-resource-links{gap:8px 24px;margin-top:20px;color:var(--accent)}
.scene-resource-links a{font-size:.875rem;line-height:1.5;padding:8px 0;text-decoration:underline;text-decoration-color:rgba(114,218,211,.5);text-decoration-thickness:1px}
.scene-resource-links a::after{content:' ↗'}
.scene-resource-links a:hover{color:var(--accent-hover);text-decoration-color:currentColor}
.static-intro .scene-top{font-size:.8125rem}
.static-intro .scene-top a{padding:7px 10px;text-decoration:none;border-radius:8px}
.static-intro .scene-top a:hover{background:var(--surface-raised);color:var(--text)}
.static-intro .chapter-label{font-variant-numeric:tabular-nums}
body:has(.static-intro) header nav a{padding:4px 8px}
.static-intro .scene-bottom{border-radius:14px;padding:6px;gap:12px}
.static-intro .frame-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:16px}
.frame-controls button,.static-intro .scene-end .button{font-size:.8125rem;line-height:20px;min-height:36px;padding:7px 14px}
.frame-controls button{min-width:92px;transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.frame-controls button[data-frame-step="-1"]{background:transparent;border-color:var(--border-strong);color:var(--muted)}
.frame-controls button[data-frame-step="-1"]:hover:enabled{background:var(--surface-raised);color:var(--text)}
.frame-controls button[data-frame-step="1"],.static-intro .scene-end .button{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.frame-controls button[data-frame-step="1"]:hover:enabled,.static-intro .scene-end .button:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.frame-controls button:disabled{opacity:1;background:var(--surface);border-color:var(--border-subtle);color:#899297}
#announcer{background:var(--surface-raised);color:var(--text);border:1px solid var(--border);border-radius:12px;font-size:.875rem}

/* Keep the keyboard shortcut out of full-page captures while off screen. */
.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
/* At the finale, expose one clear destination instead of a disabled Next. */
.static-intro:has(.scene-end:not([hidden])) :is(.scroll-cue,[data-frame-step="1"]){display:none}

.static-intro .scene-top .chapter-label{margin:0 auto 0 0}

.final-vector{position:absolute;inset:0;width:100%;height:100%;background:#111214}
.final-vector[hidden]{display:none}

/* Final destination follows the rendered logo, outside the playback dock. */
.static-intro .scene-bottom[hidden],.static-intro .scene-end[hidden]{display:none}
.static-intro .scene-end{position:absolute;left:50%;transform:translateX(-50%);z-index:2;max-width:calc(100% - 48px);text-align:center}
.static-intro .scene-end .button{display:inline-flex;align-items:center;justify-content:center;min-height:56px;min-width:260px;padding:16px 28px;font-size:1.125rem;line-height:1.4;border-radius:12px}

/* A quiet scroll cue becomes a brief prompt when the time bar is full. */
.static-intro .scroll-cue{display:flex;align-items:center;justify-content:center;flex:0 0 64px;height:40px;color:var(--muted);transition:color .25s ease,filter .25s ease}
.static-intro .scroll-cue svg{display:block;width:26px;height:34px}
.static-intro[data-scroll-ready="true"] .scroll-cue{color:var(--accent);filter:drop-shadow(0 0 7px rgba(114,218,211,.3))}
.static-intro[data-scroll-ready="true"] .scroll-cue svg{animation:scroll-cue-nudge .8s ease-in-out 2}
@keyframes scroll-cue-nudge{0%,100%{transform:translateY(0)}45%{transform:translateY(4px)}70%{transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){.static-intro .scroll-cue,.frame-controls button{transition:none}.static-intro[data-scroll-ready="true"] .scroll-cue svg{animation:none}}

.static-intro .scene-product-type code{color:var(--text);display:inline-block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;max-width:100%;vertical-align:bottom}

.static-intro .scene-product-type.scene-product-label{color:var(--text)}

.static-intro .scene-product-status{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:8px 0 0}

.static-intro .scene-description:empty{display:none}
.static-intro .scene-end:not([hidden]) .button{animation:final-cta-enter .7s cubic-bezier(.22,1,.36,1) both}
@keyframes final-cta-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.static-intro .scene-end:not([hidden]) .button{animation:none}}

/* Equal space above and below the canonical final sign. */
.static-intro{--final-gap:clamp(128px,16vh,224px)}
.static-intro[data-full-frame="true"][data-final-chapter="true"] .scene-copy{position:absolute;left:0;right:0;bottom:calc(100% - var(--final-logo-top) + var(--final-gap))}
.static-intro[data-final-chapter="true"] .scene-copy h1{margin-bottom:0}
.static-intro .scene-end{display:flex;justify-content:center;gap:16px;white-space:nowrap}
.static-intro .scene-end .button{min-width:220px}
.static-intro .scene-end .button.secondary{background:transparent;border-color:var(--border-strong);color:var(--text)}
.static-intro .scene-end .button.secondary:hover{background:var(--surface-raised);border-color:var(--border-strong)}
