/* The shared header, cookie dialog, widget and footer keep their native controls. */
/* A return visit skips the intro. Reserve the hero's final composition during
   particle preparation, including the real portrait on a stippled plate. */
html[data-opening-preview] .story-reel .reel-hero .reel-shot::before {
  /* Cropped from the actual resting point field at normalized coordinates;
     the two layers share the live renderer's framing until it takes over. */
  content:''; position:absolute; z-index:1;
  left:calc(var(--plate-left) + var(--plate-width) * 441 / 1152);
  top:calc(var(--plate-top) + var(--plate-height) * 25 / 648);
  width:calc(var(--plate-width) * 711 / 1152); height:calc(var(--plate-height) * 623 / 648);
  background:url('/assets/home-motion/media/opening/hero-return.webp') center / 100% 100% no-repeat;
  mix-blend-mode:multiply;
}
@media (min-width:821px) {
  html[data-opening-preview] .story-reel .reel-hero {
    display:block; min-height:106svh; padding:0; position:relative; overflow:hidden;
  }
  html[data-opening-preview] .story-reel .reel-hero .reel-shot {
    display:block; position:absolute; inset:0 0 auto; width:100%; height:100svh;
    aspect-ratio:auto; background-color:#e1e1e1; pointer-events:none;
    --headroom:min(58px,6.5svh);
    --plate-source:max(100vw,calc((100svh - var(--headroom)) * 16 / 9));
    --plate-width:min(var(--plate-source),112vw);
    --plate-height:calc(var(--plate-width) * 9 / 16);
    --plate-left:max(calc((100vw - var(--plate-source)) * .8),calc(46.5vw - var(--plate-width) * .386));
    --plate-top:calc(var(--headroom) + (100svh - var(--headroom)) * .04 + var(--plate-source) * .54 - var(--plate-height));
  }
  html[data-opening-preview] .story-reel .reel-hero .reel-shot::after {
    background-position:left 11vw top 83%; background-size:115% 65%;
    mask-image:url('/assets/home-motion/media/opening/hero-clearance.webp'),radial-gradient(ellipse 42% 60% at 17% 40%,transparent 10%,rgb(0 0 0 / .23) 57%,#000 100%),linear-gradient(90deg,transparent 11%,#000 26%);
    mask-size:var(--plate-width) var(--plate-height),100% 100%,100% 100%;
    mask-position:var(--plate-left) var(--plate-top),center,center;
  }
  html[data-opening-preview] .reel-hero .reel-shot img {visibility:hidden;}
  html[data-opening-preview] .story-reel .reel-hero .reel-caption {
    position:relative; top:0; display:grid; align-content:center;
    min-height:100svh; width:100%; padding:max(88px,12svh) 0 8svh;
  }
  html[data-opening-preview] .story-reel .reel-hero .reel-copy {width:min(calc(100% - 2 * var(--gutter)),1440px);margin-inline:auto;}
  html[data-opening-preview] .reel-hero .reel-copy > * {max-width:min(44vw,615px);}
  html[data-opening-preview] .reel-hero .reel-copy h1 {
    max-width:min(34vw,540px); font-size:clamp(2.5rem,4.45vw,5.15rem); line-height:1.01; letter-spacing:-.038em;
  }
  html[data-opening-preview] .reel-hero .reel-copy h1 > em {max-width:13ch;line-height:1;margin-top:.12em;font-size:1.02em;}
  html[data-opening-preview] .reel-hero .reel-copy > p {max-width:min(32vw,39ch);}
}
@media (max-width:820px) {
  html[data-opening-preview] .story-reel .reel-hero {
    min-height:106svh; padding-top:72px;
  }
  html[data-opening-preview] .story-reel .reel-hero .reel-shot {
    height:var(--mobile-agent-height); aspect-ratio:auto;
    --plate-width:max(100vw,calc(var(--mobile-agent-height) * 16 / 9));
    --plate-height:calc(var(--plate-width) * 9 / 16);
    --plate-left:calc((100vw - var(--plate-width)) * .91);
    --plate-top:calc((var(--mobile-agent-height) - var(--plate-height)) * .12);
  }
  html[data-opening-preview] .story-reel .reel-hero .reel-shot::before {
    opacity:.57;
    mask-image:linear-gradient(to bottom,#000 89%,transparent 100%);
  }
  html[data-opening-preview] .reel-hero .reel-shot img {visibility:hidden;}
  html[data-opening-preview] .story-reel .reel-hero .reel-shot::after {
    background-position:46% 72%; background-size:auto 65%;
    mask-size:var(--plate-width) var(--plate-height);
    mask-position:var(--plate-left) var(--plate-top);
  }
  html[data-opening-preview] .story-reel .reel-hero .reel-caption {padding-block:25px 37px;}
  html[data-opening-preview] .reel-hero .reel-copy h1 {max-width:100%;font-size:clamp(2.18rem,8.95vw,4.25rem);}
  html[data-opening-preview] .reel-hero .reel-copy h1 > em {max-width:14ch;text-wrap:balance;}
  html[data-opening-preview] .reel-hero .reel-copy > p {max-width:39ch;}
}
@media (max-width:820px) and (max-height:685px) {
  html[data-opening-preview] .story-reel .reel-hero .reel-caption {padding-top:16px;}
  html[data-opening-preview] .reel-hero .reel-copy h1 {font-size:clamp(1.78rem,7.8vw,2.55rem);}
  html[data-opening-preview] .reel-hero .reel-copy h1 > em {max-width:none;}
}
html[data-aa-motion-home] nav.aa-home-nav {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 55;
}
html[data-aa-motion-home] nav.aa-home-nav > div > .h-20 {
  height: 68px;
}
html[data-aa-motion-home] nav.aa-home-nav {
  background:rgba(255,255,255,.96)!important;
}
html[data-aa-motion-home][data-aa-theme="dark"] nav.aa-home-nav.sticky.top-0.z-50 {
  background:rgba(3,3,4,.94)!important;
  color:#f5f5f6!important;
  border-color:#191d24!important;
  backdrop-filter:blur(14px)!important;
}
html[data-aa-motion-home] .aa-home-nav .aa-theme-icon {display:inline-flex!important}
html[data-aa-motion-home][data-aa-theme="dark"] .aa-home-nav .aa-theme-icon-sun,
html[data-aa-motion-home]:not([data-aa-theme="dark"]) .aa-home-nav .aa-theme-icon-moon {
  display:none!important;
}
@media (max-width:1023.98px) {
  html[data-aa-motion-home] nav.aa-home-nav .aa-mobile-lang-wrap:not(.aa-mobile-lang-custom) .aa-mobile-lang-select {
    appearance:none;
    width:100%!important;
    height:100%!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#475569!important;
    font:600 .82rem/1 Arial,sans-serif!important;
    padding:0!important;
    text-align:center;
    text-align-last:center;
  }
  html[data-aa-motion-home][data-aa-theme="dark"] nav.aa-home-nav .aa-mobile-lang-wrap:not(.aa-mobile-lang-custom) .aa-mobile-lang-select {
    color:#f3f1eb!important;
  }
  html[data-aa-motion-home][data-aa-theme="dark"] nav.aa-home-nav .aa-mobile-header-controls > button {
    color:#d6d8de!important;
  }
  html[data-aa-motion-home] .aa-home-nav .aa-mobile-header-controls > a[data-aa-audit-link] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
    padding:0 14px!important;
    border:1px solid #090909!important;
    border-radius:999px!important;
    background:#090909!important;
    color:#fff!important;
    font:600 14px/20px Inter,sans-serif;
    white-space:nowrap;
  }
  html[data-aa-motion-home][data-aa-theme="dark"] .aa-home-nav .aa-mobile-header-controls > a[data-aa-audit-link] {
    border-color:#e7e7e3!important;
  }
  html[data-aa-motion-home][data-aa-theme="dark"] .aa-home-nav .aa-mobile-theme-inline .aa-theme-toggle {
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
  }
}
@media (min-width:1024px) {
  html[data-aa-motion-home][data-aa-theme="dark"] nav.aa-home-nav:not([data-aa-navfx-root]) [class~="lg:flex"] :is(.aa-theme-toggle,.group > button) {
    background:transparent!important;
    border-color:#3a3d42!important;
    color:#f3f1eb!important;
  }
  html[data-aa-motion-home] .aa-home-nav [class~="lg:flex"] > a:not([data-aa-audit-link]),
  html[data-aa-motion-home] .aa-home-nav [class~="lg:flex"] > .group > button {
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding:.68rem 1rem!important;
    border:1px solid #c6c8cb!important;
    border-radius:999px;
    color:#171717!important;
  }
  html[data-aa-motion-home][data-aa-theme="dark"] .aa-home-nav [class~="lg:flex"] > a:not([data-aa-audit-link]),
  html[data-aa-motion-home][data-aa-theme="dark"] .aa-home-nav [class~="lg:flex"] > .group > button {
    border-color:#3a3d42!important;
    color:#f3f1eb!important;
  }
}

html[data-aa-motion-home][data-opening-loading="loading"] nav.aa-home-nav {
  visibility: hidden;
}
html[data-aa-motion-home][data-opening-loading] #aa-consent {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* WebKit can paint a filtered, empty widget container over the header. */
html[data-aa-motion-home].dark #chatbot-container:empty {filter:none!important}
html[data-aa-motion-home] footer.aa-home-footer {
  position: relative;
  z-index: 3;
}
html[data-aa-motion-home] [data-aa-motion-control] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
html[data-aa-motion-home] [data-aa-motion-control][hidden] {
  display: none !important;
}
html[data-aa-motion-home] [data-aa-motion-control] svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-aa-motion-home] [data-aa-motion-control]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 1023.98px) {
  html[data-aa-motion-home] #aa-mobile-navigation [data-aa-motion-control="menu"] {
    justify-content: flex-start;
    width: 100%;
    min-height: 54px;
    padding: .7rem 0;
    border: 0;
    color: var(--aa-menu-ink);
    font: 500 1rem/1.25 "AA Shared Menu Archivo", Arial, sans-serif;
    text-align: start;
  }
}

