html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto !important; }
:root { --site-anchor-offset: 118px; }
.site-header ~ main > section { scroll-margin-top: var(--site-anchor-offset); }
.hero--hello { --portrait-top: max(var(--site-anchor-offset), clamp(112px, 16svh, 168px)); }
.site-header.hero-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding: 20px 24px;
  isolation: isolate;
  pointer-events: none;
}
.site-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 -18px;
  background: linear-gradient(to bottom, rgb(11 11 11 / .48), rgb(11 11 11 / .16));
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  pointer-events: none;
}
.site-header[data-surface='light']::before { background: linear-gradient(to bottom, rgb(255 255 255 / .7), rgb(255 255 255 / .12)); }
.site-header .gooey-nav {
  --gn-font: 13px;
  --gn-x: 13px;
  --gn-gap: 8px;
  --gn-pad: 8px;
  min-width: 0;
  overflow: visible;
  pointer-events: auto;
  background: rgb(24 22 29 / .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 28px -18px #0009;
}
.site-header .gooey-nav__viewport { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: visible; pointer-events: none; }
.site-header .gooey-nav__stage { width: max-content; max-width: none; overflow: visible; }
.site-header .gooey-nav__list { display: flex; flex-wrap: nowrap; width: max-content; }
.site-header .gooey-nav__list:not(.gooey-nav__list--active) { pointer-events: auto; }
.site-header .gooey-nav__item { flex: 0 0 auto; }
/* Preserve the canvas's 72px animation margin inside a horizontal scroller. */
.site-header .gooey-nav--scrollable .gooey-nav__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 72px;
  margin-block: -72px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.site-header .gooey-nav__viewport::-webkit-scrollbar { display: none; }
.site-header .gooey-nav--scrollable .gooey-nav__stage { overflow-x: clip; overflow-y: visible; }
.site-header .gooey-nav__rim { box-shadow: inset 0 0 0 1px #ffffff1a, inset 0 1px 0 #ffffff12; }
.site-header[data-surface='light'] .gooey-nav { background: rgb(24 22 29 / .78); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: linear-gradient(#0b0b0bf2, #0b0b0b00); }
  .site-header[data-surface='light']::before { background: linear-gradient(#fffffff2, #ffffff00); }
  .site-header .gooey-nav { background: #18161df2; }
}
@media(max-width: 760px) {
  :root { --site-anchor-offset: 110px; }
  .site-header.hero-header { padding: 16px; }
  .site-header .gooey-nav { width: auto; max-width: 100%; border-radius: 999px; --gn-font: 13px; --gn-x: 10px; }
  .hero--hello { --portrait-top: max(var(--site-anchor-offset), clamp(166px, 22svh, 210px)); }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
