/* The homepage header floats over the jungle; other pages retain their own header. */
.home-misty .site-header{position:absolute;inset:0 0 auto;z-index:10;background:transparent;color:#fff}
.home-misty .site-header .login-link{border-color:rgba(255,255,255,.65)}
.home-misty .account-menu-toggle{position:relative;background:transparent;color:#fff;border-color:rgba(255,255,255,.65)}
.home-misty .account-menu-toggle::after{content:"✓";position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:24px;height:24px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:#10221c;color:var(--yellow);font:700 20px/1 Arial,sans-serif;pointer-events:none}
.home-misty .account-menu-toggle:hover,.home-misty .account-menu-toggle[aria-expanded=true]{background:rgba(255,255,255,.14);border-color:#fff}
.home-misty .site-header a:focus-visible,.home-misty .account-menu-toggle:focus-visible{outline-color:var(--yellow)}
/* Anchor the video to the full-height hero; extend its canopy only above it. */
.hero-misty{
  position:relative;
  isolation:isolate;
  background:#10221c;
  grid-template-columns:minmax(0,1.5fr) minmax(340px,.9fr);
  gap:4.5%;
  min-height:100svh;
  padding-top:112px;
  padding-bottom:64px;
}
.hero-misty::before{content:"";position:absolute;z-index:-2;inset:0 0 auto;height:max(80px,calc(100% - 56.25vw + 80px));background-image:linear-gradient(rgba(6,20,13,.65),rgba(6,20,13,.65)),url('/assets/hero-misty-motion-20261016-canopy.webp');background-size:100% 100%,auto 500%;background-position:center,center top;background-repeat:no-repeat;pointer-events:none}
.hero-misty .hero-scene{position:absolute;z-index:-1;inset:auto 0 0;height:min(100%,56.25vw);display:block;pointer-events:none;margin:0;mask-image:linear-gradient(180deg,transparent,#000 80px);-webkit-mask-image:linear-gradient(180deg,transparent,#000 80px)}
.hero-misty .hero-scene img,.hero-misty .hero-scene video{display:block;width:100%;height:100%;object-fit:cover;object-position:left bottom}
.hero-motion-toggle{position:absolute;z-index:2;right:16px;bottom:16px;width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:11px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(10,25,17,.7);color:#fff;cursor:pointer;pointer-events:auto}
.hero-motion-toggle svg{display:block;width:18px;height:18px;fill:currentColor}
.hero-motion-toggle .motion-play,.hero-motion-toggle.is-paused .motion-pause{display:none}
.hero-motion-toggle.is-paused .motion-play{display:block}
.hero-motion-toggle[hidden]{display:none}
.hero-motion-toggle:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
.hero-misty .hero-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,34,28,.35),transparent 30%,transparent 85%,rgba(16,34,28,.75) 100%)}
.hero-misty .hero-story{color:#fff;max-width:700px;margin:0;width:100%}
.hero-misty .hero-story h1{max-width:none;font-size:clamp(32px,3.2vw,56px);line-height:1.1;letter-spacing:-1.8px;text-shadow:0 2px 14px rgba(0,0,0,.25)}
.hero-misty .eyebrow{color:#f4dc72}
.hero-misty .hero-privacy{margin:20px 0 16px;font-size:14px}
.hero-misty .hero-copy{font-size:17px;max-width:48ch;color:#eef2ee;line-height:1.45}
.hero-misty .hero-mobile-cta{margin-top:20px;background:var(--yellow);color:var(--ink);font-size:16px;padding:14px 22px;min-height:50px}
.hero-misty .hero-mobile-cta:hover{background:#efc700}
.hero-misty .registration{margin:8px 0 0;width:100%;max-width:560px;justify-self:end;box-shadow:0 16px 64px rgba(0,0,0,.2);color:var(--ink)}
.hero-misty .registration h2{font-size:clamp(28px,2.5vw,38px)}
.hero-misty .hero-guide{position:absolute;bottom:20px;left:max(4.5%,calc((100% - 1380px)/2));margin:0;color:#fff;font-size:14px;text-shadow:0 1px 5px #000}
.hero-misty .hero-guide a{display:inline-flex;align-items:center;min-height:44px}
@media(min-width:1001px) and (max-width:1199px){
  .hero-misty .registration{padding:26px}
  .hero-misty #phone-registration-form .phone-field input{font-size:16px;padding:14px 10px}
}
/* Stack at tablet widths: never crop the car behind the form or place copy across its QR. */
@media(max-width:1000px){
  .hero-misty{--hero-top-space:120px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"story" "scene" "guide" "registration";gap:0;min-height:0;padding:var(--hero-top-space) 5% 40px}
  .hero-misty::before{grid-area:story;inset:calc(-1 * var(--hero-top-space)) calc(-100% / 18) -88px;height:auto}
  .hero-misty .hero-story{grid-area:story;margin:0 auto;max-width:700px}
  .hero-misty .hero-story h1{font-size:clamp(34px,5.8vw,48px);letter-spacing:-1.6px}
  .hero-misty .hero-copy{max-width:48ch;font-size:18px}
  .hero-misty .hero-scene{position:relative;grid-area:scene;inset:auto;z-index:0;width:calc(100% / .9);height:auto;max-width:none;margin:8px calc(-100% / 18) 0;aspect-ratio:1672/941;overflow:hidden}
  .hero-misty .hero-scene img,.hero-misty .hero-scene video{width:100%;height:100%;object-fit:cover;object-position:left center}
  .hero-misty .hero-scene::after{background:linear-gradient(180deg,transparent 86%,#10221c 100%)}
  .hero-misty .hero-guide{position:static;grid-area:guide;margin:0 auto 24px;width:100%;max-width:700px;text-shadow:none}
  .hero-misty .registration{grid-area:registration;justify-self:center;max-width:580px;margin:0;padding:32px}
}
@media(min-width:621px) and (max-width:900px){.hero-misty{--hero-top-space:170px}}
@media(max-width:620px){
  .hero-misty{--hero-top-space:150px;padding-bottom:32px}
  .hero-misty .hero-story h1{font-size:clamp(30px,8.4vw,43px);letter-spacing:-1.3px}
  .hero-misty .hero-privacy{font-size:13px;line-height:1.5;padding:8px 12px;margin:18px 0 16px}
  .hero-misty .hero-copy{font-size:16px;max-width:35ch}
  .hero-misty .hero-scene{aspect-ratio:1.13}
  .hero-misty .hero-guide{font-size:13px;margin-bottom:20px}
  .hero-misty .registration{padding:26px 18px;border-radius:20px}
  .hero-misty .registration h2{font-size:27px}
}
@media(max-width:360px){.hero-misty{--hero-top-space:160px}}
/* Signed-in owners get the account action beside the scene, without a form. */
@media(min-width:1001px){
  .hero-misty.hero-owner{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-misty.hero-owner .hero-story{grid-column:2;justify-self:end;max-width:560px}
}
@media(min-width:621px) and (max-width:1000px){
  .hero-misty.hero-owner{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:". story";gap:24px;min-height:740px;padding-bottom:100px}
  .hero-misty.hero-owner .hero-story{justify-self:end;max-width:560px}
  .hero-misty.hero-owner .hero-story h1{font-size:clamp(28px,4vw,40px);letter-spacing:-1.2px}
  .hero-misty.hero-owner .hero-copy{font-size:16px}
  .hero-misty.hero-owner::before{grid-area:auto;inset:0 0 auto;height:max(80px,calc(100% - 56.25vw + 80px))}
  .hero-misty.hero-owner .hero-scene{position:absolute;z-index:-1;inset:auto 0 0;width:100%;height:min(100%,56.25vw);margin:0;aspect-ratio:auto}
  .hero-misty.hero-owner .hero-scene video{object-position:left bottom}
  .hero-misty.hero-owner .hero-scene::after{background:linear-gradient(180deg,rgba(16,34,28,.35),transparent 30%,transparent 85%,rgba(16,34,28,.75))}
  .hero-misty.hero-owner .hero-guide{position:absolute;bottom:20px;left:5%;width:90%;max-width:none;margin:0}
}
