/* Daniel Fernandez / V24 - hero com YouTube ao fundo.
 * Para regular o escurecimento do video, ajuste --vh-dark-start e --vh-dark-end. */
.video-hero {
  --vh-lime:#d5ff67;
  --vh-lilac:#a88cff;
  --vh-dark-start:.88;
  --vh-dark-end:.56;
  position:relative;
  isolation:isolate;
  min-height:clamp(650px,calc(100svh - var(--df-header-height,96px)),1000px);
  overflow:hidden;
  color:#f6f8fa;
  background:#060d19;
}
.video-hero__visual,.video-hero__fallback,.video-hero__youtube,.video-hero__vignette,.video-hero__lines {position:absolute;inset:0;pointer-events:none}
.video-hero__visual {z-index:0;overflow:hidden;background:#081323}
.video-hero__fallback {z-index:1;overflow:hidden}
.video-hero__fallback-frame {position:absolute;inset:-5%;background-position:center center;background-size:cover;opacity:0;will-change:transform,opacity;animation:vh-fallback 21s linear infinite}
.video-hero__fallback-frame:nth-child(1){animation-delay:0s;opacity:1}
.video-hero__fallback-frame:nth-child(2){animation-delay:-14s}
.video-hero__fallback-frame:nth-child(3){animation-delay:-7s}
@keyframes vh-fallback {0%{opacity:0;transform:scale(1.11) translateX(-1%)}7%{opacity:1}26%{opacity:1}34%{opacity:0;transform:scale(1.025) translateX(1%)}100%{opacity:0}}
.video-hero__youtube {z-index:2;opacity:0;transition:opacity 1.3s ease;overflow:hidden;filter:saturate(.83) contrast(1.08);background:#090d13}
.video-hero[data-video-status="playing"] .video-hero__youtube{opacity:1}
.video-hero__youtube iframe {position:absolute;left:50%;top:50%;height:max(100%,56.25vw);width:max(100%,177.78vh);min-width:100%;min-height:100%;border:0;transform:translate(-50%,-50%) scale(1.07);pointer-events:none}
.video-hero__vignette {z-index:3; background:
  linear-gradient(90deg,rgba(6,10,17,var(--vh-dark-start)) 0%,rgba(6,10,17,.76) 43%,rgba(6,10,17,.26) 100%),
  linear-gradient(0deg,rgba(6,10,17,.92) 0%,transparent 27%,transparent 70%,rgba(6,10,17,.37) 100%),
  linear-gradient(110deg,rgba(22,25,62,.35) 30%,rgba(5,10,17,var(--vh-dark-end)) 100%);
}
.video-hero__lines {z-index:4;opacity:.23;background:
  linear-gradient(90deg,rgba(213,255,103,.1) 0 1px,transparent 1px 100%),
  linear-gradient(0deg,rgba(176,182,219,.04) 0 1px,transparent 1px 100%);background-size:clamp(80px,11vw,190px) 100%,100% 86px;
  -webkit-mask-image:linear-gradient(90deg,#000,transparent 82%);mask-image:linear-gradient(90deg,#000,transparent 82%)}
.video-hero__content {position:relative;z-index:5;min-height:inherit;display:flex;flex-direction:column;justify-content:space-between;padding-top:clamp(30px,4.3vh,56px);padding-bottom:clamp(22px,3.4vh,40px)}
.video-hero__toprow{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#b9c7d1;font:500 10px/1.4 var(--mono,'DM Mono',monospace);letter-spacing:1.45px}
.video-hero__toprow>span{display:flex;align-items:center;gap:10px}
.video-hero__dot{height:7px;width:7px;border-radius:50%;background:var(--vh-lime);box-shadow:0 0 0 5px rgba(213,255,103,.1),0 0 14px rgba(213,255,103,.52)}
.video-hero__main{width:min(100%,1130px);padding:clamp(38px,7vh,105px) 0 clamp(25px,6vh,85px)}
.video-hero__eyebrow{color:var(--vh-lime);font:500 clamp(10px,.85vw,12px)/1.45 var(--mono,monospace);letter-spacing:clamp(.8px,.13vw,2px);margin:0 0 clamp(25px,4vh,50px)}
.video-hero__headline{font-weight:700;font-size:clamp(62px,8.75vw,150px);line-height:.9;letter-spacing:-.075em;margin:0;max-width:13.5ch;text-transform:uppercase}
.video-hero__headline-top,.video-hero__headline-accent {display:block;width:max-content;max-width:100%;opacity:1;transform:translateY(0)}
.video-hero__headline-top{color:#f6f7fa}
.video-hero__headline-accent{color:var(--vh-lime);letter-spacing:-.088em;text-shadow:0 12px 50px rgba(213,255,103,.10)}
.video-hero__headline.is-long{font-size:clamp(48px,7.1vw,120px)}
.video-hero__headline.is-changing .video-hero__headline-top {animation:vh-title-out .44s cubic-bezier(.55,0,1,.45) both}
.video-hero__headline.is-changing .video-hero__headline-accent{animation:vh-title-out .38s cubic-bezier(.55,0,1,.45) .06s both}
.video-hero__headline.is-entering .video-hero__headline-top {animation:vh-title-in .75s cubic-bezier(.16,1,.3,1) both}
.video-hero__headline.is-entering .video-hero__headline-accent{animation:vh-title-in .85s cubic-bezier(.16,1,.3,1) .08s both}
/* V41 1.5.13: transicao visual original da 1.5.10, com blur,
   deslocamento e skew restaurados. O primeiro H1 continua estatico no
   carregamento: estas keyframes so atuam quando JS adiciona as classes
   is-changing/is-entering, apos 8 s do evento load ou selecao manual. */
@keyframes vh-title-in {from{opacity:0;filter:blur(14px);transform:translate3d(0,55px,0) skewY(2.3deg)}to{opacity:1;filter:blur(0);transform:translate3d(0,0,0) skewY(0deg)}}
@keyframes vh-title-out {to{opacity:0;filter:blur(9px);transform:translate3d(0,-35px,0) skewY(-2deg)}}
.video-hero__description{font-size:clamp(15px,1.15vw,18px);font-weight:400;color:#cbd4dd;max-width:565px;margin:28px 0 0;line-height:1.6;min-height:3.3em;transition:opacity .3s,transform .4s}
.video-hero__description.is-changing{opacity:0;transform:translateY(10px)}
.video-hero__discover{display:inline-flex;align-items:center;gap:25px;margin-top:clamp(28px,4vh,46px);color:var(--vh-lime);font:500 11px/1.6 var(--mono,monospace);letter-spacing:1px;padding-bottom:10px;border-bottom:1px solid rgba(213,255,103,.7);transition:gap .24s,color .24s}
.video-hero__discover:hover{gap:36px;color:white}
.video-hero__discover span{font-size:20px;line-height:1}
.video-hero__bottomrow{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid rgba(233,243,250,.2)}
.video-hero__selectors{display:flex;gap:clamp(10px,2.1vw,36px);align-items:center}
.video-hero__selector{color:#abb9c2;border:0;background:transparent;padding:12px 3px 14px;text-align:left;font:500 clamp(10px,.83vw,12px)/1.3 var(--mono,monospace);letter-spacing:.8px;position:relative;transition:color .25s}
.video-hero__selector::after{position:absolute;bottom:0;left:0;right:0;content:"";height:2px;background:rgba(255,255,255,.2)}
.video-hero__selector i{position:absolute;bottom:0;left:0;width:0;height:2px;background:var(--vh-lime);display:block;transition:width .28s}
.video-hero__selector.is-active{color:white}.video-hero__selector.is-active i{width:100%;animation:vh-bar 6.3s linear forwards}
.video-hero.is-copy-paused .video-hero__selector.is-active i {animation-play-state:paused}
@keyframes vh-bar{from{width:0}to{width:100%}}
.video-hero__selector-number{color:var(--vh-lime);margin-right:8px}
@media(max-width:990px){.video-hero{min-height:calc(100svh - 78px)}.video-hero__toprow>span:last-child{display:none}.video-hero__headline{font-size:clamp(55px,10vw,95px)}.video-hero__headline.is-long{font-size:clamp(45px,8vw,85px)}.video-hero__youtube iframe{width:max(100%,177.78vh);height:max(100%,56.25vw)}}
@media(max-width:700px){.video-hero{min-height:max(690px,calc(100svh - 78px))}.video-hero__content{padding-top:22px;padding-bottom:24px}.video-hero__main{padding:50px 0 45px}.video-hero__eyebrow{font-size:9px;margin-bottom:28px;letter-spacing:.5px}.video-hero__headline{font-size:clamp(54px,12vw,76px);line-height:.94;letter-spacing:-.07em}.video-hero__headline.is-long{font-size:clamp(42px,10vw,65px)}.video-hero__description{font-size:14px;margin-top:24px;max-width:340px;min-height:5em}.video-hero__discover{margin-top:20px;font-size:9px}.video-hero__vignette{background:linear-gradient(90deg,rgba(6,10,17,.88),rgba(6,10,17,.66)),linear-gradient(0deg,rgba(6,10,17,.94),transparent 46%,rgba(6,10,17,.4))}.video-hero__youtube iframe{width:max(100%,177.78vh);height:max(100%,56.25vw);left:54%;transform:translate(-50%,-50%) scale(1.1)}.video-hero__bottomrow{align-items:stretch;gap:12px;flex-direction:column}.video-hero__selectors{justify-content:space-between;gap:8px}.video-hero__selector{font-size:10px}}
@media(max-width:390px){.video-hero__headline{font-size:clamp(44px,11.8vw,60px)}.video-hero__headline.is-long{font-size:clamp(36px,9.9vw,50px)}.video-hero__eyebrow{font-size:8px}}
@media(prefers-reduced-motion:reduce){.video-hero__fallback-frame{animation:none;opacity:0}.video-hero__fallback-frame:first-child{opacity:1;transform:none}.video-hero__youtube{display:none}.video-hero__headline.is-changing .video-hero__headline-top,.video-hero__headline.is-changing .video-hero__headline-accent,.video-hero__headline.is-entering .video-hero__headline-top,.video-hero__headline.is-entering .video-hero__headline-accent,.video-hero__selector.is-active i{animation:none!important}.video-hero__selector.is-active i{width:100%}.video-hero__description{transition:none}}

/* V25: status only appears if YouTube is blocked or opened through file://. */
.video-hero__media-notice[hidden],.video-hero__media-notice button[hidden]{display:none!important}
.video-hero__media-notice{position:absolute;z-index:9;right:clamp(18px,3.9vw,72px);bottom:clamp(91px,12vh,142px);max-width:min(365px,calc(100% - 34px));padding:12px 14px;display:flex;align-items:center;gap:13px;flex-wrap:wrap;border:1px solid rgba(213,255,103,.22);background:rgba(5,11,19,.91);backdrop-filter:blur(10px);box-shadow:0 14px 34px rgba(0,0,0,.22);color:#d7e2e9;font:500 10px/1.5 var(--mono,monospace);letter-spacing:.15px}
.video-hero__media-notice button{border:1px solid rgba(213,255,103,.65);background:rgba(213,255,103,.12);color:#d5ff67;padding:8px 10px;font:600 10px/1.2 var(--mono,monospace);white-space:nowrap;cursor:pointer}
.video-hero__media-notice button:hover{background:#d5ff67;color:#09141b}
@media(max-width:700px){.video-hero__media-notice{bottom:122px;right:15px;padding:10px;max-width:min(310px,calc(100% - 30px));font-size:9px}}

/* V26: no longer hide a functioning iframe behind a PLAYING API event. */
.video-hero__youtube {opacity:1;transition:opacity .55s ease; background:transparent;}
.video-hero[data-video-status="fallback"] .video-hero__youtube,
.video-hero[data-video-status="local-file"] .video-hero__youtube {opacity:0;}
.video-hero__media-notice a[hidden] {display:none!important;}
.video-hero__media-notice a {border:1px solid rgba(213,255,103,.42);text-decoration:none;background:rgba(213,255,103,.1);color:#d5ff67;padding:8px 10px;font:600 10px/1.2 var(--mono,monospace);white-space:nowrap;}
@media(prefers-reduced-motion:reduce){.video-hero__youtube{display:none!important}}

/* V29: video strictly decorative; site links and service selectors remain interactive. */
.video-hero__youtube,
.video-hero__youtube iframe{pointer-events:none!important;user-select:none}
.video-hero__bottomrow{justify-content:flex-start}

/* V41 1.5.1: the hero poster remains visible until the deferred iframe loads. */
.video-hero__youtube {opacity:0}
.video-hero[data-video-status="ready"] .video-hero__youtube,
.video-hero[data-video-status="unverified"] .video-hero__youtube,
.video-hero[data-video-status="playing"] .video-hero__youtube {opacity:1}
.video-hero[data-video-status="loading"] .video-hero__youtube,
.video-hero[data-video-status="fallback"] .video-hero__youtube {opacity:0}

/* V41 1.5.10: in manual mode the first H1 remains stable for LCP.
   The three native selector buttons continue to change the headline on demand. */
.video-hero[data-copy-mode="manual"] .video-hero__selector.is-active i {
  animation:none!important; width:100%;
}

/* V41 1.5.11: reserva permanente para os tres estados do H1.
   As copias de medida sao invisiveis, decorativas e nao entram no LCP. */
.video-hero__headline-stage{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.video-hero__headline-stage>.video-hero__headline{grid-area:1 / 1}
.video-hero__headline-measure{visibility:hidden;pointer-events:none}
.video-hero[data-copy-mode="manual"] .video-hero__headline-measure{display:none}
/* A barra so inicia com o cronometro, depois do evento load.
   O primeiro ciclo leva 8 s; os seguintes, 6,3 s. */
.video-hero[data-copy-mode="auto"]:not(.is-copy-running) .video-hero__selector.is-active i{
  animation:none;width:0;
}
.video-hero[data-copy-mode="auto"].is-copy-running .video-hero__selector.is-active i{
  animation-duration:var(--vh-copy-duration,6300ms);
}
@media(prefers-reduced-motion:reduce){
  .video-hero[data-copy-mode="auto"]:not(.is-copy-running) .video-hero__selector.is-active i{width:100%}
}
