/* The Time page's story (/features/time-tracking; pages/features/time-tracking.html), its chapters as the feature
   pages' bands (outer/feature-editorial.css): real recordings and screens of the app in flat frames (never tilted).
   Films play through js/outer/product-loop.js. */

/* ---------- a film: the recording, a quiet pause control, its caption ---------- */
.ts-film, .ts-shot { position:relative; margin:0; overflow:hidden; border-radius:var(--r-xl); background:var(--bg-panel); box-shadow:var(--shadow-card); }
.ts-film { display:grid; grid-template-areas:"screen" "caption"; }
.ts-film > .ts-screen { grid-area:screen; }
.ts-film > figcaption { grid-area:caption; }
.ts-screen { position:relative; line-height:0; background:var(--paper); }
.ts-screen video, .ts-screen img, .ts-shot img { display:block; width:100%; height:auto; }
.ts-film figcaption, .ts-shot figcaption { padding:12px 16px 14px; border-top:1px solid var(--line); background:var(--bg-panel); font-size:var(--fs-sm); line-height:1.45; color:var(--caption); }
.ts-shot figcaption a { color:var(--ink); text-underline-offset:3px; }
/* the film's pause and play (outer/site.css .loop-toggle) in the screen's corner */
.ts-film > .loop-toggle { grid-area:screen; align-self:end; justify-self:end; position:relative; z-index:1; margin:0 14px 14px 0; }

/* ---------- a chapter: the words across the top (title left, copy right), the product full width beneath ---------- */
.ts-chapter { display:grid; gap:clamp(28px, 4vw, 48px); }
.ts-copy { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:clamp(20px, 5vw, 72px); align-items:end; }
.ts-copy p:not(.kicker) { max-width:46ch; margin:0; font-size:var(--fs-md); line-height:1.65; color:var(--text); }
.ts-copy .section-title { margin-bottom:0; }
[data-tone="dark"] .ts-copy p:not(.kicker) { color:var(--band-on-dark-soft); }
.time-show .ts-shot--invoice { width:min(100%,900px); justify-self:center; }
.time-show .ts-chapter > :is(.credit-note, .details) { margin:0; }
.time-show kbd { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border:1px solid var(--line); border-bottom-width:2px; border-radius:var(--r-sm); background:var(--bg-panel); font:650 var(--fs-xs)/1 var(--font-sans); color:var(--ink); vertical-align:1px; }

/* ---------- motion: chapters rise into place as they arrive, where the browser can tie it to scrolling ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ts-chapter > *, .ts-chapter .details article { animation:ts-arrive linear both; animation-timeline:view(); animation-range:entry 0% entry 40%; }
    }
}
@keyframes ts-arrive { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }

@media (max-width: 900px) {
    .ts-copy { grid-template-columns:1fr; }
}
@media (max-width: 600px) {
    .time-show .screen-focus--capture { aspect-ratio:auto; height:120px; }
    .time-show figure .screen-focus--capture img { width:1040px; left:-24px; top:-30px; }
    .time-show .screen-focus--team { aspect-ratio:auto; height:300px; }
    .time-show figure .screen-focus--team img { width:960px; left:0; top:-50px; }
}
