/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --fg-100: rgb(13 13 13 / 1);
  --fg-50:  rgb(13 13 13 / 0.62);
  --fg-33:  rgb(13 13 13 / 0.48);
  --fg-15:  rgb(13 13 13 / 0.15);
  --fg-8:   rgb(13 13 13 / 0.08);
  --fg-5:   rgb(13 13 13 / 0.05);
  --bg:     #FFF8EB;
  /* Golden palette */
  --gold-1: #FFEFCF;
  --gold-2: #FFE4AD;
  --gold-3: #ECC87D;
  --gold-4: #C19947;
  --margin: 40px;
  --gutter: 20px;
  --nav-top: 200px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg-100);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Fixed Left Nav ─── */
.app-nav {
  position: fixed;
  top: var(--nav-top);
  left: var(--margin);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav .nav-item {
  font-size: 15px;
  font-weight: 300;
  color: var(--fg-33);
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.15s;
  text-decoration: none;
  display: block;
}
.app-nav .nav-item:hover { color: var(--fg-100); }
.app-nav .nav-item.is-active { color: var(--gold-4); }

/* ─── Nav Expandable Sections ─── */
.nav-expand-row {
  display: flex;
  align-items: flex-end; /* bottom-align arrows */
  gap: 4px;
}

.nav-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--fg-33);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  outline: none;
  transition: color 0.15s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
  /* align with x-height of lowercase letters */
  margin-bottom: 4px;
}

.nav-expand-btn:hover { color: var(--fg-100); }

/* Arrow turns dark yellow when the section is active (scrolled into view) */
.nav-expand-row:has(.nav-item.is-active) .nav-expand-btn,
.nav-expand-row:has(.nav-subitem.is-active) .nav-expand-btn {
  color: var(--gold-4);
}

/* Use direct child selectors so nested buttons don't also rotate */
.nav-expandable.is-open > .nav-expand-row > .nav-expand-btn,
.nav-sub-expandable.is-open > .nav-expand-row > .nav-expand-btn {
  transform: rotate(90deg);
  color: var(--gold-4);
}

/* Top-level subitems panel */
.nav-subitems {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.nav-expandable.is-open > .nav-subitems {
  max-height: 800px;
  margin-top: 3px;
  margin-bottom: 3px;
}

/* Inner wrapper with vertical timeline line */
.nav-subitems-inner {
  position: relative;
}

.nav-subitems-inner::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--gold-2);
}

/* Shared style for both top-level role links and sub-section headers */
.nav-subitem {
  display: block;
  position: relative;
  font-size: 12px;
  font-weight: 300;
  color: var(--fg-33);
  padding: 3px 0 3px 24px;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.35;
  letter-spacing: -0.01em;
  /* No truncation — body shifts to make room */
}

.nav-subitem:hover { color: var(--fg-100); }
.nav-subitem.is-active { color: var(--gold-4); }

/* Dot: line at left:8, dot 7px → left:4px (center 7.5 ≈ 8) */
.nav-subitem::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-3);
}

/* Sub-section headers (Committee / Shows) */
.nav-subitem.is-header {
  font-weight: 300;
  color: var(--fg-50);
  cursor: pointer;
  text-decoration: none;
}
.nav-subitem.is-header:hover { color: var(--fg-100); }

/* ─── Nested sub-expandable (Committee / Shows within Volunteering) ─── */
.nav-sub-expandable { display: block; }

.nav-sub-subitems {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.nav-sub-expandable.is-open > .nav-sub-subitems {
  max-height: 300px;
}

/* Roles within Committee / Shows — indented with dot */
.nav-sub-subitem {
  display: block;
  position: relative;
  font-size: 11.5px;
  color: var(--fg-33);
  padding: 2px 0 2px 34px;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.nav-sub-subitem::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-3);
}

.nav-sub-subitem:hover { color: var(--fg-100); }
.nav-sub-subitem.is-active { color: var(--gold-4); }

/* ─── Body shift when nav is expanded ─── */
.app-main {
  transition: padding-left 0.3s ease;
}

body.nav-expanded .app-main {
  padding-left: 290px;
}

body.nav-expanded .app-footer {
  padding-left: 290px;
  transition: padding-left 0.3s ease;
}

/* ─── Header ─── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--margin);
  background: var(--bg);
}

.app-header .brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-100);
  letter-spacing: -0.01em;
}

.app-header .brand span {
  display: inline-block;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}
.app-header .brand:hover span { transform: translateY(-2px); }

.header-contacts {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-contact {
  font-size: 14px;
  color: var(--fg-50);
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.header-contact:hover { color: var(--fg-100); }

/* Linked org names in volunteer section */
.vol-org-link {
  text-decoration: none;
  transition: color 0.15s;
}
.vol-org-link:hover { color: var(--gold-4); }

