:root {
  --site-shell-paper: #faf9f6;
  --site-shell-ink: #11100e;
  --site-shell-grey: #8a8f98;
  --site-shell-lime: #c6ff3d;
  --site-shell-content: 1180px;
  --site-shell-gutter: clamp(20px, 4vw, 64px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 var(--gutter, var(--site-shell-gutter));
  border-bottom: 1px solid rgba(17, 16, 14, 0.1);
  background: rgba(250, 249, 246, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  line-height: 0;
}

.site-header .logo-image {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.gooey-nav-container {
  position: relative;
  justify-self: center;
  isolation: isolate;
}

.site-header .site-nav {
  position: static;
  display: flex;
  justify-content: center;
  padding: 0;
  color: rgba(17, 16, 14, 0.62);
  font-size: 0.93rem;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.site-header .site-nav ul {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(17, 16, 14, 0.1);
  border-radius: 999px;
  background: rgba(250, 249, 246, 0.74);
  list-style: none;
}

.site-header .site-nav li {
  position: relative;
  border-radius: 999px;
  color: rgba(17, 16, 14, 0.58);
  cursor: pointer;
  transition:
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-header .site-nav li::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lime, var(--site-shell-lime));
  content: "";
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .site-nav li.active {
  color: var(--ink, var(--site-shell-ink));
}

.site-header .site-nav li.active::after {
  opacity: 1;
  transform: scale(1);
}

.site-header .site-nav li:focus-within {
  box-shadow: 0 0 0 2px rgba(198, 255, 61, 0.55);
}

.site-header .site-nav li a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 760;
}

.gooey-effect {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 0;
  height: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0.01px);
  transition:
    width 420ms cubic-bezier(0.16, 1, 0.3, 1),
    height 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease;
}

.gooey-effect.is-ready {
  opacity: 1;
}

.gooey-effect::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lime, var(--site-shell-lime));
  content: "";
  filter: blur(6px);
  opacity: 0.72;
  transform: scale(0.94);
}

.site-header .nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--paper, var(--site-shell-paper));
  font-size: 0.92rem;
  font-weight: 780;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow:
    inset 0 1px rgba(250, 249, 246, 0.42),
    inset 0 -1px rgba(17, 16, 14, 0.72),
    0 6px 14px -8px rgba(17, 16, 14, 0.86);
  transition:
    color 240ms ease,
    border-color 240ms ease,
    box-shadow 300ms ease,
    transform 240ms ease;
}

.site-header .nav-cta::before,
.site-header .nav-cta::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.site-header .nav-cta::before {
  inset: 1px;
  z-index: 1;
  border-radius: 7px;
  background:
    radial-gradient(at 16% 0%, rgba(250, 249, 246, 0.24), transparent 40%),
    radial-gradient(at 26% 100%, rgba(138, 143, 152, 0.34), transparent 54%),
    radial-gradient(at 88% 12%, rgba(198, 255, 61, 0.2), transparent 48%),
    linear-gradient(
      135deg,
      rgba(250, 249, 246, 0.14),
      rgba(17, 16, 14, 0.96) 42%,
      rgba(17, 16, 14, 0.9)
    );
}

.site-header .nav-cta::after {
  top: -60%;
  bottom: -60%;
  left: -45%;
  z-index: 2;
  width: 32%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(198, 255, 61, 0.26),
    rgba(250, 249, 246, 0.82),
    transparent
  );
  opacity: 0;
  transform: translateX(-160%) skewX(-18deg);
  transition:
    opacity 180ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .nav-cta-label {
  position: relative;
  z-index: 3;
}

.site-header .nav-cta:is(:hover, :focus-visible) {
  border-color: var(--lime, var(--site-shell-lime));
  background: transparent;
  color: var(--paper, var(--site-shell-paper));
  box-shadow:
    inset 0 1px rgba(250, 249, 246, 0.58),
    inset 0 -1px rgba(17, 16, 14, 0.74),
    0 0 0 1px rgba(198, 255, 61, 0.22),
    0 10px 22px -11px rgba(17, 16, 14, 0.92);
  transform: translateY(-1px) scale(1.02);
}

