/* ============================================================
   WATCH — the /watch/ hub and /watch/<slug>/ pages, and the shared player.
   Generated by gen-videos.mjs from videos/*.json. Colour comes only from the
   tokens in /styles.css, so both themes work unchanged. Headings are the
   softer sentence-case face (`.display-soft`), like /product/ and
   /integrations/; mono is kept for eyebrows, durations and chips.

   The player (`figure.vp`) is used here and, in Phase 2, embedded on the
   home, product, on-call and integration pages — same markup, same
   player.js, same look everywhere. Poster first; nothing downloads until
   the visitor presses play.
   ============================================================ */

/* ---------- the player ---------- */
.vp { margin: 0; min-width: 0; }
.vp-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px;
  background: var(--panel) center / cover no-repeat; border: 1px solid var(--rule);
  box-shadow: 0 24px 60px oklch(0.15 0.02 274 / 0.18); cursor: pointer;
}
.vp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.vp.is-playing .vp-stage { cursor: default; }
.vp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: 2px solid oklch(0.74 0.17 274);
  background: oklch(0.165 0.006 274 / 0.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer; color: oklch(0.86 0.12 274);
  transition: transform .15s ease, background .15s ease;
}
.vp-play:hover { transform: translate(-50%, -50%) scale(1.06); background: oklch(0.165 0.006 274 / 0.86); }
.vp-play svg { width: 30px; height: 30px; display: block; margin-left: 4px; }
.vp-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vp-dur {
  position: absolute; right: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .08em; color: oklch(0.95 0.004 274); background: oklch(0.165 0.006 274 / 0.78);
  padding: 5px 9px; border-radius: 5px;
}
.vp-flag {
  position: absolute; left: 14px; top: 12px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: oklch(0.86 0.12 274);
  background: oklch(0.165 0.006 274 / 0.78); border: 1px solid oklch(0.68 0.17 274 / 0.6);
  padding: 5px 9px; border-radius: 5px;
}
.vp-cap {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-top: 12px;
  font-size: 14px; color: var(--ink-2);
}
.vp-cap a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.vp-cap a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) { .vp-play { width: 64px; height: 64px; } .vp-play svg { width: 24px; height: 24px; } .vp-stage { border-radius: 10px; } }

/* ---------- status chips ---------- */
.w-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.w-chip.placeholder { color: var(--ink-2); background: var(--bg-2); border: 1px dashed var(--rule-strong); }
.w-chip.kind { color: var(--accent-hover); background: var(--accent-soft); }

/* a plain notice while films are in production — removed by the generator once none are placeholders */
.w-notice {
  margin: 0 0 28px; padding: 12px 16px; border: 1px dashed var(--rule-strong); border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2); max-width: 78ch;
}
.w-notice b { color: var(--ink); font-weight: 600; }

/* ---------- hub ---------- */
.w-hub-hero h1 { max-width: 14ch; }
.w-hub-hero .lede { max-width: 50ch; }
.w-feature { margin-top: clamp(32px, 4vw, 52px); }
.w-feature .vp-stage { border-radius: 16px; }
.w-feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: end; margin-top: 18px; }
.w-feature-copy h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
.w-feature-copy p { color: var(--ink-2); font-size: 16px; margin-top: 8px; max-width: 60ch; }
@media (max-width: 760px) { .w-feature-copy { grid-template-columns: 1fr; } }

.w-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.w-card { min-width: 0; display: grid; gap: 12px; align-content: start; }
.w-card a.w-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
                     border: 1px solid var(--rule); background: var(--panel); }
.w-card a.w-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.w-card a.w-thumb:hover img { transform: scale(1.03); }
.w-card .w-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent-hover); }
.w-card h3 { margin: 0; font-size: 18.5px; letter-spacing: -.014em; line-height: 1.3; }
.w-card h3 a { color: inherit; text-decoration: none; }
.w-card h3 a:hover { color: var(--accent); }
.w-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.w-card .w-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 960px) { .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .w-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- video page ---------- */
.w-crumbs { margin-bottom: 20px; }
.w-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 6px;
               font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); }
.w-crumbs li + li::before { content: '›'; margin: 0 10px; color: var(--ink-2); }
.w-crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.w-crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.w-crumbs [aria-current] { color: var(--ink); }
.w-page-hero { padding-bottom: 0; }
.w-page-hero h1 { max-width: 22ch; font-size: clamp(30px, 4vw, 48px); }
.w-page-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 16px 0 0;
               font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); }
.w-player-wrap { margin-top: clamp(26px, 3.4vw, 40px); }

.w-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.w-summary { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.w-summary b { color: var(--ink); font-weight: 600; }
.w-transcript { margin-top: 36px; }
.w-transcript details { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.w-transcript summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between;
                        gap: 16px; padding: 18px 0; font-size: 16.5px; font-weight: 500; }
.w-transcript summary::-webkit-details-marker { display: none; }
.w-transcript summary .sign { font-family: var(--font-mono); color: var(--ink-2); }
.w-transcript details[open] summary .sign { color: var(--accent); }
.w-transcript .t { padding: 0 0 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 70ch; display: grid; gap: 12px; }
.w-side { display: grid; gap: 28px; }
.w-side h2 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.w-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.w-side li a { color: var(--ink); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--rule-strong); }
.w-side li a:hover { color: var(--accent); border-color: var(--accent); }
.w-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.w-side dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.w-side dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .w-body { grid-template-columns: 1fr; gap: 32px; } }

/* prev / next */
.w-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--ink); margin-top: clamp(44px, 6vw, 72px); padding-top: 22px; }
.w-nav a { text-decoration: none; color: var(--ink); display: grid; gap: 6px; min-width: 0; }
.w-nav a:hover h3 { color: var(--accent); }
.w-nav .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.w-nav h3 { margin: 0; font-size: 17px; letter-spacing: -.012em; }
.w-nav .next { text-align: right; justify-items: end; }
@media (max-width: 560px) { .w-nav { grid-template-columns: 1fr; } .w-nav .next { text-align: left; justify-items: start; } }

/* more videos strip on a video page */
.w-more .w-grid { margin-top: 28px; }

/* ---------- closing band ---------- */
.w-closer { background: var(--panel); color: var(--panel-ink); padding: clamp(56px, 7vw, 92px) 0; }
.w-closer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.w-closer .display-soft { color: var(--panel-ink); max-width: 20ch; }
.w-closer p { color: var(--panel-ink-2); margin-top: 14px; max-width: 48ch; font-size: 16.5px; }
.w-closer .tag { color: var(--panel-ink-2); }
@media (max-width: 760px) { .w-closer-in { grid-template-columns: 1fr; } }
