/* ==========================================================================
   zamanian.de · "cold 1-bit" theme
   Flat and pixel-flavoured: hard 1px rules, no rounded corners, no shadows.
   Fonts: Geist (text, headlines) + Geist Pixel (labels, UI, data).
   Colours are tokens on :root; dark mode swaps paper and ink.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel";
  src: url("../fonts/geist-pixel-square.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3f6fa;
  --paper-2: #e6ebf2;
  --ink: #0b0f16;
  --ink-2: #2e3542;
  --muted: #667083;
  --rule: #0b0f16;
  --rule-soft: #cbd3de;
  --field: #9ec2ff;
  --on-field: #0b0f16;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-pixel: "Geist Pixel", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0d12;
    --paper-2: #131924;
    --ink: #e8edf4;
    --ink-2: #c1cad6;
    --muted: #8d97a7;
    --rule: #e8edf4;
    --rule-soft: #283140;
    --on-field: #0a0d12;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2 {
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.2rem, 1rem + 3.4vw, 3.9rem);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  background: var(--field);
  color: var(--on-field);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
::selection {
  background: var(--field);
  color: var(--on-field);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-pixel);
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- Pixel type ---------- */
.px,
.chip,
.btn,
.site-nav,
.lang-switch,
.hero-meta,
.proof,
.idx,
.step-top,
.when,
.venue,
.window-bar,
.note,
.site-footer {
  font-family: var(--font-pixel);
  font-weight: 500;
}
.chip,
.btn,
.site-nav,
.lang-switch,
.hero-meta,
.proof,
.step-top,
.note,
.site-footer {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Inverted label, like a selected menu item */
.chip {
  display: inline-block;
  padding: 4px 7px 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--field);
  color: var(--on-field);
}
.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-sm {
  padding: 10px 12px 9px;
  font-size: 0.8125rem;
}

/* ---------- Window (title bar + body) ---------- */
.window {
  border: 1px solid var(--rule);
  background: var(--paper);
}
.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 8px 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.2;
}
.window-bar::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
}
.window-body {
  padding: 18px 18px 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover {
  background: none;
  color: inherit;
}
.brand-tagline {
  padding-left: 12px;
  border-left: 1px solid var(--rule-soft);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-pixel);
  font-size: 0.875rem;
  font-weight: 500;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 7px 10px 6px;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  font-size: 0.8125rem;
}
.lang-switch a,
.lang-switch span {
  padding: 7px 8px 6px;
  line-height: 1;
  text-decoration: none;
}
.lang-switch [aria-current] {
  background: var(--ink);
  color: var(--paper);
}
.site-header .btn {
  padding: 9px 12px 8px;
  font-size: 0.8125rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 104px);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(40px, 7vw, 88px);
  color: var(--muted);
  font-size: 0.8125rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.cursor {
  width: 0.62em;
  height: 1.05em;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    background: transparent;
  }
}
.display {
  position: relative;
  font-size: clamp(2.6rem, 0.6rem + 5.4vw, 5.75rem);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.display em {
  font-family: var(--font-pixel);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.05em;
}
@media (min-width: 861px) {
  .display em {
    white-space: nowrap;
  }
}
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 7vw, 112px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
}
.lead {
  max-width: 32em;
  color: var(--ink-2);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  letter-spacing: -0.012em;
  line-height: 1.45;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.language-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
}
.hero-art .window-body {
  padding: 0;
  background: var(--field);
}
.dither {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 360;
  background: var(--on-field);
  -webkit-mask: url("../img/dither-field.png") center / 100% 100% no-repeat;
  mask: url("../img/dither-field.png") center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
/* Alternative hero graphics (site.yaml → heroArt) */
.art {
  display: block;
  width: 100%;
  background: var(--on-field);
  -webkit-mask: var(--src) center / 100% 100% no-repeat;
  mask: var(--src) center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
.art-histogram {
  aspect-ratio: 600 / 360;
  --src: url("../img/art-histogram.png");
}
.hero-net {
  position: relative;
}
.hero-net .art {
  aspect-ratio: 630 / 450;
}
.art-net-ink {
  background: var(--ink);
  --src: url("../img/art-network-ink.png");
}
.art-net-fill {
  position: absolute;
  inset: 0 0 auto;
  background: var(--field);
  --src: url("../img/art-network-fill.png");
}
.hero-strip figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  text-transform: uppercase;
}
.hero-strip {
  margin-top: clamp(40px, 6vw, 64px);
}
.hero-strip figcaption {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
}
.art-strip {
  aspect-ratio: 1200 / 132;
  background: var(--ink);
  --src: url("../img/art-strip.png");
}
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.proof li {
  padding: 13px 16px 12px;
}
.proof li:first-child {
  padding-left: 0;
}
.proof li + li {
  border-left: 1px solid var(--rule);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--rule);
}
.hero + .section {
  border-top: 0;
  padding-top: 0;
}
.sec-head {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-head h2 {
  max-width: 18ch;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
}
.split > .sec-head {
  margin-bottom: 0;
}

/* Services: three columns divided by hairlines */
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.col {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 12px;
  align-content: start;
  padding: 18px 28px 0;
}
.col:first-child {
  padding-left: 0;
}
.col + .col {
  border-left: 1px solid var(--rule);
}
.idx {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.col h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.6rem);
  letter-spacing: -0.035em;
}
.col > p:not(.idx) {
  color: var(--ink-2);
}
.list {
  display: grid;
  gap: 7px;
  align-self: start;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}
