@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --navy: #082454;
  --blue: #1653a4;
  --yellow: #f2b91b;
  --white: #ffffff;
  --soft: #f2f4f6;
  --line: #dbe0e7;
  color-scheme: light;
}

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

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--white);
  color: var(--navy);
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.9rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100rem;
  min-height: 5.9rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 3.2vw, 3.5rem);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 50%;
}

.brand span {
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(2.25rem, 3vw, 3.6rem);
}

.desktop-nav a,
.support-link {
  font-size: 1rem;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding-block: 0.5rem;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.support-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  padding-inline: 1.5rem;
  background: var(--yellow);
  transition: background-color 180ms ease, color 180ms ease;
}

.support-link:hover,
.support-link:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(29rem, 0.74fr);
  gap: clamp(3.5rem, 6vw, 7rem);
  align-items: center;
  width: 100%;
  max-width: 100rem;
  min-height: calc(100svh - 5.9rem);
  margin-inline: auto;
  padding: clamp(2.8rem, 5vh, 4.5rem) clamp(1.5rem, 3.2vw, 3.5rem);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 7.35vw, 8.1rem);
  font-weight: 730;
  font-stretch: 100%;
  line-height: 0.9;
  letter-spacing: -0.052em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 span:last-child {
  margin-top: 0.08em;
  color: var(--blue);
}

.hero-copy > p {
  max-width: 27ch;
  margin: clamp(2.3rem, 4.5vh, 3.7rem) 0 0;
  font-size: clamp(1.35rem, 1.55vw, 1.65rem);
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2rem, 4vh, 3rem);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 13.75rem;
  min-height: 4.1rem;
  padding-inline: 1.4rem;
  background: var(--navy);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 680;
  transition: background-color 180ms ease;
}

.primary-action svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--blue);
}

.primary-action:hover svg,
.primary-action:focus-visible svg {
  transform: translateX(0.25rem);
}

.secondary-action {
  padding-block: 0.45rem;
  border-bottom: 2px solid var(--navy);
  font-size: 1.05rem;
  font-weight: 680;
}

.hero-image {
  min-width: 0;
  margin: 0;
}

.image-frame {
  position: relative;
  width: 100%;
  height: clamp(31rem, 68vh, 46rem);
  overflow: hidden;
  background: var(--soft);
  border-top: 0.75rem solid var(--yellow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  font-size: 0.98rem;
  font-weight: 520;
  line-height: 1.35;
}

.hero-image figcaption span:first-child {
  max-width: 25rem;
}

.hero-image figcaption span:last-child {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 700;
}

.section-edge {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem max(clamp(1.5rem, 3.2vw, 3.5rem), calc((100vw - 100rem) / 2 + 3.5rem));
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 650;
}

.section-edge span:first-child {
  color: var(--yellow);
}

.future-sections {
  height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .support-link {
    display: none;
  }

  .menu-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--navy);
    font: inherit;
    font-size: 1rem;
    font-weight: 680;
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: transform 200ms ease;
  }

  .menu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
  }

  .mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    padding: 1rem clamp(1.5rem, 3.2vw, 3.5rem) 2.2rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.8rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 4.5rem;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 680;
    letter-spacing: -0.035em;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 0.72fr);
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 7.8vw, 6.2rem);
  }

  .image-frame {
    height: clamp(29rem, 61vh, 39rem);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 5.2rem;
    padding-inline: 1.25rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand img {
    width: 3.45rem;
    height: 3.45rem;
  }

  .brand span {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding: 3.25rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: clamp(3.85rem, 16.5vw, 5.8rem);
    line-height: 0.91;
    letter-spacing: -0.055em;
  }

  .hero-copy > p {
    max-width: 24ch;
    margin-top: 2.5rem;
    font-size: clamp(1.3rem, 5.7vw, 1.65rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1.35rem;
    margin-top: 2.3rem;
  }

  .primary-action {
    width: 100%;
    min-height: 4.35rem;
  }

  .secondary-action {
    align-self: flex-start;
  }

  .image-frame {
    height: auto;
    aspect-ratio: 4 / 5;
    border-top-width: 0.65rem;
  }

  .image-frame img {
    object-position: 50% 33%;
  }

  .hero-image figcaption {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
  }

  .section-edge {
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
  }

  .section-edge span:last-child {
    display: none;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 3.55rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
