/* Harebrainer studio site, "Blueprint" direction (picked by the user 2026-11-03).
   The page is a set of drawing sheets: a faint grid, hairlines, mono annotations, the mark as a construction
   drawing that draws itself in. Tokens, base type, cursor and reveals come from taste-kit (kit/css). */
:root { --gutter: var(--k-space-gutter); --cell: 24px; --grid: rgba(255, 255, 255, .035); }
html { scroll-padding-top: 80px; }
body { overflow-x: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: -1px -1px; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); transition: background var(--k-dur-slow), box-shadow var(--k-dur-slow), padding var(--k-dur-slow) var(--k-ease-out); }
.top.is-stuck { background: color-mix(in srgb, var(--k-ground) 86%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--k-line); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand svg { width: 30px; height: 30px; color: var(--k-accent); }
.top nav { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px); font-size: 15px; }
.top nav a { color: var(--k-ink-2); display: inline-flex; align-items: baseline; gap: 5px; }
.top nav a:hover, .top nav a.is-on { color: var(--k-ink); }
.top nav a.is-on { background-size: 100% 1px; background-image: linear-gradient(var(--k-accent), var(--k-accent)); }
.nav-l { font: 500 10px/1 var(--k-font-mono); letter-spacing: .08em; color: var(--k-ink-3); }
.top nav a.is-on .nav-l { color: var(--k-accent); }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 12px/1 var(--k-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); }
.menu-btn i { width: 18px; height: 7px; border-block: 1px solid currentColor; transition: transform var(--k-dur-base) var(--k-ease-out); }
.top.is-open .menu-btn i { transform: scaleY(0); }

/* ---------- hero: copy left, drawing right ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 110px var(--gutter) 96px; }
.hero-eyebrow { margin: 0 0 24px; }
.word { font-size: clamp(56px, 9.2vw, 160px); font-weight: 800; line-height: .85; letter-spacing: -.05em; margin: 0; white-space: nowrap; }
.w-solid { color: var(--k-ink); }
.w-wire { letter-spacing: -.02em; margin-left: .02em; }
.tag { font: 15px/1.6 var(--k-font-mono); color: var(--k-ink-2); max-width: 44ch; margin: 28px 0 32px; }
.tag b { color: var(--k-accent); font-weight: 500; }
.hero-copy > * { animation: rise 1s var(--k-ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .9s; } .hero-copy > :nth-child(4) { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.titleblock { position: absolute; right: var(--gutter); bottom: 28px; margin: 0; display: grid; gap: 4px; text-align: right;
  font: 11px/1.4 var(--k-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--k-ink-3);
  border-top: 1px solid var(--k-line-hi); padding-top: 10px; }

/* ---------- the drawing (home hero and work pages) ---------- */
.stage { position: relative; color: var(--k-accent); width: min(100%, 560px); justify-self: center; touch-action: pan-y; padding: 6% 9% 9% 7%; }
.stage .hb-mark { width: 100%; height: auto; display: block; overflow: visible; }
.stage .bp { position: absolute; left: 7%; top: 6%; width: 84%; height: auto; overflow: visible; pointer-events: none; }
.bp path, .bp line, .bp circle { stroke-width: .16; stroke-linecap: round; }
.bp-l { stroke: var(--k-ink-3); }
.bp-faint { stroke: var(--k-line-hi); }
.bp-seam { stroke: var(--k-accent); stroke-dasharray: 1 .8; stroke-width: .18; }
.bp-guide { stroke: var(--k-ink-3); stroke-dasharray: .5 .7; }
.bp-pt { fill: var(--k-accent); stroke: none; }
.bp-t { font: 500 1.55px var(--k-font-mono); fill: var(--k-ink-3); letter-spacing: .04px; }
.bp-hot { fill: var(--k-accent); }
.bp-cursor { opacity: 0; transition: opacity var(--k-dur-base); }
.bp-cross { stroke: var(--k-accent-hi); stroke-width: .14; }
.stage.is-live .bp-cursor { opacity: 1; }

