:root {
  --paper: #f6f7f5;
  --powder: #cadce7;
  --powder-soft: #e0ebf1;
  --ink: #322d27;
  --muted: #62686b;
  --blue: #5e8da6;
  --deep: #4f6876;
  --line: rgba(50, 45, 39, 0.13);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--powder); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 4px; }

.artifact-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  padding: 0.8rem clamp(1.2rem, 5vw, 5rem);
  background: rgba(246, 247, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.artifact-brand, .back-link { font-weight: 800; text-decoration: none; }
.artifact-brand { display: flex; gap: 0.65rem; color: var(--deep); }
.artifact-brand span { color: var(--ink); }
.back-link { font-size: 0.78rem; }

.artifact-hero, .artifact, .artifact-footer {
  width: min(1180px, calc(100% - 2.4rem));
  margin-right: auto;
  margin-left: auto;
}

.artifact-hero { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); }
.kicker { margin: 0 0 1rem; color: var(--deep); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; }
h1 { max-width: 10ch; font-size: clamp(4rem, 9vw, 8.5rem); }
h1 em, h2 em { color: var(--blue); font-weight: 500; }
.artifact-intro { max-width: 43rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.3rem); }
.artifact-nav { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2.2rem; }
.artifact-nav a { padding: 0.65rem 0.85rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; font-weight: 800; text-decoration: none; }
.artifact-nav span { color: var(--blue); margin-right: 0.35rem; }

