.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: clamp(0.7rem, 1.8vw, 1.1rem) clamp(0.9rem, 2.6vw, 1.75rem);
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  color: var(--fg);
  transition: height .35s var(--ease), padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: none;
}

.site-header.is-scrolled {
  height: var(--header-height);
  padding: clamp(0.55rem, 1.5vw, 0.9rem) clamp(1rem, 3vw, 1.5rem);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  height: clamp(48px, 6vw, var(--brand-max-height));
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: .03em;
}

.brand-tagline {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.desk-nav {
  display: none;
}

.desk-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .85rem;
  align-items: center;
}

.desk-nav a {
  padding-bottom: .35rem;
  opacity: .9;
  border-bottom: 2px solid transparent;
}

.desk-nav a:hover,
.desk-nav a:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(37, 99, 235, 0.35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff !important;
  border-bottom: none !important;
  transition: filter .2s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.05);
}

.drawer {
  position: fixed;
  inset: var(--header-offset, var(--header-expanded-height)) auto 0 0;
  width: min(88vw, 360px);
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  border-left: none;
  height: max-content;
  transform: translateX(-100%);
  transition: transform .28s var(--ease);
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-drawer);
}

@media (max-width: 540px) {
  .drawer {
    width: 100vw;
    border-right: none;
    border-left: none;
  }
}

.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.drawer li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: .65rem;
}

.drawer li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.drawer a {
  display: block;
  padding: .2rem 0;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(1px);
  z-index: var(--z-scrim);
}

.site-header[data-open] .drawer {
  transform: translateX(0);
}

.site-header[data-open] .scrim,
.site-header[data-open] ~ #navScrim {
  display: block;
}

.site-header:not([data-open]) .scrim,
#navScrim[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: clamp(2rem, 5vw, 4rem);
  }

  .site-header:not(.is-scrolled) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    gap: clamp(0.9rem, 2.4vw, 1.6rem);
    min-height: var(--header-expanded-height);
    padding-block: clamp(1.35rem, 4vw, 2.4rem);
  }

  .site-header:not(.is-scrolled) .brand img {
    height: clamp(60px, 6.5vw, var(--brand-max-height));
  }

  .site-header:not(.is-scrolled) .brand-text {
    align-items: center;
  }

  .site-header:not(.is-scrolled) .brand-tagline {
    letter-spacing: .2em;
  }

  .desk-nav {
    display: flex;
    justify-self: center;
  }

  .menu-btn,
  .drawer,
  .scrim {
    display: none !important;
  }
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2rem);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.section_background {
  background: var(--surface-alt);
}

.section-gray {
  background: var(--surface-alt);
}

.footer-grid {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2rem);
  grid-template-areas:
    "brand"
    "socials"
    "credit";
  justify-items: center;
}

.footer-brand,
.footer-socials,
.footer-credit {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .95rem;
  opacity: .85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-socials {
  flex-direction: row;
  gap: 1rem;
}

.footer-social {
  display: inline-flex;
  width: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.footer-social:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.footer-social img {
  width: 24px;
  height: 24px;
}

.footer-credit a {
  color: var(--accent-strong);
  border-bottom-color: rgba(37, 99, 235, 0.35);
}

.site-footer {
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "socials brand credit";
    align-items: center;
    justify-items: stretch;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-credit {
    align-items: flex-end;
    text-align: right;
  }
}