/* draw-in: the mark's wire half traces itself, the solid half fills after, then the annotations */
.stage .hb-solid { opacity: 0; transition: opacity 1s var(--k-ease-out) 1.5s; }
.stage .hb-wire .hb-edge, .stage .hb-wire .hb-trace { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.stage.is-drawn .hb-solid { opacity: 1; }
.stage.is-drawn .hb-wire .hb-edge { animation: draw 1.4s var(--k-ease-in-out) .2s forwards; }
.stage.is-drawn .hb-wire .hb-trace { animation: draw 1s var(--k-ease-out) 1.4s forwards; }
.bp path.bp-l { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.bp > :not(.bp-cursor), .bp-seam-g > * { opacity: 0; }
.stage.is-drawn .bp > :not(.bp-cursor), .stage.is-drawn .bp-seam-g > * { animation: fade .5s ease-out calc(1.6s + var(--d, 0s)) forwards; }
.stage.is-drawn .bp path.bp-l { animation: draw .8s var(--k-ease-out) calc(1.6s + var(--d, 0s)) forwards, fade .2s ease-out calc(1.6s + var(--d, 0s)) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- sections ---------- */
.work, .contact { padding: var(--k-space-section) var(--gutter) 0; }
section h2 { margin: 0 0 40px; }
.count { color: var(--k-accent); }

/* a draft piece or an empty section: one reserved sheet with a dashed plate */
.tile-drafting .tile-img { border: 1px dashed var(--k-line-hi); }
.drafting-plate { display: grid; place-content: center; gap: 10px; height: 100%; text-align: center;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, .025) 10px 11px); }
.drafting-word { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; color: var(--k-ground); -webkit-text-stroke: 1px var(--k-ink-3); paint-order: stroke fill; }
.tile-drafting .tile-made a { color: var(--k-accent); }

/* home: the full studio view, one group per tab */
.group + .group { margin-top: clamp(56px, 7vw, 96px); }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--k-line-hi);
  font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.group-head > a:first-child { text-decoration: none; display: inline-flex; align-items: baseline; gap: 12px; }
.group-head > a:first-child:hover { color: var(--k-accent); }
.group-head .nav-l { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.group-head .count { font: 500 11px/1 var(--k-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.group-open { margin-left: auto; font: 500 12px/1 var(--k-font-mono); letter-spacing: .08em; color: var(--k-ink-2); }

/* /<tab>/ pages */
.tp { padding: clamp(120px, 14vw, 180px) var(--gutter) 0; }
.tp-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.tp-head h1 { font-size: var(--k-size-mega); font-weight: 800; letter-spacing: -.05em; line-height: .86; margin: 18px 0 20px; }
.tp-index { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; font: 12px/1.4 var(--k-font-mono); letter-spacing: .06em; color: var(--k-ink-2); }
.tp-sec + .tp-sec { margin-top: clamp(56px, 7vw, 96px); }
.tp-sec { scroll-margin-top: 90px; }

/* tiles are drawing sheets: header strip, corner ticks, plate in grey until you look at it */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 3vw, 48px) clamp(16px, 2.5vw, 32px); }
.tile { text-decoration: none; display: block; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 8px; margin: 0 0 10px; border-bottom: 1px solid var(--k-line-hi);
  font: 11px/1 var(--k-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--k-ink-3); transition: color var(--k-dur-base), border-color var(--k-dur-base); }
.tile:hover .sheet-head { color: var(--k-accent); border-color: var(--k-accent); }
.tile-img { display: block; position: relative; aspect-ratio: 16 / 10; padding: 10px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) brightness(.55) contrast(1.15);
  transition: filter .6s var(--k-ease-out); }
.tile:hover .tile-img img, .tile:focus-visible .tile-img img { filter: none; }
.ticks { position: absolute; inset: 0; pointer-events: none; --c: var(--k-ink-3);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 14px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 14px,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 14px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 14px;
  background-repeat: no-repeat; transition: inset var(--k-dur-base) var(--k-ease-out); }
