/* Shared navigation and footer. Surface polarity follows the section under the header. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  background: rgb(5 5 6 / 0.94);
  backdrop-filter: blur(12px);
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-shell {
  max-width: 1600px;
  min-height: 96px;
  margin: auto;
  padding: 21px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  gap: 12px;
  flex: none;
  display: inline-flex;
  align-items: center;
}
.logo .brand-wordmark {
  width: 176px;
  height: auto;
  display: block;
}
.brand-point {
  fill: currentColor;
}
nav.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: #222;
  border-radius: 9999px;
}
nav.menu a {
  white-space: nowrap;
  padding: 12px 23px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #b0b0b0;
  transition:
    background 0.2s,
    color 0.2s;
}
nav.menu a:hover,
nav.menu a.active {
  background: #3b3b3d;
  color: #fff;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 50px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 13.3333px;
  background: #fff100;
  color: #000;
  white-space: nowrap;
}
.nav-cta span {
  transition: transform 0.2s;
}
.nav-cta:hover span {
  transform: translate(2px, -2px);
}
.site-header.on-light {
  background: rgb(243 243 243 / 0.94);
  color: #000;
}
.site-header.on-light nav.menu {
  background: #e8e8e8;
}
.site-header.on-light nav.menu a {
  color: #444;
}
.site-header.on-light nav.menu a:hover,
.site-header.on-light nav.menu a.active {
  background: #fff;
  color: #000;
}
.site-header.on-light .nav-cta {
  background: #000;
  color: #fff;
}
.nav-toggle {
  display: none;
}
.site-footer {
  position: relative;
  z-index: 3;
  padding: 62px max(62px, calc((100vw - 1444px) / 2)) 32px;
  background: #000;
  color: #fff;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 62px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-wordmark {
  width: clamp(210px, 42vw, 600px);
  height: auto;
}
.footer-brand .brand-monogram {
  width: clamp(42px, 8.4vw, 120px);
  height: auto;
  flex: none;
}
.footer-brand .brand-point {
  fill: currentColor;
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  min-height: 48px;
  border: 1px solid #2a2a2c;
  background: transparent;
  color: #b0b0b0;
  font: 14px var(--font-body);
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
}
.back-top span {
  font-size: 20px;
}
.footer-middle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  border-top: 1px solid #2a2a2c;
  padding-block: 40px 62px;
}
.footer-middle p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 340px;
  color: #979797;
}
.footer-middle nav {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 17px;
  color: #fff100;
}
.footer-middle nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.footer-email {
  justify-self: end;
  align-self: start;
  font-size: 21px;
  color: #fff100;
  border-bottom: 1px solid #555;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid #2a2a2c;
  color: #979797;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .nav-shell {
    padding-inline: 24px;
    gap: 20px;
  }
  nav.menu a {
    padding-inline: 16px;
  }
  .logo .brand-wordmark {
    width: 153px;
  }
  .nav-cta {
    padding-inline: 18px;
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .nav-shell {
    min-height: 80px;
    padding: 16px 24px;
    gap: 16px;
  }
  .logo .brand-wordmark {
    width: 145px;
  }
  .nav-cta {
    margin-left: auto;
    min-height: 44px;
    font-size: 14px;
    padding: 12px 16px;
    gap: 16px;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid #444;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s;
  }
  .site-header.on-light .nav-toggle {
    border-color: #ccc;
  }
  .site-header nav.menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 16px;
    left: 16px;
    border-radius: 24px;
    padding: 16px;
    background: #141416;
    border: 1px solid #2a2a2c;
  }
  .site-header.on-light nav.menu {
    background: #fff;
    border-color: #e5e7eb;
  }
  .site-header.open nav.menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header nav.menu a {
    padding: 18px;
    border-radius: 13px;
    font-size: 18px;
  }
  .site-header.open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .site-header.open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .site-footer {
    padding: 48px 32px 24px;
  }
  .footer-top {
    padding-bottom: 40px;
  }
  .footer-middle {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 32px 48px;
  }
  .footer-middle p,
  .footer-middle nav {
    font-size: 16px;
  }
  .footer-email {
    justify-self: start;
    grid-column: 1/-1;
    font-size: 21px;
  }
}
@media (max-width: 480px) {
  .nav-shell {
    gap: 10px;
    padding-inline: 16px;
  }
  .logo .brand-wordmark {
    width: 117px;
  }
  .nav-cta {
    font-size: 12px;
    padding-inline: 12px;
    gap: 10px;
  }
  .nav-toggle {
    width: 44px;
  }
  .site-footer {
    padding-inline: 28px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-middle {
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .footer-email {
    grid-column: auto;
  }
  .footer-bottom span:nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-toggle span,
  .nav-cta span {
    transition: none;
  }
}

/* The supplied td monogram accompanies the wordmark at every viewport. */
.logo .brand-badge {
  width: 40px;
  height: 40px;
  flex: none;
}
@media (max-width: 1100px) {
  .nav-shell {
    gap: 16px;
  }
  .logo {
    gap: 10px;
  }
  .logo .brand-badge {
    width: 38px;
    height: 38px;
  }
  nav.menu a {
    padding-inline: 12px;
  }
}
@media (max-width: 520px) {
  .logo {
    gap: 7px;
  }
  .logo .brand-badge {
    width: 32px;
    height: 32px;
  }
  .logo .brand-wordmark {
    width: 106px;
  }
  .nav-shell {
    gap: 10px;
    padding-inline: 16px;
  }
  .nav-cta {
    padding-inline: 12px;
    gap: 8px;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .logo .brand-wordmark {
    width: 92px;
  }
  .logo .brand-badge {
    width: 29px;
    height: 29px;
  }
  .nav-shell {
    gap: 8px;
    padding-inline: 12px;
  }
  .nav-cta {
    padding-inline: 9px;
    font-size: 11px;
  }
  .nav-cta span {
    display: none;
  }
}

/* Both names occupy the same box so the navigation never shifts. */
.brand-name {
  position: relative;
  display: block;
  flex: none;
}
.brand-name .brand-wordmark {
  display: block;
}
.brand-pronunciation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  font-family: "Wanted Sans", sans-serif;
  font-size: 58px;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
}
/* Fade out first, then reveal the other name without overlapping strokes. */
.brand-name .brand-wordmark {
  transition: opacity 80ms ease 80ms;
}
.brand-name .brand-pronunciation {
  transition: opacity 80ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .brand-name:hover .brand-wordmark { opacity: 0; transition-delay: 0ms; }
  .brand-name:hover .brand-pronunciation { opacity: 1; transition-delay: 80ms; }
}
:is(.logo, .footer-brand):focus-visible .brand-wordmark { opacity: 0; transition-delay: 0ms; }
:is(.logo, .footer-brand):focus-visible .brand-pronunciation { opacity: 1; transition-delay: 80ms; }
@media (prefers-reduced-motion: reduce) {
  .brand-name .brand-wordmark,
  .brand-name .brand-pronunciation { transition: none !important; }
}
