/* Layout concept: a light, geometric identity built from the logo itself.
   The quarter-circle mark becomes a tile system (hero), corner motifs and markers.
   Single deliberate light theme: white paper, ink, one red. */
:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --sunken: #EFEFEA;
  --ink: #121417;
  --muted: #565A61;
  --rule: #DCDCD5;
  --tile-soft: #E3E3DC;
  --accent: #C8102E;
  --accent-ink: #FFFFFF;
  --accent-soft: #FBE7EA;
  --st-open: #1A6A41;
  --st-open-bg: #E1F0E6;
  --st-active: #1D49C4;
  --st-active-bg: #E4EBFA;
  --st-done: #565A61;
  --st-done-bg: #E9E9E3;
  --shadow: 0 1px 0 rgba(18, 20, 23, 0.04), 0 14px 34px -20px rgba(18, 20, 23, 0.28);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-deva: "Noto Serif Devanagari", "Nirmala UI", "Kohinoor Devanagari", serif;
  --f-brand: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --s-1: clamp(2.6rem, 1.2rem + 5vw, 5.2rem);
  --s-2: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
  --s-body: 1.0625rem;
  --s-small: 0.9375rem;
  --s-label: 0.75rem;

  --radius: 4px;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
}

img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; font-family: var(--f-display);
}
.skip:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; display: block; }
.mark-arc { fill: var(--ink); }
.mark-sq { fill: var(--accent); }
.wordmark { font-family: var(--f-brand); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark-light { font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: var(--radius); white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); margin-left: 6px; }
.nav .nav-cta:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.08); }
@media (max-width: 720px) {
  .header-inner { padding-block: 10px 6px; }
  .nav { width: calc(100% + 8px); order: 2; gap: 0; }
  .nav a { padding: 8px 6px; font-size: 0.88rem; }
  .nav .nav-cta { margin-left: auto; padding-inline: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header .mark-arc { transform-origin: 12% 88%; animation: arc-in 700ms cubic-bezier(.2,.7,.2,1) both; }
  .site-header .mark-sq { animation: sq-in 420ms 520ms cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes arc-in { from { transform: scale(0.15); } to { transform: scale(1); } }
@keyframes sq-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Shared */
.eyebrow, .section-label {
  font-family: var(--f-mono); font-size: var(--s-label); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.section-label { display: inline-flex; align-items: center; gap: 10px; }
.section-label::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: var(--ink); border-top-right-radius: 100%;
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--sunken); border-block: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 780px; }
.section-head h2 { font-size: var(--s-2); line-height: 1.08; }
.section-sub { color: var(--muted); max-width: 58ch; }
.section-head-row { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; }
.section-head-row > div { display: grid; gap: 14px; }
.section-aside { color: var(--muted); font-size: var(--s-small); max-width: 44ch; }
@media (max-width: 820px) { .section-head-row { grid-template-columns: minmax(0, 1fr); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--s-1); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; max-width: 12ch; }
.h1-accent { color: var(--accent); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.tiles-fig { margin: 0; display: grid; gap: 12px; min-width: 0; }
.tiles { display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; touch-action: manipulation; cursor: pointer; }
@media (max-width: 920px) { .tiles { aspect-ratio: 5 / 3; } }
.tiles-cap { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }

/* Band */
.band { border-block: 2px solid var(--ink); background: var(--surface); }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band-grid p { padding: 26px 28px 28px 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink); min-width: 0; }
.band-grid p + p { padding-left: 28px; border-left: 1px solid var(--rule); }
.band-k { display: block; font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
@media (max-width: 860px) {
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .band-grid p, .band-grid p + p { padding: 20px 0; border-left: 0; }
  .band-grid p + p { border-top: 1px solid var(--rule); }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--rule); }
.steps li { position: relative; display: grid; gap: 8px; padding-right: 20px; align-content: start; min-width: 0; }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: 0.85rem; font-weight: 500; position: relative;
}
.steps li:last-child .step-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps h3 { font-size: 1.12rem; margin-top: 8px; }
.steps p { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps::before { left: 17px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; padding-right: 0; }
  .steps li .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 4px; }
}

