*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0d1b2a; --navy-mid: #1a2e45;
  --cream: #f5f0e8; --warm-white: #faf8f4;
  --accent: #c8964a; --accent-light: #e8b96a;
  --text-primary: #0d1b2a; --text-secondary: #4a5568; --text-light: #8a9ab0;
  --border: rgba(13,27,42,0.09);
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--warm-white); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 3rem; background: rgba(250,248,244,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 2px 24px rgba(13,27,42,0.08); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; color: var(--navy); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); }

/* MOBILE MENU */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; background: var(--navy); flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; color: var(--cream); text-decoration: none; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--accent-light); }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--cream); font-size: 1.75rem; cursor: pointer; }

/* PAGE HEADER */
.page-header {
  padding: 9rem 3rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--accent); }
h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 4.5vw, 5rem); font-weight: 300; line-height: 1.05; color: var(--navy); }
h1 em { font-style: italic; color: var(--accent); }
.header-intro { font-size: 1.05rem; font-weight: 300; color: var(--text-secondary); line-height: 1.85; }
.header-photo { position: relative; }
.header-photo img { width: 100%; max-height: 480px; object-fit: cover; object-position: center top; filter: grayscale(15%); display: block; }
.header-photo::before { content: ''; position: absolute; top: -1rem; right: -1rem; width: 100%; height: 100%; border: 2px solid var(--accent); z-index: -1; opacity: 0.35; }

/* BIO SECTION */
.bio-section { padding: 6rem 3rem; display: grid; grid-template-columns: 1fr 1.6fr; gap: 6rem; align-items: start; }
.bio-sticky { position: sticky; top: 6rem; }
.section-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.section-label::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--accent); }
h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 2.5vw, 2.6rem); font-weight: 300; line-height: 1.15; color: var(--navy); }
.bio-text p { font-size: 0.97rem; font-weight: 300; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1.4rem; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 2.5rem; }
.skill-tag { display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1rem; border: 1px solid var(--border); font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); transition: all 0.2s; }
.skill-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,150,74,0.04); }
.skill-tag::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* EXPERIENCE TIMELINE */
.experience-section { padding: 0 3rem 6rem; display: grid; grid-template-columns: 1fr 1.6fr; gap: 6rem; align-items: start; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 1.4rem 1fr; gap: 1.5rem; padding-bottom: 2.5rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; margin-top: 0.35rem; flex-shrink: 0; position: relative; z-index: 1; }
.timeline-item:not(:last-child) .timeline-dot::after { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 1px; height: calc(100% + 2rem + 1px); background: var(--border); }
.timeline-content {}
.timeline-period { font-size: 0.67rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.3rem; }
.timeline-role { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: var(--navy); line-height: 1.2; margin-bottom: 0.2rem; }
.timeline-org { font-size: 0.82rem; font-weight: 500; color: var(--accent); margin-bottom: 0.55rem; }
.timeline-desc { font-size: 0.83rem; font-weight: 300; color: var(--text-secondary); line-height: 1.75; }

/* CERTIFICATIONS */
.certs-section { background: var(--cream); padding: 5rem 3rem; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.cert-card { background: var(--warm-white); border: 1px solid var(--border); padding: 1.75rem; transition: all 0.25s; }
.cert-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(13,27,42,0.07); }
.cert-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.cert-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--navy); margin-bottom: 0.3rem; }
.cert-body { font-size: 0.78rem; font-weight: 300; color: var(--text-secondary); }

/* CONTACT */
.contact-section { background: var(--navy); padding: 6rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact-section h2 { color: var(--cream); }
.contact-section .section-label { color: var(--accent-light); }
.contact-section .section-label::before { background: var(--accent-light); }
.contact-desc { font-size: 0.97rem; font-weight: 300; color: rgba(245,240,232,0.55); line-height: 1.8; margin-top: 1.25rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid rgba(255,255,255,0.1); text-decoration: none; transition: all 0.25s; }
.contact-link:hover { border-color: var(--accent); background: rgba(200,150,74,0.06); transform: translateX(6px); }
.contact-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(200,150,74,0.15); color: var(--accent-light); flex-shrink: 0; }
.contact-text { font-size: 0.83rem; font-weight: 300; color: rgba(245,240,232,0.65); }
.contact-text strong { display: block; font-weight: 500; font-size: 0.95rem; color: var(--cream); margin-bottom: 0.1rem; }

/* FOOTER */
footer { background: #080e15; padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; gap: 0.75rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.2); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
.reveal { opacity:0; transform:translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity:1; transform:none; }
.page-header > * { animation: fadeUp 0.9s ease both; }
.page-header > *:last-child { animation-delay: 0.15s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .page-header { grid-template-columns: 1fr; gap: 3rem; padding: 8rem 1.75rem 3.5rem; }
  .header-photo { order: -1; }
  .header-photo img { max-height: 340px; }
  .bio-section, .experience-section { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem; }
  .bio-sticky { position: static; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-section { padding: 4rem 1.5rem; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  footer { padding: 1.75rem 1.5rem; }
}
@media (max-width: 500px) {
  .page-header { padding: 7.5rem 1.25rem 3rem; }
}
