/* Opt-in Gran Hacienda composition. No global scroll, player or Bootstrap overrides. */
.gh-entry-video { container:gh-entry-video / inline-size; padding-block:clamp(3rem,7cqi,7rem); color:var(--gh-forest); background:var(--gh-cream); }
.gh-entry-video [hidden],.gh-ev-settings [hidden] { display:none !important; }
.gh-ev__frame { width:calc(100% - 2 * clamp(20px,4cqi,64px)); max-width:var(--gh-ev-max-width,1320px); margin-inline:auto; container:gh-entry-video / inline-size; }
.gh-ev__intro { max-width:980px; margin:0 auto clamp(2rem,5cqi,4.5rem); text-align:center; }
.gh-ev__eyebrow { display:block; margin-bottom:1.25rem; font:600 .66rem/1.6 var(--gh-sans); color:var(--gh-grove); letter-spacing:.14em; text-transform:uppercase; }
.gh-ev__intro h2 { margin:0 0 1.5rem; font:400 clamp(2.7rem,6cqi,5.5rem)/1.08 var(--gh-serif); letter-spacing:-.04em; text-wrap:balance; }
.gh-ev__intro h2 em { color:var(--gh-grove); font-weight:400; }
.gh-ev__intro > p { margin:0; font:400 1rem/1.7 var(--gh-sans); color:#496359; }
.gh-ev__visual { position:relative; overflow:hidden; border-radius:var(--gh-ev-radius,28px); background:var(--gh-forest); }
.gh-ev__visual video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:var(--gh-ev-position,50% 50%); }
.gh-ev__poster { display:none; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--gh-ev-position,50% 50%); pointer-events:none; }
.gh-entry-video.is-enhanced .gh-ev__poster { display:block; opacity:1; transition:opacity .5s ease; }
.gh-entry-video.is-enhanced.is-frame-ready .gh-ev__poster { opacity:0; }
.gh-entry-video.is-enhanced[data-ev-reveal="cinema"] .gh-ev__visual > :is(video,.gh-ev__poster) { transform:scale(1.035); transition:transform var(--gh-ev-reveal-duration,1200ms) cubic-bezier(.22,1,.36,1),opacity .5s ease; }
.gh-entry-video.is-enhanced.is-seen[data-ev-reveal="cinema"] .gh-ev__visual > :is(video,.gh-ev__poster) { transform:scale(1); }
.gh-entry-video.is-enhanced.is-seen:is([data-ev-reveal="cinema"],[data-ev-reveal="fade"]) .gh-ev__visual { animation:gh-ev-picture-fade var(--gh-ev-reveal-duration,1200ms) cubic-bezier(.22,1,.36,1) both; }
.gh-ev__chapters { display:grid; gap:2rem; padding:2rem 0 0; }
.gh-ev__chapter { min-width:0; }
.gh-ev__chapter h3 { margin:0 0 1rem; font:400 clamp(1.75rem,3cqi,2.8rem)/1.15 var(--gh-serif); letter-spacing:-.025em; text-wrap:balance; }
.gh-ev__chapter p { max-width:40ch; margin:0; font:400 1rem/1.7 var(--gh-sans); color:#496359; }
.gh-ev__transport { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-top:1.5rem; }
.gh-ev__state,.gh-ev__wait,.gh-ev__time { font:500 .72rem/1.7 var(--gh-sans); color:var(--gh-grove); }
.gh-ev__wait { margin-left:.6rem; font-variant-numeric:tabular-nums; }
.gh-ev__buttons { display:flex; align-items:center; flex-wrap:wrap; gap:.7rem; }
.gh-entry-video button { appearance:none; cursor:pointer; font-family:var(--gh-sans); }
.gh-ev__control { display:grid; place-items:center; width:48px; height:48px; flex-shrink:0; padding:0; border:0; border-radius:50%; color:#fff; background:var(--gh-forest); }
.gh-ev__restart { min-height:44px; padding:.65rem 1rem; border:1px solid var(--gh-line); border-radius:28px; color:var(--gh-forest); background:transparent; font-size:.75rem; }
.gh-entry-video button:focus-visible { outline:3px solid var(--gh-mint); outline-offset:4px; }
.gh-entry-video button:disabled { opacity:.4; cursor:default; }
.gh-ev__note { margin:1.5rem 0 0; font:400 .7rem/1.7 var(--gh-sans); color:#496359; }
.gh-entry-video[data-ev-layout="editorial"] .gh-ev__chapters { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1.25rem,3cqi,3rem); padding-top:2.5rem; }
.gh-entry-video[data-ev-layout="editorial"] .gh-ev__chapter { padding-top:1.5rem; border-top:2px solid var(--gh-line); transition:border-color .5s; }
.gh-entry-video[data-ev-layout="editorial"] .gh-ev__chapter.is-current { border-color:var(--gh-grove); }
.gh-entry-video.is-enhanced:not([data-ev-layout="editorial"]) .gh-ev__chapters { display:grid; }
.gh-entry-video.is-enhanced:not([data-ev-layout="editorial"]) .gh-ev__chapter { grid-area:1/1; visibility:hidden; opacity:0; }
.gh-entry-video.is-enhanced:not([data-ev-layout="editorial"]) .gh-ev__chapter.is-current { visibility:visible; opacity:1; }
.gh-entry-video.is-enhanced[data-ev-layout="overlay"] .gh-ev__stage { position:relative; display:grid; isolation:isolate; border-radius:var(--gh-ev-radius,28px); overflow:hidden; background:var(--gh-forest); }
.gh-entry-video.is-enhanced[data-ev-layout="overlay"] .gh-ev__visual { grid-area:1/1; position:absolute; inset:0; border-radius:0; }
.gh-entry-video.is-enhanced[data-ev-layout="overlay"] video { height:100%; }
.gh-entry-video.is-enhanced[data-ev-layout="overlay"] .gh-ev__stage::after { content:""; grid-area:1/1; z-index:1; pointer-events:none; background:linear-gradient(90deg,#10312bea,#10312bb3 55%,#10312b52); }
.gh-entry-video.is-enhanced[data-ev-layout="overlay"] .gh-ev__chapters { grid-area:1/1; z-index:2; min-height:clamp(32rem,49cqi,44rem); padding:clamp(2rem,5cqi,4.5rem); align-items:center; }
.gh-entry-video[data-ev-layout="overlay"].is-enhanced .gh-ev__chapter h3 { color:#fff; font-size:clamp(2.7rem,5.6cqi,5.3rem); max-width:18ch; }
.gh-entry-video[data-ev-layout="overlay"].is-enhanced .gh-ev__chapter h3 em,.gh-entry-video[data-ev-layout="overlay"].is-enhanced .gh-ev__eyebrow { color:var(--gh-lime); }
.gh-entry-video[data-ev-layout="overlay"].is-enhanced .gh-ev__chapter p { color:#fff; }
.gh-entry-video[data-ev-layout="split"] .gh-ev__stage { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:clamp(2rem,4cqi,4rem); align-items:center; }
.gh-entry-video[data-ev-layout="split"] .gh-ev__visual video { aspect-ratio:4/5; }
.gh-entry-video[data-ev-layout="split"] .gh-ev__chapters { padding:2rem 0; }
.gh-entry-video[data-ev-layout="split"] .gh-ev__chapter h3 { font-size:clamp(2rem,4cqi,3.8rem); }
.gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__stage { display:grid; }
.gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__visual { grid-area:1/1; }
.gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__chapters { grid-area:1/1; z-index:1; align-self:end; max-width:37rem; margin:clamp(1.25rem,3cqi,3rem); padding:clamp(1.5rem,3cqi,2.75rem); border:1px solid #ffffff36; border-radius:20px; background:#10312be8; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__chapter h3,.gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__chapter p { color:#fff; }
.gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__chapter .gh-ev__eyebrow,.gh-entry-video.is-enhanced[data-ev-layout="glass"] h3 em { color:var(--gh-lime); }
.gh-entry-video.is-enhanced.is-seen .gh-ev__intro { animation:gh-ev-lift .9s cubic-bezier(.22,1,.36,1) both; }
.gh-entry-video.is-enhanced.is-seen .is-current > * { animation:gh-ev-lift .85s cubic-bezier(.22,1,.36,1) both; }
.gh-entry-video.is-enhanced.is-seen .is-current h3 { animation-delay:.08s; }
.gh-entry-video.is-enhanced.is-seen .is-current p { animation-delay:.18s; }
.gh-entry-video[data-ev-animation="reveal"].is-enhanced.is-seen .is-current > * { animation-name:gh-ev-reveal; }
.gh-entry-video[data-ev-animation="soft"].is-enhanced.is-seen .is-current > * { animation-name:gh-ev-soft; }
@keyframes gh-ev-lift { from { opacity:0; transform:translate3d(0,22px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
@keyframes gh-ev-reveal { from { opacity:0; clip-path:inset(100% 0 0); transform:translateY(12px); } to { opacity:1; clip-path:inset(0); transform:translateY(0); } }
@keyframes gh-ev-soft { from { opacity:0; transform:translateY(8px) scale(.99); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes gh-ev-picture-fade { from { opacity:.6; } to { opacity:1; } }
/* Video-only layouts: no editorial copy or gradients obscuring the footage. */
:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__stage { position:relative; isolation:isolate; }
:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__transport { position:absolute; z-index:2; right:max(20px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom)); padding:0; }
:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__transport > div:first-child,:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__time { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__buttons { width:auto; }
:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__control { border:1px solid #ffffff65; background:#10312bc9; color:#fff; box-shadow:0 3px 16px #0002; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); transition:background .2s; }
:is(.gh-entry-video--silent,.gh-entry-video--immersive) .gh-ev__control:hover { background:var(--gh-forest); }
.gh-entry-video--silent[data-ev-layout="fullscreen"] { padding:0; background:var(--gh-forest); }
.gh-entry-video[data-ev-layout="fullscreen"] .gh-ev__frame { width:100%; max-width:none; }
.gh-entry-video[data-ev-layout="fullscreen"] .gh-ev__visual { border-radius:0; }
.gh-entry-video[data-ev-layout="fullscreen"] video { height:var(--gh-ev-full-height,100svh); aspect-ratio:auto; }
.gh-entry-video[data-ev-layout="card"] video { aspect-ratio:var(--gh-ev-ratio,16/9); }
/* Card-to-fullscreen: reserve the final footprint, animate only its inner surface. */
.gh-entry-video--expand { padding:0; }
.gh-entry-video--expand .gh-ev__frame { width:100%; max-width:none; }
.gh-entry-video--expand .gh-ev__stage { position:relative; padding-block:clamp(3rem,7cqi,7rem); }
.gh-entry-video--expand .gh-ev__surface { position:relative; isolation:isolate; width:calc(100% - 40px); max-width:var(--gh-ev-max-width,1320px); margin-inline:auto; overflow:hidden; border-radius:var(--gh-ev-radius,28px); background:var(--gh-cream); }
.gh-entry-video--expand .gh-ev__visual { border-radius:0; }
.gh-entry-video--expand:not(.is-enhanced) .gh-ev__chapters { padding:2rem; }
.gh-entry-video--expand.is-enhanced .gh-ev__stage { height:var(--gh-ev-full-height,100svh); padding:0; }
.gh-entry-video--expand.is-enhanced .gh-ev__surface { --gh-ev-zoom-width:min(82cqi,var(--gh-ev-max-width,1320px)); position:absolute; left:50%; top:50%; width:var(--gh-ev-zoom-width); max-width:none; height:min(calc(var(--gh-ev-zoom-width) * .5625),76svh); margin:0; transform:translate(-50%,-50%); background:var(--gh-forest); }
.gh-entry-video--expand.is-enhanced.is-seen .gh-ev__surface { transition:width var(--gh-ev-expand-duration,1800ms) cubic-bezier(.22,1,.36,1),height var(--gh-ev-expand-duration,1800ms) cubic-bezier(.22,1,.36,1),border-radius var(--gh-ev-expand-duration,1800ms) cubic-bezier(.22,1,.36,1); }
.gh-entry-video--expand.is-enhanced.is-expanded .gh-ev__surface { width:100%; height:100%; border-radius:0; }
.gh-entry-video--expand.is-enhanced .gh-ev__visual { height:100%; }
.gh-entry-video--expand.is-enhanced video { height:100%; aspect-ratio:auto; }
.gh-entry-video--expand.is-enhanced[data-ev-layout="zoom-text"] .gh-ev__surface::after { content:""; position:absolute; z-index:1; inset:0; pointer-events:none; opacity:0; background:linear-gradient(90deg,#10312bf2,#10312bdb 55%,#10312b66 78%,#10312b00); transition:opacity .6s ease; }
.gh-entry-video--expand.is-enhanced.is-expanded[data-ev-layout="zoom-text"] .gh-ev__surface::after { opacity:1; transition-delay:calc(var(--gh-ev-expand-duration,1800ms) * .65); }
.gh-entry-video--expand.is-enhanced .gh-ev__chapters { position:absolute; z-index:2; inset:0; align-items:center; max-width:1560px; margin-inline:auto; padding:clamp(24px,5cqi,88px) clamp(24px,6cqi,120px) 96px; opacity:0; visibility:hidden; transition:opacity .2s ease,visibility 0s .2s; pointer-events:none; }
.gh-entry-video--expand.is-enhanced.is-expanded .gh-ev__chapters { opacity:1; visibility:visible; transition:opacity .7s ease var(--gh-ev-expand-duration,1800ms),visibility 0s var(--gh-ev-expand-duration,1800ms); }
.gh-entry-video--expand.is-enhanced .gh-ev__chapter { visibility:inherit; }
.gh-entry-video--expand.is-enhanced .gh-ev__chapter h3 { max-width:18ch; font-size:clamp(2rem,5cqi,5.8rem); color:#fff; }
.gh-entry-video--expand.is-enhanced .gh-ev__chapter p { color:#fff; max-width:36ch; }
.gh-entry-video--expand.is-enhanced .gh-ev__eyebrow,.gh-entry-video--expand.is-enhanced h3 em { color:var(--gh-lime); }
.gh-entry-video--expand .gh-ev__transport { z-index:3; }
@media (max-height:540px) {
  .gh-entry-video--expand.is-enhanced .gh-ev__chapters { padding-block:24px 88px; }
  .gh-entry-video--expand.is-enhanced .gh-ev__eyebrow { margin-bottom:.6rem; font-size:.6rem; }
  .gh-entry-video--expand.is-enhanced .gh-ev__chapter h3 { margin-bottom:.75rem; font-size:clamp(1.5rem,7svh,2.75rem); }
  .gh-entry-video--expand.is-enhanced .gh-ev__chapter p { font-size:.85rem; line-height:1.5; }
}
@container gh-entry-video (max-width:734px) {
  .gh-entry-video--expand.is-enhanced .gh-ev__surface { --gh-ev-zoom-width:calc(100cqi - 40px); height:min(calc(var(--gh-ev-zoom-width) * .75),76svh); }
  .gh-entry-video--expand.is-enhanced.is-expanded .gh-ev__surface { height:100%; }
  .gh-entry-video--expand:not(.is-enhanced) video { aspect-ratio:var(--gh-ev-mobile-ratio,4/3); }
  .gh-entry-video--expand.is-enhanced .gh-ev__chapter h3 { font-size:clamp(1.5rem,min(8cqi,8svh),3.5rem); }
  .gh-entry-video[data-ev-layout="card"] video { aspect-ratio:var(--gh-ev-mobile-ratio,4/3); }
  .gh-ev__intro { text-align:left; }.gh-ev__intro h2 { font-size:clamp(2.3rem,9cqi,3.6rem); }
  .gh-entry-video[data-ev-layout="editorial"] .gh-ev__chapters { grid-template-columns:1fr; }
  .gh-entry-video[data-ev-layout="split"] .gh-ev__stage { grid-template-columns:1fr; gap:0; }
  .gh-entry-video[data-ev-layout="split"] .gh-ev__visual video { aspect-ratio:4/3; }
  .gh-entry-video.is-enhanced[data-ev-layout="glass"] .gh-ev__chapters { grid-area:auto; max-width:none; margin:1rem 0 0; background:var(--gh-forest); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .gh-entry-video.is-enhanced[data-ev-layout="overlay"] .gh-ev__chapters { min-height:34rem; padding:2rem 1.5rem; }
  .gh-entry-video[data-ev-layout="overlay"].is-enhanced .gh-ev__chapter h3 { font-size:clamp(2.3rem,9cqi,3.5rem); }
  .gh-ev__buttons { width:100%; justify-content:flex-end; }.gh-ev__time { margin-right:auto; }
}
.gh-ev-models { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:2.5rem 0; }
.gh-ev-models a { display:flex; flex-direction:column; gap:.8rem; padding:1.5rem; border:1px solid var(--gh-line); border-radius:20px; color:var(--gh-forest); background:var(--gh-cream); }
.gh-ev-models span { font:600 .7rem/1.5 var(--gh-sans); color:var(--gh-grove); }.gh-ev-models strong { font:400 1.7rem/1.2 var(--gh-serif); }.gh-ev-models small { font:400 .85rem/1.7 var(--gh-sans); }
.gh-ev-models a:focus-visible { outline:3px solid var(--gh-mint); outline-offset:4px; }
.gh-ev-example { margin:2rem 0; border:1px solid var(--gh-line); border-radius:20px; overflow:clip; scroll-margin-top:7rem; }
.gh-ev-example > summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:64px; padding:1.25rem 1.5rem; list-style:none; cursor:pointer; font:600 .85rem/1.5 var(--gh-sans); background:var(--gh-white); }
.gh-ev-example > summary::-webkit-details-marker { display:none; }.gh-ev-example[open] > summary > :last-child { transform:rotate(45deg); }
.gh-ev-example > summary:focus-visible { outline:3px solid var(--gh-mint); outline-offset:-4px; }
.gh-ev-example__intro { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; padding:1.5rem; }.gh-ev-example__intro p { flex:1 1 22rem; margin:0; }
.gh-ev-example > .gh-section-code { margin:1.5rem; }
.gh-ev-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; margin:0; padding:1.5rem; background:var(--gh-white); border-block:1px solid var(--gh-line); }
.gh-ev-settings label { min-width:0; margin:0; }.gh-ev-setting { display:flex; flex-direction:column; justify-content:center; gap:1rem; font:500 .75rem/1.5 var(--gh-sans); }
.gh-ev-setting > span { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }.gh-ev-setting input { width:100%; min-height:44px; accent-color:var(--gh-forest); }
.gh-ev-settings__note { grid-column:1/-1; margin:0; color:#496359; font:400 .75rem/1.7 var(--gh-sans); }
.gh-ev-demo-nav { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.25rem max(1.25rem,calc((100% - 980px) / 2)); background:var(--gh-white); font:500 .75rem/1.5 var(--gh-sans); }
.gh-ev-demo-nav img { display:block; width:190px; height:auto; }.gh-ev-demo-nav a { display:inline-flex; align-items:center; min-height:44px; }
.gh-ev-demo-intro { max-width:980px; margin:4rem auto 2rem; padding-inline:1.25rem; }.gh-ev-demo-settings > .gh-ev-settings,.gh-ev-demo-settings > .gh-section-code { max-width:980px; margin:2rem auto; }
.gh-ev-demo-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2rem; padding:4rem max(1.25rem,calc((100% - 980px) / 2)); font:400 2rem/1.2 var(--gh-serif); }
@container gh-docs (max-width:640px) { .gh-ev-models,.gh-ev-settings { grid-template-columns:1fr; } }
@media (max-width:640px) { .gh-ev-models,.gh-ev-settings { grid-template-columns:1fr; }.gh-ev-demo-nav > span { display:none; }.gh-ev-demo-nav img { width:150px; }.gh-ev-demo-settings > .gh-section-code { margin:1.25rem; } }
@media (prefers-reduced-motion:reduce) { .gh-entry-video * { animation:none !important; transition:none !important; } }