/* ─── Main Content ─── */
.app-main {
  padding-top: var(--nav-top);
  padding-left: calc(var(--margin) * 5);
  padding-right: var(--margin);
  max-width: 960px;
}

/* ─── Section ─── */
.section {
  padding-bottom: 120px;
  scroll-margin-top: 80px;
}

/* Individual role/entry anchor targets */
.exp-entry[id],
.vol-entry[id],
.committee-role-row[id],
.vol-show-item[id] {
  scroll-margin-top: 80px;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-33);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
  padding-bottom: 40px;
}

/* ─── Intro Headshot ─── */
.intro-headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.12);
}

/* ─── Intro / Hero ─── */
.section.intro {
  padding-bottom: 160px;
  min-height: calc(100vh - var(--nav-top));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-name {
  font-size: clamp(48px, 6.2vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin-left: -0.04em;
  color: var(--fg-100);
  margin-bottom: 0.2em;
}

.intro-title {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 400;
  color: var(--fg-50);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.intro-desc {
  font-size: 15px;
  color: var(--fg-50);
  line-height: 1.65;
}

/* ─── Experience Entries ─── */
.exp-entry {
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
}

/* All direct children span full width by default */
.exp-entry > * { grid-column: 1 / -1; }

/* Description spans full width */
.exp-entry > p.entry-desc { grid-column: 1 / -1; }

.exp-entry:first-of-type {
  padding-top: 0;
}

.exp-entry + .exp-entry {
  border-top: 1px solid var(--gold-2);
}

/* Logo / icon circle */
.entry-logo {
  width: 96px;
  height: 96px;
  border-radius: 48px;
  background: var(--gold-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  margin-bottom: 32px;
}

.entry-logo svg {
  color: var(--fg-50);
}

.entry-company {
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.16;
  color: var(--fg-100);
  margin-bottom: 0.05em;
  margin-left: -0.05em;
}

.entry-role {
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg-100);
  margin-left: -0.04em;
  padding-top: 0.08em;
  padding-bottom: 0.08em;
}

.entry-meta {
  display: block;
  padding-top: 10px;
  font-size: 15px;
  color: var(--fg-50);
  font-weight: 400;
}

.entry-desc {
  padding-top: 10px;
  font-size: 15px;
  color: var(--fg-50);
  line-height: 1.65;
}

.entry-desc a {
  color: var(--gold-4);
  font-weight: 300;
  text-decoration-color: rgb(193 153 71 / 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.entry-desc a:hover {
  text-decoration-color: var(--gold-4);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
}

.tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-50);
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
  background: var(--gold-1);
}

/* ─── Early Career Compact Block ─── */
.exp-entry-compact {
  padding-top: 40px;
  border-top: 1px solid var(--gold-2);
}

.compact-header {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-33);
  margin-bottom: 16px;
}

.compact-timeline {
  position: relative;
  padding-left: 26px;
}

.compact-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--gold-2);
}

.compact-item {
  position: relative;
  padding: 10px 0;
}

.compact-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold-3);
}

.compact-org {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-33);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}

.compact-role {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg-100);
}

.compact-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg-50);
}

.compact-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-33);
  line-height: 1.6;
}

.compact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.compact-tags .tag {
  font-size: 10.5px;
  padding: 2px 9px;
  color: var(--fg-33);
}

/* 3C Sub-role */
.subrole-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.subrole {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gold-1);
  border-radius: 6px;
}


.subrole-icon {
  width: 26px; height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--fg-50);
}

.subrole-text { font-size: 13px; font-weight: 500; color: var(--fg-100); }
.subrole-detail { font-size: 12.5px; color: var(--fg-50); }
.subrole-desc { font-size: 12.5px; color: var(--fg-33); line-height: 1.5; margin-top: 4px; }

/* ─── Skills ─── */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gold-2);
}
.skill-item:last-child { border-bottom: none; }

.skill-name {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-100);
  line-height: 1.2;
}

.skill-desc {
  font-size: 14px;
  color: var(--fg-50);
  line-height: 1.4;
  padding-top: 2px;
}

/* ─── Volunteer Intro ─── */
.vol-intro {
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-66);
  max-width: 620px;
  margin-bottom: 36px;
}

