/*
  Evident ICU Authority Hero
  Canonical reset pass:
  - video must visibly load
  - header remains above hero
  - no 1440p dependency
  - no hard section cliff
  - no circle/ring transition dependency
*/

:where(.site-header, .site-header-shell, header[role="banner"], .global-header) {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.icu-authority-hero {
  position: relative;
  z-index: 0;
  min-height: min(920px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  margin: 0;
  background: #030712;
  color: #f8fafc;
}

.icu-authority-hero__media,
.icu-authority-hero__overlay {
  position: absolute;
  inset: 0;
}

.icu-authority-hero__media {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.36)),
    url("/assets/media/renditions/hero/evident-icu-helicopter-poster.public.jpg") center / cover no-repeat;
}

.icu-authority-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(0.94) contrast(1.06) brightness(0.76);
  transform: scale(1.018);
}

.icu-authority-hero__overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 18, 0.96) 0%,
      rgba(3, 7, 18, 0.78) 43%,
      rgba(3, 7, 18, 0.34) 72%,
      rgba(3, 7, 18, 0.50) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(3, 7, 18, 0.18) 0%,
      rgba(3, 7, 18, 0.26) 40%,
      rgba(3, 7, 18, 0.76) 78%,
      rgba(3, 7, 18, 1) 100%
    );
}

.icu-authority-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: clamp(260px, 30vh, 420px);
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(3, 7, 18, 0) 0%,
      rgba(3, 7, 18, 0.18) 20%,
      rgba(3, 7, 18, 0.48) 45%,
      rgba(3, 7, 18, 0.82) 72%,
      #030712 100%
    );
}

.icu-authority-hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(94px, 13vh, 150px) clamp(190px, 24vh, 300px);
}

.icu-authority-hero__eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #d6ae58;
  font-weight: 800;
}

.icu-authority-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7.6vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.icu-authority-hero__lede {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.65;
  color: #dbeafe;
}

.icu-authority-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.icu-authority-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.icu-authority-hero__button--primary {
  background: #f8fafc;
  color: #020617;
}

.icu-authority-hero__button--secondary {
  border: 1px solid rgba(248, 250, 252, 0.42);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.48);
}

/* Constitutional record panel, always visible */
.icu-preamble-panel {
  display: block;
  max-width: 760px;
  margin-top: 30px;
  border: 1px solid rgba(214, 174, 88, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.88));
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.icu-preamble-panel__header {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
}

.icu-preamble-panel__header p,
.icu-preamble-panel__header h2 {
  margin: 0;
}

.icu-preamble-panel__kicker {
  display: block;
  color: #d6ae58;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.icu-preamble-panel__title {
  display: block;
  color: #f8fafc;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.icu-preamble-panel__dek {
  display: block;
  max-width: 640px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.icu-preamble-panel__body {
  display: block;
  border-top: 1px solid rgba(214, 174, 88, 0.20);
  padding: 0 20px 20px;
}

.icu-preamble-panel__context {
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 0.96rem;
  line-height: 1.68;
}

.icu-preamble-panel__quote {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 3px solid rgba(214, 174, 88, 0.72);
  color: #f8fafc;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  font-weight: 600;
  line-height: 1.74;
}

/*
  Seam repair:
  Pull the first real section upward under the hero fade, then let it resolve.
  This removes the “sharp cliff” without requiring knowledge of the next section class.
*/
.icu-authority-hero + * {
  position: relative;
  z-index: 1;
  margin-top: clamp(-160px, -14vh, -88px);
  padding-top: clamp(150px, 18vh, 240px);
  background:
    linear-gradient(
      to bottom,
      rgba(3, 7, 18, 0) 0%,
      rgba(3, 7, 18, 0.82) 95px,
      #030712 190px,
      #070b16 100%
    );
}

.icu-authority-hero + *::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: clamp(160px, 20vh, 280px);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(214, 174, 88, 0.08),
      rgba(214, 174, 88, 0.025) 34%,
      rgba(3, 7, 18, 0) 70%
    ),
    linear-gradient(
      to bottom,
      rgba(3, 7, 18, 0.74),
      rgba(3, 7, 18, 0)
    );
}

.icu-authority-hero + * > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .icu-authority-hero {
    min-height: calc(96svh - 56px);
  }

  .icu-authority-hero__content {
    width: min(100% - 28px, 680px);
    padding-block: 82px 210px;
  }

  .icu-authority-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.65rem);
    letter-spacing: -0.055em;
  }

  .icu-authority-hero__lede {
    font-size: 1rem;
  }

  .icu-preamble-panel {
    max-width: 100%;
  }

  .icu-preamble-panel__header,
  .icu-preamble-panel__body {
    padding-inline: 16px;
  }

  .icu-authority-hero + * {
    margin-top: -88px;
    padding-top: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icu-authority-hero__video {
    transform: none;
  }
}

