/*----------------------------------------------------------
  Homepage styles (index.html)
  Standalone: blog and other pages still use main.css
----------------------------------------------------------*/

:root {
  --bg: #0b0f14;
  --bg-alt: #0f141b;
  --surface: #131a22;
  --surface-2: #19212b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f5;
  --text-2: #a9b2bf;
  --text-3: #707b89;
  --accent: #4ecca3;
  --accent-2: #61cdff;
  --accent-soft: rgba(78, 204, 163, 0.12);
  --hf: #ffd21e;
  --hf-ink: #1a1400;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-alt: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #6b7686;
  --accent: #14805e;
  --accent-2: #1d6fd1;
  --accent-soft: rgba(20, 128, 94, 0.1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 32px -24px rgba(15, 23, 42, 0.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #04140e; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #04140e; }
.btn-primary:hover { box-shadow: 0 8px 24px -8px var(--accent); }
.btn-hf { background: var(--hf); color: var(--hf-ink); }
.btn-hf:hover { box-shadow: 0 8px 24px -8px rgba(255, 210, 30, 0.7); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04140e; font-size: 13px; letter-spacing: 0.02em;
}
.brand-name { font-size: 15px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(600px 320px at 18% 30%, rgba(78, 204, 163, 0.16), transparent 70%),
    radial-gradient(520px 300px at 80% 20%, rgba(97, 205, 255, 0.12), transparent 70%),
    radial-gradient(420px 260px at 60% 70%, rgba(255, 210, 30, 0.06), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.5px;
  transition: border-color 0.2s ease;
}
.pill .icon:first-child { color: var(--hf); width: 20px; height: 20px; }
[data-theme="light"] .pill .icon:first-child { color: #c99a00; }
.pill strong { color: var(--text); }
.pill:hover { border-color: var(--border-strong); }

.hero-name { margin-top: 26px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.hero h1 { margin-top: 10px; font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 20px; max-width: 580px; font-size: 1.125rem; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.social { display: flex; gap: 6px; margin-top: 28px; list-style: none; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: var(--text-3); transition: color 0.2s ease, background 0.2s ease;
}
.social a:hover { color: var(--text); background: var(--surface-2); }
.social li:first-child a { color: var(--text-2); }

.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 400px; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.hero-photo::before {
  content: ''; position: absolute; inset: -1px; border-radius: 29px; z-index: -1;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  filter: blur(18px); opacity: 0.45;
}
.photo-tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78, 204, 163, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(78, 204, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(78, 204, 163, 0); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 64px 0 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stats > div { background: var(--surface); padding: 22px 24px; }
.stats dt { font-size: 13px; color: var(--text-3); }
.stats dd { margin: 4px 0 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; }

.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600;
}

/* Agents */
.agent-feature {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 32px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.agent-feature::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.agent-feature h3 { font-size: 1.6rem; margin: 14px 0 12px; }
.agent-feature p { color: var(--text-2); }
.agent-note { margin-top: 16px; font-size: 14px; color: var(--text-3) !important; }
.agent-note em { color: var(--text-2); }

.pipeline { list-style: none; position: relative; display: grid; gap: 8px; }
.pipeline::before {
  content: ''; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.4;
}
.pipeline li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 8px 14px 8px 0; font-size: 14.5px; color: var(--text);
}
.pipeline span {
  display: grid; place-items: center; width: 40px; height: 32px; flex-shrink: 0; border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--border-strong);
}
.pipeline-warn span { color: #e6bb00; border-color: rgba(255, 210, 30, 0.45); }
[data-theme="light"] .pipeline-warn span { color: #8a6a00; }
.js .pipeline li { opacity: 0; transform: translateX(-6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .agent-feature.in .pipeline li { opacity: 1; transform: none; }
.agent-feature.in .pipeline li:nth-child(2) { transition-delay: 0.08s; }
.agent-feature.in .pipeline li:nth-child(3) { transition-delay: 0.16s; }
.agent-feature.in .pipeline li:nth-child(4) { transition-delay: 0.24s; }
.agent-feature.in .pipeline li:nth-child(5) { transition-delay: 0.32s; }
.agent-feature.in .pipeline li:nth-child(6) { transition-delay: 0.40s; }
.agent-feature.in .pipeline li:nth-child(7) { transition-delay: 0.48s; }

.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.agent-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.agent-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.agent-card h3 { font-size: 1.2rem; }
.agent-card p { color: var(--text-2); font-size: 15px; }

/* Models */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.model-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.model-card-featured { grid-column: span 3; position: relative; overflow: hidden; }
.model-card-featured::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--hf), var(--accent), var(--accent-2));
}
.model-card-featured h3 { font-size: 1.6rem; }
.model-card-featured p { max-width: 760px; }
.model-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.model-meta { display: inline-flex; gap: 14px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.model-meta span { display: inline-flex; align-items: center; gap: 5px; }
.model-meta .icon { width: 15px; height: 15px; }
.model-card h3 { font-size: 1.2rem; }
.model-card h3 a { transition: color 0.2s ease; }
.model-card h3 a::after { content: ' \2197'; font-size: 0.8em; color: var(--text-3); }
.model-card h3 a:hover { color: var(--accent); }
.model-card p { color: var(--text-2); font-size: 15px; }

.metrics { display: flex; flex-wrap: wrap; gap: 28px; padding: 4px 0; }
.metrics div { font-size: 13px; color: var(--text-3); }
.metrics span { display: block; font-family: var(--mono); font-size: 1.35rem; font-weight: 500; color: var(--text); }

.formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.formats span {
  font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface-2);
}

.models-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.fine { font-size: 13px; color: var(--text-3); }

/* What I build */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); counter-reset: log; }
.log-row {
  display: grid; grid-template-columns: 180px 1fr 200px; gap: 32px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--border); counter-increment: log;
}
.log-tag { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding-top: 4px; }
.log-tag::before { content: counter(log, decimal-leading-zero) '  '; color: var(--text-3); white-space: pre; }
.log-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.log-body p { color: var(--text-2); max-width: 620px; }
.log-fig { text-align: right; }
.log-fig strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; white-space: nowrap; }
.log-fig span { font-size: 13px; color: var(--text-3); }
.log-row:hover .log-fig strong { color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.about-grid .section-head { margin-bottom: 0; }
.lead-sm { font-size: 1.2rem; color: var(--text); }
.about-p { margin-top: 18px; color: var(--text-2); }
.lead-sm a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lead-sm a:hover { color: var(--accent); }
.org-links { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.org-title { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 12px; }
.org-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.org-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.org-links a:hover { border-color: var(--accent); color: var(--text); }
.about-p a { color: var(--accent); }
.about-p a:hover { text-decoration: underline; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 1.15rem; }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 15px; color: var(--text-2); }
.card .muted { color: var(--text-3); font-size: 14px; }
.date { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
details { border-top: 1px solid var(--border); padding-top: 12px; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; font-family: var(--mono); }
details[open] summary::before { content: '\2212 '; }
details ul { margin-top: 12px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
details strong { color: var(--text); font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.text-link:hover { text-decoration: underline; }

/* Publications */
.pubs { list-style: none; border-top: 1px solid var(--border); }
.pub { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--border); }
.pub-year { font-family: var(--mono); font-size: 14px; color: var(--text-3); padding-top: 3px; }
.pub h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pub h3 a:hover { color: var(--accent); }
.pub .muted { color: var(--text-3); font-size: 14.5px; max-width: 720px; }
.pubs-more { margin-top: 22px; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stack h3 { font-size: 14px; font-weight: 600; color: var(--text-3); margin-bottom: 14px; }
.stack p { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span {
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-list a:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-list .icon { width: 22px; height: 22px; color: var(--text-2); }
.contact-list span { display: flex; flex-direction: column; font-size: 14px; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.contact-list strong { color: var(--text); font-size: 15px; }
.contact-list li:first-child a { border-color: rgba(255, 210, 30, 0.45); }
.contact-list li:first-child .icon { color: var(--hf); }
[data-theme="light"] .contact-list li:first-child .icon { color: #c99a00; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a:hover { color: var(--text); }
.chess-egg { font-size: 20px; opacity: 0.35; transition: opacity 0.2s ease, color 0.2s ease; }
.chess-egg:hover { opacity: 1; color: var(--accent); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 68px 0 auto; margin: 0; flex-direction: column; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-btn { display: inline-grid; }
  .topbar-actions { margin-left: auto; }
  .model-grid, .edu-grid, .agent-grid { grid-template-columns: 1fr 1fr; }
  .agent-feature { grid-template-columns: 1fr; }
  .model-card-featured { grid-column: span 2; }
  .log-row { grid-template-columns: 150px 1fr; }
  .log-fig { grid-column: 2; text-align: left; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; justify-self: start; max-width: 112px; }
  .hero-photo img { border-radius: 22px; }
  .photo-tag { display: none; }
  .log-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .log-fig { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .stats > div { padding: 18px; }
  .stats dd { font-size: 1.5rem; }
  .model-grid, .edu-grid, .stack, .agent-grid { grid-template-columns: 1fr; }
  .model-card-featured { grid-column: auto; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .pub-link { justify-self: start; }
  .about-grid, .contact { grid-template-columns: 1fr; gap: 28px; }
  .brand-name { display: none; }
  .topbar-actions .btn-hf span { display: none; }
  .topbar-actions .btn-hf { width: 38px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .pipeline li { opacity: 1; transform: none; }
}
