/* The cameras and app share one stage. Native scrolling selects the chapter. */
.capture-section { position: relative; padding: 0; overflow: clip; }
.capture-stage { padding: 72px 0; isolation: isolate; }
.capture-section .capture-grid { padding-top: 0; }
.capture-copy { position: relative; z-index: 1; pointer-events: auto; }
.capture-visual-track, .capture-visual { position: relative; min-width: 0; }
.capture-visual { display: grid; gap: 48px; }
.capture-cameras { position: relative; height: 540px; width: 100%; pointer-events: auto; }
.capture-cameras .overview-layout { display: grid; grid-auto-rows: max-content; align-content: start; gap: 16px; width: 100%; position: absolute; inset: 0; overflow: hidden; }
.capture-cameras .overview-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; gap: 16px; }
.capture-cameras .overview-tile { min-width: 0; min-height: 0; aspect-ratio: 16/9; }
.capture-cameras .overview-tile img { width: 100%; height: 100%; object-fit: contain; }
.capture-cameras .overview-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.capture-cameras::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #101a28f5 0%, #101a28eb 28%, #101a28c9 44%, #101a2866 64%, #101a2826 100%); }
.capture-cameras.is-rendering .overview-canvas { opacity: 1; }
.capture-cameras.is-rendering .overview-tile img { visibility: hidden; }
.capture-actions { display: grid; align-items: center; justify-items: start; margin-top: 30px; min-height: 48px; }
.capture-actions > * { grid-area: 1 / 1; transition: opacity .3s ease, transform .3s var(--ease), visibility 0s; }
.capture-actions .app-link { margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); }
.capture-scroll[data-capture-state=app] .capture-actions .overview-controls { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .3s var(--ease), visibility 0s .3s; }
.capture-scroll[data-capture-state=app] .capture-actions .app-link { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease .2s, transform .35s var(--ease) .2s, visibility 0s; }
.capture-section .overview-pose-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; border: 1px solid #94a3b866; border-radius: 28px; background: #101a28ed; color: var(--paper); font: 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.overview-toggle-track { position: relative; width: 38px; height: 22px; flex: none; border: 1px solid var(--pale); border-radius: 12px; background: #eceff30a; transition: background .2s, border-color .2s; }
.overview-toggle-track::after { content: ''; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; background: var(--pale); border-radius: 50%; transition: transform .2s, background .2s; }
.overview-pose-toggle[aria-checked=true] .overview-toggle-track { background: var(--warm); border-color: var(--warm); }
.overview-pose-toggle[aria-checked=true] .overview-toggle-track::after { transform: translateX(16px); background: var(--ink); }
.capture-cameras .overview-sources { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.capture-cameras .overview-sources video { position: absolute; width: 1px; height: 1px; }
.capture-section .product-explorer { min-width: 0; justify-content: center; gap: 30px; --active-screen: 0; }
.capture-section .explorer-screen { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 28px; }
.capture-section .explorer-phone { width: min(100%, 260px); padding: 5px; }
.explorer-phone-frame { display: contents; }
.explorer-arrow { display: none; }
.explorer-slides { display: block; position: relative; width: 100%; aspect-ratio: 402/874; border-radius: 28px; overflow: hidden; background: var(--paper); }
.explorer-slides .explorer-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: translateX(calc((var(--screen-index, 0) - var(--active-screen)) * 100%)); transition: transform .75s var(--ease); }
.explorer-slide:nth-child(2) { --screen-index: 1; }
.explorer-slide:nth-child(3) { --screen-index: 2; }
.capture-section .explorer-caption { text-align: left; }
.capture-section .explorer-caption h3 { text-wrap: balance; }
.capture-section .explorer-caption h3 > span { display: block; }
.capture-section .explorer-caption p { min-height: 0; }
.capture-section .explorer-app-link { display: none; }
.explorer-controls { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; order: 2; }
.capture-section .tabs { margin: 0; order: 0; max-width: none; flex: 1; }
.capture-section .tabs button { position: relative; border: 0; padding: 15px 6px 8px; min-height: 48px; }
.screen-timer { position: absolute; inset: 0 0 auto; height: 2px; background: #94a3b855; overflow: hidden; }
.screen-timer > span { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.tabs button[aria-selected=true] .screen-timer > span { transform: scaleX(1); }
.capture-chapters { display: none; align-items: stretch; gap: 24px; width: 100%; border-top: 1px solid #94a3b855; }
.capture-chapters button { border: 0; border-top: 2px solid transparent; margin-top: -1px; min-height: 48px; padding: 14px 0 8px; background: none; color: var(--mid); font: 10px/1.5 var(--mono); white-space: nowrap; flex-shrink: 0; }
.capture-chapters button[aria-pressed=true] { border-top-color: var(--paper); color: var(--paper); }
.capture-scroll-hint { align-self: center; margin-left: auto; color: var(--mid); font: 9px/1.5 var(--mono); }

/* A threshold starts a complete, eased transition, even after scrolling stops. */
.capture-scroll { height: 240svh; }
.capture-scroll .capture-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); padding: 0; }
.capture-scroll .capture-grid { height: 100%; padding-block: 48px 32px; pointer-events: none; }
.capture-scroll .capture-visual-track, .capture-scroll .capture-visual { height: 100%; }
.capture-scroll .capture-visual { display: block; }
.capture-scroll .capture-cameras { position: absolute; inset: 0; height: auto; opacity: 1; transition: opacity .55s ease .25s, visibility 0s; }
.capture-scroll[data-capture-layout=split] .capture-visual-track { z-index: 1; pointer-events: none; }
.capture-scroll .product-explorer, .capture-scroll .capture-chapters { pointer-events: auto; }
.capture-scroll .product-explorer { position: absolute; inset: 0 0 64px; opacity: 0; transform: translate3d(calc(100% + var(--gutter)), 0, 0); visibility: hidden; transition: opacity .35s ease, transform .6s var(--ease), visibility 0s .6s; }
.capture-scroll[data-capture-state=app] .capture-cameras { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.capture-scroll[data-capture-state=app] .product-explorer { opacity: 1; transform: translate3d(0, 0, 0); visibility: visible; transition: opacity .6s ease .4s, transform .9s var(--ease) .4s, visibility 0s; }
.capture-scroll .capture-chapters { display: flex; position: absolute; bottom: 0; left: 0; height: 80px; padding-inline: max(var(--gutter), (100% - 1280px) / 2); z-index: 3; }
.capture-scroll .capture-chapters::before { content: ''; position: absolute; inset: -24px 0 0; z-index: -1; background: linear-gradient(transparent, #101a28f2 45%); pointer-events: none; }
.capture-scroll .explorer-phone { width: min(100%, 260px, calc((100svh - 255px) * .46)); }

/* Mobile uses a continuous flow, with the copy between two pairs of camera rows. */
.capture-section[data-capture-layout=linear] .capture-stage { padding: 24px 0 64px; }
.capture-section[data-capture-layout=linear] .capture-grid { display: block; padding-top: 56px; }
.capture-section[data-capture-layout=linear] .capture-cameras { height: auto; --camera-width: min(68vw, 360px); }
.capture-section[data-capture-layout=linear] .overview-layout { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.capture-section[data-capture-layout=linear] .overview-row { display: flex; transform: translateX(-40px); }
.capture-section[data-capture-layout=linear] .overview-row:nth-child(2) { transform: translateX(-150px); }
.capture-section[data-capture-layout=linear] .overview-row:nth-last-child(2) { transform: translateX(-80px); }
.capture-section[data-capture-layout=linear] .overview-tile { flex: 0 0 var(--camera-width); width: var(--camera-width); height: auto; }
.capture-section[data-capture-layout=linear] .capture-cameras::after { display: none; }
.capture-section[data-capture-layout=linear] .capture-copy { width: min(calc(100% - var(--gutter) * 2), 600px); margin: 32px auto; }
.capture-section[data-capture-layout=linear] .capture-actions .app-link { display: none; }
.capture-section[data-capture-layout=linear] .product-explorer { width: 100%; max-width: 440px; margin-inline: auto; gap: 28px; }
.capture-section[data-capture-layout=linear] .explorer-screen { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
.capture-section[data-capture-layout=linear] .explorer-caption { grid-row: 1; text-align: center; width: 100%; max-width: 360px; min-height: 182px; }
.capture-section[data-capture-layout=linear] .explorer-caption h3 { font-size: 32px; }
.capture-section[data-capture-layout=linear] .explorer-caption p { font-size: 17px; line-height: 1.55; margin-top: 16px; }
.capture-section[data-capture-layout=linear] .explorer-phone-frame { grid-row: 2; position: relative; display: flex; justify-content: center; width: min(calc(100% + 32px), 400px); }
.capture-section[data-capture-layout=linear] .explorer-phone { width: min(320px, calc(100% - 80px)); max-width: none; }
.capture-section[data-capture-layout=linear] .explorer-arrow { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; padding: 0; border: 0; background: transparent; color: var(--mid); }
.explorer-previous { left: 0; }
.explorer-next { right: 0; }
.explorer-arrow svg { width: 32px; height: 48px; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.explorer-previous svg { transform: rotate(180deg); }
.explorer-arrow:hover svg, .explorer-arrow:focus-visible svg { opacity: 1; }
.capture-section[data-capture-layout=linear] .explorer-controls { max-width: 320px; }
.capture-section[data-capture-layout=linear] .capture-chapters { display: none; }
@media (max-width: 899px) {
  .capture-section[data-capture-layout=linear] .product-explorer { gap: 16px; }
  .capture-section[data-capture-layout=linear] .explorer-screen { gap: 0; }
  .capture-section[data-capture-layout=linear] .explorer-phone-frame { grid-row: auto; width: min(calc(100% + 32px), 360px); }
  /* Reserve room for the header, tabs, description and spacing on short phones. */
  .capture-section[data-capture-layout=linear] .explorer-phone { width: min(240px, calc(100% - 80px), calc((100svh - var(--header-height) - 210px) * .46)); }
  .capture-section[data-capture-layout=linear] .explorer-caption { order: 3; min-height: 6.2em; font-size: 17px; }
  .capture-section[data-capture-layout=linear] .explorer-caption h3 { display: none; }
  .capture-section[data-capture-layout=linear] .explorer-caption p { margin: 0; }
  .capture-section[data-capture-layout=linear] .explorer-app-link { display: inline-flex; margin-top: 16px; font-size: 15px; }
}
@media (max-height: 699px) and (min-width: 900px) {
  .capture-section .explorer-screen { grid-template-columns: 220px minmax(0, 1fr); justify-content: center; max-width: 550px; }
  .capture-scroll .explorer-phone { width: min(100%, calc((100svh - 250px) * .46)); }
  .capture-section .product-explorer { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .explorer-slide, .capture-cameras, .product-explorer, .overview-toggle-track::after, .capture-actions > * { transition: none !important; }
}
.motion-paused .capture-cameras, .motion-paused .product-explorer, .motion-paused .explorer-slide, .motion-paused .capture-actions > * { transition: none !important; }
@media (forced-colors: active) {
  .capture-cameras .overview-canvas { display: none; }
  .capture-cameras.is-rendering .overview-tile img { visibility: visible; }
}
@media print {
  .capture-scroll { height: auto; }
  .capture-scroll .capture-stage, .capture-scroll .capture-visual { height: auto; position: static; }
  .capture-scroll .capture-visual-track { height: auto; }
  .capture-scroll .capture-cameras, .capture-scroll .product-explorer { position: relative; opacity: 1; visibility: visible; transform: none; }
  .capture-scroll .capture-cameras { height: 400px; }
  .capture-chapters { display: none !important; }
}
