/* ===========================================================================
   Full-screen video hero (section kind "video_hero").

   A film fills the screen under a light tint; the copy is a quiet stack low
   on the reading side: a pill, a large light headline, one paragraph and two
   squared-off buttons. A short uppercase line closes the far bottom corner.
   Light mode keeps the cream-and-charcoal buttons of the reference; the gold
   glass theme turns them gold and smoked glass.

   Only opacity and transform animate. Reduced motion: nothing animates, the
   curtain never shows and the film stays on its poster.
   =========================================================================== */
.sec-vhero{
  --vh-pad:clamp(20px,5.9vw,85px);
  --vh-top:96px;
  --vh-wait:1.05s;             /* the curtain's turn before the copy arrives */
  --vh-font:"Outfit",var(--font-heading,system-ui),system-ui,sans-serif;
  position:relative;
  padding:0!important;margin:0;
  background:#0d0d0f;color:#fff;
}
/* the screen itself; in scroll mode it is pinned while the track scrolls by */
.vh-stage{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column;
}
html.vh-js .sec-vhero.vh-scrub{height:300vh;height:300svh}
html.vh-js .vh-scrub .vh-stage{position:sticky;top:0;height:100vh;height:100svh;min-height:0}

/* how far through the film: a hairline along the bottom of the screen */
.vh-progress{
  position:absolute;inset-inline:0;bottom:0;height:2px;z-index:1;
  background:rgba(255,255,255,.14);pointer-events:none;
}
.vh-progress-bar{
  display:block;height:100%;background:rgba(255,255,255,.85);
  transform:scaleX(0);transform-origin:left center;
}
body.rtl .vh-progress-bar{transform-origin:right center}
html.theme-gold .vh-progress-bar{background:var(--gl-gold,#e8b64c)}
body.rtl .sec-vhero{--vh-font:var(--font-heading,system-ui),system-ui,sans-serif}
html.vh-seen .sec-vhero{--vh-wait:0s}

/* ------------------------------------------------------------- the film */
.vh-media{
  position:absolute;inset:0;z-index:-1;
  background:#0d0d0f center/cover no-repeat;
}
.vh-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vh-tint{
  position:absolute;inset:0;pointer-events:none;
  background:
    /* a soft pool of shade under the copy, so white text holds on bright footage */
    linear-gradient(90deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.16) 46%,rgba(0,0,0,0) 72%),
    linear-gradient(0deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,0) 34%),
    rgba(0,0,0,var(--vh-tint,25%));
}
body.rtl .vh-tint{
  background:
    linear-gradient(270deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.16) 46%,rgba(0,0,0,0) 72%),
    linear-gradient(0deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,0) 34%),
    rgba(0,0,0,var(--vh-tint,25%));
}
.sec-vhero .vh-video{animation:vh-settle 2.6s cubic-bezier(.16,1,.3,1) var(--vh-wait) both}

