/* V2.28: cinematic behavior layered OVER the approved V2.24 full-width hero.
   No split hero, no new corporate logo, no third-party images or proprietary styles. */
@media (prefers-reduced-motion:no-preference){
  .home-flagship-photo.qcg-cinema-ready .hpd-frame{display:block!important;opacity:0;visibility:hidden;z-index:0;transition:opacity 1.2s cubic-bezier(.22,.75,.24,1),visibility 1.2s step-end}
  .home-flagship-photo.qcg-cinema-ready .hpd-frame.qcg-frame-active{opacity:1;visibility:visible;z-index:1;transition:opacity 1.2s cubic-bezier(.22,.75,.24,1),visibility 0s}
  .home-flagship-photo.qcg-cinema-ready .hpd-frame img{transform:translateY(var(--qcg-film-shift,0px)) scale(1.065);transition:transform 1.8s ease-out;will-change:transform}
  .home-flagship-photo.qcg-cinema-ready .hpd-frame.qcg-frame-active img{animation:qcg-film-breathe 9.5s ease-in-out both}
  @keyframes qcg-film-breathe{from{scale:1}to{scale:1.025}}
  .home-flagship-overlay h1{animation:qcg-cinema-title-in 1s cubic-bezier(.16,.7,.2,1) .08s both}
  .home-hero-lede,.home-hero-ctas{animation:qcg-cinema-title-in 1s cubic-bezier(.16,.7,.2,1) .24s both}
  @keyframes qcg-cinema-title-in{from{opacity:.25;transform:translateY(14px)}to{opacity:1;transform:none}}
  .home-service-portfolio img,.home-portfolio-image img{transition:transform .85s cubic-bezier(.17,.65,.22,1)}
  .home-service-portfolio:hover img,.home-portfolio-image:hover img{transform:scale(1.035)}
  .home-feature-grid .project-card .project-image{transition:transform .9s cubic-bezier(.22,.7,.2,1),filter .5s ease}
  .home-feature-grid .project-card:hover .project-image,.home-feature-grid .project-card:focus-visible .project-image{transform:scale(1.06)}
  .home-feature-grid .project-card .project-info{transition:transform .42s ease}
  .home-feature-grid .project-card:hover .project-info,.home-feature-grid .project-card:focus-visible .project-info{transform:translateY(-6px)}
  .home-studio-story,.home-portfolio-image,.home-service-editorial,.home-service-portfolio,.home-section-head,.home-feature-grid{transition:opacity .7s ease,transform .75s cubic-bezier(.18,.76,.2,1)}
  .home-studio-story.qcg-film-entered,.home-portfolio-image.qcg-film-entered,.home-service-editorial.qcg-film-entered,.home-service-portfolio.qcg-film-entered,.home-section-head.qcg-film-entered,.home-feature-grid.qcg-film-entered{animation:qcg-story-rise .75s ease-out both}
  @keyframes qcg-story-rise{from{opacity:.7;transform:translateY(19px)}to{opacity:1;transform:none}}
}
.home-flagship-photo .hpd-hero-media{overflow:hidden}
.home-flagship-photo .hpd-hero-media::after{z-index:3;pointer-events:none}
.home-flagship-photo.qcg-cinema-ready .hpd-frame[hidden]{display:block}
.home-flagship-overlay,.home-flagship-controls{z-index:5}
.qcg-cinema-hud{position:absolute;right:max(40px,calc((100vw - 1480px)/2 + 54px));bottom:174px;z-index:7;display:flex;align-items:center;gap:15px;min-height:46px;padding:8px 13px;color:#fff9ef;background:rgba(5,22,28,.79);border:1px solid rgba(255,255,255,.2);font:600 11px/1.4 'DM Sans',sans-serif;backdrop-filter:blur(12px);box-shadow:0 10px 25px rgba(3,13,18,.16)}
.qcg-cinema-indicator{white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.08em}
.qcg-cinema-index{font-size:14px;color:#f2c993}
.qcg-cinema-total{color:#e0e5e3}
.qcg-cinema-timeline{display:block;width:110px;height:2px;background:rgba(255,255,255,.34);overflow:hidden}
.qcg-cinema-timeline span{display:block;width:100%;height:100%;background:#e8bb7f;transform:scaleX(0);transform-origin:left center}
.qcg-cinema-toggle{display:inline-flex;gap:8px;align-items:center;min-width:72px;min-height:32px;justify-content:center;padding:5px 8px;border:1px solid rgba(255,255,255,.3);color:#fff9ee;background:transparent;cursor:pointer;font:600 11px/1 'DM Sans',sans-serif}
.qcg-cinema-toggle:hover,.qcg-cinema-toggle:focus-visible{border-color:#e9c18b;background:#183039}
.qcg-cinema-toggle:focus-visible,.qcg-chapter-rail a:focus-visible{outline:2px solid #f0cb98;outline-offset:3px}
.qcg-chapter-rail{position:fixed;right:13px;top:50%;transform:translateY(-50%);z-index:55;display:grid;gap:7px;padding:11px 8px;background:rgba(8,27,35,.91);border:1px solid rgba(255,255,255,.18);box-shadow:0 14px 36px rgba(0,0,0,.13)}
.qcg-chapter-rail a{position:relative;display:flex;align-items:center;justify-content:center;width:24px;height:32px;color:#f4ede3;text-decoration:none}
.qcg-chapter-dot{display:block;width:5px;height:5px;border:1px solid #ead9c0;transform:rotate(45deg);transition:background .24s,transform .24s,width .24s,height .24s}
.qcg-chapter-rail a.is-current .qcg-chapter-dot{width:9px;height:9px;background:#dfb477;border-color:#dfb477;transform:rotate(45deg)}
.qcg-chapter-label{pointer-events:none;position:absolute;right:34px;white-space:nowrap;opacity:0;visibility:hidden;background:#091d26;border:1px solid #735a40;padding:8px 11px;color:#f8efe0;font:600 11px/1.4 'DM Sans',sans-serif;transform:translateX(6px);transition:opacity .2s,transform .2s,visibility .2s}
.qcg-chapter-rail a:hover .qcg-chapter-label,.qcg-chapter-rail a:focus-visible .qcg-chapter-label{opacity:1;visibility:visible;transform:none}
@media(max-width:1100px){.qcg-chapter-rail{display:none}}
@media(max-width:780px){.qcg-cinema-hud{right:20px;bottom:153px;gap:10px;padding:7px 10px}.qcg-cinema-timeline{width:68px}}
@media(max-width:500px){.qcg-cinema-hud{right:20px;bottom:143px;min-height:39px;padding:5px 8px;gap:7px}.qcg-cinema-timeline{width:45px}.qcg-cinema-toggle{min-width:61px;min-height:30px;font-size:10px;gap:5px}.qcg-cinema-toggle-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.qcg-cinema-hud{right:20px;bottom:154px}.qcg-cinema-timeline{display:none}.home-flagship-photo .hpd-frame,.home-flagship-photo .hpd-frame img,.home-flagship-overlay h1,.home-hero-lede,.home-hero-ctas{animation:none!important;transition:none!important;transform:none!important;scale:none!important}}

/* V2.30: quieter cinematic UI — no floating right-side chapter symbols. */
.qcg-chapter-rail{display:none!important}
.qcg-cinema-hud{right:max(32px,calc((100vw - 1480px)/2 + 54px));bottom:174px;padding:7px 10px;min-height:40px;background:rgba(6,20,27,.69);border:1px solid rgba(255,255,255,.16);box-shadow:none;backdrop-filter:blur(7px)}
.qcg-cinema-timeline{width:82px}
.qcg-cinema-toggle{border:0;border-left:1px solid rgba(255,255,255,.28);background:none;padding:5px 4px 5px 13px;min-width:100px;font-size:10px;color:#f8eee0}
.qcg-cinema-toggle:hover,.qcg-cinema-toggle:focus-visible{background:transparent;border-left-color:#e9c18b;color:#ffdcab}
@media(max-width:780px){.qcg-cinema-hud{right:20px;bottom:153px}.qcg-cinema-timeline{width:50px}}
@media(max-width:500px){.qcg-cinema-hud{bottom:143px;right:14px;padding:5px 7px}.qcg-cinema-timeline{width:30px}.qcg-cinema-toggle{min-width:80px;padding-left:7px;font-size:9px}}
