/* The homepage's existing visual world, with three deliberate interactions. */
.hero-artifacts [data-hero-preview] {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 240ms var(--ease-out), translate 240ms var(--ease-out);
}

.hero-artifacts [data-hero-preview]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}

.hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-explore svg { width: 12px; height: 12px; }
.hero-keyboard-fragment .fragment-bar { margin-bottom: 10px; }
.hero-artifacts .is-preview-open { opacity: 0 !important; }

@media (hover: hover) and (pointer: fine) {
  .hero-artifacts [data-hero-preview]:hover { translate: 0 -5px; }
  .hero-artifacts [data-hero-preview]:hover::after { opacity: 0; }
}

/* Native dialog supplies focus containment, Escape, and background inertness.
   Its surface moves from the selected artifact's measured rectangle. */
.has-demo-portal { overflow: hidden; }
.demo-portal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: hidden;
}

.demo-portal[open] { display: flex; align-items: center; justify-content: center; }
.demo-portal::backdrop { background: rgb(13 17 20 / 46%); }
.demo-portal-surface {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(920px, calc(100dvh - 48px));
  overflow: hidden;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 32px 100px rgb(9 12 14 / 30%);
  transform-origin: center;
}

.demo-portal-content { display: flex; flex-direction: column; max-height: inherit; }
.demo-portal-header {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 22px;
}

.demo-portal-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.7vw, 32px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.demo-portal-header p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.demo-portal-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--ink);
  background: var(--card);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 180ms ease;
}
.demo-portal-close svg { width: 24px; height: 24px; }
.demo-portal-close:active { transform: scale(.96); }
.demo-portal-body { min-height: 0; padding: 8px 32px 28px; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--quiet) transparent; scrollbar-width: thin; }
.demo-portal-footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; border-top: 1px solid var(--hairline); color: var(--quiet); font-size: 12px; }
.demo-portal-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.demo-portal-footer svg { width: 14px; height: 14px; }
.demo-portal-ghost { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.demo-portal-ghost > a { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 24px; border-radius: inherit; transform: none; text-decoration: none; }
.demo-portal-ghost .hero-place-row img { height: 140px; }
.demo-portal-ghost .hero-chat-fragment,
.demo-portal-ghost .hero-keyboard-fragment { color: #f1f3f4; background: #1b1f22; }
.demo-portal-ghost .hero-note-fragment { background: var(--paper); }

.demo-portal[data-demo="keyboard"] .demo-portal-surface { width: min(780px, 100%); height: min(860px, 100%); }
.demo-portal[data-demo="keyboard"] .demo-portal-content { height: 100%; }
.demo-portal[data-demo="keyboard"] .demo-portal-body { --preview-stacked: 0; display: grid; flex: 1; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 32px; }
.demo-portal .keyboard-switches { display: grid; min-width: 0; gap: 24px; margin: 0; }
.demo-portal .switch-row { display: grid; gap: 14px; }
.demo-portal .switch-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-portal .switch-chips button { min-height: 40px; font-size: 13px; }
/* The original phone keeps its layout; a single transform scales its frame,
   text, icons, and keys together into the available preview space. */
.demo-portal .keyboard-stage { --phone-width: 393px; height: var(--preview-phone-height, 698.64px); margin: 0; padding: 0; }
.demo-portal .keyboard-device { position: absolute; top: 0; left: 50%; margin: 0; transform: translateX(-50%) scale(var(--preview-phone-scale, .82)); transform-origin: top center; }
.demo-portal .theme-selector { position: static; width: 100%; margin: 0; padding: 16px; border-radius: 18px; }
.demo-portal .theme-selector-copy { gap: 8px; }
.demo-portal .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-portal .theme-option { min-height: 64px; }

.demo-portal .visual-answer { grid-template-columns: minmax(160px, .28fr) minmax(0, 1fr); gap: 28px; }
.demo-portal .visual-answer > div:first-child { min-width: 0; }
.demo-portal [data-chat-query] { font-size: 22px; line-height: 1.25; }
.demo-portal .visual-screen { min-height: 0; border-radius: 18px; }
.demo-portal .visual-topbar { min-height: 48px; padding-inline: 18px; }
.demo-portal .visual-panel { margin: 16px; padding: 18px; }
.demo-portal .visual-place-grid-large { gap: 12px; }
.demo-portal .visual-place-grid-large img { height: 114px; }
.demo-portal .visual-prompt { margin: 18px 18px 0; }
.demo-portal .visual-detail-heading strong { font-size: 21px; }
.demo-portal .visual-composer { margin: 16px; }
.demo-portal .visual-caption { font-size: 13px; }

.demo-portal .notes-workbench { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 0; }
.demo-portal .note-editor { min-height: 500px; border-radius: 16px; }
.demo-portal .note-toolbar { min-height: 50px; padding-inline: 20px; gap: 16px; }
.demo-portal .note-page { width: calc(100% - 48px); margin: 30px auto; }
.demo-portal .note-page h3 { font-size: 30px; letter-spacing: -.035em; }
.demo-portal .note-page .note-date { margin-bottom: 24px; }
.demo-portal .note-page h4 { margin-top: 24px; }
.demo-portal .voice-note { margin: 0; padding: 22px; border-radius: 16px; }
.demo-portal .voice-note-wave { margin-block: 22px; }
.demo-portal .voice-transcript { font-size: 14px; }
.demo-portal .transform-controls { flex-wrap: wrap; }
.demo-portal .transform-controls button { min-height: 40px; font-size: 12px; }
.demo-portal .transform-output { min-height: 120px; padding: 20px; }
.demo-portal .import-strip { position: static; grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; width: auto; margin-top: 4px; padding: 18px 0 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }

/* Shared controls stay within the incumbent oxide-red action hierarchy. */
.scene-action,
.ask-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  cursor: pointer;
  font: 600 13px/1.3 var(--font);
  transition: transform 120ms var(--ease-out), background-color 180ms ease, opacity 180ms ease;
}
.scene-action svg { width: 18px; height: 18px; flex: none; }
.scene-action:active,
.ask-buttons button:active { transform: scale(.98); }
.scene-action:disabled { opacity: .65; cursor: default; }
.scene-text-action { min-height: 44px; padding: 8px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font: 600 13px/1.3 var(--font); text-underline-offset: 4px; }
.demo-portal button:focus-visible,
.demo-portal a:focus-visible,
.scene-action:focus-visible,
.scene-text-action:focus-visible,
.ask-buttons button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .scene-action:not(:disabled):hover { background: var(--accent-dark); }
  .scene-text-action:hover { color: var(--ink); text-decoration: underline; }
  .demo-portal-close:hover { background: var(--card-alt); }
}

