/* One shared atmosphere means the hero-to-work transition has no section edge. */
.opening-world{position:relative;isolation:isolate}.world-media{position:sticky;top:0;height:100svh;margin-bottom:-100svh;z-index:-1;pointer-events:none;overflow:hidden;background:#111b3a}.world-media .hero-media{position:absolute;inset:0}.opening-world .hero,.opening-world .scene-section{background:transparent}.opening-world .scene-atmosphere{display:none}.pink-field{position:absolute;inset:0;opacity:var(--pink-progress,0);background:radial-gradient(ellipse at 20% 80%,var(--gradient-one),transparent 65%),linear-gradient(130deg,var(--gradient-two),var(--gradient-one) 55%,var(--gradient-three))}#shader-pink{position:absolute;inset:0}.pink-field:after{content:'';position:absolute;inset:0;background:linear-gradient(125deg,#26132c99,transparent 65%);pointer-events:none}.scene-section{--ink:#fff9ff;--muted:#f0e2f0;--line:#f8e9f16b;--scene-glass-dark:#261b36c9;--scene-edge:#fff1fc38;--scene-sheen:#fff3fa35}.scene-section .section-heading{text-shadow:0 1px 15px #321a4f70}.scene-section .section-heading>p{background:#32172e95;padding:12px 16px;border-radius:16px}.scene-bottom{color:#fff9ff}.scene-bottom p{padding:7px 12px;background:#32172ea6;border-radius:12px}.scene-section .scene-board{box-shadow:inset 0 1px 0 #ffffff4a,0 20px 70px #30172f40!important}.pink-field:before{content:'';position:absolute;inset:0;z-index:2;background-image:var(--scene-noise);opacity:.055;pointer-events:none}.fred-home-anchor{display:block;flex-shrink:0;width:122px;height:220px}.fred-float{position:fixed;left:0;top:0;z-index:15;pointer-events:none;display:flex;flex-direction:column;align-items:center}.fred-float:not([data-ready]),.fred-float[data-docked]{left:auto;top:auto;right:max(18px,3vw);bottom:24px}.fred-float .fred-stage{width:105px;height:190px;pointer-events:none}.fred-float .fred-handle{pointer-events:auto}.fred-float .fred-hint{margin-top:0;white-space:nowrap;font-size:11px;pointer-events:none;background:#1d234da6;padding:3px 8px;border-radius:20px}.fred-float .fred-hint[data-used=true]{background:transparent}.fred-float .fred-hint .sr-only{white-space:normal}.qr-with-fred{display:flex;align-items:center;justify-content:center;gap:22px;min-width:0}.fred-qr-anchor{width:110px;height:195px;display:block;flex-shrink:0}.contact-scene .contact-inner{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)!important;gap:25px!important}.contact-scene .contact-qr{flex-shrink:0}.contact-qr:focus-visible{outline-color:#192443}.fred-float .fred-handle:focus-visible{outline:2px solid #df8bb5;outline-offset:6px;border-radius:50%}.contact-scene .whatsapp-label{line-height:1.4}.scene-section .scene-bottom>a{background:#32172ea6;padding:5px 12px;border-radius:12px}.review-motion-toggle{position:fixed;left:12px;bottom:12px;z-index:20;background:#111b3ad9;color:#fff;border:1px solid #ffffff50;border-radius:30px;padding:7px 12px;font-size:11px}
@media(max-width:1000px){.fred-home-anchor{width:84px;height:144px}.fred-float .fred-stage{width:76px;height:135px}.fred-qr-anchor{width:80px;height:145px}.qr-with-fred{gap:15px}.contact-scene .contact-qr{padding:15px!important}}
@media(max-width:760px){.contact-scene .contact-inner{display:flex!important}.qr-with-fred{width:100%;justify-content:flex-start;gap:20px}.contact-scene .contact-qr{display:block!important;padding:0!important}.contact-scene .whatsapp-label{margin-top:10px;max-width:130px}.fred-qr-anchor{width:82px;height:150px}.fred-float .fred-hint{display:none}.scene-section .section-heading>p{display:none}.scene-bottom p{max-width:180px}.scene-section{padding-block:38px}.fred-float .fred-stage{width:70px;height:126px}}
@media(prefers-reduced-motion:reduce){.world-media{position:absolute;inset:0;height:auto;margin:0}.pink-field{opacity:var(--pink-progress,0)}#shader-pink{display:none}}

.gradient-alone .scene-frame,.gradient-alone .fred-float{visibility:hidden}

.fred-float .fred-hint{position:absolute;top:-25px;margin:0}.qr-with-fred{gap:0}.opening-world.ripple-composited .pink-field{opacity:0!important}.opening-world.ripple-composited #ripple-hero{filter:saturate(calc(2 - var(--pink-progress,0))) contrast(calc(1.28 - var(--pink-progress,0)*.28))}.opening-world.ripple-composited .hero-media:after{opacity:calc(1 - var(--pink-progress,0))}
@media(min-width:1001px){.scene-bottom{padding-right:125px}.contact-scene footer{padding-right:125px}}

/* Keep the contact card legible over the same field as the opening and studio. */
body[data-contact-scene] .opening-world[data-blue-return] #contact {
  background: transparent;
}
.opening-world[data-blue-return] #contact .contact-atmosphere {
  display: none;
}
body[data-contact-scene] .opening-world[data-blue-return] #contact .contact-inner {
  background: #fff9fcf0;
}
body[data-contact-scene] .opening-world[data-blue-return] #contact footer {
  color: #fff9ff;
  border-color: #fff8;
  text-shadow: 0 1px 5px #170c30, 0 0 12px #170c30;
}
body[data-contact-scene] .opening-world[data-blue-return] #contact footer .brand img {
  filter: brightness(0) invert(1) !important;
}

.opening-world[data-blue-return] .blue-return-fallback {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--blue-progress, 0);
  background: radial-gradient(ellipse var(--blue-width, 78%) var(--blue-height, 68%)
      at calc(-90% + var(--blue-progress, 0) * 74%) var(--blue-height-center, 54%),
      #2139a8 15%, #3b46b1 80%, #9290e6 96%, transparent 100%);
}
.opening-world[data-blue-return] .hero-media[data-liquid-ready] .blue-return-fallback {
  display: none;
}
.opening-world[data-blue-return="crescent"] {
  --blue-height-center: 37%;
  --blue-height: 86%;
}
.opening-world[data-blue-return="ribbon"] {
  --blue-height-center: 63%;
  --blue-height: 30%;
}
.opening-world[data-blue-return="veil"] {
  --blue-height-center: 17%;
  --blue-width: 86%;
}
.opening-world[data-blue-return="cove"] {
  --blue-height-center: 79%;
  --blue-width: 69%;
  --blue-height: 57%;
}

@media (prefers-reduced-motion: reduce) {
  .opening-world[data-blue-return] .hero-media {
    --blue-progress: 0;
  }
}
