/* MONADOCORE home-v7 — editorial archive around an embedded PSX world.
   Pass 5: hero copy (title / subtitle / note) on the left, four index chapters on one 12-column grid, About as a closing signature page. */
:root {
  --bg: #0e0e10;
  --bg-2: #131316;
  --bg-3: #19191d;
  --ink: #ece9e2;
  --ink-2: #c9c6bf;
  --muted: #8e939c;
  --line: rgba(236, 233, 226, 0.12);
  --line-2: rgba(236, 233, 226, 0.06);
  --crimson: #a3192a;
  --crimson-2: #d0283a;
  --cyan: #4fd8ff;
  --font-sans: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --window-radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 17px; line-height: 1.5; background: var(--bg); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: var(--crimson); color: #fff; padding: 8px 12px; }
::selection { background: var(--crimson); color: #fff; }

/* ------------------------------------------------------------- header: wordmark left, navigation right, no container */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--gutter);
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.site-head::before { content: ""; position: absolute; inset: 0; height: 140%; background: linear-gradient(to bottom, rgba(14,14,16,0.92) 0%, rgba(14,14,16,0.6) 55%, rgba(14,14,16,0) 100%); opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: -1; }
.site-head.is-scrolled::before { opacity: 1; }
.wordmark { font-weight: 700; letter-spacing: 0.28em; font-size: 13px; color: var(--ink); }
.site-nav { display: flex; gap: 34px; }
.site-nav a { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); position: relative; padding: 4px 0; transition: color 0.3s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--crimson-2); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }

/* ------------------------------------------------------------- hero: identity left, the world embedded right
   The world is not a card: a 60 vw × 78 vh region whose left edge dissolves into the page (strong), top/bottom softly,
   right edge nearly open. The mask sits on the wrapper so canvas, halation and CRT fade together. */
.hero { position: relative; min-height: 100vh; background: var(--bg); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 40% 50% at 62% 50%, rgba(120, 128, 140, 0.08) 0%, rgba(120, 128, 140, 0.03) 45%, rgba(14, 14, 16, 0) 72%);
}
.hero-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; will-change: opacity, transform;
  /* five of the page's twelve columns — the safe editorial region left of the world (the region begins at 40 vw; its first 12 % is ≤ 10 % visible) */
  width: min(calc((100vw - 2 * var(--gutter) - 11 * var(--col-gap)) / 12 * 5 + 4 * var(--col-gap)), 560px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 0; align-items: start; }
/* level 1 — the wordmark: the hero's anchor, one line, sized to the five columns */
.hero-word { grid-column: 1 / 6; margin: 0; font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 4.7rem); line-height: 0.95; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }
.hero-word span { display: inline-block; }
/* level 2 — the secondary title: two lines, medium-large, subordinate */
.headline { grid-column: 1 / 6; margin-top: 26px; font-weight: 500; font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.hl-line { display: block; white-space: nowrap; }
.hl-line:nth-child(2) { color: var(--ink-2); }
/* level 3 — first supporting copy: four columns, two balanced sentences */
.hero-sub { grid-column: 1 / 5; margin-top: 34px; color: var(--ink-2); font-size: clamp(0.98rem, 1.18vw, 1.1rem); line-height: 1.5; }
.hero-sub span { display: block; text-wrap: balance; }
.hero-sub span + span { margin-top: 9px; }
/* level 4 — the note: one column in, smaller and softer, so the block has an editorial step rather than a stack */
.hero-note { grid-column: 2 / 6; margin-top: 24px; color: var(--muted); font-size: clamp(0.84rem, 0.95vw, 0.92rem); line-height: 1.65; text-wrap: balance; }
/* entrance: the wordmark resolves (tracking settles while it fades in), the title follows, the copy quieter, the cue last */
.hero-word span, .hl-line, .hero-sub, .hero-note, .scroll-cue { opacity: 0; transform: translateY(10px); animation: hero-in 1.0s var(--ease) forwards; }
.hero-word span { transform: none; letter-spacing: 0.09em; animation: hero-word 1.2s var(--ease) 0.05s forwards; }
.hl-line:nth-child(1) { animation-delay: 0.45s; } .hl-line:nth-child(2) { animation-delay: 0.57s; }
.hero-sub { animation-delay: 0.8s; } .hero-note { animation-delay: 1.0s; } .scroll-cue { animation-delay: 1.2s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes hero-word { to { opacity: 1; letter-spacing: 0.02em; } }
.scroll-cue { grid-column: 1 / 3; display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(36px, 6vh, 60px); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); transition: opacity 0.3s; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(to bottom, var(--muted), transparent); animation: cue 3.2s var(--ease) infinite; }
.scroll-cue:hover span { color: var(--ink-2); }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

.hero-window {
  position: absolute; right: 0; top: 0; height: 100vh; width: 60vw; z-index: 2;
  --ml: 34%;                                  /* where the left dissolve completes; the exit choreography pushes it right */
  will-change: opacity, transform;
  -webkit-mask-image:
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) calc(var(--ml) * 0.36), rgba(0,0,0,0.55) calc(var(--ml) * 0.7), #000 var(--ml), #000 96%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 5%, #000 11%, #000 88%, rgba(0,0,0,0.7) 95%, rgba(0,0,0,0) 100%);
  mask-image:
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) calc(var(--ml) * 0.36), rgba(0,0,0,0.55) calc(var(--ml) * 0.7), #000 var(--ml), #000 96%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 5%, #000 11%, #000 88%, rgba(0,0,0,0.7) 95%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-world { position: absolute; inset: 0; background: #000; }
/* the monitor: a hair of blur knits nearest-neighbour pixels together, contrast deepens the blacks, saturation keeps the emissives alive */
#hero-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges;
  filter: blur(0.45px) contrast(1.07) saturate(1.10) brightness(1.02); }
