/* The photograph, strip of light and three devices share a 1280x720 stage. */
#inicio {
  --wide-frame:max(800px,calc((100svh - var(--nav-h)) * 1.94));
  --scene-width:min(100%,var(--wide-frame));
  --scene-inset:min(5.6vw,calc(var(--wide-frame) * .056),160px);
  height:auto;
  background:#050a20;
}
#inicio .hero-sticky {
  position:relative;
  top:auto;
  display:grid;
  width:100%;
  grid-template-columns:minmax(0,1fr);
  height:auto;
  min-height:0;
  background:#050a20;
}
#inicio .hero-set {
  position:relative;
  grid-area:1 / 1;
  display:grid;
  place-items:center;
  height:auto;
  margin:0;
  mask-image:none;
}
#inicio .hero-set::after { content:none; }
.wave-scene {
  position:relative;
  width:var(--scene-width);
  aspect-ratio:16 / 9;
  flex:none;
  --sky:#050a20;
  background:var(--sky);
  isolation:isolate;
}
/* Panoramic screens can be wider than a recognizable, height-fitted triptych.
   Mirror just the outer photographic margins so the same table and distant
   light reach either viewport edge without widening the devices or their glass. */
@media (min-width:901px) and (orientation:landscape), (min-width:1025px),
       (min-width:600px) and (max-height:540px) and (orientation:landscape) {
  .wave-scene::before, .wave-scene::after {
    content:"";
    position:absolute;
    z-index:-1;
    inset-block:0;
    width:max(0px,calc((100vw - 100%) / 2 + 1px));
    background-image:linear-gradient(to bottom,var(--sky) 0 39%,transparent 57%),url("../cristal/ondas-mesa.webp?v=six-real-app-20261119");
    background-size:max(1000%,var(--wide-frame)) 100%;
    background-repeat:no-repeat;
    transform:scaleX(-1);
    pointer-events:none;
  }
  .wave-scene::before { right:100%; background-position:left center; }
  .wave-scene::after { left:100%; background-position:right center; }
}
@media (min-width:901px) and (min-aspect-ratio:37 / 20),
       (min-width:600px) and (max-height:540px) and (orientation:landscape) {
  .wave-scene .wave-reflections {
    --edge-softness:clamp(0px,calc((100vw - var(--wide-frame)) / 2),3%);
    mask-image:linear-gradient(to right,black calc(100% - var(--edge-softness)),transparent);
  }
}
@media (min-width:901px) and (min-aspect-ratio:2 / 1) {
  #inicio { --wide-frame:calc((100svh - var(--nav-h)) * 16 / 9); }
}
.wave-scene > * {
  position:absolute;
  display:block;
  top:0;
  left:0;
  width:100%;
  max-width:none;
  height:auto;
  pointer-events:none;
}
/* Keep the photographed desk and its contact shadows. Only the two separate
   PNG ribbons paint the sky, including the extensions on wide displays. */
.wave-photo { mask-image:linear-gradient(to bottom,transparent 0 39%,black 57%); }
/* Paint continuous ribbons over the blue sky and the photograph. The devices
   occlude the light here; the live title is painted above the entire scene. */
.wave-scene .wave-light {
  z-index:1;
  left:50%;
  width:max(100%,100vw);
  height:44.444444%;
  transform:translateX(-50%);
  overflow:clip;
}
.wave-scene .wave-device { z-index:2; }
.wave-light > div {
  --wavelength:var(--tile-width);
  position:absolute;
  inset:0 auto 0 0;
  height:100%;
  background-repeat:repeat-x;
  background-size:var(--wavelength) 100%;
}
/* Raster tiling rounds the period to a CSS pixel in WebKit. Use that same
   period for the phase translation so the loop lands on the identical crest. */
@supports (width:round(nearest, 30%, 1px)) {
  .wave-light > div { --wavelength:round(nearest, var(--tile-width), 1px); }
}
/* The extra width supplies complete crests entering from beyond the viewport.
   Each PNG spans exactly one wavelength with matching light at its edges. */
.wave-ribbon-violet {
  --tile-width:32%;
  width:200%;
  background-image:url("../cristal/faixa-violeta.webp?v=webp-1");
}
.wave-ribbon-cyan {
  --tile-width:33.3333333333%;
  width:315%;
  background-image:url("../cristal/faixa-ciano.webp?v=webp-1");
}
.motion-opt-in .hero-set:not(.offstage) .wave-light > div { will-change:transform; }
.wave-scene .wave-reflections {
  inset:0;
  height:100%;
  overflow:hidden;
}
.wave-floor-light, .wave-floor-light > img {
  position:absolute;
  display:block;
  max-width:none;
  height:auto;
}
/* Each light occupies its chassis' coordinate system. The cropped image can
   extend below the contact line and shares the hardware's transform origin. */
