.hd-demo { background:radial-gradient(ellipse at 85% 0%,#efd09c80,transparent 45%),radial-gradient(ellipse at 0% 60%,#865b3526,transparent 55%),#c49360; }
.hd-demo a { color:inherit; text-underline-offset:4px; }
.hd-demo .demo-page { max-width:1440px; margin:auto; padding:0 clamp(20px,5vw,80px); }
.hd-demo .demo-masthead { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 0 24px; border-bottom:1px solid #76513170; }
.hd-demo .demo-brand { font:28px/1.1 var(--hand); text-decoration:none; }
.hd-demo .demo-brand span { display:block; margin-top:7px; font:11px/1.5 'Trebuchet MS',Verdana,sans-serif; letter-spacing:.5px; }
.hd-demo .demo-home { font-size:12px; padding:12px 0; }
.hd-demo .demo-opening { display:grid; grid-template-columns:1.5fr 1fr; gap:clamp(30px,8vw,120px); align-items:center; padding:58px 0 48px; }
.hd-demo .demo-kicker,.hd-demo .demo-note-number { font-size:10px; line-height:1.7; text-transform:uppercase; letter-spacing:1.8px; font-weight:bold; margin:0 0 18px; }
.hd-demo h1 { font-size:clamp(70px,8.7vw,124px); line-height:.97; margin:0 0 25px; letter-spacing:-2px; }
.hd-demo h1 span { color:#75421f; }
.hd-demo .demo-intro { max-width:470px; font-size:17px; line-height:1.8; margin:0; }
.hd-demo .demo-invitation { border-left:1px solid #76513170; padding:12px 0 12px 32px; }
.hd-demo .demo-stamp { display:table; transform:rotate(-3deg); margin:0 0 26px; border:1px solid #86502d; border-radius:5px 8px 4px 7px; padding:7px 10px; font-size:10px; letter-spacing:1.5px; text-transform:uppercase; }
.hd-demo .demo-invitation h2 { font-size:32px; }
.hd-demo .demo-invitation>p { max-width:350px; font-size:13px; }
.hd-demo .demo-play { display:flex; align-items:center; gap:18px; min-height:64px; min-width:218px; margin-top:23px; padding:8px 24px 11px 15px; font:32px/1 var(--hand); border-radius:15px 19px 13px 17px; }
.hd-demo .demo-play-icon { display:grid; place-items:center; width:38px; height:38px; font:17px/1 sans-serif; border-radius:50%; background:#4b3825; color:#e5c795; box-shadow:inset 0 2px 4px #150f0b88,0 1px #ffe2ae; }
.hd-demo .demo-play:disabled { color:#62452f; }
.hd-demo .demo-status { max-width:370px; margin:18px 0 0; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.hd-demo .demo-status[data-error="true"] { color:#70271c; }
.hd-demo .demo-invitation .demo-small { font-size:11px; line-height:1.8; margin:13px 0 0; }
.hd-demo .demo-saves { margin:0 0 32px; padding:12px 20px; border:1px solid #76513170; border-radius:12px 18px 15px 10px; background:#edc79a55; }
.hd-demo .demo-saves summary { font:24px/1.3 var(--hand); padding:8px 0; }
.hd-demo .demo-saves .save-controls { max-width:680px; margin-top:10px; }
.hd-demo .demo-section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; padding:20px 0; border-top:1px solid #76513170; }
.hd-demo .demo-section-heading .demo-kicker { margin-bottom:7px; }
.hd-demo .demo-section-heading h2 { font-size:clamp(30px,3.2vw,44px); margin:0; }
.hd-demo .demo-section-heading>p { font-size:12px; line-height:1.8; margin:0 0 3px; }
.hd-demo .comparison-figure { margin:0; }
.hd-demo .comparison-stage { position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; border:6px solid #6d4c30; border-radius:13px 18px 11px 16px; background:radial-gradient(ellipse at 50% 40%,#4e412d,#262018); box-shadow:0 2px 0 #f2d2a0,0 12px 28px #52341f40; touch-action:pan-y; }
.hd-demo .comparison-image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.hd-demo .comparison-original { clip-path:inset(0 calc(100% - var(--comparison-position)) 0 0); }
.hd-demo .comparison-labels { position:absolute; inset:20px 20px auto; display:flex; justify-content:space-between; pointer-events:none; }
.hd-demo .comparison-labels span { padding:7px 13px; color:#fbe4bc; background:#2d241de0; border:1px solid #edc28a66; border-radius:5px 7px 4px 6px; font-size:11px; letter-spacing:1.3px; text-transform:uppercase; }
.hd-demo .comparison-divider { position:absolute; inset:0 auto 0 var(--comparison-position); width:2px; transform:translateX(-50%); background:#f8dfad; box-shadow:0 0 5px #21160999; pointer-events:none; }
.hd-demo .comparison-divider span { position:absolute; top:50%; left:50%; display:grid; place-items:center; width:44px; height:44px; transform:translate(-50%,-50%); border:2px solid #f8dfad; border-radius:50%; background:#3a2a1ce8; color:#f8dfad; font-size:26px; white-space:pre; box-shadow:0 3px 12px #0005; }
.hd-demo .comparison-stage:not([data-state="ready"]) .comparison-labels,.hd-demo .comparison-stage:not([data-state="ready"]) .comparison-divider { visibility:hidden; }
.hd-demo .comparison-state { position:absolute; inset:0; display:grid; place-content:center; max-width:440px; margin:auto; padding:24px; text-align:center; color:#f5ddb8; font-size:15px; line-height:1.8; }
.hd-demo .comparison-controls { display:flex; align-items:center; gap:22px; margin:20px 0 6px; }
.hd-demo .comparison-controls label { font-size:12px; white-space:nowrap; }
.hd-demo .comparison-controls label span { padding:0 9px; }
.hd-demo #comparison-range { appearance:none; flex:1; min-width:0; height:44px; margin:0; background:transparent; cursor:ew-resize; touch-action:pan-y; }
.hd-demo #comparison-range::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:#725033; }
.hd-demo #comparison-range::-moz-range-track { height:4px; border-radius:4px; background:#725033; }
.hd-demo #comparison-range::-webkit-slider-thumb { appearance:none; width:44px; height:44px; margin-top:-20px; border:1px solid #815331; border-radius:50%; background:radial-gradient(circle at 35% 25%,#f5d7a5,#c5935e); box-shadow:inset 1px 2px 3px #ffe3b5,inset -2px -3px 4px #916239,0 3px 3px #55341f60; }
.hd-demo #comparison-range::-moz-range-thumb { width:42px; height:42px; border:1px solid #815331; border-radius:50%; background:radial-gradient(circle at 35% 25%,#f5d7a5,#c5935e); box-shadow:0 3px 3px #55341f60; }
.hd-demo #comparison-range:disabled { opacity:.45; cursor:not-allowed; }
.hd-demo .comparison-figure figcaption { display:flex; justify-content:space-between; gap:10px 24px; font-size:11px; line-height:1.7; padding:8px 0 0; }
.hd-demo .demo-process { display:grid; grid-template-columns:1fr 2fr; gap:clamp(30px,6vw,90px); margin-top:70px; padding:38px 0 48px; border-top:1px solid #76513170; }
.hd-demo .demo-process-heading h2 { font-size:clamp(36px,4vw,53px); }
.hd-demo .demo-process-heading>p:last-child { max-width:260px; font-size:13px; }
.hd-demo .demo-process-notes { display:grid; grid-template-columns:1fr 1fr; gap:35px; }
.hd-demo .demo-process-notes h3 { font:26px/1.15 var(--hand); margin:10px 0; }
.hd-demo .demo-process-notes p { font-size:13px; line-height:1.85; margin:0; }
.hd-demo .demo-note-number { font-size:9px; }
.hd-demo .demo-film { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:32px; padding:32px; color:#f0d4a6; background:#3c2e22; border:1px solid #735336; border-radius:13px 20px 15px 11px; box-shadow:inset 0 1px #b5875350,0 6px 0 #825b3640; }
.hd-demo .demo-video { min-width:0; }
.hd-demo .demo-video-screen { position:relative; aspect-ratio:16/9; overflow:hidden; border:1px solid #aa8053; border-radius:8px 12px 7px 10px; background:#1d1813; }
.hd-demo .demo-video-host, .hd-demo .demo-video-host iframe { width:100%; height:100%; border:0; }
.hd-demo .demo-video-host { position:absolute; inset:0; }
.hd-demo .demo-video-host iframe { display:block; }
.hd-demo .demo-video p.demo-video-status { margin:9px 0 0; font-size:10px; line-height:1.5; color:#d5bd98; }
.hd-demo .demo-film .demo-kicker { color:#d5ae7a; margin-bottom:10px; }
.hd-demo .demo-film h2 { font-size:32px; text-shadow:none; }
.hd-demo .demo-film p:not(.demo-kicker) { max-width:680px; font-size:13px; line-height:1.8; }
.hd-demo .demo-film-link { display:inline-block; padding:8px 0; font-size:13px; }
.hd-demo .demo-film-note { display:block; margin-top:12px; font:21px/1.3 var(--hand); transform:rotate(-3deg); color:#d5ae7a; }
.hd-demo .demo-footer { display:flex; justify-content:space-between; align-items:start; gap:26px; margin:0; padding:28px 0 36px; border:0; text-align:left; line-height:1.7; font-size:11px; }
.hd-demo .demo-footer a { white-space:nowrap; }
.hd-demo .demo-skip { position:fixed; top:8px; left:12px; z-index:200; padding:12px; background:var(--paper); transform:translateY(-160%); }
.hd-demo .demo-skip:focus { transform:none; }
.hd-demo.demo-is-playing { overflow:hidden; overscroll-behavior:none; }
.hd-demo .demo-session { position:fixed; z-index:100; inset:0; display:grid; grid-template-rows:auto minmax(0,1fr); background:#17130e; color:#f1dec2; height:100dvh; }
.hd-demo .demo-toolbar { display:flex; flex-shrink:0; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 12px; padding:10px max(12px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); background:#30271e; border-bottom:1px solid #75603f; }
.hd-demo .demo-player-title { font:25px/1 var(--hand); white-space:nowrap; }
.hd-demo .demo-background-status { flex:1; min-width:140px; font-size:11px; line-height:1.5; color:#d5bd98; overflow-wrap:anywhere; }
.hd-demo .demo-player-actions { display:flex; gap:10px; margin-left:auto; }
.hd-demo .demo-player-actions button { min-height:44px; padding:10px 13px; font-size:12px; }
.hd-demo .demo-player-host { position:relative; grid-area:2/1; min-height:0; width:100%; }
.hd-demo .demo-player-host iframe { display:block; width:100%; height:100%; border:0; background:#000; }
.hd-demo .demo-loading { position:relative; grid-area:2/1; z-index:1; min-height:0; display:grid; place-items:center; padding:24px; background:#1c150ff5; }
.hd-demo .demo-loading .loading-card { max-height:100%; overflow:auto; }
.hd-demo .demo-loading button { margin-top:18px; }
.hd-demo .demo-loading progress { display:block; }
.hd-demo .demo-session-notice { position:absolute; bottom:12px; left:12px; right:12px; margin:0; padding:12px; background:#30271e; color:#f1dec2; font-size:12px; }
.hd-demo .demo-session :focus-visible { outline-color:#d9f4b4; }
.hd-demo [hidden] { display:none !important; }
@media(max-width:900px) {
  .hd-demo .demo-opening { gap:30px; }
  .hd-demo .demo-invitation { padding-left:24px; }
  .hd-demo .demo-film-note { display:none; }
  .hd-demo .demo-film { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .hd-demo .demo-process { grid-template-columns:1fr; }
  .hd-demo .demo-process-heading>p:last-child { max-width:440px; }
}
@media(max-width:600px) {
  .hd-demo .demo-page { padding:0 20px; }
  .hd-demo .demo-masthead { gap:14px; padding:22px 0; }
  .hd-demo .demo-brand { font-size:23px; }
  .hd-demo .demo-home { max-width:100px; text-align:right; font-size:11px; line-height:1.6; }
  .hd-demo .demo-opening { grid-template-columns:1fr; padding:36px 0; gap:28px; }
  .hd-demo h1 { font-size:clamp(52px,15vw,70px); }
  .hd-demo .demo-intro { font-size:15px; }
  .hd-demo .demo-invitation { padding:22px; border:1px solid #87603d; border-radius:12px 18px 15px 10px; background:#edc79a55; }
  .hd-demo .demo-stamp { margin-bottom:22px; }
  .hd-demo .demo-section-heading { display:block; }
  .hd-demo .demo-section-heading>p { margin-top:12px; }
  .hd-demo .demo-section-heading>p br { display:none; }
  .hd-demo .comparison-stage { border-width:3px; border-radius:7px 10px 6px 9px; }
  .hd-demo .comparison-labels { inset:10px 10px auto; }
  .hd-demo .comparison-labels span { font-size:9px; padding:5px 8px; }
  .hd-demo .comparison-state { font-size:13px; padding:20px; }
  .hd-demo .comparison-controls { gap:14px; }
  .hd-demo .comparison-controls label { font-size:11px; }
  .hd-demo .comparison-figure figcaption { flex-direction:column; gap:4px; font-size:10px; }
  .hd-demo .demo-process { margin-top:40px; padding-top:28px; gap:24px; }
  .hd-demo .demo-process-notes { grid-template-columns:1fr; gap:28px; }
  .hd-demo .demo-film { grid-template-columns:1fr; padding:25px; gap:20px; }
  .hd-demo .demo-footer { flex-direction:column; gap:12px; }
  .hd-demo .demo-player-title { font-size:21px; }
  .hd-demo .demo-player-actions { gap:7px; }
  .hd-demo .demo-background-status { order:3; flex-basis:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .hd-demo *, .hd-demo *::before, .hd-demo *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}
