:root {
  --bg: #0a0908;
  --ink: #ede6d8;
  --muted: #a39a8d;
  --faint: #6f685f;
  --line: rgba(237, 230, 216, 0.13);
  --ember: #ef5a3a;
  --cyan: #4fd0d8;
  --sans: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --dim: 0;
  --col: clamp(430px, 40vw, 600px);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.2em; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--ember); text-decoration-color: var(--ember); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 50% 85%, rgba(239, 90, 58, 0.16), transparent 70%),
    radial-gradient(60% 40% at 20% 70%, rgba(79, 208, 216, 0.08), transparent 70%),
    var(--bg);
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(10, 9, 8, calc(var(--dim) * 0.78));
  backdrop-filter: blur(calc(var(--dim) * 14px));
  -webkit-backdrop-filter: blur(calc(var(--dim) * 14px));
  border-bottom: 1px solid rgba(237, 230, 216, calc(var(--dim) * 0.1));
}
.nav a { text-decoration: none; }
.nav .mark { font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.nav .mark::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--ember); }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); color: var(--muted); }
.full-button { display: grid; place-items: center; width: 30px; height: 30px; margin: -6px -7px -6px 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.over-button { margin-right: -16px; }
/* The section links sit in the bar on a wide screen, and behind the burger button on a phone. */
.menu { display: contents; }
.burger { display: none; margin-right: 6px; }
@media (max-width: 980px) { .over-button, .wide-only { display: none; } }
@media (min-width: 981px) { .narrow-only { display: none; } }
.full .over-button { display: none; }
.key { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: -5px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.full-button:hover, .full-button[aria-pressed="true"] { color: var(--ink); border-color: rgba(237, 230, 216, 0.4); }

main { position: relative; z-index: 1; transition: opacity 0.5s ease; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(96px, 16vh, 170px) var(--gutter) 28px;
  pointer-events: none;
}
.hero a { pointer-events: auto; }
.eyebrow, .label, .hint, .scroll, .when, .tags, dt, .fine, .quiet {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 18px; }
h1 {
  font-size: clamp(3.4rem, 11.5vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-shadow: 0 2px 40px rgba(10, 9, 8, 0.6);
}
.lead {
  margin-top: clamp(20px, 3vh, 34px);
  max-width: 30ch;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
  text-shadow: 0 1px 24px rgba(10, 9, 8, 0.9);
}
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hint { max-width: 46ch; padding: 10px 14px; margin-left: -14px; border-radius: 12px; background: rgba(10, 9, 8, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #c9c0b2; }
.hint::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
.scroll { text-decoration: none; white-space: nowrap; }
.scroll::after { content: "↓"; margin-left: 8px; }
@keyframes pulse { 50% { opacity: 0.25; } }

.sheet { position: relative; padding-top: 120px; }
/* The thread network down the left margin on a wide page, where the index under the intro is hidden. */
.margin-wires { display: none; position: absolute; left: 0; top: 0; height: 100%; overflow: visible; pointer-events: none; }
.margin-wires .lane { stroke-width: 1; opacity: 0.45; }
.margin-wires path { fill: none; stroke-width: 1.2; opacity: 0.75; }
.margin-wires path.cross { stroke-dasharray: 2 3; opacity: 0.85; }
.margin-wires circle { fill: var(--ink); opacity: 0.7; }
.margin-wires .tail { opacity: 0.45; }
@media (min-width: 981px) { :root:not(.over):not(.full) .margin-wires { display: block; } }

.block {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr);
  gap: 24px clamp(24px, 5vw, 80px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  border-top: 1px solid var(--line);
}
.label { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 400; position: sticky; top: 76px; align-self: start; }
.label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--assembly, var(--muted)); }
#art { --assembly: #ff5a36; }
#software { --assembly: #43cbd6; }
#film { --assembly: #9e7aff; }
#neuro { --assembly: #f5b842; }
.menu a[href="#art"] { --assembly: #ff5a36; }
.menu a[href="#software"] { --assembly: #43cbd6; }
.menu a[href="#film"] { --assembly: #9e7aff; }
.menu a[href="#neuro"] { --assembly: #f5b842; }
@media (min-width: 761px) {
  .menu a[href="#art"]::before, .menu a[href="#software"]::before, .menu a[href="#film"]::before, .menu a[href="#neuro"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--assembly); vertical-align: 1px; }
}
.pick, .pick .hero { cursor: pointer; }
.body { min-width: 0; }

.big {
  font-size: clamp(1.7rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 22ch;
  text-wrap: balance;
}
.prose { margin-top: clamp(28px, 5vh, 52px); max-width: 62ch; color: #ddd5c7; }
.block { text-shadow: 0 0 14px rgba(10, 9, 8, 0.95), 0 0 3px rgba(10, 9, 8, 0.9); }
.project, .button { text-shadow: none; }
.prose p + p { margin-top: 1.05em; }

.facts {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
dt { text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
dd { font-size: 15px; line-height: 1.55; }

.project {
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 18, 16, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s;
}
.project:hover { border-color: rgba(237, 230, 216, 0.28); }
.project > p { max-width: 64ch; color: #d3cbbd; }
.project > p:not(.project-lead) + p { margin-top: 1.05em; }
.project-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 18px; }
.project h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }
.wordmark { width: clamp(150px, 20vw, 230px); margin: -8px 0 -8px -6px; }
.glyph { width: 36px; height: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.project .project-lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.shot { display: block; margin: 26px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot:hover img { transform: scale(1.015); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px 28px; font-size: 15px; color: var(--muted); }
.points li { padding-left: 16px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--ember); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; font-family: var(--mono); font-size: 13.5px; }
.project > .links { color: var(--ink); }
.button { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.button:hover { background: var(--ember); color: var(--bg); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 20px; }
.pair .project { display: flex; flex-direction: column; }
.pair .links { margin-top: auto; padding-top: 24px; }

.rows li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -0.015em; font-weight: 550; line-height: 1.2; }
.rows h3 a { text-decoration: none; }
.rows h3 a::after { content: "↗"; margin-left: 8px; font-size: 0.7em; color: var(--muted); }
.rows p { margin-top: 6px; max-width: 60ch; color: var(--muted); }
/* The studio tools: a short list at the end of the projects, each with a name, a paragraph and a clip where there is one. */
.tools { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.project.tools { margin-top: 20px; padding-top: clamp(22px, 3vw, 40px); border-top: 1px solid var(--line); }
.project + .project { margin-top: clamp(28px, 4vw, 48px); }
/* Studio tools as one card: the names as bullets, and the picked tool's text and clip below them. */
.toolnames { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 28px; margin: 18px 0 6px; padding: 0; list-style: none; }
.toolnames button { position: relative; display: block; width: 100%; padding: 6px 0 6px 16px; border: 0; background: none; color: var(--muted); font: 15px/1.35 var(--sans); text-align: left; cursor: pointer; transition: color 0.2s; }
.toolnames button::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 1px; background: var(--ember); transition: width 0.2s; }
.toolnames button:hover, .toolnames button:focus-visible { color: var(--ink); }
.toolnames button[aria-selected="true"] { color: var(--ink); }
.toolnames button[aria-selected="true"]::before { width: 10px; height: 2px; top: calc(0.95em - 0.5px); }
.toolset.tabbed > li[hidden] { display: none; }
.toolset.tabbed { margin-top: 8px; }
.toolset.tabbed > li { border-top: 0; padding-top: 10px; }
.toolset.tabbed h4 { display: none; }
.tools h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -0.015em; font-weight: 550; line-height: 1.2; }
.tools-lead { margin-top: 6px; max-width: 60ch; color: var(--muted); }
.body > .tools-lead { margin: 0 0 32px; }
.toolset { margin-top: 22px; display: grid; gap: 22px; list-style: none; padding: 0; }
.toolset h4 { margin: 0; font-size: 16px; font-weight: 550; color: #d3cbbd; }
.toolset p { margin-top: 4px; max-width: 62ch; font-size: 15px; color: var(--muted); }
.clip { display: block; width: 100%; max-width: 620px; height: auto; margin-top: 12px; border-radius: 8px; border: 1px solid var(--line); background: #14110f; }
.clip.wide { max-width: 100%; }
.when { padding-top: 0.5em; }
.roles { margin-top: 12px; display: grid; gap: 8px; max-width: 520px; }
.roles div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; }
.roles dt { margin: 0; font-family: var(--sans); font-size: 16px; letter-spacing: 0; text-transform: none; color: #d3cbbd; }
.roles dd { font-family: var(--mono); font-size: 12.5px; color: var(--muted); align-self: center; }

.foot .links { font-size: 15px; margin-top: 30px; }
/* The message box: two fields side by side, the message under them, and the send button with its status line. */
.reach { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; max-width: 620px; }
.reach label { display: grid; gap: 6px; min-width: 0; }
.reach label span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.reach .wide, .reach .send { grid-column: 1 / -1; }
.reach input, .reach textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20, 17, 15, 0.7); color: var(--ink); font: 15px/1.5 var(--sans); }
.reach textarea { resize: vertical; min-height: 120px; }
.reach input:focus, .reach textarea:focus { outline: none; border-color: rgba(237, 230, 216, 0.55); }
.reach .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reach .send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reach button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.reach button:disabled { opacity: 0.5; cursor: default; }
.reach .sent { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .reach { grid-template-columns: 1fr; } }
.fine { margin-top: clamp(48px, 10vh, 110px); color: var(--faint); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

.sub { margin-top: clamp(32px, 6vh, 60px); font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gallery { margin-top: 14px; columns: 2; column-gap: 12px; max-width: 62ch; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery .wide { column-span: all; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); transition: border-color 0.3s; }
.gallery a:hover, .gallery.hot a { border-color: rgba(237, 230, 216, 0.4); }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }

/* Pointers: labels over the tissue, each with a line to its cell. */
.pointers { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.pointers svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pointers g { opacity: 0; transition: opacity 0.4s; }
.pointers g.on { opacity: 1; }
.pointers svg { filter: drop-shadow(0 0 2px rgba(10, 9, 8, 0.9)); }
.pointers line { stroke: rgba(237, 230, 216, 0.85); stroke-width: 1.25; }
.pointers path { fill: none; stroke-width: 1.1; opacity: 0.9; }
.pointers circle { fill: rgba(10, 9, 8, 0.45); stroke-width: 1.1; }
.pointer { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 9, 8, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; white-space: nowrap; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s, border-color 0.2s; }
.pointer.major { padding: 7px 15px; font-size: 15.5px; border-color: rgba(237, 230, 216, 0.4); }
.pointer.major i { width: 9px; height: 9px; }
.pointer.on { opacity: 1; visibility: visible; pointer-events: auto; }
.pointer:hover, .pointer.hot { border-color: rgba(237, 230, 216, 0.55); }
.pointer:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pointer:hover, .pointer.hot { z-index: 3; }
.peek { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -1; opacity: 0; visibility: hidden; pointer-events: none; }
.peek.open { visibility: visible; }
.pointers.peeking .pointer.on:not(.hot) { opacity: 0.25; }
.pointers.peeking g.on { opacity: 0.35; }
.ring { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 1px solid rgba(237, 230, 216, 0.5); border-radius: 50%; pointer-events: auto; -webkit-mask: conic-gradient(from 0deg, transparent 0 22deg, #000 56deg 304deg, transparent 338deg); mask: conic-gradient(from 0deg, transparent 0 22deg, #000 56deg 304deg, transparent 338deg); }
.peek.up .ring { -webkit-mask: conic-gradient(from 180deg, transparent 0 22deg, #000 56deg 304deg, transparent 338deg); mask: conic-gradient(from 180deg, transparent 0 22deg, #000 56deg 304deg, transparent 338deg); }
.peek img, .peek video { position: absolute; left: 0; top: 0; width: 112px; height: 112px; max-width: none; object-fit: cover; border-radius: 50%; border: 1px solid rgba(237, 230, 216, 0.3); background: #14110f; cursor: zoom-in; will-change: transform, opacity; transition: border-color 0.2s; }
.peek .word { position: absolute; left: 0; top: 0; width: 112px; height: 112px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(237, 230, 216, 0.3); background: #14110f; color: #ede6d8; font-size: 13px; letter-spacing: 0.04em; will-change: transform, opacity; }
.peek img:hover, .peek video:hover { border-color: rgba(237, 230, 216, 0.85); }
.wall { position: fixed; inset: 0; z-index: 20; box-sizing: border-box; padding: 84px 32px 44px calc(var(--left, 0%) + 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: rgba(10, 9, 8, 0.84); opacity: 0; visibility: hidden; cursor: zoom-out; transition: opacity 0.3s, visibility 0.3s; }
.wall.open { opacity: 1; visibility: visible; }
.wall > div { position: relative; }
.wall img, .wall video { position: absolute; left: 0; top: 0; max-width: none; object-fit: cover; border-radius: 6px; border: 1px solid rgba(237, 230, 216, 0.24); background: #14110f; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); opacity: 0; will-change: transform; transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.12), opacity 0.35s; }
.wall img, .wall video { cursor: zoom-in; }
.wall img:hover, .wall video:hover { z-index: 2; }
.wallcap { position: absolute; left: 0; top: 0; z-index: 3; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 9, 8, 0.82); color: var(--ink); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.wallcap.on { opacity: 1; }
@keyframes sway { from { translate: calc(var(--dx) * -1) calc(var(--dy) * -1); rotate: calc(var(--dr) * -1); } to { translate: var(--dx) var(--dy); rotate: var(--dr); } }
.peekview { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 18px; box-sizing: border-box; padding: 84px 32px 44px calc(var(--left, 0%) + 32px); background: rgba(10, 9, 8, 0.6); opacity: 0; visibility: hidden; cursor: zoom-out; transition: opacity 0.25s, visibility 0.25s; }
.peekview.open { opacity: 1; visibility: visible; }
.peekview img, .peekview video { display: block; width: auto; height: auto; max-width: 100%; max-height: min(66vh, 620px); border-radius: 8px; border: 1px solid rgba(237, 230, 216, 0.24); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65); transform: scale(0.94); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.peekview .stage { flex: none; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: min(620px, calc(100% - 124px)); height: min(66vh, 620px); }
.peekview.open img, .peekview.open video { transform: none; }
.peekview.solo { background: rgba(10, 9, 8, 0.88); }
.peekview.solo .stage { width: min(1200px, 100%); height: min(80vh, 1000px); }
.peekview.solo img, .peekview.solo video { max-height: min(80vh, 1000px); }
.peekview iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid rgba(237, 230, 216, 0.24); background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65); }
.peekview img, .peekview video { cursor: default; }
.peekview button { flex: none; width: 44px; height: 44px; padding: 0 0 4px; border-radius: 50%; border: 1px solid rgba(237, 230, 216, 0.3); background: rgba(20, 17, 15, 0.7); color: #ede6d8; font: 26px/1 system-ui, sans-serif; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.peekview button:hover, .peekview button:focus-visible { border-color: rgba(237, 230, 216, 0.85); background: rgba(20, 17, 15, 0.95); }
/* A popup with text: the text on the left, the work on the right, over the whole page. */
.peekview.told { gap: 40px; background: rgba(10, 9, 8, 0.93); }
.story { cursor: auto; }
.story h3 { margin: 0 0 12px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 550; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.story p { margin: 0 0 12px; max-width: 60ch; font-size: 15.5px; line-height: 1.6; color: #c9c0b2; }
.story p.when { margin: -4px 0 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted, #8f877b); }
.peekview .story { flex: 0 1 360px; max-height: min(66vh, 620px); overflow-y: auto; }
.peekview .story:only-child { flex-basis: 600px; }
.peekview .media { flex: 0 1 760px; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.wall .story { position: relative; z-index: 3; max-width: 62ch; margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 9, 8, 0.78); }
/* A linked phrase that opens a popup. */
.ref.opens { cursor: pointer; }
@media (max-width: 760px) {
  /* On a narrow screen the work sits above the text that talks about it, and the popup scrolls. */
  .peekview.told { flex-direction: column; justify-content: flex-start; gap: 20px; padding: 76px 16px 32px; overflow-y: auto; background: rgba(10, 9, 8, 0.97); }
  .peekview .story { flex: none; order: 1; width: 100%; max-height: none; overflow: visible; }
  .peekview .media { flex: none; width: 100%; }
  .peekview.told .media { flex-wrap: wrap; gap: 14px 24px; }
  .peekview.told .stage { order: -1; width: 100%; height: auto; min-height: 160px; }
  .wall .story { margin: 24px 0 0; padding: 16px; }
}
.pointer .note { position: absolute; left: 0; top: calc(100% + 8px); width: 250px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 9, 8, 0.88); color: #d3cbbd; font-family: var(--sans); font-size: 13px; line-height: 1.45; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.pointer.above .note { top: auto; bottom: calc(100% + 8px); transform: translateY(4px); }
.pointer.leftward .note { left: auto; right: 0; }
.pointer.hot .note { opacity: 1; visibility: visible; transform: none; }
.pointer i { width: 7px; height: 7px; border-radius: 50%; }
.pointer i + i { margin-left: -3px; }
.ref { text-decoration: underline dotted var(--faint); text-underline-offset: 0.24em; transition: color 0.2s, text-decoration-color 0.2s; }
.ref:hover, .ref.hot { color: #fff; text-decoration-color: var(--ink); }
.project.hot { border-color: rgba(237, 230, 216, 0.5); }

/* Wide screens: the text runs down a column on the left and the tissue has the rest of the page to itself. */
@media (min-width: 981px) {
  :root:not(.over) .sheet { background: linear-gradient(90deg, rgba(10, 9, 8, 0.8), rgba(10, 9, 8, 0.6) calc(var(--col) * 0.75), rgba(10, 9, 8, 0) calc(var(--col) + var(--gutter) + 90px)); }
  :root:not(.over) .block { display: block; max-width: none; width: calc(var(--col) + var(--gutter)); margin: 0; padding-right: 0; min-height: 92vh; border-top: 0; }
  :root:not(.over) .label { position: static; margin-bottom: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
  :root:not(.over) .nav { background: linear-gradient(90deg, rgba(10, 9, 8, calc(var(--dim) * 0.9)) calc(var(--col) * 0.6), rgba(10, 9, 8, 0) calc(var(--col) + var(--gutter) + 90px)); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
  :root:not(.over) .big { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
  :root:not(.over) .wordmark { width: 170px; }
  :root:not(.over) .hero { width: calc(var(--col) + var(--gutter)); padding-right: 0; }
  :root:not(.over) h1 { font-size: calc(var(--col) / 4.5); }
}

/* Narrow screens: the text scrolls over the tissue, which dims behind it. */
@media (max-width: 980px) {
  #field { opacity: calc(1 - var(--dim) * 0.3); }
  /* Blurring the moving tissue behind a large card costs every frame on a phone, so the cards are solid instead. */
  .project { background: rgba(20, 18, 16, 0.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sheet { background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, 0.45) 220px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .block { grid-template-columns: 1fr; }
  .label { position: static; }
  .burger { display: grid; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 6px 0 12px; background: rgba(10, 9, 8, 0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav.open .menu { display: flex; }
  .menu a { padding: 12px var(--gutter); font-size: 15px; color: var(--ink); }
  .nav.open .burger { color: var(--ink); border-color: rgba(237, 230, 216, 0.4); }
  .rows li { grid-template-columns: 1fr; }
  .when { padding-top: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .scroll { display: none; }
}

/* The labels as a list under the intro, where they cannot sit over the tissue, wired back to their threads. */
.index { display: none; position: relative; margin-top: 28px; pointer-events: auto; }
.index svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.index path { fill: none; stroke-width: 1.1; opacity: 0.55; }
.index path.cross { stroke-dasharray: 2 3; opacity: 0.7; }
.index div { position: relative; display: grid; grid-template-columns: 7em 1fr; gap: 4px 40px; padding: 10px 0; }
.index p { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding-top: 7px; align-self: start; white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.index p i { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(10, 9, 8, 0.9); }
.index ul { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.index button { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 12, 11, 0.94); color: var(--ink); font: 14px/1.2 var(--sans); cursor: pointer; transition: border-color 0.2s; }
.index button i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.index button i + i { margin-left: -3px; }
.index button:hover, .index button:focus-visible { border-color: rgba(237, 230, 216, 0.55); }
@media (max-width: 980px) { .index { display: block; } }
.over .index { display: block; }
.full .index { display: none; }

/* Text over the tissue on a wide screen: the same layout as a narrow one. */
.over #field { opacity: calc(1 - var(--dim) * 0.3); }
.over .sheet { background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, 0.45) 220px); }

/* Full screen: the text is put away and the tissue has the whole window. */
.full body { overflow: hidden; }
.full main { opacity: 0; pointer-events: none; }
.full #field { opacity: 1; }
:root.full .nav { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.full .nav nav a, .full .burger { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hint::before { animation: none; }
  .shot img { transition: none; }
}

/* The GitHub picture, beside the line asking people to get in touch. */
.hello { display: flex; align-items: center; gap: 0.45em; }
.avatar { flex: none; width: 1.15em; height: 1.15em; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; filter: grayscale(1); }
