/* === Portfolio — Chahel Paatur ===================================== */
:root {
  --bg: #0a0a0c;
  --bg-deep: #060608;
  --surface: #111114;
  --surface-2: #16161a;
  --line: #1d1d22;
  --line-2: #27272e;
  --text: #ececef;
  --text-dim: #8a8a92;
  --text-mute: #5a5a62;
  --accent: oklch(0.82 0.13 235);
  --accent-soft: oklch(0.82 0.13 235 / 0.14);
  --accent-line: oklch(0.82 0.13 235 / 0.45);
  --radius: 14px;
  --maxw: 1400px;
  --pad-x: 56px;
  --grid: 1px solid var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
.mono { font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* subtle grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: overlay;
}

/* === NAV =========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-mark {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.04em;
}
.nav-mark .dot {
  width: 6px; height: 6px;
  background: var(--text);
  transform: rotate(45deg);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.nav-links {
  display: flex; gap: 4px;
}
.nav-links a {
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color .2s, background .2s;
  display: inline-flex; gap: 8px; align-items: center;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a .idx { color: var(--text-mute); font-size: 10.5px; }
.nav-cta {
  font-size: 12.5px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s;
}
.nav-cta:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.nav-cta svg { width: 12px; height: 12px; }

/* === HERO ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad-x) 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  overflow: hidden;
}

.hero-meta-top {
  position: absolute;
  top: 96px; left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta-top .pair { display: flex; gap: 18px; }
.hero-meta-top .sep { color: var(--line-2); }

.hero-left {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 70px;
  z-index: 2;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow .bar {
  width: 28px; height: 1px; background: var(--accent);
}

.hero-name {
  margin-top: 18px;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hero-name .ln { display: block; }
.hero-name .ln.indent { padding-left: 0.6em; }
.hero-name em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero-name .accent-mark {
  display: none;
}
.hero-name .ko {
  -webkit-text-stroke: 1px var(--text);
  color: transparent;
}

.hero-tag {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 540px;
}
.hero-tag p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.55;
}
.hero-tag p strong { color: var(--text); font-weight: 500; }

.role-strip {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px;
  color: var(--text);
}
.role-strip .chip {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
}
.role-strip .chip.accent {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

/* === PORTRAIT ====================================================== */
.hero-right {
  position: relative;
  display: flex; align-items: end; justify-content: center;
}
.portrait-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  perspective: 1200px;
  cursor: crosshair;
}
.portrait-frame {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--bg-deep);
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  filter: brightness(0.42) saturate(0.55) contrast(1.05);
  transition: filter .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.portrait-stage:hover .portrait-img {
  filter: brightness(1.02) saturate(1) contrast(1);
}
.portrait-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0) 50%, rgba(10,10,12,0.85) 100%);
  z-index: 3;
  pointer-events: none;
  transition: opacity .5s;
}
.portrait-stage:hover .portrait-veil { opacity: 0.5; }
.portrait-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  z-index: 4;
  transform: translateZ(60px);
}
.portrait-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.portrait-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.portrait-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.portrait-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.portrait-tag {
  position: absolute;
  z-index: 4;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10,10,12,0.7);
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  transform: translateZ(60px);
  backdrop-filter: blur(8px);
}
.portrait-tag.t1 { top: 18px; left: 18px; }
.portrait-tag.t2 { bottom: 18px; right: 18px; color: var(--accent); border-color: var(--accent-line); }
.portrait-tag.hover-show {
  bottom: 18px; left: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.portrait-stage:hover .portrait-tag.hover-show { opacity: 1; }

/* === MARQUEE ======================================================= */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-item {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
}
.marquee-item .sub {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marquee-item.dim {
  color: var(--text-mute);
  -webkit-text-stroke: 1px var(--line-2);
}
.marquee-sep {
  width: 12px; height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* === SECTION SHELL ================================================= */
section.block {
  position: relative;
  padding: 120px var(--pad-x);
  border-top: 1px solid var(--line);
}
.block-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}
.block-tag {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.block-tag::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.block-title {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-weight: 500;
}
.block-title em {
  font-family: "Instrument Serif", serif;
  font-style: normal;
  color: var(--text-dim);
  font-weight: 400;
}

/* === ABOUT ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-bio {
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 600px;
}
.about-bio em {
  font-family: "Instrument Serif", serif;
  font-style: normal;
  color: var(--text-dim);
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: start;
}
.about-meta .cell {
  background: var(--bg);
  padding: 22px 24px;
}
.about-meta .label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.about-meta .val {
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.about-meta .val.lg { font-size: 22px; letter-spacing: -0.02em; }

/* === PROJECTS ====================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  border-radius: 6px;
  display: flex; flex-direction: column;
  min-height: 460px;
  transition: border-color .3s, transform .4s cubic-bezier(.2,.7,.2,1), background .3s;
  overflow: hidden;
  cursor: pointer;
}
.project::before {
  content: ""; position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.project:hover { border-color: var(--line-2); background: var(--surface-2); }
.project:hover::before { opacity: 1; }
.project.span-7 { grid-column: span 7; }
.project.span-5 { grid-column: span 5; }
.project.span-6 { grid-column: span 6; }
.project.span-4 { grid-column: span 4; }
.project.span-8 { grid-column: span 8; }
.project.span-12 { grid-column: span 12; }

.project .row {
  display: flex; justify-content: space-between; align-items: start;
  position: relative; z-index: 1;
}
.project .num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.project .status {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.project .status.live::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent);
}
.project .status.amber::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgb(255, 127, 0);
  box-shadow: 0 0 8px rgba(255, 127, 0, 0.7);
}
.project .status.amber { color: rgb(255, 170, 90); border-color: rgba(255, 127, 0, 0.4); }
.project .status.r::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.7 0.14 60);
}

.project .visual {
  flex: 1;
  margin: 28px 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
  z-index: 1;
}
.project .name {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
  position: relative; z-index: 1;
}
a.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a.project-link:hover {
  color: var(--accent);
}
.project .sub {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
  position: relative; z-index: 1;
}
.project .desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 14px;
  max-width: 90%;
  position: relative; z-index: 1;
}
.project .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
  position: relative; z-index: 1;
}
.project .tags span {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  text-transform: uppercase;
}

/* === PROJECT CARD THEMES =========================================== */
.project.theme-red {
  --accent: oklch(0.65 0.19 25);
  --accent-soft: oklch(0.65 0.19 25 / 0.14);
  --accent-line: oklch(0.65 0.19 25 / 0.5);
}
.project.theme-orange {
  --accent: oklch(0.74 0.16 55);
  --accent-soft: oklch(0.74 0.16 55 / 0.14);
  --accent-line: oklch(0.74 0.16 55 / 0.5);
}
.project.theme-violet {
  --accent: oklch(0.74 0.14 290);
  --accent-soft: oklch(0.74 0.14 290 / 0.14);
  --accent-line: oklch(0.74 0.14 290 / 0.5);
}
.project.theme-red .name,
.project.theme-orange .name,
.project.theme-violet .name {
  color: var(--accent);
}

.palantir-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.55);
  white-space: nowrap;
}
.palantir-badge img { height: 36px; width: auto; object-fit: contain; }
.cp-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text);
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.cp-mark-text { color: var(--text); }
.palantir-mark {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  text-transform: none;
}
.lead-logo.palantir-wordmark {
  width: auto; height: 52px;
  border: 0;
  background: transparent;
  justify-content: flex-start;
  padding-left: 2px;
}
.lead-logo.palantir-wordmark .mono {
  font-family: "Geist", sans-serif;
  font-size: 20px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* CORNER LOGOS for the Lang card */
.corner-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.corner-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  background: rgba(10,10,12,0.5);
  border-radius: 6px;
  transition: border-color .2s, background .2s;
}
.corner-logo:hover { border-color: var(--accent-line); background: rgba(10,10,12,0.75); }
.corner-logo img {
  height: 28px; width: auto;
  max-width: 38px;
  object-fit: contain;
}
.corner-logo span {
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Theme: Gaussian + NeuroLang — dual-accent navy card */
.project.theme-lang {
  --accent: oklch(0.72 0.1 240);
  --accent-soft: oklch(0.72 0.1 240 / 0.14);
  --accent-line: oklch(0.72 0.1 240 / 0.5);
  background: linear-gradient(135deg, oklch(0.18 0.04 240) 0%, var(--surface) 60%);
}
.project.theme-lang .name {
  background: linear-gradient(90deg,
    oklch(0.78 0.1 240) 0%,
    oklch(0.78 0.12 25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* project visuals */
.viz-aether {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.viz-aether .core {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.viz-aether .core::before, .viz-aether .core::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  animation: rot 18s linear infinite;
}
.viz-aether .core::after {
  inset: -20px; border-style: solid; border-color: var(--line);
  animation-duration: 30s; animation-direction: reverse;
}
.viz-aether .dot {
  position: absolute; width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.viz-aether .label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.1em;
}
@keyframes rot {
  to { transform: rotate(360deg); }
}

.viz-drone {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.viz-drone svg {
  width: 100%; max-width: 260px;
  color: var(--text-dim);
}
.viz-drone .ping {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 3s ease-out infinite;
  opacity: 0;
}
.viz-drone .ping.d2 { animation-delay: 1s; }
.viz-drone .ping.d3 { animation-delay: 2s; }
@keyframes ping {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.viz-sauron {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.viz-sauron .grid {
  width: 220px; height: 140px;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 14.28% 100%;
}
.viz-sauron .node {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  transform: translate(-50%, -50%);
}
.viz-sauron .target {
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.6s ease-in-out infinite;
}
.viz-sauron .line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left center;
  opacity: 0.6;
}

.viz-gauss {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  position: relative;
}
.viz-gauss pre {
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: 4px;
  line-height: 1.6;
  font-size: 11.5px;
  color: var(--text);
}
.viz-gauss .kw { color: var(--accent); }
.viz-gauss .cm { color: var(--text-mute); }
.viz-gauss .nm { color: oklch(0.85 0.1 80); }

.viz-fdir {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.viz-fdir .panel {
  width: 100%; max-width: 280px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 14px 16px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-dim);
}
.viz-fdir .panel .ln { display: flex; justify-content: space-between; padding: 3px 0; }
.viz-fdir .panel .ln.ok { color: var(--text-dim); }
.viz-fdir .panel .ln.warn { color: oklch(0.8 0.15 60); }
.viz-fdir .panel .ln.crit { color: oklch(0.7 0.18 25); }
.viz-fdir .panel .ln .v { color: var(--text); }
.viz-fdir .panel hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

.viz-atlas {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.viz-atlas .cube {
  width: 120px; height: 120px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubespin 18s linear infinite;
}
.viz-atlas .face {
  position: absolute; inset: 0;
  border: 1px solid var(--accent-line);
  background: rgba(10,10,12,0.4);
}
.viz-atlas .f1 { transform: translateZ(60px); }
.viz-atlas .f2 { transform: rotateY(90deg) translateZ(60px); }
.viz-atlas .f3 { transform: rotateY(180deg) translateZ(60px); }
.viz-atlas .f4 { transform: rotateY(-90deg) translateZ(60px); }
.viz-atlas .f5 { transform: rotateX(90deg) translateZ(60px); }
.viz-atlas .f6 { transform: rotateX(-90deg) translateZ(60px); }
@keyframes cubespin {
  to { transform: rotateX(360deg) rotateY(360deg); }
}

/* === RESEARCH ====================================================== */
.research-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.research-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 120px 100px;
  gap: 24px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: background .3s, padding .3s;
  position: relative;
}
.research-row:hover { background: var(--surface); padding-left: 24px; }
.research-row .yr {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.research-row .ttl {
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.research-row .desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.research-row .venue {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.research-row .arrow {
  display: flex; justify-content: end;
  color: var(--text-mute);
  transition: color .3s, transform .3s;
}
.research-row:hover .arrow { color: var(--accent); transform: translateX(6px); }

/* === PATENTS ======================================================= */
.patents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.patent {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  min-height: 240px;
}
.patent .ref {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.patent .ref::before {
  content: ""; width: 8px; height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.patent .name {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex: 1;
}
.patent .meta {
  margin-top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === CONTACT ======================================================= */
.contact {
  padding: 140px var(--pad-x) 80px;
  border-top: 1px solid var(--line);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.contact-title {
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.contact-title em {
  font-family: "Instrument Serif", serif;
  font-style: normal;
  color: var(--text-dim);
  font-weight: 400;
}
.contact-mail {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 36px;
  font-size: 22px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 8px;
  transition: border-color .3s, color .3s;
}
.contact-mail:hover { border-color: var(--accent); color: var(--accent); }
.contact-mail svg { width: 18px; height: 18px; }

.contact-meta {
  display: flex; flex-direction: column; gap: 20px;
  padding-bottom: 14px;
}
.contact-meta .field {
  display: flex; flex-direction: column; gap: 4px;
}
.contact-meta .label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-meta .val {
  font-size: 16px;
  color: var(--text);
}
.contact-meta .val a {
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.contact-meta .val a:hover { border-color: var(--accent); color: var(--accent); }

/* === FOOTER ======================================================== */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer .clock { display: flex; align-items: center; gap: 12px; }
.footer .clock .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.7 0.14 145);
  box-shadow: 0 0 8px oklch(0.7 0.14 145);
}

/* === MOUSE CURSOR FOLLOWER (subtle) =============================== */
.cursor-orb {
  position: fixed;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* === REVEAL ON SCROLL ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* === LETTER STAGGER ================================================= */
.letter {
  display: inline-block;
  transform: translateY(0.9em);
  opacity: 0;
  animation: letterIn 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  will-change: transform, opacity;
}
@keyframes letterIn {
  to { transform: translateY(0); opacity: 1; }
}

/* === HERO NAME SCROLL DIVERGENCE =================================== */
.hero-name {
  overflow: visible;
}
.hero-name .ln {
  display: block;
  white-space: nowrap;
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}
.hero-name .ln.line-paatur { display: inline-block; }

/* === BLOCK TITLE WIPE REVEAL ======================================= */
.block-title {
  position: relative;
}
.block-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 1s cubic-bezier(.65,.05,.36,1);
}
.block-head.in .block-title::after,
.block-title.in::after {
  transform: scaleX(0);
}

/* === SCRAMBLE ====================================================== */
.scramble {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* === DRAW-IN HAIRLINE under section heads ========================== */
.block-head {
  position: relative;
}
.block-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -32px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) 0.2s;
}
.block-head.in::after { transform: scaleX(1); }

/* === RESPONSIVE (rough) ============================================ */
@media (max-width: 1080px) {
  :root { --pad-x: 32px; }
  .hero { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects { grid-template-columns: 1fr; }
  .project[class*="span-"] { grid-column: span 12; }
  .patents { grid-template-columns: 1fr; }
  .research-row { grid-template-columns: 60px 1fr 60px; }
  .research-row .desc, .research-row .venue { display: none; }
  .hire { grid-template-columns: 1fr; }
  .schools { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
}

/* === 3D-FEEL SCENES (CSS 3D + SVG) ================================= */

/* DRONE — isometric tilted quadcopter */
.drone3d {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 800px;
  perspective-origin: 50% 30%;
}
.drone3d-stage {
  position: relative;
  width: 320px; height: 220px;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-25deg);
  animation: droneHover 6s ease-in-out infinite;
}
@keyframes droneHover {
  0%, 100% { transform: rotateX(60deg) rotateZ(-25deg) translateZ(0); }
  50% { transform: rotateX(60deg) rotateZ(-25deg) translateZ(12px); }
}
.drone-grid {
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 12.5% 100%;
  opacity: 0.35;
  transform: translateZ(-30px);
}
.drone-body {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.drone-arm {
  position: absolute;
  left: 50%; top: 50%;
  width: 200px; height: 8px;
  background: linear-gradient(90deg, transparent, #2a2a30 20%, #2a2a30 80%, transparent);
  transform-origin: center;
  border-radius: 3px;
}
.drone-arm.a1 { transform: translate(-50%, -50%) rotate(35deg); }
.drone-arm.a2 { transform: translate(-50%, -50%) rotate(-35deg); }
.drone-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: #16161a;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transform: translateZ(6px);
  display: flex; align-items: center; justify-content: center;
}
.drone-fpv {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent), 0 0 0 4px rgba(0,0,0,0.4) inset;
  transform: translateZ(8px);
}
.drone-motor {
  position: absolute;
  width: 36px; height: 36px;
  background: #0e0e11;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transform: translateZ(4px);
}
.drone-motor.m1 { left: calc(50% + 80px - 18px); top: calc(50% - 56px - 18px); }
.drone-motor.m2 { left: calc(50% - 80px - 18px); top: calc(50% - 56px - 18px); }
.drone-motor.m3 { left: calc(50% + 80px - 18px); top: calc(50% + 56px - 18px); }
.drone-motor.m4 { left: calc(50% - 80px - 18px); top: calc(50% + 56px - 18px); }
.drone-motor::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px dashed rgba(91, 177, 232, 0.18);
  border-radius: 50%;
}
.drone-prop {
  position: absolute; inset: 0;
  transform: translateZ(8px);
  animation: spinProp 0.12s linear infinite;
}
.drone-prop::before, .drone-prop::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  width: 50px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translate(-50%, -50%);
  filter: blur(0.4px);
  opacity: 0.7;
}
.drone-prop::after { transform: translate(-50%, -50%) rotate(60deg); }
.drone-prop.r { animation-direction: reverse; }
@keyframes spinProp { to { transform: translateZ(8px) rotate(360deg); } }
.drone-disc {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,177,232,0.08), transparent 70%);
  transform: translateZ(8px);
}

/* AETHER — wireframe icosahedron + orbiting rings */
.aether3d {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 800px;
}
.aether-icos {
  position: relative;
  width: 80%; max-width: 280px;
  height: auto;
  color: var(--accent);
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(91,177,232,0.25));
}
.aether-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.aether-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.aether-ring.r1 {
  width: 86%; aspect-ratio: 1;
  border-color: rgba(91,177,232,0.4);
  animation: aetherRot1 12s linear infinite;
}
.aether-ring.r2 {
  width: 70%; aspect-ratio: 1;
  border: 1px dashed rgba(255,255,255,0.12);
  transform: rotateX(70deg);
  animation: aetherRot2 8s linear infinite;
}
.aether-ring.r3 {
  width: 96%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.06);
  transform: rotateY(60deg);
  animation: aetherRot3 18s linear infinite reverse;
}
@keyframes aetherRot1 { to { transform: rotate(360deg); } }
@keyframes aetherRot2 { to { transform: rotateX(70deg) rotate(360deg); } }
@keyframes aetherRot3 { to { transform: rotateY(60deg) rotate(360deg); } }
.aether-mark {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  z-index: 3;
}
.aether-ascii {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: 0;
  color: rgba(255, 127, 0, 0.92);
  white-space: pre;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 127, 0, 0.35);
}
.aether-mark-sub {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* HUMANOID — Atlas figure */
.humanoid3d {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: end; justify-content: center;
  perspective: 1000px;
}
.humanoid-svg {
  width: auto; height: 100%;
  max-height: 320px;
  color: var(--accent);
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(91,177,232,0.2));
  animation: humSway 5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes humSway {
  0%, 100% { transform: rotateY(-6deg); }
  50% { transform: rotateY(6deg); }
}
.humanoid-floor {
  position: absolute;
  bottom: 6%; left: 50%;
  transform: translateX(-50%);
  width: 75%; aspect-ratio: 1;
  background: radial-gradient(ellipse at center,
    rgba(91,177,232,0.18) 0%,
    rgba(91,177,232,0.04) 30%,
    transparent 60%);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(72deg);
  z-index: 1;
  animation: humPulse 3s ease-in-out infinite;
}
@keyframes humPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.humanoid-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  border: 1px solid var(--accent-line);
  padding: 4px 8px;
  background: rgba(10,10,12,0.7);
  z-index: 3;
}
.hum-arm-l { transform-origin: 63px 95px; animation: humArmL 4s ease-in-out infinite; }
.hum-arm-r { transform-origin: 137px 95px; animation: humArmR 4s ease-in-out infinite; }
@keyframes humArmL {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}
@keyframes humArmR {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-3deg); }
}
.hum-head { transform-origin: 100px 92px; animation: humHead 6s ease-in-out infinite; }
@keyframes humHead {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* === STL 3D VIEWER ================================================= */
.stl-viewer {
  width: 100%; height: 100%;
  min-height: 380px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}
.stl-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
  cursor: grab;
}
.stl-viewer canvas:active { cursor: grabbing; }
.stl-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  z-index: 4;
}
.stl-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: stlSpin 0.8s linear infinite;
}
@keyframes stlSpin { to { transform: rotate(360deg); } }
.stl-pct {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.stl-error {
  font-size: 11px;
  color: #e44;
  letter-spacing: 0.04em;
}
.stl-label {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  border: 1px solid var(--accent-line);
  padding: 4px 8px;
  background: rgba(10,10,12,0.7);
  z-index: 3;
  pointer-events: none;
}
.stl-hint {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  pointer-events: none;
  z-index: 3;
}

/* === GAUSSIAN VIZ (overrides) ====================================== */
.viz-gauss {
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  align-items: stretch;
  justify-content: center;
}
.viz-gauss .editor {
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: 4px;
  padding: 0;
  font-family: "Geist Mono", monospace;
  position: relative;
  overflow: hidden;
}
.viz-gauss .editor-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.viz-gauss .editor-bar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2);
}
.viz-gauss .editor-bar .dot.live { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.viz-gauss .editor-bar .name { margin-left: 8px; color: var(--text-dim); }
.viz-gauss .editor-body {
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text);
  min-height: 88px;
  white-space: pre-wrap;
}
.viz-gauss .editor-body .caret {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }
.viz-gauss .kw { color: var(--accent); }
.viz-gauss .cm { color: var(--text-mute); }
.viz-gauss .nm { color: oklch(0.85 0.1 80); }
.viz-gauss .console {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  display: flex; flex-direction: column; gap: 3px;
  min-height: 64px;
}
.viz-gauss .console .ok { color: oklch(0.78 0.12 145); }
.viz-gauss .console .ac { color: var(--accent); }

/* === HIRE ME ======================================================== */
.hire {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: stretch;
  padding: 120px var(--pad-x);
  border-top: 1px solid var(--line);
  position: relative;
  background:
    radial-gradient(1200px 600px at 30% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hire-left { display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.hire-eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.hire-eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: var(--accent);
}
.hire-title {
  font-size: clamp(64px, 9vw, 144px);
  letter-spacing: -0.045em;
  line-height: 0.88;
  font-weight: 500;
}
.hire-title .stroke {
  -webkit-text-stroke: 1px var(--text);
  color: transparent;
}
.hire-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.55;
}
.hire-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.btn-primary:hover { background: oklch(from var(--accent) calc(l + 0.05) c h); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-mute); color: var(--text); }
.btn svg { width: 14px; height: 14px; }

.hire-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: stretch;
}
.hire-stat { background: var(--bg); padding: 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 190px; position: relative; }
.hire-stat .stat-icon {
  width: 60px; height: 60px;
  color: var(--text-mute);
  opacity: 0.85;
  margin-top: 2px;
}
.hire-stat .label { margin-top: auto; }
.hire-stat .num {
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 500;
}
.hire-stat .num .small { font-size: 0.5em; color: var(--text-dim); margin-left: 2px; }
.hire-stat .label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto;
}