.commitments {
  margin-top: clamp(40px, 5vw, 64px); padding: 28px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px 40px;
}
.commit-h { font-size: 1.2rem; }
.commitments ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.commitments li { font-size: var(--s-small); color: var(--muted); padding-left: 20px; position: relative; }
.commitments li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 10px; height: 10px; background: var(--accent); border-top-right-radius: 100%; }
.commitments strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .commitments { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .commitments ul { grid-template-columns: minmax(0, 1fr); }
}

/* Projects */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tabs button {
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--muted);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 16px; min-height: 42px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.tabs button:hover { color: var(--ink); border-color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.8; }

.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; margin-bottom: 24px; }
.project {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.project:hover { border-color: var(--muted); transform: translateY(-2px); box-shadow: var(--shadow); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.area-tag { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; line-height: 1.4; display: inline-flex; align-items: center; gap: 6px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-open { color: var(--st-open); background: var(--st-open-bg); }
.chip-active { color: var(--st-active); background: var(--st-active-bg); }
.chip-completed { color: var(--st-done); background: var(--st-done-bg); }
.chip-draft { color: var(--muted); background: transparent; border: 1px dashed var(--rule); }
.chip-draft::before { display: none; }
.project h3 { font-size: 1.3rem; line-height: 1.2; }
.project-sum { color: var(--muted); font-size: var(--s-small); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.project-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.link-btn {
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: transparent; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px;
  min-height: 44px;
}
.link-btn:hover { color: var(--accent); }
.empty {
  grid-column: 1 / -1; padding: 32px 24px; color: var(--muted);
  border: 1px dashed var(--rule); border-radius: 6px; background: var(--surface); display: grid; gap: 8px;
}
.empty strong { color: var(--ink); font-family: var(--f-display); font-size: 1.1rem; }

.call {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px 48px; align-items: center;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; padding: clamp(24px, 4vw, 44px);
}
.call-mark svg { width: 100%; max-width: 180px; display: block; }
.call-mark path { fill: var(--ink); }
.call-mark rect { fill: var(--accent); }
.call-body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.call-k { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.call h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.12; }
.call-body > p:not(.call-k) { color: var(--muted); max-width: 54ch; }
.call-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
@media (max-width: 720px) {
  .call { grid-template-columns: minmax(0, 1fr); }
  .call-mark svg { max-width: 72px; }
}

/* Research */
.research-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .research-grid { grid-template-columns: minmax(0, 1fr); } }
.areas { display: grid; border-top: 2px solid var(--ink); }
.area { padding: 22px 0 22px 34px; display: grid; gap: 6px; border-bottom: 1px solid var(--rule); position: relative; min-width: 0; }
.area::before {
  content: ""; position: absolute; left: 0; top: 27px; width: 18px; height: 18px;
  background: var(--ink); border-top-right-radius: 100%;
}
.area:nth-child(2)::before { background: var(--accent); }
.area h3 { font-size: 1.35rem; }
.area p { color: var(--muted); font-size: var(--s-small); }

.specimen {
  margin: 0; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--shadow); display: grid;
}
.spec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.spec-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.spec-toggle button {
  font: inherit; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  background: transparent; border: 0; padding: 6px 10px; cursor: pointer; min-height: 32px;
}
.spec-toggle button + button { border-left: 1px solid var(--rule); }
.spec-toggle button.is-on { background: var(--ink); color: var(--paper); }
.spec-body { padding: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 24px); display: grid; gap: 16px; min-height: 196px; align-content: center; }
.spec-line { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: flex-end; margin: 0; }
.tok-t {
  display: inline-block;
  font-family: var(--f-deva); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.35; color: var(--ink);
  padding: 2px 8px; border: 1px solid transparent; border-radius: 3px;
  transition: border-color 260ms ease, background-color 260ms ease;
}
.tok.is-split .tok-t { border-color: var(--rule); background: var(--paper); }
.tok.is-split:nth-child(odd) .tok-t { border-color: #E9B3BC; background: var(--accent-soft); }
.spec-bytes { display: flex; flex-wrap: wrap; gap: 4px; }
.byte {
  font-family: var(--f-mono); font-size: 0.72rem; line-height: 1; color: var(--ink);
  padding: 5px 4px; border-radius: 2px; background: var(--paper); border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.byte.lead { background: var(--accent-soft); border-color: #E9B3BC; }
.byte.ascii { background: var(--surface); }
@media (prefers-reduced-motion: no-preference) { .byte { animation: byte-in 300ms ease both; } }
@keyframes byte-in { from { transform: translateY(4px); opacity: 0.2; } to { transform: none; opacity: 1; } }
.spec-gloss { font-style: italic; color: var(--muted); font-size: 1rem; }
.spec-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.spec-stats div { padding: 12px 16px; display: grid; gap: 2px; }
.spec-stats div + div { border-left: 1px solid var(--rule); }
.spec-stats dt { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-stats dd { margin: 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.spec-stats div:last-child dd { color: var(--accent); }
.spec-note { padding: 12px 16px 16px; border-top: 1px solid var(--rule); font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

/* People */
.people-groups { display: grid; gap: 40px; }
.people-group { display: grid; gap: 16px; }
.group-h { font-family: var(--f-mono); font-size: var(--s-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; align-items: start; }
.photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; background: var(--sunken); }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 650; font-size: 1.6rem;
}
.avatar-open { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); font-weight: 400; font-size: 2rem; }
.person-open { background: transparent; border-style: dashed; }
.person-body { display: grid; gap: 6px; min-width: 0; }
.person h3 { font-size: 1.25rem; }
.role { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.affil { font-size: 0.92rem; color: var(--ink); }
.bio { color: var(--muted); font-size: var(--s-small); }
.research-tags { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.research-tags li {
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid #E9B3BC;
  padding: 4px 9px; border-radius: 999px; line-height: 1.3;
}
.points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.points li { font-size: var(--s-small); color: var(--ink); padding-left: 16px; position: relative; line-height: 1.45; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--ink); border-top-right-radius: 100%; }
.person-links { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 420px) {
  .person { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .photo, .avatar { width: 72px; height: 72px; }
}

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pub { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 4px 32px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.pub-meta { grid-row: span 3; display: grid; gap: 4px; align-content: start; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
.pub-year { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.pub h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; line-height: 1.35; }
.pub-authors { font-size: var(--s-small); }
.pub-note { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 720px) {
  .pub { grid-template-columns: minmax(0, 1fr); }
  .pub-meta { grid-row: auto; display: flex; gap: 12px; }
}

/* Join */
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.join-card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px); border: 2px solid var(--ink); border-radius: 6px;
  display: grid; gap: 14px; align-content: start; justify-items: start; background: var(--surface);
}
.join-corner { position: absolute; right: -1px; top: -1px; width: 56px; height: 56px; background: var(--accent); border-bottom-left-radius: 100%; }
.join-card h3 { font-size: 1.55rem; padding-right: 56px; }
.join-card > p { color: var(--muted); max-width: 46ch; }
.contact-line { font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr { font-family: var(--f-mono); font-size: 0.88rem; color: var(--ink); user-select: all; }
.copy {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 4px 8px; cursor: pointer; min-height: 30px;
}
.copy:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 760px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding-block: 48px 24px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-brand { display: grid; gap: 8px; justify-items: start; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-name { font-family: var(--f-display); font-weight: 650; font-size: 1.1rem; }
.footer-expand { color: var(--muted); font-size: 0.9rem; max-width: 38ch; }
.footer-col { display: grid; gap: 6px; align-content: start; font-size: 0.92rem; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-h { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-base { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* Modal */
.modal {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
}
.modal::backdrop { background: rgba(18, 20, 23, 0.5); }
.modal-inner { position: relative; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--sunken); color: var(--ink); }
.modal h2 { font-size: 1.7rem; line-height: 1.15; padding-right: 40px; }
.modal .project-top { padding-right: 48px; }
.modal .modal-h { margin-top: 8px; }
.modal-q { font-style: italic; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 14px; }
.modal-sum { color: var(--muted); }
.modal .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .modal .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 0.75rem; padding: 4px 8px; border: 1px solid var(--rule); border-radius: var(--radius); }
.modal-h { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.apply-box { padding: 18px; background: var(--sunken); border-radius: 6px; display: grid; gap: 10px; justify-items: start; }
.apply-box p { font-size: 0.95rem; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 0.8rem; padding: 10px 14px; border-radius: var(--radius); z-index: 60;
}
