
/* =========================================================
   HERO — START
   ========================================================= */

.hero {
  --hero-expand: 0;
  background: var(--sky);
  color: var(--white);
  height: 280vh;
  padding: 0;
  overflow: clip;
}

.hero__pin {
  position: sticky;
  top: 0;
  height: calc(100svh - var(--site-header-h));
  min-height: 28rem;
  overflow: hidden;
}

.hero__pin::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14rem;
  z-index: 3;
  background: linear-gradient(180deg, rgba(43, 176, 212, 0.94) 0%, rgba(43, 176, 212, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  width: min(1280px, calc(100% - 2rem));
  height: auto;
  margin-inline: auto;
  padding: 0.85rem 0 0.75rem;
  pointer-events: none;
}
.hero__inner a {
  pointer-events: auto;
}

.hero__text {
  position: relative;
  z-index: 40;
  max-width: 100%;
  opacity: calc(1 - max(0, var(--hero-expand) - 0.45) * 2.2);
  transform: translateY(calc(var(--hero-expand) * -0.85rem));
}

.hero__lockup {
  width: 100%;
  container-type: inline-size;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  text-shadow: none;
}

.hero__brand {
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.65rem;
  opacity: 1;
  text-shadow: none;
}

.hero__top {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.12;
  font-weight: 600;
  max-width: 100%;
  opacity: 1;
  color: var(--white);
  text-align: center;
}

.hero__word-slot {
  --word-size: clamp(2.35rem, 12cqi, 15.5cqi);
  --o-size: calc(var(--word-size) * 0.48);
  position: relative;
  display: flex;
  justify-content: center;
  height: calc(var(--word-size) * 1.15);
  margin-bottom: calc(var(--word-size) * -0.52);
  width: 100%;
  overflow: visible;
}

.hero__word {
  position: relative;
  left: auto;
  right: auto;
  top: 0;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font-size: var(--word-size);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.03em;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  color: var(--white);
  will-change: opacity, transform;
  overflow: visible;
}

.hero__word.is-visible,
.hero__word.is-enter {
  opacity: 1;
  transform: none;
}

.hero__word.is-swap {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.hero__word.is-enter {
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.hero__o {
  display: inline-block;
  width: var(--o-size);
  height: var(--o-size);
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.02em;
  transform: translateY(-0.06em);
  flex-shrink: 0;
}

.hero__i {
  position: relative;
  display: inline-block;
  line-height: inherit;
}

.hero__i-dot {
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
}

body.is-ready .hero__brand,
body.is-ready .hero__top {
  animation: riseIn 0.9s var(--ease-out) forwards;
}
body.is-ready .hero__brand { animation-delay: 0.08s; }
body.is-ready .hero__top { animation-delay: 0.2s; }
body.is-ready .hero__word {
  animation: riseIn 0.9s 0.36s var(--ease-out) forwards;
}

@keyframes riseIn {
  to { opacity: 1; transform: none; }
}

.hero__frame {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 32%;
  width: min(1280px, calc(100% - 2rem));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, 0);
  overflow: hidden;
  border-radius: calc(0.5rem * (1 - var(--hero-expand)));
  background: var(--sky);
  will-change: left, top, width, height, border-radius;
}

.hero__mask {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sky);
}

.hero__mask::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(43, 176, 212, 0) 55%, rgba(43, 176, 212, 0.4) 100%);
  pointer-events: none;
}

.hero__mask::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2.5rem;
  z-index: 3;
  background: linear-gradient(180deg, rgba(27, 122, 147, 0.45) 0%, transparent 100%);
  pointer-events: none;
}

.hero__poster,
.hero__video {
  position: absolute;
  border: 0;
}

.hero__poster {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
  background: var(--sky);
  transition: opacity 0.45s var(--ease);
}
.hero__mask.is-playing .hero__poster {
  opacity: 0;
  pointer-events: none;
}

.hero__video {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
  z-index: 1;
  pointer-events: none;
  background: var(--sky);
}

.hero__media-btn {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(43, 176, 212, 0.82);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease);
}
.hero__media-btn:hover {
  background: rgba(43, 176, 212, 0.95);
}
.hero__media-btn-icon {
  width: 0.65rem;
  height: 0.65rem;
  background:
    linear-gradient(var(--gold), var(--gold)) left / 35% 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) right / 35% 100% no-repeat;
}
.hero__media-btn[aria-pressed="true"] .hero__media-btn-icon {
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 2.5vw, 2rem);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.45rem 0;
  background: var(--sky);
  opacity: 0;
  transform: translateY(1.25rem);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    visibility 0.35s;
}

