/* Desktop header: quiet at the top, a single navigation capsule after scrolling. */
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body > .first-screen { z-index: 30; }
body > main > .first-screen { z-index: 2; }
.first-screen { padding-top: 78px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--site-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus,
.skip-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  transform: translateY(0);
}
#main-content { scroll-margin-top: 88px; }
.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  padding: 40px var(--page-gutter) 0;
  transition: top 240ms ease, padding 240ms ease;
}
.site-header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  width: 100%;
  min-height: 38px;
  margin: 0 auto;
  transition: min-height 240ms ease, padding 240ms ease, border-color 240ms ease, border-radius 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}
.site-brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.site-header .logo { transition: width 240ms ease; }
.site-section-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 2.6vw, 52px);
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 220ms ease, visibility 0s linear 220ms;
}
.site-section-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 15px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.site-section-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .5;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
}
.site-section-nav a:hover,
.site-section-nav a[aria-current="true"] { color: var(--text); }
.site-section-nav a:hover::after,
.site-section-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid #4f64452b;
  border-radius: 999px;
  background: #ffffff3d;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.site-menu-toggle:hover,
.site-menu-toggle[aria-expanded="true"] { border-color: #4f644548; background: #ffffff80; }
.site-menu-icon { transition: none; }
.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(430px, calc(100vw - var(--page-gutter) * 2));
  padding: 9px 18px;
  border: 1px solid #4f644529;
  border-radius: 22px;
  background: color-mix(in srgb, var(--background) 83%, #fff 17%);
  box-shadow: 0 18px 50px #26361c17;
  backdrop-filter: blur(20px);
}
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 0 5px;
  border-bottom: 1px solid #4f64451d;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.site-menu a:hover,
.site-menu a:focus-visible { color: var(--olive); }
.site-menu a:last-child { border-bottom: 0; }
.site-header:not([data-enhanced="true"]) .site-header-shell { grid-template-columns: auto minmax(0, 1fr); }
.site-header:not([data-enhanced="true"]) .site-section-nav,
.site-header:not([data-enhanced="true"]) .site-menu-toggle { display: none; }
.site-header:not([data-enhanced="true"]) .site-menu[hidden] {
  position: static;
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
  backdrop-filter: none;
}
.site-header:not([data-enhanced="true"]) .site-menu[hidden]::-webkit-scrollbar { display: none; }
.site-header:not([data-enhanced="true"]) .site-menu a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 8px;
  border-bottom: 0;
  font-size: 11px;
  white-space: nowrap;
}
.site-header.is-scrolled { top: 10px; padding: 0 var(--page-gutter); }
.site-header.is-scrolled .site-header-shell {
  min-height: 52px;
  padding: 6px 10px 6px 28px;
  border: 1px solid #4f64452d;
  border-radius: 999px;
  background: color-mix(in srgb, var(--background) 78%, #fff 22%);
  box-shadow: 0 12px 40px #26361c10;
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled .logo { width: 96px; }
.site-header.is-scrolled .site-section-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 70ms, 70ms, 0s;
}
.site-header.is-scrolled .site-menu-toggle {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.site-header.is-scrolled .site-menu-toggle:hover,
.site-header.is-scrolled .site-menu-toggle[aria-expanded="true"] { border-color: transparent; background: transparent; }
.site-header.is-scrolled .site-menu-toggle span { display: none; }
.site-header.is-scrolled .site-menu { right: 10px; }
@media (max-width: 1080px) and (min-width: 761px) {
  .site-header-shell { gap: 14px; }
  .site-section-nav { gap: 24px; }
  .site-section-nav a { font-size: 12.5px; }
  .site-header.is-scrolled .logo { width: 88px; }
  .site-header.is-scrolled .site-header-shell { padding-left: 22px; }
  .site-menu-toggle { padding-inline: 13px; }
  .site-header.is-scrolled .site-menu-toggle { width: 34px; min-height: 34px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header,
  .site-header-shell,
  .site-header .logo,
  .site-section-nav,
  .site-section-nav a::after,
  .site-menu-icon { transition: none; }
}
