@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Karla:wght@300;400&family=Cormorant+Garamond:ital,wght@0,300;1,300&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --black: #080808;
  --white: #fafafa;
  --ink: #0a0a0a;
  --muted: rgba(0,0,0,0.35);
  --faint: rgba(0,0,0,0.06);
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Karla', sans-serif;
  --nav-h: 72px;
}

/* ── Nav ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--faint);
}
.nav--dark { background: rgba(8,8,8,0.92); border-color: rgba(255,255,255,0.05); }
.nav--light { background: rgba(250,250,250,0.94); }

.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__wordmark {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav--dark .nav__wordmark { color: rgba(255,255,255,0.82); }
.nav--light .nav__wordmark { color: rgba(0,0,0,0.75); }

.nav__links { display: flex; gap: 2.5rem; list-style: none; }
.nav__links a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
  padding-bottom: 2px;
}
.nav--dark .nav__links a { color: rgba(255,255,255,0.38); }
.nav--dark .nav__links a:hover,
.nav--dark .nav__links a.active { color: rgba(255,255,255,0.9); }
.nav--dark .nav__links a.active { border-bottom: 1px solid rgba(255,255,255,0.6); }
.nav--light .nav__links a { color: rgba(0,0,0,0.35); }
.nav--light .nav__links a:hover,
.nav--light .nav__links a.active { color: var(--ink); }
.nav--light .nav__links a.active { border-bottom: 1px solid rgba(0,0,0,0.6); }

/* ── Logo SVG ── */
.nav__mark { flex-shrink: 0; }

/* ── Section utilities ── */
.section { padding: 3.5rem 3rem; }
.section--sm { padding: 2rem 3rem; }
.section--lg { padding: 5rem 3rem; }
.divider { border: none; border-top: 1px solid var(--faint); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.28);
  margin-bottom: 1.8rem;
  display: block;
}
.eyebrow--dark { color: rgba(255,255,255,0.28); }

.label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.28);
}

/* ── Two col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-top: 1px solid var(--faint);
}
.footer__copy {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.22);
  text-transform: uppercase;
}
.footer__links { display: flex; gap: 2rem; }
.footer__links a {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.22);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .section { padding: 2.5rem 1.5rem; }
  .section--lg { padding: 3rem 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
  .nav__wordmark { display: none; }

  /* Hide desktop links, show burger */
  .nav__links { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    flex-shrink: 0;
  }
  .nav__burger span {
    display: block; height: 1px; width: 100%;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav--dark .nav__burger { color: rgba(255,255,255,0.8); }
  .nav--light .nav__burger { color: rgba(0,0,0,0.75); }
  /* Burger → X when open */
  .nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Overlay */
  .nav__overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav__overlay.is-open { display: block; }

  /* Drawer slides in from right */
  .nav__drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(72vw, 280px);
    background: #fafafa;
    border-left: 1px solid rgba(0,0,0,0.08);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    padding: 5rem 2rem 2.5rem;
    gap: 0;
  }
  .nav--dark ~ .nav__drawer,
  .nav__drawer.nav__drawer--dark {
    background: #0a0a0a;
    border-left-color: rgba(255,255,255,0.06);
  }
  .nav__drawer.is-open { transform: translateX(0); }

  .nav__drawer a {
    font-family: var(--font-sans);
    font-size: 13px; font-weight: 300;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(0,0,0,0.55); text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color 0.2s;
  }
  .nav__drawer a:first-child { border-top: 1px solid rgba(0,0,0,0.06); }
  .nav__drawer a:hover,
  .nav__drawer a.active { color: var(--ink); }
  .nav__drawer a.active { font-weight: 400; }
  .nav__drawer--dark a { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.06); }
  .nav__drawer--dark a:hover,
  .nav__drawer--dark a.active { color: #fafafa; }

  /* Close button inside drawer */
  .nav__drawer-close {
    position: absolute; top: 1.2rem; right: 1.2rem;
    width: 32px; height: 32px;
    background: none; border: none;
    cursor: pointer; color: inherit; opacity: 0.45;
    font-size: 20px; line-height: 32px; text-align: center;
  }
}

@media (min-width: 769px) {
  .nav__burger { display: none; }
  .nav__drawer { display: none; }
  .nav__overlay { display: none; }
}
