/* ==========================================================================
   site-v2 · the home only (looks-v6). Shared tokens, type, buttons, the bar, plates and the footer: css/site.css.
   looks-v5 · one page, one scene. Paper, ink, the line; colour only where something was refused.
   The text hangs on the left of the line (desktop); the globe's world lives on its right.
   Type from looks-v3: Mona Sans (display), Geist (text), Geist Mono (labels), Doto (numerals).
   The logo is never recoloured.
   ========================================================================== */

/* ---------- the fixed layers ---------- */
.scene { position: fixed; left: 0; top: 0; z-index: 0; display: block; }
.lines { position: fixed; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; transition: opacity .25s linear; }
.lines.is-off .hit { pointer-events: none; }
html:not(.is-ready) .lines { opacity: 0; }
main, .foot { position: relative; z-index: 2; }

/* hairlines (the hero's instrument layer) */
.ln path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ln--ink path { stroke: rgb(var(--ink-rgb) / .58); }
.ln--light path { stroke: rgba(236, 232, 224, .46); }
.ln .axis, .ln .tick { shape-rendering: crispEdges; }
.ln .tick { stroke: rgb(var(--ink-rgb) / .55); }
.ln .orbit--dots { stroke-dasharray: 0 5.5; stroke-linecap: round; stroke-width: 1.5; stroke: rgb(var(--ink-rgb) / .75); }
.ln .grat { stroke: rgba(236, 232, 224, .5); }
.ln .spoke { transition: stroke .2s; }
.ln--ink .spoke { stroke: rgb(var(--ink-rgb) / .42); }
.ln--light .spoke { stroke: rgba(236, 232, 224, .46); }
.ln--ink .spoke.is-on { stroke: rgb(var(--ink-rgb) / .95); }
.ln--light .spoke.is-on { stroke: rgba(246, 243, 236, .95); }
.node { transition: r .2s; }
.node--white { fill: var(--node); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.node--ink { fill: var(--ink); }
.node--ctl.is-on { r: 8px; }
.ln .orbit--tilt { stroke-dasharray: 0 4.5; stroke-width: 1.4; }
.ln--light .orbit--tilt { stroke: rgba(246, 243, 236, .7); }
.cross path { fill: none; stroke: rgb(var(--ink-rgb) / .7); stroke-width: 1; shape-rendering: crispEdges; vector-effect: non-scaling-stroke; }
.hit { fill: transparent; pointer-events: all; cursor: crosshair; }

/* the refusal dot and the live counter: on the line, at the globe's centre */
.hud { position: fixed; z-index: 1; left: 0; top: 0; pointer-events: none; will-change: transform; }
.hud__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--signal); }   /* the focal square: the refusal */
.hud__count { position: absolute; left: 15px; top: -33px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hud__count > span:first-child { font-family: var(--pixel); font-weight: 800; font-size: 19px; letter-spacing: .04em; color: var(--sig-night); }
.hud__l { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(236, 232, 224, .78); }
.hud__hint { position: absolute; left: 16px; top: 14px; width: 190px; font-family: var(--mono); font-size: 10px; line-height: 1.55; color: rgba(236, 232, 224, .6); opacity: 0; transition: opacity .3s; }
.hud.is-hero .hud__hint { opacity: 1; }
.hud__count { transition: opacity .3s; }



/* ---------- the index (fixed, top right): a small whole globe and the chapters ---------- */
.index { position: fixed; z-index: 5; right: 40px; top: 92px; width: 78px; display: grid; justify-items: end; gap: 10px; }
.index__plate { width: 78px; height: 78px; border: 1px solid rgb(var(--ink-rgb) / .55); background: var(--paper); }
.index__globe { display: block; width: 100%; height: 100%; }
.index ol { display: grid; gap: 2px; padding-right: 10px; border-right: 1px solid rgb(var(--ink-rgb) / .55); }
.index a { position: relative; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; line-height: 17px; color: var(--ink-2); padding: 0 2px; text-align: right; }
.index a b { font-weight: 400; }
.index a span { position: absolute; right: calc(100% + 10px); top: 0; white-space: nowrap; opacity: 0; transform: translateX(4px); transition: opacity .2s, transform .2s; pointer-events: none; color: var(--ink-2); letter-spacing: .08em; }
.index a:hover span, .index a:focus-visible span { opacity: 1; transform: none; }
.index a[aria-current] { color: var(--paper); background: var(--ink); }
.index.is-dark .index__plate { border-color: rgba(236, 232, 224, .62); }
.index.is-dark ol { border-color: rgba(236, 232, 224, .62); }
.index.is-dark a { color: rgba(236, 232, 224, .8); }
.index.is-dark a span { color: rgba(236, 232, 224, .9); }
.index.is-dark a[aria-current] { color: var(--ink); background: var(--light); }

/* ---------- 00 · the hero (looks-v4, variant A) ---------- */
.hero { position: relative; height: var(--vh); min-height: 700px; max-height: 1200px; touch-action: pan-y; }
.nav { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; padding: 0 40px; }
.nav__logo img { display: block; height: 24px; width: auto; }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { justify-self: end; }
.hero__copy { position: absolute; z-index: 2; left: var(--pad); top: clamp(112px, 15vh, 150px); width: min(620px, 46vw); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.h1 { font-family: var(--display); font-weight: 380; font-stretch: 104%; font-size: clamp(40px, 3.9vw, 60px); line-height: 1.0; letter-spacing: -0.032em; }
.h1 span { display: block; }
.sub { margin-top: 22px; max-width: 420px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.verbs { position: absolute; z-index: 2; left: var(--pad); bottom: 44px; display: grid; gap: 3px; padding-bottom: 14px; }
.verbs::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: var(--ink); }
.verbs button { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; line-height: 17px; color: var(--ink); padding: 0 3px 0 0; }
.verbs button.is-on, .verbs button:hover { background: var(--ink); color: var(--paper); }
.tip { position: absolute; z-index: 4; left: 0; top: 0; display: flex; gap: 10px; align-items: baseline; padding: 4px 8px 4px 7px; background: var(--paper); border: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--ink); pointer-events: none; white-space: nowrap; }
.tip b { font-weight: 500; color: var(--stone); letter-spacing: .1em; }
.tip[hidden] { display: none; }

/* ---------- the chapters: the text column stops short of the line ---------- */
.ch { position: relative; padding-left: var(--pad); width: calc(var(--seam-ch) - 48px); }


/* 01 · interlude: the statement in dot-matrix type, set across the whole page and coming apart */
.ch--reads { padding: calc(var(--vh) * 0.24) 0 calc(var(--vh) * 0.2); }
.statement { margin: 0 var(--gr) 0 var(--pad); font-family: var(--pixel); font-weight: 800; font-size: clamp(56px, 10.4vw, 168px); line-height: .9; letter-spacing: 0; color: var(--ink); }
.reads__plate { display: none; position: relative; }
.ch--reads.is-drawn .statement { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ch--reads.is-drawn .reads__plate { display: block; }
.aside { position: relative; margin: var(--s7) var(--gr) 0 max(var(--pad), calc(var(--seam) - 420px)); max-width: 380px; padding-top: var(--s3); border-top: 1px solid rgb(var(--ink-rgb) / .5); font-size: 16.5px; line-height: 1.62; color: var(--ink-2); }

/* 02 · the line: text left, the drawing on the right with the sandbox wall on the page's line */
.ch--line { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 72px; padding: calc(var(--vh) * 0.2) var(--gr) calc(var(--vh) * 0.24) var(--pad); }
.line__text { grid-column: 1; grid-row: 1; }
.ch--line .h2 { font-size: clamp(36px, 3.5vw, 54px); }
.ch--line .file { grid-column: 1; grid-row: 2; align-self: end; margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid rgb(var(--ink-rgb) / .5); }
.ch--line .file .body { margin-top: var(--s3); font-size: 16px; }
.sbx { grid-column: 2; grid-row: 1 / span 2; position: relative; margin: 0; min-height: 520px; }
.sbx__svg { position: absolute; left: 0; top: 0; overflow: visible; }
.sbx__fill { position: absolute; }
.sbx__frame { fill: none; stroke: rgb(var(--ink-rgb) / .32); stroke-width: 1; shape-rendering: crispEdges; }
.sbx__reg { stroke: rgb(var(--ink-rgb) / .7); stroke-width: 1; shape-rendering: crispEdges; }
.sbx__box { fill: none; stroke: rgb(var(--ink-rgb) / .62); stroke-width: 1; shape-rendering: crispEdges; }
.sbx__wall { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.sbx__wallx { stroke: rgb(var(--ink-rgb) / .55); stroke-width: 1; stroke-dasharray: 1 4; shape-rendering: crispEdges; }
.sbx__bus { stroke: rgb(var(--ink-rgb) / .45); stroke-width: 1; shape-rendering: crispEdges; }
.sbx__file { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.sbx__fl { stroke: rgb(var(--ink-rgb) / .5); stroke-width: 1; shape-rendering: crispEdges; }
.sbx__lead { stroke: rgb(var(--ink-rgb) / .42); stroke-width: 1; shape-rendering: crispEdges; transition: stroke .2s; }
.sbx__jn { fill: rgb(var(--ink-rgb) / .6); transition: fill .2s; }
.sbx__port { fill: var(--node); stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; transition: fill .2s; }
.sbx__lead.is-on { stroke: var(--ink); }
.sbx__jn.is-on, .sbx__port.is-on { fill: var(--ink); }
.sbx.has-on .sbx__lead:not(.is-on) { stroke: rgb(var(--ink-rgb) / .18); }
.sbx__tag { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; line-height: 14px; color: var(--ink); white-space: nowrap; pointer-events: none; }
.sbx__tag i { display: block; margin-top: 4px; font-style: normal; letter-spacing: .02em; text-transform: none; font-size: 11px; color: var(--stone); }
.sbx__tag--file i, .sbx__tag--box i { white-space: normal; }
.sbx__tag--machine { color: var(--stone); }
.sbx__fan { position: absolute; overflow: visible; pointer-events: none; mix-blend-mode: difference; }
.sbx__fl { fill: none; stroke: #F3F0E8; stroke-opacity: .42; stroke-width: 1; transition: stroke-opacity .2s; }
.sbx__fl.is-on { stroke-opacity: .95; }
.sbx.has-on .sbx__fl:not(.is-on) { stroke-opacity: .12; }
.sbx__ports li { position: absolute; }
.sbx__ports button { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; width: 100%; text-align: left; padding: 0; }
.sbx__ports b { font-family: var(--pixel); font-weight: 800; font-size: 13px; letter-spacing: .04em; line-height: 16px; color: var(--stone); }
.sbx__name { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 16px; color: var(--ink); justify-self: start; padding: 0 3px 0 1px; }
.sbx__what { grid-column: 2; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--stone); transition: color .2s; }
.sbx__ports button.is-on .sbx__name, .sbx__ports button:hover .sbx__name { background: var(--ink); color: var(--paper); }
.sbx__ports button.is-on .sbx__what { color: var(--ink); }

/* 03 · its limits: three rows, each with a hairline that runs to its node on the line */
.ch--limits { padding-top: calc(var(--vh) * 0.3); padding-bottom: calc(var(--vh) * 0.3); }
.rows { margin-top: calc(var(--vh) * 0.08); }
.row { position: relative; display: grid; grid-template-columns: 136px minmax(0, 430px); column-gap: 0; padding: 44px 0 50px; }
.row + .row { margin-top: calc(var(--vh) * 0.06); }
.row__verb { grid-row: 1 / span 3; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; line-height: 30px; color: var(--ink); }
.row__verb b { display: block; font-family: var(--pixel); font-weight: 800; font-size: 15px; letter-spacing: .06em; line-height: 30px; color: var(--stone); }
.row__h { grid-column: 2; font-family: var(--display); font-weight: 400; font-stretch: 104%; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.06; letter-spacing: -0.025em; }
.row__p { grid-column: 2; margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.row .link { grid-column: 2; justify-self: start; margin-top: 14px; }
.row::after { content: ''; position: absolute; left: calc(136px + 430px + 36px); right: -48px; top: 63px; height: 1px; background: rgb(var(--ink-rgb) / .5); }
.row::before { content: ''; position: absolute; right: -53px; top: 59px; width: 9px; height: 9px; border-radius: 50%; background: var(--node); box-shadow: 0 0 0 1px var(--ink); z-index: 1; }

/* 04 · cap: split at the line. Text on paper; the ledger on ink */
.ch--cap { min-height: max(var(--vh), 760px); }
.cap__text { position: relative; z-index: 1; width: calc(var(--seam) - 48px); padding: calc(var(--vh) * 0.3) 0 calc(var(--vh) * 0.2) var(--pad); }
.cap__text .h2 { max-width: 9em; }
.cap__text .body { max-width: 400px; font-size: 18px; }
.cap__panel { position: absolute; left: var(--seam); right: var(--gr); top: 0; bottom: 0; }
.cap__meter, .cap__svg { position: absolute; left: 0; top: 0; }
.cap__svg { overflow: visible; }
.cap__cap { stroke: var(--paper); stroke-width: 1; shape-rendering: crispEdges; }
.cap__axis, .cap__tick, .cap__base { stroke: rgba(236, 232, 224, .5); stroke-width: 1; shape-rendering: crispEdges; }
.cap__lead { stroke: rgba(236, 232, 224, .7); stroke-width: 1; shape-rendering: crispEdges; opacity: 0; transition: opacity .3s; }
.cap__l { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 14px; color: rgba(236, 232, 224, .62); white-space: nowrap; }
.cap__l--cap { color: var(--paper); }
.cap__l--ax { transform: translateX(-100%); letter-spacing: .04em; }
.cap__l--axcap { color: var(--paper); }
.cap__l--head { letter-spacing: .22em; color: rgba(236, 232, 224, .62); }
.cap__l--last, .cap__l--ref { opacity: 0; transition: opacity .3s; }
.cap__l--ref { color: var(--sig-night); }
.cap__panel.is-last .cap__l--last, .cap__panel.is-last .cap__lead--last { opacity: 1; }
.cap__panel.is-ref .cap__l--ref, .cap__panel.is-ref .cap__lead--ref { opacity: 1; }

/* 05 · sign: ink, full bleed; text left, the chain right */
.ch--sign { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 80px; align-items: start; padding: calc(var(--vh) * 0.24) var(--gr) calc(var(--vh) * 0.26) var(--pad); }
.sign__text { padding-top: var(--s2); }
.chain { position: relative; }
.chain__cap { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: var(--s5); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(236, 232, 224, .62); }
.chain__cap span + span::before { content: '·'; margin: 0 12px; color: rgba(236, 232, 224, .62); }
.chain__rows { display: grid; gap: 22px; }
.chain__row { display: grid; grid-template-columns: 30px 70px minmax(0, 150px) minmax(0, 1fr) auto auto; column-gap: 14px; align-items: center; font-family: var(--mono); font-size: 12.5px; line-height: 18px; color: rgba(236, 232, 224, .78); }
.chain__n { font-family: var(--pixel); font-weight: 800; font-size: 13px; color: rgba(236, 232, 224, .62); padding: 0 3px; justify-self: start; }
.chain__ts { color: rgba(236, 232, 224, .62); }
.chain__ev { color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain__det input { width: 100%; height: 28px; padding: 0; border: 0; border-bottom: 1px solid rgba(236, 232, 224, .16); border-radius: 0; background: transparent; font-family: var(--mono); font-size: 12.5px; color: rgba(236, 232, 224, .78); outline: none; transition: border-color .2s; }
.chain__det input:hover { border-bottom-color: rgba(236, 232, 224, .62); }
.chain__det input:focus-visible, .chain__det input:focus { border-bottom-color: var(--paper); color: var(--paper); }
.chain__a { margin-left: 6px; }
.chain__b { margin-left: 18px; }
.chain__flag { position: absolute; left: 0; top: calc(100% + 3px); visibility: hidden; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--paper); padding: 0 5px; }
.chain__row { position: relative; }
.chain__row.is-changed .chain__flag { visibility: visible; }
.chain__row.is-changed .chain__n { background: var(--paper); color: var(--ink); }
.chain__svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.chain__link { stroke: rgba(236, 232, 224, .55); stroke-width: 1; }
.chain__node { fill: rgba(236, 232, 224, .8); }
.chain__node.is-broken { fill: var(--ink); stroke: var(--paper); stroke-width: 1; }
.chain__link.is-broken { stroke: var(--paper); }
.chain__x { fill: none; stroke: var(--paper); stroke-width: 1; }
.chain__state { min-height: 18px; margin-top: var(--s4); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--paper); }
.chain__restore { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(236, 232, 224, .62); }
.chain__restore:hover { text-decoration-color: var(--paper); }
.chain__restore[hidden] { display: none; }

/* 06 · a normal week: the band, then the four days routed to their stories */
.ch--week { padding: calc(var(--vh) * 0.22) var(--gr) calc(var(--vh) * 0.24) var(--pad); }
.week__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 64px; align-items: end; }
.week__head .lede { margin: 0; padding-bottom: 8px; }
.band { position: relative; height: clamp(320px, 44vh, 440px); margin-top: var(--s7); }
.band__canvas { position: absolute; left: 0; top: 0; }
.band__labels { position: absolute; inset: 0; pointer-events: none; }
.band__day { position: absolute; top: 0; display: flex; align-items: baseline; gap: 8px; font-family: var(--pixel); font-weight: 800; font-size: 17px; line-height: 20px; text-transform: uppercase; color: var(--ink); }
.band__day i { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 10.5px; letter-spacing: .08em; color: var(--stone); }
.band__h { position: absolute; left: 0; font-family: var(--mono); font-size: 10px; line-height: 12px; letter-spacing: .06em; color: var(--stone); }
.week__svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.week__mark { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.week__col { fill: none; stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; opacity: 0; transition: opacity .2s; }
.week__col.is-on { opacity: 1; }
.week__lead { fill: none; stroke: rgb(var(--ink-rgb) / .5); stroke-width: 1; shape-rendering: crispEdges; transition: stroke .2s; }
.week__lead--quiet { stroke-dasharray: 1 3; }
.week__lead.is-on { stroke: var(--ink); }
.week__end { fill: var(--ink); }
.week__ring { fill: none; stroke: rgb(var(--ink-rgb) / .55); stroke-width: 1; }
.ch--week.has-on .week__lead:not(.is-on) { stroke: rgb(var(--ink-rgb) / .16); }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; margin-top: 108px; }
.day { position: relative; }
.day__d { font-family: var(--pixel); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.day__h { margin-top: var(--s3); font-family: var(--display); font-weight: 400; font-stretch: 104%; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.08; letter-spacing: -0.022em; }
.day__p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.day .link { display: inline-block; margin-top: 14px; }



/* 02 · where rules can live: the compact comparison, ink */
.ch--cmp { padding: calc(var(--vh) * 0.2) var(--gr) calc(var(--vh) * 0.22) var(--pad); }
.cmp-head { max-width: 620px; margin-bottom: var(--s7); }
.ch--cmp .h2 { font-size: clamp(36px, 3.5vw, 54px); }
.cmp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-top: var(--s5); }
.cmp-foot .note { margin-top: 0; }

/* 07 · where each rule stops: quiet */
.ch--edges { min-height: calc(var(--vh) * 1.1); padding-top: calc(var(--vh) * 0.34); }
.ch--edges .body { max-width: 500px; font-size: 18px; }
.ch--edges .links { flex-direction: column; gap: 12px; }

/* 08 · the close */
.close { position: relative; min-height: calc(var(--vh) * 1.15); padding: calc(var(--vh) * 0.3) 0 calc(var(--vh) * 0.2) var(--pad); width: calc(var(--seam) - 48px); }
.close .col { max-width: 520px; }


/* ---------- reduced motion: the plates are drawn once, in their final state ---------- */
.is-still .cap__lead, .is-still .cap__l--last, .is-still .cap__l--ref { transition: none; }

/* ---------- mid widths: the plates keep the index gutter, the line chapter stacks ---------- */
@media (max-width: 1180px) and (min-width: 760px) {
  :root { --gr: 128px; }
  .ch--line { grid-template-columns: minmax(0, 1fr); }
  .sbx { grid-column: 1; grid-row: 2; margin-top: var(--s6); }
  .ch--line .file { grid-row: 3; }
  .ch--sign { grid-template-columns: minmax(0, 1fr); row-gap: var(--s7); }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
}



/* ---------- phones: the line moves to the right edge; the text takes the column beside it ---------- */
@media (max-width: 759px) {
  :root { --pad: 20px; }
  .hero { min-height: 640px; }
  .nav { grid-template-columns: 1fr auto; padding: 0 16px; height: 60px; }
  .index, .nav__cta { display: none; }
  .nav__links { gap: 14px; font-size: 12.5px; justify-self: end; }
  .nav__logo img { height: 21px; }
  .hero__copy { left: 16px; right: 16px; top: 84px; width: auto; }
  .eyebrow { font-size: 10.5px; margin-bottom: 14px; }
  .h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .sub { margin-top: 14px; font-size: 15px; max-width: 330px; }
  .cta { margin-top: 18px; }
  .cta .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .verbs { left: 16px; bottom: 22px; }
  .verbs button { font-size: 10px; letter-spacing: .26em; line-height: 15px; }
  .hud__hint { display: none; }
  .hud__count > span:first-child { font-size: 16px; }
  .hud__l { font-size: 9px; }
  .hud__count { left: 12px; top: 8px; }

  .bar { width: 100%; height: 54px; padding: 0 16px 0 20px; justify-content: space-between; }
  .ch, .close { width: calc(var(--seam-ch) - 64px); }
  :root { --gr: 16px; }
  .statement { margin: 0 16px; font-size: clamp(44px, 14vw, 64px); }
  .ch--reads { padding: calc(var(--vh) * 0.16) 0 calc(var(--vh) * 0.14); }
  .aside { margin: var(--s5) 16px 0; font-size: 15.5px; max-width: none; }
  .h2 { font-size: clamp(32px, 9vw, 40px); }
  .h2--big { font-size: clamp(48px, 13vw, 58px); }
  .body, .lede { font-size: 16px; }
  .ch--line { display: block; padding: calc(var(--vh) * 0.14) 16px calc(var(--vh) * 0.16); }
  .ch--cmp { padding: calc(var(--vh) * 0.14) 16px calc(var(--vh) * 0.16); }
  .sbx { margin-top: var(--s6); min-height: 0; }
  .sbx__what { font-size: 12.5px; }
  .sbx__name { font-size: 10px; letter-spacing: .18em; }
  .sbx__ports button { grid-template-columns: 24px 1fr; }
  .sbx__tag { font-size: 9.5px; letter-spacing: .16em; }
  .sbx__tag i { font-size: 10.5px; }
  .ch--line .file { margin-top: var(--s6); }
  .ch--cap { min-height: 0; background: var(--paper); }
  .cap__text { width: auto; padding: calc(var(--vh) * 0.14) 16px var(--s6); }
  .cap__text .body { font-size: 16.5px; }
  .cap__panel { position: relative; left: auto; right: auto; height: max(520px, calc(var(--vh) * 0.7)); background: var(--ink); }
  .ch--sign { display: block; padding: calc(var(--vh) * 0.14) 16px calc(var(--vh) * 0.16); }
  .chain { margin-top: var(--s6); }
  .chain__cap { font-size: 9.5px; letter-spacing: .12em; }
  .chain__cap { display: grid; gap: 2px; }
  .chain__cap span + span::before { content: none; }
  .chain__rows { gap: 16px; }
  .chain__row { grid-template-columns: 24px minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; font-size: 11.5px; line-height: 16px; }
  .chain__n { grid-row: 1 / span 2; align-self: start; font-size: 12px; }
  .chain__ts { display: none; }
  .chain__ev { grid-column: 2; grid-row: 1; }
  .chain__det { grid-column: 2; grid-row: 2; }
  .chain__det input { height: 24px; font-size: 11.5px; }
  .chain__a { grid-column: 3; grid-row: 1 / span 2; margin-left: 0; }
  .chain__b { grid-column: 4; grid-row: 1 / span 2; margin-left: 10px; }
  .chain__flag { right: auto; left: 0; top: -14px; font-size: 9px; }
  .ch--week { padding: calc(var(--vh) * 0.14) 16px calc(var(--vh) * 0.16); }
  .week__head { display: block; }
  .week__head .lede { margin-top: var(--s3); }
  .band { height: 300px; margin-top: var(--s6); }
  .band__day { flex-direction: column; gap: 2px; font-size: 12px; line-height: 13px; }
  .band__day i { font-size: 9.5px; }
  .band__h { font-size: 9px; }
  .days { display: block; margin-top: var(--s6); }
  .day + .day { margin-top: var(--s6); }
  .day__d { font-size: 26px; }
  .row { grid-template-columns: 1fr; }
  .row__verb { grid-row: auto; margin-bottom: 10px; }
  .row__verb b { display: inline; margin-right: 12px; }
  .row__h, .row__p, .row .link { grid-column: 1; }
  .row::after { left: auto; width: 40px; right: -64px; top: 80px; }
  .row::before { right: -69px; top: 76px; }
  .close { padding-top: calc(var(--vh) * 0.16); min-height: calc(var(--vh) * 1.05); }
  .form { flex-direction: column; }
  .form .btn { align-self: flex-start; }
}

/* ---------- the hero, v2 (site-v5-live build): headline, one sentence, the release form, one small line, a link ---------- */
.hero__copy { top: clamp(118px, 20vh, 200px); }
.hero__copy .sub { margin-top: 26px; max-width: 440px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.hero__copy .form--hero { position: relative; margin-top: 36px; max-width: 420px; }
.form--hero input[type=email] { flex: 1 1 160px; }
/* a Turnstile challenge, when one is shown, opens beside the button: nothing under the form moves */
.hero__copy .form--hero .cf-turnstile-slot { position: absolute; left: calc(100% + 20px); top: 0; }
/* one small line: the consent line; the status line above it is empty (0 high) until the form is used */
.hero__copy .form__msg { margin-top: 12px; font-size: 11.5px; text-wrap: balance; }
.hero__copy .form__msg:empty { margin-top: 0; }
.hero__copy .form__msg:not(:empty) + .form__msg { margin-top: 2px; }
.hero__copy .form__msg a { display: inline-block; }
.hero__copy .cta { margin-top: 30px; }
@media (max-width: 759px) {
  .hero__copy { top: 92px; }
  .hero__copy .h1 { font-size: min(44px, calc((100vw - 32px) / 9.8)); }   /* "The agent runs inside." stays on one line */
  .hero__copy .sub { margin-top: 18px; max-width: none; font-size: 16px; line-height: 1.5; }
  /* field and button stacked, full width, easy to tap; 16px text so a phone doesn't zoom into the field */
  .hero__copy .form--hero { flex-direction: column; flex-wrap: nowrap; gap: 10px; margin-top: 28px; max-width: none; }
  .hero__copy .form--hero input[type=email] { flex: none; height: 48px; font-size: 16px; }
  .hero__copy .form--hero .btn { align-self: stretch; height: 48px; font-size: 15px; }
  /* the Turnstile row is kept (0 high) from the start, so rendering the invisible widget moves nothing */
  .hero__copy .form--hero .cf-turnstile-slot { position: static; flex: none; }
  .hero__copy .form--hero .cf-turnstile-slot:empty { display: block; }
  .hero__copy .form__msg { margin-top: 4px; font-size: 11px; }
  .hero__copy .cta { margin-top: 22px; }
  .verbs { display: none; }
}

/* the hero's control tips: a longer line (05 Sign) wraps in the room right of the line instead of running off the page */
.tip { white-space: normal; max-width: min(320px, calc(100vw - var(--seam) - 44px)); }
.tip b { flex: none; white-space: nowrap; }
@media (max-width: 759px) { .tip { max-width: calc(100vw - 24px); } }

/* ==========================================================================
   phones (site-v5-live): the home page. The globe lives only in the hero, in its own slot below the copy, in the
   page's flow (js/scene.js draws there and stops once it's off screen). The chapters that showed the scene on the
   desktop are plain paper here, full width, at the same rhythm as the rest.
   ========================================================================== */
.hero__globe { display: none; }
@media (max-width: 759px) {
  .scene, .lines, .hud { position: absolute; }   /* js/scene.js sets their top: over the hero's globe slot */
  .hero { height: auto; min-height: 0; max-height: none; }
  .nav { height: 60px; padding: 0 10px 0 20px; }
  .nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .nav__links { gap: 2px; font-size: 13px; }
  .nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .hero__copy { position: relative; top: auto; left: auto; right: auto; width: auto; padding: 96px 20px 0; }
  .hero__copy .h1 { font-size: min(44px, calc((100vw - 40px) / 9.8)); }
  .hero__globe { display: block; height: min(104vw, 470px); margin-top: 16px; }
  .hud__count { left: 12px; }
  .hud__l { font-size: 11px; letter-spacing: .12em; }   /* the counter stays on screen beside the line */

  /* every chapter: 20px sides and one rhythm */
  .ch, .close { width: auto; padding-left: 20px; padding-right: 20px; }
  .ch--reads { padding-top: 72px; padding-bottom: 72px; }
  .statement { margin: 0 20px; }
  .aside { margin: var(--s5) 20px 0; }
  .ch--line, .ch--cmp, .ch--sign, .ch--week { padding: 80px 20px 72px; }
  .cap__text { padding: 80px 20px var(--s6); }

  /* the chapters that sat on the scene */
  .ch--limits { padding-top: 80px; padding-bottom: 72px; }
  .rows { margin-top: 28px; }
  .row { padding: 28px 0 0; }
  .row + .row { margin-top: 28px; border-top: 1px solid rgb(var(--ink-rgb) / .16); }
  .row::before, .row::after { display: none; }
  .row__h { font-size: 26px; }
  .row__p { font-size: 16.5px; }
  .ch--edges { min-height: 0; padding-top: 80px; padding-bottom: 72px; }
  .ch--edges .body { font-size: 16.5px; }
  .close { min-height: 0; padding-top: 80px; padding-bottom: 96px; }
  .close .col { max-width: none; }
  .h2--big { font-size: clamp(44px, 12.4vw, 56px); }

  /* the plates: in the flow, a fixed size (they draw once to their box), labels at 11px, 44px targets */
  .cap__panel { height: 540px; }
  .cap__l { font-size: 11px; }
  .sbx__name, .sbx__tag, .sbx__tag i { font-size: 11px; }
  .sbx__ports button { min-height: 44px; }
  .chain__cap { font-size: 11px; }
  .chain__det input { height: 44px; font-size: 12px; }
  .band__h { font-size: 11px; }
}

/* ==========================================================================
   phone-design (prototype, 2026-10-31): the home designed for a phone (≤ 759px). Every rule below is inside the phone
   query, except the first line, which hides the phone-only elements on a desktop (they take no room there).
   Rhythm: paper hero → ink statement → paper line → ink comparison → paper controls (the globe again) → paper cap
   into an ink ledger and record → paper week → ink edges → paper close (the globe whole again) → footer.
   ========================================================================== */
.slot, .pager { display: none; }
@media (max-width: 759px) {
  /* the scene's slots: one size, full bleed, no text on them; js/scene.js moves its one canvas to the one on screen */
  .hero__globe, .slot { height: min(104vw, 470px); }
  .slot { display: block; margin-left: -20px; margin-right: -20px; }
  .lines { overflow: hidden; }   /* the hairlines stay inside their slot */
  .slot { position: relative; }
  canvas.edge--in-top { top: 0; }
  canvas.edge--in-bottom { bottom: 0; }

  /* 01 · the statement, light on ink */
  .ch--reads { background: var(--ink); color: var(--paper); padding-top: 112px; padding-bottom: 104px; }
  .ch--reads .statement { color: var(--paper); }
  .ch--reads .aside { color: rgba(236, 232, 224, .74); border-top-color: rgba(236, 232, 224, .4); }

  /* 02 · the line */
  .ch--line { padding-top: 104px; }

  /* 02 · where rules can live: one approach at a time; the four drawings are the switch */
  .ch--cmp { padding-top: 104px; padding-bottom: 96px; }
  .cmp thead tr { gap: 8px 12px; }
  .cmp thead .cmp__q { margin-bottom: 10px; }
  .cmp thead .cmp__col { position: relative; padding: 14px 0 12px; border-top: 1px solid rgba(236, 232, 224, .3); -webkit-tap-highlight-color: transparent; transition: opacity .2s; }
  .cmp[data-sel] thead .cmp__col { cursor: pointer; }
  .cmp[data-sel] thead .cmp__col[aria-pressed="false"] { opacity: .42; }
  .cmp[data-sel] thead .cmp__col[aria-pressed="true"] { border-top: 2px solid var(--paper); padding-top: 13px; }
  .cmp[data-sel] thead .cmp__col[aria-pressed="true"] .cmp__name { color: var(--paper); }
  .cmp[data-sel="prompt"] tbody td:not([data-k="prompt"]), .cmp[data-sel="library"] tbody td:not([data-k="library"]),
  .cmp[data-sel="gateway"] tbody td:not([data-k="gateway"]), .cmp[data-sel="constle"] tbody td:not([data-k="constle"]) { display: none; }
  .cmp[data-sel] td[data-l]::before { content: none; }
  .cmp[data-sel] tbody tr { padding: 22px 0 6px; border-top: 1px solid rgba(236, 232, 224, .22); }
  .cmp[data-sel] tbody tr:first-child { margin-top: 18px; border-top-color: var(--paper); }
  .cmp[data-sel] tbody th { padding-bottom: 12px; }
  .cmp[data-sel] tbody td { padding: 0 0 18px; border-bottom: 0; font-size: 15.5px; line-height: 1.55; }
  .cmp[data-sel] .cmp__lane { height: 7px; margin-bottom: 12px; }
  .cmp-foot { margin-top: var(--s4); }

  /* 03 · its limits: the globe with the line and its five nodes, then the controls as a strip, one to a screen */
  .ch--limits { padding-top: 112px; padding-bottom: 40px; }
  .ch--limits .slot { margin-top: 20px; }
  .rows { display: flex; gap: 16px; margin: 8px -20px 0; padding: 0 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .rows::-webkit-scrollbar { display: none; }
  .rows::after { content: ''; flex: 0 0 14px; }   /* room for the last control to sit on the page's margin too */
  .row, .row + .row { flex: 0 0 calc(100% - 30px); margin-top: 0; padding: 26px 0 6px; border-top: 1px solid var(--ink); scroll-snap-align: start; }
  .row::before { display: block; right: -4px; top: -5px; }
  .row::after { display: none; }
  .row > * { transition: opacity .3s; }
  .rows .row:not(.is-on) > :not(.row__verb) { opacity: .12; }   /* the next control shows its number; its text comes with it */
  .rows .row:not(.is-on) .row__verb { opacity: .5; }
  .row__verb { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; line-height: 20px; }
  .row__verb b { display: block; margin: 0; font-size: 44px; line-height: 36px; letter-spacing: .02em; color: var(--ink); }
  .row__h { font-size: 27px; }
  .pager { display: flex; gap: 2px; margin-top: 12px; margin-left: -10px; }
  .pager button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
  .pager span { padding: 0 3px; line-height: 17px; }
  .pager [aria-current="true"] span { background: var(--ink); color: var(--paper); }

  /* 04 · cap: the text on paper, then the ledger on ink, joined by a dithered edge */
  .cap__text { padding: 72px 20px 88px; }
  .cap__panel { height: 440px; }
  .ch--sign { padding-top: 64px; }

  /* 06 · a normal week: a row per day (js/plates.js), then the four stories, each marked like its moment on the plate */
  .ch--week { padding-top: 104px; }
  .band { height: auto; margin-top: 40px; }
  .band__day--row { flex-direction: row; font-size: 13px; line-height: 16px; }
  .band__h--x { top: 0; }
  .days { margin-top: 56px; }
  .day { padding-top: 22px; border-top: 1px solid rgb(var(--ink-rgb) / .5); }
  .day + .day { margin-top: 56px; }
  .day__d { display: flex; align-items: center; justify-content: space-between; font-size: 34px; }
  .day[data-day="0"] .day__d::after, .day[data-day="1"] .day__d::after, .day[data-day="2"] .day__d::after {
    content: ''; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .55);
    background: linear-gradient(var(--signal), var(--signal)) center / 6px 6px no-repeat; }
  .day[data-day="3"] .day__d::after { content: ''; width: 18px; height: 1px; margin-right: 0; background: var(--ink); }

  /* 07 · where each rule stops: ink, a quiet beat between the week and the close */
  .ch--edges { background: var(--ink); color: var(--paper); padding-top: 112px; padding-bottom: 104px; }
  .ch--edges .h2 { color: var(--paper); }
  .ch--edges .body { color: rgba(236, 232, 224, .74); }
  .ch--edges code { color: var(--paper); }
  .ch--edges .link { color: var(--paper); text-decoration-color: rgba(236, 232, 224, .62); }
  .ch--edges :focus-visible, .ch--reads :focus-visible { outline-color: var(--paper); }

  /* 08 · the close: the form, then the globe whole again, dissolving into the footer */
  .close { padding-bottom: 0; }
  .close .slot { margin-top: 56px; }

  /* the dark theme: the phone's ink chapters take the raised dark, like the plates */
  :root[data-theme="dark"] :is(.ch--reads, .ch--edges) { --paper: #F3F0E8; --ink: #1B1A18; --ink-rgb: 27 26 24; --ink-2: #3A3631; --node: #F6F4EE; }
}
@media (max-width: 759px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) :is(.ch--reads, .ch--edges) { --paper: #F3F0E8; --ink: #1B1A18; --ink-rgb: 27 26 24; --ink-2: #3A3631; --node: #F6F4EE; }
}
