/* Theme tokens
   - Light is the default in :root.
   - prefers-color-scheme: dark applies dark tokens when no explicit theme is set.
   - [data-theme="dark"] / [data-theme="light"] override the OS preference. */

/* Palette: "Ocean Beach at golden hour" — warm sand + Pacific blue + sunset
   amber, to sit with the hero photos. */

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fdfbf7;
  --bg-alt: #f7f2ea;
  --surface: #ffffff;
  --fg: #1b1d24;
  --fg-muted: #5e6370;
  --accent: #1f4fa8;
  --accent-2: #b0501a;
  --accent-hover: #173d85;
  --border: #ebe4d8;
  --border-soft: #f3eee5;
  --button-fg: #ffffff;
  --accent-soft-bg: rgba(31, 79, 168, 0.08);
  --accent-soft-border: rgba(31, 79, 168, 0.28);
  --accent-2-soft-bg: rgba(176, 80, 26, 0.09);
  --accent-2-soft-border: rgba(176, 80, 26, 0.30);
  --hero-glow-1: rgba(240, 150, 60, 0.16);
  --hero-glow-2: rgba(31, 79, 168, 0.06);
  --hero-photo-opacity: 1;
  --hero-fog: rgba(253, 251, 247, 0.35);
  --nav-fog: rgba(253, 251, 247, 0.88);
  --page-glass: rgba(253, 251, 247, 0.55);
  --page-glass-alt: rgba(247, 242, 234, 0.25);
  --hero-nav: #3d4250;
  --hero-nav-glow: none;
  --hero-text: #1f2229;
  --hero-text-glow: none;
  --lockup-bg: rgba(255, 255, 255, 0.34);
  --lockup-border: rgba(255, 255, 255, 0.7);
  --lockup-shadow: rgba(120, 80, 30, 0.10);
  --max: 960px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131b2b;
  --bg-alt: #182236;
  --surface: #1d2840;
  --fg: #ece8e1;
  --fg-muted: #b0b6c3;
  --accent: #8ab4f8;
  --accent-2: #f2a65a;
  --accent-hover: #a8c7fa;
  --border: #2a3550;
  --border-soft: #222c42;
  --button-fg: #131b2b;
  --accent-soft-bg: rgba(138, 180, 248, 0.14);
  --accent-soft-border: rgba(138, 180, 248, 0.35);
  --accent-2-soft-bg: rgba(242, 166, 90, 0.12);
  --accent-2-soft-border: rgba(242, 166, 90, 0.35);
  --hero-glow-1: rgba(242, 166, 90, 0.14);
  --hero-glow-2: rgba(138, 180, 248, 0.10);
  --hero-photo-opacity: 0.85;
  --hero-fog: rgba(19, 27, 43, 0.50);
  --nav-fog: rgba(19, 27, 43, 0.92);
  --page-glass: rgba(19, 27, 43, 0.58);
  --page-glass-alt: rgba(24, 34, 54, 0.25);
  --hero-nav: #e3e6ec;
  --hero-nav-glow: 0 1px 6px rgba(0, 0, 0, 0.7);
  --hero-text: var(--fg);
  --hero-text-glow: none;
  --lockup-bg: rgba(19, 27, 43, 0.42);
  --lockup-border: rgba(255, 255, 255, 0.08);
  --lockup-shadow: rgba(0, 0, 0, 0.30);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #131b2b;
    --bg-alt: #182236;
    --surface: #1d2840;
    --fg: #ece8e1;
    --fg-muted: #b0b6c3;
    --accent: #8ab4f8;
    --accent-2: #f2a65a;
    --accent-hover: #a8c7fa;
    --border: #2a3550;
    --border-soft: #222c42;
    --button-fg: #131b2b;
    --accent-soft-bg: rgba(138, 180, 248, 0.14);
    --accent-soft-border: rgba(138, 180, 248, 0.35);
    --accent-2-soft-bg: rgba(242, 166, 90, 0.12);
    --accent-2-soft-border: rgba(242, 166, 90, 0.35);
    --hero-glow-1: rgba(242, 166, 90, 0.14);
    --hero-glow-2: rgba(138, 180, 248, 0.10);
    --hero-photo-opacity: 0.85;
    --hero-fog: rgba(19, 27, 43, 0.50);
    --nav-fog: rgba(19, 27, 43, 0.92);
    --page-glass: rgba(19, 27, 43, 0.58);
    --page-glass-alt: rgba(24, 34, 54, 0.25);
    --hero-nav: #e3e6ec;
    --hero-nav-glow: 0 1px 6px rgba(0, 0, 0, 0.7);
    --hero-text: var(--fg);
    --hero-text-glow: none;
    --lockup-bg: rgba(19, 27, 43, 0.42);
    --lockup-border: rgba(255, 255, 255, 0.08);
    --lockup-shadow: rgba(0, 0, 0, 0.30);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--hero-glow-1), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, var(--hero-glow-2), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 80px;
}