/* ------------------------------------------------------------- the copy */
.vh-inner{
  flex:1;display:flex;align-items:center;
  padding:calc(var(--vh-top) + 2vh) var(--vh-pad) 13vh;
}
.vh-copy{max-width:38rem;text-align:start}
.vh-badge{
  display:inline-flex;align-items:center;
  font:500 .8rem/1 var(--vh-font);letter-spacing:.01em;
  padding:.5rem .85rem;border-radius:999px;
  background:rgba(250,248,245,.92);color:#1a1a1a;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.vh-title{
  margin:1.15rem 0 0;overflow:hidden;padding-bottom:.08em;
  font-family:var(--vh-font);font-weight:400;
  font-size:clamp(2.45rem,4.25vw,3.85rem);line-height:1.15;letter-spacing:-.012em;
  color:#fff;text-wrap:balance;
}
.vh-title > span{display:block}
.vh-title .accent{font-style:normal;color:inherit}
.vh-sub{
  margin:1.1rem 0 0;max-width:30rem;
  font:400 1.05rem/1.55 var(--vh-font);color:rgba(255,255,255,.92);
  text-wrap:pretty;
}
.vh-ctas{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.9rem}
.vh-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:48px;padding:0 24px;border-radius:12px;
  font:500 .82rem/1 var(--vh-font);letter-spacing:.01em;text-decoration:none;
  transition:transform .25s cubic-bezier(.16,1,.3,1),background-color .25s,color .25s,box-shadow .25s;
}
.vh-btn:hover{transform:translateY(-2px)}
.vh-btn:active{transform:translateY(0) scale(.98)}
.vh-btn:focus-visible,.vh-pause:focus-visible{outline:2px solid #fff;outline-offset:3px}
.vh-btn-solid{background:#1a1a1a;color:#faf8f5}
.vh-btn-solid:hover{background:#000;color:#fff;box-shadow:0 12px 28px -14px rgba(0,0,0,.7)}
.vh-btn-soft{
  background:rgba(240,236,230,.94);color:#1a1a1a;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.vh-btn-soft:hover{background:#faf8f5;color:#000}

/* the closing line in the far corner */
.vh-note{
  position:absolute;inset-inline-end:var(--vh-pad);bottom:clamp(22px,4.2vh,40px);
  max-width:25rem;margin:0;text-align:end;
  font:400 .875rem/1.5 var(--vh-font);letter-spacing:.025em;text-transform:uppercase;
  color:rgba(255,255,255,.75);
}
body.rtl .vh-note{letter-spacing:0;text-transform:none}

/* pause / play: the film loops for ever, so it gets an off switch */
.vh-pause{
  position:absolute;inset-inline-start:var(--vh-pad);bottom:clamp(22px,4.2vh,40px);
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.28);background:rgba(0,0,0,.22);color:#fff;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background-color .2s,border-color .2s;
}
.vh-pause:hover{background:rgba(0,0,0,.4);border-color:rgba(255,255,255,.5)}
.vh-pause svg{width:18px;height:18px}
.vh-pause .vh-i-play,.vh-held .vh-pause .vh-i-pause{display:none}
.vh-held .vh-pause .vh-i-play{display:block}

/* --------------------------------------------------------- the curtain */
.vh-curtain{
  position:fixed;inset:0;z-index:200;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
  background:#0d0d0f;color:#f5f1ea;
  animation:vh-lift .75s cubic-bezier(.76,0,.24,1) .95s both;
}
.vh-curtain-name{
  font:500 clamp(1rem,1.6vw,1.35rem)/1 var(--vh-font);letter-spacing:.32em;text-transform:uppercase;
  padding-inline-start:.32em;  /* balance the tracking after the last letter */
  animation:vh-fade .5s ease-out .05s both;
}
body.rtl .vh-curtain-name{letter-spacing:0;padding:0}
.vh-curtain-line{
  width:min(220px,46vw);height:1px;background:currentColor;opacity:.7;
  transform-origin:left center;animation:vh-draw .7s cubic-bezier(.65,0,.35,1) .15s both;
}
body.rtl .vh-curtain-line{transform-origin:right center}
html.vh-seen .vh-curtain{display:none}

/* ------------------------------------------------------- the entrance */
.vh-a{animation:vh-rise .95s cubic-bezier(.16,1,.3,1) both;
  animation-delay:calc(var(--vh-wait) + .12s + var(--d,0) * .09s)}
.vh-title > .vh-a{animation-name:vh-unmask;animation-duration:1.1s}

@keyframes vh-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes vh-unmask{from{transform:translateY(105%)}to{transform:none}}
@keyframes vh-settle{from{transform:scale(1.06)}to{transform:none}}
@keyframes vh-lift{to{transform:translateY(-100%);visibility:hidden}}
@keyframes vh-fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes vh-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media (prefers-reduced-motion:reduce){
  .vh-curtain{display:none}
  html.vh-js .sec-vhero.vh-scrub{height:auto}
  html.vh-js .vh-scrub .vh-stage{position:relative;height:auto;min-height:100vh;min-height:100svh}
  .vh-progress{display:none}
  .sec-vhero .vh-video,.vh-a,.vh-title > .vh-a{animation:none}
  .vh-btn{transition:none}
}

/* ----------------------------------------------------------- gold glass */
html.theme-gold .sec-vhero{background:#0a0a0c}
html.theme-gold .vh-curtain{background:#0a0a0c;color:var(--gl-gold-hi,#f7d27a)}
html.theme-gold .vh-title .accent{color:var(--gl-gold-hi,#f7d27a)}
html.theme-gold .vh-badge{
  background:rgba(12,12,15,.5);color:var(--gl-gold-hi,#f7d27a);
  border:1px solid rgba(232,182,76,.38);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
}
html.theme-gold .vh-btn-solid{background:var(--gl-gold,#e8b64c);color:var(--gl-gold-ink,#1a1206)}
html.theme-gold .vh-btn-solid:hover{background:var(--gl-gold-hi,#f7d27a);color:var(--gl-gold-ink,#1a1206);
  box-shadow:0 14px 30px -14px rgba(232,182,76,.65)}
html.theme-gold .vh-btn-soft{
  background:rgba(12,12,15,.45);color:#f3efe7;border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
}
html.theme-gold .vh-btn-soft:hover{background:rgba(12,12,15,.65);color:#fff;border-color:rgba(232,182,76,.5)}

/* --------------------------------------------------------------- sizes */
@media (max-width:1024px){
  .sec-vhero{--vh-top:88px}
  .vh-note{max-width:20rem;font-size:.78rem}
}
@media (max-width:768px){
  /* phones: the copy sits low, clear of the tab bar; the corner line goes */
  .sec-vhero{--vh-top:72px;--vh-bar:calc(58px + env(safe-area-inset-bottom,0px))}
  .vh-inner{align-items:flex-end;padding-bottom:calc(var(--vh-bar) + 84px)}
  .vh-title{font-size:clamp(2.1rem,9.4vw,2.7rem);line-height:1.12}
  .vh-sub{font-size:1rem}
  .vh-ctas{gap:.6rem}
  .vh-btn{flex:1 1 9.5rem}
  .vh-note{display:none}
  .vh-pause{bottom:calc(var(--vh-bar) + 20px)}
  .vh-progress{bottom:var(--vh-bar)}
  .vh-tint,body.rtl .vh-tint{
    background:
      linear-gradient(0deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.25) 45%,rgba(0,0,0,0) 70%),
      rgba(0,0,0,var(--vh-tint,25%));
  }
}