.artifact { margin-bottom: clamp(3rem, 7vw, 6rem); padding: clamp(1.3rem, 5vw, 5rem); background: #ececea; border: 1px solid var(--line); border-radius: 2rem 2rem 0.55rem 2rem; box-shadow: 0 22px 70px rgba(50,45,39,.1); }
.artifact-blue { background: linear-gradient(145deg, var(--powder-soft), #f3f5f4); }
.artifact-heading { max-width: 58rem; }
h2 { font-size: clamp(2.8rem, 6vw, 6rem); }
.artifact-lead { max-width: 48rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 2.8rem; }
.metric-grid > div { display: flex; flex-direction: column; min-height: 8.5rem; padding: 1rem; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 1rem; }
.metric-grid strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
.metric-grid span { margin-top: auto; color: var(--muted); font-size: 0.65rem; }

.artifact-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.block-label, .decision-card span, .test-brief span, .platform-grid span { color: var(--deep); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.comparison-bars { display: grid; gap: 1rem; margin-top: 1.2rem; }
.comparison-bars > div { display: grid; grid-template-columns: 13rem 1fr 4rem; gap: 1rem; align-items: center; }
.comparison-bars span { font-size: 0.75rem; font-weight: 700; }
.comparison-bars i { width: var(--bar); height: 1.1rem; background: var(--blue); border-radius: 999px; }
.comparison-bars strong { font-family: var(--serif); font-size: 1.5rem; }
.artifact-block > p { max-width: 50rem; color: var(--muted); }
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.decision-card { padding: 1.4rem; background: var(--ink); border-radius: 1.2rem 1.2rem .3rem 1.2rem; color: #fff; }
.decision-card span { color: var(--powder); }
.decision-card strong { display: block; margin-top: 0.7rem; font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.decision-card p { color: rgba(255,255,255,.7); font-size: .76rem; }
.ownership-line { margin: 2rem 0 0; padding-left: .8rem; color: var(--muted); border-left: 2px solid var(--blue); font-size: .72rem; }

.census-image { width: 100%; max-height: 34rem; margin-top: 2.5rem; object-fit: cover; object-position: top; border-radius: 1.2rem; box-shadow: 0 14px 40px rgba(50,45,39,.13); }
.platform-grid, .test-brief, .capture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.3rem; }
.platform-grid > div, .test-brief > div, .capture-grid > div { padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 1rem; }
.platform-grid strong { display: block; margin-top: .4rem; font-family: var(--serif); font-size: 1.45rem; }
.platform-grid p, .test-brief p, .capture-grid p { margin-bottom: 0; color: var(--muted); font-size: .76rem; }
.test-brief { grid-template-columns: repeat(4, 1fr); }

.media-brief { display: grid; grid-template-columns: minmax(14rem, .65fr) minmax(20rem, 1.35fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: 2.5rem; }
.media-brief video { width: min(100%, 18rem); aspect-ratio: 9/16; margin: 0 auto; background: var(--ink); border: 7px solid #fff; border-radius: 1.7rem; object-fit: cover; box-shadow: 0 18px 50px rgba(50,45,39,.18); }
blockquote { max-width: 13ch; margin: .6rem 0 1.5rem; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.media-brief p { color: var(--muted); }

.diagnosis-table { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.diagnosis-row { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.diagnosis-row span { color: var(--muted); }
.table-head { color: var(--deep); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-line { display: grid; grid-template-columns: .55fr 1.45fr; gap: 2rem; align-items: center; margin-top: 2rem; padding: 1.4rem; color: #fff; background: var(--ink); border-radius: 1.2rem; }
.result-line div { display: flex; flex-direction: column; }
.result-line strong { font-family: var(--serif); font-size: 3.4rem; line-height: 1; }
.result-line span, .result-line p { color: rgba(255,255,255,.7); font-size: .72rem; }

.capture-grid { grid-template-columns: repeat(4, 1fr); }
.capture-grid span { color: var(--blue); font-size: .7rem; font-weight: 800; }
.capture-grid strong { display: block; margin-top: .45rem; font-family: var(--serif); font-size: 1.35rem; }

.artifact-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0 5rem; border-top: 1px solid var(--line); }
.artifact-footer p { font-family: var(--serif); font-size: 1.4rem; }
.artifact-footer a { padding: .8rem 1rem; color: #fff; background: var(--blue); border-radius: 999px 999px 999px .35rem; font-size: .76rem; font-weight: 800; text-decoration: none; }

@media (max-width: 820px) {
  .metric-grid, .capture-grid { grid-template-columns: repeat(2, 1fr); }
  .test-brief { grid-template-columns: repeat(2, 1fr); }
  .media-brief, .split-block { grid-template-columns: 1fr; }
  .diagnosis-row { grid-template-columns: 1fr; gap: .35rem; }
  .table-head { display: none; }
}

@media (max-width: 540px) {
  .artifact-header { min-height: 4.2rem; }
  .artifact-brand span { display: none; }
  .artifact-hero, .artifact, .artifact-footer { width: min(100% - 1.3rem, 1180px); }
  .artifact { padding: 1.2rem; border-radius: 1.35rem 1.35rem .4rem 1.35rem; }
  .metric-grid, .platform-grid, .test-brief, .capture-grid, .result-line { grid-template-columns: 1fr; }
  .comparison-bars > div { grid-template-columns: 1fr 3.5rem; gap: .5rem; }
  .comparison-bars i { grid-column: 1 / -1; grid-row: 2; }
  .artifact-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Killed / kept evidence pairs */
.ab-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  max-width: 40rem;
  margin-top: 1rem;
}

.ab-take {
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 45, 39, 0.1);
  border-radius: 1rem;
}

.ab-take video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #dfe4e6;
}

.ab-take figcaption,
.qc-strip figcaption {
  margin-top: 0.7rem;
  color: #5d6265;
  font-size: 0.84rem;
  line-height: 1.55;
}

.ab-take figcaption span,
.qc-strip figcaption span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ab-killed figcaption span,
.qc-strip:first-of-type figcaption span {
  color: #a2604f;
}

.ab-kept figcaption span,
.qc-strip + .qc-strip figcaption span {
  color: #4f6876;
}

.ab-killed { border-color: rgba(162, 96, 79, 0.3); }
.ab-kept { border-color: rgba(79, 104, 118, 0.32); }

.ab-note {
  margin-top: 0.9rem;
  color: #5d6265;
  font-size: 0.85rem;
  font-style: italic;
}

.qc-strip {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 45, 39, 0.1);
  border-radius: 1rem;
}

.qc-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

/* A 12-frame strip squeezed into a phone width is illegible (~18px tall).
   Below 700px it scrolls horizontally instead, matching the mobile metric
   scroller used elsewhere, so each frame stays readable. */
@media (max-width: 700px) {
  .qc-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qc-strip img {
    width: auto;
    min-width: 42rem;
    max-width: none;
  }

  .qc-strip figcaption {
    position: sticky;
    left: 0;
    max-width: 100%;
  }
}

/* Ten-beat storyboard spine */
.beat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.1rem;
}

/* Ten beats read as two clean rows of five rather than an uneven 6 + 4. */
@media (min-width: 620px) {
  .beat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .beat-grid { grid-template-columns: repeat(5, 1fr); }
}

.beat {
  margin: 0;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 45, 39, 0.1);
  border-radius: 0.9rem;
}

.beat img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0.55rem;
  background: #dfe4e6;
}

.beat-nofilm {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  border: 1px dashed rgba(50, 45, 39, 0.22);
  border-radius: 0.55rem;
  background: rgba(202, 220, 231, 0.22);
  color: #8a9095;
  font-size: 1.4rem;
}

.beat figcaption {
  margin-top: 0.6rem;
  color: #5d6265;
  font-size: 0.76rem;
  line-height: 1.5;
}

.beat figcaption span {
  display: block;
  color: #4f6876;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beat figcaption strong {
  display: block;
  margin: 0.15rem 0 0.3rem;
  color: #322d27;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Owned-channel newsletter slide */
.news-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}

@media (min-width: 760px) {
  .news-split { grid-template-columns: 1fr 1fr; }
}

.news-role,
.news-rev {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 45, 39, 0.1);
  border-radius: 1rem;
}

.news-role-head {
  margin-bottom: 0.7rem;
  color: #4f6876;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-role ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #5d6265;
  font-size: 0.87rem;
  line-height: 1.7;
}

.news-rev table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.news-rev td {
  padding: 0.4rem 0;
  color: #5d6265;
  border-bottom: 1px solid rgba(50, 45, 39, 0.08);
}

.news-rev td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.news-rev .news-total td {
  padding-top: 0.6rem;
  color: #322d27;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  border-bottom: none;
}

.dispatch-lede {
  margin-top: 1.1rem;
  padding: 1.2rem 1.3rem;
  background: rgba(202, 220, 231, 0.28);
  border: 1px solid rgba(79, 104, 118, 0.22);
  border-radius: 1rem;
}

.dispatch-lede blockquote {
  max-width: 40ch;
  margin: 0 0 0.8rem;
  color: #322d27;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

.dispatch-lede p {
  margin: 0;
  font-size: 0.88rem;
}

/* Two reference thumbnails, side by side at every width and capped so the
   spreads read as evidence without dominating the slide. */
.dispatch-spreads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 30rem;
  margin-top: 1.1rem;
  align-items: start;
}

.dispatch-spreads figure {
  margin: 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 45, 39, 0.1);
  border-radius: 1rem;
}

.dispatch-spreads img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  background: #11100f;
}

.dispatch-spreads figcaption {
  margin-top: 0.5rem;
  color: #5d6265;
  font-size: 0.72rem;
  line-height: 1.45;
}

.news-figures { margin: 0; }

.news-figures > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(50, 45, 39, 0.08);
}

.news-figures > div:last-child { border-bottom: none; }

.news-figures dt {
  color: #5d6265;
  font-size: 0.85rem;
}

.news-figures dd {
  margin: 0;
  color: #322d27;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-foot {
  margin: 0.9rem 0 0;
  color: #6b7176;
  font-size: 0.74rem;
  line-height: 1.5;
}

.channel-mix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.channel-mix > div {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 45, 39, 0.1);
  border-radius: 0.9rem;
}

.channel-mix span {
  display: block;
  color: #5d6265;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.channel-mix b {
  display: block;
  margin: 0.35rem 0 0.15rem;
  color: #322d27;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.channel-mix i {
  color: #6b7176;
  font-size: 0.76rem;
  font-style: normal;
}

.channel-mine {
  background: rgba(202, 220, 231, 0.4);
  border-color: rgba(79, 104, 118, 0.3);
}
