@font-face {
  font-family: Arboria;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../assets/fonts/Arboria-Book.woff2") format("woff2"),
    url("../assets/fonts/Arboria-Book.woff") format("woff");
}

@font-face {
  font-family: Arboria;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("../assets/fonts/Arboria-Bold.woff2") format("woff2"),
    url("../assets/fonts/Arboria-Bold.woff") format("woff");
}

:root {
  --navy: #032161;
  --heading: #00154b;
  --cyan: #0490dd;
  --text: #111111;
  --muted: #333333;
  --white: #ffffff;
  --hero-overlay: rgba(3, 33, 97, 0.64);
  --band-overlay: rgba(4, 144, 221, 0.8);
  --content: 1220px;
  /* Live Impreza: 110px default / 80px sticky (token 88px understates baseline). */
  --header-h: 110px;
  --header-sticky-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Live Impreza root is 18px — rem (afb 3rem, metrics 4rem) must match. */
  font-size: 18px;
  /* Live WP/oracle: scroll-behavior auto. Anchor motion is JS easeInOutExpo @ 1000ms
   * (canvasOptions.scrollDuration). CSS smooth + rAF scrollTo fights and feels less buttery. */
  scroll-behavior: auto;
  height: 100%;
  background: var(--navy);
  /* Safari-safe fixed-header offset (scroll-margin alone is flaky on WebKit). */
  scroll-padding-top: var(--header-sticky-h);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arboria, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: var(--heading);
  padding: 8px 12px;
  z-index: 100;
}

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

.wrap {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  /* Live Impreza: subheader line-height equals bar height (110 / sticky 80). */
  line-height: var(--header-h);
  transition:
    height 0.3s cubic-bezier(0.78, 0.13, 0.15, 0.86),
    background-color 0.3s cubic-bezier(0.78, 0.13, 0.15, 0.86),
    box-shadow 0.3s cubic-bezier(0.78, 0.13, 0.15, 0.86);
}

.site-header.is-sticky {
  height: var(--header-sticky-h);
  line-height: var(--header-sticky-h);
  background: var(--white);
  /* Live Impreza shadow_wide on sticky subheader */
  box-shadow:
    0 3px 5px -1px rgba(0, 0, 0, 0.1),
    0 2px 1px -1px rgba(0, 0, 0, 0.05);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 80px), var(--content));
}

.logo {
  display: block;
  position: relative;
  width: min(390px, 52vw);
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: auto;
}

.logo-sticky {
  display: none;
}

.site-header.is-sticky .logo {
  width: min(362px, 50vw);
}

.site-header.is-sticky .logo-hero {
  display: none;
}

.site-header.is-sticky .logo-sticky {
  display: block;
}

/* Desktop nav sits outside <details>; mobile menu is details/summary only.
 * Live Impreza: anchors are full bar height with line-height = bar (110 / 80). */
.nav-desktop {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 100%;
  line-height: inherit;
}

.nav-menu {
  display: none;
  margin: 0;
}

.nav-menu > summary {
  list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  color: var(--white);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav a {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  /* Live Impreza: 30px horizontal pad → ~60px between Home/About ink. */
  padding: 0 30px;
}

.nav-desktop a {
  display: block;
  height: 100%;
  line-height: var(--header-h);
}

.site-header.is-sticky .nav-desktop a {
  line-height: var(--header-sticky-h);
}

/* Live Impreza hover_underline on .w-nav-title: ink-sized box (not full header line-height). */
.nav-desktop a .nav-label {
  position: relative;
  display: inline-block;
  /* Parent a uses line-height 110/80 for vertical center; reset so ::after sits under glyphs. */
  line-height: 1;
}

.nav-desktop a .nav-label::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -0.4em;
  margin: 0 auto -2px;
  height: 2px;
  background: currentColor;
  opacity: 0;
  /* Live: transition: all 0.3s */
  transition: all 0.3s;
}

.nav-desktop a:hover .nav-label::after {
  bottom: -2px;
  opacity: 1;
}

/* Live Impreza: no current-page underline/color — Home and About look equal. */
.nav a:hover {
  color: var(--white);
}

.site-header.is-sticky .nav a {
  color: var(--muted);
}

/* Live WP sticky: current page link is accent cyan (no current underline). */
.site-header.is-sticky .nav a[aria-current="page"] {
  color: var(--cyan);
}

.site-header.is-sticky .nav a:hover {
  color: var(--cyan);
}

.site-header.is-sticky .nav-toggle span,
.site-header.is-sticky .nav-toggle span::before,
.site-header.is-sticky .nav-toggle span::after {
  background: var(--muted);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--navy);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  /* Live Home hero: height_huge full_height valign_center pad 8rem (144px). */
  padding: 8rem 24px;
}