.wave-floor-light[data-reflection="ipad"] { aspect-ratio:250 / 353; }
.wave-floor-light[data-reflection="mac"] { aspect-ratio:576 / 366; }
.wave-floor-light[data-reflection="iphone"] { aspect-ratio:133 / 253; }
.wave-floor-light[data-reflection="ipad"] > img {
  left:-33.6%; top:83.002833%; width:170.8%;
}
.wave-floor-light[data-reflection="mac"] > img {
  left:-37.326389%; top:59.836066%; width:160.9375%;
}
.wave-floor-light[data-reflection="iphone"] > img {
  left:-69.172932%; top:62.055336%; width:214.285714%;
}
.wave-scene .wave-ipad, .wave-scene [data-reflection="ipad"] {
  left:71.015625%; top:23.888889%; width:19.53125%;
  --device-dx:1.5%; --device-dy:-3.5%;
  transform-origin:54% 70%;
}
.wave-scene .wave-mac, .wave-scene [data-reflection="mac"] {
  left:38.515625%; top:35%; width:45%;
  --device-dx:-1.2%; --device-dy:1.5%;
  transform-origin:51% 77%;
}
.wave-scene .wave-iphone, .wave-scene [data-reflection="iphone"] {
  left:84.921875%; top:47.083333%; width:10.390625%;
  --device-dx:3.6%; --device-dy:2.2%;
  transform-origin:48% 72%;
}
.armed #inicio.device-travel::after {
  content:"";
  display:block;
  height:clamp(145px,23svh,248px);
}
.armed #inicio.device-travel .hero-sticky {
  position:sticky;
  top:var(--device-pin-top,var(--nav-h));
}
.armed #inicio.device-travel :is(.wave-device, .wave-floor-light) {
  transform:translate(calc(var(--device-progress,0) * var(--device-dx)),
                      calc(var(--device-progress,0) * var(--device-dy)))
            scale(calc(1 + var(--device-progress,0) * .11));
}
.armed #inicio:not(.device-travel) :is(.wave-device, .wave-floor-light) {
  transform:translate(calc(var(--device-drift,0) * var(--device-dx)),
                      calc(var(--device-drift,0) * var(--device-dy)));
}
#inicio .hero-body {
  grid-area:1 / 1;
  align-self:center;
  width:var(--scene-width);
  max-width:none;
  height:auto;
  padding:0 var(--scene-inset);
}
#inicio .hero-copy { width:35.4%; }
#inicio h1 { font-size:clamp(47px,min(5.65vw,calc(var(--wide-frame) * .0565)),176px); line-height:.97; }
#inicio h1 em { color:#d3b7f1; -webkit-text-fill-color:currentColor; }
#inicio .lede {
  max-width:min(34ch,92%);
  margin-top:clamp(16px,1.8vw,32px);
  font-size:clamp(15px,min(1.42vw,calc(var(--wide-frame) * .0142)),32px);
  line-height:1.43;
}
#inicio .hero-actions { margin-top:clamp(16px,2vw,34px); gap:8px clamp(13px,1.4vw,22px); }
#inicio .button-face { transform:none; transition:none; }
#inicio .scroll-glyph::after { animation:none; }
#inicio .hero-caption { white-space:nowrap; }

@media (max-width:599px), (max-width:900px) and (min-height:541px),
       (max-width:1024px) and (orientation:portrait) {
  #inicio .hero-sticky {
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
  }
  #inicio .hero-body {
    order:-1;
    width:100%;
    margin:0;
    padding:clamp(32px,6.5vw,55px) var(--gutter) 0;
  }
  #inicio .hero-copy { width:100%; max-width:36rem; }
  #inicio h1 { font-size:clamp(52px,10.8vw,85px); }
  #inicio .lede { max-width:40ch; font-size:clamp(15px,2.5vw,18px); margin-top:17px; }
  #inicio .hero-actions { margin-top:18px; }
  #inicio .hero-set {
    position:relative;
    inset:auto;
    display:block;
    width:100%;
    margin-top:clamp(10px,2vw,20px);
  }
  /* The three devices occupy the right part of the photo. Crop the empty left
     margin as a group so the light, glass and hardware retain their registration. */
  .wave-scene { width:153%; margin-inline-start:-49%; }
  .wave-scene .wave-light { width:100%; }
  .wave-ribbon-cyan { --tile-width:23%; }
  #inicio .hero-footer {
    position:relative;
    inset:auto;
    padding:0 0 14px;
    margin-top:0;
    font-size:clamp(10px,1.6vw,12px);
  }
}
@media (min-width:550px) and (max-width:599px),
       (min-width:550px) and (max-width:900px) and (min-height:541px),
       (min-width:550px) and (max-width:1024px) and (orientation:portrait) {
  .wave-scene { width:134%; margin-inline-start:-31%; }
}
@media (min-width:901px) and (max-width:1024px) and (orientation:portrait) {
  .wave-scene { width:150%; margin-inline-start:-47%; }
}
@media (min-width:600px) and (max-width:1024px) and (max-height:540px) and (orientation:landscape) {
  #inicio { --wide-frame:calc((100svh - var(--nav-h)) * 16 / 9); }
  #inicio .hero-body { width:100%; }
  #inicio .hero-copy { width:calc(50vw - var(--wide-frame) * .15 - var(--scene-inset) - 12px); }
  #inicio h1 { font-size:clamp(30px,4.4vw,42px); }
  #inicio .lede { font-size:14px; margin-top:10px; }
  #inicio .hero-actions { margin-top:12px; gap:4px 10px; }
  #inicio .button-face { min-height:36px; padding:9px 12px; font-size:11px; }
  #inicio .watch { font-size:11px; }
  #inicio .hero-footer { position:absolute; inset:auto 0 5px; margin-block:0; padding:0; font-size:10px; }
}
@media (max-width:355px) {
  #inicio .hero-caption { gap:4px; }
}