/* === SCHOOLS ======================================================== */
.schools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.school {
  border: 0;
  background: transparent;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.school:hover { background: var(--surface-2); }
.school .top {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: auto;
}
.school .crest {
  width: 72px; height: 72px;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.school .crest img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.school .crest .mono {
  font-family: "Geist Mono", monospace;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.school .crest.kimball { border-color: oklch(0.55 0.12 280 / 0.5); }
.school .crest.kimball .mono { color: oklch(0.85 0.13 280); }
.school .crest.washington { border-color: oklch(0.6 0.14 25 / 0.5); }
.school .crest.washington .mono { color: oklch(0.82 0.13 25); }
.school .crest.uw { border-color: oklch(0.55 0.13 300 / 0.6); }
.school .crest.uw .mono { color: oklch(0.85 0.12 300); }
.school .crest::before, .school .crest::after {
  content: none; position: absolute;
  width: 6px; height: 6px;
  border: 1px solid currentColor;
}
.school .crest::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.school .crest::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.school .top .meta { display: flex; flex-direction: column; gap: 4px; }
.school .top .meta .tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.school .name {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 500;
}
.school .loc {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.school .years {
  margin-top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}

/* === CERTIFICATIONS ================================================ */
.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cert {
  background: var(--bg);
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s;
  min-height: 220px;
  position: relative;
}
.cert:hover { background: var(--surface); }
.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cert .issuer {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert .year {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.cert .name {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-weight: 500;
}
.cert .cert-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  flex: 1;
}
.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: auto;
}
.cert .skills {
  display: flex; flex-wrap: wrap; gap: 4px;
  max-width: 65%;
}
.cert .skills span {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  text-transform: uppercase;
}
.cert .logo {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  flex-shrink: 0;
  overflow: hidden;
}
.cert .logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.cert .logo.logo-circle {
  width: 80px; height: 80px;
}
.cert .logo.logo-wide {
  width: 150px; height: 54px;
}
.cert .logo.logo-harvard {
  width: 110px; height: 54px;
}
.cert .logo.logo-circle img, .cert .logo.logo-wide img, .cert .logo.logo-harvard img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

/* === LEADERSHIP ==================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lead-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px;
  min-height: 240px;
  transition: border-color .3s, background .3s, transform .3s;
  position: relative;
  overflow: hidden;
}
.lead-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.lead-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.lead-logo {
  width: 52px; height: 52px;
  border: 1px solid var(--line-2);
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.lead-logo img { max-width: 78%; max-height: 78%; object-fit: contain; }
.lead-logo.lead-logo-wide {
  width: 160px; height: 52px;
  border: 0;
  background: transparent;
  justify-content: flex-start;
}
.lead-logo.lead-logo-wide img { max-width: 100%; max-height: 100%; }
.lead-logo.lead-logo-square {
  width: 64px; height: 64px;
  border: 0;
  background: transparent;
  padding: 0;
}
.lead-logo.lead-logo-square img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.lead-logo .mono {
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.lead-role {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: 1;
}
.lead-name {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 10px;
}
.lead-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}
.lead-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: start;
  transition: color .25s, gap .25s;
}
.lead-card:hover .lead-cta { color: var(--accent); gap: 10px; }

/* === FOOTER SOCIAL ICONS =========================================== */
.social-row {
  display: flex; align-items: center; gap: 14px;
}
.social-row a {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, transform .2s, background .2s;
}
.social-row a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.social-row img {
  width: 10px; height: 10px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  transition: filter .2s;
}
.social-row a:hover img { filter: none; }