.hero-home {
  /* WP .l-section-img: cover / 50% 50% at rest — no Ken Burns zoom. */
  background-image: image-set(
    url("../assets/images/hero-home.avif") type("image/avif"),
    url("../assets/images/hero-home.webp") type("image/webp"),
    url("../assets/images/hero-home.jpeg") type("image/jpeg")
  );
}

.hero-home .hero-inner {
  /* Live us_custom_5e85ee12 grid margin-top 50px under valign_center. */
  margin-top: 50px;
}

.hero-about {
  min-height: 58vh;
  background-image: image-set(
    url("../assets/images/hero-about.avif") type("image/avif"),
    url("../assets/images/hero-about.webp") type("image/webp"),
    url("../assets/images/hero-about.jpeg") type("image/jpeg")
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

.hero-inner {
  position: relative;
  z-index: 1;
  /* Live Home hero column ~854px; drives H1 wrap after “of”. */
  max-width: 854px;
}

.hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.2; /* 64.8px at 54 */
  font-weight: 700;
  letter-spacing: normal;
}

.hero .lede {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: normal;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.scroll-cue img {
  width: 28px;
  height: auto;
}

.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0 0 22px;
  color: var(--heading);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.section .intro {
  /* Live outcomes column ~793px → 3-line wrap at 1440 (not 2). */
  max-width: 793px;
  margin: 0 auto;
  text-align: center;
  color: #000;
  font-size: 18px;
  line-height: 28px;
}

/* WP white outcomes overlaps hero bottom by ~20px (section top 880 vs hero 900). */
#outcomes {
  margin-top: -20px;
  position: relative;
  z-index: 1;
  /* Sticky header is 80px; hash/scroll-cue must not clip H2 (WP also clips ~8px — we clear fully). */
  scroll-margin-top: var(--header-sticky-h);
}

/* Belt-and-suspenders for WebKit: margin on the heading itself too. */
#outcomes > .wrap > h2 {
  scroll-margin-top: var(--header-sticky-h);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Live g-cols cols_3 gap 72px (= 4rem at html 18px). */
  gap: 4rem;
  margin-top: 108px;
  text-align: center;
}

.metric img {
  width: 90px;
  height: 90px;
  /* Live .w-iconbox-icon img: margin 0; 9px icon→title gap is the inline strut. */
  display: inline-block;
  vertical-align: baseline;
  margin: 0;
  object-fit: contain;
}

.metric p {
  margin: 0;
  /* Live .w-iconbox-title: padding 0.5em 0 (=9px at 18px root). */
  padding: 0.5em 0;
  color: #000;
  font-size: 18px;
  line-height: 28px;
}

.band {
  position: relative;
  /*
   * Live Impreza .l-section.height_huge: padding 8rem / 8rem @ html 18px → 144px.
   * Measured WP Home 1440: band h 413.59 (content~126 + pad). Keep min-height so the
   * blue box cannot collapse if CSS loads late; never shrink below WP.
   */
  min-height: 414px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--cyan);
  /* Match WP .l-section-img: center center / cover (not bare "center"). */
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 8rem 24px;
}

.band-projects {
  background-image: image-set(
    url("../assets/images/band-projects.avif") type("image/avif"),
    url("../assets/images/band-projects.webp") type("image/webp"),
    url("../assets/images/band-projects.jpeg") type("image/jpeg")
  );
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  /* WP .l-section-overlay sits over .l-section-img — keep above photo layer. */
  z-index: 1;
  background: var(--band-overlay);
}

.band-inner {
  position: relative;
  z-index: 1;
  max-width: 854px;
}

.band h2 {
  color: var(--white);
  margin: 0 0 22px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
}

.band p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split h2 {
  text-align: left;
  margin-bottom: 16px;
}

.split p {
  margin: 0;
  color: var(--muted);
}

.philosophy {
  padding-left: 50px;
  border-left: 4px solid var(--cyan);
}

/*
 * Live WP footer (#page-footer .us_custom_7377351c color_footer-bottom), 1440:
 *   section pad 50 / 30; logo 369×66; nav gap 1.5rem; copy row mt 30 + pt 30 +
 *   border-top rgba(255,255,255,0.2); total h ~244. Do not shrink.
 */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0 30px;
  flex-shrink: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Live logo column ~75px tall vs logo 66px (wpb_text_column / p box). */
  padding-bottom: 9px;
}

.footer-top .logo {
  width: min(369px, 70vw);
}

.footer-nav {
  display: flex;
  /* Live Impreza --main-gap: 1.5rem → 27px @ html 18px. */
  gap: 1.5rem;
  align-items: center;
}

