/* ===== Anna Lu — Personal Site (light theme) ===== */

:root {
  --ink: #23202e;
  --paper: #fdfcf9;
  --paper-tint: #f5f2ea;
  --gold: #b08a30;
  --gold-soft: #d4b56a;
  --text: #3a3744;
  --text-muted: #6f6a7d;
  --line: rgba(35, 32, 46, .1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1080px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-soft); color: var(--ink); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(253, 252, 249, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .7rem 2rem;
  box-shadow: 0 2px 24px rgba(35, 32, 46, .08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .02em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: .4rem 1rem;
  border-radius: 100px;
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(212, 181, 106, .16) 0%, transparent 60%),
    radial-gradient(80% 60% at 15% 90%, rgba(176, 138, 48, .1) 0%, transparent 55%),
    var(--paper);
  padding: 8rem 1.5rem 5rem;
}
.hero-content { position: relative; max-width: 780px; }
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero-title span { display: inline-block; }
.hero-title .gold {
  color: var(--gold);
  font-style: italic;
  padding-right: .08em;
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(.8rem, 2.2vw, .98rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
}
.hero-desc {
  margin: 1.2rem auto 0;
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .04em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(176, 138, 48, .3);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1.05rem; }

/* hero entrance */
.reveal-hero {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Stats ===== */
.stats { padding: 0 1.5rem 4.5rem; }
.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ===== Sections ===== */
.section { padding: 6.5rem 1.5rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.center { text-align: center; }

.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.section-title em { color: var(--gold); }
.section-lead {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.section-tint { background: var(--paper-tint); }
.section-contact {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
}
.section-contact .section-lead { margin-left: auto; margin-right: auto; }

.subhead {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin: 4rem 0 1.5rem;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.about-col p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-col strong { font-weight: 500; color: var(--ink); }

/* ===== Chips ===== */
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chip-list li {
  padding: .5rem 1.1rem;
  border-radius: 100px;
  font-size: .85rem;
  border: 1px solid rgba(176, 138, 48, .35);
  color: var(--text);
  transition: background .3s;
}
.chip-list li:hover { background: rgba(212, 181, 106, .16); }

/* ===== Repertoire ===== */
.rep-tabs {
  display: inline-flex;
  gap: .4rem;
  background: rgba(35, 32, 46, .05);
  padding: .35rem;
  border-radius: 100px;
  margin-bottom: 2.2rem;
}
.rep-tab {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: .55rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.rep-tab.active {
  background: var(--ink);
  color: var(--gold-soft);
}
.rep-panel { display: none; }
.rep-panel.active { display: block; animation: fade-in .4s var(--ease); }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rep-list {
  list-style: none;
  columns: 2;
  column-gap: 3.5rem;
}
.rep-list li {
  display: flex;
  flex-direction: column;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.rep-work {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.rep-composer {
  font-size: .82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .15rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(35, 32, 46, .09);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: .5rem 0 .1rem;
}
.card-date {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.card-org {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .7rem;
}
.card p:last-child { font-size: .95rem; }

/* ===== Research ===== */
.research-list { display: flex; flex-direction: column; gap: 1rem; }
.research-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.research-marker {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-top: .55rem;
  transition: background .3s;
}
.research-item:hover .research-marker { background: var(--gold); }
.research-item h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: .3rem 0 .3rem;
}
.research-item p { max-width: 680px; color: var(--text-muted); }
.text-link {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 138, 48, .35);
  transition: border-color .25s;
}
.text-link:hover { border-color: var(--gold); }

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.edu-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(35, 32, 46, .09);
}
.edu-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin: .4rem 0 .1rem;
}
.edu-card p { font-size: .95rem; margin-top: .6rem; }
.edu-activities { color: var(--text-muted); font-size: .88rem !important; }

.honor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.honor {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1.2rem;
  padding: 1.3rem;
  background: var(--paper-tint);
  border-radius: 14px;
}
.honor-year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}
.honor p { font-size: .92rem; }
.honor strong { font-weight: 500; color: var(--ink); }

/* ===== Footer ===== */
.footer {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .85rem;
  border-top: 1px solid var(--line);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rep-list { columns: 1; }
}

@media (max-width: 720px) {
  .nav { padding: .9rem 1.2rem; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    z-index: 102;
  }
  .nav-toggle span {
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(253, 252, 249, .98);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; }

  .about-grid, .card-grid, .card-grid.three, .edu-grid, .honor-grid { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 1.2rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
}
