/* Sample films: the cards on How We Work, the text link on Home, and the shared player.
   Uses the page's own tokens (--navy, --teal, --radius and so on). */

/* ---------- Cards (How We Work, "See it working.") ---------- */
.demos-intro { font-size: var(--support); line-height: 1.42; color: var(--muted); margin-top: 28px; max-width: 34ch; text-wrap: balance; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 64px; }
.demo-card { display: flex; flex-direction: column; }
.demo-open { position: relative; display: block; border-radius: calc(var(--radius) - 8px); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; box-shadow: 0 18px 44px rgb(11 24 61 / 12%); }
.demo-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.demo-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 11 31 / 0%) 45%, rgb(5 11 31 / 38%) 100%); }
.demo-open:hover img { transform: scale(1.03); }
.demo-open:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.demo-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; box-shadow: 0 8px 28px rgb(5 11 31 / 35%); transition: transform 220ms var(--ease), background-color 220ms var(--ease); }
.demo-play svg { width: 28px; height: 28px; fill: var(--night); margin-left: 3px; }
.demo-open:hover .demo-play, .demo-open:focus-visible .demo-play { transform: scale(1.08); background: var(--white); }
.demo-time { position: absolute; right: 14px; bottom: 12px; z-index: 1; font-size: 13px; font-weight: 600; line-height: 1; color: var(--white); background: rgb(5 11 31 / 72%); padding: 6px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.demo-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; color: var(--navy); margin-top: 28px; }
.demo-line { font-size: 19px; line-height: 1.5; color: var(--ink); margin-top: 10px; text-wrap: pretty; }
.demo-note { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: auto; padding-top: 16px; }

@media (max-width: 1023px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .demo-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 44px; } }
@media (max-width: 639px) {
  .demos-intro { margin-top: 20px; }
  .demo-title { font-size: 22px; margin-top: 22px; }
  .demo-line { font-size: 17px; }
  .demo-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}

/* ---------- Home: one quiet text link under Today and After ---------- */
.demo-teaser { margin-top: 36px; }

/* ---------- Player ---------- */
.demo-dialog { width: min(1180px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: calc(var(--radius) - 8px); background: var(--night); color: var(--white); overflow: visible; box-shadow: 0 40px 120px rgb(0 0 0 / 50%); }
.demo-dialog::backdrop { background: rgb(5 11 31 / 86%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-frame { border-radius: calc(var(--radius) - 8px) calc(var(--radius) - 8px) 0 0; overflow: hidden; background: #000; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 220px); background: #000; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 28px 26px; }
.demo-bar-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--white); }
.demo-bar-note { font-size: 14px; color: var(--on-dark-muted); margin-top: 6px; }
.demo-bar .pill { flex: none; width: auto; }
.demo-close { position: absolute; top: -18px; right: -18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / 35%); }
.demo-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.demo-close:hover { background: var(--teal); color: var(--night); }
.demo-close:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

@media (max-width: 767px) {
  .demo-dialog { width: 100vw; max-height: 100vh; height: 100%; margin: 0; border-radius: 0; display: none; }
  .demo-dialog[open] { display: flex; flex-direction: column; justify-content: center; }
  .demo-frame { border-radius: 0; }
  .demo-video { max-height: none; }
  .demo-bar { padding: 20px; }
  .demo-bar-title { font-size: 20px; }
  .demo-bar .pill { width: 100%; }
  .demo-close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-open img, .demo-play { transition: none; }
  .demo-open:hover img { transform: none; }
}

/* ---------- Home: the films on a night band (the visual high point after "From yes to funded.") ---------- */
.demos.band-night { background: var(--night); }
.demos.band-night .eyebrow { color: var(--on-dark-muted); }
.demos.band-night .h2 { color: var(--white); }
.demos.band-night .demos-intro { color: var(--on-dark); }
.demos.band-night .demo-title { color: var(--white); }
.demos.band-night .demo-line { color: var(--on-dark); }
.demos.band-night .demo-note { color: var(--on-dark-muted); }
.demos.band-night .demo-open { box-shadow: 0 0 0 1px var(--hair-dark), 0 24px 60px rgb(0 0 0 / 40%); }

/* ---------- Home hero: secondary button that opens a film ---------- */
.pill-ghost { gap: 10px; background: rgb(5 11 31 / 28%); color: var(--white); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pill-ghost:hover { background: var(--white); color: var(--navy); box-shadow: none; }
.pill-icon { width: 18px; height: 18px; fill: currentColor; flex: none; margin-left: -4px; }
