/* The images and Wix background layers remain in place underneath the motion. */
#home-motion-current {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
#home-motion-toggle {
  position: fixed;
  z-index: 3;
  inset: auto auto max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: #141416e0;
  color: #e7e9f0;
  cursor: pointer;
}
#home-motion-toggle:focus-visible { outline: 2px solid #aebefa; outline-offset: 2px; }
#home-motion-toggle::before {
  content: "";
  width: 7px;
  height: 11px;
  box-sizing: content-box;
  border-inline: 2px solid currentColor;
}
#home-motion-toggle[aria-pressed="true"]::before {
  width: 0; height: 0;
  border: 0 solid transparent;
  border-width: 6px 0 6px 9px;
  border-left-color: currentColor;
}
#home-motion-toggle[hidden], #home-motion-current[hidden],
.site-menu-open :is(#home-motion-current, #home-motion-toggle) { display: none; }
.home-globe-poster-motion .globe-media img {
  animation: home-globe-turn 11s ease-in-out infinite alternate;
}
@keyframes home-globe-turn {
  from { transform: perspective(850px) rotateY(-12deg) rotateX(4deg); }
  to { transform: perspective(850px) rotateY(12deg) rotateX(-4deg); }
}
/* The shader supplies the hero's near/far parallax. Keep its photographed wave
   registered to the travelling thread rather than pinning the old Wix plate. */
html.home-art-running:not([data-layout="mobile"]) #bgMedia_comp-kk2oiy7x {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
}
html.home-art-running:not([data-layout="mobile"]) #img_comp-kk2oiy7x {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
}
/* Once the blue field is in flight, the hero shows just its charcoal underlay
   and its original content. The still plate and its shader leave together. */
html.home-hero-departed #bgMedia_comp-kk2oiy7x { visibility: hidden; }
html.home-hero-departed #bgLayers_comp-kk2oiy7x { background-color: #141416; }
html.home-hero-reweaving #bgMedia_comp-kk2oiy7x {
  visibility: visible;
  opacity: var(--home-hero-reveal, 0);
}
#SITE_PAGES .home-entrance-finished { animation-name: none !important; }
html[data-layout="mobile"] #bgLayers_comp-kk2oiy7x {
  top: var(--home-hero-clearance, 0px);
  height: calc(100% - var(--home-hero-clearance, 0px));
}
@media print {
  #home-motion-current, #home-motion-toggle { display: none; }
  .home-globe-poster-motion .globe-media img { animation: none; }
}

/* The captured phone artboard is 320 units wide. Size the hero from the
   actual viewport, independently of the capture's early JS height sample. */
@media screen and (max-width: 767px) {
  html[data-layout="mobile"] [data-mesh-id="Containerc1dmpinlineContent-gridContainer"] {
    margin-top: 0;
  }
  html[data-layout="mobile"] #comp-l8kwljbs {
    margin-bottom: 0;
  }
  html[data-layout="mobile"] #comp-kk2oiy7x {
    --hero-headroom: clamp(17px, calc(var(--hero-vh, 1vh) * 3.4 / var(--layout-scale, 1)), 26px);
    --hero-open-wave: clamp(172px, calc(var(--hero-vh, 1vh) * 40 / var(--layout-scale, 1)), 365px);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    padding-bottom: var(--hero-open-wave);
    background: #141416;
  }
  html[data-layout="mobile"] #comp-kk2oiy7x > [data-mesh-id="comp-kk2oiy7xinlineContent"] {
    order: 0;
    flex: none;
    height: auto;
    position: relative;
    z-index: 1;
  }
  @supports (height: 1svh) {
    html[data-layout="mobile"] #comp-kk2oiy7x { --hero-vh: 1svh; }
  }
  /* Shade the words independently of the traveling texture. The gradient
     fades past the button, leaving the foreground mesh at full brightness. */
  html[data-layout="mobile"] #comp-kk2oiy7x > [data-mesh-id="comp-kk2oiy7xinlineContent"]::before {
    content: "";
    position: absolute;
    inset: 0 0 -46px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgb(6 12 21 / .62) var(--hero-headroom),
      rgb(6 12 21 / .62) calc(100% - 64px), transparent);
  }
  html[data-layout="mobile"] [data-mesh-id="comp-kk2oiy7xinlineContent-gridContainer"] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    height: auto;
    padding: var(--hero-headroom) 17px 15px;
    gap: 12px;
  }
  html[data-layout="mobile"] [data-mesh-id="comp-kk2oiy7xinlineContent-gridContainer"] >
      :is(#comp-kk2ojdm5, #comp-kk2opjct, #comp-kk2oqi60) {
    left: auto;
    align-self: center;
    margin: 0;
    max-width: 100%;
    /* These first-screen controls shouldn't begin transparent and slide
       through one another while the artwork is already brightly lit. */
    animation: none;
  }
  html[data-layout="mobile"] [data-mesh-id="comp-kk2oiy7xinlineContent-gridContainer"] >
      :is(#comp-kk2ojdm5, #comp-kk2opjct) {
    width: 100%;
    height: auto;
    overflow-wrap: break-word;
  }
  html[data-layout="mobile"] #comp-kk2ojdm5 :is(h1, h1 span) {
    /* Same 1.2 leading as Wix at normal size; keep it proportional if
       the browser enlarges an inner span independently of the heading. */
    line-height: 1.2 !important;
  }
  html[data-layout="mobile"] [data-mesh-id="comp-kk2oiy7xinlineContent-gridContainer"] > #comp-kk2oqi60 {
    width: max-content;
    min-width: min(120px, 100%);
    height: auto;
  }
  html[data-layout="mobile"] #comp-kk2oqi60 > a {
    position: relative;
    box-sizing: border-box;
    width: auto;
    min-width: 100%;
    min-height: 45px;
    height: auto;
    padding: .5em 1em;
    /* The native colors are solid. Do not fade through the moving artwork
       when the captured Wix button first acquires its colors. */
    transition: none;
  }
  html[data-layout="mobile"] #comp-kk2oqi60 .wixui-button__label {
    transition: none;
    white-space: normal;
    text-align: center;
  }
  /* A single surface now runs from the headline to the open field below the
     button. Original photo, live renderer and flight dock share its box. */
  html[data-layout="mobile"] #comp-kk2oiy7x > #bgLayers_comp-kk2oiy7x {
    position: absolute;
    inset: calc(var(--hero-headroom) - 12px) 0 0;
    height: auto;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* Start the feathered tip just below the descender of "creating" on
       the second line. Use the headline's scaled artboard coordinates;
       keep the unobstructed wave at its original brightness below. */
    mask-image:
      radial-gradient(ellipse 27% 35px at 31% 114px,
        rgb(0 0 0 / .35) 44%, rgb(0 0 0 / .19) 68%, transparent 100%),
      linear-gradient(to bottom, transparent 94px, rgb(0 0 0 / .16) 114px,
        rgb(0 0 0 / .55) 143px, #000 180px);
  }
}
