:root {
  --navy: #1a1f36;
  --charcoal: #2d2d3a;
  --pink: #c9748f;
  --pink-light: #e8b4c3;
  --lavender: #9b8ec4;
  --lavender-light: #d4cee8;
  --cream: #faf9f7;
  --white: #ffffff;
  --text: #1a1f36;
  --text-soft: #6b6b7b;
  --line: #e8e6f0;
  --section-alt: #f4f2f9;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 31, 54, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3 { font-family: "Cormorant Garamond", serif; line-height: 1.2; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink-light);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-blog { color: var(--pink) !important; font-style: italic; }
.nav-blog:hover { color: var(--pink-light) !important; }

.nav-resume {
  background: var(--navy);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem !important;
}
.nav-resume:hover { background: var(--pink) !important; }

/* hero */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.hero-inner { max-width: 900px; position: relative; z-index: 2; width: 100%; }

.hero-top {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-headshot {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 130px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  border: 4px solid var(--white);
  outline: 2px solid var(--pink-light);
}

.hero-text { flex: 1; }

.hero-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.0;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-links { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-links a {
  text-decoration: none;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.hero-links a:first-child { background: var(--navy); color: var(--white); }
.hero-links a:first-child:hover { background: var(--pink); }
.hero-links a:last-child { border: 1.5px solid var(--navy); color: var(--navy); }
.hero-links a:last-child:hover { border-color: var(--pink); color: var(--pink); }

.hero-accent {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lavender-light) 0%, transparent 70%);
  opacity: 0.5;
  z-index: 1;
}

/* sections */
section { padding: 100px 40px; }
.section-alt { background: var(--section-alt); }
.section-inner { max-width: 900px; margin: 0 auto; }

section h2 {
  font-size: 2.8rem;
  color: var(--navy);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
}

.section-sub {
  color: var(--text-soft);
  margin-top: -32px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.about-text p { margin-bottom: 16px; color: var(--charcoal); font-size: 1.05rem; }
.about-text a, .about-card a { color: var(--lavender); text-decoration: none; font-weight: 500; }
.about-text a:hover, .about-card a:hover { text-decoration: underline; }

.about-aside { display: flex; flex-direction: column; gap: 16px; }

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--lavender);
}

.about-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 6px;
}

/* era slider */
.era-slider-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px;
}
.era-slider-wrapper::-webkit-scrollbar { display: none; }

.era-slider {
  display: flex;
  gap: 10px;
  width: max-content;
  padding-bottom: 4px;
}

.era-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.era-btn:hover { border-color: var(--lavender); color: var(--lavender); }

.era-btn.active[data-era="lawschool"],
.era-btn.active[data-era="all"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.era-btn.active[data-era="undergrad"] {
  background: var(--lavender);
  color: var(--white);
  border-color: var(--lavender);
}

.era-btn.active[data-era="highschool"] {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

/* timeline */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: none; }

.tl-year {
  font-size: 0.85rem;
  font-weight: 600;
  padding-top: 4px;
}

.tl-item[data-era="lawschool"] .tl-year { color: var(--navy); }
.tl-item[data-era="undergrad"] .tl-year { color: var(--lavender); }
.tl-item[data-era="highschool"] .tl-year { color: var(--pink); }

.tl-content h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; margin-top: 4px; }

.tl-org { font-size: 0.88rem; color: var(--lavender); font-weight: 500; margin-bottom: 8px; }
.tl-org a { color: var(--lavender); text-decoration: none; }
.tl-org a:hover { text-decoration: underline; }

.tl-content p:last-child { color: var(--charcoal); font-size: 0.93rem; }

.tl-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.tl-tag.legal { background: #dce8f7; color: #2d6aad; }
.tl-tag.leadership { background: var(--lavender-light); color: #6b4fa8; }
.tl-tag.advocacy { background: #fde8d8; color: #c4622d; }
.tl-tag.global { background: #d8f5e8; color: #2a7a52; }
.tl-tag.research { background: #fdf0d8; color: #a07020; }

/* education */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--lavender);
}

.edu-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.edu-card h3 { font-size: 1.2rem; color: var(--navy); }
.edu-date { font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; padding-top: 4px; }
.edu-school { font-weight: 600; color: var(--pink); font-size: 0.9rem; margin-bottom: 10px; }
.edu-detail { font-size: 0.9rem; color: var(--charcoal); }

/* skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.skill-group h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lavender-light);
}

.skill-group ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.skill-group li { font-size: 0.95rem; color: var(--charcoal); display: flex; flex-direction: column; gap: 2px; }
.skill-level { font-size: 0.78rem; color: var(--text-soft); }

/* contact */
.contact-inner { text-align: center; }
.contact-inner h2 { display: block; }
.contact-inner h2::after { left: 50%; transform: translateX(-50%); }
.contact-sub { color: var(--text-soft); max-width: 480px; margin: 0 auto 36px; font-size: 1.05rem; }

.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.contact-links a {
  text-decoration: none;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.contact-links a:hover { background: var(--navy); color: var(--white); }

/* footer */
footer { text-align: center; padding: 32px 40px; font-size: 0.85rem; color: var(--text-soft); border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 900px) {
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }

  .hero { padding: 80px 20px 60px; min-height: auto; }

  .hero-top { flex-direction: column; align-items: flex-start; gap: 28px; }

  .hero-headshot { width: 160px; height: 200px; }

  section { padding: 60px 20px; }

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

  .tl-item { grid-template-columns: 1fr; gap: 8px; }

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

  .hero-accent { display: none; }
}
.experience-layout {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 24px;
  align-items: start;
}

.scrubber-track {
  position: sticky;
  top: 100px;
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  user-select: none;
}

.scrubber-track:active { cursor: grabbing; }

.scrubber-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--navy) 0%,
    var(--navy) 30%,
    var(--lavender) 30%,
    var(--lavender) 65%,
    var(--pink) 65%,
    var(--pink) 100%
  );
}

.scrubber-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  filter: drop-shadow(0 2px 6px rgba(201, 116, 143, 0.4));
}

.scrubber-handle:active {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.15);
}

.heart-svg {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 0;
  left: 0;
  transition: color 0.3s ease;
}

.handle-year {
  position: relative;
  z-index: 2;
  font-family: "DM Sans", sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-top: 4px;
  pointer-events: none;
}

.scrubber-handle.era-lawschool .heart-svg { color: var(--navy); }
.scrubber-handle.era-undergrad .heart-svg { color: var(--lavender); }
.scrubber-handle.era-highschool .heart-svg { color: var(--pink); }

.tl-item.tl-active {
  background: var(--white);
  border-radius: var(--radius);
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .experience-layout {
    grid-template-columns: 1fr;
  }
  .scrubber-track {
    display: none;
  }
}
