/* Full-width film, clear centre and soft atmospheric edges. */
.mist-home .hero--brand.has-hero-video{isolation:isolate;overflow:hidden;background:#111315;height:clamp(640px,56.25vw,920px);min-height:640px;max-height:none}
.mist-home .has-hero-video .hero-image{opacity:1}
.mist-home .has-hero-video .hero-shade,.mist-home .has-hero-video .hero-bottom,.mist-home .has-hero-video .brand-poster{display:none}
.hero-video-block{position:absolute;inset:0;z-index:1;min-width:0}
.hero-video-surface{position:absolute;inset:0;overflow:hidden;background:#111315}
.hero-video-block.has-error .hero-video-surface{background:transparent}
.hero-film{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.78) contrast(1.04);pointer-events:none}
.hero-film[hidden]{display:none}
.hero-film-fog-left,.hero-film-fog-right,.hero-film-vignette{position:absolute;inset-block:0;pointer-events:none}
.hero-film-fog-left{left:0;width:58%;background:linear-gradient(90deg,#101214f5 0%,#14171bd9 27%,#171b2073 60%,transparent 100%);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);mask-image:linear-gradient(90deg,#000 0%,#000d 28%,#0006 65%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000d 28%,#0006 65%,transparent 100%)}
.hero-film-fog-right{right:0;width:26%;background:linear-gradient(270deg,#111315ed 0%,#181b1f88 36%,transparent 100%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);mask-image:linear-gradient(270deg,#000 0%,#000b 24%,transparent 100%);-webkit-mask-image:linear-gradient(270deg,#000 0%,#000b 24%,transparent 100%)}
.hero-film-vignette{inset:0;background:linear-gradient(180deg,#101214b8 0%,transparent 27%,transparent 53%,#10121444 70%,#101214ed 100%)}
.mist-home .has-hero-video::after{content:'';position:absolute;z-index:2;left:var(--v3-gutter);top:calc(var(--header-height) + 45px);height:1px;width:70px;background:#F45124;box-shadow:76px 0 0 #f4512440;pointer-events:none}
.mist-home .has-hero-video .hero-inner{position:absolute;z-index:3;top:50%;left:var(--v3-gutter);transform:translateY(-43%);width:min(48%,680px);max-width:none;margin:0;padding:0;pointer-events:none}
.mist-home .has-hero-video .hero-inner a{pointer-events:auto}
.mist-home .has-hero-video .hero-inner>.eyebrow{display:inline-flex;background:#f45124;color:#111315;padding:7px 10px;margin:0 0 22px;font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.2em;transform:skew(-5deg)}
.mist-home .has-hero-video h2{font-size:clamp(38px,4.3vw,72px);font-weight:800;line-height:1.27;letter-spacing:-.045em;margin:0;text-shadow:0 3px 28px #0005}
.mist-home .has-hero-video .hero-description{font-size:clamp(14px,1.35vw,18px);line-height:1.8;letter-spacing:.16em;margin-top:26px;color:#e0e2de}
.mist-home .has-hero-video .hero-actions{margin-top:30px}
.mist-home .has-hero-video .hero-actions .button-light{background:#14171b80;border-color:#ffffff59;border-left:2px solid #f45124;backdrop-filter:blur(7px)}
.hero-video-controls{position:absolute;z-index:5;right:var(--v3-gutter);bottom:30px;display:flex;gap:10px 12px;align-items:center;flex-wrap:wrap;max-width:calc(100% - 2 * var(--v3-gutter))}
.hero-video-controls button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;padding:0;color:#eeefeb;border:1px solid #ffffff40;border-radius:50%;background:#1113158c;backdrop-filter:blur(10px);cursor:pointer;transition:background-color .2s,border-color .2s}
.hero-video-controls button:hover{background:#272b30bf;border-color:#f45124}
.hero-video-controls button:focus-visible{outline:2px solid #f45124;outline-offset:3px}
.hero-video-controls button:disabled{opacity:.55;cursor:wait}
.hero-video-controls button[hidden]{display:none}
.hero-video-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.hero-video-icon.icon-play{fill:currentColor;stroke:none}
.hero-video-icon.icon-pause{stroke-width:3.5}
.hero-video-play .icon-pause,.hero-video-sound .icon-sound-on{display:none}
.hero-video-block[data-playback="playing"] .icon-play,.hero-video-block[data-muted="false"] .icon-sound-off{display:none}
.hero-video-block[data-playback="playing"] .icon-pause,.hero-video-block[data-muted="false"] .icon-sound-on{display:block}
.hero-video-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .hero-film-fog-left{background:linear-gradient(90deg,#111315f5,#111315c9 37%,transparent)}
 .hero-film-fog-right{background:linear-gradient(270deg,#111315f0,transparent)}
}
@media(min-width:1600px){.mist-home .has-hero-video .hero-inner{width:44%}}
/* Desktop: keep the complete frame below navigation, with controls outside it. */
@media(min-width:901px){
 .mist-home .hero--brand.has-hero-video{height:clamp(600px,100svh,1080px);min-height:600px}
 .hero-film{position:absolute;top:calc(var(--header-height) + 12px);left:50%;transform:translateX(-50%);height:calc(100% - var(--header-height) - 100px);max-width:calc((clamp(600px,100svh,1080px) - var(--header-height) - 100px) * 16 / 9);object-fit:contain;object-position:center;mask-image:linear-gradient(90deg,transparent,#000 17%,#000 83%,transparent),linear-gradient(180deg,transparent,#000 12px,#000 calc(100% - 12px),transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(90deg,transparent,#000 17%,#000 83%,transparent),linear-gradient(180deg,transparent,#000 12px,#000 calc(100% - 12px),transparent);-webkit-mask-composite:source-in}
 .hero-film-fog-left{width:58%;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);background:linear-gradient(90deg,#111315f5 0%,#15181cc9 25%,#171b204d 60%,transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000f 22%,#0009 55%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000f 22%,#0009 55%,transparent 100%)}
 .hero-film-fog-right{width:38%;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);background:linear-gradient(270deg,#111315f5 0%,#171b20ad 32%,#171b2026 65%,transparent 100%);mask-image:linear-gradient(270deg,#000 0%,#000e 24%,#0007 58%,transparent 100%);-webkit-mask-image:linear-gradient(270deg,#000 0%,#000e 24%,#0007 58%,transparent 100%)}
 .hero-film-vignette{background:linear-gradient(180deg,#11131580 0%,transparent 20%,transparent 75%,#11131580 100%)}
}
@media(max-width:900px){
 .mist-home .hero--brand.has-hero-video{height:690px;min-height:690px}
 .mist-home .has-hero-video .hero-inner{width:68%;top:46%;transform:translateY(-42%)}
 .mist-home .has-hero-video h2{font-size:clamp(37px,5.3vw,48px)}
 .hero-film-fog-left{width:75%}
 .hero-video-controls{bottom:96px;right:var(--v3-gutter)}
}
@media(max-width:600px){
 .mist-home .hero--brand.has-hero-video{height:clamp(660px,92svh,800px);min-height:660px}
 .mist-home .has-hero-video .hero-inner{top:43%;width:calc(100% - 2 * var(--v3-gutter));transform:translateY(-40%)}
 .mist-home .has-hero-video h2{font-size:clamp(32px,8.5vw,43px);line-height:1.35}
 .mist-home .has-hero-video .hero-inner>.eyebrow{font-size:9px;margin-bottom:20px}
 .mist-home .has-hero-video .hero-description{font-size:14px;margin-top:20px}
 .mist-home .has-hero-video .hero-actions{margin-top:25px}
 .hero-film{object-position:57% center}
 .hero-film-fog-left{width:72%;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);background:linear-gradient(90deg,#111315d9,#11131577 45%,transparent)}
 .hero-film-fog-right{width:20%;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
 .hero-film-vignette{background:linear-gradient(180deg,#111315a8 0%,#11131544 30%,#11131544 58%,#111315d9 82%,#111315 100%)}
 .hero-video-controls{left:var(--v3-gutter);right:auto;bottom:100px;gap:8px}
}
@media(prefers-reduced-motion:reduce){.hero-video-controls button{transition:none}}

/* YouTube uses the same hero frame and custom controls as native video. */
.hero-youtube{border:0}
.hero-video-surface{container-type:size}
@media(max-width:900px){.hero-youtube{position:absolute;left:50%;top:50%;width:max(100cqw,177.778cqh);height:max(100cqh,56.25cqw);max-width:none;transform:translate(-50%,-50%)}}

/* Keep the uncropped 6:5 event footage independent of the intro and its controls. */
.mist-home #top .hero--event-film:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: calc(var(--header-height) + 16px) var(--v3-gutter) 28px;
  background: #171719;
}
.mist-home #top .hero--event-film::after,
.mist-home #top .hero--event-film .hero-image,
.mist-home #top .hero--event-film .hero-film-fog-left,
.mist-home #top .hero--event-film .hero-film-fog-right,
.mist-home #top .hero--event-film .hero-film-vignette {
  display: none;
}
.mist-home #top .hero--event-film .hero-inner {
  position: static;
  grid-area: 1 / 1;
  width: auto;
  min-width: 0;
  max-width: 40rem;
  margin: 0;
  transform: none;
}
.mist-home #top .hero--event-film .hero-video-block {
  position: relative;
  inset: auto;
  grid-area: 1 / 2;
  justify-self: center;
  display: grid;
  width: 100%;
  max-width: min(100%, 930px, max(480px, calc((100svh - var(--header-height) - 120px) * 1.2)));
}
.mist-home #top .hero--event-film .hero-video-surface {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  container-type: normal;
  background: #171719;
}
.mist-home #top .hero--event-film .hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  mask-image: none;
  -webkit-mask-image: none;
  filter: none;
  transform: none;
}
.mist-home #top .hero--event-film .hero-video-controls {
  position: static;
  width: auto;
  max-width: none;
  min-height: 44px;
  justify-content: flex-end;
  margin: 8px 0 0;
}
.mist-home #top:has(.hero--event-film:not([hidden])) .carousel-toolbar {
  bottom: 18px;
}
@media (max-width: 900px) {
  .mist-home #top .hero--event-film:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: var(--header-height) 0 84px;
  }
  .mist-home #top .hero--event-film .hero-video-block {
    grid-area: 1 / 1;
    max-width: min(100%, 700px);
  }
  .mist-home #top .hero--event-film .hero-video-controls {
    margin-inline: var(--v3-gutter);
  }
  .mist-home #top .hero--event-film .hero-inner {
    grid-area: 2 / 1;
    width: calc(100% - 2 * var(--v3-gutter));
    max-width: 660px;
    justify-self: center;
    margin: 0;
  }
  .mist-home #top .hero--event-film .hero-inner > .eyebrow { margin-bottom: 12px; }
  .mist-home #top .hero--event-film .hero-description,
  .mist-home #top .hero--event-film .hero-actions { margin-top: 14px; }
}

/* Feather the web presentation. The source movies keep their full picture. */
.mist-home #top .hero--event-film .hero-video-surface {
  --film-edge-x: 12%;
  --film-edge-y: 9%;
  --film-edge-stops: #171719 0%, rgba(23,23,25,.97) 8%, rgba(23,23,25,.78) 30%, rgba(23,23,25,.43) 52%, rgba(23,23,25,.12) 76%, rgba(23,23,25,0) 100%;
}
.mist-home #top .hero--event-film .hero-video-surface::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  inset: -1px;
  background:
    linear-gradient(to right, var(--film-edge-stops)) left / var(--film-edge-x) 100% no-repeat,
    linear-gradient(to left, var(--film-edge-stops)) right / var(--film-edge-x) 100% no-repeat,
    linear-gradient(to bottom, var(--film-edge-stops)) top / 100% var(--film-edge-y) no-repeat,
    linear-gradient(to top, var(--film-edge-stops)) bottom / 100% var(--film-edge-y) no-repeat;
}
@media (max-width: 900px) {
  .mist-home #top .hero--event-film .hero-video-surface {
    --film-edge-x: 8%;
    --film-edge-y: 9%;
  }
}
@media (forced-colors: active) {
  .mist-home #top .hero--event-film .hero-video-surface::after { display: none; }
}
