.site-header {
  mix-blend-mode: normal;
  border-bottom: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(14, 17, 23, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.site-header.header-on-light.is-scrolled {
  background: rgba(247, 247, 244, 0.82);
  border-bottom-color: rgba(21, 23, 26, 0.1);
  box-shadow: 0 10px 28px rgba(21, 23, 26, 0.055);
}

.site-header .brand {
  color: #fff;
  font-size: 0.84rem;
  transition: color 180ms ease;
}

.site-header .brand-logo {
  display: none;
}

.site-header .brand::before {
  content: "";
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: url("assets/logo-reversed.svg") center / contain no-repeat;
  transition: background-image 120ms linear;
}

.site-header .site-nav,
.site-header .menu-toggle {
  color: #fff;
  transition: color 180ms ease;
}

.site-header .site-nav {
  font-size: clamp(0.72rem, 0.72vw, 0.79rem);
}

.site-header .site-nav a {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: opacity 180ms ease, background-size 180ms ease;
}

.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible {
  background-size: 100% 1px;
}

.site-header.header-on-light .brand,
.site-header.header-on-light .site-nav,
.site-header.header-on-light .menu-toggle {
  color: var(--ink);
}

.site-header.header-on-light .brand::before {
  background-image: url("assets/logo.svg");
}

.site-footer .brand-logo {
  display: none;
}

.site-footer .brand::before {
  content: "";
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: url("assets/logo-reversed.svg") center / contain no-repeat;
}

.button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.button.primary:hover {
  box-shadow: 0 9px 24px rgba(47, 128, 237, 0.22);
}

.intro-grid article,
.pillar-grid article,
.team-list article,
.partner-board span,
.hero-stats > div {
  position: relative;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.intro-grid article::before,
.pillar-grid article::before,
.team-list article::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 180ms ease;
}

.intro-grid article:hover,
.pillar-grid article:hover,
.team-list article:hover,
.partner-board span:hover {
  transform: translateY(-2px);
}

.intro-grid article:hover::before,
.pillar-grid article:hover::before,
.team-list article:hover::before {
  transform: scaleY(1);
}

.pillar-grid article:hover {
  background: #1b212b;
}

.partner-board span:hover {
  box-shadow: inset 0 -2px 0 rgba(47, 128, 237, 0.24);
}

.wide-photo {
  overflow: hidden;
}

.wide-photo img {
  transition: transform 420ms ease, filter 280ms ease;
}

.wide-photo:hover img {
  transform: scale(1.008);
  filter: saturate(0.92) contrast(1.06);
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: start;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.join h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 6.2rem);
  line-height: 0.94;
}

.join-layout > div > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.join-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.join-tags span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--paper-2);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.projects .team-list h3 {
  margin-top: 10px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.network-copy > div p + p {
  margin-top: 22px;
}

section:not(.hero) {
  scroll-margin-top: 76px;
}

@media (max-width: 860px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.header-on-light.is-scrolled {
    background: rgba(8, 10, 7, 0.86);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    backdrop-filter: blur(10px) saturate(115%);
  }

  .site-header .brand,
  .site-header.header-on-light .brand,
  .site-header .site-nav,
  .site-header.header-on-light .site-nav,
  .site-header .menu-toggle,
  .site-header.header-on-light .menu-toggle {
    color: #fff;
  }

  .site-header .brand::before,
  .site-header.header-on-light .brand::before {
    background-image: url("assets/logo-reversed.svg");
  }

  .site-header .site-nav {
    font-size: 0.76rem;
  }

  .join-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-grid article:hover,
  .pillar-grid article:hover,
  .team-list article:hover,
  .partner-board span:hover,
  .wide-photo:hover img {
    transform: none;
  }
}

@media (max-width: 560px) {
  .join-tags {
    grid-template-columns: 1fr;
  }

  .join-tags span {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
