/* Glam & Fab — "Now Showing": five frameless, autoplaying treatment hooks.
   Each clip has no border, no controls and feathered edges, so it reads as if
   it were printed onto the page. A giant word sits behind the clip (same
   "masthead behind the model" idea as the cover hero).
   Until the real Flow clips exist, the poster drifts slowly (Ken Burns) so
   the section still feels like motion. Site tokens only. */
#hooks{position:relative;background:var(--deep,#2a1a18);color:var(--cream,#fdf8f5);overflow:clip;padding:0 0 4rem}
#hooks .hk-intro{max-width:760px;margin:0 auto;padding:7rem 1.5rem 2rem;text-align:center}
#hooks .hk-label{font-family:'Jost',sans-serif;font-size:.7rem;letter-spacing:.42em;text-transform:uppercase;color:var(--gold,#c9a96e);margin:0 0 1.1rem}
#hooks .hk-title{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:clamp(2.3rem,5.6vw,4.3rem);line-height:1.05;margin:0}
#hooks .hk-title em{font-style:italic;color:#e8b4a8}
#hooks .hk-rule{display:block;width:64px;height:1px;margin:2rem auto 0;background:linear-gradient(90deg,transparent,var(--gold,#c9a96e),transparent)}

/* one hook = one full-height scene */
.hk{position:relative;min-height:100vh;display:grid;place-items:center;padding:6vh clamp(1.25rem,5vw,5rem);isolation:isolate}

/* the treatment name: big champagne-gold masthead laid across the foot of the
   clip, half over the feathered edge and half on the dark page, so it stays
   readable on every clip. Sized from its letter count (--chars) so long names
   like "UA Treatment" still fit the screen. */
.hk-word{position:absolute;z-index:3;left:50%;top:calc(50% + min(40vh,410px));transform:translate(-50%,-60%);margin:0;white-space:nowrap;pointer-events:none;
  font-family:'Cormorant Garamond',serif;font-weight:600;text-transform:uppercase;letter-spacing:.06em;line-height:.9;
  font-size:min(11rem,calc(80vw / (var(--chars,6) * .7)));
  background:linear-gradient(180deg,#f7e6bd 0%,#dcbf86 45%,#b08a4a 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 8px 28px rgba(42,26,24,.7))}

/* the frameless clip: no border, edges dissolve into the page */
.hk-media{position:relative;z-index:1;height:min(80vh,820px);aspect-ratio:4/5;max-width:100%;overflow:hidden;
  --fx:18%;--fy:12%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fx),#000 calc(100% - var(--fx)),transparent),linear-gradient(180deg,transparent,#000 var(--fy),#000 calc(100% - var(--fy)*1.6),transparent);
  -webkit-mask-composite:source-in;
          mask-image:linear-gradient(90deg,transparent,#000 var(--fx),#000 calc(100% - var(--fx)),transparent),linear-gradient(180deg,transparent,#000 var(--fy),#000 calc(100% - var(--fy)*1.6),transparent);
          mask-composite:intersect}
.hk-media img,.hk-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hk-media img{animation:hk-drift 16s ease-in-out infinite alternate;transform-origin:50% 35%}
.hk-media video{opacity:0;transition:opacity 1.2s ease}
.hk.is-playing .hk-media video{opacity:1}
.hk.is-playing .hk-media img{animation:none;opacity:0;transition:opacity 1.2s ease 1.2s}
/* warm grade so the poster and clip match the site */
.hk-media::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;mix-blend-mode:soft-light;
  background:linear-gradient(170deg,rgba(255,206,150,.35),rgba(196,115,106,.18) 55%,rgba(42,26,24,.55))}
@keyframes hk-drift{from{transform:scale(1.02) translate3d(0,0,0)}to{transform:scale(1.1) translate3d(-1.5%,-1%,0)}}

/* one line + link beside the clip */
.hk-copy{position:absolute;z-index:2;right:clamp(1.25rem,6vw,6rem);top:18vh;max-width:18rem;text-align:right}
.hk-line{font-family:'Cormorant Garamond',serif;font-style:italic;font-weight:300;font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.2;margin:0 0 1.3rem;color:var(--cream,#fdf8f5)}
.hk-link{display:inline-block;color:var(--cream,#fdf8f5);text-decoration:none;font-size:.7rem;letter-spacing:.3em;text-transform:uppercase;border-bottom:1px solid var(--gold,#c9a96e);padding-bottom:.35rem}
.hk-link:hover{color:var(--gold,#c9a96e)}
/* gold hairline that fills as the clip plays */
.hk-bar{display:block;width:100%;height:1px;margin-top:1.4rem;background:rgba(201,169,110,.25);overflow:hidden}
.hk-bar i{display:block;height:100%;width:100%;background:var(--gold,#c9a96e);transform-origin:left;transform:scaleX(var(--t,0))}
.hk.flip .hk-copy{right:auto;left:clamp(1.25rem,6vw,6rem);text-align:left}

/* gentle entrance (only once the script is running) */
.hk-js .hk .hk-copy{opacity:0;transform:translateY(24px);transition:opacity 1s ease .2s,transform 1s ease .2s}
.hk-js .hk.in .hk-copy{opacity:1;transform:none}

@media(max-width:860px){
  .hk{min-height:auto;display:block;padding:3rem 1.25rem 2.5rem;text-align:center}
  .hk-media{height:auto;width:100%;max-width:440px;margin:0 auto;--fx:10%;--fy:9%}
  .hk-word{position:relative;left:auto;top:auto;transform:none;margin:-.5em auto 0;font-size:min(6.5rem,calc(90vw / (var(--chars,6) * .7)))}
  .hk-copy,.hk.flip .hk-copy{position:relative;inset:auto;max-width:none;text-align:center;margin:1.2rem auto 0}
  .hk-line{font-size:1.5rem;margin-bottom:1rem}
  .hk-bar{width:120px;margin:1.2rem auto 0}
}
@media(prefers-reduced-motion:reduce){
  .hk-media img{animation:none}
  .hk-js .hk .hk-copy{opacity:1;transform:none;transition:none}
}
