/* Premium hero for the webinar registration page (owner, 2026-11-07).
   Applies only once webinar-hero.js adds .gh-hero to Codex's .w-event-hero. */
.w-event-hero.gh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  margin: 18px 0 30px; padding: clamp(28px, 4.4vw, 60px);
  border-radius: 30px; color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(212, 36, 47, .34), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(212, 36, 47, .16), transparent 65%),
    linear-gradient(160deg, #1b1d24 0%, #111318 55%, #0b0c10 100%);
  box-shadow: 0 40px 80px -40px rgba(11, 12, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* A faint grid gives the dark surface depth without moving. */
.w-event-hero.gh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(90% 90% at 30% 40%, #000 30%, transparent 75%);
}

.gh-hero .w-tag {
  background: rgba(255, 255, 255, .08) !important; color: rgba(255, 255, 255, .9) !important;
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}

/* Headline */
.gh-hero h1, .gh-hero .gh-rotator {
  max-width: none;
  font-size: clamp(40px, 4.9vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
}
.gh-hero h1 { margin: 22px 0 0; color: #fff; }
.gh-hero .gh-rotator { margin: 0 0 22px; }
.gh-hero .gh-static { display: block; }
.gh-hero .gh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gh-hero .gh-rotator { display: grid; color: #ff4d57; }
.gh-hero .gh-phrase { grid-area: 1 / 1; visibility: hidden; }
.gh-hero .gh-phrase.is-on, .gh-hero .gh-phrase.is-off { visibility: visible; }
.gh-hero .gh-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.gh-hero .gh-w > span { display: inline-block; transform: translateY(105%); filter: blur(8px); opacity: 0; }
.gh-hero .gh-phrase.is-on .gh-w > span {
  transform: none; filter: none; opacity: 1;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .7s ease, opacity .5s ease;
  transition-delay: calc(var(--i) * 70ms + 120ms);
}
.gh-hero .gh-phrase.is-off .gh-w > span {
  transform: translateY(-80%); filter: blur(8px); opacity: 0;
  transition: transform .55s cubic-bezier(.7, 0, .84, 0), filter .45s ease, opacity .45s ease;
  transition-delay: calc(var(--i) * 40ms);
}
/* Before the script runs (and if it never does), the heading still reads well. */
.gh-hero h1 .w-high-ticket { color: #ff4d57; }

.gh-hero .w-event-name { color: rgba(255, 255, 255, .62); font-size: 14px; margin: 0 0 10px; }
.gh-hero .w-event-name strong { color: #fff; }
.gh-hero .w-registration-intro { color: rgba(255, 255, 255, .74) !important; font-size: clamp(15px, 1.3vw, 17px) !important; max-width: 56ch; }

/* Call to action */
.gh-hero .gh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.gh-hero .gh-cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, #e0303b, #b91f28); color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 18px 36px -14px rgba(224, 48, 59, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gh-hero .gh-cta span { transition: transform .2s ease; }
.gh-hero .gh-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -14px rgba(224, 48, 59, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.gh-hero .gh-cta:hover span { transform: translateX(4px); }
.gh-hero .gh-cta:focus-visible { outline: 3px solid rgba(255, 77, 87, .55); outline-offset: 3px; }
.gh-hero .gh-cta-note { font-size: 13px; color: rgba(255, 255, 255, .58); }

/* Proof strip */
.gh-hero .gh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.gh-hero .gh-stats div { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.gh-hero .gh-stats div:first-child { padding-left: 0; border-left: 0; }
.gh-hero .gh-stats dt { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #fff; }
.gh-hero .gh-stats dd { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .6); }

/* Photo */
.gh-hero .w-registration-photo { position: relative; margin: 0; height: 100%; min-height: 420px; max-height: none; }
.gh-hero .w-registration-photo img {
  height: 100%; min-height: 420px; max-height: none; border-radius: 22px; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.gh-hero .w-registration-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(200deg, transparent 55%, rgba(11, 12, 16, .55));
}
.gh-hero .gh-badge {
  position: absolute; z-index: 1; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  background: rgba(17, 19, 24, .72); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 750; color: #fff;
}
.gh-hero .gh-badge i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d57; box-shadow: 0 0 0 4px rgba(255, 77, 87, .22); }

@media (max-width: 980px) {
  .w-event-hero.gh-hero { grid-template-columns: minmax(0, 1fr); }
  .gh-hero .w-registration-photo, .gh-hero .w-registration-photo img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .gh-hero .w-registration-photo { order: -1; }
}
@media (max-width: 560px) {
  .w-event-hero.gh-hero { padding: 22px 18px 26px; border-radius: 22px; margin-top: 10px; }
  .gh-hero h1, .gh-hero .gh-rotator { font-size: clamp(34px, 10vw, 44px); }
  .gh-hero h1 { margin-top: 16px; }
  .gh-hero .gh-rotator { margin-bottom: 16px; }
  .gh-hero .gh-cta { width: 100%; justify-content: center; }
  .gh-hero .gh-stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gh-hero .gh-stats div { padding: 0; border-left: 0; display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .gh-hero .gh-stats dt { font-size: 24px; white-space: nowrap; }
  .gh-hero .gh-stats dd { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-hero .gh-w > span, .gh-hero .gh-phrase.is-on .gh-w > span { transform: none; filter: none; opacity: 1; transition: none; }
  .gh-hero .gh-cta, .gh-hero .gh-cta span { transition: none; }
}
