/* ════════════════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════════════════ */
:root {
  /* Palette */
  --c-bg:          #eae0d5;
  --c-bg-alt:      #f0e9e0;
  --c-text:        #22333b;
  --c-text-mid:    #3d5059;
  --c-muted:       #7a6651;
  --c-sage-xlight: #dde4da;
  --c-sage-light:  #cad2c5;
  --c-sage:        #84a98c;
  --c-sage-dark:   #52796f;
  --c-forest:      #354f52;
  --c-deep:        #2f3e46;
  --c-teal:        #15616d;
  --c-warm:        #c6ac8f;
  --c-warm-dark:   #5e503f;

  /* Spacing & layout */
  --nav-h:      60px;
  --max-w:      1080px;
  --px:         clamp(1.25rem, 5vw, 2.5rem);
  --section-py: clamp(4.5rem, 9vw, 7.5rem);
  --gap:        clamp(1.5rem, 4vw, 3rem);

  /* Shape */
  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  22px;

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ════════════════════════════════════════════════════════
   RESET
   ════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-optical-sizing: auto;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

img { display: block; max-width: 100%; }

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

/* ════════════════════════════════════════════════════════
   LAYOUT HELPERS
   ════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(234, 224, 213, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(130, 169, 140, 0.18);
}

.nav-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--c-forest);
  transition: color 0.2s;
}
.nav-brand:hover { color: var(--c-teal); }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.875rem;
  color: var(--c-text-mid);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--c-forest); }

.nav-cv {
  padding: 0.375rem 1.125rem;
  background: var(--c-forest);
  color: var(--c-sage-light) !important;
  border-radius: 999px;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease-spring) !important;
}
.nav-cv:hover {
  background: var(--c-teal) !important;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Ambient glow blob — purely decorative */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle at center,
    rgba(130, 169, 140, 0.16) 0%,
    rgba(82, 121, 111, 0.06) 50%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle at center,
    rgba(21, 97, 109, 0.08) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* — Text — */
.hero-text { max-width: 580px; }

.hero-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sage-dark);
  margin-bottom: 0.6rem;
}

.hero-name {
  font-size: clamp(3.25rem, 7.5vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--c-deep);
  margin-bottom: 1rem;
}

.hero-name em {
  font-style: italic;
  color: var(--c-sage-dark);
}

.hero-tagline {
  font-size: 0.9375rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--c-text-mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2.25rem;
}

.hero-bio strong {
  font-weight: 500;
  color: var(--c-text);
}

/* — Actions row — */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--c-forest);
  border: 1.5px solid var(--c-sage-light);
  background: transparent;
  transition:
    color       0.2s var(--ease),
    background  0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform   0.25s var(--ease-spring);
}
.social-link:hover {
  color: var(--c-bg);
  background: var(--c-sage-dark);
  border-color: var(--c-sage-dark);
  transform: translateY(-3px);
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.5rem;
  background: var(--c-forest);
  color: var(--c-sage-light);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background 0.2s var(--ease),
    transform  0.25s var(--ease-spring),
    box-shadow 0.2s var(--ease);
}
.btn-cv:hover {
  background: var(--c-teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(21, 97, 109, 0.28);
}

/* — Photo — */
.hero-visual {
  position: relative;
  width: clamp(220px, 26vw, 310px);
  height: clamp(260px, 31vw, 370px);
  flex-shrink: 0;
}

/* Offset decorative ring */
.photo-deco {
  position: absolute;
  inset: 0;
  border-radius: 52% 48% 62% 38% / 44% 56% 44% 56%;
  border: 2px solid var(--c-sage);
  opacity: 0.55;
  transform: translate(13px, 13px);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.hero-visual:hover .photo-deco {
  transform: translate(20px, 20px);
  opacity: 0.8;
}

/* Photo blob */
.photo-wrapper {
  position: absolute;
  inset: 0;
  border-radius: 60% 40% 54% 46% / 50% 62% 38% 50%;
  overflow: hidden;
  background: var(--c-sage-light);
  transition: border-radius 0.7s var(--ease);
}
.hero-visual:hover .photo-wrapper {
  border-radius: 44% 56% 40% 60% / 58% 44% 56% 42%;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--c-forest);
  background: linear-gradient(145deg, var(--c-sage-light) 0%, var(--c-sage) 100%);
  user-select: none;
}

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

/* — Scroll hint — */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-muted);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--c-sage), transparent);
  animation: breatheLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes breatheLine {
  0%, 100% { opacity: 1;   transform: scaleY(1);   }
  50%       { opacity: 0.3; transform: scaleY(0.45); }
}

