@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gaya';
  src: url('../fonts/gayatrial-regular.otf') format('opentype');
  font-weight: 300 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gaya';
  src: url('../fonts/gayatrial-italic.otf') format('opentype');
  font-weight: 300 400;
  font-style: italic;
}

:root {
  --cream:        #E3D8D4;
  --sand:         #D9CDCB;
  --beige:        #CBC0BB;
  --primary:      #64606B;
  --rose:         #D0BCB9;
  --sage:         #B1B784;
  --ink:          #55505C;
  --soft:         #64606B;
  --taupe:        #D0BCB9;
  --font-display: 'Gaya', serif;
  --font-body:    'Figtree', sans-serif;
  --gap:          clamp(4rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
}

/* ── Cursor ── */
a, button, [role="button"], label, select, summary {
  cursor: none;
}

.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--ink); border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  z-index: 9999; transition: background 0.25s ease, transform 0.15s ease;
}
.cursor.on-dark {
  background: var(--rose);
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(1.5rem, 6vw, 5rem) 0 clamp(1.5rem, 5vw, 4rem);
  height: 76px;
  background: transparent;
  transition: background 0.4s ease;
}
nav.scrolled { background: var(--sand); }
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 44px; width: auto; transition: opacity 0.25s; }
.nav-logo-img:hover { opacity: 0.7; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--soft); text-decoration: none; transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--taupe); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; background: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: none; padding: 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-dropdown {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--sand);
  padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
  z-index: 99;
  border-top: 1px solid var(--beige);
}
.nav-dropdown.open { display: block; }
.nav-dropdown ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.nav-dropdown ul a {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--soft); text-decoration: none;
}
.nav-dropdown ul a:hover { color: var(--primary); }

@media (max-width: 540px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Footer ── */
footer {
  background: var(--ink);
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sage);
}
footer * { color: inherit; }

/* ── Contact transition overlay ── */
#contact-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--rose);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
#contact-overlay.active { opacity: 1; pointer-events: all; }
#contact-overlay.fade-out { opacity: 0; pointer-events: none; }
#contact-overlay svg { height: 140px; width: auto; }
@keyframes trace-overlay { to { stroke-dashoffset: 0; } }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Keyframes ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes trace-logo { to { stroke-dashoffset: 0; } }

/* ── Page hero (portfolio & experience shared layout) ── */
.page-hero {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  padding-top: 10rem; padding-bottom: 1.5rem;
}
.page-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1rem;
  opacity: 0; animation: fadeUp 0.9s 0.2s forwards;
}
.page-title {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 8rem); line-height: 0.95;
  color: var(--ink);
  opacity: 0; animation: fadeUp 1s 0.4s forwards;
}
.page-title span { color: var(--ink); }

/* ── Section label (shared between portfolio & experience) ── */
.section-label {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary); padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}
