:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.28);
  --blue: #123d8a;
  --blue-strong: #092b6c;
  --gold: #f5be58;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #f5f3ee;
  color: var(--ink);
}

a {
  color: inherit;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__logo {
  position: absolute;
  z-index: 1;
  top: clamp(18px, 4vw, 58px);
  right: clamp(18px, 5vw, 82px);
  width: clamp(132px, 18vw, 250px);
  max-height: 34svh;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.32));
  animation: logoFade 900ms ease-out 120ms both;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 18, 42, 0.82) 0%, rgba(7, 18, 42, 0.54) 36%, rgba(7, 18, 42, 0.08) 70%),
    linear-gradient(0deg, rgba(7, 18, 42, 0.66) 0%, rgba(7, 18, 42, 0.08) 42%, rgba(7, 18, 42, 0.26) 100%);
}

.hero__content {
  align-self: end;
  width: min(880px, calc(100% - 40px));
  margin: 0 0 clamp(96px, 14vh, 150px) clamp(20px, 7vw, 112px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--gold);
  font-size: clamp(1.65rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
}

.sublead {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  border-color: transparent;
  background: var(--ink);
  color: var(--blue-strong);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible,
.reveal--hero {
  opacity: 1;
  transform: translateY(0);
}

.reveal--hero .reveal__item {
  opacity: 0;
  transform: translateY(18px);
  animation: softReveal 760ms ease-out both;
}

.reveal--hero .reveal__item:nth-child(1) {
  animation-delay: 120ms;
}

.reveal--hero .reveal__item:nth-child(2) {
  animation-delay: 250ms;
}

.reveal--hero .reveal__item:nth-child(3) {
  animation-delay: 390ms;
}

.reveal--hero .reveal__item:nth-child(4) {
  animation-delay: 510ms;
}

.reveal--hero .reveal__item:nth-child(5) {
  animation-delay: 650ms;
}

.about {
  background: #f5f3ee;
  color: #162032;
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 80px);
}

.about__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.about__intro {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.about .eyebrow {
  color: var(--blue);
}

h2 {
  margin: 0;
  color: #0c1a31;
  font-size: clamp(2.3rem, 6vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.motto {
  margin: 0;
  color: #315078;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
}

.about__content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.about__content article {
  min-height: 100%;
  border: 1px solid rgba(18, 61, 138, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(26, 42, 72, 0.08);
  padding: clamp(26px, 3.4vw, 38px);
}

h3 {
  margin: 0 0 18px;
  color: #102449;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.about p {
  line-height: 1.68;
}

.about__content p {
  margin: 0 0 16px;
  color: #3d4859;
  font-size: 1rem;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 900;
  line-height: 1.4;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--blue-strong);
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }

  .hero__image {
    object-position: 54% center;
  }

  .hero__logo {
    top: 18px;
    right: 16px;
    width: clamp(112px, 38vw, 158px);
    max-height: 24svh;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(7, 18, 42, 0.9) 0%, rgba(7, 18, 42, 0.46) 58%, rgba(7, 18, 42, 0.12) 100%),
      linear-gradient(90deg, rgba(7, 18, 42, 0.56), rgba(7, 18, 42, 0.06));
  }

  .hero__content {
    width: min(100% - 32px, 560px);
    margin: 0 auto 76px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .lead {
    max-width: 410px;
  }

  .actions {
    gap: 10px;
  }

  .button {
    min-height: 46px;
    padding-inline: 15px;
  }

  .about {
    padding-block: 46px 64px;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .reveal--hero .reveal__item,
  .hero__logo {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
