/* ─────────────────────────────────────────────────────────────────────────────
   sky-to-porch-case-study.css — page accent + page-specific components
   The design language lives in css/editorial.css; this file only sets the
   satellite-blue accent and styles Sky to Porch's own pieces (altitude
   markers, video frame, evidence pipeline).
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --accent: #2563eb;            /* the app's evidence blue */
  --accent-dim: rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] {
  --accent: #6ea8fe;            /* the same blue under a night sky */
  --accent-dim: rgba(110, 168, 254, 0.07);
}

/* ── Altitude marker in section labels — the page descends from orbit ── */
.alt {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ── Video embed: bare 16:9 frame, shadowed like a screenshot ── */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ph-bg);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-body p + .video-frame,
.section-body .video-frame + p { margin-top: 1rem; }

/* ── Screenshot captions under shot-grid figures ── */
.shot-grid figure { margin: 0; }

.shot-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Evidence pipeline: a ruled flow, every stage allowed to refuse ── */
.pipeline {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}

.section-body p + .pipeline,
.section-body .pipeline + p { margin-top: 1rem; }

.section-body .pipeline + .callout { margin-top: 2rem; }

.pipe-stage {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  column-gap: 2rem;
  row-gap: 0.45rem;
  align-items: start;
  padding: 1.1rem 0;
}

.pipe-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.pipe-arrow svg { width: 15px; height: 15px; }

.pipe-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.pipe-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.pipe-stage h4 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.pipe-stage p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.pipe-tech {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pipeline-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pipeline-note .callout { margin: 0; }

.pipeline-note .callout p { font-size: 0.88rem; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .pipeline-note { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pipe-stage { grid-template-columns: 1fr; }
}