.tile:hover .ticks { --c: var(--k-accent); inset: 4px; }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 0; }
.tile-name { font-weight: 600; font-size: 22px; letter-spacing: -.015em; transition: color var(--k-dur-base); }
.tile:hover .tile-name { color: var(--k-accent); }
.tile-kind { color: var(--k-ink-3); font-size: 14px; text-align: right; }
.tile-made { display: block; padding: 8px 2px 0; font: 12px/1.5 var(--k-font-mono); color: var(--k-ink-3); }

/* contact */
.contact-line { font-size: var(--k-size-h1); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin: 0 0 40px; max-width: 14ch; }
.gold { color: var(--k-accent); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.mail { font: clamp(16px, 2vw, 22px)/1.4 var(--k-font-mono); color: var(--k-ink); background-size: 100% 1px; }
.mail:hover { color: var(--k-accent-hi); }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: clamp(96px, 14vw, 200px) var(--gutter) 40px; font-size: 13px; color: var(--k-ink-3); }
.foot .hb-badge { color: var(--k-accent); }
.foot-build { font: 11px/1 var(--k-font-mono); letter-spacing: .06em; opacity: .55; }
.foot .k-sound { margin-left: auto; }

/* ---------- /work/<id>/ ---------- */
.wp { padding: clamp(110px, 12vw, 160px) var(--gutter) 0; }
.wp-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.wp-mark { width: min(100%, 480px); justify-self: center; }
.wp-mark .stage { width: 100%; }
.wp h1 { font-size: var(--k-size-h1); font-weight: 800; letter-spacing: -.045em; line-height: .92; margin: 16px 0 20px; }
.wp .lede { margin: 0 0 32px; }
.facts { margin: 0 0 36px; border-top: 1px solid var(--k-line-hi); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--k-line); }
.facts dt { font: 11px/2 var(--k-font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--k-ink-3); }
.facts dd { margin: 0; }
.facts a { color: var(--k-accent); }
.facts .k-mono { font-size: 14px; }
.wp-shot { margin: clamp(48px, 6vw, 88px) 0 0; padding: 12px; position: relative; box-shadow: inset 0 0 0 1px var(--k-line-hi); }
.wp-shot img { width: 100%; display: block; }
.wp-shot figcaption, .scope-plot figcaption { font: 11px/1 var(--k-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--k-ink-3); padding-top: 10px; }
.pill { display: inline-block; font: 500 11px/1 var(--k-font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px 4px;
  border: 1px solid var(--k-line-hi); color: var(--k-ink-2); }
.pill.is-live { border-color: var(--k-accent); color: var(--k-accent); }
.wp-actions { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: clamp(48px, 6vw, 80px) 0 0; font: 12px/1.4 var(--k-font-mono); letter-spacing: .06em; }
.wp-actions button { background: none; border: 0; padding: 0; color: var(--k-ink-2); font: inherit; cursor: pointer; }
.wp-actions a { color: var(--k-ink-2); }

/* ---------- technical drawings (brand/drawings.mjs) ---------- */
.dw { display: block; width: 100%; height: auto; overflow: visible; }
.dw * { stroke-width: .32; stroke-linecap: round; stroke-linejoin: round; }
.dw-o { stroke: var(--k-ink-2); }
.dw-l { stroke: var(--k-ink-3); }
.dw-f, .dw-dim { stroke: var(--k-line-hi); }
.dw-g { stroke: var(--k-line); stroke-width: .2; }
.dw-c, .dw-x { stroke: var(--k-line-hi); stroke-dasharray: 2 .8 .4 .8; }
.dw-h { stroke: var(--k-ink-3); stroke-dasharray: 1 .8; }
.dw-a { stroke: var(--k-accent); }
.dw-a-dash, .dw-seam { stroke: var(--k-accent); stroke-dasharray: 1.2 .9; }
.dw-t { font: 500 2.5px var(--k-font-mono); fill: var(--k-ink-3); stroke: none; letter-spacing: .05px; }
.dw-small { font-size: 1.9px; letter-spacing: .12px; }
.dw-mono { font-size: 3px; fill: var(--k-ink-2); }
.dw-hot { fill: var(--k-accent); }
.dw-word { font: 800 18px var(--k-font-display, 'Bricolage Grotesque', sans-serif); letter-spacing: -.6px; fill: none; stroke: var(--k-accent); stroke-width: .22; }
.dw-mark { color: var(--k-accent); }
.co-l { stroke: var(--k-accent); stroke-width: .22; opacity: .75; }
.co-pt { fill: var(--k-accent); stroke: none; }
.co-b { stroke: var(--k-accent); fill: var(--k-ground); }
.co-n { font: 600 3.2px var(--k-font-mono); fill: var(--k-accent); stroke: none; }
.co { transition: opacity var(--k-dur-base); }
.co.is-hot .co-b { fill: var(--k-accent); } .co.is-hot .co-n { fill: var(--k-ground); } .co.is-hot .co-l { stroke-width: .4; opacity: 1; }
/* draw-in: strokes trace in order, then the balloons; nothing is hidden without JS */
.k-js [data-draw] .dw path, .k-js [data-draw] .dw rect, .k-js [data-draw] .dw circle, .k-js [data-draw] .dw ellipse { stroke-dashoffset: 1; }
.k-js [data-draw] .dw :is(path, rect, circle, ellipse):not([class*="dash"]):not(.dw-c):not(.dw-x):not(.dw-h):not(.dw-seam) { stroke-dasharray: 1 1; }
.k-js [data-draw] .dw text, .k-js [data-draw] .dw .co, .k-js [data-draw] .dw .dw-mark, .k-js [data-draw] .dw [class*="dash"], .k-js [data-draw] .dw :is(.dw-c, .dw-x, .dw-h, .dw-seam) { opacity: 0; }
[data-draw].is-drawn .dw :is(path, rect, circle, ellipse) { animation: draw .9s var(--k-ease-out) var(--d, 0s) forwards; }
[data-draw].is-drawn .dw text, [data-draw].is-drawn .dw .dw-mark, [data-draw].is-drawn .dw [class*="dash"], [data-draw].is-drawn .dw :is(.dw-c, .dw-x, .dw-h, .dw-seam) { animation: fade .5s ease-out calc(.3s + var(--d, 0s)) forwards; }
[data-draw].is-drawn .dw .co { animation: fade .4s ease-out calc(.6s + var(--d, 0s)) forwards; }
[data-draw].is-drawn .dw .co :is(path, circle) { animation: draw .5s var(--k-ease-out) calc(.6s + var(--d, 0s)) forwards; }

/* drawing tiles: grey linework until you look at it, like the screenshot tiles */
.tile-dw { display: block; height: 100%; padding: 2%; transition: filter .6s var(--k-ease-out); filter: grayscale(1) brightness(.75); }
.tile:hover .tile-dw, .tile:focus-visible .tile-dw { filter: none; }
.tile-dwg .tile-img { background: repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, .018) 11px 12px); }
.sheet-head .st { color: var(--k-ink-2); }

