:root {
  --bg: #0b0b0d;
  --bg-elevated: #17171a;
  --text: #f4f2ee;
  --text-muted: #9a978f;
  --border: #2a2a2e;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
a { color: var(--text); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(180deg, rgba(11,11,13,0.9), rgba(11,11,13,0));
  backdrop-filter: blur(6px);
}
.logo {
  display: block;
}
.logo img {
  display: block;
  height: 42px;
  width: auto;
  border-radius: 6px;
  background: #f4f2ee;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; }
.site-nav a:hover { color: var(--text); }

/* ---------- Hero / Carousel ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.carousel-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  perspective: 1600px;
}
.carousel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.carousel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 210px;
  height: 270px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
  color: #fff;
  background-color: var(--card-color);
  background: linear-gradient(150deg, color-mix(in srgb, var(--card-color) 55%, #0b0b0d), color-mix(in srgb, var(--card-color) 20%, #0b0b0d));
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
  backface-visibility: hidden;
}
.carousel-card .card-icon {
  color: var(--card-color);
  width: 44px;
  height: 44px;
  margin-bottom: auto;
}
.carousel-card .card-icon svg { width: 100%; height: 100%; }
.carousel-card .card-index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--card-color);
}
.carousel-card .card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.carousel-card.is-front {
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 2px var(--card-color);
}

.photo-carousel-stage { height: 380px; margin-top: 1.5rem; }
.carousel-card.photo-carousel-card {
  padding: 0;
  display: block;
  width: 190px;
  height: 250px;
  background: var(--bg-elevated);
}
.carousel-card.photo-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-card.photo-carousel-card.is-front {
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 2px var(--text);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.1); }
.arrow-left { left: 0.5rem; }
.arrow-right { right: 0.5rem; }

.hero-text {
  text-align: center;
  max-width: 34rem;
  margin-top: 2rem;
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  margin-bottom: 0.4rem;
}
.tagline { font-size: 1.15rem; color: var(--text); font-weight: 600; margin-bottom: 0.9rem; }
.hero-desc { margin-bottom: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid var(--border);
}
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Sections ---------- */
main { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section h2 {
  font-size: 1.6rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-index { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.section-body p:last-child { margin-bottom: 0; }
.section-body p strong { color: var(--text); }
.section-subhead {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 2.5rem;
}
.section-subhead:first-child { margin-top: 0; }

/* Experience */
.timeline { margin-bottom: 2.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date { color: var(--text-muted); font-size: 0.85rem; }
.timeline-body h3 { font-size: 1.05rem; margin-bottom: 0.15rem; color: var(--text); }
.timeline-org { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.4rem; font-weight: 700; }
.timeline-body p:last-child { margin-bottom: 0; }

.skills { margin-top: 2.5rem; }
.skills h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--text); }
.skill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.skill-list li { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.85rem; color: var(--text-muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Contact */
.contact-email {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: var(--text-muted); font-weight: 700; font-size: 0.95rem; }
.social-links a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header { padding: 1rem 1.25rem; }
  .site-nav { gap: 1rem; }
  .carousel-stage { height: 340px; }
  .carousel-card { width: 160px; height: 210px; padding: 1.1rem; }
  .carousel-card .card-title { font-size: 1.05rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; }
}
