/* Alina Schanz. One stylesheet, no framework.
   Type: Source Serif 4 for display and reading (italic for accents), Jost for labels,
   JetBrains Mono for figures, times and fingerprints. Everything moves only for people
   who have not asked their system to reduce motion. */

@font-face {
  font-family: "Source Serif";
  src: url("/fonts/sourceserif4-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("/fonts/sourceserif4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #0a0a09;
  --bg-raise: #111110;
  --bg-card: #131312;
  --ink: #ebe8e1;
  --ink-body: #d6d2c9;
  --ink-2: #aeaaa1;
  --ink-3: #8b877f;
  --rule: rgba(235, 232, 225, 0.12);
  --rule-strong: rgba(235, 232, 225, 0.26);
  --hover: rgba(235, 232, 225, 0.035);

  --serif: "Source Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1440px;
  --pad: clamp(20px, 4.45vw, 64px);
  --gap: clamp(16px, 1.9vw, 28px);
  --sec: clamp(104px, 12vw, 200px);
  --head-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 24px);
  scrollbar-color: #34332f var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 380;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* a fine grain over the black, so it has some depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--ink); color: var(--bg); }

img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
main { display: block; outline: none; }
em { font-style: italic; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.25s, color 0.25s, background-color 0.25s, border-color 0.25s, opacity 0.35s;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.82em; color: var(--ink); letter-spacing: -0.01em; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ico { width: 15px; height: 15px; flex: none; display: inline-block; vertical-align: -0.12em; }
.ico.up { transform: rotate(-90deg); }
.nw { white-space: nowrap; }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  isolation: isolate;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: none; }
.btn .ico { transition: transform 0.45s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-quiet {
  border-color: transparent;
  padding: 0 4px;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 400;
  overflow: visible;
}
.btn-quiet::before { display: none; }
.btn-quiet::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform-origin: right;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.btn-quiet:hover { color: var(--ink); border-color: transparent; }
.btn-quiet:hover::after { opacity: 1; animation: underline 0.7s var(--ease); }
@keyframes underline { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- header ---------- */

.site-head { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color 0.35s, border-color 0.35s; }
/* Without the script nothing marks the header as stuck, so it is solid from the start. */
.no-js .site-head { background: var(--bg); border-bottom-color: var(--rule); }
.site-head.is-stuck {
  background: rgba(10, 10, 9, 0.84);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--head-h); }
.brand { display: flex; align-items: baseline; gap: 0; margin: 0; min-width: 0; }
.wordmark {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  white-space: nowrap;
}
.crumb {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.crumb:not(:empty)::before { content: "/"; margin: 0 12px 0 14px; color: var(--rule-strong); }
.crumb.in { opacity: 1; transform: none; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); list-style: none; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: var(--ink); opacity: 0.75; transform-origin: left; transform: scaleX(0); }

.menu-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 0 0 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu { position: fixed; z-index: 55; left: 0; right: 0; top: var(--head-h); bottom: 0; background: var(--bg); border-top: 1px solid var(--rule); overflow-y: auto; padding: 12px 0 40px; }
.menu ul { list-style: none; }
.menu li { border-bottom: 1px solid var(--rule); }
.menu li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.m-num { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 500; }
.menu-mail { margin-top: 28px; font-family: var(--sans); font-size: 16px; color: var(--ink-2); }
html.menu-open { overflow: hidden; }
.no-js .menu-btn { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) li { animation: rise 0.7s var(--ease) both; }
  .menu:not([hidden]) li:nth-child(2) { animation-delay: 0.04s; }
  .menu:not([hidden]) li:nth-child(3) { animation-delay: 0.08s; }
  .menu:not([hidden]) li:nth-child(4) { animation-delay: 0.12s; }
  .menu:not([hidden]) li:nth-child(5) { animation-delay: 0.16s; }
  .menu:not([hidden]) li:nth-child(6) { animation-delay: 0.2s; }
}

/* ---------- hero: a poster with the week of blocks behind the name ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--head-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px) 0 clamp(28px, 3.4vw, 48px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-canvas.on { opacity: 1; }
.hero-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(235, 232, 225, 0.055), transparent 70%);
  transition: opacity 0.6s;
}
.hero.is-lit .hero-light { opacity: 1; }
.cross { position: absolute; z-index: 1; width: 13px; height: 13px; pointer-events: none; opacity: 0.55; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--ink-3); }
.cross::before { left: 6px; top: 0; width: 1px; height: 13px; }
.cross::after { top: 6px; left: 0; height: 1px; width: 13px; }
.cross.tl { left: calc(var(--pad) - 6px); top: 18px; }
.cross.tr { right: calc(var(--pad) - 6px); top: 18px; }
.cross.bl { left: calc(var(--pad) - 6px); bottom: 18px; }
.cross.br { right: calc(var(--pad) - 6px); bottom: 18px; }
@media (min-width: 1569px) {
  .cross.tl, .cross.bl { left: calc((100vw - var(--max)) / 2 + var(--pad) - 6px); }
  .cross.tr, .cross.br { right: calc((100vw - var(--max)) / 2 + var(--pad) - 6px); }
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 16px;
  margin: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.hero-clock { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero-name {
  font-family: var(--serif);
  font-weight: 220;
  font-size: clamp(64px, 16vw, 236px);
  line-height: 0.86;
  letter-spacing: -0.048em;
  margin: 0.18em 0 0.2em -0.045em;
  white-space: nowrap;
  will-change: transform;
}
.hn-word { display: inline-block; overflow: hidden; padding: 0.1em 0.04em 0.08em; margin: -0.1em -0.04em -0.08em; vertical-align: top; }
.hn-in { display: inline-block; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.hero-lead {
  grid-column: 1 / 9;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.22;
  font-weight: 320;
  letter-spacing: -0.016em;
  margin: -0.12em 0 0;
  text-wrap: balance;
}
.hero-lead em { color: var(--ink-2); letter-spacing: -0.01em; }
.hero-actions { grid-column: 9 / 13; justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 24px; margin: 0; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(28px, 3.4vw, 52px); }
.hero-note { margin: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; max-width: 46em; }
.hero-note-text { transition: color 0.3s; }
.hero-note.is-reading .hero-note-text { color: var(--ink); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-3); }
.scroll-cue:hover { color: var(--ink); }
.cue-line { position: relative; width: 1px; height: 44px; background: var(--rule); overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--ink); }

/* ---------- about, right under the hero ---------- */

.about { padding-top: clamp(80px, 9vw, 140px); }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: 18px; position: relative; }
.about-label { grid-column: 1 / 5; margin: 0; padding-top: 6px; color: var(--ink); }
.about-text {
  grid-column: 5 / 13;
  margin: 0;
  font-size: clamp(22px, 2.15vw, 33px);
  line-height: 1.42;
  font-weight: 330;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}
