/* scrub-kit base: mechanics only (stage, pin, layers, fallback). Each site brings its own tokens and type. */
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--ink)}
body{font-family:var(--sans);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit}
button,input,textarea,select{font:inherit;color:inherit}
img{display:block;max-width:100%}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;left:12px;top:-60px;z-index:30;background:var(--ink);color:var(--bg);padding:8px 12px;border-radius:4px;font:500 11px var(--mono)}
.skip:focus{top:12px}
.hl .ln{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.hl .ln>span{display:block}
.hl .w{display:inline-block}

/* ---------- STATIC (no JS / reduced motion / ?static): a normal readable page ---------- */
.stage{position:relative}
.pin{position:relative}
.gl,.lines,.hud-only{display:none}
.sec{position:relative;min-height:100vh;padding:18vh var(--gut) 12vh;display:flex;flex-direction:column;justify-content:center;
  background:var(--bg) var(--still,none) center/cover no-repeat;isolation:isolate}
.sec::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--veil)}

/* ---------- CINEMATIC (JS, motion allowed) ---------- */
html.js:not(.rm) .stage{height:var(--stage-h,1200vh)}
html.js:not(.rm) .pin{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
html.js:not(.rm) .gl,html.js:not(.rm) .lines{display:block;position:absolute;inset:0;width:100%;height:100%}
html.js:not(.rm) .lines{pointer-events:none;z-index:3}
html.js:not(.rm) .hud-only{display:block}
html.js:not(.rm) .layers{position:absolute;inset:0;z-index:4}
html.js:not(.rm) .sec{position:absolute;inset:0;min-height:0;padding:0;background:none;display:block;visibility:hidden;pointer-events:none}
html.js:not(.rm) .sec::before{display:none}
html.js:not(.rm) .sec.vis{visibility:visible}
html.js:not(.rm) .sec.live{pointer-events:auto}
html.js:not(.rm) .sec .hl .ln>span{will-change:transform;transform:translate3d(0,112%,0)}
html.js:not(.rm) .sec:first-child .hl .ln>span{transform:none}
html.js:not(.rm) .sec:first-child .w{transform:translate3d(0,115%,0);will-change:transform}
html.js:not(.rm) [data-f]{opacity:0;will-change:opacity,transform}
html.js:not(.rm) .chrome{opacity:0;transition:opacity 1.1s .3s}
html.js:not(.rm) body.ready .chrome{opacity:1}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