.footer-nav a {
  color: var(--white);
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-nav a[aria-current="page"] {
  color: var(--white);
}

.copyright {
  /* Live .us_custom_5bdcc5f4: margin-top 30 + padding-top 30 + hairline. */
  margin: 30px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  color: var(--white);
}

@media (max-width: 1024px) {
  .site-header .wrap {
    width: min(calc(100% - 28px), var(--content));
    gap: 0;
  }

  .wrap {
    width: min(calc(100% - 32px), var(--content));
  }

  .logo {
    /* WP mobiles .ush_image_1 height:60 → ~334×60 wordmark. */
    width: min(333px, 85.5vw);
  }

  /* WP mobiles sticky .ush_image_1 height:50 → ~278×50 (does not keep top size). */
  .site-header.is-sticky .logo {
    width: min(278px, 71.3vw);
  }

  .nav-desktop {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  :root {
    --header-h: 100px;
  }

  .site-header.is-sticky {
    /* Live Impreza shadow_thin on mobile sticky */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  }

  .nav-menu .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    flex-direction: column;
    gap: 0;
    min-width: 180px;
    background: var(--navy);
    padding: 12px 0;
  }

  .site-header.is-sticky .nav-menu .nav {
    background: var(--navy);
  }

  .site-header.is-sticky .nav-menu .nav a {
    color: var(--white);
  }

  .site-header.is-sticky .nav-menu .nav a:hover {
    color: var(--cyan);
  }

  .nav-menu[open] .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 20px;
  }

  .hero {
    padding: 5rem 24px;
  }

  /* WP @media(max-width:1024px) .l-section.height_huge → 9vmax (≈76px @ 390×844). */
  .hero-home {
    padding-top: 9vmax;
    padding-bottom: 9vmax;
  }

  .hero-home .hero-inner {
    margin-top: 32px;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    margin-top: 72px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy {
    padding-left: 24px;
  }

  .footer-top {
    flex-direction: column;
    /* WP footer logo column is full-width / centered; nav stacks left below. */
    align-items: center;
    /* Live mobile: logo bottom → menu top ~34px. */
    gap: 34px;
  }

  .footer-top .logo {
    /* WP footer img ~342×61 @ 390 (sizes→column); was 70vw≈273 left-biased. */
    width: min(342px, 100%);
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 24px;
  }

  .site-footer {
    /* Keep live 50/30 — do not shrink bottom pad on tablet/mobile. */
    padding: 50px 0 30px;
  }

  .copyright {
    margin-top: 30px;
    padding-top: 30px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 26px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.2; /* 40.8px — matches live mobile */
  }

  /* Live mobile lede: 20/28; H1→lede gap 19px (h1 block mb 19.2). */
  .hero .lede {
    font-size: 20px;
    line-height: 28px;
    margin-top: 19px;
  }

  .hero-inner {
    max-width: 100%;
  }

  /* Live mobile: outcomes overlaps hero by 32px (topDoc 812 vs hero 844). */
  #outcomes {
    margin-top: -32px;
    scroll-margin-top: var(--header-sticky-h);
  }

  /* Live outcomes section: 100px 24px 50px → intro ~342px at 390. */
  .section {
    padding: 100px 24px 50px;
  }

  .section .wrap {
    width: 100%;
  }

  .section h2,
  .band h2 {
    font-size: 30px;
    line-height: 1.2; /* 36px */
  }

  /* Live mobile: H2→intro gap 19px (desktop keeps 22). */
  .section h2 {
    margin-bottom: 19px;
  }

  .section .intro,
  .metric p {
    font-size: 16px;
    line-height: 28px;
    color: #000;
  }

  .metric p {
    /* Live mobile: 0.5em at 16px root → 8px. */
    padding: 0.5em 0;
  }

  /* Live mobile metrics: 80px icons; intro→icon 45px; stack gap 64px. */
  .metrics {
    gap: 64px;
    margin-top: 45px;
  }

  .metric img {
    width: 80px;
    height: 80px;
  }

  .band {
    /* Live mobile height_huge pad 80px; keep at least WP ~355 visual height. */
    min-height: 355px;
    padding: 80px 24px;
  }

  .band p {
    font-size: 16px;
    line-height: 28px;
  }

  .site-footer {
    padding: 50px 0 30px;
  }

  .copyright {
    font-size: 16px;
  }
}

/* Impreza afb (appear-from-bottom) — measured on mbbdigital.us */
/* [class*="us_animate_"] { opacity:0; animation-duration:0.7s; animation-fill-mode:both } */
/* @keyframes afb { 0%{opacity:0;transform:translateY(3rem)} 100%{opacity:1;transform:translateY(0)} } */
.reveal {
  opacity: 0;
}

.reveal.is-in {
  animation: afb 0.7s ease both;
}

@keyframes afb {
  0% {
    opacity: 0;
    transform: translateY(3rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
