@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;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

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

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: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
}

.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;
  width: min(375px, 52vw);
  flex-shrink: 0;
}

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

.nav-menu {
  margin: 0;
}

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

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

.nav-toggle {
  display: none;
  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: 64px;
  align-items: center;
}

.nav a {
  color: var(--white);
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

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

.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: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: calc(var(--header-h) + 48px) 24px 80px;
}

.hero-home {
  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-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;
  background: var(--hero-overlay);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

.hero .lede {
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
}

.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: 52px 0 88px;
}

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

.section .intro {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 108px;
  text-align: center;
}

.metric img {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  object-fit: contain;
}

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

.band {
  position: relative;
  min-height: 413px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--cyan);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 108px 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;
  background: var(--band-overlay);
}

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

.band h2 {
  color: var(--white);
  margin: 0 0 16px;
  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);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-nav {
  display: flex;
  gap: 28px;
}

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

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

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

.copyright {
  margin: 36px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--white);
}

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

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

  .logo {
    width: min(318px, calc(100% - 56px));
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

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

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

  .nav a {
    padding: 12px 20px;
    border-bottom: 0;
  }

  .hero {
    padding: calc(var(--header-h) + 24px) 24px 72px;
  }

  .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;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .site-footer {
    padding: 48px 0 40px;
  }

  .copyright {
    margin-top: 36px;
  }
}

@media (min-width: 1025px) {
  .nav-menu {
    display: contents;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu .nav {
    display: flex;
  }
}

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

  .hero h1 {
    font-size: 34px;
  }

  .hero .lede {
    font-size: 16px;
    margin-top: 28px;
  }

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

  .section {
    padding: 68px 0 80px;
  }

  .section h2,
  .band h2 {
    font-size: 30px;
  }

  .band {
    min-height: 355px;
    padding: 88px 20px;
  }

  .site-footer {
    padding: 56px 0 48px;
  }
}

/* Impreza-style appear-from-bottom (afb): hero text only on Home */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
}

.reveal.is-in {
  animation: reveal-afb 0.7s ease both;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes reveal-afb {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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