:root {
  --bg: #0a1220;
  --bg2: #0f1b2e;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --ink: #0f1b2f;
  --muted: #4f617b;
  --line: rgba(19, 35, 58, 0.12);
  --accent: #0c66d6;
  --accent-soft: #e8f1ff;
  --gold: #8c6b2f;
  --shadow: 0 30px 80px rgba(6, 18, 36, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef3fb 0%, #e9eff8 100%);
}

.background-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(12, 102, 214, 0.12), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(140, 107, 47, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(12, 102, 214, 0.08), transparent 26%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 28px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(244,248,253,0.82));
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.2;
}

h3 { margin: 0 0 8px; font-size: 1rem; }

p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: 1.14rem;
  max-width: 58ch;
}

.hero-meta, .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-inline {
  margin-top: 16px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--ink);
}

.contact-inline a {
  font-weight: 700;
}

.hero-meta span, .tags span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
}

.portrait-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(20, 34, 58, 0.18);
  border: 6px solid rgba(255,255,255,0.92);
}

.tabs {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 12px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(12, 23, 41, 0.1);
  backdrop-filter: blur(16px);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  color: white;
  background: linear-gradient(135deg, var(--accent), #084ea6);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.grid.two, .thesis-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 20px;
}

.card {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.statement {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.5;
  color: #18304f;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.stats span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.feature-list, .link-list {
  margin: 0;
  padding-left: 18px;
}

.feature-list li, .link-list li {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.muted-line {
  color: var(--gold);
  font-weight: 600;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.method-grid > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.method-grid p { margin-bottom: 0; }

.pub-list {
  display: grid;
  gap: 16px;
}

.pub-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.pub-item p { margin: 0 0 10px; }

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .hero, .grid.two, .thesis-grid, .method-grid {
    grid-template-columns: 1fr;
  }

  .tabs { position: static; }
}