/* work page: the big drawing beside the copy, notes under it */
.wp-fig { position: relative; padding: 10px; box-shadow: inset 0 0 0 1px var(--k-line); }
.wp-fig::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--k-accent), var(--k-accent)) 0 0 / 14px 1px no-repeat, linear-gradient(var(--k-accent), var(--k-accent)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--k-accent), var(--k-accent)) 100% 100% / 14px 1px no-repeat, linear-gradient(var(--k-accent), var(--k-accent)) 100% 100% / 1px 14px no-repeat; }
.notes-sec, .sweep-sec { margin-top: clamp(56px, 7vw, 104px); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.notes li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--k-line); cursor: default; outline: none; transition: color var(--k-dur-base); }
.notes b { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--k-accent); border-radius: 50%;
  font: 600 11px/1 var(--k-font-mono); color: var(--k-accent); transition: background var(--k-dur-base), color var(--k-dur-base); }
.notes li:hover, .notes li:focus-visible, .notes li.is-hot { color: var(--k-accent-hi); }
.notes li:hover b, .notes li:focus-visible b, .notes li.is-hot b { background: var(--k-accent); color: var(--k-ground); }

/* websites: wireframe sweeps away to the finished screenshot as it scrolls through */
.sweep { --sweep: 0; position: relative; margin: 0 0 32px; padding: 12px; box-shadow: inset 0 0 0 1px var(--k-line-hi); }
.sweep img { display: block; width: 100%; clip-path: inset(0 calc((1 - var(--sweep)) * 100%) 0 0); }
.sweep-wire { position: absolute; inset: 12px; background: var(--k-ground); clip-path: inset(0 0 0 calc(var(--sweep) * 100%)); }
.sweep-wire .dw { width: 100%; height: 100%; }
.sweep-line { position: absolute; top: 4px; bottom: 4px; left: calc(12px + var(--sweep) * (100% - 24px)); width: 1px; background: var(--k-accent);
  box-shadow: 0 0 12px var(--k-accent); opacity: calc(1 - max(0, var(--sweep) - .97) * 33); }

