/* Shared navigation, footer and button components */
:root {
  --component-display: var(--font-display, var(--display, "Melodrama", Georgia, serif));
  --component-sans: var(--font-text, var(--sans, "Switzer", Arial, sans-serif));
  --component-ease: cubic-bezier(.16, 1, .3, 1);
  --component-pad: clamp(20px, 3.35vw, 48px);
}

site-navigation,
site-footer {
  display: contents;
}

/* Buttons: override --button-bg, --button-ink and --button-hover-bg per use. */
.ui-button {
  --button-bg: var(--coral-500);
  --button-ink: var(--neutral-900);
  --button-hover-bg: var(--neutral-900);
  --button-hover-ink: var(--butter-50);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border: 1px solid var(--button-bg);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-ink);
  font-family: var(--component-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: capitalize;
  text-decoration: none;
  transition: color .4s var(--component-ease), border-color .4s var(--component-ease), transform .2s var(--component-ease);
  will-change: transform;
}

.ui-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--button-hover-bg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--component-ease);
}

.ui-button:hover {
  color: var(--button-hover-ink);
  border-color: var(--button-hover-bg);
}

.ui-button:hover::before {
  transform: scaleY(1);
}

.ui-button:active {
  transform: scale(.97);
}

/* Masked arrow swap: wrapper clips two stacked glyphs. On hover the front one
   flies out to the top-right and a duplicate flies in from the bottom-left. */
.ui-arrow-swap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ui-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--component-ease);
}

.ui-arrow-swap .ui-arrow {
  position: absolute;
  inset: 0;
}

/* Second glyph waits below-left, ready to slide in. */
.ui-arrow-swap .ui-arrow:last-child {
  transform: translate(-110%, 110%);
}

.ui-button:hover .ui-arrow-swap .ui-arrow:first-child {
  transform: translate(110%, -110%);
}

.ui-button:hover .ui-arrow-swap .ui-arrow:last-child {
  transform: translate(0, 0);
}

.ui-button--outline {
  --button-bg: transparent;
  --button-ink: var(--neutral-900);
  --button-hover-bg: var(--coral-500);
  border-color: currentColor;
}

.ui-button--underline {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--button-ink);
}

.ui-button--underline::before {
  top: auto;
  height: 1px;
  transform: scaleX(.3);
  transform-origin: left;
  background: currentColor;
}

.ui-button--underline:hover::before {
  transform: scaleX(1);
}

.ui-button--nav,
.ui-button--nav-compact {
  --button-bg: var(--sage-600);
  --button-ink: var(--butter-50);
  --button-hover-bg: var(--coral-600);
  --button-hover-ink: var(--butter-50);
  border-radius: 0;
  align-self: stretch;
}

.ui-button--nav {
  padding-inline: 40px;
}

.ui-button--nav-compact {
  align-self: auto;
  padding: 13px 20px;
  border-radius: 999px;
}

/* Navigation — one set of elements physically contracts into the pill. */
.global-nav {
  position: fixed;
  z-index: 800;
  inset: 0 0 auto;
  height: 112px;
  pointer-events: none;
  font-family: var(--component-sans);
}

.global-nav-shell {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: stretch;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  height: 84px;
  padding: 0;
  color: var(--neutral-900);
  border: 0 solid transparent;
  border-bottom-width: 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  transform-origin: top center;
  pointer-events: auto;
  transition: top .65s var(--component-ease), width .65s var(--component-ease), height .65s var(--component-ease), padding .65s var(--component-ease), gap .65s var(--component-ease), border-radius .65s var(--component-ease), border-color .45s, background .55s, box-shadow .55s, color .45s, transform .45s var(--component-ease);
  will-change: top, width, height, transform;
}

.global-nav-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: color-mix(in srgb, currentColor 32%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.global-nav.is-entered:not(.is-condensed) .global-nav-shell::after {
  animation: nav-draw-x .8s var(--component-ease) forwards;
}

.global-nav-brand {
  position: relative;
  flex: 0 0 clamp(170px, 17vw, 245px);
  display: flex;
  align-items: centre;
  justify-content: left;
  padding: 0 var(--component-pad);
  color: inherit;
  transition: flex-basis .65s var(--component-ease), padding .65s var(--component-ease);
}

.global-nav-shell .global-nav-brand img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 112px;
  max-height: 52px;
  object-fit: contain;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: width .65s var(--component-ease), max-height .65s var(--component-ease), opacity .3s, transform .5s var(--component-ease);
}

