/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
#nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-bottom .3s var(--ease);
}
#nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--text);
  line-height: 1;
  transition: color .2s;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  line-height: 1.1;
  min-height: 40px;
  padding: 10px 16px; border-radius: var(--r-full);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover  { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--accent-text); }
.nav-links a.nav-cta {
  background: var(--text); color: var(--bg);
  border-radius: var(--r-full); padding: 10px 22px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a.nav-cta:hover { background: var(--accent); color: #fff; }

/* ── Theme Toggle ── */
.theme-btn {
  width: 38px; height: 38px; border: 1px solid var(--border-2);
  border-radius: var(--r-full); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 15px; line-height: 1; margin-left: 6px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease-spring);
}
.theme-btn:hover { background: var(--bg-alt); color: var(--accent); border-color: var(--accent); transform: rotate(15deg); }

.nav-burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: none; cursor: pointer;
  align-items: center; justify-content: center; color: var(--text); font-size: 16px;
  transition: background .2s var(--ease); margin-left: 8px;
}
.nav-burger:hover { background: var(--bg-alt); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); inset-inline: 0;
  background: var(--drawer-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 20px 20px;
  display: flex; flex-direction: column; gap: 2px; z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-100% - var(--nav-h)));
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .2s var(--ease), visibility 0s linear .35s;
}
.nav-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .2s var(--ease), visibility 0s;
}
.nav-drawer a {
  display: block; padding: 12px 16px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-drawer a:hover { color: var(--text); background: var(--bg-alt); }
.drawer-theme {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--r-md); font-size: 16px; font-weight: 500;
  color: var(--text-2); border: none; background: transparent;
  cursor: pointer; transition: color .2s, background .2s; text-align: left;
}
.drawer-theme:hover { color: var(--text); background: var(--bg-alt); }

/* ══════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section  { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--accent-text); border-radius: var(--r-full); }
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.04em;
  color: var(--text); margin-bottom: 18px;
}
.section-sub { font-size: 17px; color: var(--text-2); line-height: 1.75; max-width: 520px; }

/* ══════════════════════════════════════════════════
   SIDE NAV DOTS
══════════════════════════════════════════════════ */
.side-dots {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.side-dot {
  width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--border-2); display: block;
  transition: background .25s var(--ease), transform .25s var(--ease-spring);
}
.side-dot.active { background: var(--accent); transform: scale(1.5); }
.side-dot:hover  { background: var(--accent-text); transform: scale(1.3); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer { background: var(--surface-dkr); padding: 36px 0; border-top: 1px solid rgba(255,255,255,.06); transition: background .35s; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.f-logo { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 18px; color: rgba(255,255,255,.8); }
.f-logo em { color: var(--accent); font-style: normal; }
.f-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.f-copy a { color: var(--accent); }
.f-right { display: flex; align-items: center; gap: 12px; }
.f-gh { font-size: 16px; color: rgba(255,255,255,.3); transition: color .2s; }
.f-gh:hover { color: rgba(255,255,255,.8); }
.f-v { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,.2); }