/* listen: three plates drawn live by site/src/scope.js */
.scope { margin-top: clamp(56px, 7vw, 104px); }
.scope-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; }
.scope-plot { margin: 0; padding: 10px; box-shadow: inset 0 0 0 1px var(--k-line-hi); background: #000; }
.scope-plot canvas { display: block; width: 100%; height: auto; }
.scope-plot.wide { grid-column: 1 / -1; }
.scope-clips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.clip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: none; border: 1px solid var(--k-line-hi); color: var(--k-ink-2);
  font: 500 12px/1 var(--k-font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: border-color var(--k-dur-base), color var(--k-dur-base); }
.clip b { color: var(--k-ink-3); font-weight: 500; }
.clip i { width: 0; height: 0; border-left: 7px solid currentColor; border-block: 4.5px solid transparent; }
.clip:hover { border-color: var(--k-ink-3); color: var(--k-ink); }
.clip[aria-pressed="true"] { border-color: var(--k-accent); color: var(--k-accent); }
.clip[aria-pressed="true"] i { width: 7px; height: 9px; border: 0; border-inline: 2px solid currentColor; }
.scope-note { font: 12px/1.6 var(--k-font-mono); color: var(--k-ink-3); margin: 0; }

/* ---------- now drafting: the pieces whose repos moved last ---------- */
.now { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0 var(--gutter); border-block: 1px solid var(--k-line-hi); font: 12px/1.3 var(--k-font-mono); }
.now-l { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 0; letter-spacing: .12em; text-transform: uppercase; color: var(--k-accent); }
.now-l i { width: 7px; height: 7px; border-radius: 50%; background: var(--k-accent); box-shadow: 0 0 10px var(--k-accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.now-i { display: grid; gap: 3px; padding: 12px 20px; border-left: 1px solid var(--k-line); text-decoration: none; color: var(--k-ink-2); }
.now-i b { color: var(--k-ink); font-weight: 500; }
.now-i span { color: var(--k-ink-3); font-size: 11px; }
.now-i:hover b { color: var(--k-accent); }

/* ---------- title block on every page ---------- */
.tb { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) .7fr .5fr 1.3fr; margin: clamp(96px, 12vw, 160px) var(--gutter) 0;
  border: 1px solid var(--k-line-hi); font: 11px/1.3 var(--k-font-mono); }
.tb > div { display: grid; align-content: start; gap: 6px; padding: 10px 12px; border-left: 1px solid var(--k-line-hi); min-width: 0; }
.tb > div:first-child { border-left: 0; }
.tb span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-3); }
.tb b { font-weight: 500; color: var(--k-ink); overflow-wrap: anywhere; }
.tb a { color: var(--k-accent); }
.tb-brand { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; color: var(--k-accent); }
.tb-brand svg { grid-row: span 2; width: 26px; height: 26px; }
.tb-brand b { font: 700 14px/1 var(--k-font-display); letter-spacing: -.01em; }
.foot { padding-top: 28px; }
.foot-keys { background: none; border: 0; padding: 0; font: inherit; color: var(--k-ink-3); cursor: pointer; }
kbd { font: 500 10px/1 var(--k-font-mono); padding: 3px 5px; border: 1px solid var(--k-line-hi); border-bottom-width: 2px; border-radius: 3px; color: var(--k-ink-2); }

