:root {
  --bg: #f7f1e8;
  --bg-accent: #efe4d5;
  --surface: rgba(255, 252, 247, 0.76);
  --surface-strong: #fffaf2;
  --text: #1f1d1b;
  --muted: #635c54;
  --line: rgba(65, 49, 29, 0.12);
  --primary: #a2471f;
  --primary-deep: #7d3111;
  --shadow: 0 18px 45px rgba(70, 41, 17, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 121, 74, 0.2), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(218, 175, 109, 0.2), transparent 24%),
    linear-gradient(180deg, #fbf6ef 0%, #f5ede1 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 87, 52, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 87, 52, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.site-footer a,
.contact-card a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 88px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.hero-name {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.hero-contact a {
  color: inherit;
  text-decoration: none;
}

.hero-contact a:hover {
  color: var(--primary-deep);
}

.hero-text {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-deep);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.62);
  color: var(--text);
}

.button-ghost:hover {
  background: rgba(255, 250, 242, 0.96);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 28px;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.92) 0%, rgba(244, 230, 212, 0.92) 100%);
  box-shadow: var(--shadow);
}

.hero-card-label {
  margin: 0 0 24px;
  font-weight: 700;
}

.stat-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.stat-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.stat-label,
.timeline-meta,
.card-meta,
.project-tag,
.site-footer,
.timeline-top span {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.profile-card,
.publication-card,
.contact-card {
  padding: 28px;
}

.profile-card p,
.project-card p,
.publication-card p,
.contact-card p,
.detail-list li {
  line-height: 1.75;
}

.timeline,
.project-grid {
  display: grid;
  gap: 20px;
}

.timeline-item,
.project-card {
  padding: 28px;
}

.timeline-top,
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.timeline-top {
  align-items: start;
}

.timeline-subtitle,
.card-subtitle {
  margin: 10px 0 8px;
  font-weight: 700;
}

.timeline-meta,
.card-meta {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

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

.project-grid {
  align-items: stretch;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.project-tag {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card a {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
}

.site-footer {
  margin: 72px 0 26px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: var(--delay, 0ms);
}

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

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .section {
    padding-top: 72px;
  }

  .hero h1 {
    max-width: none;
  }

  .timeline-top,
  .section-heading,
  .site-footer {
    flex-direction: column;
  }

  .site-header {
    top: 10px;
    padding: 14px;
  }
}
