@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap&font-display=swap');

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

:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECEA;
  --text: #1C1C1C;
  --text-muted: #7A7570;
  --accent: #B8955A;
  --accent-light: #D4B483;
  --border: #DDD9D3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  border-color: var(--border);
  backdrop-filter: blur(8px);
  background: rgba(247, 245, 240, 0.92);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(184, 149, 90, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(184, 149, 90, 0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: aurora 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes aurora {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.06) translate(1.5%, -1%); }
  66%       { transform: scale(0.97) translate(-1%, 1.5%); }
}

/* ─── HERO ENTRANCE ANIMATIONS ─── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes charReveal {
  from { opacity: 0; filter: blur(10px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.char-reveal {
  display: inline-block;
  opacity: 0;
  animation: charReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.hero-name em {
  font-style: italic;
  color: var(--text-muted);
}

.hero-alt-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  font-weight: 300;
  animation: fadeUp 0.7s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUp 0.7s 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 3rem;
  background: var(--accent-light);
}

/* ─── SECTIONS ─── */

section {
  padding: 6rem 4rem;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 3rem;
  background: var(--accent-light);
}

/* ─── ABOUT ─── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
  max-width: 1100px;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: sticky;
  top: 6rem;
}

.about-heading em {
  font-style: italic;
  color: var(--accent);
}

.about-body p {
  margin-bottom: 1.25rem;
  color: #3A3835;
  font-size: 0.95rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2rem;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent-light);
  color: var(--accent);
}

/* ─── PUBLICATIONS ─── */

.publications-grid {
  max-width: 1100px;
}

.pub-list {
  list-style: none;
}

.pub-item {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  transition: background 0.2s;
}

.pub-item:last-child {
  border-bottom: 1px solid var(--border);
}

.pub-year {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.pub-content {}

.pub-type {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pub-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.pub-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.2s;
  white-space: nowrap;
  align-self: center;
}

.pub-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pub-link svg {
  width: 12px;
  height: 12px;
}

.pub-loading {
  opacity: 0.35;
  pointer-events: none;
}

.pub-empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: 4px;
}

/* ─── RESEARCH INTERESTS ─── */

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  max-width: 1100px;
}

.interest-card {
  padding: 2rem 1.75rem;
  background: var(--bg);
  transition: background 0.2s;
}

.interest-card:hover {
  background: var(--bg-alt);
}

section:nth-child(even) .interest-card {
  background: var(--bg-alt);
}

section:nth-child(even) .interest-card:hover {
  background: var(--bg);
}

.interest-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
}

.interest-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.interest-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── BACKGROUND / CV ─── */

.bg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
}

.bg-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.edu-list,
.award-list {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

/* vertical line */
.edu-list::before,
.award-list::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
}

.edu-item,
.award-item {
  position: relative;
  padding: 0 0 2.75rem 0;
}

.edu-item:last-child,
.award-item:last-child {
  padding-bottom: 0;
}

/* dot marker */
.edu-item::before,
.award-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--accent-light);
  transition: border-color 0.25s, background 0.25s;
}

section:nth-child(even) .edu-item::before,
section:nth-child(even) .award-item::before {
  background: var(--bg);
}

.edu-item:hover::before,
.award-item:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}

.edu-degree {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.edu-school {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.edu-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.edu-years {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.award-year {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
  display: block;
}

.award-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.award-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .bg-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ─── VISUAL CULTURE INTRO ─── */

.vc-intro {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.vc-intro p {
  font-size: 0.97rem;
  line-height: 1.9;
  color: #3A3835;
  margin-bottom: 1rem;
}

.vc-intro p:last-child { margin-bottom: 0; }

.vc-intro em {
  font-style: italic;
  color: var(--text);
}

/* ─── AI PROJECT ─── */

.project-card {
  border: 1px solid var(--border);
  padding: 2.75rem 3rem;
  max-width: 1100px;
  transition: border-color 0.3s;
}

.project-card:hover {
  border-color: var(--accent-light);
}

.project-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.project-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.project-body p {
  font-size: 0.95rem;
  color: #3A3835;
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 680px;
}

.project-body p:last-child { margin-bottom: 0; }

.project-databases {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.project-databases span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2rem;
}

@media (max-width: 600px) {
  .project-card {
    padding: 2rem 1.5rem;
  }
}

/* ─── CONTACT ─── */

.contact-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.8;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link-item {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}

.contact-link-item:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-link-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.contact-link-item a:hover {
  color: var(--accent);
}

.contact-link-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: block;
}

.contact-link-value {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.contact-link-arrow {
  font-size: 1.2rem;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.contact-link-item a:hover .contact-link-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* ─── FOOTER ─── */

footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ─── ANIMATIONS ─── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  nav {
    padding: 1.25rem 2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    padding: 0 2rem 4rem;
  }

  .hero-scroll {
    right: 2rem;
  }

  section {
    padding: 4rem 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-heading {
    position: static;
  }

  .pub-item {
    grid-template-columns: 3.5rem 1fr;
    grid-template-rows: auto auto;
  }

  .pub-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }

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

  footer {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 0 1.5rem 3.5rem;
  }

  .hero-scroll {
    display: none;
  }

  section {
    padding: 3.5rem 1.5rem;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }
}
