/* ---------- Eichendorffschule AI Club ---------- */

:root {
  --bg: #07090E;
  --bg-soft: #0B0E15;
  --surface: #0E1219;
  --surface-2: #131826;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ECEEF2;
  --text-dim: #9098A6;
  --text-muted: #5C6473;
  --accent: oklch(0.68 0.18 252);
  --accent-soft: oklch(0.45 0.14 252 / 0.18);
  --accent-glow: oklch(0.7 0.2 252 / 0.45);
  --good: oklch(0.75 0.16 165);
  --warn: oklch(0.78 0.15 75);
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --font-sans: "Space Grotesk", ui-sans-serif, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.45 0.14 252 / 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, oklch(0.45 0.14 252 / 0.06), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Layout ---------- */

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

section { padding: 96px 0; position: relative; }
section + section { border-top: 1px solid var(--border); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background:
    linear-gradient(135deg, oklch(0.7 0.18 252 / 0.4), transparent 60%),
    var(--surface);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 22px -6px var(--accent-glow);
  pointer-events: none;
}
.brand-text { font-size: 14.5px; }
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 4px;
  font-size: 13.5px;
}
.nav-links a {
  padding: 8px 12px;
  color: var(--text-dim);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--accent);
  margin: 4px auto 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.nav-cta:hover { border-color: var(--accent); background: var(--surface-2); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-dim); background: var(--surface); }
.btn-accent {
  background: var(--accent);
  color: #06080F;
  border-color: var(--accent);
}
.btn-accent:hover { box-shadow: 0 0 0 4px var(--accent-soft); }
.btn .arrow { transition: transform 0.18s; font-family: var(--font-mono); }
.btn:hover .arrow { transform: translateX(3px); }

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

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--border-strong);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 720px;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-dim);
  max-width: 420px;
  margin: 0;
  font-size: 15px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-accent {
  color: var(--accent);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-top: 80px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  width: max-content;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--good);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--good);
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(120deg, var(--accent), oklch(0.85 0.1 252));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-meta > div {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
}
.hero-meta > div:last-child { border-right: none; }
.hero-meta .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.hero-meta .value {
  font-size: 18px;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

/* ---------- Metrics ---------- */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.metric {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.metric:nth-child(4n) { border-right: none; }
.metric:nth-last-child(-n+4) { border-bottom: none; }
.metric .num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.metric .num .unit {
  color: var(--accent);
  font-size: 0.6em;
  margin-left: 2px;
}
.metric .lbl {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.metric .tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  position: relative;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card .meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* Image / media placeholder */
.media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 8px,
      rgba(255,255,255,0.05) 8px,
      rgba(255,255,255,0.05) 16px
    ),
    var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, oklch(0.7 0.18 252 / 0.06), transparent 60%);
  pointer-events: none;
}

/* Tags / chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.chip.accent {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

/* ---------- News / features ---------- */

.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.news-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.news-card .media { aspect-ratio: 16/10; }
.news-card.large .media { aspect-ratio: 16/11; }
.news-card .date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.news-card h3 { font-size: 18px; }
.news-card.large h3 { font-size: 24px; line-height: 1.2; }
.news-card .excerpt { color: var(--text-dim); font-size: 14px; }

/* ---------- Project cards ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.proj-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; height: 100%; }
.proj-card .media { aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--border); border-radius: 0; flex-shrink: 0; }
.proj-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-card h3 { font-size: 15px; margin: 0; letter-spacing: -0.015em; }
.proj-card .desc { color: var(--text-dim); font-size: 12.5px; margin: 0; line-height: 1.5; }
.proj-card .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.proj-card .stats > div {
  padding: 14px 0 0;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.proj-card .stats > div:last-child { border-right: none; padding-right: 0; padding-left: 12px; }
.proj-card .stats .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.proj-card .stats .v {
  font-family: var(--font-mono);
  font-size: 15px;
  margin-top: 4px;
}
.proj-card .links {
  display: flex; gap: 8px;
  margin-top: auto;
}

/* ---------- Join CTA ---------- */