.site-header .nav-cta:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translateX(620%) skewX(-18deg);
}

.site-header .nav-cta:active {
  transform: translateY(0) scale(0.99);
}

.site-footer-surface {
  background: var(--ink, var(--site-shell-ink));
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(
    var(--content, var(--site-shell-content)),
    calc(100% - (var(--gutter, var(--site-shell-gutter)) * 2))
  );
  margin: 0 auto;
  padding: 42px 0;
  border-top: 1px solid var(--line-dark, rgba(250, 249, 246, 0.18));
  background: transparent;
  color: var(--paper, var(--site-shell-paper));
}

.site-footer .logo {
  --active: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8.4px 14.4px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  line-height: 0;
  transform: scale(calc(1 + (var(--active) * 0.04)));
  transform-origin: center;
  transition: transform 300ms ease-in-out;
}

.site-footer .logo::before,
.site-footer .logo::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.site-footer .logo::before {
  z-index: 1;
  background: var(--ink, var(--site-shell-ink));
  box-shadow:
    inset 0 0.5px rgba(250, 249, 246, 0.75),
    inset 0 -1px 2px rgba(0, 0, 0, 0.72),
    0 5px 14px -6px rgba(0, 0, 0, 0.9);
}

.site-footer .logo::after {
  z-index: 2;
  background:
    radial-gradient(at 24% 100%, rgba(138, 143, 152, 0.3), transparent 52%),
    radial-gradient(at 78% 0%, rgba(198, 255, 61, 0.18), transparent 48%),
    var(--ink, var(--site-shell-ink));
  opacity: var(--active);
  transition: opacity 300ms ease-in-out;
}

.site-footer .logo-image {
  position: relative;
  z-index: 3;
  display: block;
  width: 108px;
  max-width: 100%;
  height: auto;
  opacity: 0.94;
  filter: brightness(0) invert(1);
}

.footer-logo-border {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.footer-logo-border::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1;
  background: conic-gradient(
    transparent 0deg 245deg,
    rgba(138, 143, 152, 0.42) 278deg,
    rgba(250, 249, 246, 0.92) 310deg,
    var(--lime, var(--site-shell-lime)) 332deg,
    transparent 360deg
  );
  animation: footer-logo-ring 3.2s linear infinite;
  content: "";
  transform: translate(-50%, -50%) rotate(0deg);
}

.site-footer .logo:is(:hover, :focus-visible) {
  --active: 1;
}

.site-footer .logo:active {
  transform: scale(1);
}

.site-footer p {
  max-width: 430px;
  margin: 10px 0 0;
  color: rgba(250, 249, 246, 0.62);
}

.site-footer nav {
  display: flex;
  align-content: initial;
  align-self: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 22px;
  color: rgba(250, 249, 246, 0.62);
}

.site-footer nav a {
  min-height: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.site-footer nav a:is(:hover, :focus-visible) {
  color: var(--lime, var(--site-shell-lime));
}

.site-footer .footer-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(250, 249, 246, 0.62);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 400;
}

@keyframes footer-logo-ring {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .site-nav li,
  .site-header .site-nav li::after,
  .gooey-effect,
  .site-header .nav-cta,
  .site-header .nav-cta::after,
  .site-footer .logo,
  .site-footer .logo::after {
    transition: none;
  }

  .site-header .nav-cta::after {
    display: none;
  }

  .footer-logo-border::before {
    animation: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header .site-nav,
  .gooey-nav-container {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --site-shell-gutter: 18px;
  }

  .site-header {
    min-height: 66px;
  }

  .site-header .logo-image {
    width: 132px;
  }

  .site-header .nav-cta {
    display: none;
  }

  .site-footer .logo {
    padding: 9.8px 16.8px;
  }

  .site-footer .logo-image {
    width: 126px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 10px;
  }
}
