/* Mikey English — cinematic hero. Plain CSS, all classes prefixed mh-. */
:root {
  --mh-paper: #F6F1E7;
  --mh-paper-warm: #EFE8D8;
  --mh-ink: #0F1B3A;
  --mh-ink-deep: #081127;
  --mh-ink-soft: #2F3A56;
  --mh-rule: #C9C0A8;
  --mh-irish: #1D5A3A;
  --mh-rugby: #0B3B7A;
  --mh-gold: #B98837;
  --mh-gold-bright: #E0B66A;
  --mh-rosette: #B0314B;
  --mh-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mh-text: 'Source Serif 4', Georgia, serif;
  --mh-ease: cubic-bezier(.2, .8, .2, 1);
  --mh-header-h: 60px;
}

/* ---------- Site header over the hero (scoped: only on a page that contains .mh-hero) ---------- */
body:has(.mh-hero) .site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30; max-width: none; margin: 0;
  padding: 16px var(--gutter) 40px; align-items: center; gap: 8px 32px;
  background: linear-gradient(to bottom, rgba(8,17,39,.82), rgba(8,17,39,.45) 60%, rgba(8,17,39,0));
}
body:has(.mh-hero) .site-head .wordmark { color: var(--mh-paper); font-size: clamp(24px, 3vw, 36px); }
body:has(.mh-hero) .site-head .pronounce { color: rgba(246,241,231,.86); }
body:has(.mh-hero) .site-head a { color: var(--mh-paper); }
body:has(.mh-hero) .site-head .site-nav a.nav-media { color: var(--mh-gold-bright); }
body:has(.mh-hero) .site-head .site-nav a:hover { color: #fff; border-bottom-color: var(--mh-gold-bright); }
body:has(.mh-hero) .site-head a:focus-visible { outline: 2px solid var(--mh-gold-bright); outline-offset: 3px; border-radius: 2px; }
body:has(.mh-hero) .mh-hero { --mh-header-h: 96px; }
body:has(.mh-hero) .site-head { pointer-events: none; }
body:has(.mh-hero) .site-head a { pointer-events: auto; }
@media (max-width: 899px) {
  body:has(.mh-hero) .site-head { padding: 12px var(--gutter) 22px; gap: 4px 16px; }
  body:has(.mh-hero) .site-head .site-nav { gap: 2px 18px; }
  body:has(.mh-hero) .site-head .site-nav a { font-size: 15px; padding: 3px 0; }
  body:has(.mh-hero) .mh-hero { --mh-header-h: 96px; }
}

/* ---------- Existing World Championship section, now below the hero (#worlds) ---------- */
#worlds { scroll-margin-top: 0; }
.hero h2.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 22px; text-wrap: balance;
}

/* ---------- Hero ---------- */
.mh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--mh-ink-deep); color: var(--mh-paper);
  font-family: var(--mh-text);
}
.mh-hero *, .mh-hero *::before, .mh-hero *::after { box-sizing: border-box; }

