/* One lockup, scaled by --brand-unit (the name's font size).
   Icon box = 2 units; gap = .3 units; line height = 1.15 units.
   Preserve the SVG's centered framing. Only the overall scale varies by use. */
@font-face {
  font-family: "Satoshi Wordmark";
  src: url("../assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
.home-brand,
.hero-brand,
.home-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-family: "Satoshi Wordmark", var(--home-sans);
  font-size: var(--brand-unit, 18px);
  font-weight: 600;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.home-brand { --brand-unit: 18px; }
.home-footer__brand { --brand-unit: 18px; }
.home-brand img,
.hero-brand img,
.home-footer__brand img {
  display: block;
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  aspect-ratio: 1;
  object-fit: contain;
}
.home-brand > span,
.hero-brand__name,
.home-footer__brand > span {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  text-transform: none;
}
.hero-brand {
  --brand-unit: clamp(30px, 3.05vw, 44px);
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 38px;
  color: var(--home-navy);
}
.hero-brand__name span { white-space: nowrap; }
:root[data-theme="dark"] .hero-brand { color: var(--home-ivory); }

/* The native full name owns the hero wordmark's final width from first paint,
   while the outlined compact mark expands inside that fixed box. */
.hero-brand__name[data-hero-wordmark] {
  position: relative;
  display: inline-block;
}
.hero-wordmark__label { display: inline; }
.hero-wordmark__animation {
  display: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 7.591em;
  height: 1.15em;
  overflow: visible;
  color: currentColor;
  pointer-events: none;
}
[data-hero-wordmark-motion="compact"] > .hero-wordmark__label,
[data-hero-wordmark-motion="playing"] > .hero-wordmark__label { opacity: 0; }
[data-hero-wordmark-motion="compact"] > .hero-wordmark__animation,
[data-hero-wordmark-motion="playing"] > .hero-wordmark__animation { display: block; }
[data-hero-wordmark-motion="settled"] > .hero-wordmark__label { opacity: 1; }
[data-hero-wordmark-motion="settled"] > .hero-wordmark__animation { display: none; }

/* JS opts in only after measuring the hero. Without it the full header is
   still usable. Hero content stays in normal flow and is never moved. */
.home--landing[data-brand-handoff] .home-nav .home-brand > span {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.home--landing[data-brand-handoff="header"] .home-nav .home-brand > span {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
/* Hide the outgoing wordmark immediately on the reverse handoff: no two
   readable names coexist while the hero re-enters beneath the glass header. */
.home--landing[data-brand-handoff="hero"] .home-nav .home-brand > span {
  transition: none;
}
.home--landing .home-nav .home-brand img { flex: 0 0 auto; }

@media (max-width: 820px) {
  .hero-brand { --brand-unit: clamp(27px, 4.3vw, 35px); margin-bottom: 34px; }
  .home-brand { --brand-unit: 16px; }
  .home--landing .home-nav .home-brand > span {
    display: inline;
  }
}
/* On phones give the brand and links their own stable rows, rather than
   squeezing the name out or hiding navigation destinations. */
@media (max-width: 600px) {
  .home--landing .home-nav__inner {
    flex-wrap: wrap;
    gap: 2px;
    padding-block: 8px 6px;
  }
  .home--landing .home-nav .home-brand { flex-basis: 100%; }
  .home-brand { --brand-unit: 15px; }
  .home--landing .home-nav__links {
    flex-basis: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .hero-brand { --brand-unit: clamp(22px, 6.65vw, 30px); margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .home--landing[data-brand-handoff] .home-nav .home-brand > span {
    transition: none;
    transform: none;
  }
}

/* Reserve the native wordmark's width throughout the scroll entrance. The
   existing emblem is independent of this text-only SVG overlay. */
.home--landing .home-nav .home-brand [data-header-wordmark] {
  position: relative;
}
.home--landing .home-nav .home-brand .header-wordmark__label {
  display: inline;
}
.header-wordmark__animation {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 7.591em;
  height: 1.15em;
  overflow: visible;
  pointer-events: none;
}
.home--landing[data-brand-handoff] .home-nav .home-brand > [data-wordmark-ready] {
  transform: none;
  transition: none;
  opacity: 1;
  visibility: visible;
}
[data-wordmark-motion="idle"] > .header-wordmark__label,
[data-wordmark-motion="playing"] > .header-wordmark__label { opacity: 0; }
[data-wordmark-motion="idle"] > .header-wordmark__animation,
[data-wordmark-motion="playing"] > .header-wordmark__animation { display: block; }