.global-nav-monogram {
  position: absolute;
  left: 50%;
  top: 50%;
  color: inherit;
  font-family: var(--component-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 12px));
  transition: opacity .3s, transform .5s var(--component-ease);
}

.global-nav-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.global-nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  transition: gap .65s var(--component-ease), margin .65s var(--component-ease);
}

.global-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 clamp(15px, 2.05vw, 30px);
  color: inherit;
  border-left: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  transition: padding .65s var(--component-ease), gap .55s var(--component-ease), border-color .4s;
}

.global-nav-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: color-mix(in srgb, currentColor 8%, transparent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s var(--component-ease);
}

.global-nav-link:hover::before {
  transform: scaleY(1);
}

.global-nav-index {
  max-width: 20px;
  color: var(--coral-300);
  font-size: 9px;
  font-weight: 560;
  opacity: 1;
  transform: translateY(0);
  transition: max-width .5s var(--component-ease), opacity .3s, transform .3s var(--component-ease);
}

.global-nav-link:hover .global-nav-index {
  transform: translateY(-2px);
}

.global-nav-dot {
  width: 0;
  height: 6px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--coral-600);
  opacity: 0;
  transform: scale(0);
  transition: width .45s var(--component-ease), margin .45s var(--component-ease), opacity .3s, transform .45s var(--component-ease);
}

.global-nav-label {
  font-size: 12px;
  font-weight: 520;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: font-variation-settings .3s, opacity .3s;
}

.global-nav-link:hover .global-nav-label,
.global-nav-link.is-active .global-nav-label {
  font-variation-settings: "wght" 650;
}

.global-nav:not(.is-entered) .global-nav-label {
  transform: translateY(120%);
}

.global-nav.is-entered:not(.is-condensed) .global-nav-label {
  animation: nav-label-in .65s var(--component-ease) both;
}

.global-nav.is-entered:not(.is-condensed) .global-nav-link:nth-child(2) .global-nav-label {
  animation-delay: .05s;
}

.global-nav.is-entered:not(.is-condensed) .global-nav-link:nth-child(3) .global-nav-label {
  animation-delay: .1s;
}

.global-nav.is-entered:not(.is-condensed) .global-nav-link:nth-child(4) .global-nav-label {
  animation-delay: .15s;
}

.ui-button--nav {
  flex: 0 0 auto;
  min-width: 250px;
  height: 100%;
  gap: 8px;
  transition: min-width .65s var(--component-ease), height .65s var(--component-ease), padding .65s var(--component-ease), border-radius .65s var(--component-ease), margin .65s var(--component-ease), gap .65s var(--component-ease), color .4s, border-color .4s;
}

.nav-cta-copy {
  display: grid;
  width: 122px;
  overflow: hidden;
  white-space: nowrap;
  transition: width .55s var(--component-ease);
}

.nav-cta-copy>span {
  grid-area: 1 / 1;
  transition: opacity .3s, transform .5s var(--component-ease);
}

.nav-cta-short {
  opacity: 0;
  transform: translateY(100%);
}

.global-nav-mobile {
  display: none;
}

.global-nav.is-condensed .global-nav-shell {
  top: 24px;
  width: min(580px, calc(100vw - 40px));
  height: 60px;
  padding: 10px 10px 10px 32px;
  color: var(--neutral-900);
  border-width: 1px;
  border-color: var(--neutral-900);
  border-radius: 999px;
  background: color-mix(in srgb, var(--neutral-100) 82%, transparent);
  box-shadow: 0 12px 36px -8px color-mix(in srgb, var(--neutral-900) 10%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.global-nav.is-condensed .global-nav-shell::after {
  opacity: 0;
}

/* Brand cell interpolates to a fixed basis (auto would snap); the spacer keeps
   flex-grow: 1 in both states so links + CTA stay pinned to the right edge and
   the whole cluster converges on center symmetrically with the shrinking shell. */
.global-nav.is-condensed .global-nav-shell .global-nav-brand {
  flex: 0 0 26px;
  margin-right: 0;
  padding: 0;
}

.global-nav.is-condensed .global-nav-shell .global-nav-brand img {
  width: 72px;
  max-height: 30px;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 12px));
}

.global-nav.is-condensed .global-nav-monogram {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-delay: .12s;
}

