/* On touch screens, the same native scroll drives a pinned, upward-cover story. */
@media(max-width:1100px){
 .creation-motion-enabled .creation-stage{height:var(--creation-mobile-height,100svh);min-height:0;top:0;overflow:hidden}
 .creation-motion-enabled .creation-layout{height:100%;width:calc(100% - 28px);max-width:900px;padding:88px 0 var(--consultation-clearance,132px);display:flex;flex-direction:column;gap:12px}
 .creation-motion-enabled .creation-heading{margin:0;flex:none}
 .creation-motion-enabled .creation-eyebrow{display:none}
 .creation-motion-enabled h2{font-size:clamp(22px,4.5vw,32px);line-height:1.4}
 .creation-motion-enabled .creation-content{align-items:stretch;display:flex;flex:1;min-height:0;flex-direction:column;gap:10px}
 .creation-motion-enabled .creation-step{position:relative;top:auto;margin:0;padding:0;flex:none;z-index:8}
 .creation-motion-enabled .creation-step-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .creation-motion-enabled .creation-step-title{min-height:44px;justify-content:center;padding:6px 2px;gap:3px;flex-direction:column;border-radius:6px}
 .creation-motion-enabled .creation-step-title small{font-size:10px;line-height:1}
 .creation-motion-enabled .creation-step-name{font-size:12px;line-height:1.4;white-space:nowrap}
 .creation-motion-enabled .creation-presentations{position:relative;flex:1;min-height:0;display:block;overflow:hidden;border-radius:13px;isolation:isolate}
 .creation-motion-enabled .creation-presentation{position:absolute;inset:0;display:block;background:#f1f2f0;height:100%;overflow:hidden;will-change:transform}
 .creation-motion-enabled .creation-board{height:100%;display:flex;flex-direction:column;box-shadow:none}
 .creation-motion-enabled .creation-board-top{padding:8px 12px;min-height:38px;flex:none;gap:6px;flex-wrap:nowrap}
 .creation-motion-enabled .creation-board-top strong{font-size:12px;white-space:nowrap}
 .creation-motion-enabled .creation-status{font-size:10px;white-space:nowrap}
 .creation-motion-enabled .creation-screens{position:relative;display:block;flex:1;min-height:0;overflow:hidden;isolation:isolate}
 .creation-motion-enabled .creation-chat{position:absolute;inset:0;display:flex;flex-direction:column;border:0;background:#fafbf8;min-height:0}
 .creation-motion-enabled .creation-chat-heading{padding:10px 12px;font-size:12px;flex:none}
 .creation-motion-enabled .creation-chat-heading small{font-size:10px}
 .creation-motion-enabled .creation-chat-window{height:auto;flex:1;min-height:0;overflow:hidden;padding:4px 12px 14px}
 .creation-motion-enabled .creation-messages .creation-message{display:flex;margin-bottom:14px}
 .creation-motion-enabled .creation-message>span{font-size:11px}
 .creation-motion-enabled .creation-message>p{font-size:14px;line-height:1.75;padding:10px 12px;max-width:95%}
 .creation-motion-enabled .creation-result{position:absolute;inset:0;background:#fff;z-index:2;padding:8px;gap:6px;display:flex;flex-direction:column;overflow:hidden;transform:translateY(calc((1 - var(--mobile-draft-cover,0))*100%));will-change:transform}
 .creation-motion-enabled .completion-result{transform:translateY(calc((1 - var(--mobile-final-cover,0))*100%))}
 .creation-motion-enabled .creation-sample-heading{min-height:24px;flex:none}
 .creation-motion-enabled .creation-sample-heading b{font-size:12px}
 .creation-motion-enabled .creation-sample-heading small,.creation-motion-enabled .creation-sample-badge{font-size:10px}
 .creation-motion-enabled .creation-preview-screen{min-height:0;height:auto;flex:1}
 .creation-motion-enabled .creation-demo{opacity:1;transform:none}
 .creation-motion-enabled .creation-draft{display:none}
 .creation-motion-enabled .creation-chapters{flex:none;gap:4px}
 .creation-motion-enabled .creation-chapters button{font-size:11px;min-height:38px;padding:6px 0}
 .creation-motion-enabled .creation-chapters small{display:none}
 .creation-motion-enabled .creation-result-foot{min-height:26px;align-items:center;flex:none;font-size:10px;line-height:1.5;flex-wrap:nowrap;gap:4px}
 .creation-motion-enabled .creation-result-foot a{font-size:11px;min-height:26px;padding:4px 0}
 .creation-motion-enabled .creation-footnote{display:none}
 /* Each handoff example takes the place of the conversation only at its cue. */
 .creation-motion-enabled .handoff-demo{position:absolute;inset:0;display:flex;flex-direction:column;z-index:2;padding:0;gap:0;background:transparent;pointer-events:none;height:100%;min-height:0;overflow:hidden}
 .creation-motion-enabled .handoff-demo-nav{display:none}
 .creation-motion-enabled .handoff-demo-views{display:block;position:relative;flex:1;min-height:0;overflow:hidden}
 .creation-motion-enabled .handoff-demo-view,.creation-motion-enabled .handoff-demo-view[aria-hidden=true]{display:flex;position:absolute;top:0;left:0;width:100%;min-height:100%;height:auto;opacity:1;background:#f8f7f4;border:0;border-radius:0;will-change:transform}
 .creation-motion-enabled .handoff-demo-heading{padding:12px;min-height:64px}
 .creation-motion-enabled .handoff-demo-heading h3{font-size:16px}
 .creation-motion-enabled .handoff-account-list li{padding:10px 0}
 .creation-motion-enabled .handoff-account-list strong{font-size:14px}
 .creation-motion-enabled .handoff-account-list li>div>span{font-size:12px}
 .creation-motion-enabled .handoff-edit-content{padding:14px 12px;gap:16px}
 .creation-motion-enabled .handoff-edit-message>p{font-size:14px;line-height:1.8}
 .creation-motion-enabled .handoff-preview-pair{min-height:210px}
 .creation-motion-enabled .handoff-preview-desktop{height:200px}
 /* The full source text is panned by the page scroll before the next view covers it. */
 .creation-motion-enabled .search-demo{height:100%;display:flex;flex-direction:column;overflow:hidden}
 .creation-motion-enabled .search-demo-heading{flex:none;padding:10px 12px;min-height:40px}
 .creation-motion-enabled .search-demo .search-demo-heading h3{font-size:13px}
 .creation-motion-enabled .search-demo-heading p{display:none}
 .creation-motion-enabled .search-modes{padding:0 12px;gap:8px;flex:none}
 .creation-motion-enabled .search-mode{min-height:44px;padding:6px 0;gap:3px}
 .creation-motion-enabled .search-mode b{font-size:12px}
 .creation-motion-enabled .search-mode>span{font-size:10px}
 .creation-motion-enabled .search-views{position:relative;flex:1;min-height:0;overflow:hidden;display:block}
 .creation-motion-enabled .search-view,.creation-motion-enabled .search-view[aria-hidden=true]{position:absolute;top:0;left:0;width:100%;height:auto;min-height:100%;display:block;opacity:1;background:#fff;will-change:transform}
 .creation-motion-enabled .search-example{padding:14px 12px}
 .creation-motion-enabled :is(.search-aeo-scroll,.search-geo-scroll){max-height:none;height:auto;overflow:visible;padding:0}
 .creation-motion-enabled .search-capture img{height:140px}
 .creation-motion-enabled .search-demo .search-demo-note{padding:8px 12px;font-size:10px;line-height:1.5;flex:none}
 .creation-motion-enabled .search-preparation{padding:16px 12px}
}
@media(min-width:701px) and (max-width:1100px){
 .creation-motion-enabled .creation-layout{width:calc(100% - 64px);padding-top:112px}
 .creation-motion-enabled .creation-step-title{flex-direction:row;gap:8px}
 .creation-motion-enabled .creation-step-name{font-size:14px}
 .creation-motion-enabled .creation-chat-window{padding-left:24px;padding-right:24px}
 .creation-motion-enabled .creation-message>p{font-size:16px;max-width:80%}
 .creation-motion-enabled .creation-result{padding:14px;gap:10px}
 .creation-motion-enabled .creation-chapters button{font-size:13px;min-height:44px}
 .creation-motion-enabled .handoff-demo-view{padding:14px 28px}
 .creation-motion-enabled .search-view{padding:12px 20px}
}
@media(max-width:1100px) and (max-height:650px){
 .creation-motion-enabled .creation-layout{padding-top:88px;padding-bottom:var(--consultation-clearance,132px);gap:8px}
 .creation-motion-enabled h2{font-size:20px;line-height:1.35}
 .creation-motion-enabled .creation-content{gap:8px}
 .creation-motion-enabled .creation-board-top{min-height:32px;padding:6px 10px}
 .creation-motion-enabled .creation-chat-heading{padding:7px 10px}
 .creation-motion-enabled .creation-result-foot>span{display:none}
 .creation-motion-enabled .creation-result-foot{justify-content:flex-end}
}
/* The wider header still has a 102px mask on a short tablet or laptop. */
@media(min-width:701px) and (max-width:1100px) and (max-height:650px){
 .creation-motion-enabled .creation-layout{padding-top:112px}
}
@media(max-width:1100px) and (max-height:500px) and (orientation:landscape){
 .creation-motion-enabled .creation-layout{width:calc(100% - 40px);padding:80px 0 var(--consultation-clearance,132px);gap:4px}
 body[data-scene="creation"] .site-header::before{height:80px}
 .creation-motion-enabled .creation-heading{display:none}
 .creation-motion-enabled .creation-step-title{flex-direction:row;min-height:36px;gap:6px;padding:4px}
 /* Compact buttons must override the shared action padding, otherwise the
    fixed-height frame clips the website and the final link underneath it. */
 .creation-motion-enabled .creation-step-title.action-link{margin:0;min-height:32px;padding:4px 8px;font-size:12px;gap:6px}
 .creation-motion-enabled .creation-content{gap:4px}
 .creation-motion-enabled .creation-board-top{display:none}
 .creation-motion-enabled .creation-result{display:grid;grid-template-columns:minmax(0,1fr) 144px;grid-template-rows:minmax(0,1fr) auto;padding:6px;gap:4px 10px}
 .creation-motion-enabled .creation-preview-screen{grid-column:1;grid-row:1/3}
 .creation-motion-enabled .creation-sample-heading{display:none}
 .creation-motion-enabled .creation-chapters{grid-column:2;grid-row:1;grid-template-columns:1fr 1fr;align-content:center;min-height:0}
 .creation-motion-enabled .creation-chapters .action-link{min-height:34px;padding:6px 4px;font-size:11px;gap:3px;white-space:nowrap}
 .creation-motion-enabled .creation-result-foot{grid-column:2;grid-row:2;min-height:34px}
 .creation-motion-enabled .creation-chat-heading{display:none}
 .creation-motion-enabled .creation-message>p{font-size:14px;padding:8px 12px;max-width:80%}
 .creation-motion-enabled .search-demo-heading,.creation-motion-enabled .search-demo-note{display:none}
 .creation-motion-enabled .search-mode{min-height:36px;flex-direction:row;align-items:center;gap:10px}
}

/* Keep the four stage names inside their tabs on narrow phones. */
@media(max-width:360px){
 .creation-motion-enabled .creation-step-name{font-size:10px;letter-spacing:-.045em}
}

/* Give the actual website more space on short portrait phone screens. */
@media(max-width:600px) and (max-height:620px) and (orientation:portrait){
 .creation-motion-enabled .creation-heading,.creation-motion-enabled .creation-board-top{display:none}
}

/* Browser bars and the safe area can leave a short landscape canvas. Use the
   measured space above the dock, rather than assuming a fixed device height. */
@media(max-width:1100px) and (orientation:landscape){
 .creation-tight-landscape .creation-motion-enabled .creation-content{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px}
 .creation-tight-landscape .creation-motion-enabled .creation-step{align-self:center}
 .creation-tight-landscape .creation-motion-enabled .creation-step-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .creation-tight-landscape .creation-motion-enabled .creation-step-title.action-link{flex-direction:column;min-height:40px;padding:4px 2px;font-size:11px;gap:2px}
 .creation-tight-landscape .creation-motion-enabled .creation-presentations{height:100%}
 .creation-tight-landscape .creation-motion-enabled .creation-chapters .action-link{min-height:28px;padding:4px;font-size:10px}
 .creation-tight-landscape .creation-motion-enabled .creation-result-foot{min-height:30px}
 .creation-tight-landscape .creation-motion-enabled .creation-result-foot .action-link{min-height:30px;padding:5px 6px;font-size:10px}
}