.hero__bar.is-in {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.hero__lede {
  max-width: 38rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* =========================================================
   HERO — Desktop
   ========================================================= */

@media (min-width: 576px) {
  .hero__word { text-align: center; }
  .hero__top { text-align: center; }
  .hero__brand { text-align: center; }
}

@media (min-width: 781px) {
  .hero__pin {
    overflow: visible;
  }

  .hero__bar {
    bottom: 0;
    z-index: 40;
  }
}

@media (min-width: 768px) {
  .hero {
    height: 300vh;
  }
  .hero__inner {
    width: min(1280px, calc(100% - 5rem));
    padding: 1rem 0 0.85rem;
  }
  .hero__bar {
    width: min(1280px, calc(100% - 5rem));
  }
  .hero__frame {
    width: min(1280px, calc(100% - 5rem));
  }
  .hero__word-slot {
    --word-size: clamp(2.6rem, 13cqi, 16.5cqi);
  }
}

/* =========================================================
   HERO — Mobile (≤780px) — Text overlapping video style
   ========================================================= */

@media (max-width: 780px) {
  .hero {
    height: auto;
    padding-bottom: 1.25rem;
    background: var(--sky);
    overflow-x: clip;
  }

  .hero__pin {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
     padding-top: 1.25rem !important;
     padding-inline: 1.25rem !important;
  }

  .hero__pin::before {
    display: none;
  }

  .hero__inner {
    position: relative;
    padding: 0.35rem 0 0;
    height: auto;
    pointer-events: auto;
    width: 100%;
    margin-inline: 0;
    order: 1;
    z-index: 2;
  }

  .hero__brand {
    font-size: 0.95rem !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 0.45rem !important;
    color: var(--white);
    font-weight: 800;
    display: block;
    text-align: center;
    text-shadow: none;
  }

  .hero__top {
    font-size: 1.75rem !important;
    line-height: 1.08 !important;
    font-weight: 600 !important;
    color: var(--white);
    display: block;
    text-align: center;
  }

  .hero__text {
    opacity: 1;
    transform: none;
    position: relative;
    z-index: 2;
    max-width: 100% !important;
    padding: 0;
    text-shadow: none;
    text-align: center;
  }

  .hero__lockup {
    align-items: center;
    text-align: center;
  }

  .hero__word {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: 0 !important;
    display: block !important;
    font-size: var(--word-size) !important;
    white-space: nowrap !important;
    text-align: center;
    line-height: 1.05 !important;
    letter-spacing: -0.04em !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    z-index: 10 !important;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: normal;
  }

  .hero__word-slot {
    --word-size: clamp(1.35rem, 6.6vw, 2.05rem);
    height: auto !important;
    min-height: 0 !important;
    width: 100%;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    margin-bottom: 0.15rem !important;
    display: flex;
    justify-content: center;
  }

  .hero__frame {
  position: relative;
  left: auto;
  top: auto;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 16.5rem;
   margin: -1.25rem 0 0 !important;
  border-radius: 1rem !important;
  order: 2;
  overflow: hidden !important;
  scale: 1 !important;
  background: transparent;
  z-index: 1;
}

  .hero__mask {
    position: relative;
     width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    background: transparent;
    transform: none !important;
  }
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.10) !important;

  z-index: 0;
}

  .hero__video {
    z-index: 1;
    pointer-events: none;
  }

  .hero__mask::before,
  .hero__mask::after {
    display: none;
  }

  .hero__media-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.3rem 0.65rem 0.3rem 0.5rem;
    border-radius: 999px;
    background: rgba(43, 176, 212, 0.75);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: auto;
    transition: background 0.25s var(--ease);
  }

  .hero__media-btn:hover {
    background: rgba(43, 176, 212, 0.9);
  }

  .hero__media-btn-icon {
    width: 0.5rem;
    height: 0.5rem;
  }

  .hero__media-btn[aria-pressed="true"] .hero__media-btn-icon {
    background: var(--gold);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }

  .hero__bar {
    position: relative;
    width: 100%;
    bottom: auto;
    padding: 1.25rem 0;
    background: transparent;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    order: 3;
  }

  .hero__lede {
    max-width: none;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem !important;
    text-align: center;
  }

  .hero__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .hero__actions .btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.92rem !important;
    white-space: nowrap;
  }

  [data-hero-expand] {
    --hero-expand: 0 !important;
    transform: none !important;
  }
  .hero__bar.is-in {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }
}

/* =========================================================
   HERO — Extra Small Mobile (≤400px)
   ========================================================= */

@media (max-width: 400px) {
  .hero__frame {
    margin: -0.5rem 0 0;
    border-radius: 0.75rem;
  }
  .hero__word {
    font-size: var(--word-size) !important;
  }
  .hero__word-slot {
    --word-size: clamp(1.2rem, 6.2vw, 1.75rem);
    min-height: 0 !important;
  }
  .hero__top {
    font-size: 1.5rem !important;
  }
  .hero__brand {
    font-size: 0.88rem !important;
  }
  .hero__lede {
    font-size: 0.9rem !important;
  }
  .hero__media-btn {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem 0.25rem 0.4rem;
    min-height: 1.8rem;
  }
  .hero__actions {
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
  .hero__actions .btn {
    padding: 0.65rem 0.55rem !important;
    font-size: 0.82rem !important;
  }
  .hero__bar {
    padding: 1rem 0;
  }
}

@media (max-width: 520px) {
  .hero__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions {
    flex-direction: row !important;
  }
}

/* =========================================================
   HERO — Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero {
    height: auto;
    --hero-expand: 0;
  }
  .hero__pin {
    position: static;
    height: auto;
  }
  .hero__inner {
    height: auto;
    pointer-events: auto;
  }
  .hero__frame {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
    transform: none;
  }
  .hero__bar {
    position: relative;
    width: min(1280px, calc(100% - 2rem));
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .hero__text {
    opacity: 1;
    transform: none;
  }
  .hero__brand,
  .hero__top,
  .hero__word {
    opacity: 1;
    transform: none;
  }
  .hero__video { display: none; }
}

/* =========================================================
   HERO — END
   ========================================================= */