@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  --font-geist-sans: "Geist";
  --font-dm-sans: "DM Sans";
}

:root {
  --ink: #14213d;
  --deep-blue: #1d4ed8;
  --blue-line: #6f95f3;
  --blue-text: #ffffff;
  --blue-muted: #dbe7ff;
  --blue-soft: #eff5ff;
  --blue-powder: #b9d2ff;
  --white: #ffffff;
  --paper: #f6f8f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  display: grid;
  width: calc(100% - 48px);
  height: 66px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--white);
}

.brand-name {
  width: max-content;
  font-family: var(--font-geist-sans), Inter, sans-serif;
  color: var(--deep-blue);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 38px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.site-header nav a,
.header-cta {
  transition:
    color 150ms ease,
    background 150ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--deep-blue);
}

.header-cta {
  display: inline-flex;
  min-width: 104px;
  height: 36px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--deep-blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 520;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: #1e40af;
}

.hero-panel {
  position: relative;
  height: calc(100svh - 90px);
  margin: 0 24px 24px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--deep-blue);
  color: var(--blue-text);
}

.dot-field {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image: radial-gradient(
    circle,
    rgba(219, 234, 254, 0.22) 1px,
    transparent 1.25px
  );
  background-size: 9px 9px;
  mask-image: linear-gradient(to right, black 0%, black 74%, transparent 100%);
}

.portrait-rotator {
  position: absolute;
  z-index: 1;
  top: clamp(28px, 4vh, 42px);
  right: clamp(80px, calc(7vw + 8px), 120px);
  width: auto;
  height: min(68vh, 650px);
  max-height: calc(100% - 132px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: #1744bf;
  box-shadow: 0 18px 48px rgba(8, 35, 115, 0.22);
  isolation: isolate;
}

.portrait-rotator::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(29, 78, 216, 0.04),
    transparent 68%,
    rgba(15, 49, 151, 0.14)
  );
  pointer-events: none;
  content: "";
}

.portrait-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: portrait-cycle 25s linear infinite;
  will-change: opacity;
}

@keyframes portrait-cycle {
  0%,
  16% {
    opacity: 1;
  }

  20%,
  96% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 72px));
  padding: clamp(68px, 8.5vh, 96px) 0 124px 36px;
  transform: translateY(44px);
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-dm-sans), var(--font-geist-sans), sans-serif;
  font-size: clamp(54px, 6.3vw, 92px);
  font-weight: 560;
  letter-spacing: -0.038em;
  line-height: 0.96;
}

.hero-description {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--blue-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-size: 12px;
  font-weight: 560;
  transition:
    border-color 150ms ease,
    gap 150ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  gap: 14px;
  border-color: #ffffff;
}

.logo-band {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 96px;
  grid-template-columns: 136px 1fr;
  align-items: center;
  padding: 14px 36px 8px;
}

.logo-band > p {
  margin: 0;
  color: #cbdcff;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-window {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-cycle 24s linear infinite;
  will-change: transform;
}

.logo-set {
  display: grid;
  padding-right: 32px;
  grid-auto-columns: 210px;
  grid-auto-flow: column;
  gap: 32px;
}

.logo-cell {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.logo-cell img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 184px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.76;
}

@keyframes logo-cycle {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .portrait-rotator {
    right: 40px;
    width: auto;
    height: min(64vh, 560px);
  }

  .hero-copy {
    padding-left: 28px;
  }

  .hero-description {
    max-width: 430px;
  }

  .logo-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 28px 8px;
  }
}

@media (max-width: 620px) {
  .portrait-rotator {
    display: none;
  }

  .site-header {
    width: calc(100% - 32px);
    height: 64px;
  }

  .hero-panel {
    height: calc(100svh - 80px);
    margin: 0 16px 16px;
  }

  .hero-copy {
    width: 100%;
    padding: 60px 22px 158px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 60px);
    line-height: 0.96;
  }

  .hero-description {
    max-width: 440px;
    margin-top: 24px;
    font-size: 14px;
  }

  .hero-cta {
    margin-top: 28px;
  }

  .logo-band {
    padding-right: 20px;
    padding-left: 20px;
  }

  .logo-set {
    padding-right: 24px;
    grid-auto-columns: 172px;
    gap: 24px;
  }

  .logo-cell img {
    height: 22px;
    max-width: 150px;
  }

}

@media (max-height: 720px) and (min-width: 621px) {
  .hero-copy {
    padding-top: 46px;
    padding-bottom: 112px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 5.6vw, 76px);
  }

  .hero-description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-cta {
    margin-top: 22px;
  }

  .logo-band {
    min-height: 96px;
  }
}

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

  .logo-track {
    animation-play-state: paused;
  }

  .portrait-rotator img {
    display: none;
    animation: none;
  }

  .portrait-rotator img:first-child {
    display: block;
    opacity: 1;
  }

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