/* Privacy notice and terms: one document beside one held drawing, in the KairoFx type and colours. */
@font-face { font-family: "Anybody"; src: url("assets/fonts/anybody.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("assets/fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
:root {
  --bg: #0C0D12; --fg: #E8E9ED; --body: rgba(232, 233, 237, .86); --mute: rgba(232, 233, 237, .62); --line: rgba(232, 233, 237, .16);
  --pink: #EC85D1; --violet: #A028D4; --sky: #1CA7DE;
  --grad: linear-gradient(120deg, var(--pink), var(--violet) 52%, var(--sky));
  --pad: clamp(18px, 3vw, 40px); --vb: 26px; --f-display: "Anybody", "Arial Narrow", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; -webkit-touch-callout: none; }
body { font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 88%; font-size: clamp(16px, .55vw + 10px, 18.5px); line-height: 1.72; -webkit-font-smoothing: antialiased; overflow-x: clip;
  background: radial-gradient(70vw 70vh at 88% 0, rgba(160, 40, 212, .2), transparent 70%), radial-gradient(50vw 50vh at 0 42%, rgba(236, 133, 209, .07), transparent 70%), radial-gradient(60vw 60vh at 10% 100%, rgba(28, 167, 222, .12), transparent 70%); }
a { color: var(--fg); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--pink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--pink); color: #0C0D12; }
canvas, svg, img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.skip { position: fixed; z-index: 30; left: 12px; top: -60px; padding: 10px 14px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 12px; }
.verbar { position: fixed; z-index: 20; inset: 0 0 auto; height: var(--vb); display: flex; align-items: center; justify-content: center; background: var(--bg); border-bottom: 1px solid var(--line); color: var(--mute); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.top { position: absolute; z-index: 5; left: 0; right: 0; top: var(--vb); display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 21px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.brand span { color: var(--pink); }
.back { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- opening: three planes. The ghost word, the dust, and the headline in front */
.hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; padding: calc(110px + var(--vb)) var(--pad) clamp(36px, 7vh, 72px); display: flex; flex-direction: column; justify-content: flex-end; overflow: clip; }
.ghost { position: absolute; z-index: -1; left: -.04em; top: calc(8vh + var(--vb)); font-family: var(--f-display); font-weight: 900; font-stretch: 58%; text-transform: uppercase; font-size: 40vw; line-height: .8; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(232, 233, 237, .17); will-change: transform; }
.label { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
h1 { font-family: var(--f-display); font-weight: 900; font-stretch: 58%; text-transform: uppercase; font-size: clamp(54px, min(11vw, 19vh), 190px); line-height: .86; letter-spacing: -.01em; margin: 16px 0 28px; max-width: 13ch; text-wrap: balance; will-change: transform; }
.lede { color: var(--fg); font-size: clamp(17px, 1.1vw + 4px, 21px); line-height: 1.55; max-width: 56ch; text-wrap: pretty; }

/* ---------- the spread: held drawing on the left, the words on the right */
.spread { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: clamp(36px, 6vw, 110px); max-width: 1560px; margin: 0 auto; padding: 0 var(--pad); }
.side { position: sticky; top: 28px; align-self: start; }
.stage { display: none; position: relative; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
html.staged .side { top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: calc(22px + var(--vb)) 0 24px; gap: 18px; }
html.staged .stage { display: block; flex: 1; min-height: 0; }
html.staged .sec .fig { display: none; }

.index { list-style: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; columns: 2; column-gap: 24px; }
.index li { break-inside: avoid; }
.index a { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--mute); text-decoration: none; }
.index a::before { content: ""; flex: none; width: 10px; height: 2px; border-radius: 2px; background: var(--line); transition: width .25s, background .25s; }
.index a:hover, .index a[aria-current] { color: var(--fg); }
.index a[aria-current]::before { width: 22px; background: var(--pink); }

.sec { position: relative; padding: clamp(40px, 7vh, 72px) 0 clamp(44px, 8vh, 90px); scroll-margin-top: calc(14px + var(--vb)); }
.sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.sec::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform: scaleX(var(--read, 0)); transform-origin: 0 50%; }
html.staged .sec { min-height: 84vh; }
html.staged .sec--peak { min-height: 210vh; }
html.staged .sec--peak .sec__text { position: sticky; top: 16vh; }
h2 { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(38px, 4.4vw, 76px); line-height: .92; letter-spacing: -.005em; margin-bottom: 20px; text-wrap: balance; }
.sec p { color: var(--body); max-width: 60ch; text-wrap: pretty; }

/* ---------- the drawings */
.fig { margin: 0 0 24px; }
.fig svg { display: block; width: 100%; height: auto; max-width: 520px; }
svg .l, .stage svg * { vector-effect: non-scaling-stroke; }
.drawing { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.drawing .h { stroke: var(--pink); }
.drawing .s { stroke: var(--sky); }
.drawing .v { stroke: #B65AE6; }
.drawing .m { stroke: rgba(232, 233, 237, .38); }
.drawing .d { stroke-dasharray: 5 6; }
.drawing .b { stroke-width: 2.2; }
.drawing text { fill: var(--fg); stroke: none; font-family: "Martian Mono", ui-monospace, monospace; font-stretch: 88%; font-size: 15px; letter-spacing: .02em; }
.drawing text.mu { fill: rgba(232, 233, 237, .62); }
.drawing text.hi { fill: var(--pink); }
.drawing text.big { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: 44px; text-transform: uppercase; letter-spacing: 0; }
.drawing .fill { stroke-dasharray: 1; }
.drawing .solid { fill: var(--bg); }

/* ---------- the close */
.close { position: relative; z-index: 1; padding: clamp(70px, 16vh, 170px) var(--pad) clamp(40px, 7vh, 70px); }
.close__mail { display: inline-block; font-family: var(--f-display); font-weight: 900; font-stretch: 58%; font-size: clamp(44px, 12.4vw, 230px); line-height: .9; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.close__links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.close__links a { min-height: 44px; display: inline-flex; align-items: center; }
footer { position: relative; z-index: 1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding: 18px var(--pad) 34px; border-top: 1px solid var(--line); margin: 0; }
footer a { color: var(--mute); display: inline-block; padding: 8px 0; }

/* ---------- narrower screens: drawing sits inside each chapter, above its words */
@media (max-width: 999px) {
  .spread { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 720px; }
  .side { position: static; margin-bottom: 26px; }
  .index { font-size: 12px; columns: 1; }
  .index a { min-height: 44px; }
  .ghost { top: calc(88px + var(--vb)); font-size: 62vw; }
  .sec { scroll-margin-top: var(--vb); }
  h1 { font-size: clamp(50px, 15.5vw, 110px); }
  .fig svg { max-width: 460px; margin: 0 auto; }
  .drawing text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ghost, h1 { will-change: auto; }
  a, .index a::before { transition: none; }
}
@media print {
  html, body { background: #fff; color: #000; }
  .dust, .ghost, .fig, .side, .top, .close, .skip, .verbar { display: none !important; }
  .spread { display: block; padding: 0; margin: 0; max-width: none; }
  .hero { min-height: 0; padding: 0 0 12pt; }
  h1 { font-size: 30pt; color: #000; max-width: none; }
  h2 { font-size: 16pt; color: #000; }
  .lede, .sec p, footer, a { color: #000; font-size: 10pt; }
  .sec, html.staged .sec, html.staged .sec--peak { min-height: 0; padding: 10pt 0; break-inside: avoid; }
  .sec::before, .sec::after { display: none; }
  html.staged .sec--peak .sec__text { position: static; }
}
