/* ================= Reset / Base ================= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-text);color:var(--ink-900);background:var(--paper);
  font-size:var(--fs-body);line-height:1.8;letter-spacing:.025em;
  -webkit-font-smoothing:antialiased;
}
img,svg,canvas{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
:focus-visible{outline:2px solid var(--teal-500);outline-offset:3px}
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--pad)}
.mono{font-family:var(--font-mono)}

h1,h2{font-family:var(--font-display);font-weight:700;letter-spacing:.01em;text-wrap:balance}
h3{font-family:var(--font-display);font-weight:700;font-size:var(--fs-h3);line-height:1.6;letter-spacing:.02em}

/* ================= Section common ================= */
.section{padding-block:var(--space-section)}
.sec-index{font-family:var(--font-mono);font-weight:500;font-size:var(--fs-kicker);letter-spacing:.22em;text-transform:uppercase;color:var(--ink-400);display:block;margin-bottom:22px}
.sec-title{font-size:var(--fs-h2);line-height:1.5}
.sec-rule{width:40px;height:1px;background:var(--ink-900);margin-top:26px;transform:scaleX(0);transform-origin:left;transition:transform .7s var(--e-out)}
.is-visible .sec-rule,.sec-head.is-visible .sec-rule{transform:scaleX(1)}
.sec-lead{color:var(--ink-600);font-size:var(--fs-lead);line-height:1.85;letter-spacing:.03em;margin-top:26px;max-width:36em;word-break:auto-phrase}

/* reveal */
.js .reveal{opacity:0;transform:translateY(32px) scale(.985);transition:opacity .45s linear,transform .7s var(--e-out)}
.js .reveal.is-visible{opacity:1;transform:none}

/* ================= Reduced motion ================= */
html.reduce-motion{scroll-behavior:auto}
html.reduce-motion *,html.reduce-motion *::before,html.reduce-motion *::after{animation:none!important;transition:none!important}
html.js.reduce-motion .reveal,html.js.reduce-motion .hero__fade,html.js.reduce-motion .hero__title .ch{opacity:1;transform:none}
html.reduce-motion .sec-rule{transform:scaleX(1)}
html.reduce-motion .hero__canvas,html.reduce-motion .hero__canvas-static{opacity:1}
@media (prefers-reduced-motion:reduce){
  html:not(.js){scroll-behavior:auto}
  html:not(.js) *,html:not(.js) *::before,html:not(.js) *::after{animation:none!important;transition:none!important}
}
#motionToggle{
  position:fixed;left:16px;bottom:16px;z-index:300;
  font-family:var(--font-text);font-size:.75rem;font-weight:500;letter-spacing:.04em;
  background:var(--teal-500);color:#fff;border:none;border-radius:2px;
  padding:10px 16px;cursor:pointer;opacity:.92;
}
#motionToggle:hover{background:var(--teal-400)}