/* ---------- /revisions/ ---------- */
.revs { width: 100%; border-collapse: collapse; font: 13px/1.5 var(--k-font-mono); }
.revs th { text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--k-line-hi); }
.revs td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--k-line); vertical-align: top; color: var(--k-ink-2); }
.revs td:nth-child(3) { color: var(--k-ink); font-family: var(--k-font-display); font-size: 15px; }
.revs .rv { color: var(--k-accent); font-weight: 600; width: 3em; }
.revs tr:first-child .rv::after { content: ' ← current'; font-weight: 400; color: var(--k-ink-3); font-size: 10px; letter-spacing: .1em; }

/* ---------- contact: a job ticket ---------- */
.ticket { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; border: 1px solid var(--k-line-hi); background: color-mix(in srgb, var(--k-ground) 70%, transparent); }
.ticket > * { border-bottom: 1px solid var(--k-line-hi); }
.ticket-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font: 11px/1 var(--k-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--k-ink-3); }
.ticket-head span:nth-child(2) { color: var(--k-accent); }
.ticket label, .ticket fieldset { display: grid; gap: 8px; padding: 14px 16px; margin: 0; min-width: 0; }
.ticket fieldset { border: 0; border-bottom: 1px solid var(--k-line-hi); }
.tk-reach { border-left: 1px solid var(--k-line-hi); }
.tk-kind, .tk-idea, .tk-send { grid-column: 1 / -1; }
.ticket label > span, .ticket legend { font: 10px/1 var(--k-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-3); padding: 0; }
.ticket legend { float: left; width: 100%; margin-bottom: 10px; }
.ticket input:not([type="radio"]), .ticket textarea { width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--k-line-hi); padding: 6px 0;
  font: 18px/1.4 var(--k-font-mono); color: var(--k-ink); outline: none; resize: vertical; border-radius: 0; }
.ticket input:focus, .ticket textarea:focus { border-bottom-color: var(--k-accent); }
.ticket ::placeholder { color: var(--k-ink-3); opacity: .6; }
.ticket .tk-kind { display: block; }
.tk-kind label { display: inline-flex; padding: 0; margin: 0 8px 8px 0; }
.tk-kind input { position: absolute; opacity: 0; }
.tk-kind label span { padding: 8px 12px; border: 1px solid var(--k-line-hi); font: 12px/1 var(--k-font-mono); letter-spacing: .06em; color: var(--k-ink-2); cursor: pointer; text-transform: none; }
.tk-kind input:checked + span { border-color: var(--k-accent); color: var(--k-accent); }
.tk-kind input:focus-visible + span { outline: 1px solid var(--k-accent); outline-offset: 2px; }
.tk-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 18px 16px; border-bottom: 0 !important; }
.tk-send p { margin: 0; flex: 1 1 260px; font: 12px/1.6 var(--k-font-mono); color: var(--k-ink-3); }
.tk-send a { color: var(--k-ink-2); }
.ticket.is-sent .ticket-head span:last-child::after { content: ' · sent to your mail app'; color: var(--k-accent); }