/* ════════════════════════════════════════════════════════
   SECTIONS — SHARED
   ════════════════════════════════════════════════════════ */
.section { padding: var(--section-py) 0; }
.section-alt  { background: var(--c-bg-alt); }
.section-dark { background: var(--c-deep); }

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  color: var(--c-deep);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--c-sage-light); }

.section-sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--c-muted);
  font-weight: 300;
}
.section-sub.light { color: var(--c-sage); }

/* ════════════════════════════════════════════════════════
   EXPERIENCE — TIMELINE
   ════════════════════════════════════════════════════════ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 5rem);
}

.exp-col-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-sage-dark);
  margin-bottom: 2rem;
  padding-bottom: 0.625rem;
  border-bottom: 1.5px solid var(--c-sage-light);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: relative;
  padding-left: 1.375rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-sage) 0%, transparent 100%);
}

.timeline-item { position: relative; }

.timeline-dot {
  position: absolute;
  left: -1.375rem;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--c-sage-dark);
  border-radius: 50%;
  transform: translateX(-3.5px);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 0 1px var(--c-sage-dark);
}

.timeline-year {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-sage-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.timeline-content h4 {
  font-size: 1.025rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.timeline-place {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 0.375rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--c-text-mid);
  font-weight: 300;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════
   PUBLICATIONS & TALKS
   ════════════════════════════════════════════════════════ */
.pub-list { display: flex; flex-direction: column; }

.pub-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-sage-light);
  transition: background 0.2s;
}
.pub-item:first-child { border-top: 1px solid var(--c-sage-light); }

.pub-year {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.0625rem;
  color: var(--c-sage-dark);
  padding-top: 0.15rem;
  line-height: 1;
  opacity: 0.85;
}

.pub-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-sage-dark);
  background: rgba(130, 169, 140, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.6rem;
}
.pub-tag.talk {
  color: var(--c-teal);
  background: rgba(21, 97, 109, 0.1);
}

.pub-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0375rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.pub-title a { transition: color 0.2s; }
.pub-title a:hover { color: var(--c-sage-dark); }

.pub-authors {
  font-size: 0.875rem;
  color: var(--c-text-mid);
  font-weight: 300;
  margin-bottom: 0.2rem;
}
.pub-authors strong { font-weight: 500; color: var(--c-text); }

.pub-venue {
  font-size: 0.875rem;
  color: var(--c-muted);
  font-style: italic;
  margin-bottom: 0.85rem;
}

.pub-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.pub-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-sage-dark);
  padding: 0.2rem 0.65rem;
  border: 1.5px solid var(--c-sage-light);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pub-link:hover {
  background: var(--c-sage-dark);
  color: var(--c-bg);
  border-color: var(--c-sage-dark);
}

/* ════════════════════════════════════════════════════════
   BEYOND
   ════════════════════════════════════════════════════════ */
.beyond-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.beyond-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 169, 140, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.beyond-item:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(130, 169, 140, 0.42);
}

.beyond-item-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.beyond-icon {
  font-size: 1.75rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.beyond-title {
  font-size: 1.375rem;
  color: var(--c-sage-light);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.beyond-sub {
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-sage);
  margin-top: 0.3rem;
}

.beyond-desc {
  font-size: 0.9375rem;
  color: rgba(202, 210, 197, 0.75);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
}
.beyond-desc strong {
  color: var(--c-sage-light);
  font-weight: 500;
}

.beyond-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.beyond-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-sage-light);
  border: 1px solid rgba(130, 169, 140, 0.32);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}
.beyond-link:hover {
  background: var(--c-sage-dark);
  border-color: var(--c-sage-dark);
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  background: var(--c-deep);
  border-top: 1px solid rgba(130, 169, 140, 0.12);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.0625rem;
  color: var(--c-sage-light);
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(202, 210, 197, 0.42);
  font-weight: 300;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(202, 210, 197, 0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-sage-light); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
    margin: 0 auto;
    width: 200px;
    height: 240px;
  }

  .hero-text { max-width: 100%; }

  .hero-actions { justify-content: center; }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .beyond-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pub-year {
    font-size: 0.875rem;
    opacity: 0.7;
  }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  /* Collapse nav links on very small screens — keep CV visible */
  .nav-menu li:not(:last-child) { display: none; }
}

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