/* halation: bright pixels bleed softly into their neighbours (blurred copy of what is behind, screened on top) */
.halo { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  -webkit-backdrop-filter: blur(7px) saturate(1.25) brightness(1.15); backdrop-filter: blur(7px) saturate(1.25) brightness(1.15);
  mix-blend-mode: screen; opacity: 0.28;
  background: rgba(0,0,0,0);
}
/* CRT structure: scanlines every 4 px, RGB aperture grille every 3 px, a mild screen vignette. Sony monitor, not a filter plugin. */
.crt { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.30) 0px, rgba(0, 0, 0, 0.30) 1px, rgba(0, 0, 0, 0.08) 1px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 4px),
    repeating-linear-gradient(to right, rgba(255, 60, 60, 0.07) 0px, rgba(255, 60, 60, 0.07) 1px, rgba(60, 255, 100, 0.07) 1px, rgba(60, 255, 100, 0.07) 2px, rgba(70, 100, 255, 0.07) 2px, rgba(70, 100, 255, 0.07) 3px),
    radial-gradient(ellipse 84% 92% at 54% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.34) 100%);
  mix-blend-mode: multiply; opacity: 0.92;
}
.hero-boot { position: absolute; left: 38%; bottom: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: pre; background: rgba(14,14,16,0.6); padding: 8px 10px; z-index: 3; }
.hero-boot.is-error { color: #ff8a93; }
/* world-state readout: development only (?debug=1); visitors experience the transitions, they are not told about them */
.hero-debug { position: absolute; right: 14px; top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--cyan); background: rgba(14,14,16,0.55); padding: 6px 8px; z-index: 3; }

/* ------------------------------------------------------------- chapters — one 12-column editorial grid, four compositions
   Column rhythm: 12 columns, gutter --col-gap, page margin --gutter. Everything (marks, titles, copy, visuals, micro-lines,
   textures) sits on these columns; a few elements break out on purpose (the tree trunk, the rear note sheets). */