.mh-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.mh-hero__bg img, .mh-hero__bg video {
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover;
  filter: blur(42px) saturate(1.35) brightness(.6) sepia(.15);
  transform: scale(1.08);
}
.mh-hero__bg video { display: none; opacity: 0; transition: opacity 1.2s var(--mh-ease); }
.mh-hero__bg video.mh-is-ready { opacity: 1; }
.mh-hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(185,136,55,.22), transparent 70%),
    linear-gradient(100deg, rgba(8,17,39,.94) 0%, rgba(15,27,58,.72) 45%, rgba(8,17,39,.55) 100%),
    linear-gradient(to top, rgba(8,17,39,1) 0%, rgba(8,17,39,0) 30%);
}
.mh-hero__shade::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Copy */
.mh-copy { position: relative; z-index: 3; }
.mh-kicker {
  margin: 0 0 14px; font-family: var(--mh-text); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mh-gold-bright);
  display: flex; align-items: center; gap: 10px;
}
.mh-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.mh-title { margin: 0; font-family: var(--mh-display); font-weight: 800; line-height: .92; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 30; }
.mh-title__main { display: block; font-size: clamp(2.9rem, 13vw, 4.4rem); }
.mh-title__num { font-style: italic; font-weight: 700; color: var(--mh-gold-bright); }
.mh-title__sub {
  display: block; margin-top: 14px; font-weight: 500; font-style: italic;
  font-size: clamp(1.1rem, 4.8vw, 1.45rem); line-height: 1.15; letter-spacing: -.01em; color: var(--mh-paper);
}
.mh-title__sub::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; vertical-align: .05em;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9566f, var(--mh-rosette) 60%);
  box-shadow: 0 0 0 2px rgba(224,182,106,.75);
}
.mh-support { margin: 14px 0 0; font-size: .92rem; line-height: 1.45; color: rgba(246,241,231,.86); max-width: 34em; }
.mh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mh-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font-family: var(--mh-text); font-size: .9rem; font-weight: 600; text-decoration: none;
  border-radius: 999px; transition: transform .25s var(--mh-ease), background-color .25s, color .25s, border-color .25s;
}
.mh-btn svg { width: 14px; height: 14px; flex: none; }
.mh-btn--primary { background: var(--mh-gold); color: var(--mh-ink-deep); border: 1px solid var(--mh-gold); }
.mh-btn--primary:hover { background: var(--mh-gold-bright); border-color: var(--mh-gold-bright); transform: translateY(-2px); }
.mh-btn--ghost { color: var(--mh-paper); border: 1px solid rgba(246,241,231,.45); background: rgba(8,17,39,.25); }
.mh-btn--ghost:hover { border-color: var(--mh-paper); transform: translateY(-2px); }
.mh-hero :focus-visible { outline: 2px solid var(--mh-gold-bright); outline-offset: 3px; }

/* Stage + reel */
.mh-stage { position: relative; margin: 0; }
.mh-reel { position: absolute; inset: 0; overflow: hidden; background: var(--mh-ink); }
.mh-reel__video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.mh-reel__label {
  position: absolute; left: 14px; z-index: 4; display: flex; flex-direction: column; gap: 2px;
  pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.mh-reel__tag {
  align-self: flex-start; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mh-ink-deep); background: var(--mh-gold-bright); padding: 4px 8px 3px; border-radius: 3px; text-shadow: none;
}
.mh-reel__watch { font-family: var(--mh-display); font-style: italic; font-weight: 500; font-size: .98rem; color: var(--mh-paper); }

.mh-sound {
  position: absolute; right: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 10px;
  font: 600 .8rem/1 var(--mh-text); color: var(--mh-paper);
  background: rgba(8,17,39,.62); border: 1px solid rgba(246,241,231,.35); border-radius: 999px; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .25s, border-color .25s, transform .25s var(--mh-ease);
}
.mh-sound:hover { transform: scale(1.04); border-color: var(--mh-gold-bright); }
.mh-sound svg { width: 18px; height: 18px; flex: none; }
.mh-sound__on { display: none; }
.mh-sound[aria-pressed="true"] { background: var(--mh-gold); color: var(--mh-ink-deep); border-color: var(--mh-gold); }
.mh-sound[aria-pressed="true"] .mh-sound__on { display: inline; }
.mh-sound[aria-pressed="true"] .mh-sound__off { display: none; }
.mh-sound__ring { position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--mh-gold-bright); animation: mh-ring 2.2s var(--mh-ease) infinite; pointer-events: none; }
.mh-sound[aria-pressed="true"] .mh-sound__ring { display: none; }

.mh-play {
  position: absolute; z-index: 5; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--mh-paper); background: rgba(8,17,39,.55); border: 1px solid rgba(246,241,231,.3); border-radius: 50%; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mh-play svg { width: 16px; height: 16px; }
.mh-play .mh-icon-play { display: none; }
.mh-hero.mh-is-paused .mh-play .mh-icon-play { display: block; }
.mh-hero.mh-is-paused .mh-play .mh-icon-pause { display: none; }