.list li {
  display: grid;
  grid-template-columns: 1.4em 1fr;
}
.list li::before {
  content: "→";
  color: var(--muted);
  font-family: var(--font-pixel);
}

/* Projects: meta column + description */
.projects {
  border-top: 1px solid var(--rule);
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 10px 32px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.project-meta {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}
.project-industry {
  justify-self: start;
  padding: 3px 6px 2px;
  background: var(--field);
  color: var(--on-field);
}
.project h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem);
  letter-spacing: -0.03em;
}
.project p:not(.project-meta) {
  max-width: 44em;
  color: var(--ink-2);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tags li {
  padding: 4px 7px 3px;
  border: 1px solid var(--rule);
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Why: label/text rows */
.rows {
  border-top: 1px solid var(--rule);
}
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 8px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.rows dt {
  font-weight: 600;
  letter-spacing: -0.015em;
}
.rows dd {
  color: var(--ink-2);
}

/* Process: one bordered strip of four steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 24px;
  background: var(--paper);
}
.step:first-child {
  background: var(--field);
  color: var(--on-field);
}
.step-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
}
.step h3 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.step > p:last-child {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.step:first-child > p:last-child {
  color: var(--on-field);
}
.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(40px, 7vw, 112px);
  align-items: start;
}
.about-text .chip {
  margin-bottom: 18px;
}
.about-text h2 {
  margin-bottom: 26px;
}
.about-text > p:not(.chip) {
  max-width: 36em;
  margin-bottom: 1em;
  color: var(--ink-2);
  font-size: 1.1rem;
}
.about-side {
  display: grid;
  gap: 20px;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.facts > div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.facts > div:first-child {
  padding-top: 0;
}
.facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.facts dt {
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  text-transform: uppercase;
  line-height: 1.9;
}
.facts dd {
  font-weight: 500;
}

/* Background: experience + publications */
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(40px, 6vw, 80px);
}
.col-title {
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.when {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.9;
  white-space: nowrap;
}
.role {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.org {
  display: block;
  color: var(--ink-2);
}
.pubs li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.pub-title {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.pubs a {
  text-decoration: none;
}
.pubs a:hover {
  text-decoration: underline;
}
.venue {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule-soft);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq summary:hover {
  text-decoration: underline;
}
.faq details p {
  max-width: 40em;
  padding-bottom: 20px;
  color: var(--ink-2);
}

/* Contact: the page dissolves into a flat field */
.contact {
  margin-top: clamp(24px, 4vw, 48px);
}
.edge {
  height: 80px;
  background: var(--field);
  -webkit-mask: url("../img/dither-band.png") 0 0 / 512px 80px repeat-x;
  mask: url("../img/dither-band.png") 0 0 / 512px 80px repeat-x;
  image-rendering: pixelated;
}
.field {
  padding-block: 16px clamp(64px, 9vw, 112px);
  background: var(--field);
  color: var(--on-field);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: end;
}
.field .chip {
  background: var(--on-field);
  color: var(--field);
}
.contact h2 {
  max-width: 13ch;
  margin: 18px 0 22px;
  font-size: clamp(2.6rem, 0.8rem + 5.4vw, 5.6rem);
}
.contact-text {
  max-width: 30em;
  font-size: 1.15rem;
}
.big-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 30px;
}
.big-link {
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}
.big-link:hover {
  background: var(--on-field);
  color: var(--field);
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 28px;
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  text-transform: uppercase;
}
.contact-meta a:hover {
  background: var(--on-field);
  color: var(--field);
}
.contact-note {
  margin-top: 10px;
  font-size: 0.95rem;
}
.field .window {
  border-color: var(--on-field);
  background: transparent;
}
.field .window-bar {
  background: var(--on-field);
  color: var(--field);
}
.next-title {
  margin-bottom: 8px;
  font-weight: 600;
}
.next {
  counter-reset: next;
}
.next li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--on-field) 28%, transparent);
  counter-increment: next;
  line-height: 1.45;
}
.next li::before {
  content: counter(next, decimal-leading-zero);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  line-height: 1.8;
}

