@font-face {
  font-family: 'Mont Heavy Demo';
  src: url('fonts/Mont-HeavyDEMO.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius-card: 20px;
  --radius-control: 12px;
  --radius-field: 10px;
  --radius-pill: 999px;
  --motion-reveal: 500ms;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation: 180ms ease-out both site-page-out;
}

::view-transition-new(root) {
  animation: 300ms cubic-bezier(0.22, 1, 0.36, 1) both site-page-in;
}

@keyframes site-page-out {
  to { opacity: 0.96; transform: translateY(-4px); }
}

@keyframes site-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

.site-shell { width: min(1370px, calc(100% - 48px)); margin-inline: auto; }
html { background: var(--surface, #fff); }

.demo-notice-bar {
  border-bottom: 0;
  box-shadow: none;
}

.demo-notice-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  height: 50px;
  overflow: clip;
  border-top: 2px solid #4f7957;
  border-bottom: 2px solid #4f7957;
  background: #e1efdf;
  color: #315d3b;
}

.demo-notice-bar { box-shadow: 0 1px 0 #4f7957; }

.demo-notice-lilypad-link {
  position: absolute;
  top: 50%;
  left: 8px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background .18s, transform .18s;
}

.demo-notice-lilypad-link img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.demo-notice-lilypad-link:hover,
.demo-notice-lilypad-link:focus-visible {
  background: rgba(49, 93, 59, .12);
  transform: translateY(-50%) scale(1.06);
}

.demo-notice-window { width: 100%; overflow: hidden; }

.demo-notice-track {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.4vw, 42px);
  min-height: 46px;
}

.demo-notice-message {
  position: relative;
  flex: none;
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-notice-message:not(:last-child)::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 clamp(12px, 2.4vw, 42px) 2px 0; border-radius: 50%; background: currentColor; transform: translateX(clamp(12px, 2.4vw, 42px)); }

.demo-notice-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: min(1370px, calc(100% - 48px));
  min-height: 78px;
  margin: 18px auto -116px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-card);
  background: rgba(250, 249, 246, .72);
  box-shadow: 0 12px 34px rgba(23, 35, 40, .13), inset 0 1px 0 rgba(255, 255, 255, .78);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  transition: min-height .4s cubic-bezier(.2, .7, .2, 1), padding .4s cubic-bezier(.2, .7, .2, 1);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--navy, #0d2b38);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-brand { display: flex; align-items: center; flex: none; min-width: 0; color: var(--ink, #102532); text-decoration: none; }
.site-brand-mark { display: block; width: 64px; height: 68px; flex: none; object-fit: contain; transition: width .4s cubic-bezier(.2, .7, .2, 1), height .4s cubic-bezier(.2, .7, .2, 1); }
.site-brand-wordmark { display: block; width: min(210px, 23vw); height: auto; max-width: 100%; margin-left: 14px; object-fit: contain; opacity: 1; transition: width .4s cubic-bezier(.2, .7, .2, 1), margin-left .4s cubic-bezier(.2, .7, .2, 1), opacity .25s ease; }
.site-header.is-compact .site-brand-wordmark { width: 0; margin-left: 0; opacity: 0; }
.site-nav { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; gap: 52px; margin-left: 0; transform: translate(-50%, -50%); transition: gap .35s cubic-bezier(.2, .7, .2, 1); }
.site-header.is-compact .site-nav { gap: 120px; }
.site-nav a { position: relative; padding: 9px 0; color: var(--ink, #102532); font-size: 18px; font-weight: 650; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: color .18s; }
.site-nav a.is-active { color: var(--terracotta-dark, #a9422c); font-weight: 700; }
.site-nav a::after { content: ''; position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: var(--terracotta, #c65336); transform: scaleX(0); transform-origin: right; transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 1280px) {
  .site-nav a:first-child { margin-right: 20px; }
  .site-nav a:last-child { margin-left: 20px; }
  .site-header.is-compact .site-nav a:first-child { margin-right: 30px; }
  .site-header.is-compact .site-nav a:last-child { margin-left: 30px; }
}

.site-header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; margin-left: auto; padding: 14px 26px; border-radius: var(--radius-control); background: var(--terracotta, #c65336); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background .18s; }
.site-header-cta svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-header-cta:hover { background: var(--terracotta-dark, #a9422c); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 40px; padding: 0; border: 1px solid rgba(16, 37, 50, .2); border-radius: var(--radius-control); background: rgba(255, 255, 255, .5); color: var(--ink, #102532); cursor: pointer; }
.menu-icon { display: grid; gap: 4px; width: 17px; margin: auto; }
.menu-icon span { display: block; width: 17px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-open .menu-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
.site-header a:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--terracotta, #c65336); outline-offset: 3px; }

.site-footer { position: relative; z-index: 1; padding: 76px 0 28px; background: var(--surface, #fff); color: var(--ink, #102532); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 56px; align-items: start; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand { padding-left: 28px; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 0; width: min(260px, 100%); color: var(--ink, #102532); text-decoration: none; }
.footer-brand .brand-lockup { position: relative; top: 0; }
.footer-brand .brand-lockup .brand-mark { display: block; width: 108px; height: auto; margin-bottom: -12px; object-fit: contain; }
.brand-lockup .brand-wordmark { display: block; width: 100%; height: auto; aspect-ratio: 760 / 184; object-fit: contain; }
.footer-grid h2 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid a, .footer-grid span, .footer-grid button { border: 0; padding: 0; background: none; color: var(--muted, #66747c); font-size: 12px; line-height: 1.45; text-align: left; text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus-visible, .footer-grid button:hover, .footer-grid button:focus-visible { color: var(--terracotta, #c65336); }
.footer-grid .contact-link-static { cursor: pointer; }
.legal-dialog { box-sizing: border-box; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow: auto; border: 1px solid var(--line, #d9ddd9); border-radius: var(--radius-card); padding: 40px; background: var(--surface, #fff); color: var(--ink, #102532); box-shadow: 0 24px 70px rgba(8, 25, 33, .2); }
.legal-dialog::backdrop { background: rgba(8, 25, 33, .72); }
.legal-dialog h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 500; }
.legal-dialog p { margin-top: 16px; color: var(--muted, #66747c); }
.legal-dialog > button { float: right; border: 0; background: none; color: var(--terracotta, #c65336); font-weight: 750; }

@media (min-width: 761px) and (max-width: 1050px) {
  .site-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; width: min(100% - 36px, 980px); padding-inline: 16px; }
  .site-brand-mark { width: 49px; height: 54px; }
  .site-brand-wordmark { width: min(176px, 23vw); margin-left: 9px; }
  .site-nav { position: static; min-width: 0; justify-content: center; gap: clamp(18px, 3vw, 36px); transform: none; }
  .site-nav a { font-size: 15px; }
  .site-header-cta { padding: 11px 14px; font-size: 10px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-toggle { display: grid; margin-left: 0; }
  .site-header { gap: 6px; }
  .site-header-cta { width: 40px; min-width: 40px; min-height: 40px; padding: 0; gap: 0; border-radius: var(--radius-control); font-size: 9px; letter-spacing: .05em; white-space: nowrap; }
  .site-header-cta-label { display: none; }
  .site-header-cta svg { display: block; }
  .site-header.menu-open { border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .site-header.menu-open .site-nav { position: absolute; top: calc(100% - 1px); right: -1px; left: -1px; display: grid; gap: 0; margin: 0; padding: 7px 16px 13px; transform: none; border: 1px solid rgba(255, 255, 255, .72); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); background: rgba(250, 249, 246, .95); box-shadow: 0 18px 30px rgba(23, 35, 40, .12); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
  .site-header.menu-open .site-nav a { padding: 11px 0; border-top: 1px solid rgba(16, 37, 50, .1); border-radius: 0; background: transparent; font-size: 13px; }
}

@media (max-width: 760px) {
  .site-header { top: 10px; min-height: 62px; margin: 10px auto -74px; border-radius: var(--radius-card); gap: 6px; padding: 10px 12px; }
  .site-brand-mark { width: min(36px, 9.5vw); height: min(42px, 11.5vw); }
  .site-brand-wordmark { width: min(120px, 32vw); margin-left: 6px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 14px; }
  .footer-brand { grid-column: 1 / -1; padding-left: 0; }
  .footer-grid > div:not(.footer-brand) { grid-row: 1; }
  .footer-brand { grid-row: 2; order: 4; justify-self: center; }
  .brand-lockup { align-items: center; width: min(240px, 100%); }
  .footer-brand .brand-lockup .brand-mark { width: 92px; margin-bottom: 8px; }
  .brand-lockup .brand-wordmark { width: 220px; }
  .footer-grid h2 { font-size: 9px; line-height: 1.2; }
  .footer-grid a, .footer-grid span, .footer-grid button { font-size: 10px; line-height: 1.35; }
  .footer-grid a, .footer-grid span, .footer-grid button { overflow-wrap: anywhere; }
}

@media (max-width: 1050px) {
  .demo-notice-bar { height: 42px; min-height: 42px; }
  .demo-notice-track { position: relative; display: block; height: 38px; min-height: 38px; }
  .demo-notice-message { position: absolute; inset: 0 48px; display: flex; align-items: center; justify-content: center; padding: 0 8px; opacity: 0; animation: demo-notice-fade 20s ease-in-out infinite; font-size: 9px; letter-spacing: .1em; text-align: center; }
  .demo-notice-message:not(:last-child)::after { display: none; }
  .demo-notice-message:nth-child(1) { animation-delay: 0s; }
  .demo-notice-message:nth-child(2) { animation-delay: 5s; }
  .demo-notice-message:nth-child(3) { animation-delay: 10s; }
  .demo-notice-message:nth-child(4) { animation-delay: 15s; }
  @keyframes demo-notice-fade { 0%, 3% { opacity: 0; } 7%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .demo-notice-track { width: 100%; justify-content: center; }
  .demo-notice-message { display: none; animation: none; }
  .demo-notice-message:first-child { display: flex; opacity: 1; }
}

/* Final responsive shell adjustments. Keep the roof mark visible while the
   wordmark collapses, and reserve the compact navigation for phone widths. */
.site-brand-wordmark {
  width: min(210px, 23vw);
  height: auto;
  max-height: none;
}

.site-hero-bg {
  bottom: -2px;
  height: calc(100% + 2px);
}

@media (min-width: 761px) and (max-width: 1050px) {
  .site-header {
    width: min(calc(100% - 36px), 980px);
  }

  .site-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-footer {
    padding-top: 96px;
  }

  .footer-grid {
    align-items: center;
    gap: 28px;
  }

  .footer-brand {
    align-self: center;
    padding-left: 0;
  }

  .footer-brand .brand-lockup {
    width: min(280px, 100%);
  }

  .footer-brand .brand-lockup .brand-mark {
    width: 150px;
    margin-bottom: -12px;
  }

  .brand-lockup .brand-wordmark {
    width: 260px;
  }
}

@media (max-width: 760px) {
  .site-header-cta {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
  }

  .site-header-cta-label { display: none; }
  .site-header-cta svg { display: block; }
}

.demo-notice-bar {
  border-bottom: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .site-brand-wordmark {
    width: min(120px, 32vw);
  }

  .site-header-cta {
    min-height: 40px;
    padding-inline: 11px;
    border-radius: var(--radius-control);
    font-size: 9px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 14px;
    align-items: start;
  }

  .footer-grid > div:not(.footer-brand) {
    grid-row: 1;
  }

  .footer-brand {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 4;
    justify-self: center;
    padding-left: 0;
  }

  .footer-brand .brand-lockup {
    width: min(240px, 100%);
    align-items: center;
  }

  .footer-brand .brand-lockup .brand-mark {
    width: 92px;
    margin-bottom: -12px;
  }

  .brand-lockup .brand-wordmark {
    width: 220px;
  }
}

@media (max-width: 760px) {
  .footer-grid > .footer-brand {
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .footer-brand .brand-lockup {
    align-items: center;
    margin-inline: auto;
  }
}

@media (max-width: 1050px) {
  .demo-notice-message {
    animation-duration: 24s;
  }

  .demo-notice-message:nth-child(1) { animation-delay: 0s; }
  .demo-notice-message:nth-child(2) { animation-delay: 6s; }
  .demo-notice-message:nth-child(3) { animation-delay: 12s; }
  .demo-notice-message:nth-child(4) { animation-delay: 18s; }

  @keyframes demo-notice-fade {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
  }
}

/* Keep the footer compact on wide screens, then give the phone layout enough
   room for real links to remain readable. */
.footer-grid {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4.6vw, 64px);
}

.footer-grid > div {
  min-width: 0;
}

.footer-grid .footer-services {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  justify-self: stretch;
  text-align: left;
}

.footer-grid .footer-brand {
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-self: center;
  width: 100%;
  padding-left: 0;
  text-align: center;
}

.footer-grid .footer-contact {
  grid-column: 3;
  grid-row: 1;
  align-items: flex-end;
  justify-self: stretch;
  text-align: right;
}

.footer-grid .footer-contact button {
  text-align: right;
}

.footer-grid .footer-brand .brand-lockup {
  width: min(240px, 100%);
  margin-inline: auto;
}

.footer-grid .footer-brand .brand-mark {
  width: min(120px, 100%);
  max-width: 100%;
  margin-bottom: -10px;
}

.footer-grid .footer-brand .brand-wordmark {
  width: min(240px, 100%);
  max-width: 100%;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
  }

  .footer-grid .footer-brand .brand-lockup {
    width: min(220px, 100%);
  }

  .footer-grid .footer-brand .brand-mark {
    width: min(112px, 100%);
  }

  .footer-grid .footer-brand .brand-wordmark {
    width: min(220px, 100%);
  }
}

@media (max-width: 760px) {
  .footer-grid {
    width: calc(100% - 48px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 24px;
    align-items: start;
  }

  .footer-grid > div.footer-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .footer-grid > div.footer-services {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    text-align: left;
  }

  .footer-grid > div.footer-contact {
    grid-column: 2;
    grid-row: 2;
    align-items: flex-start;
    text-align: left;
  }

  .footer-grid > div.footer-contact button {
    text-align: left;
  }

  .footer-grid .footer-brand {
    padding-left: 0;
  }

  .footer-grid .footer-brand .brand-lockup {
    width: min(190px, 100%);
  }

  .footer-grid .footer-brand .brand-mark {
    width: 78px;
    margin-bottom: -6px;
  }

  .footer-grid .footer-brand .brand-wordmark {
    width: 190px;
  }

  .footer-grid h2 {
    font-size: 10px;
  }

  .footer-grid a,
  .footer-grid span,
  .footer-grid button {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 760px) {
  .site-header {
    /* The sticky header overlays the hero. Cancel its complete flow footprint
       from one formula so phone breakpoints cannot drift and expose a strip. */
    --site-header-mobile-height: 66px;
    --site-header-mobile-gap: 6px;
    height: var(--site-header-mobile-height);
    min-height: var(--site-header-mobile-height);
    margin: var(--site-header-mobile-gap) auto calc(0px - var(--site-header-mobile-height) - var(--site-header-mobile-gap));
  }

  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-header-cta {
    display: none;
  }

  .menu-toggle {
    grid-column: 3;
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
  }

  .menu-icon,
  .menu-icon span {
    width: 21px;
  }

  .menu-icon {
    gap: 4px;
  }
}

@media (min-width: 415px) and (max-width: 760px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px;
  }

  .site-brand-mark {
    width: 32px;
    height: 38px;
  }

  .site-brand-wordmark {
    width: 104px;
    margin-left: 5px;
  }

  .site-nav {
    position: static;
    grid-column: 2;
    display: flex;
    min-width: 0;
    justify-content: center;
    gap: clamp(6px, 1.8vw, 10px);
    margin: 0;
    transform: none;
  }

  .site-header.is-compact .site-nav {
    gap: clamp(6px, 1.8vw, 10px);
  }

  .site-nav a {
    padding: 8px 0;
    font-size: clamp(9px, 2.4vw, 11px);
    letter-spacing: 0;
  }

  .site-nav a::after {
    bottom: 1px;
    height: 1px;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 414px) {
  .site-header {
    border-top-color: transparent;
    box-shadow: 0 12px 34px rgba(23, 35, 40, .13);
  }

}

/* Canonical combined footer lockup and demo-only contact feedback. */
.footer-grid .footer-brand .brand-lockup {
  width: min(190px, 100%);
}

.footer-grid .footer-brand .brand-lockup-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.demo-contact-toast {
  position: fixed;
  z-index: 500;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  max-width: min(360px, calc(100vw - 28px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: #0d2b38;
  color: #fff;
  box-shadow: 0 16px 44px rgba(13, 43, 56, .28);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 415px) and (max-width: 760px) {
  .site-nav a {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
  }
}

@media (max-width: 760px) {
  .footer-grid .footer-brand .brand-lockup {
    width: min(160px, 100%);
  }

  .footer-grid a,
  .footer-grid button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
  }

  .legal-dialog > button {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 414px) {
  .site-header .site-brand-wordmark {
    position: relative;
    left: 0;
    transition: left .4s cubic-bezier(.2, .7, .2, 1), width .4s cubic-bezier(.2, .7, .2, 1), margin-left .4s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
    will-change: left;
  }

  .site-header.is-compact .site-brand-wordmark {
    left: calc(50vw - 37px - min(36px, 9.5vw) - 6px - min(60px, 16vw));
    width: min(120px, 32vw);
    margin-left: 6px;
    opacity: 1;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .site-brand-wordmark {
    transition-duration: .01ms;
  }
}

/* Tablet headers keep their readable page links when the sticky shell enters
   its compact scroll state. The hamburger is reserved for compact phones. */
@media (min-width: 761px) and (max-width: 1050px) {
  .site-nav {
    display: flex;
  }

  .site-header.is-compact .site-nav {
    gap: clamp(18px, 3vw, 36px);
  }

  .menu-toggle {
    display: none;
  }
}

/* Canonical responsive footer. The shared shell owns this layout on every route. */
.site-footer {
  position: relative;
  /* The home roof transition intentionally overflows its section. Keep that
     decorative layer behind the footer when the page is scrolled to the end. */
  z-index: 3;
  padding: clamp(42px, 4vw, 58px) 0 20px;
  border-top: 1px solid rgba(16, 37, 50, .1);
  background: var(--page, #fbfaf7);
  color: var(--ink, #102532);
}

.footer-grid {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) minmax(250px, .95fr) minmax(220px, .8fr);
  grid-template-areas: "brand services contact";
  align-items: start;
  gap: clamp(42px, 6vw, 92px);
}

.footer-grid > .footer-brand,
.footer-grid > .footer-services,
.footer-grid > .footer-contact {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.footer-grid > .footer-brand {
  grid-area: brand;
  display: flex;
  width: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-self: stretch;
}

.footer-grid > .footer-services {
  grid-area: services;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.footer-grid > .footer-contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.footer-grid .footer-brand .brand-lockup {
  width: min(168px, 100%);
  margin: 0;
  align-items: center;
  gap: 2px;
}

.footer-grid .footer-brand .brand-lockup-mark {
  display: block;
  width: 43%;
  height: auto;
  object-fit: contain;
}

.footer-grid .footer-brand .brand-lockup-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-tagline {
  max-width: 37ch;
  margin: 16px 0 14px;
  color: var(--muted, #66747c);
  font-size: 14px;
  line-height: 1.55;
}

.footer-grid h2 {
  margin: 2px 0 12px;
  color: var(--ink, #102532);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-grid .footer-services a,
.footer-grid .footer-contact button {
  display: flex;
  min-height: 32px;
  margin: 0;
  padding: 5px 0;
  align-items: center;
  border: 0;
  background: none;
  color: var(--muted, #66747c);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.footer-grid .footer-quote-link {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(16, 37, 50, .18);
  border-radius: 999px;
  color: var(--ink, #102532);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.footer-grid .footer-quote-link span {
  color: inherit;
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease;
}

.footer-grid .footer-services a:hover,
.footer-grid .footer-contact button:hover,
.footer-grid .footer-services a:focus-visible,
.footer-grid .footer-contact button:focus-visible {
  color: var(--terracotta, #c65336);
}

.footer-grid .footer-quote-link:hover,
.footer-grid .footer-quote-link:focus-visible {
  border-color: var(--terracotta, #c65336);
  background: var(--terracotta, #c65336);
  color: #fff;
}

.footer-grid .footer-quote-link:hover span,
.footer-grid .footer-quote-link:focus-visible span {
  transform: translateX(3px);
}

.footer-grid a:focus-visible,
.footer-grid button:focus-visible,
.footer-base a:focus-visible {
  outline: 3px solid var(--terracotta, #c65336);
  outline-offset: 3px;
}

.footer-base {
  width: min(1180px, calc(100% - 48px));
  margin: 30px auto 0;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(16, 37, 50, .1);
  color: var(--muted, #66747c);
  font-size: 11px;
  line-height: 1.45;
}

.footer-base p {
  margin: 0;
}

.footer-base p span {
  margin-left: 8px;
}

.footer-credit {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: var(--terracotta, #c65336);
}

@media (max-width: 980px) {
  .site-footer {
    padding-top: 44px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "services contact";
    gap: 36px 48px;
  }

  .footer-grid > .footer-brand {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-areas:
      "lockup tagline"
      "lockup quote";
    column-gap: 32px;
    align-items: start;
  }

  .footer-grid .footer-brand .brand-lockup {
    grid-area: lockup;
  }

  .footer-tagline {
    grid-area: tagline;
    max-width: 44ch;
    margin: 0 0 12px;
  }

  .footer-grid .footer-quote-link {
    grid-area: quote;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 28px 0 16px;
  }

  .footer-grid {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "services"
      "contact";
    gap: 20px;
  }

  .footer-grid > .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-grid .footer-brand .brand-lockup {
    width: min(136px, 100%);
    margin-inline: auto;
    gap: 0;
  }

  .footer-grid .footer-brand .brand-lockup-mark {
    width: 42%;
    margin-bottom: -4px;
  }

  .footer-grid .footer-brand .footer-tagline {
    max-width: 28ch;
    margin: 10px auto;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-grid .footer-quote-link {
    min-height: 36px;
    padding-inline: 12px;
    gap: 10px;
    font-size: 10px;
    justify-self: auto;
  }

  .footer-grid > .footer-services,
  .footer-grid > .footer-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 16px;
  }

  .footer-grid > div.footer-contact {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-grid h2 {
    grid-column: 1 / -1;
    margin: 0 0 5px;
    font-size: 10px;
  }

  .footer-grid .footer-services a,
  .footer-grid .footer-contact button {
    min-height: 36px;
    padding: 2px 0;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.25;
  }

  .footer-grid .footer-contact .contact-link-static {
    grid-column: 1 / -1;
  }

  .footer-base {
    width: calc(100% - 32px);
    margin-top: 18px;
    padding-top: 10px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9.5px;
    line-height: 1.35;
    text-align: center;
  }

  .footer-base p,
  .footer-base .footer-credit {
    text-align: center;
  }

  .footer-base p span {
    display: block;
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .footer-grid,
  .footer-base {
    width: calc(100% - 28px);
  }

  .footer-grid {
    column-gap: 12px;
  }

  .footer-grid > .footer-services,
  .footer-grid > .footer-contact {
    column-gap: 12px;
  }

  .footer-grid .footer-brand .brand-lockup {
    width: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-grid .footer-quote-link,
  .footer-grid .footer-quote-link span {
    transition: none;
  }
}
