/* khôra continuum — design system v2. See REDESIGN.md.
   Colour rule: ink = the world · teal = recorded · amber = the observer (the fox).
   Fonts are self-hosted (SIL OFL): Geist, Geist Mono, Instrument Serif, Michroma (wordmark only). */

@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Michroma"; font-weight: 400; font-display: swap; src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #000; --bg-1: #07080a; --bg-2: #0d0f11; --bg-3: #14171a;
  --ink: #f3f1ea; --ink-2: #c9ccce; --ink-3: #8d9296; --ink-4: #7c8187;
  --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22);
  --accent: #b9d5d6; --accent-2: #7f9ea1; --fox: #d7a879;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --wide: "Michroma", var(--sans);
  --pad: clamp(1.125rem, 3.2vw, 3rem);
  --max: 90rem;
  --nav-h: 3.75rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Sizes are in rem. Above 1920 css px the root grows with the screen, so a 4K, 5K or 8K
   display shows the same composition as a 1920 one, only larger (capped by height for very wide, short windows). */
@media (min-width: 1921px) { html { font-size: max(16px, min(100vw / 120, 100vh / 67.5)); } }
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 0.75rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation: none; }
}
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 1rem/1.65 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1px dashed var(--accent); outline-offset: 0.3125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; top: 0.5rem; left: 0.5rem; padding: 0.625rem 0.875rem; background: var(--ink); color: #000; font: 500 0.75rem/1 var(--mono); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* ---------- type ---------- */
.label { font: 500 0.6875rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.label b { font-weight: 500; color: var(--accent); }
.display { font: 500 clamp(2.75rem, 7.4vw, 7.375rem)/.96 var(--sans); letter-spacing: -.055em; color: var(--ink); }
.h2 { font: 500 clamp(2rem, 4.6vw, 4.25rem)/1.02 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.h3 { font: 500 clamp(1.25rem, 1.9vw, 1.6875rem)/1.25 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.lede { font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.body { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-3); max-width: 62ch; }
.serif, .display em, .h2 em, .h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.display em, .h2 em { font-size: 1.08em; }
.tnum { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.fox { color: var(--fox); }

/* ---------- layout ---------- */
.wrap { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.sec { position: relative; border-top: 1px solid var(--line); }
.sec > .wrap { padding-block: clamp(4rem, 9vw, 8.25rem); border-inline: 1px solid var(--line); }
.sec > .wrap::before, .sec > .wrap::after { content: "+"; position: absolute; top: -0.5625rem; width: 1.0625rem; text-align: center; font: 400 0.875rem/1.0625rem var(--mono); color: var(--ink-4); background: var(--bg); }
.sec > .wrap::before { left: -0.5625rem; } .sec > .wrap::after { right: -0.5625rem; }
@media (max-width: 1500px) { .sec > .wrap { border-inline: 0; } .sec > .wrap::before, .sec > .wrap::after { display: none; } }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(2.25rem, 5vw, 4.5rem); }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.625rem; white-space: nowrap; min-height: 2.75rem; padding: 0 1.125rem; border: 1px solid var(--ink); background: var(--ink); color: #000; font: 500 0.75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--sm { min-height: 2.25rem; padding: 0 0.875rem; font-size: 0.6875rem; }
.btn i { font-style: normal; transition: transform .2s var(--ease); }
.btn:hover i { transform: translateX(0.1875rem); }
.arrow-link { display: inline-flex; gap: 0.5rem; align-items: center; font: 500 0.75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 0.25rem; transition: color .2s, border-color .2s; }
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.nav.is-stuck, .nav.is-open { background: rgba(0, 0, 0, .72); backdrop-filter: blur(0.875rem) saturate(1.2); -webkit-backdrop-filter: blur(0.875rem) saturate(1.2); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { height: 1.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 420px) { .brand img { height: 1.25rem; } .nav__in { gap: 1rem; } }
@media (max-width: 340px) { .brand img { height: 1.0625rem; } }
.nav__links { display: flex; align-items: center; gap: clamp(0.875rem, 2vw, 1.875rem); margin-left: auto; }
.nav__links a { font: 500 0.6875rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 0.625rem 0; transition: color .2s; }
.nav__links a span { color: var(--ink-4); margin-left: 0.25rem; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active span { color: var(--accent); }
.nav__cta { display: flex; gap: 0.5rem; }
.nav__toggle { display: none; width: 2.75rem; height: 2.75rem; margin-right: -0.625rem; align-items: center; justify-content: center; }
.nav__toggle i { position: relative; width: 1.25rem; height: 1px; background: var(--ink); }
.nav__toggle i::before, .nav__toggle i::after { content: ""; position: absolute; left: 0; width: 1.25rem; height: 1px; background: var(--ink); transition: transform .25s var(--ease); }
.nav__toggle i::before { top: -0.375rem; } .nav__toggle i::after { top: 0.375rem; }
.nav.is-open .nav__toggle i { background: transparent; }
.nav.is-open .nav__toggle i::before { transform: translateY(0.375rem) rotate(45deg); }
.nav.is-open .nav__toggle i::after { transform: translateY(-0.375rem) rotate(-45deg); }
@media (max-width: 1280px) { .nav__cta .btn--ghost { display: none; } }
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0.5rem var(--pad) 1.5rem; background: rgba(0, 0, 0, .96); border-bottom: 1px solid var(--line); transform: translateY(-0.5rem); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 1.125rem 0; font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
}
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__links { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0; }

/* ---------- reveal ---------- */
html.js .rv { opacity: 0; transform: translateY(0.875rem); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js .rv.is-in { opacity: 1; transform: none; }
/* the first screen does not wait for site.js: the same fade and rise start with the first
   paint as a CSS animation, so the headline appears as soon as the page does */
@keyframes rv-in { from { opacity: 0; transform: translateY(0.875rem); } to { opacity: 1; transform: none; } }
html.js :is(.page-hero, .art-hero, .pass-hero, .record-head, .signal) .rv { animation: rv-in .7s var(--ease) var(--d, 0ms) both; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; transition: none; animation: none; } }

/* ---------- terminal snippet ---------- */
.term { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: fit-content; max-width: 100%; min-height: 2.75rem; padding: 0 0.375rem 0 1rem; border: 1px solid var(--line-2); background: rgba(7, 8, 10, .8); font: 400 0.8125rem/1 var(--mono); color: var(--ink-2); }
.term code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; font: inherit; }
.term code::before { content: "$ "; color: var(--accent); }
.term button { flex: none; min-height: 2rem; padding: 0 0.625rem; border: 1px solid var(--line); font: 500 0.625rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); transition: color .2s, border-color .2s; }
.term button:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- status pill ---------- */
.pill { justify-self: end; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.625rem; border: 1px solid var(--line-2); font: 500 0.625rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.pill::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--ink-4); }
.pill.is-done { color: var(--accent); border-color: rgba(185, 213, 214, .4); }
.pill.is-done::before { background: var(--accent); }
.pill.is-open::before { background: var(--fox); }

/* ---------- contact band ---------- */
.cta { text-align: left; }
.cta .display { max-width: 12ch; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: clamp(1.75rem, 4vw, 3rem); }
.cta__mail { font: 500 0.875rem/1 var(--mono); color: var(--accent); border-bottom: 1px solid rgba(185, 213, 214, .35); padding-bottom: 0.375rem; }

/* ---------- inner pages ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 9vh, 7rem)); }
.page-hero > .wrap { padding-block: 0 clamp(3rem, 7vw, 6rem); }
.page-hero .display { font-size: clamp(2.75rem, 7vw, 6.75rem); max-width: 13ch; }
.page-hero .lede { margin-top: clamp(1.25rem, 3vw, 2.25rem); }
.page-hero__top { display: flex; justify-content: space-between; margin-bottom: clamp(1.25rem, 3vh, 2.25rem); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.steps3 > article { padding: 1.625rem 1.5rem 1.875rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.875rem; min-height: 17.5rem; }
.steps3 > article:last-child { border-right: 0; }
.steps3 :is(h2, h3) { margin-top: auto; }
.steps3 p { font-size: 0.9062rem; line-height: 1.65; color: var(--ink-3); }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; } .steps3 > article { border-right: 0; min-height: 0; border-bottom: 1px solid var(--line); } .steps3 > article:last-child { border-bottom: 0; } }
.timaeus { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(1.75rem, 5vw, 6rem); align-items: start; }
.timaeus p + p { margin-top: 1rem; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.card { position: relative; display: flex; flex-direction: column; gap: 1.125rem; min-height: 22.5rem; padding: 1.625rem; border-right: 1px solid var(--line); transition: background .25s; }
.card:last-child { border-right: 0; }
a.card:hover { background: var(--bg-1); }
.card__top { display: flex; justify-content: space-between; }
.card :is(h2, h3) { margin-top: auto; font: 500 clamp(1.875rem, 3.4vw, 3.125rem)/1 var(--sans); letter-spacing: -.05em; color: var(--ink); }
.card p { font-size: 0.9062rem; line-height: 1.65; color: var(--ink-3); max-width: 44ch; }
.card.is-muted :is(h2, h3) { color: var(--ink-3); }
@media (max-width: 800px) { .cards2 { grid-template-columns: 1fr; } .card { border-right: 0; min-height: 0; border-bottom: 1px solid var(--line); } .card:last-child { border-bottom: 0; } }
.table { width: 100%; border-collapse: collapse; font: 400 0.8125rem/1.5 var(--mono); }
.table th { text-align: left; font-weight: 500; font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--line-2); }
.table td { padding: 1.125rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.table td:first-child { color: var(--ink-4); width: 5rem; }
.table a { color: var(--ink); }
.table tr:hover td { background: var(--bg-1); }
.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
.signal { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.signal__mail { display: inline-block; margin-top: 1.75rem; font: 500 clamp(1.125rem, 2.2vw, 1.875rem)/1.2 var(--mono); letter-spacing: -.02em; color: var(--accent); border-bottom: 1px solid rgba(185, 213, 214, .35); padding-bottom: 0.5rem; }
.signal__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.signal__cols a, .signal__cols span { display: block; font-size: 0.875rem; line-height: 2; color: var(--ink-2); }
.signal__cols a:hover { color: var(--accent); }
.signal__cols .label { margin-bottom: 0.5rem; }
@media (max-width: 900px) { .signal { grid-template-columns: 1fr; } .signal__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- record 001 (legacy markup, restyled) ---------- */
.record-head { padding-top: calc(var(--nav-h) + clamp(2.5rem, 8vh, 6rem)); }
.record-head h1 { font: 500 clamp(3.25rem, 9vw, 8.75rem)/.92 var(--sans); letter-spacing: -.06em; color: var(--ink); margin: 1.125rem 0 1.375rem; }
.record-head__lede { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; max-width: 52ch; color: var(--ink-2); }
.record-head__meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--line); }
.record-head__meta > div { padding: 1rem 1.125rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.375rem; }
.record-head__meta > div:nth-child(3n) { border-right: 0; }
.record-head__meta > div:nth-last-child(-n+3) { border-bottom: 0; }
.record-head__meta span, .record-facts span, .stat span { font: 500 0.6562rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.record-head__meta b, .record-facts b { font: 400 0.875rem/1.5 var(--sans); color: var(--ink); }
.record-head__meta a, .record-block a { color: var(--accent); border-bottom: 1px solid rgba(185, 213, 214, .35); }
.record-head__authors { margin-top: 1.25rem; font: 400 0.75rem/1.7 var(--mono); color: var(--ink-3); }
.page__rule { height: 1px; background: var(--line); margin-block: clamp(2.5rem, 6vw, 5rem); }
.record-body { display: grid; grid-template-columns: 3fr 8fr; gap: clamp(1.75rem, 5vw, 5.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); align-items: start; }
/* grid items may shrink below their content; wide tables scroll inside .data-wrap instead */
.record-body > * { min-width: 0; }
.record-side { position: sticky; top: calc(var(--nav-h) + 1.25rem); }
.record-facts { display: flex; flex-direction: column; margin-top: 1rem; border-top: 1px solid var(--line); }
.record-facts > div { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.record-block { padding-bottom: clamp(2.25rem, 5vw, 4rem); }
.record-block + .record-block { padding-top: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.record-block :is(h2, h3) { font: 500 0.6875rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.record-block p { font-size: 1.0312rem; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.record-block p + p { margin-top: 1rem; }
.record-block p b { color: var(--ink); font-weight: 500; }
.record-block .accent { color: var(--accent); border: 0; }
.rq-list { counter-reset: q; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rq-list li { counter-increment: q; display: grid; grid-template-columns: 3rem 1fr; padding: 1.125rem 0; border-bottom: 1px solid var(--line); font: 400 clamp(1.0625rem, 1.5vw, 1.375rem)/1.4 var(--sans); color: var(--ink); letter-spacing: -.015em; }
.rq-list li::before { content: "0" counter(q); font: 500 0.6875rem/2.4 var(--mono); color: var(--accent); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); margin-bottom: 2rem; }
.stat { padding: 1.25rem 1.25rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.stat:nth-child(2n) { border-right: 0; } .stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat b { font: 500 clamp(2.125rem, 4vw, 3.5rem)/1 var(--sans); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat i { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.5; }
.stat em { font-style: normal; color: var(--ink-4); }
.data-wrap { margin: 1.75rem 0; border: 1px solid var(--line); overflow-x: auto; }
.data-table { width: 100%; min-width: 32.5rem; border-collapse: collapse; font: 400 0.8125rem/1.5 var(--mono); }
.data-table th { text-align: left; padding: 0.875rem 1rem; font-weight: 500; font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td { padding: 0.8125rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td b { color: var(--accent); font-weight: 500; }
.page-foot { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.page-foot a { color: var(--ink); }
.page-foot a:hover { color: var(--accent); }
@media (max-width: 900px) { .record-body { grid-template-columns: 1fr; } .record-side { position: static; } .record-head__meta { grid-template-columns: 1fr 1fr; } .record-head__meta > div:nth-child(3n) { border-right: 1px solid var(--line); } .record-head__meta > div:nth-child(2n) { border-right: 0; } .record-head__meta > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .record-head__meta > div:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } .stat { border-right: 0 !important; } .stat:nth-last-child(2) { border-bottom: 1px solid var(--line); } .record-head__meta { grid-template-columns: 1fr; } .record-head__meta > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } .record-head__meta > div:last-child { border-bottom: 0 !important; } }

/* ---------- footer (full screen) ---------- */
.site-foot { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; overflow: hidden; padding: calc(var(--nav-h) + 2.5rem) var(--pad) 1.75rem; border-top: 1px solid var(--line-2); background: #030405; }
.site-foot__big { position: absolute; z-index: -1; left: 50%; bottom: 4.75rem; transform: translateX(-50%); width: 100%; text-align: center; white-space: nowrap; font: 400 clamp(4.5rem, 17.5vw, 18.75rem)/1 var(--wide); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); pointer-events: none; user-select: none; }
.site-foot__grid { position: relative; max-width: var(--max); width: 100%; margin-inline: auto; display: grid; grid-template-columns: 1.7fr 1fr 1.3fr 1fr; gap: clamp(1.75rem, 4vw, 4.5rem); }
.site-foot__brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; color: var(--ink); }
.site-foot__brand img { width: min(21.25rem, 100%); height: auto; }
.site-foot__identity p { margin-top: -0.1875rem; max-width: 30ch; font-size: 0.875rem; line-height: 1.65; color: var(--ink-3); }
.site-foot__top { display: inline-flex; gap: 0.75rem; margin-top: 1.5rem; font: 500 0.6875rem/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.site-foot__top span { transition: transform .25s var(--ease); }
.site-foot__top:hover span { transform: translateY(-0.25rem); }
.site-foot__column { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.site-foot__column h2 { margin-bottom: 0.625rem; font: 500 0.6875rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.site-foot__column > a { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-2); transition: color .2s; }
.site-foot a:hover { color: var(--accent); }
.site-foot__bottom { position: relative; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.75rem 1.75rem; max-width: var(--max); width: 100%; margin: 4.5rem auto 0; padding-top: 1.375rem; border-top: 1px solid var(--line); font: 500 0.6875rem/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.site-foot__bottom a { color: var(--ink-2); }
@media (max-width: 900px) { .site-foot__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; } .site-foot__identity { grid-column: 1 / -1; } .site-foot__grid { grid-template-areas: "id id" "explore research" "explore connect"; } .site-foot__identity { grid-area: id; } .site-foot__column:nth-of-type(1) { grid-area: explore; } .site-foot__column:nth-of-type(2) { grid-area: research; } .site-foot__column:nth-of-type(3) { grid-area: connect; } .site-foot__bottom { flex-direction: column; align-items: flex-start; margin-top: 3rem; } }
.record-body { margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.sec--proof > .wrap { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- origin: pinned three-step story around the three.js form ---------- */
.origin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 2rem) 0 1.75rem; overflow: hidden; isolation: isolate; }
.origin__bg { position: absolute; inset: -6% 0; z-index: -1; width: 100%; height: 112%; object-fit: cover; opacity: .2; filter: grayscale(1); pointer-events: none; }
.origin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(0, 0, 0, .55), transparent 70%), linear-gradient(#000, transparent 18%, transparent 75%, #000); }
.origin__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.75rem, 4vw, 4.5rem); align-items: center; }
.origin__title { margin: 1.125rem 0 clamp(1.75rem, 4vh, 3rem); font-size: clamp(3.5rem, 7vw, 7rem); }
.origin__copies { position: relative; min-height: 11.875rem; }
.origin__copy { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(0.75rem); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.origin__copy.is-active { opacity: 1; transform: none; pointer-events: auto; }
.origin__h { font: 500 clamp(1.375rem, 2.1vw, 2rem)/1.18 var(--sans); letter-spacing: -.035em; color: var(--ink); max-width: 22ch; }
.origin__h em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; font-size: 1.06em; }
.origin__p { margin-top: 1rem; max-width: 42ch; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-3); }
.origin__panel { position: relative; margin: 0; aspect-ratio: 16 / 11; border: 1px solid var(--line); background: radial-gradient(ellipse at center, rgba(13, 15, 17, .55), rgba(0, 0, 0, .75)); }
.origin__panel::before, .origin__panel::after { content: "+"; position: absolute; font: 0.875rem/1 var(--mono); color: var(--ink-4); }
.origin__panel::before { top: -0.5rem; left: -0.3125rem; } .origin__panel::after { bottom: -0.5rem; right: -0.3125rem; }
.origin__panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.origin__panel-tl, .origin__panel-bl, .origin__panel-br { position: absolute; z-index: 1; }
.origin__panel-tl { top: 1.125rem; left: 1.25rem; } .origin__panel-bl { bottom: 1.125rem; left: 1.25rem; color: var(--accent-2); } .origin__panel-br { bottom: 1.125rem; right: 1.25rem; }
.origin__panel-word { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 clamp(1.375rem, 2.4vw, 2.25rem)/1 var(--wide); letter-spacing: .04em; color: var(--ink); text-shadow: 0 2px 1.5rem rgba(0, 0, 0, .55); pointer-events: none; }
.origin__tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(1.75rem, 5vh, 3.5rem); border-top: 1px solid var(--line); }
.origin__tab { position: relative; display: flex; align-items: baseline; gap: 0.875rem; padding: 1.125rem 1rem 1.25rem 0; text-align: left; color: var(--ink-4); transition: color .3s; }
.origin__tab b { font: 500 clamp(1.125rem, 1.6vw, 1.5rem)/1 var(--sans); letter-spacing: -.03em; }
.origin__tab i { position: absolute; left: 0; right: 1rem; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.origin__tab.is-active, .origin__tab:hover { color: var(--ink); }
@media (max-width: 1080px) { .origin__in { grid-template-columns: 1fr; } .origin__copies { min-height: 10.625rem; } .origin__panel { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .origin__tab { flex-direction: column; gap: 0.375rem; } .origin__copies { min-height: 13.125rem; } }

/* ---------- artifacts: three.js research racks ---------- */
.art-hero { padding-top: var(--nav-h); }
.art-hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; min-height: min(86svh, 51.25rem); }
.art-hero .display { font-size: clamp(3rem, 6.4vw, 6.25rem); max-width: 11ch; margin-top: 1.125rem; }
.art-hero .lede { margin-top: 1.5rem; }
.art-hero__art { position: relative; aspect-ratio: 4 / 3; }
.art-hero__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the cabinets: a still first, the live scene replaces it on the frame it first draws
   (see artifacts.html). Scoped to #sphere-canvas so other .art-hero pages (fields) stay visible. */
.art-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-hero__poster.is-off { visibility: hidden; }
html.js #sphere-canvas { opacity: 0; }
html.js #sphere-canvas.is-on { opacity: 1; }
.art-hero__art .label { position: absolute; right: 0; bottom: 0; }
@media (max-width: 900px) { .art-hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 3rem 1.5rem; } }

/* ---------- signal: full-bleed three.js landscape behind the page ---------- */
main.has-scene { position: relative; isolation: isolate; }
.bg-scene { position: absolute; z-index: -1; inset: var(--nav-h) 0 0; pointer-events: none; }
/* the signal surface reveals smoothly on its first rendered frame */
html.js #signal-canvas { opacity: 0; transition: opacity .35s var(--ease); }
html.js #signal-canvas.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js #signal-canvas { transition: none; } }
.bg-scene canvas { width: 100%; height: 100%; }
.bg-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .35)); }

/* ---------- footer: KHÔRA as interactive ASCII (site.js) ---------- */
.site-foot__ascii { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.site-foot.ascii-on .site-foot__big { visibility: hidden; }
/* narrow screens: the word takes its own row between the links and the bottom line, never behind them */
@media (max-width: 900px) { .site-foot__big { position: relative; left: auto; bottom: auto; transform: none; order: 1; margin-top: 3.5rem; } .site-foot__bottom { order: 2; } }

/* ---------- passages: the team page ---------- */
.pass-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.pass-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.pass-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2) 62%, transparent), linear-gradient(transparent 50%, #000); }
.pass-hero__in { padding-block: calc(var(--nav-h) + 3rem) clamp(3rem, 8vh, 5.5rem); }
.pass-hero__in .label { margin-bottom: 1.375rem; }
.pass-hero__title { max-width: 14ch; font: 500 clamp(2.25rem, 4.6vw, 4.5rem)/1.02 var(--sans); letter-spacing: -.05em; color: var(--ink); }
.pass-hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; font-size: 1.06em; }
.pass-hero__lede { margin-top: 1.375rem; max-width: 46ch; font-size: clamp(0.9375rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--ink-2); }
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.75rem 2rem; align-items: baseline; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.role:hover { background: linear-gradient(90deg, var(--bg-1), transparent); }
.role .label { color: var(--accent-2); }
.role__t { font: 500 clamp(1.3125rem, 2vw, 1.875rem)/1.15 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.role__d { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-3); max-width: 46ch; }
.pass-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.pass-cta__q { max-width: 26ch; font: italic 400 clamp(1.5rem, 2.6vw, 2.375rem)/1.2 var(--serif); color: var(--ink); }
@media (max-width: 800px) { .role { grid-template-columns: 1fr; } }

.pass-hero__scene { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.pass-hero.has-scene .pass-hero__img { opacity: 0; }

/* ---------- listening mode (record pages) ---------- */
.listen { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.25rem; margin-top: 2rem; padding: 1rem 1.25rem 1rem 1rem; border: 1px solid var(--line-2); background: rgba(7, 8, 10, .7); }
.listen__play { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: #000; transition: background .2s, transform .2s var(--ease); }
.listen__play:hover { background: var(--accent); }
.listen__play:active { transform: scale(.94); }
.listen__play svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.listen__play .i-pause, .listen__play.is-playing .i-play { display: none; }
.listen__play.is-playing .i-pause { display: inline; }
.listen__body { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.listen__title { display: flex; align-items: baseline; gap: 0.875rem; flex-wrap: wrap; }
.listen__title b { font: 500 0.875rem/1.3 var(--sans); color: var(--ink); }
.listen__title span { font: 500 0.625rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.listen__wave { position: relative; height: 1.75rem; }
.listen__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.listen__wave input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.listen__wave input:focus-visible + *, .listen__wave:has(input:focus-visible) { outline: 1px dashed var(--accent); outline-offset: 4px; }
.listen__time { font: 500 0.75rem/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 2.75rem; text-align: right; }
.listen__speed { min-width: 3rem; min-height: 2rem; padding: 0 0.5rem; border: 1px solid var(--line-2); font: 500 0.6875rem/1 var(--mono); color: var(--ink-2); transition: color .2s, border-color .2s; }
.listen__speed:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) {
  .listen { grid-template-columns: auto 1fr auto; gap: 0.875rem; padding: 0.875rem; }
  .listen__time { display: none; }
}
/* the paragraph being read is lit; the rest step back while listening */
.record.is-listening [data-read] { transition: opacity .4s, color .4s; cursor: pointer; }
.record.is-listening .record-main [data-read]:not(.is-reading) { opacity: .5; }
.record.is-listening [data-read].is-reading { opacity: 1; color: var(--ink); }
.record.is-listening .record-main [data-read]:hover { opacity: .85; }
/* words, like lyrics: in the block being read, what is said is lit, the word being said is teal,
   what is still to come waits in grey */
.record.is-listening [data-read].is-reading .rw { color: var(--ink-3); transition: color .18s ease-out; }
.record.is-listening [data-read].is-reading .rw.is-said { color: var(--ink); }
.record.is-listening [data-read].is-reading .rw.is-now { color: var(--accent); text-shadow: 0 0 0.875rem rgba(185, 213, 214, .35); }
.record.is-listening [data-read].is-reading .rw:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.25em; }
/* the mini player, bottom of the screen */
.listen-mini { position: fixed; z-index: 90; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(40rem, calc(100vw - 2rem)); display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 0.875rem;
  padding: 0.625rem 0.75rem 0.75rem 0.625rem; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .82); backdrop-filter: blur(0.875rem); -webkit-backdrop-filter: blur(0.875rem);
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility .35s; }
.listen-mini.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.listen-mini .listen__play { width: 2.5rem; height: 2.5rem; }
.listen-mini__what { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.listen-mini__what span { font: 500 0.5625rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.listen-mini__what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 0.8125rem/1.3 var(--sans); color: var(--ink); }
.listen-mini__time { font: 500 0.6875rem/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.listen-mini__close { width: 2rem; height: 2rem; font: 400 1.25rem/1 var(--sans); color: var(--ink-3); transition: color .2s; }
.listen-mini__close:hover { color: var(--ink); }
.listen-mini__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.listen-mini__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (max-width: 560px) { .listen-mini { grid-template-columns: auto 1fr auto auto; } .listen-mini__time { display: none; } }
@media (prefers-reduced-motion: reduce) { .listen-mini { transition: none; } }

/* ---------- touch: every control is at least 44 px to tap ----------
   Nothing moves or grows on screen: a transparent area extends the control's hit box.
   Footer links are stacked close together, so they get real height instead (a hit box
   there would overlap its neighbours). Only on touch screens. */
@media (pointer: coarse) {
  .brand, .site-foot__top, .site-foot__bottom a, .page-foot a, .arrow-link, .listen__speed, .listen-mini__close, .company__grid a, .record-head__meta a { position: relative; }
  .brand::after, .site-foot__top::after, .site-foot__bottom a::after, .page-foot a::after, .arrow-link::after, .listen__speed::after, .listen-mini__close::after, .company__grid a::after, .record-head__meta a::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 2.75rem); height: max(100%, 2.75rem); transform: translate(-50%, -50%); }
  .site-foot__column { gap: 0; }
  .site-foot__column > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .site-foot__column h2 { margin-bottom: 0.375rem; }
}
/* notched phones in landscape: fixed bars keep clear of the cut-out */
.site-foot { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); padding-bottom: max(1.75rem, env(safe-area-inset-bottom)); }

/* passages: the button that asks for motion access (shown only where the browser requires a tap) */
.motion-btn, .motion-note { position: absolute; z-index: 2; top: calc(var(--nav-h) + 1rem); right: max(var(--pad), env(safe-area-inset-right)); }
.motion-btn { min-height: 2.75rem; background: rgba(0, 0, 0, .5); }
.motion-note { max-width: 16rem; text-align: right; line-height: 1.6; color: var(--ink-2); }
.motion-btn[hidden], .motion-note[hidden] { display: none; }