/* ─── Volunteer Sublabel ─── */
.vol-sublabel {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-33);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Committee Entry ─── */
.vol-entry {
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.vol-entry > * { grid-column: 1 / -1; }

.vol-entry.vol-committee {
  background: var(--gold-1);
  border-radius: 8px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
  margin-left: -20px;
  margin-right: -20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ─── Committee Role List ─── */
.committee-role-list {
  width: 100%;
  margin-top: 10px;
}

.committee-role-row {
  padding: 8px 0;
  border-top: 1px solid var(--gold-2);
}

.committee-role-row:first-child {
  border-top: none;
  padding-top: 0;
}

/* ─── Shows Timeline ─── */
.vol-timeline {
  position: relative;
  padding-left: 26px;
}

/* Vertical connecting line */
.vol-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--gold-2);
}

.vol-show-item {
  position: relative;
  padding: 10px 0;
}

/* Dot on timeline */
.vol-show-item::before {
  content: '';
  position: absolute;
  left: -26px; /* line at 4px from timeline, show-item offset 26px → dot center at 4-26=-22, left edge at -22-4=-26 */
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold-3);
}

.vol-show-item + .vol-show-item {
  border-top: none;
}

.vol-show-org {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-33);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}

.vol-show-role {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg-100);
}

.vol-show-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg-50);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.vol-show-title {
  color: var(--fg-33);
  font-style: italic;
}

.vol-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-1);
  display: flex; align-items: center; justify-content: center;
  margin-left: -5px;
  margin-bottom: 14px;
}

.vol-org {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  color: var(--fg-50);
  letter-spacing: -0.005em;
  line-height: 1.16;
  margin-bottom: 0.05em;
  margin-left: -0.03em;
}

.vol-role {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 0.97;
  color: var(--fg-100);
  margin-left: -0.03em;
  padding-top: 0.08em;
  padding-bottom: 0.08em;
}

.vol-meta {
  padding-top: 10px;
  font-size: 14px;
  color: var(--fg-50);
}

.vol-entry > div.vol-shows {
  margin-top: 18px;
  grid-column: 1 / 2;
}

.show-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gold-1);
  font-size: 14px;
}
.show-row:last-child { border-bottom: none; }

.show-title { color: var(--fg-100); font-weight: 500; }
.show-role { color: var(--fg-50); font-size: 13px; margin-top: 2px; }
.show-year { color: var(--fg-33); font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }

/* ─── Contact ─── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gold-2);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg-100);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-link:first-child { border-top: 1px solid var(--gold-2); }
.contact-link:hover { color: var(--fg-50); }

.contact-link-label {
  font-size: 13px;
  color: var(--fg-33);
  font-weight: 400;
  letter-spacing: 0;
  width: 72px;
  flex-shrink: 0;
}

/* ─── Footer ─── */
.app-footer {
  padding: 40px var(--margin) 80px;
  padding-left: calc(var(--margin) * 5);
  font-size: 13px;
  color: var(--fg-33);
  display: flex;
  gap: 20px;
}

/* ─── Fade-in ─── */
.fade-in { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Mobile Menu Button ─── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin: -8px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg-100);
  border-radius: 2px;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), opacity 0.22s;
}
body.mobile-nav-open .mobile-menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.mobile-nav-open .mobile-menu-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.mobile-nav-open .mobile-menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile Nav Overlay ─── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.35);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Mobile Nav Drawer ─── */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 270px;
  background: var(--bg);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 28px 40px;
  overflow-y: auto;
  border-right: 1px solid var(--gold-2);
}
.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-2);
}

.mobile-nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-33);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-50);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.mobile-nav-close:hover { color: var(--fg-100); }

/* Mobile nav shares item styles with desktop nav */
.mobile-nav .nav-item {
  font-size: 15px;
  font-weight: 300;
  color: var(--fg-33);
  padding: 7px 0;
  display: block;
  transition: color 0.15s;
}
.mobile-nav .nav-item:hover { color: var(--fg-100); }

/* ─── Responsive ─── */
@media (max-width: 700px) {
  :root { --margin: 20px; }
  .app-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-contacts { display: none; }
  .app-main {
    padding-left: var(--margin);
    padding-right: var(--margin);
  }
  .app-footer { padding-left: var(--margin); }
  .exp-entry, .vol-entry, .skill-item { grid-template-columns: 1fr; }
  .vol-shows { grid-column: 1 / -1; }
  /* Prevent desktop nav-expanded layout shift on mobile */
  body.nav-expanded .app-main { padding-left: var(--margin); }
  body.nav-expanded .app-footer { padding-left: var(--margin); }
}
