.motion-hero {
  --motion-surface: #fff;
  --motion-soft: #f5f8f9;
  --motion-ink: #17252b;
  --motion-muted: #728087;
  --motion-line: #d7e0e4;
  --motion-teal: #079da6;
  --motion-photo: 1;
  --motion-tiles: 1;
  --motion-document: 1;
  --motion-answer: 1;
  --scene-index: 0;
  position: relative;
  overflow: hidden;
  padding: 28px 0 18px;
  background: #fff;
  color: var(--motion-ink);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

:root[data-theme="dark"] .motion-hero {
  --motion-surface: #172127;
  --motion-soft: #1d2a31;
  --motion-ink: #f3f6f7;
  --motion-muted: #a7b5ba;
  --motion-line: #34454d;
  --motion-teal: #52d8cf;
  background: #111a20;
}

.motion-hero *, .motion-hero *::before, .motion-hero *::after { letter-spacing: 0; }
.motion-hero [hidden] { display: none; }
.motion-copy { position: relative; z-index: 2; text-align: center; }
.motion-copy h1 { margin: 0; max-width: none; font-size: 76px; font-weight: 850; line-height: 1; color: var(--motion-ink); }
.motion-title { margin: 12px 0 0; font-size: 32px; font-weight: 730; line-height: 1.2; text-wrap: balance; }
.motion-description { margin: 14px 0 0; font-size: 19px; line-height: 1.45; color: var(--motion-muted); text-wrap: balance; }
.motion-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.motion-actions .btn { min-height: 46px; padding: 12px 24px; border-radius: 6px; font-size: 15px; line-height: 1.3; font-weight: 650; box-shadow: none; }
.motion-actions .motion-primary { background: #ffca4d; color: #212015; border: 1px solid #ffca4d; }
.motion-actions .motion-primary:hover { background: #f4b927; border-color: #f4b927; transform: translateY(-1px); }
.motion-actions .motion-secondary { border: 1px solid var(--motion-line); background: var(--motion-surface); color: var(--motion-ink); }
.motion-actions .motion-secondary:hover { border-color: var(--motion-teal); background: var(--motion-soft); transform: translateY(-1px); }
.motion-actions img { width: 18px; height: 18px; margin-left: 10px; }
.motion-actions .btn:focus-visible, .motion-controls button:focus-visible { outline: 3px solid var(--motion-teal); outline-offset: 4px; }

.motion-stage { width: min(1380px, calc(100% - 64px)); margin: 30px auto 0; position: relative; }
.motion-windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.motion-window { position: relative; height: 308px; min-width: 0; background: var(--motion-surface); border: 1px solid var(--motion-line); border-radius: 8px; box-shadow: 0 10px 28px #17252b0b; transition: border-color .5s, box-shadow .5s; }
.motion-window:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 1px); top: 54%; width: 38px; border-top: 2px solid var(--motion-teal); }
.motion-hero[data-scene="0"] .motion-site, .motion-hero[data-scene="1"] .motion-publisher, .motion-hero[data-scene="2"] .motion-agent { border-color: var(--motion-teal); box-shadow: 0 10px 28px #078c9714; }
.motion-window img { display: block; }
.motion-window p { margin: 0; }
.motion-chrome { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--motion-line); background: var(--motion-soft); border-radius: 7px 7px 0 0; }
.motion-chrome > span { width: 6px; height: 6px; border-radius: 50%; background: #fa8478; }
.motion-chrome > span:nth-child(2) { background: #eac15e; }
.motion-chrome > span:nth-child(3) { background: #80baa1; }
.motion-chrome > div { flex: 1; text-align: center; font-size: 9px; font-weight: 550; color: var(--motion-muted); }
.motion-chrome > img { width: 12px; height: 12px; opacity: .45; }
.motion-app-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; min-height: 48px; }
.motion-app-head strong { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1; white-space: nowrap; }
.motion-app-head strong > img { width: 22px; height: 22px; filter: invert(47%) sepia(94%) saturate(788%) hue-rotate(140deg); }
.motion-saved, .motion-small-action, .motion-agent-status { display: inline-flex; align-items: center; gap: 4px; color: var(--motion-muted); font-size: 9px; line-height: 1; white-space: nowrap; }
.motion-saved { opacity: var(--motion-saved, 1); }
.motion-saved img { width: 12px; height: 12px; }
.motion-small-action { color: var(--motion-teal); }
.motion-small-action img { width: 13px; height: 13px; }
.motion-builder { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 0 12px 12px; }
.motion-tool-rail { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 0; color: var(--motion-muted); }
.motion-tool-rail img { width: 17px; height: 17px; opacity: .55; }
.motion-tool-rail img:first-child { opacity: 1; filter: invert(47%) sepia(94%) saturate(788%) hue-rotate(140deg); }
.motion-webpage { min-width: 0; }
.motion-travel-photo { position: relative; height: 135px; overflow: hidden; border-radius: 4px; opacity: var(--motion-photo); transform: translateY(calc((1 - var(--motion-photo)) * 16px)); }
.motion-travel-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.motion-travel-copy { position: absolute; left: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 7px #062e38; }
.motion-travel-copy b { display: block; font-size: 21px; line-height: 1.1; }
.motion-travel-copy > span { display: block; font-size: 9px; margin-top: 5px; }
.motion-travel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 10px 0; font-size: 9px; line-height: 1.3; opacity: var(--motion-tiles); }
.motion-travel-button { display: flex; align-items: center; gap: 4px; color: var(--motion-teal); font-size: 8px; }
.motion-travel-button img { width: 10px; height: 10px; }
.motion-mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; opacity: var(--motion-tiles); transform: translateY(calc((1 - var(--motion-tiles)) * 12px)); }
.motion-mini-tiles > div { height: 43px; position: relative; overflow: hidden; border-radius: 3px; }
.motion-mini-tiles img { width: 100%; height: 100%; object-fit: cover; }
.motion-mini-tiles > div:nth-child(2) img { object-position: 80% 50%; transform: scale(1.7); }
.motion-mini-tiles > div:nth-child(3) img { object-position: 20% 50%; transform: scale(1.5); }
.motion-mini-tiles span { position: absolute; left: 5px; bottom: 4px; color: white; font-size: 8px; text-shadow: 0 1px 5px #07303c; }
.motion-cursor { position: absolute; z-index: 2; width: 22px; height: 22px; left: 32%; top: 80%; transform: translate(var(--cursor-x, 0px), var(--cursor-y, 0px)); opacity: var(--cursor-opacity, 0); filter: drop-shadow(0 1px 1px #fff); pointer-events: none; }
.motion-publisher-tabs { height: 29px; display: flex; gap: 18px; align-items: flex-start; margin: 0 14px; border-bottom: 1px solid var(--motion-line); font-size: 10px; color: var(--motion-muted); }
.motion-publisher-tabs b { color: var(--motion-ink); padding-bottom: 10px; border-bottom: 2px solid var(--motion-teal); }
.motion-posts { padding: 0 14px; }
.motion-post { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 62px; border-bottom: 1px solid var(--motion-line); }
.motion-post:last-child { border-bottom: none; }
.motion-post > div { min-width: 0; }
.motion-post b { display: block; font-size: 12px; font-weight: 650; line-height: 1.3; }
.motion-post span:not(.motion-post-status), .motion-post small { display: block; font-size: 10px; color: var(--motion-muted); line-height: 1.5; }
.motion-post .motion-post-photo { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.motion-photo-detail { object-position: right; }
.motion-post-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: #f7ead5; border-radius: 4px; }
.motion-post-symbol img { width: 20px; height: 20px; opacity: .6; }
.motion-post .motion-row-icon { width: 14px; height: 14px; opacity: .4; }
.motion-post-status { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; width: 67px; }
.motion-post .motion-post-status > span { font-size: 9px; color: #a16516; }
.motion-post-status i { width: 58px; height: 3px; background: #edba5b; transform-origin: left; transform: scaleX(var(--queue-progress, 0)); }
.motion-hero[data-posted="true"] .motion-post-status > span { color: #198d6f; }
.motion-hero[data-posted="true"] .motion-post-status i { background: #39b394; }
.motion-agent-status { font-size: 9px; color: #198d6f; }
.motion-agent-status i { width: 5px; height: 5px; border-radius: 50%; background: #30b491; }
.motion-agent-flow { padding: 0 15px 10px; }
.motion-agent-step { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 9px; }
.motion-agent-step > img { width: 20px; height: 20px; margin-top: 3px; filter: invert(47%) sepia(94%) saturate(788%) hue-rotate(140deg); }
.motion-agent-step b { display: block; font-size: 11px; line-height: 1.2; margin-bottom: 4px; }
.motion-agent-step p { font-size: 11px; line-height: 1.5; color: var(--motion-muted); }
.motion-document-step { opacity: var(--motion-document); }
.motion-document-step p { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 3px; color: var(--motion-teal); }
.motion-document-check { width: 14px; height: 14px; opacity: var(--document-check, 1); }
.motion-answer-step { opacity: var(--motion-answer); }
.motion-answer-step p { min-height: 48px; }
.motion-flow-connector { width: 1px; height: 15px; margin: 3px 0 3px 10px; background: var(--motion-line); overflow: hidden; }
.motion-flow-connector span { display: block; height: 9px; background: var(--motion-teal); transform: translateY(var(--connector-y, 10px)); }
.motion-type-caret { display: inline-block; height: 10px; width: 1px; background: var(--motion-teal); margin-left: 2px; vertical-align: middle; opacity: var(--caret-opacity, 0); }
.motion-window-progress { position: absolute; height: 2px; bottom: 0; left: 7px; right: 7px; overflow: hidden; }
.motion-window-progress span { display: block; width: 100%; height: 100%; background: var(--motion-teal); transform: scaleX(0); transform-origin: left; }
.motion-hero[data-scene="0"] .motion-site .motion-window-progress span,
.motion-hero[data-scene="1"] .motion-publisher .motion-window-progress span,
.motion-hero[data-scene="2"] .motion-agent .motion-window-progress span { transform: scaleX(var(--step-progress, 0)); }

.motion-controls { width: min(1380px, calc(100% - 64px)); margin: 12px auto 0; display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.motion-selectors { display: flex; align-items: center; gap: 3px; }
.motion-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; font-family: inherit; color: var(--motion-muted); background: transparent; cursor: pointer; }
.motion-selectors button { min-height: 36px; padding: 8px 12px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.motion-selectors button[aria-pressed="true"] { color: var(--motion-teal); background: var(--motion-soft); }
.motion-selectors button:hover { color: var(--motion-ink); }
.motion-controls img { width: 15px; height: 15px; }
.motion-controls .motion-playback { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--motion-line); border-radius: 50%; }
.motion-controls .motion-playback:hover { border-color: var(--motion-teal); color: var(--motion-ink); }
.motion-playback .motion-play-icon { display: none; }
.motion-hero[data-paused="true"] .motion-pause-icon { display: none; }
.motion-hero[data-paused="true"] .motion-play-icon { display: block; }
:root[data-theme="dark"] .motion-controls img,
:root[data-theme="dark"] .motion-tool-rail img,
:root[data-theme="dark"] .motion-chrome > img,
:root[data-theme="dark"] .motion-row-icon,
:root[data-theme="dark"] .motion-saved img,
:root[data-theme="dark"] .motion-small-action img,
:root[data-theme="dark"] .motion-document-check,
:root[data-theme="dark"] .motion-travel-button img { filter: invert(1); }
:root[data-theme="dark"] .motion-app-head strong > img,
:root[data-theme="dark"] .motion-agent-step > img { filter: invert(80%) sepia(39%) saturate(536%) hue-rotate(115deg); }
:root[data-theme="dark"] .motion-agent-status,
:root[data-theme="dark"] .motion-hero[data-posted="true"] .motion-post-status > span { color: #75dcb8; }
:root[data-theme="dark"] .motion-post .motion-post-status > span { color: #efc978; }
.motion-hero + #directions { padding-top: 30px; }

@media (max-width: 1180px) and (min-width: 851px) {
  .motion-stage, .motion-controls { width: calc(100% - 36px); }
  .motion-windows { gap: 20px; }
  .motion-window:not(:last-child)::after { width: 20px; }
  .motion-app-head { padding: 12px 10px; gap: 4px; }
  .motion-app-head strong { font-size: 15px; gap: 5px; }
  .motion-small-action { font-size: 8px; }
  .motion-posts { padding: 0 10px; }
  .motion-post { gap: 6px; grid-template-columns: 32px minmax(0, 1fr) auto; }
  .motion-post .motion-post-photo, .motion-post-symbol { width: 32px; height: 36px; }
  .motion-post-status { width: 52px; }
  .motion-post-status i { width: 48px; }
  .motion-post b { font-size: 10px; }
  .motion-post span:not(.motion-post-status), .motion-post small { font-size: 9px; }
  .motion-agent-step p { font-size: 10px; }
  .motion-post .motion-post-status > span { font-size: 7px; }
  .motion-builder { grid-template-columns: 23px minmax(0, 1fr); gap: 7px; padding: 0 10px; }
  .motion-travel-copy b { font-size: 18px; }
  .motion-travel-bottom > span:first-child { font-size: 8px; }
}

@media (max-width: 850px) {
  .motion-hero { padding-top: 28px; }
  .motion-copy h1 { font-size: 62px; }
  .motion-title { font-size: 28px; }
  .motion-description { font-size: 17px; }
  .motion-stage { width: min(470px, calc(100% - 32px)); margin-top: 26px; }
  .motion-windows { grid-template-columns: 1fr; gap: 18px; }
  .motion-ready .motion-stage { overflow: hidden; border-radius: 8px; }
  .motion-ready .motion-windows { width: 300%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; transform: translateX(calc(var(--scene-index) * -100% / 3)); transition: transform .65s cubic-bezier(.22,.68,.18,1); }
  .motion-window { height: 308px; box-shadow: none; }
  .motion-window:not(:last-child)::after { display: none; }
  .motion-controls { width: min(470px, calc(100% - 32px)); }
  .motion-selectors button { padding: 8px 10px; }
  .motion-controls .motion-playback { position: absolute; z-index: 3; top: 20px; right: 16px; }
}

@media (max-width: 620px) {
  .motion-hero { padding-top: 16px; }
  .motion-copy h1 { font-size: 44px; }
  .motion-title { font-size: 23px; margin-top: 10px; }
  .motion-description { font-size: 14px; margin-top: 10px; }
  .motion-actions { gap: 8px; margin-top: 14px; }
  .motion-actions .btn { width: auto; min-height: 44px; padding: 11px 15px; font-size: 12px; }
  .motion-actions img { width: 15px; height: 15px; margin-left: 4px; }
  .motion-stage { margin-top: 18px; }
  .motion-window { height: 296px; }
  .motion-controls { gap: 8px; }
  .motion-selectors { gap: 0; }
  .motion-selectors button { padding: 7px 8px; font-size: 10px; gap: 5px; }
  .motion-selectors img { width: 13px; height: 13px; }
  .motion-controls .motion-playback { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (max-width: 360px) {
  .motion-stage, .motion-controls { width: calc(100% - 24px); }
  .motion-title { font-size: 22px; }
  .motion-actions .btn { padding: 11px 12px; }
  .motion-selectors button { padding: 7px 6px; font-size: 9px; }
  .motion-post { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px; }
  .motion-post .motion-post-photo, .motion-post-symbol { width: 34px; height: 37px; }
  .motion-post b { font-size: 10px; }
  .motion-post span:not(.motion-post-status), .motion-post small { font-size: 9px; }
  .motion-post-status { width: 56px; }
  .motion-post .motion-post-status > span { font-size: 7px; }
  .motion-travel-copy b { font-size: 19px; }
}

@media (min-width: 851px) and (max-height: 820px) {
  .motion-hero { padding-top: 18px; padding-bottom: 12px; }
  .motion-copy h1 { font-size: 56px; }
  .motion-title { font-size: 27px; margin-top: 8px; }
  .motion-description { font-size: 17px; margin-top: 8px; }
  .motion-actions { margin-top: 14px; }
  .motion-actions .btn { min-height: 42px; padding-top: 10px; padding-bottom: 10px; }
  .motion-stage { margin-top: 20px; }
  .motion-hero + #directions { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-hero *, .motion-hero *::before, .motion-hero *::after { transition: none !important; }
}