.about-text.is-live .lw { color: rgba(235, 232, 225, 0.2); transition: color 0.5s var(--ease); }
.about-text.is-live .lw.on { color: var(--ink); }

/* ---------- the five focus areas, as a band ---------- */

/* Without the script, or with reduced motion, the band is a centred set of phrases that wraps. */
.ticker {
  margin-top: clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.ticker-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28em 1.1em;
  padding: clamp(18px, 2.2vw, 30px) var(--pad);
  font-size: clamp(30px, 3.8vw, 58px);
}
.ticker-list li {
  display: flex;
  align-items: center;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker-list + .ticker-list { display: none; }
/* With the script: one long line with a mark between phrases, repeated once so it never runs
   out while it slides. */
.ticker.is-live {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker.is-live .ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker.is-live .ticker-list { flex: none; flex-wrap: nowrap; gap: 0; padding-left: 0; padding-right: 0; }
.ticker.is-live .ticker-list li::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  margin: 0 0.9em;
  border: 1px solid var(--ink-3);
  transform: rotate(45deg) translateY(-0.05em);
}
.ticker.is-live .ticker-list + .ticker-list { display: flex; }

/* ---------- sections ---------- */

.section { padding-top: var(--sec); }
/* A link to a section lands on its heading rule, not on the empty space above it. */
.section { scroll-margin-top: calc(24px - var(--sec)); }
.about { scroll-margin-top: calc(24px - clamp(80px, 9vw, 140px)); }
.sec-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 18px;
  margin-bottom: clamp(52px, 6.5vw, 104px);
}
.sec-head::before, .about-grid::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: left;
}
.sec-index { grid-column: 1 / 5; display: flex; gap: 16px; margin: 0; padding-top: 4px; }
.sec-index .n { color: var(--ink); font-family: var(--mono); letter-spacing: 0.04em; }
.sec-titles { grid-column: 5 / 13; }
.sec-title { font-weight: 250; font-size: clamp(44px, 6.2vw, 100px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.sec-title em { font-weight: 400; letter-spacing: -0.035em; color: var(--ink-2); }
.w { display: inline-block; overflow: hidden; padding: 0.06em 0.03em 0.16em; margin: -0.06em -0.03em -0.16em; vertical-align: top; }
.wi { display: inline-block; }
.sec-lead { margin: 28px 0 0; max-width: 33em; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 2.6vw, 36px); border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.tabs button {
  position: relative;
  min-height: 46px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s;
}
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.tabs .count { margin-left: 4px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }

/* ---------- selected work: an index of companies ---------- */

.co-list { list-style: none; }
.co-link {
  position: relative;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 5fr) minmax(0, 6fr) minmax(0, 2.4fr) 2rem;
  column-gap: var(--gap);
  align-items: baseline;
  padding: clamp(22px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.co-link::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--hover); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.co-link:hover::before, .co-link:focus-visible::before { opacity: 1; }
.co-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.co-name {
  font-size: clamp(32px, 3.9vw, 62px);
  line-height: 1;
  font-weight: 260;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: transform 0.7s var(--ease);
}
.co-what { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 30em; transition: color 0.35s; }
.co-sector { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.co-go { justify-self: end; color: var(--ink-3); transition: transform 0.5s var(--ease), color 0.3s; }
.co-link:hover .co-name { transform: translateX(14px); }
.co-link:hover .co-what { color: var(--ink-body); }
.co-link:hover .co-go { color: var(--ink); transform: translate(3px, -3px); }
.co-list:hover .co-row:not(:hover) .co-link { opacity: 0.32; }

.co-preview {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: 300px;
  height: 196px;
  pointer-events: none;
  opacity: 0;
  background: #0d0d0c;
  border: 1px solid var(--rule-strong);
  will-change: transform, opacity;
  transition: opacity 0.35s var(--ease);
}
.co-preview.on { opacity: 1; }
.co-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.co-preview::before, .co-preview::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--ink-2); z-index: 1; }
.co-preview::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.co-preview::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.cp-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 13px; background: linear-gradient(transparent, rgba(13, 13, 12, 0.94) 38%); }
.cp-name { font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
.cp-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--ink-2); }

