/* Motion layer. Original typography, imagery and content stay in styles.css. */
:root{--motion-ease:cubic-bezier(.22,1,.36,1)}
.hero{height:100svh;max-height:none;min-height:650px}
.motion-enabled .results-image{transform:translate3d(0,var(--image-drift,0px),0);will-change:transform}
.motion-enabled .connected>.scene-video{transform:translate3d(0,var(--image-drift,0px),0) scale(-1.7,1.7);will-change:transform}

.motion-enabled [data-reveal]{opacity:0;transform:translate3d(0,42px,0);transition:opacity 900ms var(--motion-ease),transform 1100ms var(--motion-ease);transition-delay:var(--reveal-delay,0ms)}
.motion-enabled [data-reveal].is-revealed{opacity:1;transform:translate3d(0,0,0)}
.motion-enabled .surface-card[data-reveal]{transform:translate3d(0,55px,0) scale(.96)}
.motion-enabled .surface-card.is-revealed{transform:translate3d(0,0,0) scale(1)}
.motion-enabled .feature-card{transform:scale(.95);opacity:.55;transition:transform 620ms var(--motion-ease),opacity 620ms ease;transform-origin:center}
.motion-enabled .feature-card.is-current{transform:scale(1);opacity:1}
.motion-enabled .feature-card:not(.is-current):hover{opacity:.8;transform:scale(.97)}
.feature-track{position:relative;overflow:hidden;gap:clamp(12px,1.25vw,24px);padding-inline:var(--feature-gutter,10%);scroll-snap-type:none;scroll-behavior:auto;scroll-padding:0;touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain}
.feature-track>.feature-card{flex:0 0 var(--feature-width,80vw);scroll-snap-align:none;scroll-margin:0}
.feature-select{position:absolute;inset:0;z-index:5;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;padding:0;cursor:pointer;touch-action:pan-y pinch-zoom}
.feature-select[hidden]{display:none}
.feature-select:focus-visible{outline:3px solid #9be8ff;outline-offset:-6px}
.feature-track .feature-tabs,.feature-track button{cursor:pointer}
/* Secondary to the dots: small enough to read as a hint, not as the main control. */
/* Play: same height and blue as the dots pill, with a solid navy triangle (rounded corners), as on the artboard. */
.play-features{width:3.08vw;height:3.08vw;min-width:36px;min-height:36px;border-radius:50%;background:#204da6;color:var(--navy);display:grid;place-items:center;padding:0;transition:background-color .25s ease,transform .25s ease}
.play-features:hover{background:#2758bb;transform:scale(1.05)}.play-features:active{transform:scale(.94)}
.play-features[aria-pressed=true]{background:#2f62b8}
.play-features span{display:block;font-size:0;width:1.5vw;height:1.5vw;min-width:17px;min-height:17px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M8 5v14l12-7z%27 fill=%27%23000%27 stroke=%27%23000%27 stroke-width=%273%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M8 5v14l12-7z%27 fill=%27%23000%27 stroke=%27%23000%27 stroke-width=%273%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/contain no-repeat;transform:translateX(6%)}
.play-features[aria-pressed=true] span{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Crect x=%275%27 y=%274.5%27 width=%275.5%27 height=%2715%27 rx=%272%27/%3E%3Crect x=%2713.5%27 y=%274.5%27 width=%275.5%27 height=%2715%27 rx=%272%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Crect x=%275%27 y=%274.5%27 width=%275.5%27 height=%2715%27 rx=%272%27/%3E%3Crect x=%2713.5%27 y=%274.5%27 width=%275.5%27 height=%2715%27 rx=%272%27/%3E%3C/svg%3E");transform:none}
.carousel-dots button.active::before{content:"";position:absolute;left:0;top:0;height:100%;width:calc(.68vw + var(--carousel-progress,0)*(100% - .68vw));min-width:8px;border-radius:inherit;background:#4cc9ff;opacity:0;transition:opacity .12s ease}
.features.is-playing .carousel-dots button.active::before{opacity:1}
.carousel-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.surface-card,.impact-panel,.feature-panel{contain:paint}
.interactive-explore{padding:5vw 0 0;background:#fff;color:var(--navy)}
.interactive-explore>h2{margin:0 5% 5vw}
.tour-scroll{position:relative;height:calc((var(--tour-units,14) + 1)*100svh);isolation:isolate;text-align:left}
.tour-pin{position:sticky;top:0;width:100%;height:100svh;min-height:480px;background:#f4f5f8;overflow:hidden}
#tour-frame{position:absolute;inset:0;width:100%;height:100%;border:0;opacity:0;transition:opacity 800ms ease;background:#f4f5f8}
.tour-poster{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:55px 25px 95px;text-align:center;color:#4a5674;transition:opacity 700ms ease}
.tour-poster img{width:100%;max-height:65svh;object-fit:contain}.tour-poster p{font-size:16px;max-width:560px}
#tour-retry{background:#164590;border:1px solid #4e7dbe;color:#fff;border-radius:30px;padding:12px 24px;font-size:14px}


.tour-scroll.is-ready #tour-frame{opacity:1}.tour-scroll.is-ready .tour-poster{opacity:0;pointer-events:none;visibility:hidden}
.tour-scroll.is-failed{height:100svh}.tour-scroll.is-failed #tour-frame{visibility:hidden;pointer-events:none}.tour-scroll.is-failed .tour-poster{opacity:1;visibility:visible;pointer-events:auto}
.tour-scroll.is-reduced{height:100svh}
/* A short viewport never clips the contact controls or the guided-tour exit. */
@media(max-height:650px) and (min-width:701px){.hero{min-height:100svh}.hero-copy{top:18%}.hero h1{font-size:min(5.805vw,9svh);margin:2svh 0 3svh}.product-name{font-size:2.7svh}.tour-pin{min-height:360px}x}}
@media(max-width:700px){
 .hero{height:max(760px,100svh);min-height:0}
 .motion-enabled .connected>.scene-video{transform:translate3d(0,var(--image-drift,0px),0) scale(-1.06,1.06);transform-origin:center}

 .motion-enabled [data-reveal]{transform:translate3d(0,24px,0);transition-duration:700ms}
 .feature-track{touch-action:pan-y pinch-zoom}
 .play-features{width:36px;height:36px;min-width:36px;min-height:36px}
 .carousel-controls{gap:8px}.carousel-dots{gap:14px;padding:14px 15px}
 .interactive-explore{padding-top:40px}.interactive-explore>h2{margin:0 25px 35px}
 .tour-scroll{height:calc((var(--tour-units,14) + 1)*100svh)}.tour-pin{height:100svh;min-height:420px}.tour-scroll.is-failed,.tour-scroll.is-reduced{height:100svh}
 .tour-poster{padding:50px 20px 100px}.tour-poster p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}.hero{height:57.6vw;min-height:620px}
 [data-reveal],.motion-enabled [data-reveal],.feature-card,.motion-enabled .feature-card{opacity:1!important;transform:none!important;transition:none!important}
 .tour-scroll{height:100svh!important}.tour-pin{position:relative}.play-features{display:none}
 @media(max-width:700px){.hero{height:850px;min-height:0}}
}

@media print{.feature-track{overflow:visible;padding:0}.feature-select,.carousel-controls{display:none!important}}




.results-chapter{height:175svh;background:#f5f5f5}
.results-chapter>.results{position:sticky;top:0;height:100svh;max-height:none;min-height:0}
.results-chapter .results-copy{padding-top:clamp(32px,5.2svh,72px);z-index:2}
.results-chapter .results-grid{margin-top:clamp(20px,3.5svh,48px)}
.results-chapter .results h2{font-size:clamp(26.1px,min(3.825vw,5.4svh),73.8px)}
.results-chapter .results-grid strong{font-size:clamp(50px,min(7vw,10svh),135px)}
.assembly-model{position:absolute;top:var(--model-top,42%);bottom:var(--model-bottom,9%);left:8%;width:84%;height:calc(100% - var(--model-top,42%) - var(--model-bottom,9%));border:0;opacity:0;pointer-events:none;z-index:1}
.results.has-assembly-model .assembly-model{opacity:1}
.results.has-assembly-model>.results-image{visibility:hidden}
.results-chapter .results-image{transform:none!important}
.results-note{z-index:2}

@media(max-width:700px){.assembly-model{left:0;width:100%}.results-chapter{height:175svh}.results-chapter .results-copy{padding:32px 18px 0}.results-chapter .results h2{font-size:clamp(22.5px,3.6svh,26.1px)}.results-chapter .results-grid{margin-top:22px}.results-chapter .results-grid strong{font-size:clamp(44px,7svh,55px)}}
@media(prefers-reduced-motion:reduce){.results-chapter{height:auto}.results-chapter>.results{position:relative;min-height:730px}}
@media print{.results-chapter{height:auto}.results-chapter>.results{position:relative}.assembly-model{display:none}.results-image{visibility:visible!important}}





/* Hide the photo before the first paint, rather than replacing a visible oversized poster. */
.has-js .results>.results-image{opacity:0;visibility:hidden}
.has-js .results.assembly-unavailable>.results-image{opacity:1;visibility:visible}
.assembly-model{transition:opacity 650ms ease}
.floor-indicators{position:absolute;left:var(--indicators-x,24%);top:var(--indicators-y,78%);width:clamp(60px,8vw,145px);transform:translate(-65%,-45%);pointer-events:none;z-index:3;mix-blend-mode:multiply;opacity:0}
.floor-indicators svg{display:block;width:100%;height:auto}
.has-assembly-model .floor-indicators{opacity:var(--indicators-opacity,0);transition:opacity 350ms ease}
@media(prefers-reduced-motion:reduce){.assembly-model,.floor-indicators{transition:none!important}}
@media print{.has-js .results>.results-image{opacity:1;visibility:visible}.floor-indicators{display:none}}

.floor-indicators{top:calc(var(--ground-y,78%) + 12px);width:clamp(70px,8vw,130px);transform:translate(-45%,-35%)}

/* Studio floor, contact shadow and SafeView icons: proportions measured on the Illustrator artboard, scaled by the projected bed width. */
.results-chapter{height:115svh}



@media(prefers-reduced-motion:reduce){.results-chapter{height:auto}}

.floor-indicators{left:clamp(42px,var(--indicators-x,24%),85%)}

@media(min-width:701px){.results-chapter .results-copy{padding-top:10.8svh}.results-chapter .results-grid{margin-top:8.5svh}}

/* The live model remains visible after its one-time camera move. */
.results-chapter>.results{background:#f4f4f4;isolation:isolate}
.assembly-model{z-index:2}
.results-chapter .results-copy,.results-note{z-index:4}
.results.has-assembly-model::before{content:"";position:absolute;pointer-events:none;z-index:0;left:calc(50% - var(--ground-width,40vw)*2.42);width:calc(var(--ground-width,40vw)*4.84);top:calc(var(--ground-y,78%) - var(--ground-width,40vw)*.204);height:200svh;border-radius:50% 50% 0 0/calc(var(--ground-width,40vw)*.42) calc(var(--ground-width,40vw)*.42) 0 0;background:#fff;filter:blur(8px)}
.results.has-assembly-model::after{content:"";position:absolute;pointer-events:none;z-index:1;left:calc(var(--ground-x,50%) + var(--ground-width,40vw)*.1);top:calc(var(--ground-y,78%) + var(--ground-width,40vw)*.045);width:calc(var(--ground-width,40vw)*1.8);height:calc(var(--ground-width,40vw)*.345);transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(38,40,44,.29) 0%,rgba(38,40,44,.22) 25%,rgba(38,40,44,.14) 50%,rgba(38,40,44,.065) 75%,transparent 100%);filter:blur(4px)}
.has-js .results>.results-image{display:none}
@media print{.has-js .results>.results-image{display:block}}

/* Match the lighter finish and compact floor projection of the reference. */
.assembly-model{filter:brightness(1.16) contrast(1.025) saturate(1.02)}
.floor-indicators{left:calc(var(--indicators-x,24%) + var(--ground-width,40vw)*.062);top:calc(var(--indicators-y,78%) - var(--ground-width,40vw)*.068);width:calc(var(--ground-width,40vw)*.21);transform:translate(-55.3%,-47%);transform-origin:50% 50%}

/* Explore poster: while the 3D loads there is no picture, only a spinner and the status line. */
.tour-poster img{display:none}
.tour-spinner{width:46px;height:46px;border-radius:50%;border:2px solid rgba(86,136,255,.25);border-top-color:#5688ff;animation:tour-spin .9s linear infinite}
@keyframes tour-spin{to{transform:rotate(360deg)}}
.tour-scroll.is-failed .tour-poster img{display:block}
.tour-scroll.is-failed .tour-spinner{display:none}
@media(prefers-reduced-motion:reduce){.tour-spinner{animation-duration:2.4s}}

/* ── Iconography entrances ─────────────────────────────────────────────
   All gated by .motion-enabled, so reduced motion shows the icons as they are. */

/* 1 · Impact tab icons draw their strokes in; the chosen tab's icon pops and glows. */
.motion-enabled .impact-tabs svg *{stroke-dasharray:var(--len,200);stroke-dashoffset:var(--len,200)}
.motion-enabled .impact-tabs.icons-in svg *{stroke-dashoffset:0;transition:stroke-dashoffset 1s cubic-bezier(.65,0,.35,1) var(--delay,0s)}
.impact-tabs svg{transform-origin:50% 50%}
.motion-enabled .impact-tabs button.icon-pop svg{animation:icon-pop .7s cubic-bezier(.34,1.56,.64,1)}
/* Clicking a tab draws its icon again, shape by shape. */
.motion-enabled .impact-tabs button.icon-draw svg *{animation:icon-draw .95s cubic-bezier(.65,0,.35,1) var(--kdelay,0s) both}
@keyframes icon-draw{from{stroke-dashoffset:var(--len,200)}to{stroke-dashoffset:0}}
@keyframes icon-pop{
  0%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(86,160,255,0))}
  35%{transform:scale(1.09);filter:drop-shadow(0 0 7px rgba(86,160,255,.9))}
  100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(86,160,255,0))}
}

/* 2 · "Ver vídeo": the pill opens from its centre, the triangle slides in, then a soft halo every 3 s. */
.play-icon{position:relative}
.play-icon i{font-style:normal;display:block;line-height:1}
/* Keyed to .has-js (set in <head>) rather than .motion-enabled, so the hero button never shows before it animates. */
@media(prefers-reduced-motion:no-preference){
  .has-js .play-icon{animation:play-open .8s cubic-bezier(.22,1,.36,1) .9s both}
  .has-js .play-icon i{animation:play-glyph .7s cubic-bezier(.22,1,.36,1) 1.25s both}
  .has-js .video-label{animation:play-label .6s ease 1.45s both}
  .has-js .play-icon::after{content:"";position:absolute;inset:-1px;border:1px solid #fff;border-radius:inherit;opacity:0;pointer-events:none;animation:play-halo 3s ease-out 2.4s infinite}
}
.video-button:hover .play-icon::after{animation-play-state:paused}
@keyframes play-open{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes play-glyph{from{transform:translateX(-70%);opacity:0}to{transform:none;opacity:1}}
@keyframes play-label{from{transform:translateY(6px);opacity:0}to{transform:none;opacity:1}}
@keyframes play-halo{0%{transform:scale(1);opacity:.55}60%,100%{transform:scale(1.5);opacity:0}}

/* 3 · (removed) The impact figure used to lift and glow when the count landed; the artboard has no such flourish. */

/* 4 · Impact ring sweeps as the figure counts up, and again on every tab change. It stops at the
   figure's share of the circle (--ring-target, set by motion.js from the number: 55% = 198deg), so
   the ring reads as the value, not as a spinner. Without motion the ring rests at that angle. */
@property --sweep{syntax:'<angle>';inherits:false;initial-value:360deg}
@property --start{syntax:'<angle>';inherits:false;initial-value:0deg}
/* The lit arc (::after) first runs one full lap like a loader — it grows from the top, travels round
   with its tail following — and on the second lap fills from the top up to the value. The dim full
   ring (::before) stays underneath, so the unfilled share still reads as part of the circle. */
.motion-enabled .impact-ring::after{--start:0deg;--sweep:0deg}
.motion-enabled .impact-ring.is-swept::after{animation:ring-sweep 2.2s both}
/* First pass: the ring fills from the top until the whole circle is lit. Second pass: the head keeps
   going while the tail leaves the top and chases it round, so the lit arc travels once more and
   comes to rest from the top up to the value (head = start + sweep, always moving forward). */
@keyframes ring-sweep{
  0%{--start:0deg;--sweep:0deg;animation-timing-function:cubic-bezier(.45,0,.9,.7)}
  58%{--start:0deg;--sweep:360deg;animation-timing-function:cubic-bezier(.15,.35,.2,1)}
  100%{--start:360deg;--sweep:var(--ring-target,360deg)}
}
/* The hospital figure is not a ring: it fades and settles in instead of sweeping. */
.motion-enabled .hospital .impact-ring,.motion-enabled .hospital .impact-ring.is-swept{-webkit-mask-image:none;mask-image:none;animation:figure-in .9s var(--motion-ease) both}
@keyframes figure-in{from{opacity:0;transform:translate3d(-12px,10px,0)}to{opacity:1;transform:none}}

/* A counting figure runs inside a box the size of its final value. Intermediate numbers are
   not all the same width in Saira, so they overflow the box instead of resizing it: the
   suffix, the ring and the copy beside them never move, and the resting layout is unchanged. */
.count-figure{display:inline-block;text-align:center;white-space:nowrap}
/* A figure with something right after it ("55%", "1,3 milhão") makes room for its widest running number and eases back. */
.count-figure.is-enveloped{transition:width .25s ease-out}
/* Outranks the "%" rule (strong span), which would otherwise shrink the box to .7em. */
.impact-number .count-figure,.results-grid .count-figure,.surface-stats .count-figure{font:inherit}
/* Reserved by the motion layer while a panel swaps; released on resize. */
[data-hold-height]{transition:min-height 260ms var(--motion-ease)}
@media(prefers-reduced-motion:reduce){[data-hold-height]{transition:none}}

/* ── Hero ──────────────────────────────────────────────────────────────
   The footage is the whole effect. The section is one screen tall and scrolls away like any
   other: no pin, no zoom, no veil, nothing to read as a transition. The copy only fades up
   once on arrival so it does not pop in over the first frame. */
.hero video.hero-image{transform:none;object-fit:cover}
.has-js .hero-copy{animation:hero-fade .9s ease-out .15s both}
@keyframes hero-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.has-js .hero-copy{animation:none;opacity:1}}

/* ── Carousel cards ────────────────────────────────────────────────────
   A pill slides between the tabs of a card, and the tab text crossfades with it. On the lighter
   photographs the old flat highlight washed out, so it was not obvious that anything happened.
   The photograph itself settles in from a slightly wider framing when the card takes focus and
   drifts back out when it loses it; the slow breathing rides on `scale`, which composes with it. */
.motion-enabled .feature-tabs{position:relative}
.motion-enabled .feature-tabs.has-tab-pill::before{content:"";position:absolute;left:0;right:0;top:0;height:var(--tab-h,56px);
  border-radius:40px;background:#84aade38;
  transform:translateY(var(--tab-y,0px));transition:transform .5s var(--motion-ease),height .5s var(--motion-ease);pointer-events:none}
.motion-enabled .feature-tabs.has-tab-pill button{position:relative;z-index:1;background:none;border-color:#fff;transition:color .35s ease,border-color .35s ease,background-color .35s ease}
.motion-enabled .feature-tabs.has-tab-pill button.active{background:none;border-color:transparent;color:#fff}
/* Resting tabs are outlined in white over the photograph; hover fills them with the pill's tint. */
@media(hover:hover){.feature-tabs button:hover:not(.active),.motion-enabled .feature-tabs.has-tab-pill button:hover:not(.active){background:#84aade38;color:#fff;border-color:#fff}}
/* Each card carries its own loop; it settles in from a slightly wider framing when the card takes
   focus and drifts back out when it loses it. The still stays underneath as poster and fallback. */
.feature-card>.card-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;z-index:-3}
.motion-enabled .feature-card:not([data-ghost])::before,.motion-enabled .feature-card>.card-video{scale:1.07;transition:scale 1.3s var(--motion-ease)}
.motion-enabled .feature-card.is-current::before,.motion-enabled .feature-card.is-current>.card-video{scale:1}
.motion-enabled .feature-card.is-settled::before,.motion-enabled .feature-card.is-settled>.card-video{transition:none;scale:1}
@media(max-width:700px){.feature-card>.card-video{object-position:59% center}}

/* ── Ambient background ────────────────────────────────────────────────
   The full-bleed photographs breathe very slowly so they do not read as stills. Uses the
   independent `scale` property, which composes with the scroll drift already in `transform`
   and stays on the compositor. Different periods keep them from moving in lockstep. */
@keyframes ambient-breathe{from{scale:1}to{scale:1.045}}
.motion-enabled .feature-card[data-ghost].is-current::before{animation:ambient-breathe 34s ease-in-out infinite alternate;animation-delay:-14s}
@media(prefers-reduced-motion:reduce){.feature-card::before{animation:none!important;scale:none;transform:none!important}}
/* These two backgrounds are footage now, so their movement lives in the file, not in CSS. */
.scene-video{display:block}

/* ── Hero player ───────────────────────────────────────────────────────
   VER VÍDEO plays the full film over the whole screen, the way estudiantes-landing does: click
   anywhere to pause, a label follows the pointer, the timeline is a strip of frames and the
   controls leave after 3 s without movement. Opening it is a cut to cinema: the header rides up,
   the copy slides out to the left line by line, the play button sinks, the hero dims a little
   and the film fades in over it (below). Closing runs the same thing backwards. html.video-open drives the hero side,
   .hero-player.is-open the film. Delays live on the destination state, so the way out and the
   way back each have their own stagger. */
.site-header{transition:background-color .45s ease,transform .9s var(--motion-ease) .25s,opacity .6s ease .25s,visibility 0s linear .25s}
.hero-copy>*{transition:transform .9s var(--motion-ease),opacity .6s ease}
.hero-copy>:nth-child(1){transition-delay:.3s}
.hero-copy>:nth-child(2){transition-delay:.37s}
.hero-copy>:nth-child(3){transition-delay:.44s}
.video-button{transition:transform .9s var(--motion-ease) .4s,opacity .6s ease .4s}
.video-open .site-header{transform:translateY(-100%);opacity:0;visibility:hidden;pointer-events:none;transition:background-color .45s ease,transform .8s var(--motion-ease),opacity .55s ease,visibility 0s linear .8s}
.video-open .site-header>*{pointer-events:none}
.video-open .hero-copy>*{transform:translateX(-5vw);opacity:0}
.video-open .hero-copy>:nth-child(1){transition-delay:.05s}
.video-open .hero-copy>:nth-child(2){transition-delay:.11s}
.video-open .hero-copy>:nth-child(3){transition-delay:.17s}
.video-open .video-button{transform:translate(-50%,2.4vw);opacity:0;pointer-events:none;transition-delay:0s}
html.video-locked{overflow:hidden}

.hero-player{--hp-pad:3.85%;--hp-strip:clamp(40px,3.15vw,60px);position:fixed;inset:0;z-index:80;overflow:hidden;background-color:transparent;transition:background-color .6s ease;color:#fff;font-family:var(--display);cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.hero-player[hidden]{display:none}
.hero-player.is-dim{background-color:rgba(0,6,24,.45)}
.hero-player video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.08)}
.hero-player.is-open video{transform:none;transition:transform 5.5s cubic-bezier(.16,.6,.3,1)}
@media(max-aspect-ratio:1/1){.hero-player video{object-fit:contain}}
/* The film is mostly white walls and linen: the veils keep the white controls readable. */
.hero-player::before{content:"";position:absolute;inset:0 0 auto;height:22%;background:linear-gradient(180deg,rgba(0,19,68,.5),transparent);pointer-events:none;z-index:1;opacity:0;transition:opacity .6s ease}
.hero-player.is-open::before{opacity:1}
.hero-player.is-idle{cursor:none}
.hero-player.is-open.is-idle::before{opacity:0}

/* The cut: the film fades in over the dimmed hero (opacity on .hp-film), already playing, and the
   slow scale(1.08 → 1) on the video is the only movement. Closing (.is-film off) fades it back out
   over the hero. Durations match HP_* in script.js. */
.hp-film{position:absolute;inset:0;background:#000;opacity:0;transition:opacity .7s ease}
.hero-player.is-film .hp-film{opacity:1;transition:opacity 1s ease}

.hero-player-close{position:absolute;z-index:3;top:max(18px,1.75vw);right:var(--hp-pad);width:clamp(44px,2.9vw,56px);aspect-ratio:1;border-radius:50%;border:1px solid rgba(255,255,255,.8);background:rgba(0,19,68,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;padding:0;display:grid;place-items:center;cursor:pointer;opacity:0;transform:translateY(-1.2vw);transition:opacity .6s ease,transform .9s var(--motion-ease),background-color .3s ease}
.hero-player.is-open .hero-player-close{opacity:1;transform:none;transition-delay:.85s,.85s,0s}
.hero-player.is-open.is-idle .hero-player-close{opacity:.4;transition-delay:0s}
.hero-player-close span{position:relative;width:38%;aspect-ratio:1;transition:transform .5s var(--motion-ease)}
.hero-player-close span::before,.hero-player-close span::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:currentColor;transform:rotate(45deg)}
.hero-player-close span::after{transform:rotate(-45deg)}
.hero-player-close:hover{background:rgba(0,19,68,.7)}
.hero-player-close:hover span{transform:rotate(90deg)}

.hp-cursor{position:absolute;z-index:2;left:0;top:0;margin:-.4em 0 0 1.5em;font-size:clamp(11px,.78vw,15px);font-weight:500;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;text-shadow:0 0 .9em rgba(0,19,68,.9),0 0 .3em rgba(0,19,68,.6);pointer-events:none;opacity:0;transition:opacity .3s ease;will-change:transform}
.hero-player.has-pointer:not(.is-idle) .hp-cursor{opacity:.9}
@media(hover:none){.hp-cursor{display:none}}

.hp-ui{position:absolute;z-index:2;left:0;right:0;bottom:0;padding-top:4.5vw;background:linear-gradient(180deg,transparent,rgba(2,22,74,.72));cursor:default;opacity:0;transform:translateY(1.6vw);transition:opacity .5s ease,transform .8s var(--motion-ease)}
.hero-player.is-open .hp-ui{opacity:1;transform:none}
.hero-player.is-open.is-settling .hp-ui{transition-delay:.7s} /* wait for the film to be in */
.hero-player.is-open.is-idle .hp-ui{opacity:0;transform:translateY(1vw);transition-delay:0s;pointer-events:none}
.hp-bar{display:flex;align-items:center;gap:1.1em;padding:0 var(--hp-pad) .45em;font-size:clamp(12px,.82vw,15.5px);letter-spacing:.06em;font-variant-numeric:tabular-nums}
.hp-bar button{width:2.6em;aspect-ratio:1;flex:none;padding:0;border:0;border-radius:50%;background:none;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background-color .25s ease}
.hp-bar button:hover{background:rgba(255,255,255,.16)}
.hp-bar button span{width:1.05em;aspect-ratio:1;background:currentColor}
.hp-toggle span{clip-path:polygon(12% 4%,38% 4%,38% 96%,12% 96%,12% 4%,62% 4%,88% 4%,88% 96%,62% 96%,62% 4%)}
.hero-player.is-paused .hp-toggle span{clip-path:polygon(18% 2%,94% 50%,18% 98%)}
.hp-mute{margin-left:auto}
.hp-mute span{width:1.25em!important;-webkit-mask:var(--hp-icon) center/contain no-repeat;mask:var(--hp-icon) center/contain no-repeat;--hp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4.5v-15L7 9H3z'/%3E%3Cpath d='M15.5 8.2a5.3 5.3 0 0 1 0 7.6M18.2 5.4a9.2 9.2 0 0 1 0 13.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")}
.hp-mute[aria-pressed="true"] span{--hp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4.5v-15L7 9H3z'/%3E%3Cpath d='M15.5 9l6 6m0-6l-6 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")}
.hp-volume{width:clamp(80px,6vw,120px);height:1.4em;margin:0;accent-color:#fff;cursor:pointer}
@media(hover:none){.hp-volume{display:none}}

/* Timeline: thirty-two near-square frames of the film between two dashed rules, the playhead is a
   white line. The sprite is cropped to 6:5 (tools/video-thumbs.mjs). */
.hp-timeline{position:relative;height:calc(var(--hp-strip) + 1.3vw);min-height:calc(var(--hp-strip) + 14px);display:flex;align-items:center;cursor:pointer;touch-action:none;outline:0}
.hp-thumbs{flex:1;height:var(--hp-strip);display:flex;gap:clamp(2px,.28vw,5px);padding:clamp(2px,.2vw,4px) clamp(2px,.2vw,4px);border:dashed rgba(255,255,255,.85);border-width:1px 0}
.hp-thumbs i{flex:1;min-width:0;overflow:hidden;display:grid;place-items:center;border:1px solid rgba(255,255,255,.4);opacity:.72;transition:opacity .3s ease,border-color .3s ease}
.hp-thumbs i::before{content:"";width:max(100%,calc((var(--hp-strip) - 2*clamp(2px,.2vw,4px) - 4px)*6/5));aspect-ratio:6/5;background:url(assets/images/centrella-thumbs.webp) calc(var(--i)/31*100%) 0/3200% 100% no-repeat}
.hp-thumbs i.is-past{opacity:1}
@media(hover:hover){.hp-thumbs i:hover{opacity:1;border-color:#fff}}
.hp-progress{position:absolute;top:0;bottom:0;left:0;width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 12px rgba(0,174,239,.9);pointer-events:none;will-change:transform}
.hp-timeline:focus-visible .hp-thumbs{border-color:var(--cyan)}
@media(max-width:700px){
  .hero-player{--hp-pad:25px;--hp-strip:40px}
  .hp-thumbs i:not(:nth-child(3n+1)){display:none}
  .hp-ui{padding-top:60px}
  .hp-bar{padding-bottom:2px}
  .video-open .hero-copy>*{transform:translateX(-36px)}
  .video-open .video-button{transform:translate(-50%,24px)}
}
@media(prefers-reduced-motion:reduce){
  .site-header,.hero-copy>*,.video-button,.hero-player,.hero-player *,.hero-player.is-open,.hero-player.is-open *{transition-duration:.01s!important;transition-delay:0s!important}
  .hero-player video,.video-open .hero-copy>*{transform:none}
  .hp-film{transition:none!important}
}