.global-nav.is-condensed .global-nav-links {
  flex: 0 0 auto;
  align-items: center;
  gap: 30px;
  margin-right: 36px;
}

.global-nav.is-condensed .global-nav-link {
  gap: 7px;
  padding: 0;
  border-color: transparent;
}

.global-nav.is-condensed .global-nav-index {
  max-width: 0;
  opacity: 0;
  transform: translateY(-8px);
}

.global-nav.is-condensed .global-nav-link:not(.is-active) .global-nav-label {
  opacity: .55;
}

.global-nav.is-condensed .global-nav-link.is-active .global-nav-dot {
  width: 6px;
  margin-left: 0;
  opacity: 1;
  transform: scale(1);
}

/* 2nd-state (condensed pill) nav-link hover: vertical text swap — the current
   label rolls up and out while a darker duplicate rolls in from below. The
   expanded ("before") state hover is intentionally left untouched. */
.global-nav.is-condensed .global-nav-link:hover::before {
  transform: scaleY(0); /* suppress the grey fill sweep in this state only */
}

.global-nav.is-condensed .global-nav-label {
  position: relative;
  overflow: hidden;
  color: transparent; /* keep the real text for sizing, but hide it */
}

/* Move the resting dim off the label so the incoming copy can be full strength. */
.global-nav.is-condensed .global-nav-link:not(.is-active) .global-nav-label {
  opacity: 1;
}

/* Hold the weight steady on hover so the (transparent) sizing text can't reflow. */
.global-nav.is-condensed .global-nav-link:hover .global-nav-label {
  font-variation-settings: "wght" 520;
}

.global-nav.is-condensed .global-nav-label::before,
.global-nav.is-condensed .global-nav-label::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--neutral-900);
  transition: transform .5s var(--component-ease), opacity .3s;
  will-change: transform;
}

/* Outgoing copy — what you see at rest; dimmed for non-active links. */
.global-nav.is-condensed .global-nav-link:not(.is-active) .global-nav-label::before {
  opacity: .55;
}

/* Incoming darker copy waits exactly one line below. */
.global-nav.is-condensed .global-nav-label::after {
  transform: translateY(100%);
}

.global-nav.is-condensed .global-nav-link:hover .global-nav-label::before {
  transform: translateY(-100%);
}

.global-nav.is-condensed .global-nav-link:hover .global-nav-label::after {
  transform: translateY(0);
}

.global-nav.is-condensed .ui-button--nav {
  align-self: center;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  gap: 8px;
}

.global-nav.is-condensed .nav-cta-copy {
  width: 58px;
}

.global-nav.is-condensed .nav-cta-long {
  opacity: 0;
  transform: translateY(-100%);
}

.global-nav.is-condensed .nav-cta-short {
  opacity: 1;
  transform: translateY(0);
}

.global-nav.is-condensed .ui-button--nav .ui-arrow-swap,
.global-nav.is-condensed .ui-button--nav .ui-arrow {
  width: 15px;
  height: 15px;
}

.global-nav.is-pill-hidden .global-nav-shell {
  transform: translate(-50%, -150%);
  pointer-events: none;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .global-nav-brand {
    flex-basis: 150px;
    padding-inline: 24px;
  }

  .global-nav-link {
    padding-inline: 14px;
  }

  .ui-button--nav {
    min-width: 190px;
    padding-inline: 24px;
  }
}

@keyframes nav-draw-x {
  to {
    transform: scaleX(1);
  }
}

@keyframes nav-label-in {
  to {
    transform: translateY(0);
  }
}