/* ---------- how I work: a rail keeps the current step in view ---------- */

.method-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.mt-rail { grid-column: 1 / 4; }
.mt-sticky { position: sticky; top: calc(var(--head-h) + 48px); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: end; }
.mt-current { grid-row: 1 / 3; font-weight: 200; font-size: clamp(84px, 9.4vw, 152px); line-height: 0.82; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.mt-current.flip { animation: flip 0.7s var(--ease); }
.mt-of { grid-column: 2; grid-row: 2; padding-bottom: 0.4em; }
.mt-bar { grid-column: 2; grid-row: 1; justify-self: start; align-self: stretch; width: 1px; min-height: 64px; background: var(--rule); position: relative; overflow: hidden; }
.mt-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(0.2); transition: transform 0.7s var(--ease); }
.method { list-style: none; grid-column: 4 / 13; border-top: 1px solid var(--rule); }
.mt-step { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(30px, 3.2vw, 46px) 0 clamp(32px, 3.4vw, 48px); border-bottom: 1px solid var(--rule); }
.mt-num { grid-column: 1 / 6; grid-row: 1; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.4; color: var(--ink-3); margin-bottom: 14px; }
.mt-main { grid-column: 1 / 6; grid-row: 2; }
.mt-title { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em; }
.mt-text { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 32em; }
.mt-meta { grid-column: 6 / 10; grid-row: 1 / 3; display: grid; gap: 18px; align-content: start; }
.mt-meta dt, .tc-meta dt, .contact-facts dt, .contact-context dt, .doc-meta dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mt-meta dd { margin-top: 6px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-body); }

