





/* 1 · Journey variants.
 * Gal's React rendered ONE of two children in section#journey:
 *   desktop  → .cinema-moving  > .cinema-screen        (pinned cinematic, 580svh)
 *   ≤1000px / ≤680px high / reduced motion / engine failure → .cinema-plain > ol.cinema-static-story
 * index.html ships both; site.js switches the class exactly like Gal's matchMedia did.
 * The media block keeps the very first paint right before site.js runs. */
.cinematic-journey.cinema-moving > .cinema-static-story,
.cinematic-journey.cinema-plain > .cinema-screen {
  display: none;
}
@media (max-width: 1000px), (max-height: 680px), (prefers-reduced-motion: reduce) {
  .cinematic-journey.cinema-moving { height: auto; }
  .cinematic-journey.cinema-moving > .cinema-screen { display: none; }
  .cinematic-journey.cinema-moving > .cinema-static-story { display: block; }
}
/* no JavaScript at all → the ordered story (the cinema needs the scroll engine) */
@media (scripting: none) {
  .cinematic-journey.cinema-moving { height: auto; }
  .cinematic-journey.cinema-moving > .cinema-screen { display: none; }
  .cinematic-journey.cinema-moving > .cinema-static-story { display: block; }
  .faq-item [id^="faq-"][hidden] { display: block; }
}




.cinema-dive {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform-origin: 50% 50%;
}

/* 3 · --cinema-header before site.js measures the header (Gal's header is 80px in these ranges) */
@media (max-width: 1000px), (min-width: 1001px) and (max-height: 800px) {
  .cinematic-journey { --cinema-header: 80px; }
}

/* 4 · Smooth scrolling: when the shared core runs Lenis, native smooth scroll would fight it.
 * The core marks that with html.w2g-smooth (not "w2g-lenis": Lenis strips every class matching /lenis(-\w+)?/). */
html.w2g-smooth {
  scroll-behavior: auto;
}






.bright-hero .stage-box {
  container-type: size;
}
@supports (width: calc(1px * tan(atan2(1cqw, 1px)))) {
  .bright-hero .stage {
    --stage-scale: min(1.08, tan(atan2(100cqw, 890px)), tan(atan2(100cqh, 660px)));
  }
}







@font-face {
  font-family: "Heebo Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 100 549;
  ascent-override: 104.7852%;
  descent-override: 42.0898%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Heebo Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 550 1000;
  ascent-override: 104.7852%;
  descent-override: 42.0898%;
  line-gap-override: 0%;
}
:root {
  font-family: Heebo, "Heebo Fallback", Arial, sans-serif;
}




.website-card .demo-slides {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.website-card .demo-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.website-card .demo-slide.is-on {
  opacity: 1;
}
.website-card .demo-slide.no-fade {
  transition: none;
}




@media (scripting: none) {
  video[data-poster] {
    background: #07132b url(img/reel2-poster-1280.webp) center / cover no-repeat;
  }
}





/* B1 · #contact on phones and tablets.
 * gal.css sets .contact-layout{grid-template-columns:1fr} in its first ≤1000px block, but a later,
 * unconditional .contact-layout{grid-template-columns:1.1fr 1fr} overrides it (the second ≤1000px block
 * only resets the gap). Result on the live site: the heading and the form stay side by side, the form runs
 * 196–286px off-screen and the whole page becomes ~610px wide on a 390px phone (sideways scroll, and
 * in-page anchors land in the wrong place). Restoring Gal's own rule: heading block first, then the form,
 * full width inside Gal's 20px side padding. */
@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
/* B1b · ≤380px: the submit button is nowrap with 37px side padding, so the form could not get narrower
 * than 307px and a 320px phone still scrolled sideways. The button is 100% wide with centered content,
 * so less padding changes nothing visible — it only lets the form fit. */
@media (max-width: 380px) {
  .contact-form .primary {
    padding-inline: 20px;
  }
}

/* B3 · the logo's white box.
 * .brand-mark is cut from a white-background sprite (reference.webp). Over white it is invisible, but the
 * header is 95% white, so whenever a dark section (journey, contact) scrolls under it the header turns light
 * grey and a white rectangle appears around the W. brand-mark.webp is the same 1672×941 sprite, holding
 * only the logo region with its white turned into transparency (exact inverse of "over white": composited
 * on white it gives back Gal's pixels, max delta 0). Gal's background-size/position rules stay untouched.
 * (mix-blend-mode cannot do this: the header's backdrop-filter isolates it from the section behind.) */
.brand-mark {
  background-image: url(brand-mark.webp);
}





@media (max-width: 1000px), (min-width: 1001px) and (max-height: 680px) {
  .global-motion-toggle {
    display: inline-block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .global-motion-toggle {
    display: none;
  }
}
.global-motion-toggle[hidden] {
  display: none;
}
.global-motion-toggle {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));   /* = Gal's 16px wherever there is no inset */
  transition: bottom 0.25s ease;
}
@media (pointer: coarse) {
  .global-motion-toggle {
    min-height: 44px;                                        /* comfortable touch target on phones */
  }
}

html.w2g-sticky-on .global-motion-toggle {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
