/* Video FV for the existing VERNARIA layout. All rules stay inside this header. */
.hero-with-film{isolation:isolate;min-height:calc(var(--fvh,100svh) - 64px);height:calc(var(--fvh,100svh) - 64px);text-align:left;align-items:center}
.hero-with-film::after{background:linear-gradient(90deg,rgba(247,245,241,.28),transparent 65%);z-index:1}
.hero-with-film .hero-inner.wrap{width:100%;max-width:1240px;min-height:0;padding:75px 48px;display:block;position:relative;z-index:3;pointer-events:none}
.hero-with-film .hero-focus,.hero-with-film .hero-top{width:46%;pointer-events:auto}
.hero-with-film .hero-focus:before{left:42%;width:125%;height:145%;background:radial-gradient(closest-side,#f7f5f1e6,transparent)}
.hero-with-film .hero-main{font-size:clamp(28px,3.2vw,44px);line-height:1.9;letter-spacing:.035em;white-space:normal}
.hero-with-film .hero-subcopy{font-size:clamp(12px,1.1vw,16px);letter-spacing:.06em;margin-top:25px}
.hero-with-film .hero-biz{justify-content:flex-start;font-size:11px;gap:4px 1px;line-height:2.2;letter-spacing:.025em;margin-top:22px}
.hero-with-film .hero-biz em{padding:0 .35em}
.hero-with-film .hero-top{margin-top:40px}
.hero-with-film .brand-logo{width:clamp(205px,21vw,275px);margin:0;height:auto}
.hero-film-media{position:absolute;inset:0 0 0 auto;width:61%;z-index:0;mix-blend-mode:multiply;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 12%)}
.hero-film-media video{width:100%;height:100%;display:block;object-fit:cover;object-position:84% 50%}
.hero-film-toggle{position:absolute;right:34px;bottom:28px;z-index:4;background:#f7f5f1c9;border:1px solid #d9c8b7;border-radius:30px;padding:7px 13px;font:10px/1.6 -apple-system,BlinkMacSystemFont,'Hiragino Sans',sans-serif;color:#78726b;cursor:pointer;backdrop-filter:blur(6px)}
.hero-with-film .scroll-cue{bottom:24px}.hero-with-film .scroll-line{height:42px}
.hero-idea{position:absolute;width:70px;height:70px;margin:-35px 0 0 -35px;display:grid;place-items:center;visibility:hidden;opacity:0;pointer-events:none;z-index:2}
.hero-idea>span{font:56px/1 'Apple Color Emoji','Segoe UI Emoji',sans-serif;filter:drop-shadow(0 0 14px #edc26b77);transform:rotate(9deg);position:relative;z-index:1}
.hero-idea:before{content:'';position:absolute;inset:-20px;background:radial-gradient(circle,#ffe5a2cc,transparent 69%);border-radius:50%}
.hero-idea i,.hero-idea b{position:absolute;font-style:normal;font-weight:400;color:#b38b45;line-height:1}
.hero-idea i{left:0;top:5px;font-size:20px}.hero-idea b{right:-2px;bottom:1px;font-size:13px}
.hero-with-film[data-beat='1'] .hero-idea{visibility:visible;animation:heroIdeaPop 1.9s ease-out both}
.hero-with-film[data-beat='1'].film-paused .hero-idea{animation:none;opacity:1;transform:none}
@keyframes heroIdeaPop{0%{opacity:0;transform:translateY(10px) scale(.45) rotate(-10deg)}20%{opacity:1;transform:translateY(-3px) scale(1.12) rotate(2deg)}35%,85%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-8px) scale(1.05)}}
@media(max-width:1000px) and (min-aspect-ratio:1/1){.hero-with-film .hero-inner.wrap{padding-left:32px;padding-right:32px}.hero-with-film .hero-focus,.hero-with-film .hero-top{width:48%}.hero-with-film .hero-main{font-size:30px}.hero-with-film .hero-subcopy{font-size:12px}.hero-with-film .hero-biz{font-size:10px}.hero-with-film .hero-biz em{display:none}.hero-with-film .hero-top{margin-top:30px}}
@media(max-width:760px),(max-aspect-ratio:1/1){
 .hero-with-film{height:calc(var(--fvh,100svh) - 56px);min-height:calc(var(--fvh,100svh) - 56px);align-items:flex-start}
 .hero-with-film::after{background:linear-gradient(180deg,#f7f5f166 0%,#f7f5f122 32%,transparent 54%);z-index:1}
 .hero-with-film .hero-inner.wrap{min-height:0;padding:36px 24px 0;display:block}
 .hero-with-film .hero-focus,.hero-with-film .hero-top{width:100%;max-width:600px}
 .hero-with-film .hero-focus:before{display:none}
 .hero-with-film .hero-main{font-size:clamp(26px,6.8vw,36px);line-height:1.8;letter-spacing:.025em;text-shadow:0 1px 15px #fff8eacc}
 .hero-with-film .hero-subcopy{font-size:12px;line-height:1.8;letter-spacing:.035em;margin-top:14px}
 .hero-with-film .hero-biz{font-size:9px;line-height:2.1;gap:0 10px;margin-top:12px;justify-content:flex-start}
 .hero-with-film .hero-biz em{display:none}
 .hero-with-film .hero-top{margin-top:21px}
 .hero-with-film .brand-logo{width:190px;max-width:55vw;margin:0}
 .hero-film-media{inset:0;width:100%;mask-image:none}
 .hero-film-media video{width:100%;height:100%;object-fit:cover;object-position:50% 50%}
 .hero-film-toggle{right:18px;bottom:16px;font-size:8px;padding:5px 10px;background:#f7f5f1c9}
 .hero-with-film .scroll-cue{left:25px;bottom:16px;gap:7px;transform:none;align-items:flex-start;flex-direction:row}
 .hero-with-film .scroll-cue.show{transform:none}.hero-with-film .scroll-word{font-size:8px}.hero-with-film .scroll-line{height:25px;margin-top:2px}
 .hero-idea{width:60px;height:60px;margin:-30px 0 0 -30px}.hero-idea>span{font-size:46px}.hero-idea i{font-size:16px}.hero-idea b{font-size:11px}
}
@media(max-width:760px) and (max-height:740px){.hero-with-film .hero-inner.wrap{padding-top:22px}.hero-with-film .hero-main{font-size:25px;line-height:1.65}.hero-with-film .hero-subcopy{font-size:11px;margin-top:10px}.hero-with-film .hero-biz{font-size:8px;margin-top:8px}.hero-with-film .hero-top{margin-top:13px}.hero-with-film .brand-logo{width:160px}}
@media(prefers-reduced-motion:reduce){.hero-with-film[data-beat='1'] .hero-idea{opacity:1;transform:none;animation:none}}

/* Desktop: keep the entire desk and character within a bounded square. */
@media(min-width:761px) and (min-aspect-ratio:1/1){
 .hero-film-media{inset:auto max(28px,calc((100vw - 1240px)/2)) auto auto;top:50%;width:min(49vw,660px,calc((var(--fvh,100svh) - 64px)*.82));height:auto;aspect-ratio:1;transform:translateY(-50%);mask-image:radial-gradient(ellipse 76% 76% at 50% 50%,#000 53%,transparent 100%)}
 .hero-film-media video{object-fit:contain;object-position:50% 50%}
}

/* Video RGB and its frame-accurate alpha mask share one MP4 stream. */
.hero-film-media{mix-blend-mode:normal}
.hero-film-media video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#hero-alpha-canvas{display:block;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .15s}
#hero-alpha-canvas.ready{opacity:1}
@media(max-width:760px),(max-aspect-ratio:1/1){#hero-alpha-canvas{object-fit:cover}}

/* Desktop FV: use the available width for a larger copy, signature and film. */
@media(min-width:761px) and (min-aspect-ratio:1/1){
 .hero-with-film .hero-inner.wrap{max-width:1760px;padding:60px clamp(32px,4.2vw,72px)}
 .hero-with-film .hero-focus,.hero-with-film .hero-top{width:56%;max-width:none}
 .hero-with-film .hero-main{font-size:clamp(38px,3.9vw,72px);line-height:1.75;letter-spacing:.025em}
 .hero-with-film .hero-subcopy{font-size:clamp(15px,1.25vw,21px);margin-top:30px}
 .hero-with-film .hero-biz{font-size:clamp(11px,.9vw,15px);margin-top:22px}
 .hero-with-film .hero-top{margin-top:38px}
 .hero-with-film .brand-logo{width:clamp(285px,25vw,440px);max-width:100%}
 .hero-with-film .hero-film-media{
  inset:auto max(-12px,calc((100vw - 1760px)/2)) auto auto;top:50%;
  width:min(56vw,880px,calc((var(--fvh,100svh) - 64px)*.94));
  transform:translateY(-50%);
 }
}
