@font-face{font-family:'FK Grotesk Neue';src:url('/ai/assets/fonts/fk-grotesk-neue-regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}

/* One complete film, using the homepage's white canvas and quiet typography. */
.video-page{--ink:#000;--muted:#717171;--line:#dedede;--video-margin:16px;background:#fff;color:#000;font-family:'FK Grotesk Neue','Helvetica Neue','PingFang SC','Microsoft YaHei',sans-serif;font-weight:400;min-height:100svh}
.video-page .site-header{width:calc(100% - var(--video-margin)*2);max-width:none;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.video-back,.video-page .header-contact{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;font-size:12px;line-height:1.4}
.video-back svg{width:14px;height:14px}.video-page .header-contact span{font-size:16px;margin-left:12px}
.video-showcase{width:min(440px,calc(100% - var(--video-margin)*2));margin:24px auto 0}
.video-heading{text-align:left}
.video-heading h1{font-size:36px;line-height:1.2;letter-spacing:-.045em;font-weight:400}
.video-intro{margin-top:10px;font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.video-languages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 16px;border-bottom:1px solid var(--line)}
.video-languages button{position:relative;min-width:0;min-height:44px;padding:8px 0 12px;color:var(--muted);font-size:13px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.video-languages button::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:currentColor;transform:scaleX(0);transition:transform .22s ease}
.video-languages button.active{color:#000}.video-languages button.active::after{transform:scaleX(1)}
.video-player{position:relative;width:100%}
.video-frame{position:relative;width:min(100%,max(190px,calc((100svh - 436px)*.852459)));aspect-ratio:832/976;margin-inline:auto;overflow:hidden;border-radius:2px;background:#f3f3f3;isolation:isolate;touch-action:pan-y pinch-zoom}
#video-mount,.video-poster,#case-video{display:block;width:100%;height:100%}
#video-mount{position:absolute;inset:0}.video-poster,#case-video{object-fit:contain}#case-video{cursor:pointer}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fffffff2;color:#000;z-index:2}
.video-play svg{width:20px;height:20px;margin-left:2px}.video-play:active{transform:translate(-50%,-50%) scale(.96)}
.video-player[data-paused="false"] .video-play,.video-player:not([data-state="ready"]) .video-play{display:none}
.video-controls{display:flex;align-items:center;gap:6px;width:100%;min-height:48px;border-bottom:1px solid var(--line);color:#000}
.media-button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;color:inherit;border-radius:2px;background:transparent}
.media-button:hover{background:#f2f2f2}.media-button:disabled{opacity:.35;cursor:default}.media-button svg{width:18px;height:18px}
#video-seek{flex:1;min-width:24px;width:100%;height:28px;margin:0;cursor:pointer;appearance:none;-webkit-appearance:none;background:transparent}
#video-seek::-webkit-slider-runnable-track{height:2px;background:#d6d6d6}
#video-seek::-moz-range-track{height:2px;background:#d6d6d6}
#video-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:8px;background:currentColor;border:0;border-radius:50%;margin-top:-3px}
#video-seek::-moz-range-thumb{width:8px;height:8px;background:currentColor;border:0;border-radius:50%}
#video-seek:disabled{opacity:.4;cursor:default}
#video-time{flex:none;font-size:10px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;margin-inline:4px}
.video-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;pointer-events:none;padding:20px;text-align:center;z-index:4}
.video-status p{padding:8px 12px;border-radius:2px;background:#fffffff2;color:#555;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.video-status button{min-height:44px;padding:8px 18px;background:#000;color:#fff;border-radius:2px;font-size:13px;pointer-events:auto}
.video-player[data-state="error"] .video-status,.video-player[data-state="empty"] .video-status{background:#f3f3f3}
.video-consult{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:48px;margin-top:16px;padding:12px 16px;border:1px solid #000;border-radius:2px;background:#000;color:#fff;font-size:13px;line-height:1.4;text-align:left}
.video-consult>span:first-child{display:flex;align-items:center;gap:10px}.video-consult svg{width:17px;height:17px}.video-consult>span:last-child{font-size:20px;line-height:1}.video-consult:hover{background:#272727}
.video-page .site-footer{width:calc(100% - var(--video-margin)*2);max-width:none;margin-top:24px;padding:0 0 max(16px,env(safe-area-inset-bottom));border:0;font-size:12px;color:var(--muted)}
.video-page .site-footer a{display:inline-flex;align-items:center;gap:16px;min-height:44px}
.video-page :is(.site-header,.video-showcase,.site-footer,.contact-dialog) :is(button,a,input):focus-visible{outline:1px solid currentColor;outline-offset:4px}
.video-page .video-consult:focus-visible{outline-color:#000}

/* The existing consultation window keeps its actual connection status. */
.video-page .contact-dialog{width:min(420px,calc(100% - 32px));padding:20px;border:1px solid var(--line);border-radius:4px;max-height:calc(100dvh - 32px)}
.video-page .contact-dialog::backdrop{background:#0005}
.video-page .dialog-heading h2{font-size:22px;font-weight:400;line-height:1.3}
.video-page .contact-topic{margin:8px 0 20px;font-size:12px;line-height:1.5;color:var(--muted)}
.video-page #contact-input{display:block;width:100%;min-height:144px;max-height:44dvh;resize:vertical;border:1px solid var(--line);border-radius:2px;padding:12px;font:inherit;font-size:16px;line-height:1.6;color:#000;background:#fff}
.video-page #contact-input:focus{outline:1px solid #717171;outline-offset:1px}
.video-page #contact-input[aria-invalid="true"]{border-color:var(--error)}
.video-page #contact-feedback{margin:12px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.video-page #contact-form .button{min-height:44px;border-radius:2px;font-size:13px;padding:10px 16px}

.video-player:fullscreen{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background:#000;color:#fff;padding:0 16px}
.video-player:fullscreen .video-frame{flex:1;min-height:0;width:100%;aspect-ratio:auto;background:#000;border-radius:0}
.video-player:fullscreen .video-controls{flex:none;color:#fff;border-color:#333;max-width:960px;padding-bottom:env(safe-area-inset-bottom)}
.video-player:fullscreen .media-button:hover{background:#333}.video-player:fullscreen #case-video{background:#000}

@media(max-width:800px){
  .video-page{--video-margin:14px}
  .video-page .site-header{min-height:56px}
  .video-showcase{margin-top:24px}
  .video-heading h1{font-size:28px}
  .video-intro{font-size:12px;margin-top:8px}
  .video-languages{margin-top:16px;margin-bottom:12px;gap:4px}
  .video-languages button{font-size:12px}
  .video-frame{width:min(100%,max(180px,calc((100svh - 312px)*.852459)))}
  .video-controls{gap:4px}
  .video-consult{margin-top:12px;min-height:44px;padding-block:10px}
  .video-page .site-footer{margin-top:16px}
}
@media(max-width:800px) and (max-height:700px){
  .video-showcase{margin-top:4px}.video-languages{margin-top:8px;margin-bottom:10px}
  .video-frame{width:min(100%,max(160px,calc((100svh - 380px)*.852459)))}
  .video-page .site-footer{margin-top:8px}
}
@media(prefers-reduced-motion:reduce){.video-languages button::after{transition:none}}
@media(forced-colors:active){.video-consult,.video-status button,.video-play{border:1px solid ButtonText}#video-seek{appearance:auto;-webkit-appearance:auto}}