/* Mobile menu */
.global-mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .global-nav {
    inset: max(14px, env(safe-area-inset-top)) 0 auto;
    height: 60px;
  }

  .global-nav-shell {
    display: none;
  }

  .global-nav-mobile {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100vw - 28px);
  max-width: 430px;
  padding: 8px 9px 8px 18px;
  border: 1px solid color-mix(in srgb, var(--neutral-900) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--neutral-100) 88%, transparent);
  box-shadow: 0 12px 36px -8px color-mix(in srgb, var(--neutral-900) 6%, transparent);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
  pointer-events: auto;
  transition: opacity .35s, transform .45s var(--component-ease);
}

  /* Scroll-hide on mobile/tablet: mirror the desktop pill's up/down behaviour.
     The desktop shell is display:none here, so is-pill-hidden must drive the
     mobile bar directly. */
  .global-nav.is-pill-hidden .global-nav-mobile {
    transform: translate(-50%, -150%);
    pointer-events: none;
    opacity: 0;
  }

  .global-nav-brand--mobile {
  width: auto;
  margin-right: auto;
}

  .global-nav-brand--mobile img {
    width: 74px;
    height: 32px;
    filter: none;
  }

  .global-nav-toggle {
    position: relative;
    display: grid;
    grid-template-columns: auto 22px;
    align-items: center;
    column-gap: 10px;
    width: auto;
    height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--sage-600);
    color: var(--neutral-900);
    font: 560 10px/1 var(--component-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .global-nav-toggle i {
    grid-column: 2;
    grid-row: 1;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform .35s var(--component-ease);
  }

  .global-nav-toggle i:last-child {
    transform: translateY(5px);
  }

  .global-menu-open .global-nav-toggle i {
    transform: rotate(45deg);
  }

  .global-menu-open .global-nav-toggle i:last-child {
    transform: rotate(-45deg);
  }

  .global-mobile-menu {
    position: fixed;
    z-index: 790;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    padding: 110px 7vw 42px;
    background: var(--sage-700);
    color: var(--butter-50);
    clip-path: inset(0 0 100%);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path .75s var(--component-ease), visibility 0s .75s;
  }

  .global-menu-open {
    overflow: hidden;
  }

  .global-menu-open .global-mobile-menu {
    clip-path: inset(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .global-mobile-kicker {
    color: var(--sage-200);
    font: 540 10px/1 var(--component-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  .global-mobile-menu nav {
    display: flex;
    flex-direction: column;
  }

  .global-mobile-menu nav a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--butter-50) 24%, transparent);
    color: inherit;
    font: 500 clamp(36px, 11vw, 58px)/1 var(--component-display);
    text-decoration: none;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .55s var(--component-ease), opacity .4s;
  }

  .global-mobile-menu nav a>span {
    color: var(--coral-300);
    font: 550 9px/1 var(--component-sans);
  }

  .global-mobile-menu nav a .ui-arrow-swap,
  .global-mobile-menu nav a .ui-arrow {
    width: 24px;
    height: 24px;
  }

  .global-menu-open .global-mobile-menu nav a {
    transform: none;
    opacity: 1;
  }

  .global-menu-open .global-mobile-menu nav a:nth-child(1) {
    transition-delay: .12s;
  }

  .global-menu-open .global-mobile-menu nav a:nth-child(2) {
    transition-delay: .18s;
  }

  .global-menu-open .global-mobile-menu nav a:nth-child(3) {
    transition-delay: .24s;
  }

  .global-menu-open .global-mobile-menu nav a:nth-child(4) {
    transition-delay: .3s;
  }

  .global-mobile-menu>.ui-button {
    align-self: flex-start;
  }
}

/* Homepage footer component, shared by every page. Fills the viewport:
   the CTA block takes the slack and centres itself, the contact rail and
   the bottom bar settle onto the fold. */
.site-footer {
  position: relative;
  z-index: 9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 0 24px;
  overflow: hidden;
  background: var(--neutral-100);
  color: var(--neutral-900);
  font-family: var(--component-sans);
}

.footer-cta-block {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 72px var(--component-pad) 56px;
  text-align: center;
}

.footer-eyebrow {
  display: none;
  margin-bottom: 19px;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.footer-bigwrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.footer-big {
  margin: 0;
  color: var(--neutral-900);
  font: 700 clamp(56px, 17vw, 256px)/.85 var(--component-display);
  letter-spacing: -.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-big .reveal-line {
  display: block;
  overflow: hidden;
  padding: .12em .06em;
  margin: -.12em -.06em;
}

.footer-big .reveal-line>span {
  display: inline-block;
}

/* The overlay centres on the wrap box, but all-caps text leaves unused
   descender space below the baseline, so the letters sit high in it. The
   font-size must match .footer-big or the em-based nudge resolves against
   the footer's body size and collapses to ~1px. */
.footer-big-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 clamp(56px, 17vw, 256px)/.85 var(--component-display);
  transform: translateY(-.04em);
}

/* the nudge is the overlay's job — don't let it scale the button's own text */
.footer-big-overlay .footer-contact-btn {
  font: 600 clamp(14px, 1.3vw, 20px)/1 var(--component-sans);
}

.footer-contact-btn {
  --button-bg: var(--sage-600);
  --button-ink: var(--butter-50);
  --button-hover-bg: var(--coral-600);
  --button-hover-ink: var(--butter-50);
  font-size: clamp(14px, 1.3vw, 20px);
}

/* Bigger, bolder arrow to match the footer CTA's scale. */
.footer-contact-btn .ui-arrow-swap {
  width: 24px;
  height: 24px;
}

.footer-contact-btn .ui-arrow {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Footer text links: same vertical text swap as the condensed nav links —
   the resting label rolls up and out while an accent duplicate rolls in. */
.footer-nav a {
  position: relative;
  overflow: hidden;
  color: transparent; /* keep the real text for sizing, but hide it */
  text-decoration: none;
}

.footer-nav a::before,
.footer-nav a::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transition: transform .5s var(--component-ease);
  will-change: transform;
}

/* Outgoing copy — what you see at rest. */
.footer-nav a::before {
  color: var(--neutral-900);
}

/* Incoming accent copy waits exactly one line below. */
.footer-nav a::after {
  color: var(--sage-700);
  transform: translateY(100%);
}

.footer-nav a:hover::before {
  transform: translateY(-100%);
}

.footer-nav a:hover::after {
  transform: translateY(0);
}

.fn-sep,
.fe-cross {
  color: var(--neutral-400);
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--color-line-soft);
}

.footer-top::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: var(--color-line-soft);
}