/* ---------- thesis: a plain list, and a stack of cards where the screen has room ---------- */

.thesis-stack { list-style: none; display: grid; gap: var(--gap); }
.thesis-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 54px);
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
}
.thesis-card::after { content: ""; position: absolute; inset: -1px; background: var(--bg); opacity: calc(var(--cover, 0) * 0.72); pointer-events: none; }
/* site.js adds .is-stacking only when every card fits on the screen below the header */
.thesis-stack.is-stacking { gap: 0; }
.thesis-stack.is-stacking .thesis-card {
  position: sticky;
  top: calc(var(--head-h) + 28px);
  margin-bottom: 14vh;
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.75);
  transform-origin: 50% 0;
  will-change: transform;
}
.thesis-stack.is-stacking .thesis-card:last-child { margin-bottom: 0; }
.thesis-stack.is-stacking .thesis-card.i1 { top: calc(var(--head-h) + 44px); }
.thesis-stack.is-stacking .thesis-card.i2 { top: calc(var(--head-h) + 60px); }
.thesis-stack.is-stacking .thesis-card.i3 { top: calc(var(--head-h) + 76px); }
.thesis-stack.is-stacking .thesis-card.i4 { top: calc(var(--head-h) + 92px); }
.tc-head { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; column-gap: var(--gap); align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.tc-num { font-family: var(--mono); letter-spacing: 0.04em; color: var(--ink); }
.tc-area { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.tc-of { font-family: var(--mono); letter-spacing: 0.04em; }
.tc-pos { margin: clamp(26px, 3vw, 44px) 0 clamp(26px, 3vw, 40px); font-size: clamp(28px, 3.2vw, 50px); line-height: 1.12; font-weight: 280; letter-spacing: -0.026em; text-wrap: balance; max-width: 20em; }
.tc-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: calc(var(--gap) * 1.6); }
.tc-body { color: var(--ink-2); font-size: 17px; line-height: 1.62; }
.tc-body p { margin: 0 0 0.9em; max-width: 34em; }
.tc-body p:last-child { margin-bottom: 0; }
.tc-meta { padding-left: calc(var(--gap) * 1.2); border-left: 1px solid var(--rule); align-self: start; }
.tc-meta dd { margin-top: 8px; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-body); }

/* ---------- now ---------- */

.live { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; }
.now-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); border-top: 1px solid var(--rule); }
.now-item { border-bottom: 1px solid var(--rule); }
.now-link { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 1.4rem; align-content: start; column-gap: 12px; row-gap: 10px; padding: 28px 0 30px; text-decoration: none; height: 100%; }
.now-num { grid-column: 1; grid-row: 1; padding-top: 0.5em; font-family: var(--mono); letter-spacing: 0.04em; }
.now-title { grid-column: 2; grid-row: 1; font-size: clamp(23px, 2vw, 30px); line-height: 1.18; font-weight: 300; letter-spacing: -0.016em; color: var(--ink); }
.now-text { grid-column: 2; grid-row: 2; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.now-go { grid-column: 3; grid-row: 1; justify-self: end; padding-top: 0.45em; color: var(--ink-3); transition: transform 0.45s var(--ease), color 0.3s; }
.now-link:hover .now-title { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); text-underline-offset: 0.2em; }
.now-link:hover .now-go { color: var(--ink); transform: translateX(4px); }

/* ---------- memos ---------- */

.memo-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.memo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: clamp(26px, 2.8vw, 44px);
  border: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, rgba(235, 232, 225, 0.02), transparent 60%);
  text-decoration: none;
  transition: border-color 0.45s var(--ease), transform 0.6s var(--ease), background-color 0.45s;
}
.memo-card:hover { border-color: rgba(235, 232, 225, 0.5); transform: translateY(-6px); background-color: rgba(235, 232, 225, 0.02); }
.mc-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.mc-top time { font-family: var(--mono); letter-spacing: 0.02em; text-transform: none; }
.mc-cat { color: var(--ink-2); }
.mc-title { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.08; font-weight: 280; letter-spacing: -0.026em; color: var(--ink); text-wrap: balance; }
.mc-abs { font-size: 16.5px; line-height: 1.58; color: var(--ink-2); flex: 1; }
.mc-read { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-top: 8px; }
.mc-read .ico { transition: transform 0.45s var(--ease); }
.memo-card:hover .mc-read .ico { transform: translateX(5px); }

