:root {
  --ink: #172033;
  --muted: #5d6677;
  --line: #d9dee7;
  --paper: #fbfaf7;
  --white: #ffffff;
  --navy: #10233f;
  --blue: #235ea7;
  --teal: #087f75;
  --amber: #a65f09;
  --violet: #7754a4;
  --max: 1160px;
  --shadow: 0 18px 55px rgba(24, 37, 58, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--blue); }
img, iframe { max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 10px 16px; background: var(--white); border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217, 222, 231, 0.85); background: rgba(251, 250, 247, 0.93); backdrop-filter: blur(14px); }
.nav-wrap { width: min(var(--max), calc(100% - 40px)); min-height: 72px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: white; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.brand:hover { color: white; background: var(--blue); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.eyebrow, .kicker { margin: 0 0 0.85rem; color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker { color: var(--muted); letter-spacing: 0.1em; }
.eyebrow.light { color: #9ec6ff; }
.section { padding-block: 110px; }
.section-tint { background: #f0f3f6; }
.section-dark { color: white; background: var(--navy); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading > p { max-width: 480px; color: var(--muted); margin: 0; }

.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr); gap: 80px; align-items: center; padding-block: 100px; }
.hero h1 span { color: var(--blue); }
.hero-lede { max-width: 760px; margin-top: 30px; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.4rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 750; text-decoration: none; transition: 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--navy); }
.button.primary:hover { color: white; background: var(--blue); }
.button.secondary { border: 1px solid var(--line); background: white; }
.hero-panel { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.72); box-shadow: var(--shadow); }
.stats { margin: 0; }
.stats > div { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: baseline; padding-block: 18px; border-top: 1px solid var(--line); }
.stats dt { font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700; }
.stats dd { margin: 0; color: var(--muted); line-height: 1.25; }
.availability { margin: 18px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

.intro-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.prose { color: var(--muted); }
.prose.large { font-size: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.card-grid { display: grid; gap: 22px; }
.card-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-card { position: relative; min-height: 330px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.area-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -42px; bottom: -52px; border-radius: 50%; opacity: 0.13; background: currentColor; }
.area-card:hover { transform: translateY(-5px); color: inherit; box-shadow: var(--shadow); }
.area-card.cobalt { color: var(--blue); }
.area-card.teal { color: var(--teal); }
.area-card.amber { color: var(--amber); }
.area-card.violet { color: var(--violet); }
.area-card h3 { max-width: 430px; margin-top: 42px; color: var(--ink); font-size: 2rem; }
.area-card p { max-width: 490px; margin-top: 18px; color: var(--muted); }
.card-index { font-weight: 800; font-variant-numeric: tabular-nums; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 800; text-decoration: none; }
.text-link.standalone { color: var(--blue); }

.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 34px; align-items: center; padding: 30px 10px; border-bottom: 1px solid var(--line); }
.feature-row h3 { font-size: 1.55rem; }
.feature-row p { margin: 8px 0 0; color: var(--muted); }
.feature-row > a { font-weight: 800; text-decoration: none; white-space: nowrap; }
.feature-meta { display: flex; flex-direction: column; color: var(--muted); font-size: 0.82rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.split-callout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; align-items: center; }
.split-callout p { color: #c9d4e4; font-size: 1.1rem; }
.light-button { margin-top: 20px; color: var(--navy); background: white; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact-grid article { padding: 32px; background: var(--paper); }
.fact-grid h3 { margin-top: 24px; font-size: 1.2rem; }
.fact-grid p:not(.kicker) { margin-top: 8px; color: var(--muted); }

.page-hero { padding-block: 90px 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1000px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.page-hero .lede { max-width: 760px; margin-top: 28px; color: var(--muted); font-size: 1.25rem; }
.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: 0.9rem; }
.breadcrumbs a { text-decoration: none; }
.detail-layout { display: grid; grid-template-columns: 260px 1fr; gap: 80px; }
.detail-aside { position: sticky; top: 110px; align-self: start; }
.detail-aside ul { margin: 0; padding: 0; list-style: none; }
.detail-aside li { padding-block: 8px; border-bottom: 1px solid var(--line); }
.detail-aside a { color: var(--muted); text-decoration: none; }
.detail-main > section + section { margin-top: 80px; }
.detail-main h2 { margin-bottom: 28px; font-size: 2.3rem; }
.detail-main h3 { margin-bottom: 10px; }
.detail-main .prose { max-width: 780px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.project-card .project-meta { color: var(--blue); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.project-card h3 { margin-top: 14px; }
.project-card p { margin-top: 14px; color: var(--muted); }
.project-card ul { padding-left: 1.2em; color: var(--muted); }
.project-card a { color: var(--blue); font-weight: 750; text-decoration: none; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 40px 0; background: var(--line); border: 1px solid var(--line); }
.metric-strip div { padding: 24px; background: var(--paper); }
.metric-strip strong { display: block; font-family: Georgia, serif; font-size: 2rem; }
.metric-strip span { color: var(--muted); font-size: 0.9rem; }

.pub-year { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding-block: 34px; border-top: 1px solid var(--line); }
.pub-year > h2 { font-size: 1.6rem; color: var(--blue); }
.publication-list { display: grid; gap: 30px; }
.publication h3 { font-size: 1.28rem; line-height: 1.25; }
.publication p { margin: 8px 0 0; color: var(--muted); }
.publication .authors { color: var(--ink); }
.venue { font-style: italic; }
.badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; color: #7a4300; background: #ffedcb; font-size: 0.7rem; font-style: normal; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pub-links { display: flex; gap: 14px; margin-top: 10px; }
.pub-links a { color: var(--blue); font-size: 0.9rem; font-weight: 750; text-decoration: none; }

.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pdf-frame { width: 100%; min-height: 900px; border: 1px solid var(--line); border-radius: 12px; background: #eceff3; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
.contact-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.contact-list { margin: 0; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { color: var(--muted); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.site-footer { padding-block: 52px; color: #d4ddeb; background: #0b192e; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.site-footer strong { color: white; font-family: Georgia, serif; font-size: 1.2rem; }
.site-footer p { margin: 5px 0 0; color: #99a8bb; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-content: start; }
.footer-links a { color: white; font-size: 0.9rem; text-decoration: none; }

@media (max-width: 860px) {
  .section { padding-block: 76px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-block: 72px; }
  .hero-panel { max-width: 520px; }
  .intro-grid, .split-callout, .detail-layout, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .detail-aside { position: static; }
  .detail-aside ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .detail-aside li { border: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .shell, .nav-wrap { width: min(100% - 28px, var(--max)); }
  .nav-wrap { min-height: auto; padding-block: 14px; align-items: flex-start; }
  .site-nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
  .site-nav a { font-size: 0.82rem; }
  .card-grid.two-col, .project-grid, .metric-strip { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 12px; }
  .feature-meta { flex-direction: row; gap: 12px; }
  .pub-year { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { flex-direction: column; }
  .pdf-frame { min-height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