:root { --col-gap: clamp(16px, 1.8vw, 28px); --bg-projects: #0b0b0d; --bg-tools: #151519; --bg-blog: #0a0a0c; --bg-about: #10100f; }
main { position: relative; z-index: 1; background: var(--bg); }
.chapter { position: relative; overflow: hidden; padding: clamp(72px, 10vh, 128px) var(--gutter) clamp(80px, 11vh, 140px); border-top: 1px solid var(--line-2);
  background: linear-gradient(to bottom, var(--bg-prev, var(--bg)) 0, var(--bg-sec, var(--bg)) 180px, var(--bg-sec, var(--bg)) 100%); }
.projects { --bg-prev: var(--bg); --bg-sec: var(--bg-projects); }
.tools { --bg-prev: var(--bg-projects); --bg-sec: var(--bg-tools); }
.blog { --bg-prev: var(--bg-tools); --bg-sec: var(--bg-blog); }
.about { --bg-prev: var(--bg-blog); --bg-sec: var(--bg-about); }
.grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 0; align-items: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* texture: the second depth layer — ink linework at a few percent, drawn to the same margins */
.tex { position: absolute; inset: 0; pointer-events: none; color: var(--ink); opacity: 0.05; will-change: transform; }
.tex svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.tex--tools { opacity: 0.06; }
.tex--blog { opacity: 0.045; }
.tex--about { opacity: 0.045; }

/* chapter mark */
.ch-mark { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(28px, 4vh, 48px); opacity: 0; transition: opacity 0.6s var(--ease); }
.in .ch-mark { opacity: 1; }
.ch-idx { color: var(--crimson-2); }
.ch-rule { display: block; height: 1px; width: 0; background: var(--line); transition: width 1.0s var(--ease) 0.1s; }
.in .ch-rule { width: 64px; }
.ch-mark--right { justify-content: flex-end; }

/* large titles: dominant editorial objects, each with its own arrival */
.ch-title { font-size: clamp(3.5rem, 7vw, 6.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.92; margin: 0 0 30px; position: relative; color: var(--ink); }
.ct-clip { display: block; overflow: hidden; }
.ct-word { display: block; }
/* 01 Projects — rises out of a clip while a structural rule grows underneath */
.ch-title--projects .ct-word { transform: translateY(104%); transition: transform 0.9s var(--ease) 0.25s; }
.in .ch-title--projects .ct-word { transform: none; }
.ct-rule { position: absolute; left: 0; bottom: -14px; height: 1px; width: 0; background: var(--ink-2); opacity: 0.6; transition: width 1.1s var(--ease) 0.55s; }
.in .ch-title--projects .ct-rule { width: 100%; }
/* 02 Tools — clips in horizontally, then a calibration tick locks beside it */
.ch-title--tools { width: fit-content; }   /* the calibration tick locks beside the word, not at the column edge */
.ch-title--tools .ct-clip { clip-path: inset(0 100% 0 0); transition: clip-path 0.85s cubic-bezier(0.6, 0.05, 0.2, 1) 0.2s; }
.in .ch-title--tools .ct-clip { clip-path: inset(0 0 0 0); }
.ct-cal { position: absolute; right: -22px; top: 14%; height: 72%; width: 1px; background: var(--crimson-2); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease) 1.05s; }
.ct-cal::before, .ct-cal::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--crimson-2); }
.ct-cal::before { top: 0; } .ct-cal::after { bottom: 0; }
.in .ch-title--tools .ct-cal { transform: none; }
/* 03 Blog — letters arrive in reading order from a slight crop, then a wipe line passes under */
.ct-letters { display: inline-block; white-space: nowrap; }
.ct-letters span { display: inline-block; opacity: 0; transform: translateY(0.22em); clip-path: inset(0 0 40% 0); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), clip-path 0.7s var(--ease); }
.in .ct-letters span { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.in .ct-letters span:nth-child(1) { transition-delay: 0.2s; } .in .ct-letters span:nth-child(2) { transition-delay: 0.32s; } .in .ct-letters span:nth-child(3) { transition-delay: 0.44s; } .in .ct-letters span:nth-child(4) { transition-delay: 0.56s; }
.ct-wipe { position: absolute; left: 0; bottom: -12px; height: 1px; width: 38%; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.8s; }
.in .ch-title--blog .ct-wipe { transform: none; }
/* 04 About — resolves from a wide tracking state as thin guides appear */
.ct-track { display: inline-block; letter-spacing: 0.28em; opacity: 0; transition: letter-spacing 1.3s var(--ease) 0.2s, opacity 0.9s var(--ease) 0.2s; }
.in .ct-track { letter-spacing: -0.04em; opacity: 1; }
.ct-guide { position: absolute; background: var(--line); opacity: 0; transition: opacity 0.6s var(--ease) 1.2s, transform 0.9s var(--ease) 1.2s; }
.ct-guide--v { left: -22px; top: -10px; width: 1px; height: calc(100% + 20px); transform: scaleY(0); transform-origin: top; }
.ct-guide--h { left: -22px; bottom: -10px; height: 1px; width: 52%; transform: scaleX(0); transform-origin: left; }
.in .ct-guide { opacity: 1; transform: none; }

/* copy blocks */
.ch-lede { font-size: clamp(1.15rem, 1.55vw, 1.45rem); color: var(--ink); line-height: 1.35; margin-bottom: 18px; letter-spacing: -0.01em; }
.ch-body { color: var(--ink-2); margin-bottom: 14px; font-size: 1rem; line-height: 1.55; text-wrap: balance; }   /* no one-word last lines */
.ch-copy { display: grid; gap: 4px; }
.ch-body .bal { display: block; text-wrap: balance; }   /* a sentence after a forced break balances on its own */
.link-arrow { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); position: relative; padding-bottom: 4px; }
.link-arrow::after { content: "→"; margin-left: 10px; color: var(--crimson-2); display: inline-block; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.ch-lede, .ch-copy, .link-arrow { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.in .ch-lede { opacity: 1; transform: none; transition-delay: 0.55s; }
.in .ch-copy { opacity: 1; transform: none; transition-delay: 0.7s; }
.in .link-arrow { opacity: 1; transform: none; transition-delay: 0.9s; }
.micro { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.8s var(--ease) 2.4s; }
.in .micro { opacity: 1; }
.micro-idx { color: var(--ink-2); }

/* ---- 01 Projects grid: mark 1–3 · title 1–6 · lede 1–4 · copy 2–5 (one column in, for tension) · link 2 · tree 7–12 rows 2–5 · micro 7–12 */
.projects .g-mark { grid-column: 1 / 4; grid-row: 1; }
.projects .g-title { grid-column: 1 / 7; grid-row: 2; }
.projects .g-lede { grid-column: 1 / 5; grid-row: 3; }
.projects .g-copy { grid-column: 2 / 6; grid-row: 4; }
.projects .g-link { grid-column: 2 / 5; grid-row: 5; align-self: start; }
.projects .g-visual { grid-column: 7 / 13; grid-row: 1 / 6; justify-self: stretch; align-self: start; margin-top: -8px; }
.projects .g-micro { grid-column: 7 / 13; grid-row: 6; margin-top: 8px; }
.tree { position: relative; margin: 0; width: 100%; height: 560px; font-family: var(--font-mono); }
.tree-svg { position: absolute; left: 0; top: 0; width: 700px; height: 560px; overflow: visible; }
.tr-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 560; stroke-dashoffset: 560; transition: stroke-dashoffset 1.3s var(--ease); }
.tr-line--trunk { stroke: rgba(236, 233, 226, 0.22); }
.tr-line--tail, .tr-line--long { stroke: rgba(236, 233, 226, 0.14); }
.in .tr-line--trunk { stroke-dashoffset: 0; transition-delay: 0.9s; }
.in .tr-line--trunk2 { stroke-dashoffset: 0; transition-delay: 1.05s; transition-duration: 1.6s; }
.in .tr-line--b1 { stroke-dashoffset: 0; transition-delay: 1.2s; } .in .tr-line--b2 { stroke-dashoffset: 0; transition-delay: 1.45s; } .in .tr-line--b3 { stroke-dashoffset: 0; transition-delay: 1.7s; } .in .tr-line--b4 { stroke-dashoffset: 0; transition-delay: 1.95s; }
.in .tr-line--s1 { stroke-dashoffset: 0; transition-delay: 1.4s; } .in .tr-line--s2 { stroke-dashoffset: 0; transition-delay: 1.65s; } .in .tr-line--s3 { stroke-dashoffset: 0; transition-delay: 1.9s; } .in .tr-line--s4 { stroke-dashoffset: 0; transition-delay: 2.15s; }
.in .tr-line--long { stroke-dashoffset: 0; transition-delay: 1.3s; transition-duration: 1.8s; }
.in .tr-line--tail { stroke-dashoffset: 0; transition-delay: 2.4s; }
.tree-nodes { list-style: none; position: absolute; left: 0; top: 0; width: 700px; height: 560px; }
.tn { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap;
  opacity: 0; transform: translateX(-12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(0.95s + var(--d, 0) * 0.17s); }
.in .tn { opacity: 1; transform: none; }
.tn--root { color: var(--ink); font-weight: 500; font-size: 14px; }
.tn--leaf { color: var(--muted); }
.tn-folder { display: inline-block; width: 18px; height: 12px; border: 1px solid var(--ink-2); border-radius: 1px; position: relative; }
.tn-folder::before { content: ""; position: absolute; left: -1px; top: -4px; width: 8px; height: 3px; border: 1px solid var(--ink-2); border-bottom: 0; border-radius: 1px 1px 0 0; }
.tn--root .tn-folder, .tn--root .tn-folder::before { border-color: var(--crimson-2); }
.tn-file { display: inline-block; width: 11px; height: 14px; border: 1px solid var(--muted); border-radius: 1px; position: relative; }
.tn-file::after { content: ""; position: absolute; right: -1px; top: -1px; width: 4px; height: 4px; background: var(--bg-projects); border-left: 1px solid var(--muted); border-bottom: 1px solid var(--muted); }
.tn-bars { display: inline-flex; gap: 6px; align-items: center; }
.tn-bars i { display: block; height: 4px; width: var(--w); background: var(--muted); opacity: 0.45; border-radius: 1px; }
.tn--wip .tn-bars i { opacity: 0.25; }
.tn-state { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-left: 6px; padding-left: 12px; position: relative; opacity: 0; transition: opacity 0.5s var(--ease); }
.tn-state::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--muted); }
.tn-state--live::before { background: var(--cyan); box-shadow: 0 0 8px rgba(79, 216, 255, 0.5); }
.tn-state--wip::before { background: var(--crimson-2); }
.in .tn-state { opacity: 1; transition-delay: 2.5s; }
.in .tn-state--wip::before { animation: blink 1.6s steps(2) 2.7s infinite; }
@keyframes blink { to { opacity: 0.25; } }