.join {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 56px;
  background:
    radial-gradient(circle at 100% 0%, oklch(0.7 0.18 252 / 0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, oklch(0.7 0.18 252 / 0.08), transparent 50%),
    var(--surface);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 80% at 100% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 50%, #000, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.join h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.join p { color: var(--text-dim); margin: 0 0 24px; max-width: 50ch; }
.join-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.join-side {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
.join-side .row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.join-side .row:last-child { border-bottom: none; }
.join-side .row span:last-child { color: var(--text); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: 64px;
  background: var(--bg-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 400;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); }
.foot-grid ul a:hover { color: var(--text); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.foot-socials { display: flex; gap: 14px; }
.foot-socials a { color: var(--text-dim); transition: color 0.15s; }
.foot-socials a:hover { color: var(--text); }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 80% -10%, oklch(0.45 0.14 252 / 0.13), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, oklch(0.45 0.14 252 / 0.07), transparent 60%);
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 30%, transparent 80%);
  opacity: 1;
}
.page-header canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.55;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 30%, #000 20%, transparent 80%);
}
.page-header .wrap { position: relative; z-index: 1; }
.page-header h1 {
  margin: 16px 0 16px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
  text-wrap: balance;
}
.page-header .lede {
  color: var(--text-dim);
  max-width: 60ch;
  font-size: 17px;
  margin: 0;
}
.page-header .meta-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.page-header .meta-bar span strong { color: var(--text); font-weight: 400; }

