/* Project 16 additions to the shared case-study theme (build-mode.css + case-study.css). */
.spaceflight-study .study-cover img { object-fit: cover; }
.sf-lead { max-width: 440px; font-size: 16px; line-height: 1.55; margin: 0 0 20px; }

/* The system: eight numbered steps. */
.sf-pipeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.sf-pipeline li { padding: 14px 0 16px; border-top: 1px solid #17171330; }
.sf-pipeline span { font-size: 11px; letter-spacing: .1em; color: var(--red); }
.sf-pipeline strong { display: block; margin: 6px 0; font-size: 17px; letter-spacing: -.02em; }
.study-story .case-grid .sf-pipeline p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.sf-pipeline code { font: 12px/1.4 ui-monospace, Consolas, monospace; color: #645f56; }

/* Timing: the song's eight sections, widths to scale by frame count. */
.sf-timing { list-style: none; display: flex; margin: 16px 0 0; padding: 0; border: 1px solid #17171330; }
.sf-timing li { flex: 0 0 var(--w); min-width: 0; padding: 10px 7px; border-left: 1px solid #17171330; overflow: hidden; }
.sf-timing li:first-child { border-left: 0; }
.sf-timing li:nth-child(5) { background: #e43d2414; }
.sf-seg-name { display: block; font-size: 12px; font-weight: 750; white-space: nowrap; }
.sf-seg-meta { display: block; margin-top: 4px; font-size: 10.5px; color: #645f56; white-space: nowrap; }

/* The film: a still until the reader asks for YouTube. */
.sf-film-section { padding: 34px 0 10px; border-top: 1px solid #17171330; }
.sf-film-section h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.045em; margin: 8px 0 20px; }
.sf-film { position: relative; margin: 0; background: #171713; aspect-ratio: 16 / 9; }
.sf-film img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.sf-film iframe { display: block; width: 100%; height: 100%; border: 0; }
.sf-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; appearance: none; border: 0; border-radius: 8px; background: var(--red);
  color: var(--paper); padding: 18px 24px; font: 750 14px/1 Mona, Arial, sans-serif; letter-spacing: .02em; cursor: pointer; transition: transform .2s; }
.sf-play:hover { transform: translate(0, -3px); }
.sf-film-link { margin: 12px 0 0; font-size: 13px; }
.sf-film-link a { border-bottom: 1px solid; padding-bottom: 3px; font-weight: 700; }

@media (max-width: 760px) {
  .sf-pipeline { grid-template-columns: 1fr; }
  /* Timing on phones: a list, each row's tint still to scale. */
  .sf-timing { flex-direction: column; border: 0; }
  .sf-timing li { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-left: 0; border-top: 1px solid #17171330;
    background: linear-gradient(to right, #e43d2424 var(--w), transparent var(--w)) !important; padding: 9px 4px; }
}
@media (min-width: 761px) { .spaceflight-study .study-facts { grid-template-columns: repeat(4, 1fr); } }