/* === RESPONSIVE HERO CARD PLACEMENT RESET START === */

/*
  Hero composition doctrine:
  Desktop: headline + CTA on left, Constitutional Record card on right.
  Tablet: stacked, centered, readable.
  Mobile: single-column, no clipped civic record, no disappearing CTAs.
*/

@media (min-width: 1180px) {
  .icu-authority-hero {
    min-height: min(920px, calc(100svh - 72px));
  }

  .icu-authority-hero__content {
    width: min(1240px, calc(100% - 64px));
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
    column-gap: clamp(42px, 5vw, 86px);
    align-items: center;
    padding-block: clamp(78px, 10vh, 126px) clamp(170px, 20vh, 260px);
  }

  .icu-authority-hero__eyebrow,
  .icu-authority-hero h1,
  .icu-authority-hero__lede,
  .icu-authority-hero__actions {
    grid-column: 1;
  }

  .icu-authority-hero h1 {
    max-width: 760px;
    font-size: clamp(4.4rem, 6vw, 6.9rem);
  }

  .icu-authority-hero__lede {
    max-width: 640px;
  }

  .icu-preamble-panel {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    justify-self: end;
    width: min(100%, 460px);
    margin-top: clamp(44px, 8vh, 86px);
  }

  .icu-preamble-panel__header {
    padding: 18px 20px 16px;
  }

  .icu-preamble-panel__body {
    padding: 0 20px 20px;
  }

  .icu-preamble-panel__context {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .icu-preamble-panel__quote {
    font-size: 0.95rem;
    line-height: 1.62;
  }
}

@media (min-width: 769px) and (max-width: 1179px) {
  .icu-authority-hero {
    min-height: auto;
  }

  .icu-authority-hero__content {
    width: min(820px, calc(100% - 48px));
    display: block;
    padding-block: clamp(86px, 11vh, 128px) clamp(160px, 20vh, 230px);
  }

  .icu-authority-hero h1 {
    max-width: 760px;
    font-size: clamp(3.75rem, 9vw, 5.8rem);
  }

  .icu-authority-hero__lede {
    max-width: 680px;
  }

  .icu-preamble-panel {
    width: min(100%, 720px);
    margin-top: 30px;
  }

  .icu-preamble-panel__quote {
    font-size: 1rem;
    line-height: 1.68;
  }
}

@media (max-width: 768px) {
  .icu-authority-hero {
    min-height: auto;
  }

  .icu-authority-hero__content {
    width: min(100% - 28px, 680px);
    display: block;
    padding-block: 74px 170px;
  }

  .icu-authority-hero__eyebrow {
    margin-bottom: 14px;
    font-size: 0.68rem;
  }

  .icu-authority-hero h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 14vw, 4.35rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
  }

  .icu-authority-hero__lede {
    max-width: 100%;
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .icu-authority-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .icu-authority-hero__button {
    width: 100%;
    min-height: 48px;
  }

  .icu-preamble-panel {
    width: 100%;
    margin-top: 24px;
    border-radius: 14px;
  }

  .icu-preamble-panel__header {
    padding: 16px 16px 14px;
  }

  .icu-preamble-panel__body {
    padding: 0 16px 18px;
  }

  .icu-preamble-panel__kicker {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .icu-preamble-panel__title {
    font-size: 1.24rem;
  }

  .icu-preamble-panel__dek,
  .icu-preamble-panel__context {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .icu-preamble-panel__quote {
    padding-left: 14px;
    font-size: 0.94rem;
    line-height: 1.58;
  }
}

/* Softer first-section receiving space after hero */
.icu-authority-hero + * {
  margin-top: clamp(-140px, -12vh, -72px);
  padding-top: clamp(135px, 17vh, 220px);
}

/* === RESPONSIVE HERO CARD PLACEMENT RESET END === */

/* =========================================================
   Hero authority badge
   Replaces floating “We the People” eyebrow so the Preamble
   remains reserved for the Constitutional Record panel.
   ========================================================= */

.icu-authority-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(214, 174, 88, 0.42);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.icu-authority-hero__shield {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  place-items: center;
  gap: 1px;
  min-width: 34px;
  min-height: 28px;
  padding: 5px 6px;
  border-radius: 9px 9px 12px 12px;
  background:
    linear-gradient(180deg, rgba(214, 174, 88, 0.96), rgba(139, 92, 24, 0.92));
  color: #07111f;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}

.icu-authority-hero__star {
  font-size: 0.58rem;
  line-height: 1;
}

.icu-authority-hero__badge-text {
  color: #e7d7b5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.icu-authority-hero__eyebrow {
  display: none;
}

@media (max-width: 768px) {
  .icu-authority-hero__badge {
    margin-bottom: 15px;
  }

  .icu-authority-hero__badge-text {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .icu-authority-hero__shield {
    min-width: 30px;
    min-height: 25px;
  }
}