/* ---------- Tutorials ---------- */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tutorial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.tutorial:hover { border-color: var(--border-strong); }
.tutorial-top {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tut-num {
  color: var(--text);
}
.tut-diff {
  display: inline-flex; align-items: center; gap: 8px;
}
.tut-diff .bar { display: inline-flex; gap: 3px; }
.tut-diff .bar i {
  width: 4px; height: 9px;
  background: var(--text-muted);
  border-radius: 1px;
  display: inline-block;
}
.tut-diff .bar i.on { background: var(--accent); box-shadow: 0 0 4px var(--accent-glow); }
.tutorial-cover {
  aspect-ratio: 16/10;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, oklch(0.18 0.02 252) 0%, oklch(0.13 0.03 252) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.tutorial-cover::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
}
.tutorial-cover span { position: relative; z-index: 1; }
.tutorial-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tutorial-body h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -0.015em; font-weight: 500; }
.tutorial-body p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.tutorial-topics {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}
.tutorial-topics .row {
  display: flex; gap: 10px; align-items: baseline;
}
.tutorial-topics .row::before {
  content: "—"; color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.tutorial-foot {
  display: flex; gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  margin-top: auto;
}
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--accent); background: var(--surface); }
.icon-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.icon-btn.primary:hover { background: #fff; }

/* ---------- Curriculum path (tutorials) ---------- */
.path {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  left: 56px; right: 56px;
  top: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}
.path-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.path-step .node {
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  margin: 16px auto 14px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  display: grid; place-items: center;
  color: var(--text-dim);
}
.path-step.done .node {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.path-step h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.path-step p { margin: 0; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Research / experiment cards ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.research-grid .span-2 { grid-column: span 1; }
.research-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.research-card .figure {
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16/9;
  position: relative;
  position: relative;
  overflow: hidden;
}
.research-card.span-2 .figure { aspect-ratio: 16/9; }
.research-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.research-body h3 { font-size: 18px; margin: 0; letter-spacing: -0.015em; font-weight: 500; }
.research-body p { font-size: 13.5px; line-height: 1.5; }
.research-body .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.research-body .head .ix { font-size: 10.5px; }
.research-body .meta { font-size: 11px; }
.research-body h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 500; }
.research-body .ix { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.14em; }
.research-body p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.research-body .meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.research-body .meta > div .k {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.research-body .meta > div .v {
  color: var(--text);
  margin-top: 6px;
  font-size: 12.5px;
}

/* Plot / diagram styles for research figures */
.plot {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
}
.plot .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot .axis-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.member {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.member:hover { border-color: var(--border-strong); }
.member .portrait {
  aspect-ratio: 1/1;
  border-bottom: 1px solid var(--border);
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, rgba(255,255,255,0.05) 8px 16px),
    radial-gradient(circle at 50% 30%, oklch(0.45 0.14 252 / 0.18), transparent 60%),
    var(--surface-2);
  display: grid; place-items: center;
}
.member .portrait .initials {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
  opacity: 0.5;
}
.member .portrait .role-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 9px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-radius: 4px;
}
.member-body { padding: 18px 20px 20px; }
.member .portrait .initials { font-size: 40px; }
.member-body h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }
.member-body .role { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.member-body p { margin: 12px 0 0; color: var(--text-dim); font-size: 13.5px; }
.member-body .links {
  display: flex; gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.member-body .links a:hover { color: var(--accent); }

/* ---------- Apply form ---------- */
.apply {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.apply-info {
  padding: 40px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 0% 100%, oklch(0.7 0.18 252 / 0.1), transparent 60%),
    var(--surface);
}
.apply-info h3 { margin: 0 0 14px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.apply-info p { color: var(--text-dim); margin: 0 0 24px; }
.apply-info .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.apply-info .stats > div .k { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; }
.apply-info .stats > div .v { font-size: 22px; font-family: var(--font-mono); margin-top: 4px; }
.apply-form { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Resources ---------- */
.res-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 32px;
}
.res-toolbar input {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: none;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.res-toolbar input::placeholder { color: var(--text-muted); }
.res-toolbar .filter-tabs { display: flex; gap: 4px; }
.res-toolbar .tab {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.res-toolbar .tab:hover { color: var(--text-dim); }
.res-toolbar .tab.active { color: var(--text); border-color: var(--border-strong); background: var(--bg-soft); }
.res-toolbar .icon { color: var(--text-muted); font-family: var(--font-mono); }

.res-section { margin-bottom: 56px; }
.res-section h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 0 16px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.res-section h3 span { color: var(--text-dim); }
.res-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.res-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.res-item:hover { border-color: var(--accent); background: var(--surface-2); }
.res-item .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.res-item h4 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.res-item .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.res-item p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.res-item .source {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.res-item .source .arrow { transition: transform 0.15s; }
.res-item:hover .source .arrow { transform: translateX(2px); color: var(--accent); }

/* ---------- Filter category bar ---------- */
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-filters .cat {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-filters .cat:hover { color: var(--text); border-color: var(--border-strong); }
.cat-filters .cat.active { color: var(--bg); background: var(--text); border-color: var(--text); }
.cat-filters .cat .count {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 10px;
}
.cat-filters .cat.active .count { color: var(--bg); opacity: 0.5; }

/* ---------- Misc ---------- */
.divider {
  display: flex; align-items: center; gap: 16px;
  margin: 80px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid .news-card.large { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .res-list { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .path::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .lang-switch { display: none !important; }
  .brand-text { font-size: 13px; }
  .brand-text small { font-size: 9px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 0;
  }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-inner { position: relative; flex-wrap: wrap; gap: 8px; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero h1 { font-size: 42px; }
  .hero-inner { padding-top: 48px; gap: 28px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > div:nth-child(2n) { border-right: none; }
  .hero-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important; }
  .metric:nth-child(2n) { border-right: none !important; }
  .metric:nth-last-child(-n+2) { border-bottom: none !important; }
  .news-grid, .proj-grid, .tutorial-grid, .research-grid, .team-grid, .res-list { grid-template-columns: 1fr; }
  .research-grid .span-2 { grid-column: span 1; }
  .join { grid-template-columns: 1fr; padding: 32px; }
  .join-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
  .apply { grid-template-columns: 1fr; }
  .apply-info { border-right: none; border-bottom: 1px solid var(--border); padding: 28px; }
  .apply-form { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .section-head { margin-bottom: 32px; }
  .page-header .meta-bar { flex-wrap: wrap; gap: 10px 24px; justify-content: flex-start; }
  .page-header { padding: 64px 0 52px; }
}
@media (max-width: 480px) {
  section { padding: 48px 0; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-inner { padding-top: 32px; gap: 22px; }
  .hero-sub { font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > div { padding: 14px 16px; }
  .hero-meta .value { font-size: 15px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .metric:last-child { border-bottom: none !important; }
  .join { padding: 24px; }
  .join h2 { font-size: 26px; }
  .apply-info, .apply-form { padding: 20px; }
  .areas-bar { grid-template-columns: 1fr; }
  .areas-bar .area { border-right: none; border-bottom: 1px solid var(--border); }
  .areas-bar .area:last-child { border-bottom: none; }
  .page-header { padding: 52px 0 40px; }
  .page-header h1 { font-size: clamp(28px, 8vw, 38px); }
  .section-head h2 { font-size: 26px; }
  .foot-grid { gap: 28px; }
  .chip { font-size: 10px; padding: 3px 6px; }
}

/* ---------- Research areas bar ---------- */
.areas-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.areas-bar .area {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  transition: background 0.15s;
}
.areas-bar .area:last-child { border-right: none; }
.areas-bar .area:hover { background: var(--surface-2); }
.areas-bar .area .ix {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.areas-bar .area .nm { font-size: 14.5px; letter-spacing: -0.005em; }
.areas-bar .area .ct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
@media (max-width: 720px) {
  .areas-bar { grid-template-columns: 1fr 1fr; }
  .areas-bar .area:nth-child(2n) { border-right: none; }
  .areas-bar .area:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .awards-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Lang switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
  margin-right: 6px;
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-switch button.on {
  background: var(--text);
  color: var(--bg);
}
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---------- Cursor affordances ---------- */
a, button,
.btn, .nav-cta, .icon-btn,
.cat-filters .cat,
.res-toolbar .tab,
.lang-switch button,
.nav-toggle,
.nav-links a,
.res-item,
.tutorial,
.area,
[role="button"],
label,
select,
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}
input[type="text"], input[type="email"], textarea { cursor: text; }
.btn:disabled, button:disabled { cursor: not-allowed; }

/* ---------- Image fills inside media / figure / cover / portrait ---------- */
.media img,
.tutorial-cover img,
.research-card .figure img,
.member .portrait img,
.news-card .media img,
.proj-card .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Let media/cover/portrait contain the absolutely-positioned <img> */
.media, .tutorial-cover, .research-card .figure, .member .portrait, .proj-card .media, .news-card .media {
  position: relative;
}
/* When an image is present we drop the placeholder chip styling (diagonal stripes + text) */
.media:has(img) {
  background: var(--surface-2);
}
.media:has(img)::after { opacity: 0; }
.tutorial-cover:has(img) { background: var(--surface-2); }
.tutorial-cover:has(img)::before { opacity: 0; }
.tutorial-cover:has(img) span { display: none; }
.member .portrait:has(img) { background: var(--surface-2); }
.member .portrait:has(img) .initials { display: none; }
/* Subtle gradient overlay on images for text legibility of any tags on top */
.member .portrait:has(img)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,14,0.45) 0%, transparent 40%);
  pointer-events: none;
}
.news-card .media:has(img) { background: var(--surface-2); }
.proj-card .media:has(img) { background: var(--surface-2); }

/* ---------- Enhanced home hero background ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 140px;
  background:
    radial-gradient(1100px 640px at 82% -5%, oklch(0.55 0.18 252 / 0.22), transparent 65%),
    radial-gradient(900px 500px at -10% 30%, oklch(0.55 0.18 252 / 0.14), transparent 65%),
    radial-gradient(700px 500px at 50% 110%, oklch(0.55 0.18 252 / 0.10), transparent 70%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(120,160,230,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,230,0.09) 1px, transparent 1px),
    linear-gradient(rgba(120,160,230,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,230,0.18) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 280px 280px, 280px 280px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 95%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, oklch(0.7 0.2 252 / 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero canvas {
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 75% 80% at 50% 45%, #000 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 45%, #000 40%, transparent 95%);
}
.page-header canvas { opacity: 0.75; }
.page-header::before {
  background-image:
    linear-gradient(rgba(120,160,230,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,230,0.08) 1px, transparent 1px);
}

/* ---------- JuFo award strip (used on research page) ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.awards-grid figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.awards-grid figure .pic {
  aspect-ratio: 4/3;
  position: relative;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.awards-grid figure .pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.awards-grid figcaption {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.awards-grid figcaption .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.awards-grid figcaption h4 {
  margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
}
.awards-grid figcaption p {
  margin: 4px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
@media (max-width: 720px) { .awards-grid { grid-template-columns: 1fr; } }

/* ---------- CS50 / no-image placeholder ---------- */
.media-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 8px,
      rgba(255,255,255,0.05) 8px, rgba(255,255,255,0.05) 16px),
    var(--surface-2);
}

/* ---------- 3-col proj-card tweaks ---------- */
.proj-card .meta-row { font-size: 10px; margin-bottom: 10px; }
.proj-card .chip { font-size: 10px; padding: 3px 6px; }
.proj-card .links { gap: 6px; margin-top: auto; padding-top: 16px; }
.proj-card .icon-btn { font-size: 10.5px; padding: 8px 10px; }

/* ---------- Multi-tag filter (projects page) ---------- */
/* Active tags are additive: a card shows if it has ALL active tags */
.proj-card[hidden] { display: none !important; }

/* ---------- Team 4-col portrait size ---------- */
.team-grid .member .portrait .initials { font-size: 32px; }
.team-grid .member-body h3 { font-size: 15px; }
.team-grid .member-body .role { font-size: 10px; }
.team-grid .member-body p { font-size: 12.5px; }

/* ---------- Image fit utilities ---------- */
/* Full height, white fill on both sides */
.img-contain {
  background: #fff !important;
}
.img-contain img {
  object-fit: contain !important;
  object-position: center !important;
  margin: auto !important;
  inset: 0 !important;
}

/* Full height, white fill on left side only (image anchored to the right) */
.img-contain-left {
  background: #fff !important;
}
.img-contain-left img {
  object-fit: contain !important;
  object-position: right center !important;
}
