:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  height: 100%;
  margin: 0;
  background-color: #022b3a;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #022b3a;
  color: #e5f4f6;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background-color: #022b3a;
  color: inherit;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/bg/hero_b.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  opacity: 0.25;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 1;
}

.hero__logo {
  max-width: min(54vw, 288px);
  width: 100%;
  height: auto;
}

.hero__tagline {
  position: absolute;
  bottom: clamp(1.5rem, 6vh, 4rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
}

.hero__tagline-leading {
  display: inline-grid;
  grid-template-columns: var(--hero-word-width, auto) auto;
  column-gap: 0.25em;
  align-items: baseline;
  white-space: nowrap;
}

.hero__tagline-word {
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.6s ease;
  justify-self: end;
}

.hero__tagline-word.is-fade-out {
  opacity: 0;
}

.hero__tagline-static {
  white-space: nowrap;
}

.hero__tagline-arrow {
  font-size: 1.4em;
  line-height: 1;
}

.hero__tagline-highlight {
  display: inline-block;
  padding-bottom: 0.15em;
  border-bottom: 0.22em solid currentColor;
  white-space: nowrap;
}

.cards {
  width: 100%;
  background-color: #022b3a;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
}

.cards__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.cards__heading {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(229, 244, 246, 0.75);
}

.card {
  background-color: #ffffff;
  color: #09222b;
  border-radius: 30px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.card--full-media {
  padding: 0;
  overflow: hidden;
}

.card--full-media .card__media {
  height: 100%;
  border-radius: 30px;
  min-height: clamp(260px, 32vw, 360px);
}

.card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(160px, 25vw, 220px);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-media-fill, linear-gradient(135deg, #9bd8cf, #f4f1de));
}

.card__media-decoration {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 42vw, 360px);
  height: auto;
  opacity: 0.45;
  filter: drop-shadow(0 14px 24px rgba(7, 30, 39, 0.25));
  pointer-events: none;
}

.card__media-caption {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.card__media-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.75rem, 9vw, 5.2rem);
  height: clamp(3.75rem, 9vw, 5.2rem);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #eaf2f5 100%);
  box-shadow: 0 18px 35px rgba(8, 36, 46, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.card__media-button::before {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(6px);
  z-index: -1;
}

.card__media-button-icon {
  width: clamp(1.15rem, 2.8vw, 1.8rem);
  fill: #0f2731;
  transform: translateX(2%);
}

.card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #556a73;
}

.card__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
}

.card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.card__cta::after {
  content: '→';
  font-size: 1.4em;
  transform: translateY(-1px);
}

.card--secondary {
  --card-media-fill: linear-gradient(135deg, #0c1a3c, #0d4c3b);
}

@media (hover: hover) {
  .card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__tagline-word {
    transition: none;
  }

  .card {
    transition: none;
  }
}

.site-footer {
  margin-top: auto;
  background-color: #022b3a;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 6vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(229, 244, 246, 0.75);
}

.site-footer__copy {
  margin: 0;
}

.site-footer__social {
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(229, 244, 246, 0.08);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-footer__social:hover,
.site-footer__social:focus-visible {
  color: #9bd8cf;
  background: rgba(155, 216, 207, 0.18);
  box-shadow: 0 10px 20px rgba(4, 15, 19, 0.25);
}

.site-footer__icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

.logo-emblem {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem) 0;
}

.logo-emblem__image {
  width: clamp(108px, 23.4vw, 180px);
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.35));
  opacity: 0.82;
}

@media (max-width: 768px) {
  .hero {
    padding: 0 clamp(1.25rem, 6vw, 2rem);
  }

  .hero__tagline {
    bottom: clamp(2rem, 10vh, 3rem);
    gap: 0.5em;
    font-size: clamp(0.95rem, 3.5vw, 1.25rem);
    text-align: center;
  }

  .cards {
    padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 6vw, 2rem);
  }

  .cards__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    border-radius: 26px;
    padding: clamp(1.4rem, 6vw, 1.9rem) clamp(1.25rem, 6vw, 1.85rem);
    gap: 1.25rem;
  }

  .card--full-media .card__media {
    border-radius: 26px;
    min-height: clamp(220px, 55vw, 320px);
  }

  .card__media {
    border-radius: 20px;
  }

  .card__title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .logo-emblem {
    padding: clamp(1.5rem, 8vw, 2.5rem) 0;
  }
}

@media (max-width: 430px) {
  .hero__tagline {
    bottom: clamp(1.5rem, 9vh, 2.5rem);
    font-size: 0.95rem;
    letter-spacing: 0.015em;
  }

  .hero__tagline-arrow {
    font-size: 1.15em;
  }

  .card__media-decoration {
    width: clamp(180px, 70vw, 240px);
  }

  .card__media-button {
    width: clamp(3.2rem, 20vw, 4.2rem);
    height: clamp(3.2rem, 20vw, 4.2rem);
  }

  .card__media-button-icon {
    width: clamp(1rem, 3.5vw, 1.5rem);
  }

  .logo-emblem__image {
    width: clamp(96px, 34vw, 150px);
  }

  .site-footer {
    padding: clamp(1.25rem, 8vw, 1.75rem) clamp(1.1rem, 7vw, 1.75rem);
  }
}

.card__media-button:focus-visible {
  outline: 2px solid rgba(155, 216, 207, 0.8);
  outline-offset: 4px;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-modal[hidden] {
  display: none;
}

.video-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 43, 58, 0.72);
  backdrop-filter: blur(12px);
}

.video-modal__dialog {
  position: relative;
  width: min(900px, 100%);
  border-radius: 28px;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  transform: translateY(16px) scale(0.97);
  opacity: 0.95;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-modal.is-active .video-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.video-modal__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1rem);
  right: clamp(0.75rem, 2vw, 1rem);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 43, 58, 0.6);
  color: #e5f4f6;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: rgba(155, 216, 207, 0.25);
  transform: scale(1.05);
}

.video-modal__close:focus-visible {
  outline: 2px solid rgba(229, 244, 246, 0.85);
  outline-offset: 3px;
}

.video-modal__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(2, 43, 58, 0.35);
  box-shadow: inset 0 0 0 1px rgba(229, 244, 246, 0.12);
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

body.is-modal-open {
  overflow: hidden;
}
