/* Art direction and progressive interaction layer. */
[hidden] { display: none !important; }
html { scroll-padding-top: 104px; }
input:focus-visible, select:focus-visible { outline: 3px solid #b97a25; outline-offset: 4px; }
button:active, .button:active { transform: translateY(1px); }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 55; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.site-header { position: sticky; top: 0; height: 80px; background: var(--paper); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 3px 24px #173b3610; }
.desktop-nav a { position: relative; white-space: nowrap; }
.desktop-nav a::after { content: ''; height: 1px; background: currentColor; position: absolute; bottom: -6px; left: 0; width: 100%; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.wordmark .brand-mark { transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.wordmark:hover .brand-mark { transform: rotate(90deg); }
.button { min-height: 56px; position: relative; overflow: hidden; }
.button span { display: inline-block; transition: transform .3s; }
.button:hover span { transform: translate(3px,-3px); }
.button:active span { transform: none; }
.download-link { position: relative; overflow: hidden; }
.download-link[href] .download-arrow { transition: transform .3s; }
.download-link[href]:hover .download-arrow { transform: translateY(5px); }

/* The opening scene has a quiet camera movement and a deliberate time control. */
.hero { height: calc(100svh - 178px); min-height: 690px; }
.hero-copy { padding-top: clamp(45px,5.5vh,70px); justify-content: flex-start; }
.hero h1 { font-size: clamp(82px,8.8vw,160px); }
.hero h1 .hero-line, .hero h1 .hero-line > span { color: var(--ink); }
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.04em; }
.hero-line > span { display: block; }
.experience-ready .hero-line > span { animation: enter-line 950ms cubic-bezier(.2,.75,.2,1) both; }
.experience-ready .hero-line:nth-child(2) > span { animation-delay: 120ms; }
@keyframes enter-line { from { transform: translateY(110%) rotate(2deg); } to { transform: none; } }
.hero-description { margin: 29px 0 26px; max-width: 445px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-watch { display: inline-flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 700; min-height: 44px; }
.hero-watch span { display: inline-block; transition: transform .3s; }
.hero-watch:hover span { transform: translateY(5px); }
.hero-kicker .cross { transform: rotate(var(--scene-turn,0deg)); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.hero-art { scroll-margin-top: 100px; }
.hero-art .scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 10% center; transform: translate(var(--image-x,0px),var(--image-y,0px)) scale(1.035); transition: transform 900ms ease-out; }
.hero-art .scene-image-next { opacity: 0; pointer-events: none; }
.scene-controls { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 28px; padding: 10px 14px 0; background: var(--paper); border: 1px solid #c5d7cc; box-shadow: 0 10px 36px #173b3614; }
.scene-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scene-heading p { font-size: 12px; font-weight: 700; }
#scene-play { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--teal); margin-bottom: 7px; }
#scene-play:hover { background: var(--mint); }
#scene-play svg { width: 19px; height: 19px; fill: currentColor; }
#scene-play .pause-icon { display: none; }
#scene-play[aria-pressed=true] .pause-icon { display: block; }
#scene-play[aria-pressed=true] .play-icon { display: none; }
.scene-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.scene-tabs button { position: relative; border: 0; border-top: 1px solid #bacfc1; padding: 12px 0 15px; min-height: 65px; background: none; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 500; text-align: left; }
.scene-tabs button span { display: block; font-size: 11px; margin-bottom: 3px; letter-spacing: .04em; }
.scene-tabs button[aria-pressed=true] { color: var(--teal); font-weight: 800; }
.scene-tabs button::before { content: ''; height: 2px; width: 100%; position: absolute; top: -1px; left: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.scene-tabs button[aria-pressed=true]::before { transform: scaleX(1); }
.is-playing .scene-tabs button[aria-pressed=true]::before { animation: scene-progress 5.2s linear infinite; }
@keyframes scene-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* A feature changes the visual language beside it, then opens the real demo. */
.feature-aside { position: sticky; top: 125px; align-self: start; padding-top: 8px; }
.feature-orbit { position: relative; width: 230px; height: 230px; display: grid; place-items: center; }
.feature-orbit::before, .feature-orbit::after { content: ''; position: absolute; inset: 0; border: 1px solid #658c82; border-radius: 50%; }
.feature-orbit::after { inset: 22px; border-style: dashed; opacity: .5; transform: rotate(var(--orbit-turn,0deg)); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.orbit-cross { position: absolute; width: 100%; height: 100%; color: var(--mint); font-size: 38px; line-height: 1; transform: rotate(var(--orbit-turn,0deg)); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.orbit-cross::after { content: ''; width: 8px; height: 8px; position: absolute; bottom: 19px; right: 28px; background: var(--mint); border-radius: 50%; }
#feature-number { font-family: var(--display); font-size: 105px; font-weight: 500; line-height: 1; color: var(--mint); }
.feature-aside .feature-word { margin: 38px 0 12px; font-family: var(--display); font-size: clamp(48px,4.4vw,72px); line-height: .98; letter-spacing: -.02em; color: var(--mint); }
.feature-aside .feature-aside-caption { font-size: 16px; line-height: 1.65; max-width: 275px; margin-bottom: 0; color: #c5d7d4; }
.feature-aside .feature-demo-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 330px; width: 100%; padding: 21px 0; min-height: 64px; border-top: 1px solid #49616a; margin: 28px 0 0; font-size: 13px; font-weight: 700; }
.feature-demo-link > span:last-child { font-size: 23px; transition: transform .3s; }
.feature-demo-link:hover > span:last-child { transform: translate(4px,-4px); }
.feature-list summary { transition: color .25s; }
.feature-list summary:hover { color: var(--mint); }
.feature-list details[open] h3 { color: var(--mint); }
.feature-list details[open] .feature-body { animation: feature-enter .35s ease-out; }
@keyframes feature-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.product-heading h2 { font-size: clamp(65px,7.1vw,110px); }
.product-heading > div { max-width: 220px; }
.product-heading p { font-size: 15px; }
.demo-round { width: 124px; height: 124px; margin-top: 27px; border-radius: 50%; border: 1px solid #9ab7a9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; background: var(--mint); color: var(--teal); transition: color .3s, background .3s, transform .3s; }
.demo-round span:first-child { font-size: 41px; line-height: 1; transition: transform .4s; }
.demo-round span:last-child { font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.demo-round:hover { color: var(--paper); background: var(--teal); transform: scale(1.04); }
.demo-round:hover span:first-child { transform: rotate(45deg); }
.screen-stage { background: #dbe9df; }
.stage-top .enlarge-button { min-height: 44px; }
.screen-tabs button { transition: background .3s, color .3s; }
.screen-tabs button[aria-selected=true] { background: var(--deep); color: var(--mint); border-color: var(--deep); }
.stage-action { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid #b5ccbe; padding: 24px 0; }
.stage-action > span { font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.stage-action .button { min-width: 205px; font-size: 12px; }
.device-platforms a { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.device-platforms a span { transition: transform .3s; }
.device-platforms a:hover span { transform: translate(3px,-3px); }

/* Follow an update. Motion reflects only the selected illustrative route. */
.connection-demo { --packet-duration: 1.7s; }
.map-device { transition: background .35s, border-color .35s; }
.map-path::before { content: ''; display: block; opacity: 0; position: absolute; top: calc(50% - 5px); left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); z-index: 2; box-shadow: 0 0 0 6px #086f7314; }
.connection-demo[data-sample=sending-lan] .map-path::before { animation: packet-lan var(--packet-duration) ease-in-out both; }
@keyframes packet-lan { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.connection-demo[data-sample]:not([data-sample=idle]) .map-device:first-child { background: #e5f1e9; border-color: #80afa0; }
.connection-demo[data-sample=received] .map-device:last-child { background: #e5f1e9; border-color: var(--teal); }
.drive-connector::after { content: ''; opacity: 0; position: absolute; left: -5px; top: 0; width: 9px; height: 9px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 6px #086f7314; }
.connection-demo[data-sample=sending-drive] .drive-connector::after { animation: packet-drive var(--packet-duration) ease-in-out both; }
@keyframes packet-drive { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.connection-demo[data-route=drive] .map-path, .connection-demo[data-route=local] .map-path { opacity: .4; }
.connection-demo[data-route=local] .drive-connector { opacity: .4; }
.sync-playground { margin-top: 35px; padding-top: 30px; border-top: 1px solid var(--line); }
.sync-paths { padding: 0; border: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.sync-paths legend { padding: 0 0 14px; font-size: 12px; font-weight: 700; }
.sync-paths label { position: relative; cursor: pointer; }
.sync-paths input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sync-paths label > span { display: flex; align-items: center; min-height: 49px; padding: 12px 16px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.sync-paths label:has(input:checked) > span { background: var(--deep); color: var(--mint); border-color: var(--deep); }
.sync-paths label:has(input:focus-visible) > span { outline: 3px solid #b97a25; outline-offset: 3px; }
.sync-playback { display: flex; align-items: center; gap: 35px; margin-top: 25px; }
.sync-playback .button { flex-shrink: 0; font-size: 12px; }
.sync-playback p { max-width: 550px; font-size: 13px; line-height: 1.7; min-height: 44px; display: flex; align-items: center; }
.sync-playback button:disabled { opacity: .6; cursor: wait; transform: none; }
.sample-journey { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr; align-items: center; gap: 12px; padding: 26px 0 5px; }
.sample-journey span { position: relative; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sample-journey span::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border: 1px solid #8faa9d; border-radius: 50%; }
.sample-journey .is-complete { color: var(--teal); font-weight: 700; }
.sample-journey .is-complete::before { border-color: var(--teal); background: var(--teal); }
.sample-journey i { height: 1px; background: var(--line); }
.connection-demo[data-sample=waiting] #sample-status { color: #76572a; }

/* Larger gestures in the editorial sections; native scroll remains in charge. */
.collage-photo { overflow: visible; }
.collage-photo img { transition: clip-path .65s cubic-bezier(.2,.75,.2,1); clip-path: inset(0); }
@media (hover: hover) and (pointer: fine) {
  .collage-photo:hover img { clip-path: inset(2% round 4px); }
  .resource-art > img { transition: transform .7s cubic-bezier(.2,.75,.2,1); }
  .resource-card:hover .resource-art > img { transform: scale(1.055); }
  .resource-track { cursor: grab; }
}
.resource-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; scroll-behavior: auto; }
.resource-card .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 40px; }
.resource-card .text-link > span { transition: transform .3s; }
.resource-card:hover .text-link > span { transform: translate(4px,-4px); }
.resource-art-grid .import-graphic > span:nth-child(2) { transition: transform .45s; }
.resource-card:hover .import-graphic > span:nth-child(2) { transform: translateX(5px); }
.question-search { padding-bottom: 23px; }
.question-search > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.question-search > div { display: flex; align-items: center; border-bottom: 1px solid #9db9aa; background: #eaf0e9; }
.question-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 16px 18px; min-height: 56px; font-size: 14px; color: var(--ink); }
.question-search input::placeholder { color: var(--muted); }
.question-search input::-webkit-search-cancel-button { display: none; }
.question-search button { height: 44px; width: 44px; flex-shrink: 0; margin-right: 6px; border: 0; background: none; font-size: 22px; color: var(--ink); }
.question-search > p { font-size: 12px; padding-top: 8px; color: var(--muted); }
.question-search > p:empty { padding: 0; }
.closing .button-light:hover { background: white; }
@supports (animation-timeline: view()) {
  .continuity h2 em { animation: fill-the-story linear both; animation-timeline: view(); animation-range: entry 15% cover 60%; }
  @keyframes fill-the-story { from { color: transparent; -webkit-text-stroke: 1px var(--mint); } to { color: var(--mint); -webkit-text-stroke: 1px var(--mint); } }
}

/* The chapter index becomes useful after the introduction. */
.chapter-dock { position: fixed; bottom: 24px; left: 50%; z-index: 25; display: flex; gap: 3px; padding: 6px; background: var(--paper); border: 1px solid #becfc4; border-radius: 40px; box-shadow: 0 10px 45px #173b3620; transform: translate(-50%,25px); opacity: 0; visibility: hidden; transition: transform .35s, opacity .35s, visibility .35s; }
.chapter-dock.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.chapter-dock a { min-height: 44px; min-width: 44px; padding: 9px 15px; border-radius: 30px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap; transition: background .25s, color .25s; }
.chapter-dock a span:first-child { font-size: 10px; opacity: .65; }
.chapter-dock a:hover { background: #e3ede5; }
.chapter-dock a[aria-current] { background: var(--deep); color: var(--mint); }
body:has(dialog[open]) .chapter-dock { visibility: hidden; opacity: 0; }

/* Viewer chrome frames the existing demo without restyling its app screens. */
.demo-viewer { inset: 18px; margin: auto; padding: 0; width: calc(100vw - 36px); height: calc(100dvh - 36px); max-width: none; max-height: none; border: 1px solid #6d9284; color: var(--ink); background: var(--deep); overflow: hidden; box-shadow: 0 25px 90px #071e3590; }
.demo-viewer[open] { display: flex; flex-direction: column; animation: viewer-enter .35s cubic-bezier(.2,.75,.2,1); }
.demo-viewer::backdrop { background: #0d2938da; backdrop-filter: blur(8px); }
@keyframes viewer-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.viewer-toolbar { display: flex; align-items: center; gap: 24px; min-height: 80px; padding: 15px 22px; flex-shrink: 0; background: var(--paper); }
.viewer-title { display: flex; gap: 15px; align-items: center; flex: 1; }
.viewer-mark { color: var(--teal); font-size: 38px; line-height: 1; }
.viewer-title h2 { font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.viewer-title p { font-size: 11px; margin-top: 3px; color: var(--muted); }
.viewer-size { display: flex; border: 1px solid #bcd0c2; padding: 3px; gap: 3px; }
.viewer-size button { border: 0; background: transparent; color: var(--ink); min-height: 44px; padding: 8px 15px; font-size: 12px; }
.viewer-size button[aria-pressed=true] { background: var(--mint); color: var(--deep); font-weight: 700; }
#demo-external { font-size: 12px; min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
.viewer-close { background: var(--deep); color: white; border: 0; padding: 10px 16px; min-height: 44px; font-size: 12px; display: flex; align-items: center; gap: 18px; }
.viewer-close span { font-size: 21px; line-height: 1; }
.viewer-workspace { flex: 1; min-height: 0; padding: 20px 34px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viewer-frame { width: 100%; max-width: 100%; height: 100%; overflow: hidden; border: 1px solid #729589; background: var(--paper); transition: width .45s cubic-bezier(.2,.75,.2,1), border-radius .45s; box-shadow: 0 16px 40px #071e3540; }
.viewer-workspace[data-device=phone] .viewer-frame { width: 390px; border: 7px solid #071f28; border-radius: 27px; }
.viewer-frame iframe { display: block; border: 0; width: 100%; height: 100%; background: var(--paper); }
.viewer-workspace[data-state=loading] .viewer-frame, .viewer-workspace[data-state=error] .viewer-frame { visibility: hidden; }
.viewer-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 30px; text-align: center; color: var(--mint); }
.viewer-loading p { font-size: 14px; max-width: 420px; }
.loading-mark { font-size: 75px; line-height: 1; }
.viewer-workspace[data-state=loading] .loading-mark { animation: open-clinic 2s ease-in-out infinite; }
@keyframes open-clinic { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
.viewer-workspace[data-state=ready] .viewer-loading, .viewer-workspace[data-state=idle] .viewer-loading { display: none; }
#demo-retry { background: var(--mint); color: var(--deep); border: 0; padding: 12px 24px; min-height: 44px; font-size: 13px; }
.viewer-footer { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-height: 54px; background: var(--paper); padding: 8px 22px; }
.viewer-footer label { font-size: 12px; font-weight: 700; }
.viewer-footer select { background: white; color: var(--ink); border: 1px solid #b8cfc1; font: inherit; font-size: 12px; padding: 10px 28px 10px 12px; min-height: 40px; }
.viewer-footer p { margin-left: auto; font-size: 11px; color: var(--muted); }

@media (max-width: 1100px) {
  .desktop-nav { gap: 22px; }
  .hero h1 { font-size: 9.5vw; }
  .hero-copy { padding-top: 44px; padding-right: 27px; padding-left: 30px; }
  .hero-description { font-size: 14px; }
  .hero-description br { display: none; }
  .hero-actions { gap: 14px; }
  .scene-controls { left: 18px; right: 18px; bottom: 20px; padding-left: 10px; padding-right: 10px; }
  .scene-heading p { font-size: 10px; }
  .scene-tabs { gap: 8px; }
  .scene-tabs button { font-size: 9px; }
  .feature-orbit { width: 185px; height: 185px; }
  #feature-number { font-size: 80px; }
  .feature-aside .feature-word { font-size: 53px; }
  .product-heading { display: block; }
  .product-heading h2 { font-size: 8.7vw; }
  .product-heading > div { display: flex; align-items: center; justify-content: space-between; max-width: none; gap: 30px; margin-top: 25px; }
  .product-heading p { max-width: 300px; }
  .demo-round { width: 95px; height: 95px; flex-shrink: 0; margin: 0; }
  .demo-round span:first-child { font-size: 30px; }
  .demo-round span:last-child { font-size: 8px; }
  .sample-journey { grid-template-columns: 1fr 30px 1fr 30px 1fr; gap: 9px; }
  .chapter-dock { gap: 0; }
  .chapter-dock a { padding: 9px 12px; gap: 7px; font-size: 10px; }
  .viewer-toolbar { gap: 15px; }
  .viewer-title h2 { font-size: 14px; }
  .viewer-mark { display: none; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero { min-height: 675px; }
  .hero-copy { padding-left: 24px; padding-right: 24px; }
  .hero-description { font-size: 13px; }
  .scene-heading { align-items: flex-start; }
  .scene-heading p { max-width: 150px; padding-top: 8px; }
  .scene-tabs button { font-size: 9px; }
  .sync-playback { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 90px; }
  .site-header { height: 72px; }
  .hero { min-height: 0; height: auto; }
  .hero-copy { padding: 37px 24px 25px; }
  .hero h1 { font-size: clamp(70px,20vw,118px); }
  .hero-description { font-size: 14px; margin: 25px 0 23px; }
  .hero-actions { gap: 13px 25px; }
  .hero-watch { font-size: 12px; }
  .hero-bottom { padding-top: 24px; }
  .hero-art { height: 520px; }
  .hero-art .scene-image { object-position: 10% center; }
  .scene-controls { bottom: 20px; left: 20px; right: 20px; padding: 9px 12px 0; }
  .scene-heading p { font-size: 11px; }
  .scene-tabs { gap: 10px; }
  .scene-tabs button { font-size: 10px; min-height: 66px; }
  .scene-tabs button span { font-size: 10px; }
  .feature-aside { position: static; display: grid; grid-template-columns: 88px 1fr; gap: 0 22px; padding: 0 0 35px; }
  .feature-orbit { grid-column: 1; grid-row: 1 / 3; width: 88px; height: 88px; align-self: center; }
  .feature-orbit::after { inset: 9px; }
  .orbit-cross { font-size: 23px; }
  .orbit-cross::after { width: 4px; height: 4px; bottom: 4px; right: 12px; }
  #feature-number { font-size: 43px; }
  .feature-aside .feature-word { grid-column: 2; font-size: 40px; margin: 5px 0 9px; }
  .feature-aside .feature-aside-caption { grid-column: 2; font-size: 12px; }
  .feature-aside .feature-demo-link { grid-column: 1 / -1; max-width: none; padding: 15px 0 0; min-height: 50px; margin-top: 23px; font-size: 12px; }
  .product-heading h2 { font-size: clamp(48px,11.5vw,78px); }
  .product-heading > div { gap: 18px; margin-top: 22px; }
  .product-heading p { font-size: 13px; }
  .demo-round { width: 85px; height: 85px; gap: 9px; }
  .demo-round span:last-child { font-size: 7px; }
  .stage-action { padding: 16px 0; display: block; }
  .stage-action > span { font-size: 8px; display: block; margin-bottom: 13px; text-align: center; }
  .stage-action .button { min-height: 49px; width: 100%; font-size: 12px; }
  .sync-playground { margin-top: 22px; padding-top: 22px; }
  .sync-paths { grid-template-columns: 1fr; gap: 8px; }
  .sync-paths legend { font-size: 11px; }
  .sync-paths label > span { font-size: 11px; min-height: 45px; padding: 11px 14px; }
  .sync-playback { display: block; margin-top: 18px; }
  .sync-playback .button { width: 100%; font-size: 11px; padding: 15px 17px; gap: 20px; }
  .sync-playback p { margin-top: 17px; min-height: 80px; font-size: 12px; }
  .sample-journey { grid-template-columns: 1fr 12px 1fr 12px 1fr; gap: 4px; padding-top: 20px; }
  .sample-journey span { display: block; font-size: 9px; line-height: 1.5; text-align: center; }
  .sample-journey span::before { display: block; margin: 0 auto 8px; }
  .question-search input { font-size: 13px; }
  .chapter-dock { bottom: max(12px,env(safe-area-inset-bottom)); padding: 5px; }
  .chapter-dock a { min-height: 44px; font-size: 11px; padding: 9px 16px; }
  .chapter-dock a[data-chapter=intro], .chapter-dock a[data-chapter=questions], .chapter-dock a span:first-child { display: none; }
  .demo-viewer { inset: 0; width: 100vw; height: 100dvh; border: 0; }
  .viewer-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 15px 10px; min-height: 0; }
  .viewer-title { grid-column: 1; grid-row: 1; }
  .viewer-title h2 { font-size: 13px; }
  .viewer-title p { font-size: 10px; }
  .viewer-close { grid-column: 2; grid-row: 1; font-size: 11px; padding: 9px 12px; gap: 12px; }
  .viewer-size { grid-column: 1; grid-row: 2; justify-self: start; }
  .viewer-size button { min-height: 44px; padding: 8px 15px; font-size: 11px; }
  #demo-external { grid-column: 2; grid-row: 2; font-size: 10px; justify-content: center; }
  .viewer-workspace { padding: 0; }
  .viewer-frame { border: 0; }
  .viewer-workspace[data-device=phone] .viewer-frame { border: 0; border-radius: 0; }
  .viewer-footer { min-height: 55px; gap: 12px; padding: 8px 15px; }
  .viewer-footer label { font-size: 11px; }
  .viewer-footer select { flex: 1; max-width: 260px; min-height: 40px; font-size: 12px; }
  .viewer-footer p { display: none; }
  .viewer-loading p { font-size: 13px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 21vw; }
  .hero-art { height: 495px; }
  .scene-controls { left: 14px; right: 14px; }
  .scene-heading p { font-size: 10px; }
  .scene-tabs button { font-size: 9px; }
  .feature-aside { gap: 0 16px; grid-template-columns: 72px 1fr; }
  .feature-orbit { width: 72px; height: 72px; }
  .feature-aside .feature-word { font-size: 34px; }
  .chapter-dock a { padding: 9px 13px; font-size: 10px; }
  .product-heading h2 { font-size: 12vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-line > span, .hero-art .scene-image, .feature-orbit::after, .orbit-cross, .hero-kicker .cross { transform: none; }
  .continuity h2 em { color: var(--mint); }
}