/* ---------- Footer: a status bar ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  padding-block: 16px 15px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- CV page ---------- */
.cv {
  max-width: calc(980px + 2 * var(--gutter));
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}
.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.cv-head h1 {
  font-size: clamp(2.6rem, 1.2rem + 4.4vw, 4.8rem);
}
.cv-headline {
  margin: 14px 0 16px;
  font-family: var(--font-pixel);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.cv-section {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule-soft);
}
.cv-section > h2 {
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: uppercase;
}
.cv-summary {
  font-size: 1.05rem;
}
.cv-item + .cv-item {
  margin-top: 24px;
}
.cv-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 16px;
}
.cv-row + .cv-row {
  margin-top: 4px;
}
.cv-row h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.cv-org {
  margin-top: 2px;
  color: var(--ink-2);
}
.cv-text {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.cv-list {
  display: grid;
  gap: 12px;
}
.cv-list dt {
  font-weight: 600;
}
.cv-list dd {
  color: var(--ink-2);
}
.cv-langs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}
.cv-pubs {
  display: grid;
  gap: 16px;
}
.cv-pubs .pub-title {
  display: block;
  font-weight: 600;
  text-decoration: none;
}
.cv-pubs a.pub-title:hover {
  text-decoration: underline;
}
.authors {
  display: block;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.authors strong {
  color: var(--ink);
  font-weight: 600;
}
.print-only {
  display: none;
}

/* ---------- Legal pages, 404 ---------- */
.prose {
  max-width: calc(46rem + 2 * var(--gutter));
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}
.prose h1 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.8rem);
}
.prose h2 {
  margin: 32px 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.prose p {
  color: var(--ink-2);
}
.prose p + p {
  margin-top: 0.9em;
}
.prose .meta {
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  text-transform: uppercase;
}
.prose .note {
  margin: 12px 0 8px;
  padding: 12px 14px 11px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
mark.todo {
  padding: 0 4px;
  background: var(--field);
  color: var(--on-field);
  outline: 1px dashed var(--on-field);
}
.not-found {
  max-width: 34rem;
  margin-block: clamp(24px, 6vw, 72px);
}
.not-found h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
}
.not-found p + p {
  margin-top: 0.7em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1120px) {
  .brand-tagline {
    display: none;
  }
}
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .header-tools {
    margin-left: auto;
  }
  .hero-body,
  .split,
  .about,
  .columns,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 520px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .col {
    grid-row: auto;
    grid-template-rows: none;
    padding: 18px 0 28px;
  }
  .col + .col {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .brand-name {
    display: none;
  }
  .proof,
  .steps {
    grid-template-columns: 1fr;
  }
  .proof li {
    padding-left: 0;
  }
  .proof li + li {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .rows > div,
  .facts > div,
  .timeline li,
  .project {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cv-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cv-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cv-langs {
    grid-template-columns: 1fr;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
}

/* ---------- Print (CV → PDF) ---------- */
@media print {
  @page {
    size: A4;
    margin: 14mm 15mm;
  }
  :root {
    --paper: #ffffff;
    --paper-2: #f2f2f2;
    --ink: #0b0f16;
    --ink-2: #2e3542;
    --muted: #556070;
    --rule: #0b0f16;
    --rule-soft: #cfd5de;
    color-scheme: light;
  }
  html {
    font-size: 9.6pt;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .print-btn {
    display: none !important;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .cv {
    padding: 0;
  }
  .cv-head {
    padding-bottom: 12pt;
  }
  .cv-head h1 {
    font-size: 30pt;
  }
  .cv-section {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    padding-block: 9pt;
  }
  .cv-item + .cv-item {
    margin-top: 11pt;
  }
  .cv-item,
  .cv-pubs li {
    break-inside: avoid;
  }
  .cv-section > h2 {
    break-after: avoid;
  }
  .cv-pubs .pub-more {
    display: none;
  }
  .print-only {
    display: block;
  }
  .cv-pubs-note {
    margin-top: 10pt;
    color: var(--muted);
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* Hero without a side graphic (heroArt: strip) */
.hero-body > div:only-child {
  grid-column: 1 / -1;
}

/* Hero without the availability line: give the headline its own breathing room */
.hero .display:first-child {
  margin-top: clamp(28px, 6vw, 72px);
}