/* The form retains the production wizard, with the audit chapter's fixed
   paper and ink in both site themes. Keep native status and field feedback. */
html[data-aa-motion-home] #audit .aa-lead-card {
  --aa-ink: var(--ink);
  --aa-paper: var(--paper);
  --aa-secondary: var(--inset);
  --aa-muted: var(--dim);
  --aa-rule: var(--line);
  --aa-lead-bg: var(--paper);
  --aa-lead-text: var(--ink);
  --aa-lead-muted: var(--dim);
  --aa-lead-border: var(--line);
  --aa-lead-soft: var(--inset);
  color-scheme: dark;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
}
html[data-aa-motion-home] #audit .aa-lead-intro { text-align: start; }
html[data-aa-motion-home] #audit [data-aa-lead-eyebrow] {
  padding: 0;
  border: 0;
  background: none;
  letter-spacing: .12em !important;
}
html[data-aa-motion-home] #audit [data-aa-lead-title] {
  margin: .5rem 0 .65rem !important;
  font: 430 clamp(2.3rem, 4vw, 4.45rem)/1 var(--folio-display) !important;
  text-wrap: balance;
}
html[data-aa-motion-home] #audit [data-aa-lead-subtitle] {
  max-width: 54ch !important;
  margin: 0 !important;
  color: var(--dim) !important;
}
html[data-aa-motion-home] #audit form { min-width: 0; margin: 1.35rem 0 0 !important; }
html[data-aa-motion-home] #audit .aa-lead-step h3.aa-lead-title {
  color: var(--ink);
  letter-spacing: -.035em;
  font: 430 clamp(1.45rem, 2.3vw, 2.55rem)/1.08 var(--folio-display) !important;
}
html[data-aa-motion-home] #audit .aa-lead-option {
  min-height: 48px;
  border-color: var(--line) !important;
  padding: .8rem .9rem;
  background: transparent !important;
}
html[data-aa-motion-home] #audit .aa-lead-option strong {
  font: 550 1rem/1.28 var(--body) !important;
}
html[data-aa-motion-home] #audit .aa-lead-option:is(.is-selected, :focus-visible, :hover) {
  border-color: var(--ink) !important;
  background: var(--inset) !important;
  transform: none;
}
html[data-aa-motion-home] #audit .aa-lead-progress span { background: var(--ink); }
html[data-aa-motion-home] #audit .aa-lead-btn-primary {
  color: var(--paper) !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}
