/* Opt-in composition. Never changes Bootstrap, Cube or other gh modules. */
.gh-design-motion { --gh-dm-radius:28px; --gh-dm-card-width:820px; --gh-dm-position:50% 50%; --dm-film-inset:clamp(.75rem,2.2cqi,2.5rem); container:gh-design-motion / inline-size; color:var(--gh-forest); background:var(--gh-cream); padding-block:clamp(3rem,7cqi,7rem); overflow:clip; }
/* A shared editorial axis: 980px desktop / 692px tablet / 6.25% mobile. */
.gh-design-motion > * { --dm-content-width:var(--gh-dm-content-width,980px); --dm-gutter:max(1.25rem,calc((100cqi - var(--dm-content-width)) / 2)); --dm-film-padding:max(1.5rem,calc(var(--dm-gutter) - var(--dm-film-inset))); }
.gh-design-motion [hidden] { display:none !important; }
.gh-design-motion button { appearance:none; font-family:var(--gh-sans); cursor:pointer; }
.gh-design-motion button:focus-visible, .gh-dm__rail:focus-visible { outline:3px solid var(--gh-mint); outline-offset:5px; }
.gh-dm__intro, .gh-dm__heading, .gh-dm__gallery-ui, .gh-dm__note { width:auto; max-width:none; margin-inline:0; padding-inline:var(--dm-gutter); }
.gh-dm__intro { margin-bottom:clamp(2.25rem,5cqi,5rem); }
.gh-dm__eyebrow { display:block; margin-bottom:1.4rem; color:var(--gh-grove); font:600 .68rem/1.6 var(--gh-sans); text-transform:uppercase; letter-spacing:.16em; }
.gh-design-motion h2 { margin:0; font:400 clamp(2.7rem,5.2cqi,5.25rem)/1.06 var(--gh-serif); letter-spacing:-.04em; text-wrap:balance; }
.gh-design-motion h2 em { color:var(--gh-grove); font-weight:400; }
.gh-dm__intro p, .gh-dm__heading p { margin:0; font:400 clamp(1rem,1.5cqi,1.2rem)/1.65 var(--gh-sans); }
.gh-dm__film { position:relative; margin:0 var(--dm-film-inset); border-radius:var(--gh-dm-radius); background:var(--gh-forest); color:#fff; overflow:hidden; isolation:isolate; }
.gh-dm__film-video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:var(--gh-dm-position); }
.gh-dm__film-copy { padding:clamp(1.5rem,5cqi,5rem); }
.gh-dm__film-copy > .gh-dm__eyebrow { color:var(--gh-lime); }
.gh-dm__captions > div { padding-block:1rem; }
.gh-dm__captions span { display:block; font:500 .68rem/1.6 var(--gh-sans); letter-spacing:.13em; text-transform:uppercase; margin-bottom:1.2rem; color:var(--gh-lime); }
.gh-dm__captions h3 { max-width:18ch; margin:0 0 1.5rem; color:#fff; font:400 clamp(2.35rem,min(5.9cqi,9svh),6rem)/1.12 var(--gh-serif); letter-spacing:-.035em; overflow-wrap:anywhere; }
.gh-dm__captions h3 em { color:var(--gh-lime); }
.gh-dm__captions p { max-width:37ch; margin:0; color:#fff; font:400 1rem/1.65 var(--gh-sans); }
.gh-dm__film.is-enhanced { display:grid; grid-template-columns:minmax(0,1fr); min-height:min(46rem,80svh); }
.gh-dm__film.is-enhanced::after { content:""; grid-area:1/1; z-index:1; pointer-events:none; background:linear-gradient(90deg,rgba(8,29,25,.88),rgba(8,29,25,.5) 50%,rgba(8,29,25,.06)),linear-gradient(0deg,rgba(8,29,25,.5),transparent 30%); }
.gh-dm__film.is-enhanced .gh-dm__film-video { grid-area:1/1; height:100%; min-height:0; position:absolute; inset:0; }
.gh-dm__film.is-enhanced .gh-dm__film-copy { grid-area:1/1; z-index:2; align-self:center; padding:clamp(2rem,6cqi,6rem) var(--dm-film-padding) 7rem; min-width:0; }
.gh-dm__film.is-enhanced .gh-dm__captions { display:grid; }
.gh-dm__film.is-enhanced [data-dm-caption] { grid-area:1/1; min-width:0; visibility:hidden; opacity:0; padding:0; }
.gh-dm__film.is-enhanced [data-dm-caption].is-current { visibility:visible; opacity:1; }
.gh-dm__film.is-enhanced [data-dm-caption].is-current h3 { animation:gh-dm-arrive .8s cubic-bezier(.22,1,.36,1) both; }
.gh-dm__film.is-enhanced [data-dm-caption].is-current p { animation:gh-dm-arrive .9s .1s cubic-bezier(.22,1,.36,1) both; }
@keyframes gh-dm-arrive { from { opacity:0; transform:translate3d(0,20px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.gh-dm__film-ui { position:absolute; z-index:3; inset:auto var(--dm-film-padding) 1.75rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.gh-dm__moments { display:flex; gap:.3rem; padding:.35rem .6rem; border:1px solid #ffffff3b; border-radius:40px; background:rgba(16,49,43,.85); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.gh-dm__moments button { display:flex; align-items:center; justify-content:center; gap:.65rem; padding:.25rem .65rem; min-height:44px; min-width:44px; border:0; border-radius:24px; color:#fff; background:transparent; font-size:.7rem; }
.gh-dm__moments i { width:0; height:3px; background:var(--gh-lime); border-radius:3px; transition:width .5s cubic-bezier(.22,1,.36,1); }
.gh-dm__moments [aria-current="true"] i { width:2rem; }
.gh-dm__round { position:relative; display:inline-grid; flex-shrink:0; place-items:center; width:52px; height:52px; padding:0; border:0; border-radius:50%; background:var(--gh-forest); color:#fff; font-size:.85rem; transition:background .25s,transform .25s; }
.gh-dm__round--film { background:rgba(16,49,43,.88); }
.gh-dm__ring { position:absolute; inset:2px; width:48px; height:48px; fill:none; stroke:#ffffff3b; stroke-width:1.5; transform:rotate(-90deg); }
.gh-dm__ring-value { stroke:var(--gh-lime); stroke-dasharray:1; stroke-dashoffset:calc(1 - var(--dm-progress,0)); transition:stroke-dashoffset .15s linear; }
.gh-dm__message { position:absolute; z-index:4; inset:1rem 1rem auto; padding:.8rem 1rem; margin:0; border-radius:.5rem; color:#fff; background:var(--gh-forest); font:500 .8rem/1.5 var(--gh-sans); }
.gh-dm__gallery { padding-top:clamp(4rem,9cqi,9rem); }
.gh-dm__heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:2rem; margin-bottom:clamp(2rem,4cqi,4rem); }
.gh-dm__heading h2 { font-size:clamp(2.5rem,5cqi,5rem); }
.gh-dm__heading p span { color:#496359; font-size:.8rem; }
.gh-dm__rail { display:flex; gap:clamp(1rem,2cqi,2rem); overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:var(--dm-gutter); padding:1rem var(--dm-gutter) 1.5rem; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#a1d184 transparent; }
/* Optional: hide only the rail's bars; keep touch, trackpad and keyboard scrolling. */
.gh-design-motion[data-dm-scrollbar="hidden"] .gh-dm__rail { overflow-y:hidden; scrollbar-width:none; }
.gh-design-motion[data-dm-scrollbar="hidden"] .gh-dm__rail::-webkit-scrollbar { display:none; width:0; height:0; }
.gh-dm__card { flex:0 0 min(var(--gh-dm-card-width),calc(100cqi - var(--dm-gutter) * 2)); min-width:0; scroll-snap-align:start; }
.gh-dm__card-media { position:relative; isolation:isolate; aspect-ratio:1.5; border-radius:var(--gh-dm-radius); background:var(--gh-forest); overflow:hidden; transform:translateY(0); transition:transform .6s cubic-bezier(.22,1,.36,1),box-shadow .6s; }
.gh-dm__card-media > img, .gh-dm__card-media > video { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--gh-dm-position); transition:transform 1.2s cubic-bezier(.22,1,.36,1),opacity .5s; }
.gh-dm__card-media > video { opacity:0; pointer-events:none; }
.gh-dm__card.is-playing .gh-dm__card-media > video { opacity:1; }
.gh-dm__card-label { position:absolute; z-index:1; top:1.25rem; left:1.25rem; max-width:calc(100% - 2.5rem); padding:.6rem .85rem; border-radius:30px; color:#fff; background:rgba(16,49,43,.9); font:500 .62rem/1.5 var(--gh-sans); text-transform:uppercase; letter-spacing:.1em; }
.gh-dm__preview { position:absolute; z-index:2; bottom:1.25rem; right:1.25rem; display:flex; align-items:center; gap:.65rem; min-height:44px; border:1px solid #ffffff70; border-radius:32px; padding:.65rem 1rem; background:rgba(16,49,43,.9); color:#fff; font:500 .7rem/1.5 var(--gh-sans); }
.gh-dm__card-copy { padding:1.6rem .1rem .25rem; }
.gh-dm__card-copy h3 { margin:0 0 .75rem; font:400 clamp(1.65rem,2.8cqi,2.5rem)/1.16 var(--gh-serif); letter-spacing:-.03em; text-wrap:balance; }
.gh-dm__card-copy p { max-width:53ch; margin:0; color:#496359; font:400 1rem/1.65 var(--gh-sans); }
.gh-dm__gallery-ui { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin-top:1.5rem; }
.gh-dm__gallery-status { display:flex; gap:1rem; flex-wrap:wrap; font:500 .65rem/1.5 var(--gh-sans); text-transform:uppercase; letter-spacing:.07em; }
.gh-dm__gallery-status > :first-child { font-variant-numeric:tabular-nums; color:var(--gh-grove); }
.gh-dm__gallery-buttons { display:flex; align-items:center; gap:.5rem; }
.gh-dm__arrow { color:var(--gh-forest); background:#e3e9dc; font-size:1.4rem; }
.gh-dm__arrow:disabled { opacity:.35; cursor:default; }
.gh-dm__dots { display:flex; align-items:center; padding:0 .5rem; border:1px solid #10312b20; border-radius:40px; }
.gh-dm__dots button { display:grid; place-items:center; width:44px; height:48px; border:0; border-radius:50%; background:transparent; }
.gh-dm__dots button span { width:6px; height:6px; background:#819582; border-radius:10px; transition:width .4s,background .4s; }
.gh-dm__dots [aria-current="true"] span { width:20px; background:var(--gh-forest); }
.gh-dm__note { margin-top:2rem; margin-bottom:0; color:#496359; font:400 .7rem/1.6 var(--gh-sans); }
.gh-dm-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); border-bottom:1px solid var(--gh-line); font:500 .75rem/1.5 var(--gh-sans); }
.gh-dm-demo-nav img { display:block; width:190px; height:auto; }
.gh-dm-demo-nav a { display:inline-flex; align-items:center; min-height:44px; }
.gh-dm-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); }
@media (hover:hover) and (pointer:fine) {
  .gh-dm__card:hover .gh-dm__card-media { transform:translateY(-5px); box-shadow:0 18px 35px #10312b18; }
  .gh-dm__card:hover img { transform:scale(1.045); }
  .gh-dm__round:not(:disabled):hover { transform:scale(1.06); background:var(--gh-grove); color:#fff; }
}
@container gh-design-motion (max-width:1068px) {
  .gh-design-motion > * { --dm-content-width:var(--gh-dm-content-width,692px); }
}
@container gh-design-motion (max-width:734px) {
  .gh-design-motion > * { --dm-gutter:max(1.25rem,6.25cqi); }
  .gh-dm__intro .row > div { width:100%; }
  .gh-dm__film { border-radius:min(var(--gh-dm-radius),20px); }
  .gh-dm__film.is-enhanced { min-height:34rem; }
  .gh-dm__film.is-enhanced .gh-dm__film-copy { padding:2.5rem 1.5rem 7.5rem; }
  .gh-dm__film.is-enhanced::after { background:linear-gradient(90deg,#081d19e8,#081d197a),linear-gradient(0deg,#081d1980,transparent); }
  .gh-dm__film-copy > .gh-dm__eyebrow { font-size:.6rem; }
  .gh-dm__captions h3 { font-size:clamp(2.25rem,8.5cqi,3.4rem); }
  .gh-dm__captions p { font-size:.95rem; }
  .gh-dm__film-ui { inset:auto 1.25rem 1.5rem; }
  .gh-dm__card { flex-basis:min(280px,calc(100cqi - var(--dm-gutter) * 2)); }
  .gh-dm__card-media { aspect-ratio:4/5; border-radius:20px; }
  .gh-dm__card-copy p { font-size:.94rem; }
  .gh-dm__gallery-ui { flex-direction:column-reverse; align-items:stretch; gap:1.25rem; }
  .gh-dm__gallery-buttons { justify-content:space-between; gap:.35rem; }
  .gh-dm__dots { padding:0 .25rem; }
  .gh-dm__round { width:48px; height:48px; }.gh-dm__ring { inset:0; }
  .gh-dm__gallery-status { justify-content:space-between; }
}
@media (max-width:1068px) { .gh-dm-demo-nav,.gh-dm-demo-footer { padding-inline:max(1.25rem,calc((100% - 692px) / 2)); } }
@media (max-width:734px) { .gh-dm-demo-nav,.gh-dm-demo-footer { padding-inline:max(1.25rem,6.25%); } }
@container gh-design-motion (max-width:420px) {
  .gh-dm__gallery-buttons { display:grid; grid-template-columns:repeat(3,48px); justify-content:center; gap:.75rem; }
  .gh-dm__dots { grid-column:1/-1; justify-self:center; }
  .gh-dm__film-ui { gap:.5rem; }
  .gh-dm__moments button { gap:.35rem; padding-inline:.4rem; }
  .gh-dm__moments [aria-current="true"] i { width:1.25rem; }
}
@media (max-width:700px) { .gh-dm-demo-nav > span { display:none; }.gh-dm-demo-nav img { width:150px; } }

/* Contained compositions measure their own frame, including on ultra-wide screens. */
.gh-dm__frame { width:calc(100% - 2 * var(--gh-dm-section-padding,clamp(20px,4cqi,64px))); max-width:var(--gh-dm-max-width,1320px); margin-inline:auto; container:gh-design-motion / inline-size; }
.gh-dm__frame > * { --dm-film-inset:0px; --dm-gutter:clamp(1.25rem,4cqi,3rem); --dm-film-padding:var(--dm-gutter); }
.gh-dm__frame .gh-dm__film { margin-inline:0; }
.gh-dm__frame .gh-dm__film-copy { padding-inline:var(--dm-gutter); }
.gh-dm__frame .gh-dm__film-ui { left:var(--dm-gutter); right:var(--dm-gutter); }
.gh-design-motion--cards { --dm-selected-width:var(--gh-dm-card-medium,380px); --dm-selected-title:1.85rem; --dm-mobile-ratio:.9; }
.gh-design-motion--cards[data-dm-card-size="small"] { --dm-selected-width:var(--gh-dm-card-small,260px); --dm-selected-title:1.55rem; --dm-mobile-ratio:.78; }
.gh-design-motion--cards[data-dm-card-size="large"] { --dm-selected-width:var(--gh-dm-card-large,560px); --dm-selected-title:2.3rem; --dm-mobile-ratio:1; }
.gh-design-motion--cards .gh-dm__gallery { padding-top:0; }
.gh-design-motion--cards .gh-dm__card { flex-basis:min(var(--dm-selected-width),calc(100cqi - var(--dm-gutter) * 2)); border:1px solid var(--gh-line); border-radius:var(--gh-dm-radius); background:var(--gh-white); overflow:hidden; transition:transform .6s cubic-bezier(.22,1,.36,1),box-shadow .6s; }
.gh-design-motion--cards .gh-dm__card-media { aspect-ratio:4/3; border-radius:0; }
.gh-design-motion--cards .gh-dm__card-copy { padding:clamp(1.1rem,2cqi,1.75rem); }
.gh-design-motion--cards .gh-dm__card-copy h3 { font-size:var(--dm-selected-title); }
.gh-design-motion--cards .gh-dm__card-copy p { font-size:1rem; }
.gh-design-motion--cards .gh-dm__preview { max-width:calc(100% - 2.5rem); }
.gh-dm__size-picker { display:flex; align-items:center; flex-wrap:wrap; gap:1rem; padding:0 var(--dm-gutter); margin:0 0 1.25rem; font:500 .75rem/1.5 var(--gh-sans); }
.gh-dm__size-label { color:var(--gh-grove); }
.gh-dm__sizes { display:flex; flex-wrap:wrap; gap:.25rem; padding:.3rem; border:1px solid var(--gh-line); border-radius:32px; background:var(--gh-white); }
.gh-dm__sizes button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:.65rem 1.1rem; border:0; border-radius:28px; background:transparent; color:var(--gh-forest); font-size:.75rem; font-weight:600; transition:background .25s,color .25s; }
.gh-dm__sizes button[aria-pressed="true"] { color:#fff; background:var(--gh-forest); }
.gh-dm__scrollbar-toggle { display:inline-flex; align-items:center; gap:.7rem; min-height:44px; padding:.65rem 1rem; border:1px solid var(--gh-line); border-radius:28px; color:var(--gh-forest); background:var(--gh-white); font-size:.75rem; font-weight:500; }
.gh-dm__switch { position:relative; flex-shrink:0; width:32px; height:20px; border-radius:20px; background:#d9e0d6; transition:background .25s; }
.gh-dm__switch::after { content:""; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:var(--gh-forest); transition:transform .25s; }
.gh-dm__scrollbar-toggle[aria-pressed="true"] .gh-dm__switch { background:var(--gh-lime); }
.gh-dm__scrollbar-toggle[aria-pressed="true"] .gh-dm__switch::after { transform:translateX(12px); }
.gh-dm__size-status { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.gh-dm__models { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:2.5rem 0; }
.gh-dm__models a { display:flex; flex-direction:column; gap:.75rem; padding:1.5rem; border:1px solid var(--gh-line); background:var(--gh-cream); border-radius:16px; color:var(--gh-forest); }
.gh-dm__models a:focus-visible { outline:3px solid var(--gh-mint); outline-offset:3px; }
.gh-dm__models a > span { font:600 .65rem/1.5 var(--gh-sans); letter-spacing:.1em; color:var(--gh-grove); }
.gh-dm__models strong { font:400 1.65rem/1.2 var(--gh-serif); }
.gh-dm__models small { font:400 .8rem/1.65 var(--gh-sans); }
.gh-dm-example { margin:2rem 0; border:1px solid var(--gh-line); border-radius:16px; overflow:clip; scroll-margin-top:7rem; }
.gh-dm-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; color:var(--gh-forest); background:var(--gh-white); font:600 .85rem/1.5 var(--gh-sans); }
.gh-dm-example > summary::-webkit-details-marker { display:none; }
.gh-dm-example > summary:focus-visible { outline:3px solid var(--gh-mint); outline-offset:-4px; }
.gh-dm-example[open] > summary > :last-child { transform:rotate(45deg); }
.gh-dm-example__intro { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding:1.5rem; border-top:1px solid var(--gh-line); }
.gh-dm-example__intro p { flex:1 1 20rem; margin:0; font:400 1rem/1.65 var(--gh-sans); }
.gh-dm-example > .gh-section-code { margin:1.5rem; }
@container gh-design-motion (max-width:734px) {
  .gh-dm__frame > * { --dm-gutter:1.25rem; }
  .gh-design-motion--cards .gh-dm__card { flex-basis:min(var(--dm-selected-width),calc((100cqi - var(--dm-gutter) * 2) * var(--dm-mobile-ratio))); border-radius:20px; }
  .gh-design-motion--cards .gh-dm__card-copy h3 { font-size:min(var(--dm-selected-title),1.8rem); }
  .gh-dm__size-picker { flex-direction:column; align-items:flex-start; gap:.65rem; }
  .gh-dm__sizes button { padding-inline:.8rem; }
  .gh-design-motion--cards[data-dm-card-size="small"] .gh-dm__card-label { top:.75rem; left:.75rem; max-width:calc(100% - 1.5rem); padding:.4rem .6rem; font-size:.55rem; }
  .gh-design-motion--cards[data-dm-card-size="small"] .gh-dm__preview { bottom:.75rem; right:.75rem; width:44px; height:44px; padding:0; justify-content:center; }
  .gh-design-motion--cards[data-dm-card-size="small"] [data-dm-preview-label] { display:none; }
}
@container gh-design-motion (max-width:420px) {
  .gh-dm__sizes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:min(100%,280px); gap:.15rem; }
  .gh-dm__sizes button { padding-inline:.4rem; font-size:.7rem; }
}
@container gh-docs (max-width:760px) { .gh-dm__models { grid-template-columns:1fr; } }
@media (max-width:760px) { .gh-dm__models { grid-template-columns:1fr; } }
@media (hover:hover) and (pointer:fine) {
  .gh-design-motion--cards .gh-dm__card:hover { transform:translateY(-5px); box-shadow:0 16px 28px #10312b14; }
  .gh-design-motion--cards .gh-dm__card:hover .gh-dm__card-media { transform:none; box-shadow:none; }
  .gh-dm__sizes button:not([aria-pressed="true"]):hover { background:var(--gh-lime); }
}
@media (prefers-reduced-motion:reduce) { .gh-design-motion *, .gh-design-motion *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }.gh-dm__card:hover .gh-dm__card-media,.gh-dm__card:hover img { transform:none; } }
@media (prefers-reduced-motion:reduce) { .gh-design-motion--cards .gh-dm__card:hover { transform:none; } }
