/* ── Tokens ── */
:root {
  --c-bg:      #080c14;
  --c-bg-2:    #0d1520;
  --c-surface: #111c2e;
  --c-border:  #1c2a40;
  --c-gold:    #c9a96e;
  --c-gold-2:  #e2c99a;
  --c-text:    #ddd9d0;
  --c-muted:   #68788e;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: var(--c-gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--c-gold-2); }
strong { color: var(--c-gold-2); font-weight: 600; }

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5.5rem 0; }
.section-alt { background: var(--c-bg-2); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 2.75rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--c-gold);
  color: #080c14;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--c-gold-2); color: #080c14; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover { background: var(--c-gold); color: #080c14; transform: translateY(-2px); }
.btn-lg { font-size: 0.88rem; padding: 1rem 2.5rem; }

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background 0.35s, border-color 0.35s;
}
.nav.scrolled {
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-gold);
}
.nav-logo:hover { color: var(--c-gold-2); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-text);
  transition: transform 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Signature: animated flight-path arcs */
.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fp { stroke-dasharray: 1800; stroke-dashoffset: 1800; }

.fp-1 { animation: draw 3.5s var(--ease) 0.4s forwards; opacity: 0.22; }
.fp-2 { animation: draw 4s   var(--ease) 0.9s forwards; opacity: 0.1; }
.fp-3 { animation: draw 4.5s var(--ease) 1.2s forwards; opacity: 0.07; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 0;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--c-text);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-rule {
  width: 0;
  height: 1px;
  background: var(--c-gold);
  margin: 1.75rem 0;
  animation: expandRule 0.7s var(--ease) 0.85s forwards;
}

@keyframes expandRule {
  to { width: 3.5rem; }
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.95s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.1s forwards;
}

/* Metrics strip — anchored at the bottom of the hero */
.hero-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 2rem 2rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.5s forwards;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.metric-num {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 400;
  color: var(--c-gold);
  line-height: 1;
}
.metric-pct {
  font-size: 1.1rem;
  color: var(--c-gold-2);
}

.metric-label {
  font-size: 0.72rem;
  color: var(--c-muted);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.metric-div {
  width: 1px;
  height: 2.5rem;
  background: var(--c-border);
  margin: 0 2rem;
  flex-shrink: 0;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--c-muted);
  font-weight: 300;
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}
.about-text p:last-child { margin-bottom: 0; }

.fact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 3px;
  padding: 1.5rem;
}
.fact-row {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--c-border);
}
.fact-row:first-child { padding-top: 0; }
.fact-row:last-child  { border-bottom: none; padding-bottom: 0; }

.fact-row dt {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.2rem;
}
.fact-row dd {
  font-size: 0.88rem;
  color: var(--c-text);
  line-height: 1.45;
}

/* ── Experience ── */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--c-border);
}
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child  { border-bottom: none; }

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 3px;
}
.exp-meta time {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-gold);
  letter-spacing: 0.04em;
}
.exp-loc {
  font-size: 0.73rem;
  color: var(--c-muted);
}

.exp-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.2rem;
}
.exp-co {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-gold);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bullets li {
  font-size: 0.9rem;
  color: var(--c-muted);
  font-weight: 300;
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
}
.bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--c-border);
  font-size: 0.78rem;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.skill-group h3 {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.2rem;
}
.skill-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.skill-group li {
  font-size: 0.87rem;
  color: var(--c-muted);
  font-weight: 300;
  padding-left: 0.8rem;
  position: relative;
}
.skill-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-gold);
}

/* ── Education ── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.edu-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 2px solid var(--c-gold);
  border-radius: 3px;
  padding: 1.75rem;
}
.edu-year {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.edu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.edu-school {
  font-size: 0.8rem;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
}
.edu-detail {
  font-size: 0.83rem;
  color: var(--c-muted);
  font-weight: 300;
  margin-top: 0.35rem;
  line-height: 1.5;
}
.edu-detail em { color: var(--c-text); font-style: italic; }

.cert-list h3 {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.5rem;
}
.cert-list ul {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.cert-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cert-name {
  font-size: 0.9rem;
  color: var(--c-text);
  font-weight: 500;
}
.cert-issuer {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
}

/* ── Contact ── */
.contact-wrap { text-align: center; }

.contact-heading {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.contact-sub {
  max-width: 460px;
  margin: 0 auto 2.5rem;
  color: var(--c-muted);
  font-weight: 300;
  font-size: 1rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.75rem;
}
.contact-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact-links a:hover { color: var(--c-gold); }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 1.75rem 2rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
}

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

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fp { animation: none; stroke-dashoffset: 0; }
  .hero-eyebrow, .hero-name, .hero-tagline,
  .hero-actions, .hero-metrics { animation: none; opacity: 1; }
  .hero-rule { animation: none; width: 3.5rem; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .edu-grid    { grid-template-columns: 1fr; gap: 2rem; }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .exp-meta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(18px);
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--c-border);
    gap: 1.5rem;
  }
  .nav-toggle { display: flex; }

  .hero-inner { padding-top: 7rem; }
  .hero-metrics { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .metric-div  { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
}