/* Ocean Beach photo behind the main hero, faded into the
   page by a mask, with a fog bank over the logo/text side so the thin logo
   strokes stay legible. */
.hero-photos {
  /* Fixed to the viewport so the rest of the page scrolls over the photo. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: max(720px, 58.75vw);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
}
.hero:not(.compact) { border-bottom: 0; }
.photo-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  opacity: 0.75;
}
@media (max-width: 600px) {
  .photo-credit { left: 16px; text-align: right; font-size: 0.66rem; }
}
/* Page content after the photo hero: frosted glass so the photo shows
   through faintly as you scroll. */
.hero:not(.compact) ~ main,
.hero:not(.compact) ~ .footer {
  position: relative;
  z-index: 1;
  background: var(--page-glass);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero:not(.compact) ~ main {
  border-top: 1px solid var(--lockup-border);
}
.hero:not(.compact) ~ main .section.alt {
  background: var(--page-glass-alt);
}
.hero-slides {
  position: absolute;
  inset: 0;
  opacity: var(--hero-photo-opacity);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% top;
  filter: brightness(1.08);
  background-repeat: no-repeat;
}

/* Fog: a soft bank over the left (where the logo sits) plus slow-drifting wisps. */
.hero-fog,
.hero-fog::before {
  position: absolute;
  inset: -10% -20%;
}
.hero-fog {
  background:
    linear-gradient(180deg, var(--nav-fog) 0, var(--nav-fog) 100px, transparent 150px),
    radial-gradient(ellipse 55% 75% at 30% 45%, var(--hero-fog) 0%, var(--hero-fog) 35%, transparent 75%),
    linear-gradient(90deg, var(--hero-fog) 0%, transparent 70%);
}
.hero-fog::before {
  content: "";
  background:
    radial-gradient(ellipse 30% 14% at 25% 70%, var(--hero-fog), transparent 70%),
    radial-gradient(ellipse 26% 12% at 70% 58%, var(--hero-fog), transparent 70%),
    radial-gradient(ellipse 34% 16% at 55% 85%, var(--hero-fog), transparent 70%);
  filter: blur(18px);
  animation: hero-fog-drift 45s ease-in-out infinite alternate;
}
@keyframes hero-fog-drift {
  from { transform: translateX(-6%); }
  to   { transform: translateX(6%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fog::before { animation: none; }
}
@media (max-width: 600px) {
  /* Phones get a portrait crop that keeps the sun and Seal Rock in frame
     (!important beats the inline desktop image on the element). */
  .hero-photo {
    background-image: url("hero/sf-1-mobile.jpg") !important;
    background-position: right top;
  }
  /* Light fog: enough under the menu and text, but let the sun glow through. */
  .hero-fog {
    background:
      linear-gradient(180deg, var(--nav-fog) 0, rgba(19, 27, 43, 0.45) 140px, transparent 230px),
      linear-gradient(180deg, transparent 30%, var(--hero-fog) 50%, var(--hero-fog) 85%, transparent 100%);
  }
}
.hero.compact { padding-bottom: 24px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}

/* Theme-aware image swap: any element with .logo-light is shown in light mode,
   .logo-dark in dark mode. Works with the data-theme override and the
   prefers-color-scheme fallback. */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}

/* Hero lockup figure */
.hero-lockup {
  margin: 0 0 22px;
  line-height: 1;
}
/* Frosted panel behind the logo on the photo hero. */
.hero:not(.compact) .nav-links a:not(:hover) {
  color: var(--hero-nav);
  text-shadow: var(--hero-nav-glow);
}
.hero:not(.compact) .tagline,
.hero:not(.compact) .meta {
  color: var(--hero-text);
  text-shadow: var(--hero-text-glow);
}
.hero:not(.compact) .tagline { font-size: 1.02rem; }
.hero:not(.compact) .meta { font-size: 0.86rem; gap: 18px; }
/* Quieter, glassy CTA on the photo hero (other .button uses stay solid). */
.hero:not(.compact) .button {
  background: var(--lockup-bg);
  color: var(--accent);
  border: 1px solid var(--accent-soft-border);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 16px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.hero:not(.compact) .button:hover {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
}
.hero:not(.compact) .hero-lockup {
  max-width: calc(640px + 2 * 14px);
  margin-bottom: 40px; /* beats the generic `.hero h1` margin */
  padding: 6px 14px;
  border-radius: 18px;
  background: var(--lockup-bg);
  border: 1px solid var(--lockup-border);
  box-shadow: 0 10px 30px var(--lockup-shadow);
  -webkit-backdrop-filter: blur(4px) saturate(1.1);
          backdrop-filter: blur(4px) saturate(1.1);
}
.hero-lockup img {
  width: 100%;
  max-width: 640px;
  height: auto;
}
.brand-sub {
  color: var(--fg-muted);
  font-weight: 400;
  margin-left: 4px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 0.92rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  text-decoration: none;
}

/* Theme toggle — pinned just above the right edge of the nav content */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: max(16px, calc((100vw - var(--max)) / 2 + 16px));
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 0;
}
@media (max-width: 600px) {
  .hero { padding-bottom: 48px; }
  .hero-inner { padding: 6px 14px 0; }
  .nav { padding: 14px 16px; }
  .section { padding: 40px 16px; }

  /* Compact nav: smaller text, tighter gap, drop the redundant subtitle */
  .brand { font-size: 0.95rem; }
  .brand-sub { display: none; }
  .nav-links { gap: 10px 14px; }
  .nav-links a { font-size: 0.82rem; }

  /* Give the hero lockup a touch more room on small screens */
  .hero-lockup { margin-bottom: 18px; }
}
.hero.compact .hero-inner { padding-top: 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.tagline {
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin: 0 0 22px;
  max-width: 640px;
}
.meta {
  display: flex;
  gap: 22px;
  color: var(--fg-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
  margin: 0;
}

/* Sections */
main { padding-bottom: 80px; }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
.section.alt {
  background: var(--bg-alt);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section h2 {
  font-size: 1.7rem;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section h3 {
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--fg);
}
.muted { color: var(--fg-muted); }

.topics {
  columns: 2;
  column-gap: 32px;
  padding-left: 18px;
  margin: 8px 0 0;
}
.topics li { margin: 4px 0; }
@media (max-width: 600px) { .topics { columns: 1; } }

/* Goals grid */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.goal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.goal-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.goal-num {
  color: var(--accent-2);
  margin-right: 6px;
}
.goal-sub {
  margin: 0 0 14px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.goal ul {
  padding-left: 18px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.goal ul li { margin: 6px 0; }

.status {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 8px;
}
.status.confirmed {
  background: var(--accent-soft-bg);
  color: var(--accent);
  border: 1px solid var(--accent-soft-border);
}
.status.tentative {
  background: var(--accent-2-soft-bg);
  color: var(--accent-2);
  border: 1px solid var(--accent-2-soft-border);
}

/* Dates */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.date-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.date-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin: 0 0 6px;
}
.date-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.cta-row { margin-top: 12px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--button-fg);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
}
.button:hover { background: var(--accent-hover); text-decoration: none; }

/* Schedule */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.schedule td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule .time {
  width: 80px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Info dot + popover bubble */
.info-dot {
  anchor-name: --dbg-anchor;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  padding: 0;
  border: 1px solid var(--accent-soft-border);
  border-radius: 50%;
  background: var(--accent-soft-bg);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease, transform 0.15s ease;
}
.info-dot:hover { background: var(--accent-soft-border); transform: translateY(-1px); }
.info-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bubble {
  max-width: min(340px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
  line-height: 1.55;
}
.bubble p { margin: 0; }
.bubble p + p { margin-top: 8px; }
.bubble .bubble-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Anchor the bubble just to the right of the dot where supported; otherwise
   it stays a centered card. Flips to the left/below if there's no room. */
@supports (anchor-name: --a) {
  .bubble {
    position: fixed;
    position-anchor: --dbg-anchor;
    top: anchor(top);
    left: anchor(right);
    margin-left: 10px;
    position-try-fallbacks: flip-inline, flip-block;
  }
}

/* Speakers */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.speaker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.speaker, .organizer { text-align: center; }
.speaker .bio-details .bio,
.organizer .bio-details .bio { text-align: left; }
.speaker .avatar,
.organizer .avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--border);
  background: var(--bg);
}
.site-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.15s;
}
.site-link:hover, .site-link:focus-visible { opacity: 1; }
.speaker .name { margin: 0; font-weight: 600; }
.speaker .affil { margin: 4px 0 0; color: var(--fg-muted); font-size: 0.9rem; }

/* Organizers */
.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.organizer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.organizer .name { margin: 0; font-weight: 600; }
.organizer .affil { margin: 4px 0 10px; color: var(--fg-muted); font-size: 0.9rem; }
.organizer .interests {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--accent-2);
  font-style: italic;
  letter-spacing: 0.01em;
}

.bio-details {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.bio-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--accent);
  list-style: none;
  user-select: none;
}
.bio-details summary::-webkit-details-marker { display: none; }
.bio-details summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.bio-details[open] summary::before {
  content: "▾ ";
}
.bio-details summary:hover { color: var(--accent-hover); }
.bio-details .bio {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Papers */
.papers {
  list-style: decimal;
  padding-left: 22px;
}
.papers li { margin: 18px 0; }
.paper-title { margin: 0; font-weight: 600; }
.paper-authors { margin: 4px 0 0; color: var(--fg-muted); font-size: 0.95rem; }
.paper-links { margin: 6px 0 0; font-size: 0.9rem; }

/* Committee */
.committee-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 24px;
}
.committee-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.pc-name { font-weight: 500; }
.pc-affil { color: var(--fg-muted); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Phones: swap in the compact lockup (ring beside a 3-line title) so the
   logo stays legible, and keep the hero text below it understated. */
.logo-stacked { display: none; }
.text-short { display: none; }
@media (max-width: 600px) {
  .hero-lockup .logo-light,
  .hero-lockup .logo-dark { display: none !important; }
  .hero-lockup .logo-stacked { display: block; width: 100%; height: auto; }
  .hero:not(.compact) .hero-lockup { margin-bottom: 20px; padding: 14px 16px; }
  .hero:not(.compact) .tagline { font-size: 0.76rem; line-height: 1.5; margin-bottom: 10px; }
  .hero:not(.compact) .meta { font-size: 0.68rem; gap: 2px 12px; }
  .hero:not(.compact) .cta-row { margin-top: 12px; }
  .hero:not(.compact) .button { font-size: 0.72rem; padding: 5px 11px; }
  .photo-credit { font-size: 0.6rem; text-wrap: balance; }
  .text-full { display: none; }
  .text-short { display: inline; }
}

/* Phones: the menu collapses behind a "Menu" button and opens as a
   frosted dropdown over the page. */
.nav-toggle { display: none; }
@media (max-width: 600px) {
  .nav { position: relative; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--fg);
    background: var(--lockup-bg);
    border: 1px solid var(--lockup-border);
    border-radius: 999px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
  }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    z-index: 10;
    padding: 8px 16px;
    background: var(--nav-fog);
    border: 1px solid var(--lockup-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px var(--lockup-shadow);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }
  .nav.open .nav-links a { display: block; padding: 8px 0; font-size: 0.92rem; }
}
}