.mh-bigplay {
  position: absolute; left: 50%; top: 42%; z-index: 4; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: rgba(8,17,39,.5); border: 1px solid rgba(246,241,231,.5); color: var(--mh-paper);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--mh-ease);
}
.mh-bigplay svg { width: 28px; height: 28px; margin-left: 4px; }
.mh-hero.mh-is-paused .mh-bigplay { opacity: 1; transform: scale(1); }

.mh-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: rgba(246,241,231,.18); }
.mh-progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--mh-gold), var(--mh-gold-bright)); transform-origin: left; transform: scaleX(0); }

/* Scroll cue */
.mh-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(246,241,231,.85); text-decoration: none;
  font: italic 500 .9rem/1 var(--mh-display); letter-spacing: .02em;
}
.mh-scroll__line { position: relative; width: 1px; height: 34px; background: rgba(246,241,231,.25); overflow: hidden; }
.mh-scroll__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--mh-gold-bright); animation: mh-drip 1.8s var(--mh-ease) infinite; }
.mh-scroll:hover { color: var(--mh-paper); }

/* ---------- Phone first ---------- */
.mh-hero__inner { position: relative; }
.mh-stage { height: 82svh; min-height: 520px; width: 100%; }
.mh-reel { border-radius: 0 0 26px 26px; }
.mh-reel__label, .mh-sound { top: calc(var(--mh-header-h) + 34px); }
.mh-play { left: 14px; bottom: 14px; display: none; }
.mh-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 20px 26px;
  background: linear-gradient(to top, rgba(8,17,39,.97) 0%, rgba(8,17,39,.88) 45%, rgba(8,17,39,0) 100%);
  border-radius: 0 0 26px 26px; pointer-events: none;
}
.mh-copy a { pointer-events: auto; }
.mh-hero__foot { display: flex; justify-content: center; padding: 18px 0 22px; }

@media (max-width: 380px) {
  .mh-copy { padding: 100px 16px 20px; }
  .mh-btn { font-size: .82rem; padding: 9px 14px; }
  .mh-support { font-size: .85rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .mh-hero { min-height: 100svh; display: flex; flex-direction: column; }
  .mh-hero__bg video { display: block; }
  .mh-hero__inner {
    flex: 1; width: 100%; max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: clamp(48px, 6vw, 110px); padding: 120px clamp(32px, 5vw, 72px) 40px;
  }
  .mh-copy { position: relative; padding: 0; background: none; border-radius: 0; pointer-events: auto; }
  .mh-kicker { font-size: .8rem; margin-bottom: 26px; }
  .mh-title__main { font-size: clamp(4.4rem, 8vw, 8.2rem); }
  .mh-title__sub { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-top: 22px; }
  .mh-support { font-size: 1.05rem; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(201,192,168,.3); }
  .mh-actions { margin-top: 30px; gap: 14px; }
  .mh-btn { font-size: .95rem; padding: 12px 22px; }

  .mh-stage {
    height: auto; min-height: 0;
    width: min(440px, calc((100svh - 190px) * .5625)); aspect-ratio: 9 / 16;
    transform: rotate(2.2deg); margin-right: 18px;
  }
  .mh-stage::before, .mh-stage::after { content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; }
  .mh-stage::before { border: 1px solid var(--mh-gold); transform: translate(-22px, 18px) rotate(-4.5deg); opacity: .7; }
  .mh-stage::after { background: rgba(246,241,231,.06); border: 1px solid rgba(246,241,231,.14); transform: translate(18px, -14px) rotate(3deg); z-index: -1; }
  .mh-reel {
    border-radius: 22px; z-index: 1;
    box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(246,241,231,.12), 0 0 80px -10px rgba(185,136,55,.35);
  }
  .mh-reel__label, .mh-sound { top: 16px; }
  .mh-play { display: grid; }
  .mh-hero__foot { padding: 0 0 26px; }
}

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .mh-copy > * { opacity: 0; animation: mh-rise .9s var(--mh-ease) forwards; }
  .mh-copy > :nth-child(1) { animation-delay: .25s; }
  .mh-copy > :nth-child(2) { animation-delay: .4s; }
  .mh-copy > :nth-child(3) { animation-delay: .6s; }
  .mh-copy > :nth-child(4) { animation-delay: .75s; }
  .mh-reel { animation: mh-reveal 1.1s var(--mh-ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-sound__ring, .mh-scroll__line::after { animation: none; }
  .mh-btn, .mh-sound { transition: none; }
}
@keyframes mh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mh-reveal { from { clip-path: inset(100% 0 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes mh-ring { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.25, 1.6); } }
@keyframes mh-drip { to { top: 100%; } }

/* ---------- C-549 port additions ---------- */
/* soft scrim so the reel labels stay readable over a bright sky */
.mh-reel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,17,39,.55), rgba(8,17,39,0));
}
/* tablets: the reel is a 9:16 video, keep it from being stretched wide and soft */
@media (min-width: 600px) and (max-width: 899px) {
  .mh-hero__inner { max-width: 520px; margin: 0 auto; }
}

