/* ── Shared styles across all pages ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream:   #FAFAF8;
  --charcoal:#1A1A1A;
  --blush:   #E8C4B0;
  --clay:    #C47A5A;
  --sage:    #8FA89A;
  --mid:     #5A5A5A;
  --rule:    #D8D8D4;
  --peach-bg:#F9EDE7;
  --teal:    #3A8A96;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: block;
  padding: 20px 40px;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  /* Start hidden above viewport */
  transform: translateY(-100%);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
  pointer-events: none;
}
/* Visible state — added by JS on scroll down */
nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
}
nav.scrolled { border-bottom-color: rgba(255,255,255,.1); }
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 1em;
  letter-spacing: .14em; text-transform: uppercase;
  color: white; opacity: .85; transition: opacity .2s;
}
.nav-logo:hover { opacity: 1; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: white; opacity: .65; transition: opacity .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-contact {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 20px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: white;
  opacity: 1 !important;
  transition: background .2s, color .2s, border-color .2s !important;
}
.nav-contact:hover { background: white !important; color: var(--charcoal) !important; border-color: white !important; }

/* Shared layout */
.section-pad { padding: 104px 52px; }
.section-label {
  font-size: .67rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
}
hr.divider { border: none; border-top: 1px solid var(--rule); margin: 0 52px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Footer */
footer {
  padding: 36px 52px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); flex-wrap: wrap; gap: 20px;
}
.footer-copy { font-size: .7rem; color: var(--mid); opacity: .5; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--mid); transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--clay); color: var(--clay); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }
.resume-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  border: 1.5px solid var(--charcoal); padding: 9px 18px;
  transition: background .2s, color .2s;
}
.resume-btn:hover { background: var(--charcoal); color: var(--cream); }
.resume-btn svg { width: 12px; height: 12px; }

@media (max-width: 640px) {
  nav { padding: 18px 24px; }
  .nav-contact { display: none; }
  .section-pad { padding: 72px 24px; }
  hr.divider { margin: 0 24px; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Max-width wrapper */
.page-wrap {
  max-width: 1320px;
  margin: 0 auto;
}
/* Section pad inner constrains content too */
.section-pad > .page-wrap {
  width: 100%;
}