/* Ask Auri: one question, the sample results, then an explicit approval. */
[data-ask-demo] [hidden],
[data-handoff-demo] [hidden],
.demo-portal [hidden] { display: none !important; }
.ask-stage.is-interactive { align-self: start; }
.ask-stage.is-interactive .ask-panel { min-height: 216px; }
.ask-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ask-demo-heading strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.ask-demo-heading > span { color: var(--quiet); font-size: 11px; }
.ask-play-controls { margin-top: 26px; }
.ask-checks { display: grid; gap: 6px; margin: 20px 0 18px; }
.ask-checks > div { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--muted); font-size: 12px; }
.ask-checks svg { width: 20px; height: 20px; flex: none; }
.ask-checks i { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--quiet); opacity: .3; }
.ask-checks .is-checking i { background: var(--accent); animation: ask-check-pulse 900ms var(--ease-out) infinite; }
.ask-checks .is-done { color: var(--ink); }
.ask-checks .is-done i { width: 10px; height: 6px; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; border-radius: 0; background: transparent; opacity: 1; transform: rotate(-45deg); }
.ask-buttons button { background: var(--paper-bright); color: var(--ink); }
.ask-buttons button.is-primary { color: var(--accent-ink); background: var(--accent); }
.ask-demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 32px; }
.ask-demo-footer p { margin: 0; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.ask-demo-footer button { flex: none; }
.ask-calendar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.ask-calendar-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.ask-calendar-heading > strong { font-size: 17px; letter-spacing: -.02em; }
.ask-calendar-heading > span { font-size: 11px; color: var(--quiet); }
.ask-calendar-grid { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 8px 12px; }
.ask-calendar-grid > span { color: var(--quiet); font-size: 11px; font-variant-numeric: tabular-nums; }
.ask-calendar-grid > i { height: 20px; border-top: 1px solid var(--hairline); }
.ask-calendar-event { display: grid; gap: 5px; min-height: 62px; padding: 12px 14px; background: var(--card); border-radius: 10px; }
.ask-calendar-event strong { color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.ask-calendar-event > span { color: var(--muted); font-size: 12px; }
.ask-insert { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.ask-insert p { max-width: 34ch; margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.ask-insert button { flex: none; }
[data-ask-reply] { display: inline; }
[data-step="done"] .ask-field { background: var(--card); }
[data-step="done"] .ask-caret { animation: none; }
@keyframes ask-check-pulse { 50% { opacity: 1; transform: scale(1.25); } }

/* The original family composition opens into two readable, live UI surfaces. */
[data-handoff-demo] { position: relative; display: block; padding-top: 0; }
[data-handoff-demo] .device-family { min-height: 330px; transition: opacity 240ms var(--ease-out), transform 480ms var(--ease-out); }
[data-handoff-demo]:not([data-state="idle"]) .device-family { opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; }
.handoff-live { position: absolute; inset: 0 0 102px; min-height: 330px; isolation: isolate; }
.handoff-mac { position: absolute; top: 2px; right: 0; width: 80%; min-height: 290px; padding-bottom: 54px; color: var(--ink); background: var(--paper-bright); border-radius: 15px; box-shadow: 0 18px 42px rgb(14 20 25 / 20%); }
.handoff-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 0 16px; color: var(--muted); background: var(--card); border-radius: 15px 15px 0 0; font-size: 11px; }
.handoff-traffic { display: flex; gap: 5px; }
.handoff-traffic i { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); opacity: .5; }
.handoff-window-bar > svg { width: 16px; height: 16px; }
.handoff-mail-meta { display: grid; grid-template-columns: 42px 1fr; gap: 8px; margin: 0 22px; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.handoff-mail-meta > span { color: var(--quiet); }
.handoff-mail-meta > strong { font-weight: 500; }
.handoff-document { position: relative; padding: 6px 22px 20px; min-height: 148px; }
.handoff-document p { margin: 14px 0 0; color: var(--ink); font-size: clamp(13px, 1.3vw, 17px); line-height: 1.6; letter-spacing: -.01em; }
.handoff-message { min-height: 52px; }
.handoff-caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); }
.handoff-document .handoff-placeholder { position: absolute; top: 48px; left: 24px; color: var(--quiet); font-size: 12px; }
[data-state="typing"] .handoff-placeholder,
[data-state="done"] .handoff-placeholder { display: none; }
.handoff-hud { position: absolute; display: flex; align-items: center; gap: 8px; right: 12px; bottom: 12px; min-height: 38px; max-width: calc(100% - 24px); padding: 6px 10px; background: #111315; color: #e9eef1; border-radius: 10px; font-size: 10px; }
.handoff-hud img { width: 22px; height: 22px; }
.handoff-hud-dot { flex: none; width: 6px; height: 6px; margin-left: 8px; background: #b7443a; border-radius: 50%; }
.handoff-watch { position: absolute; z-index: 2; left: 0; bottom: 14px; width: 142px; height: 180px; padding: 7px; color: #f3f5f6; background: #6c6f71; border: 2px solid #9c9fa0; border-radius: 39px; box-shadow: inset 3px 0 2px #bec0c1, inset -3px 0 2px #34383a, 0 20px 32px rgb(17 22 25 / 28%); transform: rotate(-6deg); }
.handoff-watch::before { content: ""; position: absolute; z-index: -1; top: -26px; bottom: -26px; left: 30px; right: 30px; background: #32383c; border-radius: 20px; box-shadow: inset 5px 0 0 #454b4f, inset -5px 0 0 #24292c; }
.handoff-watch::after { content: ""; position: absolute; right: -6px; top: 49px; width: 5px; height: 22px; background: #878d90; border-radius: 0 4px 4px 0; }
.handoff-watch-face { display: flex; flex-direction: column; align-items: center; position: relative; height: 100%; padding: 12px 9px 7px; background: #080a0b; border-radius: 31px; overflow: hidden; }
.handoff-watch-top { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 10px; }
.handoff-watch-top img { width: 19px; height: 19px; }
.handoff-watch-face > strong { margin-top: 8px; font-size: 12px; font-weight: 600; }
.handoff-watch-face > p { margin: 3px 0; max-width: 100px; color: #c0c7cc; text-align: center; font-size: 10px; line-height: 1.3; }
.handoff-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 24px; margin: 2px 0; }
.handoff-wave i { width: 3px; height: 17px; background: #d6edf3; border-radius: 2px; transform: scaleY(.3); }
.handoff-wave i:nth-child(3n) { height: 24px; }
.handoff-wave i:nth-child(2n) { height: 12px; }
[data-state="listening"] .handoff-wave i,
[data-state="sending"] .handoff-wave i { animation: handoff-wave 650ms ease-in-out infinite alternate; }
.handoff-wave i:nth-child(2n) { animation-delay: -180ms; }
.handoff-wave i:nth-child(3n) { animation-delay: -360ms; }
.handoff-watch-mic { display: grid; place-items: center; width: 29px; height: 29px; margin-top: auto; border-radius: 50%; background: #b7443a; }
.handoff-watch-mic img { width: 12px; height: 18px; filter: brightness(0) invert(1); }
.handoff-signal { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.handoff-signal path { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transition: opacity 180ms ease; }
.handoff-signal circle { fill: var(--accent); opacity: 0; }
[data-state="sending"] .handoff-signal path,
[data-state="typing"] .handoff-signal path { opacity: .5; }
.handoff-controls { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 44px; margin-top: 24px; }
.handoff-status { min-height: 34px; max-width: 100%; margin: 12px auto 0; color: var(--quiet); text-align: center; font-size: 12px; line-height: 1.5; }
@keyframes handoff-wave { to { transform: scaleY(1); } }

/* Optional Notes treatment: ?notes-preview=1. */
[data-notes-motion] .note-editor { min-height: 540px; }
[data-notes-motion] .transform-output[hidden] { display: none; }
.note-motion-caption { min-height: 36px; margin: 22px 0 0; color: #bdc5ca; font-size: 13px; line-height: 1.5; }
.note-motion-content { margin-top: 36px; }
.note-motion-content .note-motion-lead { margin-bottom: 28px; color: var(--ink); font-size: 19px; }
.note-motion-content .note-motion-tasks { display: grid; gap: 0; list-style: none; padding: 0; margin-top: 40px; }
.note-motion-tasks li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.note-task-box { flex: none; width: 17px; height: 17px; margin-top: 4px; border: 1.5px solid var(--quiet); border-radius: 4px; }
.note-phrase-flight { position: fixed; z-index: 45; width: max-content; white-space: nowrap; padding: 2px 5px; margin: -2px -5px; color: var(--ink); background: var(--paper-bright); border-radius: 5px; pointer-events: none; box-shadow: 0 8px 18px var(--shadow); }

@media (max-width: 900px) {
  .demo-portal { padding: 16px; }
  .demo-portal-surface { max-height: calc(100dvh - 32px); }
  .demo-portal-header { padding: 22px 24px 18px; }
  .demo-portal-body { padding: 8px 24px 24px; }
  .demo-portal-footer { padding: 12px 24px; }
  .demo-portal .visual-answer { grid-template-columns: 1fr; gap: 20px; }
  .demo-portal .visual-focus-controls { display: flex; flex-wrap: wrap; gap: 8px; }
  .demo-portal .visual-focus-controls button { padding: 8px 12px; min-height: 40px; border-radius: 10px; }
  .demo-portal .visual-focus-controls .is-active { background: var(--card); }
  .demo-portal .visual-caption { margin: 8px 0 0; }
  .demo-portal [data-chat-query] { margin-bottom: 12px; }
  .demo-portal .visual-answer > div:first-child > span { display: none; }
}

@media (max-height: 760px) {
  .demo-portal .keyboard-switches { gap: 16px; }
  .demo-portal .switch-row { gap: 8px; }
  .demo-portal .theme-selector { padding: 12px; }
  .demo-portal .theme-option { min-height: 48px; }
}

@media (max-width: 640px) {
  .hero-artifacts [data-hero-preview]:active { translate: 0 -2px; }
  .demo-portal { padding: 10px; }
  .demo-portal-surface { max-height: calc(100dvh - 20px); border-radius: 20px; }
  .demo-portal-header { gap: 12px; padding: 22px 18px 18px; }
  .demo-portal-header h2 { font-size: 23px; }
  .demo-portal-header p { font-size: 13px; }
  .demo-portal-close { width: 38px; height: 38px; }
  .demo-portal-body { padding: 0 16px 22px; }
  .demo-portal-footer { padding: 10px 18px; }
  .demo-portal-footer > span { max-width: 110px; font-size: 10px; }
  .demo-portal[data-demo="keyboard"] .demo-portal-header { padding-block: 14px; }
  .demo-portal[data-demo="keyboard"] .demo-portal-header p { display: none; }
  .demo-portal[data-demo="keyboard"] .demo-portal-body { --preview-stacked: 1; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding-bottom: 16px; }
  .demo-portal .keyboard-switches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .demo-portal .switch-row { gap: 8px; }
  .demo-portal .switch-chips { gap: 4px; }
  .demo-portal .switch-chips button { font-size: 11px; min-height: 36px; padding: 6px; }
  .demo-portal .theme-selector { grid-column: 1 / -1; padding: 8px; }
  .demo-portal .theme-selector-copy { margin-bottom: 8px; font-size: 12px; }
  .demo-portal .theme-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .demo-portal .theme-option { min-height: 48px; }
  .demo-portal .visual-topbar { padding-inline: 12px; font-size: 10px; }
  .demo-portal .visual-prompt { margin: 12px 12px 0; }
  .demo-portal .visual-panel { margin: 12px; padding: 14px; }
  .demo-portal .visual-place-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-portal .visual-place-grid-large img { height: 104px; }
  .demo-portal .visual-composer { margin: 12px; }
  .demo-portal .notes-workbench { display: flex; flex-direction: column; gap: 20px; }
  .demo-portal .voice-note { order: -1; }
  .demo-portal .note-editor { min-height: 480px; }
  .demo-portal .import-strip { justify-content: flex-start; font-size: 12px; }
  .ask-stage.is-interactive .ask-panel { min-height: 230px; }
  .ask-demo-heading { gap: 6px; }
  .ask-demo-heading > span { font-size: 10px; }
  .ask-calendar-heading { align-items: flex-start; flex-direction: column; }
  .ask-insert { align-items: flex-start; flex-direction: column; }
  [data-handoff-demo] .device-family { min-height: 342px; }
  .handoff-live { min-height: 342px; }
  .handoff-mac { width: 86%; min-height: 255px; }
  .handoff-mail-meta { margin-inline: 14px; }
  .handoff-document { padding-inline: 14px; min-height: 145px; }
  .handoff-document p { font-size: 13px; }
  .handoff-document .handoff-placeholder { left: 16px; font-size: 11px; }
  .handoff-watch { bottom: 0; width: 114px; height: 150px; border-radius: 33px; padding: 5px; }
  .handoff-watch-face { border-radius: 26px; padding: 9px 7px 6px; }
  .handoff-watch-top { font-size: 9px; }
  .handoff-watch-top img { width: 16px; height: 16px; }
  .handoff-watch-face > strong { margin-top: 3px; font-size: 10px; }
  .handoff-watch-face > p { font-size: 9px; }
  .handoff-wave { height: 19px; }
  .handoff-watch-mic { width: 24px; height: 24px; }
  .handoff-watch-mic img { width: 10px; height: 16px; }
  .handoff-watch::before { left: 26px; right: 26px; top: -20px; bottom: -20px; }
  .handoff-hud { right: 8px; bottom: 10px; max-width: calc(100% - 16px); padding-inline: 8px; gap: 5px; font-size: 9px; }
  .handoff-hud-dot { margin-left: 2px; }
  .handoff-hud img { width: 18px; height: 18px; }
  .handoff-controls { gap: 16px; }
  .handoff-controls .scene-action { font-size: 12px; }
  [data-notes-motion] .note-editor { min-height: 470px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-artifacts [data-hero-preview] { translate: none !important; transition: opacity 100ms ease; }
  .ask-checks .is-checking i { animation: none; opacity: 1; }
  .handoff-wave i { animation: none !important; transform: scaleY(.5); }
  .handoff-watch { transform: none; }
  [data-handoff-demo] .device-family { transition: opacity 100ms ease; transform: none !important; }
  [data-handoff-demo]:not([data-state="idle"]) .device-family { visibility: hidden; }
  .scene-action:active, .ask-buttons button:active, .demo-portal-close:active { transform: none; }
}