/* ---------- C-549 mobile fix (Mike 14 Nov: nothing may cover the reel on a phone) ----------
   Below 900px: header sits ABOVE the reel on its own dark band, the reel is shown clean and whole,
   and all the words go UNDER it. Only a small sound button stays on the video. */
@media (max-width: 899px) {
  body:has(.mh-hero) .site-head {
    position: relative; background: #081127; padding: 10px var(--gutter) 10px; pointer-events: auto;
  }
  .mh-hero__inner { display: flex; flex-direction: column; }
  .mh-stage { order: 1; height: auto; min-height: 0; width: 100%; aspect-ratio: 9 / 16; max-height: 86svh; }
  .mh-reel { border-radius: 0; }
  .mh-reel::before { display: none; }
  .mh-reel__label { display: none; }
  .mh-reel__video { object-fit: cover; object-position: center; }
  .mh-sound {
    top: auto; bottom: 14px; right: 12px; padding: 8px 12px; font-size: .78rem;
    background: rgba(8,17,39,.55);
  }
  .mh-copy {
    order: 2; position: relative; left: auto; right: auto; bottom: auto;
    padding: 22px 20px 6px; background: none; border-radius: 0; pointer-events: auto;
  }
}
@media (max-width: 380px) { .mh-copy { padding: 18px 16px 4px; } }

/* ---------- C-549 phone polish (Mike 14 Nov: "people only look at these on phone") ---------- */
@media (max-width: 899px) {
  body:has(.mh-hero) .site-head { padding: 8px var(--gutter) 6px; gap: 2px 12px; }
  body:has(.mh-hero) .site-head .wordmark { font-size: 22px; }
  body:has(.mh-hero) .site-head .pronounce { font-size: 12px; }
  body:has(.mh-hero) .site-head .site-nav {
    flex-wrap: nowrap; width: 100%; overflow-x: auto; gap: 0 18px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; white-space: nowrap;
  }
  body:has(.mh-hero) .site-head .site-nav::-webkit-scrollbar { display: none; }
  body:has(.mh-hero) .site-head .site-nav a { font-size: 14px; padding: 4px 0; flex: 0 0 auto; }
  /* the chat bubble stays off the reel while the reel is on screen */
  body.mh-reel-on-screen .asf-launcher, body.mh-reel-on-screen #impt-wa-bubble { opacity: 0 !important; pointer-events: none !important; transition: opacity .25s; }
}

/* ---------- C-549: one play button only (Mike 14 Nov: "two play buttons on the phone") ----------
   iPhones that block autoplay (Low Power Mode) draw their own play button on the video; ours was drawn too. */
.mh-reel__video::-webkit-media-controls,
.mh-reel__video::-webkit-media-controls-panel,
.mh-reel__video::-webkit-media-controls-start-playback-button,
.mh-reel__video::-webkit-media-controls-overlay-play-button {
  display: none !important; -webkit-appearance: none !important; opacity: 0 !important; pointer-events: none !important;
}
.mh-bigplay { pointer-events: none; }
