/* Funnyeye — hero (brand film) · Azulejo Editorial
   Desktop / landscape: the film fills the whole first screen edge to
   edge (no frame); mixed-type title and copy sit over a soft shade at
   the bottom.
   Portrait phones: the 16:9 film runs full-width at the top (so its
   burnt-in copy is never cropped) and the copy sits below on paper. */

.fe-hv {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink-deep);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.fe-hv-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.fe-hv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink-deep);
}

.fe-hv-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 18, 52, 0.35) 0%, rgba(14, 18, 52, 0) 16%),
    linear-gradient(0deg, rgba(14, 18, 52, 0.85) 0%, rgba(14, 18, 52, 0.4) 32%, rgba(14, 18, 52, 0) 58%);
}

.fe-hv-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(2.5rem, 6vh, 4rem);
}

.fe-hv-copy {
  max-width: 46rem;
}

.fe-hv .fe-label {
  color: rgba(242, 239, 230, 0.9);
}

.fe-hv-eyebrow {
  margin-bottom: 1.25rem;
}

.fe-hv-title {
  margin: 0;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  font-weight: 400;
  color: var(--paper);
  text-shadow: 0 2px 30px rgba(14, 18, 52, 0.45);
}

.fe-hv-title .mx-zh-serif,
.fe-hv-title .mx-zh-sans {
  font-size: 0.86em;
}

.fe-hv-title .mx-serif {
  display: block;
  margin-top: 0.12em;
  font-size: 0.55em;
}

.fe-hv-sub {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-family: var(--f-zh-serif);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.2vw, 1.075rem);
  line-height: 1.8;
  color: rgba(242, 239, 230, 0.92);
  text-shadow: 0 1px 12px rgba(14, 18, 52, 0.5);
}

:lang(en) .fe-hv-sub {
  font-family: var(--f-sans);
  font-weight: 400;
}

.fe-hv-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fe-hv .fe-btn-line {
  color: var(--paper);
}

.fe-hv .fe-btn-line--solid {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.fe-hv .fe-btn-line:hover,
.fe-hv .fe-btn-line:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.fe-hv .fe-btn-line--solid:hover,
.fe-hv .fe-btn-line--solid:focus-visible {
  background: transparent;
  color: var(--paper);
}

.fe-hv-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.fe-hv-ctrl {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 230, 0.8);
  background: rgba(14, 18, 52, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.fe-hv-ctrl:hover {
  background: var(--paper);
  color: var(--ink);
}

.fe-hv-ctrl:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

.fe-hv-ctrl svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* ---- Portrait phones / narrow tablets ----
   Film is full-width (no frame) at its native 16:9; copy below. */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px) {
  .fe-hv {
    min-height: 0;
    justify-content: flex-start;
    padding-top: var(--fe-nav-h, 4rem);
    background: var(--paper);
    color: var(--text);
  }

  .fe-hv-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 16 / 9;
  }

  .fe-hv-shade {
    display: none;
  }

  .fe-hv-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.75rem 1rem 2.5rem;
  }

  .fe-hv .fe-label { color: var(--ink); }

  .fe-hv-title {
    color: var(--ink);
    text-shadow: none;
  }

  .fe-hv-sub {
    color: var(--text);
    text-shadow: none;
  }

  .fe-hv .fe-btn-line { color: var(--ink); }

  .fe-hv .fe-btn-line--solid {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }

  .fe-hv .fe-btn-line:hover,
  .fe-hv .fe-btn-line:focus-visible {
    background: var(--ink);
    color: var(--paper);
  }

  .fe-hv-ctas .fe-btn-line {
    flex: 1 1 auto;
  }

  .fe-hv-controls {
    position: absolute;
    right: 0.75rem;
    top: calc(var(--fe-nav-h, 4rem) + 0.75rem);
  }

  .fe-hv-ctrl {
    width: 2.4rem;
    height: 2.4rem;
  }
}

/* Macao Signature stamp — large seal at the bottom-right of the hero,
   just left of the video controls (Comments V4) */
.fe-hv-stamp {
  position: absolute;
  z-index: 3;
  right: calc(clamp(1rem, 5vw, 5rem) + 7.5rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  width: clamp(110px, 11vw, 168px);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
}
.fe-hv-stamp:hover {
  transform: scale(1.05);
}
.fe-hv-stamp img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .fe-hv-stamp {
    top: calc(var(--fe-nav-h, 4rem) + 0.75rem);
    bottom: auto;
    right: 1rem;
    width: 72px;
  }
}