/* ---------- drafting keys ---------- */
.legend { background: var(--k-ground); color: var(--k-ink); border: 1px solid var(--k-accent); padding: 24px 28px; max-width: min(92vw, 420px); }
.legend::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.legend dl { margin: 16px 0; }
.legend dl div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--k-line); align-items: center; }
.legend dt, .legend dd { margin: 0; }
.legend-hint { font: 12px/1.5 var(--k-font-mono); color: var(--k-ink-3); }
.legend button { background: none; border: 0; padding: 0; font: 12px var(--k-font-mono); color: var(--k-accent); cursor: pointer; }
.measure { position: fixed; inset: 0; z-index: 90; cursor: crosshair; }
.measure svg { width: 100%; height: 100%; }
.measure line { stroke: var(--k-accent); stroke-width: 1; }
.measure text { fill: var(--k-accent-hi); font: 500 12px var(--k-font-mono); text-anchor: middle; paint-order: stroke; stroke: var(--k-ground); stroke-width: 4px; }
.measure-hint, .split-hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 8px 12px; background: var(--k-ground);
  border: 1px solid var(--k-accent); font: 11px/1 var(--k-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--k-accent); white-space: nowrap; }
html.is-grid body { --grid: rgba(255, 255, 255, .08); }
html.is-grid body::before { content: ''; position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--k-accent) 0 1px, transparent 1px 120px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--k-ink-3) 0 1px, transparent 1px 24px) 0 0 / 100% 5px no-repeat,
    repeating-linear-gradient(0deg, var(--k-accent) 0 1px, transparent 1px 120px) 0 0 / 10px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--k-ink-3) 0 1px, transparent 1px 24px) 0 0 / 5px 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(232, 163, 58, .07) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(232, 163, 58, .07) 0 1px, transparent 1px 120px); }

