.gallery-main { position: relative; isolation: isolate; }
.gallery-main .image-outgoing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; z-index: 1; }
.employee-phone-nav { position: relative; --selected-view: 0; isolation: isolate; }
.employee-phone-nav::after { content: ''; position: absolute; top: 0; left: 0; width: 25%; height: 3px; border-radius: 2px; background: #c45527; transform: translateX(calc(var(--selected-view) * 100%)); transition: transform .28s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.employee-phone-nav button[data-employee-view][aria-pressed="true"] { border-top-color: transparent; }
.employee-screen { background: #f6f7f3; }
.agent-demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.agent-demo-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 15px; border: 1px solid #92aaa2; border-radius: 8px; background: #ffffff0a; color: #f7faf6; font: inherit; font-size: 13px; cursor: pointer; }
.agent-demo-button svg { width: 15px; height: 15px; fill: currentColor; }
.agent-demo-button:hover { background: #ffffff20; border-color: #f1ae80; }
.agent-demo-button[aria-pressed="true"] { background: #f6a56f; color: #193c30; border-color: #f6a56f; }
.agent-demo-button:focus-visible { outline: 3px solid #f6a56f; outline-offset: 4px; }
.agent-demo-status { font-size: 12px; color: #c1d0c9; }
.laptop-screen { position: relative; }
.laptop-screen .hero-film-loop { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f6f7f3; }
.hero-film-loop[hidden] { display: none; }
.hero-phone .device-phone-screen { position: relative; }
.hero-phone .hero-film-loop { position: absolute; inset: 19px 0 0; width: 100%; height: calc(100% - 19px); object-fit: contain; object-position: top; background: #f6f7f3; }
.hero-film-link { gap: 10px; }
.hero-film-link svg { width: 17px; height: 17px; fill: currentColor; }
.product-film { background: #eeeede; border-block: 1px solid #d9dece; }
.film-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 30px; }
.film-heading h2 { max-width: 640px; margin: 14px 0 0; }
.film-heading .intro { font-size: 16px; color: #53624f; }
.film-preview { display: block; width: 100%; overflow: hidden; position: relative; aspect-ratio: 16 / 9; border: 1px solid #718978; border-radius: 18px; background: #173b30; text-decoration: none; box-shadow: 0 22px 48px #203a2820; }
.film-preview > img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.film-preview::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,#112d25ed); pointer-events: none; }
.film-preview-label { position: absolute; z-index: 1; inset: auto 30px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: white; }
.film-preview-label strong { display: block; font-size: clamp(20px,2.6vw,34px); font-weight: 550; }
.film-preview-label small { display: block; font-size: 12px; color: #d3e2d9; margin-top: 5px; }
.film-play { display: grid; place-items: center; width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; background: #ffad76; color: #15392d; box-shadow: 0 0 0 10px #ffffff16; transition: transform .2s, background .2s; }
.film-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.film-preview:hover .film-play { transform: scale(1.08); background: #ffc69e; }
.film-preview:focus-visible { outline: 3px solid #b54314; outline-offset: 6px; }
.film-chapters { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.film-chapters a { padding: 15px 0; border-top: 1px solid #bac6b2; text-decoration: none; color: #274e3e; font-size: 13px; }
.film-chapters a:hover { border-top-color: #b54314; color: #96370e; }
.film-chapters time { display: block; color: #6d7c67; font-size: 11px; margin-bottom: 7px; }
.film-note { margin-top: 15px; color: #5a6953; font-size: 12px; }
.film-transcript { margin-top: 22px; font-size: 14px; }
.film-transcript summary { width: fit-content; padding-block: 12px; color: #274e3e; cursor: pointer; }
.film-transcript ol { max-width: 760px; display: grid; gap: 16px; padding-left: 22px; line-height: 1.7; }
.film-transcript strong { display: block; }
#film-dialog { width: min(1280px,96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid #799084; border-radius: 16px; background: #142e26; color: white; overflow: auto; }
#film-dialog::backdrop { background: #091b15db; backdrop-filter: blur(6px); }
.film-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; }
.film-dialog-heading h2 { font-size: 16px; margin: 0; }
.film-dialog-heading button { min-height: 44px; border: 1px solid #839a8d; border-radius: 8px; background: #ffffff09; color: white; padding: 8px 14px; font: inherit; cursor: pointer; }
.film-dialog-heading button:hover { background: #ffffff20; }
.film-player { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(94dvh - 154px); object-fit: contain; background: #142e26; }
.film-player::cue { background: #132c23e8; color: white; font-family: system-ui,sans-serif; }
.film-dialog-note { font-size: 12px; padding: 14px 20px; color: #cedad2; }
.film-fallback { color: #ffbb8f; text-underline-offset: 3px; }
body.film-is-open { overflow: hidden; }
@media (max-width: 760px) {
  .hero-phone .hero-film-loop { top: 15px; height: calc(100% - 15px); }
  .film-heading { grid-template-columns: 1fr; gap: 18px; }
  .film-heading .intro { font-size: 15px; }
  .film-preview { border-radius: 12px; }
  .film-preview-label { inset: auto 16px 15px; gap: 12px; }
  .film-preview-label strong { font-size: 17px; }
  .film-preview-label small { font-size: 10px; }
  .film-play { width: 46px; height: 46px; box-shadow: 0 0 0 6px #ffffff16; }
  .film-play svg { width: 16px; height: 16px; }
  .film-chapters { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; row-gap: 0; }
  .film-chapters a { min-height: 65px; font-size: 12px; }
  .home-compact .hero-actions .hero-film-link { width: 100%; justify-content: center; }
  #film-dialog { width: 96vw; border-radius: 10px; }
  .film-dialog-heading { padding: 10px 12px; }
  .film-dialog-heading h2 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .employee-phone-nav::after, .film-play, .film-preview > img { transition: none; }
}
