/* ============================================================
   Homepage cinematic hero — full-bleed video overlay
   Scoped to .hero--cinematic only
   ============================================================ */

.hero.hero--cinematic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(680px, 100vh, 960px);
  padding: 0;
  background: #061426;
  border-radius: 0;
}

/* ---- Full-bleed video ---- */
.hero--cinematic__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero--cinematic__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--cinematic.is-ready .hero--cinematic__video {
  opacity: 1;
}

/* ---- Edge gradients (center stays clear) ---- */
.hero--cinematic__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero--cinematic__gradient--left {
  background: linear-gradient(
    90deg,
    rgba(6, 20, 38, 0.94) 0%,
    rgba(6, 20, 38, 0.78) 18%,
    rgba(11, 31, 58, 0.42) 38%,
    rgba(11, 31, 58, 0.08) 52%,
    transparent 68%
  );
}

.hero--cinematic__gradient--right {
  background: linear-gradient(
    270deg,
    rgba(6, 20, 38, 0.92) 0%,
    rgba(11, 31, 58, 0.72) 16%,
    rgba(11, 31, 58, 0.35) 34%,
    rgba(11, 31, 58, 0.06) 50%,
    transparent 66%
  );
}

.hero--cinematic__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 20%, transparent 78%);
}

/* ---- Overlay stage ---- */
.hero--cinematic__stage {
  position: relative;
  z-index: 3;
  min-height: inherit;
}

.hero--cinematic__container {
  position: relative;
  min-height: clamp(680px, 100vh, 960px);
  padding: clamp(104px, 12vh, 136px) 0 clamp(72px, 8vh, 92px);
}

/* ---- Upper-left content ---- */
.hero--cinematic__content {
  position: relative;
  z-index: 2;
  max-width: min(520px, 46vw);
}

.hero--cinematic__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 161, 27, 0.88);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.hero--cinematic__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

.hero--cinematic__title .hl {
  color: #f2a11b;
  background: linear-gradient(120deg, #ffc46b, #f2a11b 55%, #ff9e3d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero--cinematic__lede {
  margin: 0 0 16px;
  max-width: 36ch;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: rgba(244, 247, 251, 0.72);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

.hero--cinematic__ctas {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.42s,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.42s;
}

.hero--cinematic__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.hero--cinematic__btn--ghost:hover,
.hero--cinematic__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 161, 27, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

.hero--cinematic__ctas .btn-primary {
  background: linear-gradient(120deg, #ffc46b 0%, #f2a11b 52%, #e89410 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(242, 161, 27, 0.28);
}

.hero--cinematic__ctas .btn-primary:hover,
.hero--cinematic__ctas .btn-primary:focus-visible {
  background: linear-gradient(120deg, #ffd88a 0%, #f2a11b 48%, #ff9e3d 100%);
  color: #061426;
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 161, 27, 0.36);
}

/* ---- Right-side floating cards ---- */
.hero--cinematic__cards {
    position: absolute;
    right: 0;
    left: auto;
    bottom: 19%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: min(260px, 26vw);
}

.hero--cinematic__float {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 26, 51, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--cinematic__float-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(242, 161, 27, 0.14);
  border: 1px solid rgba(242, 161, 27, 0.32);
  color: #f2a11b;
}

.hero--cinematic__float-icon .ico {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.hero--cinematic__float-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.hero--cinematic__float-body p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(244, 247, 251, 0.65);
}

.hero--cinematic.is-ready .hero--cinematic__float--ai {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.52s;
  animation: heroCinematicFloat 5.8s ease-in-out infinite;
}

.hero--cinematic.is-ready .hero--cinematic__float--exec {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.62s;
  animation: heroCinematicFloat 6.4s ease-in-out infinite 0.35s;
}

.hero--cinematic.is-ready .hero--cinematic__float--geo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.72s;
  animation: heroCinematicFloat 6.8s ease-in-out infinite 0.7s;
}

@keyframes heroCinematicFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---- Bottom information bar ---- */
.hero--cinematic__bar {
  position: absolute;
  left: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
  right: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
  bottom: clamp(12px, 2vh, 22px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
}

.hero--cinematic__years {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.65s ease 0.72s,
    transform 0.65s ease 0.72s;
}

.hero--cinematic__years-num {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  color: #f2a11b;
  line-height: 1.1;
}

.hero--cinematic__years-label {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(244, 247, 251, 0.58);
  max-width: 16ch;
}

/* ---- Bottom-bar metrics (horizontal) ---- */
.hero--cinematic__metrics {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  max-width: min(620px, 58vw);
  margin-left: auto;
  text-align: left;
}

.hero--cinematic__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: clamp(16px, 2vw, 28px);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--cinematic__metric:first-child {
  padding-left: 0;
}

.hero--cinematic__metric-num {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  color: #f2a11b;
}

.hero--cinematic__metric-title {
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.hero--cinematic__metric-desc {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(244, 247, 251, 0.52);
  max-width: 18ch;
}

.hero--cinematic.is-ready .hero--cinematic__metric:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.58s;
}

.hero--cinematic.is-ready .hero--cinematic__metric:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.68s;
}

.hero--cinematic.is-ready .hero--cinematic__metric:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.78s;
}

/* ---- Bottom divider (above info bar) ---- */
.hero--cinematic__divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 98px;
    height: 1px;
    background: linear-gradient(to left, #ffff, transparent, #ffff, transparent);
    opacity: 0;
    transition: opacity 0.8s ease 0.88s;
}

/* ---- Reveal state ---- */
.hero--cinematic.is-ready .hero--cinematic__eyebrow,
.hero--cinematic.is-ready .hero--cinematic__title,
.hero--cinematic.is-ready .hero--cinematic__lede,
.hero--cinematic.is-ready .hero--cinematic__ctas,
.hero--cinematic.is-ready .hero--cinematic__years,
.hero--cinematic.is-ready .hero--cinematic__divider {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero--cinematic__video,
  .hero--cinematic__eyebrow,
  .hero--cinematic__title,
  .hero--cinematic__lede,
  .hero--cinematic__ctas,
  .hero--cinematic__float,
  .hero--cinematic__years,
  .hero--cinematic__metric,
  .hero--cinematic__divider {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }
}