/* ---- 02 Tools grid: apparatus 1–7 rows 1–5 · mark 10–12 (right) · title 8–12 · lede 8–11 · copy 9–12 · link 9 · micro 1–7 */
.tools .g-mark-r { grid-column: 9 / 13; grid-row: 1; }
.tools .g-title-r { grid-column: 8 / 13; grid-row: 2; }
.tools .g-lede-r { grid-column: 8 / 12; grid-row: 3; }
.tools .g-copy-r { grid-column: 9 / 13; grid-row: 4; }
.tools .g-link-r { grid-column: 9 / 12; grid-row: 5; }
.tools .g-visual-l { grid-column: 1 / 8; grid-row: 1 / 6; align-self: center; margin-top: 24px; }
.tools .g-micro-l { grid-column: 1 / 8; grid-row: 6; margin-top: 22px; }
.pipe { position: relative; margin: 0; display: grid; grid-template-columns: 1fr 220px 1fr; grid-template-rows: auto; gap: 0 22px; align-items: center; font-family: var(--font-mono); width: 100%; padding-bottom: 26px; }
.pipe-stage { position: relative; border: 1px solid var(--line); padding: 20px 22px 26px; background: rgba(14, 14, 16, 0.65); display: grid; gap: 12px; align-content: start; min-height: 232px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.pipe-stage::before { content: ""; position: absolute; left: 12px; right: 12px; top: -5px; height: 4px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pipe-stage::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -5px; height: 4px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.in .pipe-in { opacity: 1; transform: none; transition-delay: 0.95s; }
.in .pipe-out { opacity: 1; transform: none; transition-delay: 2.7s; }
.in .pipe-out.pipe-out { border-color: rgba(79, 216, 255, 0.45); box-shadow: inset 0 0 0 1px rgba(79, 216, 255, 0.08), 0 0 40px -18px rgba(79, 216, 255, 0.35); transition-delay: 3.55s; }
.pipe-tag { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pipe-meta { letter-spacing: 0.14em; color: var(--muted); opacity: 0.8; }
.pipe-done { color: var(--cyan); opacity: 0; transition: opacity 0.5s var(--ease); }
.in .pipe-done { opacity: 1; transition-delay: 3.65s; }
.pl { display: block; height: 6px; border-radius: 1px; background: var(--ink-2); opacity: 0.55; transform-origin: left; transform: scaleX(0); transition: transform 0.55s var(--ease); }
.pl--1 { width: 82%; } .pl--2 { width: 64%; } .pl--3 { width: 91%; } .pl--4 { width: 40%; } .pl--5 { width: 70%; } .pl--6 { width: 56%; }
.in .pl--1 { transform: none; transition-delay: 1.1s; } .in .pl--2 { transform: none; transition-delay: 1.17s; } .in .pl--3 { transform: none; transition-delay: 1.24s; } .in .pl--4 { transform: none; transition-delay: 1.31s; } .in .pl--5 { transform: none; transition-delay: 1.38s; } .in .pl--6 { transform: none; transition-delay: 1.45s; }
.pl--o1 { width: 86%; background: var(--cyan); opacity: 0.8; } .pl--o2 { width: 58%; background: var(--cyan); opacity: 0.6; } .pl--o3 { width: 74%; background: var(--cyan); opacity: 0.7; } .pl--o4 { width: 47%; background: var(--cyan); opacity: 0.5; }
.in .pl--o1 { transform: none; transition-delay: 2.9s; } .in .pl--o2 { transform: none; transition-delay: 3.05s; } .in .pl--o3 { transform: none; transition-delay: 3.2s; } .in .pl--o4 { transform: none; transition-delay: 3.35s; }
.pipe-run { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center; justify-items: center; column-gap: 8px; row-gap: 10px; opacity: 0; transition: opacity 0.6s var(--ease) 1.5s; }
.in .pipe-run { opacity: 1; }
.pipe-track { position: relative; display: block; width: 100%; height: 14px; }
.pipe-ticks { position: absolute; left: 0; right: 0; top: 4px; height: 6px; background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 8px); opacity: 0.8; }
.pipe-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink-2); opacity: 0.55; transform-origin: left; transform: scaleX(0); transition: transform 0.7s var(--ease); }
.in .pipe-track--in .pipe-line { transform: none; transition-delay: 1.6s; }
.in .pipe-track--out .pipe-line { transform: none; transition-delay: 2.75s; }
.pipe-dot { position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--crimson-2); box-shadow: 0 0 10px rgba(208, 40, 58, 0.6); opacity: 0; }
.in .pipe-dot { animation: pipe-run 1.0s var(--ease) 1.75s forwards; }
@keyframes pipe-run { 0% { opacity: 1; transform: translateX(-4px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(100% + 60px)); } }
.pipe-node { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.pipe-core { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pipe-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.in .pipe-core { background: var(--cyan); box-shadow: 0 0 12px rgba(79, 216, 255, 0.6); transition-delay: 2.65s; }
.in .pipe-ring { animation: pulse 0.9s var(--ease) 2.6s 2; }
@keyframes pulse { 0% { transform: scale(1); border-color: var(--line); } 50% { transform: scale(1.5); border-color: rgba(79, 216, 255, 0.7); } 100% { transform: scale(1); border-color: var(--line); } }
.pipe-op { grid-column: 1 / -1; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.pipe-scale { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; display: flex; justify-content: space-between; opacity: 0; transition: opacity 0.6s var(--ease) 1.2s; }
.pipe-scale i { display: block; width: 1px; height: 100%; background: var(--line); }
.pipe-scale i:nth-child(odd) { height: 60%; align-self: flex-end; }
.in .pipe-scale { opacity: 1; }

/* ---- 03 Blog grid: mark 1–3 · title 1–7 · lede 1–4 · copy A 1–3 · copy B 4–7 · link 1 · notes 7–13 rows 1–6 (rear sheets cropped at the right edge) · micro 1–6 */
.blog .g-mark { grid-column: 1 / 4; grid-row: 1; }
.blog .g-title-wide { grid-column: 1 / 8; grid-row: 2; }
.blog .g-lede-blog { grid-column: 1 / 5; grid-row: 3; }
.blog .g-copy-blog-a { grid-column: 1 / 4; grid-row: 4; }
.blog .g-copy-blog-b { grid-column: 4 / 8; grid-row: 4; }
.blog .g-link-blog { grid-column: 1 / 4; grid-row: 5; }
.blog .g-visual-notes { grid-column: 8 / 13; grid-row: 1 / 6; align-self: start; margin-top: -24px; }
.blog .g-micro-blog { grid-column: 1 / 7; grid-row: 6; margin-top: 26px; }
.notes { position: relative; margin: 0; height: 520px; width: 100%; font-family: var(--font-mono); }
.note { position: absolute; padding: 20px 22px 22px; background: rgba(19, 19, 22, 0.92); border: 1px solid var(--line); display: grid; gap: 12px;
  opacity: 0; transform: translate(26px, 40px) rotate(0deg); transition: opacity 0.8s var(--ease), transform 0.95s var(--ease); }
.note--1 { left: 0; right: 36px; top: 150px; z-index: 3; padding: 24px 28px 26px; box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.95); }
.note--2 { left: 72px; right: -60px; top: 70px; z-index: 2; }
.note--3 { left: 150px; right: -140px; top: 0; z-index: 1; }
.in .note--3 { opacity: 0.4; transform: rotate(-1.6deg); transition-delay: 0.9s; }
.in .note--2 { opacity: 0.66; transform: rotate(0.9deg); transition-delay: 1.15s; }
.in .note--1 { opacity: 1; transform: none; transition-delay: 1.4s; }
.note-head { display: block; height: 10px; }
.nh { display: block; height: 10px; background: var(--ink); opacity: 0.85; border-radius: 1px; transform-origin: left; transform: scaleX(0); transition: transform 0.7s var(--ease); }
.nh--w55 { width: 55%; }
.in .note--1 .nh { transform: none; transition-delay: 1.7s; }
.note-stamp { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.note-time { color: var(--ink-2); }
.nl { display: block; height: 5px; background: var(--ink-2); opacity: 0.35; border-radius: 1px; transform-origin: left; transform: scaleX(0); transition: transform 0.6s var(--ease); }
.nl--w35 { width: 35%; } .nl--w40 { width: 40%; } .nl--w50 { width: 50%; } .nl--w60 { width: 60%; } .nl--w62 { width: 62%; } .nl--w65 { width: 65%; } .nl--w70 { width: 70%; } .nl--w72 { width: 72%; } .nl--w75 { width: 75%; } .nl--w80 { width: 80%; } .nl--w85 { width: 85%; } .nl--w90 { width: 90%; }
.in .nl { transform: none; }
.in .note--3 .nl { transition-delay: 1.15s; } .in .note--2 .nl { transition-delay: 1.4s; }
.in .note--1 .nl:nth-of-type(1) { transition-delay: 1.85s; } .in .note--1 .nl:nth-of-type(2) { transition-delay: 1.97s; } .in .note--1 .nl:nth-of-type(3) { transition-delay: 2.09s; } .in .note--1 .nl:nth-of-type(4) { transition-delay: 2.21s; }
.in .note--1 .nl--revise { transition-delay: 2.33s; animation: revise 0.7s var(--ease) 2.95s forwards; }
@keyframes revise { 0% { transform: scaleX(1); } 45% { transform: scaleX(1); opacity: 0.35; } 60% { opacity: 0.12; } 100% { transform: scaleX(0.68); opacity: 0.35; } }
.in .note--1 .nl:nth-of-type(6) { transition-delay: 2.45s; }
.note-line { display: flex; align-items: center; gap: 6px; }
.nl--inline { display: inline-block; }
.in .note--1 .nl--inline { transition-delay: 2.6s; }
.caret { display: inline-block; width: 7px; height: 12px; background: var(--ink); opacity: 0; }
.in .caret { animation: caret 1.1s steps(2) 2.95s infinite; }
@keyframes caret { 0% { opacity: 1; } 100% { opacity: 0; } }
.note-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); opacity: 0; transition: opacity 0.6s var(--ease) 3.3s; }
.in .note-foot { opacity: 1; }
.note-tags { color: var(--crimson-2); letter-spacing: 0.16em; }
.note-meta { color: var(--muted); }
.note-annot { position: absolute; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); opacity: 0; transition: opacity 0.6s var(--ease) 3.1s; }
/* replay: Blog's entrance delays must not become exit delays. When the chapter is cleared (returning to the hero, or > 50 vh away)
   every animated child snaps back to its pre-entry state at once, so a brisk return re-runs the whole sequence — letters, wipe,
   sheets, lines, revision, caret, tags, annotations, micro-line. (The sequence itself is unchanged.) */