/* the other half: the seam pulled across the page; right of it, everything is wire */
/* fade the children, not .split itself: opacity on a parent would stop the backdrop-filter seeing the page */
.split { --x: 50vw; position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.split > * { opacity: 0; transition: opacity .45s var(--k-ease-out); }
.split.is-on > * { opacity: 1; }
.split-wire { position: absolute; inset: 0 0 0 var(--x); backdrop-filter: grayscale(1) brightness(.6) contrast(1.5);
  background: repeating-linear-gradient(90deg, rgba(232, 163, 58, .09) 0 1px, transparent 1px 24px), repeating-linear-gradient(0deg, rgba(232, 163, 58, .09) 0 1px, transparent 1px 24px); }
.split-seam { position: absolute; top: 0; bottom: 0; left: var(--x); border-left: 1px dashed var(--k-accent); box-shadow: 0 0 18px var(--k-accent); }
.split-l, .split-r { position: absolute; top: 84px; font: 11px/1 var(--k-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k-accent); background: var(--k-ground); padding: 6px 8px; }
.split-l { right: calc(100% - var(--x) + 12px); } .split-r { left: calc(var(--x) + 12px); }
.split-hint { pointer-events: none; }

/* ---------- tab to tab: the sheet slides across the light table ---------- */
html:active-view-transition-type(sheet-fwd)::view-transition-old(root) { animation: sheet-out-l .55s var(--k-ease-in-out) both; }
html:active-view-transition-type(sheet-fwd)::view-transition-new(root) { animation: sheet-in-r .65s var(--k-ease-out) both; }
html:active-view-transition-type(sheet-back)::view-transition-old(root) { animation: sheet-out-r .55s var(--k-ease-in-out) both; }
html:active-view-transition-type(sheet-back)::view-transition-new(root) { animation: sheet-in-l .65s var(--k-ease-out) both; }
@keyframes sheet-out-l { to { transform: translateX(-18%) scale(.94); opacity: 0; } }
@keyframes sheet-out-r { to { transform: translateX(18%) scale(.94); opacity: 0; } }
@keyframes sheet-in-r { from { transform: translateX(22%) scale(.96); opacity: 0; clip-path: inset(0 0 0 30%); } }
@keyframes sheet-in-l { from { transform: translateX(-22%) scale(.96); opacity: 0; clip-path: inset(0 30% 0 0); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 88px; }
  .stage { order: -1; width: min(92vw, 440px); }
  .word { font-size: clamp(52px, 15vw, 120px); }
  .titleblock { position: static; text-align: left; margin-top: 8px; }
  .wp-top { grid-template-columns: 1fr; }
  .wp-mark { width: min(86vw, 380px); }
  .wp-fig { margin: 0 -8px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-plot.sq { max-width: 300px; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > div { border-left: 0; border-top: 1px solid var(--k-line-hi); }
  .tb > div:nth-child(even) { border-left: 1px solid var(--k-line-hi); }
  .tb-brand { grid-column: 1 / -1; border-top: 0 !important; }
  .tb > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .ticket { grid-template-columns: 1fr; }
  .tk-reach { border-left: 0; }
  .ticket-head span:last-child { display: none; }
  .now-l { width: 100%; padding-bottom: 4px; }
  .now-i { border-left: 0; padding-left: 0; flex: 1 1 45%; }
  .revs td:nth-child(4), .revs th:nth-child(4) { display: none; }
  .foot .k-sound { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .k-js .top nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
    padding: 80px var(--gutter) 40px; background: var(--k-ground); font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.03em;
    opacity: 0; visibility: hidden; transition: opacity var(--k-dur-base), visibility 0s var(--k-dur-base); }
  .k-js .top nav .nav-l { font-size: 12px; font-weight: 500; }
  .k-js .top.is-open nav { opacity: 1; visibility: visible; transition: opacity var(--k-dur-base); }
  .top.is-open { backdrop-filter: none; } /* a backdrop-filter would trap the fixed menu inside the bar */
  .group-open { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .hb-solid, .bp > *, .bp-seam-g > * { opacity: 1 !important; }
  .stage .hb-wire .hb-edge, .stage .hb-wire .hb-trace, .bp path.bp-l { stroke-dashoffset: 0 !important; }
  .bp-cursor { opacity: 0 !important; }
  [data-draw] .dw * { stroke-dashoffset: 0 !important; opacity: 1 !important; animation: none !important; }
  .now-l i { animation: none; }
}

/* ---------- print: one clean sheet, black ink on white ---------- */
@media print {
  @page { size: A3 landscape; margin: 12mm; }
  :root { --k-ground: #fff; --k-ink: #000; --k-ink-2: #222; --k-ink-3: #555; --k-line: #bbb; --k-line-hi: #888; --k-accent: #000; --k-accent-hi: #000; }
  html, body { background: #fff !important; color: #000; }
  .top, .foot, .k-cursor, .wp-actions, .scope, .split, .measure, .legend, .now, .hb-badge, .menu-btn { display: none !important; }
  .wp, .tp { padding-top: 0; }
  [data-draw] .dw * { stroke-dashoffset: 0 !important; opacity: 1 !important; animation: none !important; }
  [data-reveal], [data-reveal] * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .tile-dw, .tile-img img { filter: none !important; }
  .wp-top { grid-template-columns: 1.3fr 1fr; }
  .sweep img { clip-path: none; } .sweep-wire, .sweep-line { display: none; }
  .co-b { fill: #fff; } .co.is-hot .co-b { fill: #fff; }
  .tb { break-inside: avoid; margin-top: 10mm; }
  .wp-shot, .notes-sec { break-inside: avoid; }
}

/* badge (from badge/css.mjs) */
.hb-badge{display:inline-flex;align-items:center;gap:.5em;color:inherit;font:inherit;font-weight:600;letter-spacing:.01em;text-decoration:none;line-height:1.2}
.hb-badge:hover,.hb-badge:focus-visible{text-decoration:underline;text-underline-offset:.2em}
.hb-badge .hb-mark{width:20px;height:20px;flex:none;display:block}
.hb-badge .hb-wire{opacity:.55;transition:opacity .25s}
.hb-badge:hover .hb-wire,.hb-badge:focus-visible .hb-wire{opacity:1}
.hb-badge:hover .hb-edge,.hb-badge:focus-visible .hb-edge{stroke-dasharray:1 1;animation:hb-draw .7s cubic-bezier(.2,.7,.2,1)}
@keyframes hb-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.hb-badge,.hb-badge *{transition:none!important;animation:none!important}}