/* ---------- outside work: a small museum plate ---------- */

.human { padding-top: var(--sec); }
.human-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: 18px; border-top: 1px solid var(--rule); }
.human-plate { grid-column: 1 / 5; margin: 0; }
.hp-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--rule-strong); }
.hp-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; filter: grayscale(1) contrast(1.12) brightness(0.82); transform: scale(1.14); will-change: transform; }
.hp-frame::before, .hp-frame::after { content: ""; position: absolute; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hp-frame::before { left: -4px; top: -4px; }
.hp-frame::after { right: -4px; bottom: -4px; }
.human-plate figcaption { margin-top: 14px; }
.human-copy { grid-column: 6 / 12; padding-bottom: 6px; }
.human-label { margin: 0 0 22px; color: var(--ink); }
.human-text { margin: 0; font-size: clamp(22px, 2.15vw, 32px); line-height: 1.38; font-weight: 320; letter-spacing: -0.012em; color: var(--ink-body); text-wrap: pretty; }

/* ---------- contact ---------- */

.contact { padding-bottom: var(--sec); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.contact-mail-wrap { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(16px, 1.8vw, 28px); }
.contact-mail {
  position: relative;
  display: inline-block;
  font-weight: 240;
  font-size: clamp(36px, 5.6vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  padding-bottom: 0.1em;
  margin-left: -0.04em;
}
.contact-mail::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule-strong); }
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.contact-mail:hover::after, .contact-mail:focus-visible::after { transform: scaleX(1); }
.copy-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.copy-btn.is-done { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.contact-context { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.contact-context div { padding: 18px 0 22px; border-top: 1px solid var(--rule); }
.contact-context dd { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--ink-body); }
.contact-facts { grid-column: 1 / 5; grid-row: 2; display: grid; gap: 22px; align-content: start; padding-top: 18px; }
.contact-facts dd { margin-top: 6px; font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.contact-facts .fp { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); word-spacing: -0.1em; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--rule); padding: clamp(56px, 7vw, 104px) 0 28px; overflow: hidden; }
.foot-mark { margin: 0 0 0 -0.055em; font-weight: 200; font-size: clamp(56px, 13.4vw, 216px); line-height: 0.82; letter-spacing: -0.05em; white-space: nowrap; color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; margin-top: clamp(48px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--rule); }
.foot-col { grid-column: span 4; }
.foot-col:first-child { grid-column: 1 / 5; }
.foot-col:nth-child(2) { grid-column: 5 / 9; }
.foot-col ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.foot-col a { font-family: var(--sans); font-size: 15px; text-decoration: none; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-note { grid-column: 9 / 13 !important; }
.foot-note p:not(.label) { margin: 14px 0 0; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.foot-clock { font-variant-numeric: tabular-nums; }
.to-top { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.to-top:hover { color: var(--ink); }

/* ---------- documents: memo pages and the 404 page ---------- */

.doc { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(80px, 9vw, 140px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.doc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 4.5vw, 64px); }
.doc-kicker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 clamp(22px, 2.5vw, 34px); padding-bottom: 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.doc-title { grid-column: 1 / 12; font-weight: 250; font-size: clamp(40px, 5.8vw, 92px); line-height: 1; letter-spacing: -0.036em; text-wrap: balance; }
.doc-dek { grid-column: 1 / 9; margin: clamp(24px, 2.6vw, 36px) 0 0; font-size: clamp(19px, 1.65vw, 24px); line-height: 1.42; font-weight: 350; color: var(--ink-2); text-wrap: pretty; }
.doc-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px clamp(28px, 4vw, 64px); margin-top: clamp(28px, 3vw, 44px); }
.doc-meta dd { margin-top: 6px; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.doc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(16px, 2vw, 32px); }
.doc-toc { grid-column: 1 / 4; position: sticky; top: calc(var(--head-h) + 28px); align-self: start; }
.doc-toc ol { list-style: none; margin-top: 14px; border-left: 1px solid var(--rule); }
.doc-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-family: var(--sans); font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--ink-3); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current] { color: var(--ink); border-left-color: var(--ink); }
.doc-body { grid-column: 4 / 12; min-width: 0; }
.prose { color: var(--ink-body); font-size: 18.5px; line-height: 1.65; }
.prose > p, .prose section > p { max-width: 38em; }
.prose strong { font-weight: 600; color: var(--ink); }
.b-h2 { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 64px 0 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc-body > .b-h2:first-child { margin-top: 0; }
.b-code { margin: 20px 0 26px; padding: 16px 20px; background: var(--bg-raise); border: 1px solid var(--rule); overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink); max-width: 44em; }
.b-list { list-style: none; margin: 14px 0 30px; border-top: 1px solid var(--rule); counter-reset: item; max-width: 40em; }
.b-list li { position: relative; padding: 14px 0 15px 2.4em; border-bottom: 1px solid var(--rule); }
ul.b-list li::before { content: ""; position: absolute; left: 0; top: 1.42em; width: 0.95em; height: 1px; background: var(--ink-3); }
ol.b-list li::before { counter-increment: item; content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.b-links { list-style: none; margin: 18px 0 8px; border-top: 1px solid var(--rule); max-width: 860px; }
.b-links li { border-bottom: 1px solid var(--rule); }
.b-links a { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; column-gap: var(--gap); align-items: baseline; padding: 17px 12px 18px; margin: 0 -12px; text-decoration: none; transition: background-color 0.3s; }
.b-links a:hover { background: var(--hover); }
.l-label { color: var(--ink); font-size: 18px; line-height: 1.35; }
.l-note { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.l-go { color: var(--ink-3); transition: transform 0.4s var(--ease), color 0.3s; }
.b-links a:hover .l-go { color: var(--ink); transform: translateX(3px); }
.doc-end { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--rule); }
.doc-end h2 { color: var(--ink); margin-bottom: 14px; }
.doc-end ul { list-style: none; display: grid; gap: 12px; }
.doc-end li { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); padding-left: 1.4em; position: relative; }
.doc-end li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.7em; height: 1px; background: var(--ink-3); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(72px, 8vw, 120px); border-top: 1px solid var(--rule-strong); }
.pager-link { display: flex; flex-direction: column; gap: 12px; padding: 22px 0 8px; text-decoration: none; }
.pager-link.next { text-align: right; align-items: flex-end; }
.pager-title { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; font-weight: 340; max-width: 22em; transition: color 0.25s; color: var(--ink-2); }
.pager-link:hover .pager-title { color: var(--ink); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker { animation: rise 1.1s var(--ease) both; }
  .js .hn-in { animation: rise-in 1.25s var(--ease) both; }
  .js .hn-in.c0 { animation-delay: 0.1s; }
  .js .hn-in.c1 { animation-delay: 0.24s; }
  .hero-grid { animation: rise 1.1s var(--ease) 0.42s both; }
  .hero-foot { animation: rise 1.1s var(--ease) 0.6s both; }
  .cross { animation: fade 1.4s var(--ease) 0.8s both; }
  .cue-line::after { animation: cue 2.2s var(--ease-io) 1.4s infinite; }

  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .sec-head.reveal, .js .about-grid.reveal, .js .co-list.reveal { transform: none; }
  .js .reveal .wi { transform: translateY(110%); transition: transform 1.1s var(--ease); }
  .js .reveal.in .wi { transform: none; }
  .js .wi.d1 { transition-delay: 0.06s; }
  .js .wi.d2 { transition-delay: 0.12s; }
  .js .wi.d3 { transition-delay: 0.18s; }
  .js .wi.d4 { transition-delay: 0.24s; }
  .js .wi.d5 { transition-delay: 0.3s; }
  .js .wi.d6 { transition-delay: 0.36s; }
  .js .wi.d7 { transition-delay: 0.42s; }
  .js .wi.d8 { transition-delay: 0.48s; }
  .js .wi.d9 { transition-delay: 0.54s; }
  .js .reveal.sec-head::before, .js .reveal.about-grid::before { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.05s; }
  .js .reveal.in.sec-head::before, .js .reveal.in.about-grid::before { transform: scaleX(1); }

  /* "backwards", so that once a row is in, its opacity belongs to the hover dimming again */
  .js .co-list.reveal { opacity: 1; }
  .js .co-list.reveal:not(.in) .co-link { opacity: 0; transform: translateY(26px); }
  .js .co-list.reveal.in .co-link { animation: rise 1s var(--ease) backwards; }
  .js .co-list.reveal.in .co-row:nth-child(2) .co-link { animation-delay: 0.06s; }
  .js .co-list.reveal.in .co-row:nth-child(3) .co-link { animation-delay: 0.12s; }
  .js .co-list.reveal.in .co-row:nth-child(4) .co-link { animation-delay: 0.18s; }
  .js .co-list.reveal.in .co-row:nth-child(5) .co-link { animation-delay: 0.24s; }
  .js .co-list.reveal.in .co-row:nth-child(6) .co-link { animation-delay: 0.3s; }
  .js .co-list.reveal.in .co-row:nth-child(7) .co-link { animation-delay: 0.36s; }
  .js .co-list.reveal.in .co-row:nth-child(8) .co-link { animation-delay: 0.42s; }
  .js .co-list.reveal.in .co-row:nth-child(n + 9) .co-link { animation-delay: 0.48s; }

  .live-dot::after { animation: pulse 2.4s var(--ease) infinite; }
  .js .now-item.reveal:nth-child(even) { transition-delay: 0.12s; }
  .js .memo-cards li.reveal:nth-child(2) { transition-delay: 0.12s; }
  .js .foot-mark.reveal { transform: translateY(40%); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
  .js .foot-mark.reveal.in { transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1001px) {
  .js .method-grid.is-live .mt-step { transition: opacity 0.6s var(--ease), transform 1.1s var(--ease); }
  .js .method-grid.is-live .mt-step.in:not(.is-active) { opacity: 0.36; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 0.55; } }
@keyframes pulse { 0% { opacity: 0.6; transform: scale(0.4); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes flip { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: translateY(-16px); } 60%, 100% { transform: translateY(46px); } }

/* Reduced motion: hover states and fills still change, they just do not travel to get there. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .tc-cols { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .tc-meta { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .co-link { grid-template-columns: 3.4rem minmax(0, 1fr) auto 1.6rem; row-gap: 10px; }
  .co-num { grid-column: 1; grid-row: 1; }
  .co-name { grid-column: 2; grid-row: 1; }
  .co-sector { grid-column: 3; grid-row: 1; }
  .co-go { grid-column: 4; grid-row: 1; }
  .co-what { grid-column: 2 / 4; grid-row: 2; }
}

@media (max-width: 1080px) {
  .nav ul { gap: 18px; }
  .nav a { letter-spacing: 0.12em; font-size: 11.5px; }
  .crumb { display: none; }
}

/* A tall tablet screen would leave the poster mostly empty, so the hero takes its own height. */
@media (max-width: 1000px) and (min-width: 721px) and (orientation: portrait) {
  .hero { min-height: 0; padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); }
}

@media (max-width: 1000px) {
  .hero-lead { grid-column: 1 / -1; }
  .hero-actions { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; margin-top: 28px; }
  .about-label { grid-column: 1 / -1; margin-bottom: 18px; }
  .about-text { grid-column: 1 / -1; }
  .sec-index { grid-column: 1 / -1; margin-bottom: 26px; }
  .sec-titles { grid-column: 1 / -1; }
  .method-grid { display: block; }
  .mt-rail { display: none; }
  .mt-step { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .mt-num, .mt-main { grid-column: 1 / -1; }
  .mt-meta { grid-column: 1 / -1; grid-row: 3; grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .now-list { grid-template-columns: 1fr; }
  .human-plate { grid-column: 1 / 6; }
  .human-copy { grid-column: 7 / -1; }
  .contact-context { grid-column: 1 / -1; }
  .contact-facts { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
  .doc-toc { display: none; }
  .doc-body { grid-column: 1 / -1; }
  .doc-title { grid-column: 1 / -1; }
  .doc-dek { grid-column: 1 / 12; }
  .foot-col, .foot-col:first-child, .foot-col:nth-child(2) { grid-column: span 4; }
  .foot-note { grid-column: 1 / -1 !important; }
  .foot-note p:not(.label) { max-width: 40em; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  :root { --head-h: 64px; }
  /* The nav wraps under the name here, so the header scrolls away instead of covering anchors. */
  .no-js .site-head { position: relative; }
  .no-js .head-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 2px; }
  .no-js .nav { display: block; width: 100%; }
  .no-js .nav ul { flex-wrap: wrap; gap: 0 18px; }
  .memo-cards { grid-template-columns: 1fr; }
  .cross { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { min-height: auto; justify-content: flex-start; padding-top: 24px; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.13em; flex-wrap: wrap; row-gap: 6px; }
  .hero-clock { font-size: 11px; }
  .hero-name { font-size: 27.5vw; white-space: normal; line-height: 0.84; margin: 0.16em 0 0.22em -0.05em; }
  .hero-name .hn-word { display: block; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-note { font-size: 10.5px; letter-spacing: 0.12em; }
  .scroll-cue { display: none; }
  .about-text { font-size: 21px; line-height: 1.5; }
  .co-link { grid-template-columns: minmax(0, 1fr) 1.4rem; padding: 22px 0 24px; }
  .co-num { grid-column: 1; grid-row: 1; }
  .co-name { grid-column: 1 / -1; grid-row: 2; font-size: 38px; }
  .co-what { grid-column: 1 / -1; grid-row: 3; font-size: 16px; }
  .co-sector { display: block; grid-column: 1; grid-row: 1; justify-self: end; margin-right: 0.4rem; }
  .co-go { grid-column: 2; grid-row: 1; }
  .co-link:hover .co-name { transform: none; }
  .co-list:hover .co-row:not(:hover) .co-link { opacity: 1; }
  .mt-step { display: block; }
  .mt-num { display: block; margin-bottom: 12px; }
  .mt-meta { grid-template-columns: 1fr; }
  .tc-head { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .tc-of { display: none; }
  .tc-pos { font-size: 27px; }
  .now-link { grid-template-columns: 2.4rem minmax(0, 1fr) 1.2rem; }
  .memo-card:hover { transform: none; }
  .human-grid { display: block; }
  .human-plate { width: 64%; max-width: 280px; margin-bottom: 32px; }
  .human-text { font-size: 20px; }
  .contact-grid { display: block; }
  .contact-mail { font-size: 8.2vw; white-space: nowrap; }
  .copy-btn { display: none; }
  .contact-context { grid-template-columns: 1fr; margin-top: 32px; }
  .contact-facts { grid-template-columns: 1fr; margin-top: 12px; }
  .doc-head { display: block; }
  .doc-dek { margin-top: 22px; }
  .prose { font-size: 17.5px; }
  .b-links a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .l-note { grid-column: 1 / -1; grid-row: 2; }
  .l-go { grid-column: 2; grid-row: 1; }
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; align-items: flex-start; }
  .foot-col, .foot-col:first-child, .foot-col:nth-child(2) { grid-column: span 6; }
  .foot-mark { font-size: 15vw; }
}

@media print {
  body::before, .site-head, .menu, .tabs, .doc-toc, .site-foot .foot-mark, .hero-actions, .hero-canvas, .hero-light, .scroll-cue, .ticker, .co-preview, .cross { display: none !important; }
  :root { --bg: #fff; --ink: #000; --ink-body: #111; --ink-2: #333; --ink-3: #555; --rule: #ccc; --rule-strong: #999; --bg-raise: #f4f4f4; --bg-card: #fff; }
  html, body { background: #fff; color: #000; }
  .hero { min-height: 0 !important; }
  .hero-name { transform: none !important; }
  .reveal, .js .reveal, .co-link, .js .co-list.reveal .co-link { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .reveal .wi { transform: none !important; }
  /* a filtered list still prints whole */
  .co-list .co-row[hidden] { display: block !important; }
  .thesis-card { position: static !important; transform: none !important; margin: 0 0 16px !important; box-shadow: none !important; }
  .thesis-card::after { display: none; }
  .thesis-card, .memo-card, .mt-step, .co-link { break-inside: avoid; }
  .about-text.is-live .lw { color: inherit !important; }
}
