/* ════════════════════════════════════════════════════
   TopNav — sticky/frosted header shared across pages
   (used as-is on inner pages; index page has its own
    transparent-over-hero variant inline in <style>)
   ════════════════════════════════════════════════════ */

/* skip-link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 200;
  font: 500 14px/1 var(--font-body);
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 16, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(245, 241, 236, 0.08);
}
.topnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center;
  gap: 32px;
}

.topnav-sig {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-light);
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-sig:hover { color: var(--text-light); text-decoration: none; }
.topnav-sig-mark {
  width: 42px; height: 42px;
  border: 1px solid rgba(245, 241, 236, 0.45);
  border-radius: 50%;
  display: grid; place-items: center;
  font: 500 italic 18px/1 var(--font-serif);
  color: var(--text-light);
  letter-spacing: 1px;
  background: rgba(31, 27, 23, 0.20);
}
.topnav-sig-text {
  display: flex; flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.topnav-sig-name {
  font: 500 15px/1.2 var(--font-body);
  color: var(--text-light);
  letter-spacing: 0.2px;
}
.topnav-sig-role {
  font: 500 11px/1.3 var(--font-body);
  color: rgba(245, 241, 236, 0.62);
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.topnav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.topnav-links a {
  color: rgba(245, 241, 236, 0.82);
  font: 400 14px/1 var(--font-body);
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.topnav-links a:hover { color: var(--accent); }
.topnav-links a.is-active { color: var(--accent); }

.topnav-cta {
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font: 500 14px/1 var(--font-body);
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex-shrink: 0;
  cursor: pointer;
}
.topnav-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ─── Hamburger ─── */
.topnav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(245, 241, 236, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease);
}
.topnav-burger:hover { border-color: var(--accent); }
.topnav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-light);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  transform-origin: center;
}
.topnav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.topnav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topnav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile menu panel ─── */
.topnav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(20, 16, 12, 0.96);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  padding: 92px var(--gutter-mobile) 32px;
  transform: translateY(-100%);
  transition: transform 0.32s var(--ease);
  border-bottom: 1px solid rgba(245, 241, 236, 0.08);
  max-height: 100vh;
  overflow-y: auto;
}
.topnav-mobile[data-open="true"] { transform: translateY(0); }
.topnav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.topnav-mobile-links a {
  display: block;
  padding: 14px 4px;
  color: var(--text-light);
  font: 500 18px/1.3 var(--font-serif);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 236, 0.08);
  transition: color var(--dur) var(--ease);
}
.topnav-mobile-links a:hover { color: var(--accent); }
.topnav-mobile-links a.is-active { color: var(--accent); }
.topnav-mobile-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font: 500 15px/1 var(--font-body);
  letter-spacing: 0.3px;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .topnav-links { display: none; }
  .topnav-cta { display: none; }
  .topnav-burger { display: inline-flex; margin-left: auto; }
  .topnav-mobile { display: block; }
  .topnav-inner { justify-content: space-between; gap: 16px; }
}
@media (max-width: 480px) {
  .topnav-sig-text { display: none; }
}

/* ─── Scroll-to-top button ─── */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(20, 16, 12, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.scroll-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.scroll-top svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