.footer-cta {
  max-width: none;
  margin: 0;
  padding: 0 40px 0 var(--component-pad);
  color: var(--neutral-900);
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.4;
}

.footer-email {
  display: block;
  height: 100%;
  padding-left: 42px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.footer-email-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: inherit;
  font: 700 clamp(30px, 4.6vw, 67px)/1.1 var(--component-display);
  letter-spacing: -.02em;
  animation: footer-marquee 16s linear infinite;
}

.fe-item {
  transition: opacity .3s;
}

.fe-item:hover {
  opacity: .55;
}

.fe-cross {
  margin: 0 22px;
  font-size: .5em;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px var(--component-pad) 0;
  border-top: 1px solid var(--color-line-soft);
}

.footer-mark {
  justify-self: start;
  width: 92px;
  filter: none;
}

.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.footer-pill {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--neutral-900);
  border-radius: 999px;
  color: inherit;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: color .4s var(--component-ease), border-color .4s var(--component-ease);
}

/* Black fill masks in from the bottom, matching .ui-button. */
.footer-pill::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--neutral-900);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--component-ease);
}

.footer-pill:hover {
  color: var(--butter-50);
  border-color: var(--neutral-900);
}

.footer-pill:hover::before {
  transform: scaleY(1);
}

.footer-credit {
  justify-self: end;
  color: var(--neutral-700);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@keyframes footer-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  /* On mobile the footer sizes to its content — the full-viewport min-height
     is a desktop framing device and only leaves dead space on a phone. */
  .site-footer {
    min-height: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top::after {
    display: none;
  }

  .footer-email {
    width: 100%;
    height: auto;
    margin-top: 26px;
    padding: 26px 0 0;
    border-top: 1px solid var(--color-line-soft);
  }

  .footer-bigwrap {
    flex-direction: column;
    align-items: center;
  }

  /* Equal 32px gap above (button → links) and below (links → divider line). */
  .footer-cta-block {
    padding-bottom: 32px;
  }

  .footer-nav {
    margin-top: 32px;
  }

  .footer-big {
    display: none;
  }

  .footer-big-overlay {
    position: relative;
    transform: none;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 22px;
  }

  .footer-socials {
    grid-column: 1 / -1;
    justify-content: center;
    order: -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .global-nav-shell::after,
  .global-nav-label {
    animation: none !important;
  }

  .global-nav-shell,
  .global-nav-brand,
  .global-nav-brand img,
  .global-nav-monogram,
  .global-nav-spacer,
  .global-nav-link,
  .global-nav-index,
  .global-nav-dot,
  .ui-button--nav,
  .nav-cta-copy,
  .nav-cta-copy>span,
  .global-nav-mobile,
  .global-mobile-menu,
  .global-mobile-menu nav a {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .footer-email-track {
    animation: none;
  }

  .ui-button::before {
    transition: none;
  }
}