﻿:root {
  color-scheme: light;
  --ink: #0b132b;
  --muted: #3b475e;
  --soft: #7b879a;
  --accent: #c46b2b;
  --accent-dark: #1f2a44;
  --bg: #f3f0ea;
  --panel: #ffffff;
  --edge: #e2e8f0;
  --shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
  --radius: 20px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(255, 214, 180, 0.6), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(173, 201, 255, 0.5), transparent 40%),
    var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

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

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  padding: 16px 0;
  background: linear-gradient(to bottom, rgba(248, 245, 240, 0.95), rgba(248, 245, 240, 0.5));
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--edge);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 40px 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--soft);
}

.lead {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--soft);
}

.hero-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.portrait {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-body ul {
  margin: 8px 0 16px;
  padding-left: 18px;
  color: var(--muted);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--soft);
  margin-bottom: 8px;
}

section {
  margin-top: 96px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: #fff;
  font-size: 0.85rem;
}

.accent {
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.15), rgba(31, 59, 92, 0.08));
  border-radius: var(--radius);
  padding: 48px;
}

.section-header {
  max-width: 600px;
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.project-logo {
  height: 36px;
  margin-bottom: 12px;
  object-fit: contain;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--soft);
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}

.card-link:hover {
  text-decoration: underline;
}

.publications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pub {
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 237, 0.98));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pub:hover,
.pub:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
  border-color: rgba(196, 107, 43, 0.28);
}

.pub-shell {
  position: relative;
  min-height: 240px;
}

.pub-front,
.pub-hover {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.pub-front {
  justify-content: flex-start;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pub-hover {
  justify-content: space-between;
  gap: 0;
  background:
    linear-gradient(160deg, rgba(11, 19, 43, 0.94), rgba(31, 42, 68, 0.94)),
    radial-gradient(circle at top right, rgba(196, 107, 43, 0.35), transparent 38%);
  color: #eef2ff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pub:hover .pub-front,
.pub:focus-within .pub-front {
  opacity: 0.06;
  transform: translateY(-6px);
}

.pub:hover .pub-hover,
.pub:focus-within .pub-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pub-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--accent);
}

.pub-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.pub-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft);
}

.pub-stats {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-stat {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 19, 43, 0.06);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.pub-summary {
  margin: 0;
  color: rgba(238, 242, 255, 0.92);
}

.pub-highlights {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(238, 242, 255, 0.86);
}

.pub-hover-body {
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.pub-hover-body::-webkit-scrollbar {
  width: 8px;
}

.pub-hover-body::-webkit-scrollbar-track {
  background: transparent;
}

.pub-hover-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.pub-hover-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pub-link {
  align-self: flex-start;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.pub-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section-actions {
  margin-top: 24px;
}

.note {
  color: var(--soft);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--edge);
  padding-top: 24px;
  color: var(--soft);
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--soft);
}

.email-image {
  height: 40px;
  width: auto;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .accent {
    padding: 32px 24px;
  }

  section {
    margin-top: 72px;
  }

  .pub {
    min-height: 0;
  }

  .pub-shell {
    min-height: 0;
  }

  .pub-front,
  .pub-hover {
    position: static;
  }

  .pub-front {
    gap: 8px;
  }

  .pub-hover {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 14px;
    border-radius: 14px;
  }
}