html[data-aa-motion-home] #audit .aa-lead-btn-primary:hover { background: #dadad6 !important; }
html[data-aa-motion-home] #audit .aa-lead-result {
  border: 1px solid var(--line);
  background: var(--inset);
}
html[data-aa-motion-home] #audit :is(button, a, input, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
html[data-aa-motion-home] #audit :is(.aa-lead-field-error, .aa-lead-message:not(.is-ok), [data-aa-lead-warning], [data-aa-contact-warning]) {
  /* Messages sit on the charcoal chapter even when the inputs use light paper. */
  color: #fda29b !important;
}
html[data-aa-motion-home] #audit .aa-lead-field [aria-invalid="true"] { border-color: var(--aa-lead-error) !important; }
html[data-aa-motion-home][data-aa-theme="light"] #audit .aa-lead-field :is(input, textarea) {
  color-scheme: light;
  background: #f5f5f2;
  color: #171717;
}
html[data-aa-motion-home][data-aa-theme="light"] #audit .aa-lead-field ::placeholder {
  color: #565653;
  opacity: 1;
}
html[data-aa-motion-home][data-aa-theme="dark"] #audit .aa-lead-field :is(input, textarea) {
  background: var(--inset) !important;
  color: var(--ink) !important;
}
html[data-aa-motion-home] #audit .aa-lead-field :is(input, textarea) {
  min-height: 44px;
  font-size: 1rem !important;
  box-shadow: none;
}
html[data-aa-motion-home] #audit .aa-lead-message.is-ok { color: #b4edcf; }
html[data-aa-motion-home] #audit [data-aa-form-privacy] {
  margin-top: 1rem;
  color: var(--dim) !important;
  line-height: 1.5;
}
html[data-aa-motion-home] #audit [data-aa-form-privacy] a { text-decoration: underline; }
@media (max-width: 820px) {
  html[data-aa-motion-home] #audit .aa-lead-intro { margin-bottom: 0 !important; }
  html[data-aa-motion-home] #audit .aa-lead-card .aa-lead-actions { align-items: stretch; }
}
@media (min-width:1024px) {
  html[data-aa-motion-home] .aa-home-nav [class~="lg:flex"] > .group > button {
    column-gap:5px;
  }
  html[data-aa-motion-home] .aa-home-nav [class~="lg:flex"] > a[data-aa-audit-link] {
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding:.68rem 1rem!important;
    border:1px solid #090909!important;
    border-radius:999px!important;
    background:#090909!important;
    color:#fff!important;
  }
  html[data-aa-motion-home][data-aa-theme="dark"] .aa-home-nav [class~="lg:flex"] > a[data-aa-audit-link] {
    border-color:#e7e7e3!important;
  }
}
@media (min-width:1024px) and (prefers-reduced-motion:no-preference) {
  html[data-aa-motion-home]:is([data-opening-preview],[data-opening-loading]):not([data-motion-controllable="true"])
    .aa-home-nav [class~="lg:flex"] > a[data-aa-audit-link] {
    margin-inline-start:calc(4rem + 52px);
  }
}