.blog:not(.in) .ct-letters span, .blog:not(.in) .ct-wipe, .blog:not(.in) .note, .blog:not(.in) .nh, .blog:not(.in) .nl, .blog:not(.in) .note-foot, .blog:not(.in) .note-annot, .blog:not(.in) .micro,
.blog:not(.in) .ch-mark, .blog:not(.in) .ch-rule, .blog:not(.in) .ch-lede, .blog:not(.in) .ch-copy, .blog:not(.in) .link-arrow { transition-duration: 0s; transition-delay: 0s; }
.note-annot--1 { left: -26px; top: 232px; color: var(--crimson-2); }
.note-annot--2 { left: -34px; top: 300px; text-transform: uppercase; font-size: 10px; }
.in .note-annot { opacity: 0.9; }

/* ---- 04 About grid: mark 1–3 · title 1–6 · lede 1–6 · body 1–5 · link 1 · core 6–13 rows 1–5
   The left five columns carry the copy; the right seven hold the core — projects, tools, ideas and systems converging on one
   identity: a small nucleus, two thin rings, four converging lines, a few nodes, one axis. Large footprint, small active centre. */
.about .g-mark { grid-column: 1 / 4; grid-row: 1; }
.about .g-title-about { grid-column: 1 / 6; grid-row: 2; }
.about .g-about-lede { grid-column: 1 / 6; grid-row: 3; }
.about .g-about-copy { grid-column: 1 / 5; grid-row: 4; }
.about .g-about-copy .ch-body { max-width: 36ch; }
.about .g-about-link { grid-column: 1 / 4; grid-row: 5; align-self: start; }
.about .g-core { grid-column: 6 / 13; grid-row: 1 / 6; align-self: start; margin-top: 4px; }
.about .ch-lede { transition-delay: 0s; }
.in .about .ch-lede { transition-delay: 1.25s; } .in .about .ch-copy { transition-delay: 1.4s; } .in .about .link-arrow { transition-delay: 1.6s; }
.core { position: relative; margin: 0; width: 100%; height: 480px; font-family: var(--font-mono); color: var(--ink); }
.core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* registration marks at the field's corners — the only surrounding texture; they arrive first */
.core-reg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--line); opacity: 0; transition: opacity 0.8s var(--ease) 1.0s; }
.core-reg path { vector-effect: non-scaling-stroke; }
.in .core-reg { opacity: 1; }
.id-words { list-style: none; position: absolute; left: 0; top: 24px; display: grid; gap: 7px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.id-words li { opacity: 0; transform: translateY(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.id-words li:first-child { color: var(--ink); }
.in .id-words li { opacity: 1; transform: none; }
.in .id-words li:nth-child(1) { transition-delay: 1.45s; } .in .id-words li:nth-child(2) { transition-delay: 1.57s; } .in .id-words li:nth-child(3) { transition-delay: 1.69s; }
/* the final chapter marker, quiet, inside the figure — no rule, no second footer */
.id-end { position: absolute; right: 0; bottom: 22px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.6s var(--ease) 3.2s; }
.in .id-end { opacity: 0.8; }

/* ------------------------------------------------------------- footer: one quiet colophon line on the grid — no wordmark, no navigation */
.site-foot { padding: 26px var(--gutter) 30px; border-top: 1px solid var(--line-2); opacity: 0; transition: opacity 0.9s var(--ease) 0.1s; }
.site-foot.in { opacity: 1; }
.g-colophon { grid-column: 1 / 13; margin: 0; }
.colophon { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.9; color: var(--muted); }
.colophon .col-a { color: var(--ink-2); }
.colophon .col-c { opacity: 0.85; }
.colophon .col-sep { margin: 0 0.6em; color: var(--muted); opacity: 0.55; }   /* the fullwidth bar is the divider — typographic, not a rule */

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero-copy { width: min(42vw, 520px); }
  .hero-window { width: 64vw; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-head { padding: 18px var(--gutter); }
  .hero { min-height: auto; height: auto; padding-bottom: 8vh; }
  .hero-copy { position: relative; left: 0; top: 0; transform: none; width: auto; padding: 92px var(--gutter) 0; }
  .hero-copy { display: block; width: auto; }
  .hero-word { font-size: clamp(1.9rem, 9.6vw, 3rem); white-space: normal; }
  .headline { margin-top: 18px; font-size: clamp(1.3rem, 5.6vw, 1.8rem); }
  .hl-line { white-space: normal; }
  .hero-sub { margin-top: 18px; }
  .hero-note { margin-top: 14px; }
  .scroll-cue { display: none; }
  .hero-window { position: relative; right: auto; top: auto; width: 100vw; height: 52vh; margin-top: 28px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 12%, #000 80%, rgba(0,0,0,0) 100%), linear-gradient(to right, rgba(0,0,0,0.2) 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 12%, #000 80%, rgba(0,0,0,0) 100%), linear-gradient(to right, rgba(0,0,0,0.2) 0%, #000 12%, #000 100%); }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; letter-spacing: 0.04em; }
  .chapter { padding: 64px var(--gutter) 72px; }
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; margin-top: 0 !important; }
  .ch-title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .ch-mark--right { justify-content: flex-start; }
  .projects .g-visual { order: 8; width: 100%; height: 330px; }
  .tree { transform: scale(0.56); transform-origin: top left; }
  .tools .g-visual-l { order: 8; width: 100%; }
  .pipe { grid-template-columns: 1fr; gap: 14px; }
  .pipe-stage { min-height: 0; }
  .blog .g-visual-notes { order: 8; width: 100%; height: 400px; margin-top: 12px !important; }
  .note--2 { left: 40px; right: 0; } .note--3 { left: 80px; right: 0; } .note--1 { right: 20px; }
  .note-annot { display: none; }
  .about .g-core { order: 8; width: 100%; height: 300px; margin-top: 28px !important; }
  .core { height: 300px; }
  .id-words { top: 0; }
  .id-end { bottom: 0; }
  .micro { order: 9; }
  .tex { opacity: 0.04; }
  .colophon .col-sep { display: none; }
  .colophon span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ch-mark, .ch-lede, .ch-copy, .link-arrow, .hero-word span, .hl-line, .hero-sub, .hero-note, .scroll-cue, .id-words li, .id-end, .core-reg, .site-foot, .micro, .tn, .tn-state, .pipe-stage, .pipe-run, .pipe-scale, .pipe-done, .note, .note-foot, .note-annot, .ct-word, .ct-clip, .ct-letters span, .ct-track, .ct-guide, .ct-rule, .ct-cal, .ct-wipe { opacity: 1 !important; transform: none !important; transition: none !important; clip-path: none !important; letter-spacing: inherit; }
  .ct-rule { width: 100% !important; } .ct-track { letter-spacing: -0.04em !important; }
  .hero-word span, .hl-line, .hero-sub, .hero-note, .scroll-cue { animation: none !important; letter-spacing: 0.02em; }
  .hl-line, .hero-sub, .hero-note, .scroll-cue { letter-spacing: inherit; }
  .note--3 { opacity: 0.42 !important; } .note--2 { opacity: 0.68 !important; }
  .pipe-line, .nh { transform: none !important; transition: none !important; }
  .pipe-ring { animation: none !important; }
  .tex { transform: none !important; }
  .tr-line { stroke-dashoffset: 0 !important; transition: none !important; }
  .pl, .nl { transform: none !important; transition: none !important; }
  .pipe-dot { animation: none !important; opacity: 0; }
  .nl--revise { animation: none !important; transform: scaleX(0.68) !important; }
  .scroll-cue i, .tn-state--wip::before, .caret { animation: none !important; }
  .hero-window, .hero-copy { opacity: 1 !important; }
  .caret { opacity: 1; }
}

/* QA: ?qa=1 renders every chapter in its settled state without transitions or delays (headless captures) */
body.qa-static *, body.qa-static *::before, body.qa-static *::after { transition: none !important; animation-duration: 0.01s !important; animation-delay: 0s !important; }
body.qa-static .pipe-dot { opacity: 0; }
body.qa-static .ct-track { letter-spacing: -0.04em; }
body.qa-static .hero-word span { letter-spacing: 0.02em; }
body.qa-static .nl--revise { transform: scaleX(0.68); }
body.qa-static .pipe-ring { animation: none; }
body.qa-flat .hero { min-height: 900px; height: 900px; }
body.qa-flat .hero-window { top: 0; height: 900px; }

/* ---- mobile hierarchy (≤ 820 px): the Tools apparatus and the Blog note sheets support the copy instead of competing with it —
   narrower, shorter, quieter; the section titles, copy and CTAs are untouched. Desktop rules above are not changed. ---- */
@media (max-width: 820px) {
  /* Tools: the apparatus */
  .tools .g-visual-l { width: 86%; margin-top: 10px !important; }
  .pipe { gap: 10px; padding-bottom: 20px; }
  .pipe-stage { padding: 12px 14px 15px; gap: 8px; min-height: 0; border-color: var(--line-2); }
  .pipe-tag { font-size: 9px; letter-spacing: 0.18em; margin-bottom: 4px; }
  .pl { height: 4px; opacity: 0.42; }
  .in .pipe-out.pipe-out { border-color: rgba(79, 216, 255, 0.3); box-shadow: inset 0 0 0 1px rgba(79, 216, 255, 0.05), 0 0 28px -18px rgba(79, 216, 255, 0.22); }
  .pipe-run { row-gap: 6px; }
  .pipe-op { font-size: 9px; letter-spacing: 0.2em; }
  .ct-cal { right: -14px; top: 22%; height: 56%; opacity: 0.85; }
  /* Blog: the note sheets */
  .blog .g-visual-notes { width: 90%; height: 322px; margin-top: 8px !important; }
  .note { padding: 13px 15px 15px; gap: 9px; }
  .note--1 { padding: 15px 17px 17px; top: 116px; right: 10px; }
  .note--2 { top: 54px; left: 34px; } .note--3 { left: 68px; }
  .note-stamp { font-size: 8.5px; letter-spacing: 0.16em; opacity: 0.85; }
  .nh { height: 8px; } .nl { height: 4px; opacity: 0.3; }
  .in .note--3 { opacity: 0.3; } .in .note--2 { opacity: 0.52; }
  .note-foot { font-size: 8.5px; letter-spacing: 0.14em; margin-top: 4px; padding-top: 8px; }
  .note-tags { letter-spacing: 0.12em; }
  /* both: the index-like closing line steps back one level */
  .tools .micro, .blog .micro { font-size: 10px; letter-spacing: 0.12em; }
  .in .tools .micro, .in .blog .micro, .tools.in .micro, .blog.in .micro { opacity: 0.78; }
}
