.film-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #1b1712; }
.film-box img[hidden], .film-play[hidden] { display: none; }
.film-box.is-short { border-radius: 18px; box-shadow: 0 18px 40px rgba(60, 40, 20, 0.16), 0 0 0 1px var(--kf-line); }
.film-box.is-short .film-play span.pill { padding: 10px 18px 10px 12px; gap: 10px; }
.film-box.is-short .film-play .tri { width: 28px; height: 28px; }

/* Labelled disclosures ("See one shirt across four places", "Chapters"): native details whose
   text stays in the page. */
details.more { margin-top: clamp(20px, 3vw, 28px); border-top: 1px solid var(--kf-line); border-bottom: 1px solid var(--kf-line); }
details.more + details.more { margin-top: 0; border-top: 0; }
details.more > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; font: 600 var(--kf-fs-body) var(--kf-sans); color: var(--kf-ink); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--kf-panel-solid); box-shadow: inset 0 0 0 1.5px var(--kf-line); font: 600 var(--kf-fs-body)/1 var(--kf-sans); color: var(--kf-sienna-text); }
details.more[open] > summary::before { content: "\2212"; }
details.more > summary:hover { color: var(--kf-sienna-text); }
.more-body { padding: 4px 0 24px; }

/* Films: the home film row's title and line, and films as rows. */
.film-title { font: 500 var(--kf-fs-h3)/1.15 var(--kf-serif); margin: 0 0 8px; }
.film-intro { margin: 0; font-size: var(--kf-fs-body); color: var(--kf-ink); max-width: 560px; }
.shorts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; }
.shorts .short { min-width: 0; }
.short-copy { margin-top: 12px; }
.short-title { font: 600 var(--kf-fs-title)/1.2 var(--kf-sans); margin: 0 0 4px; }
.short-line { margin: 0 0 6px; font-size: var(--kf-fs-small); color: var(--kf-muted); }
.short .film-meta { margin: 0; }
/* On phones each short is a stacked row: a small poster beside its text; the poster
   takes the full width while it plays. No sideways rail. */
@media (max-width: 640px) {
  .shorts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .short { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: start; }
  .short-copy { margin-top: 0; }
  .short .film-box.is-short { border-radius: 12px; box-shadow: 0 8px 18px rgba(60, 40, 20, 0.14), 0 0 0 1px var(--kf-line); }
  .short .film-play span.pill { padding: 8px; }
  .short .film-play .pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .short:has(.film.is-playing) { grid-template-columns: minmax(0, 1fr); }
}

/* Who's who: the cast cards (home) and the strip (/films). */
/* Home: Dan, Sara and Sara's agent, and Agent K in one row; the rest of the team in a disclosure under it. */
.cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin-top: 28px; }
.cast-group { display: grid; gap: 10px; align-content: start; }
.cast-group.is-shopper { grid-column: span 2; }
.cast-group-label { margin: 0; font: 600 var(--kf-fs-label)/1.2 var(--kf-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kf-sienna-text); }
.cast-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.is-shopper .cast-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cast-cards.is-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cast-card { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 14px; background: var(--kf-panel); border: 1px solid var(--kf-line); border-radius: var(--kf-radius); }
.cast-fig { height: 124px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 8px; border-radius: 12px; background: radial-gradient(120% 110% at 40% 0%, #fbf6ea 0%, #efe3cc 70%, #e6d7bd 100%); }
.cast-fig img { max-width: none; }
.cast-name { margin: 0; font: 600 var(--kf-fs-title)/1.25 var(--kf-sans); color: var(--kf-ink); }
.cast-role { font-weight: 400; color: var(--kf-muted); }
.cast-card p { margin: 6px 0 0; font-size: var(--kf-fs-small); color: var(--kf-muted); }
/* 1000 px and below: one group under another, in page order (Dan, then Sara and Sara's agent side by side, then Agent K), each card
   with its figure beside its text. */
@media (max-width: 1000px) {
  .cast { grid-template-columns: minmax(0, 1fr); }
  .cast-group.is-shopper { grid-column: auto; }
  .cast-cards.is-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast-card { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; align-items: center; }
}
@media (max-width: 640px) {
  .is-shopper .cast-cards, .cast-cards.is-rest { grid-template-columns: minmax(0, 1fr); }
  .cast-card { padding: 10px; }
  .cast-fig { height: 112px; }
}
.cast-strip { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cast-strip li { display: grid; gap: 8px; align-content: start; text-align: center; }
.cast-strip .cast-fig { height: 112px; }
.cast-strip .cast-name { font: 600 var(--kf-fs-small)/1.3 var(--kf-sans); }
@media (max-width: 1000px) { .cast-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cast-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .cast-strip .cast-fig { height: 104px; } }

/* "Your business changes. Your promises keep up.": the three steps, on Home and on
   /intelligence-plane (lib/public-site/keep-up.ts). Three cards on a laptop, three
   short rows on a phone. Static: nothing plays. */
.keep3 { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1080px; }
@media (max-width: 760px) { .keep3 { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.keep3 li { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; background: var(--kf-panel); border: 1px solid var(--kf-line); border-radius: 14px; font-size: var(--kf-fs-small); line-height: 1.45; color: var(--kf-ink); }
.keep3 .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 var(--kf-fs-label)/1 var(--kf-sans); background: var(--kf-sienna); color: #fff8ee; }
.keep3 b { font-weight: 600; color: var(--kf-sienna-text); }

/* The "Next" link at the foot of /engine, /2028 and /films, in the story order
   (lib/public-site/invitation-band.ts nextPage). */
.next-page { padding: clamp(18px, 3vw, 28px) 0 clamp(8px, 2vw, 16px); }
.next-page .site-wrap { display: flex; justify-content: flex-end; }
.next-link { font-size: var(--kf-fs-body); }
.next-link .next-k { font: 600 var(--kf-fs-meta)/1 var(--kf-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--kf-muted); margin-right: 4px; }
