:root {
  /* Layout idea: the page is a sequence on an edit timeline. A sticky ruler and playhead track the scroll; sections are edit markers in yellow, red and blue. */
  --paper: #f7f6f2;
  --card: #fffefb;
  --ink: #16150f;
  --muted: #67645a;
  --rule: #dcd8cc;
  --red: #d33a2c;
  --blue: #2f5fd0;
  --yellow: #e2ad00;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 3px; }
.c-red, .c-sport { --c: var(--red); }
.c-blue, .c-crime { --c: var(--blue); }
.c-yellow, .c-factual { --c: var(--yellow); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Sticky ruler ---------- */
.ruler {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.ruler-inner {
  max-width: var(--max); margin: auto; padding: 10px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
}
.logo { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 23px; text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--red); }
.track {
  position: relative; height: 30px; container-type: inline-size;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 12px) bottom / 100% 7px no-repeat;
}
.mk {
  position: absolute; top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.mk::after { content: ""; width: 10px; height: 10px; border-radius: 2px 2px 50% 50%; background: var(--c); transition: transform .2s; }
.mk:hover, .mk.is-active { color: var(--ink); }
.mk.is-active::after { transform: scale(1.35); }
.track { touch-action: pan-y; cursor: pointer; }
.playhead {
  position: absolute; top: -10px; bottom: -11px; left: 0; width: 2px; background: var(--red); z-index: 3;
  transform: translateX(calc(var(--p, 0) * (100cqw - 2px)));
  cursor: grab; touch-action: none;
}
/* Wider invisible grab area around the thin line. */
.playhead::after { content: ""; position: absolute; top: 0; bottom: 0; left: -8px; width: 18px; }
.is-scrubbing, .is-scrubbing * { cursor: grabbing !important; user-select: none; }
.is-scrubbing .playhead::before { transform: scale(1.3); }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 8px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .15s; }
.tc { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc b { color: var(--ink); font-weight: 500; }
/* Drawn arrows: Unicode arrows render as emoji on iOS. */
.arr { display: inline-block; width: .62em; height: .62em; margin-left: .15em; vertical-align: .02em; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.arr.ne { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.2 2H8v4.8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
.arr.dn { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v7.6M1.8 5.4 5 8.6l3.2-3.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
.btn .arr { margin-left: -4px; }
.tri { display: inline-block; width: 0; height: 0; border-block: 4.5px solid transparent; }
.tri.l { border-right: 7px solid currentColor; }
.tri.r { border-left: 7px solid currentColor; }
.hdr-cta { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 4px; }
.hdr-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Shared ---------- */
main > * { max-width: var(--max); margin-inline: auto; }
.marker {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.marker::before { content: ""; width: 12px; height: 12px; border-radius: 2px 2px 50% 50%; background: var(--c); }
.marker b { color: var(--ink); font-weight: 500; }
h2 {
  font-family: var(--display); font-weight: 750; font-stretch: 75%;
  font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -0.02em;
  margin: 18px 0 0; max-width: 18ch; text-wrap: balance;
}
.block { padding: clamp(80px, 11vw, 150px) var(--gutter) 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 13px 20px; border-radius: 4px; border: 1.5px solid var(--ink);
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--red); border-color: var(--red); }
.btn.ghost:hover { background: var(--card); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) var(--gutter) 0; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 13px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px 6px 10px;
}
.status i { width: 9px; height: 9px; border-radius: 50%; background: #2e8f47; box-shadow: 0 0 0 4px #2e8f4722; }
.status span { color: var(--muted); }
h1 {
  font-family: var(--display); font-weight: 800; font-stretch: 68%;
  font-size: clamp(68px, 14.5vw, 210px); line-height: .86; letter-spacing: -0.025em; margin: 28px 0 0;
}
h1 .dot { color: var(--red); }
.lede { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: end; justify-content: space-between; margin-top: 32px; }
.lede p { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; margin: 0; max-width: 36ch; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sequence (credits on a scrollable year timeline) ---------- */
.sequence { padding: clamp(48px, 6vw, 80px) var(--gutter) 0; font-family: var(--mono); font-size: 12px; --yw: 210px; }
.seq-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 8px 0; border-top: 1px solid var(--ink); }
.seq-nav { display: flex; gap: 6px; }
.seq-btn {
  font: inherit; font-size: 11px; width: 32px; height: 26px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 3px;
}
.seq-btn:hover { border-color: var(--ink); }
.seq-btn:focus-visible, .seq-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.seq-frame { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.lane-names { grid-auto-rows: 44px; display: grid; grid-template-rows: 24px repeat(4, 44px); row-gap: 6px; color: var(--muted); }
.lane-names span:not(.yr-spacer) { align-self: center; }
.seq-scroll {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent; padding-bottom: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.seq-body { grid-auto-rows: 44px; position: relative; width: calc(var(--years) * var(--yw)); display: grid; grid-template-rows: 24px repeat(4, 44px); row-gap: 6px; }
.years { position: relative; border-bottom: 1px solid var(--rule); color: var(--muted); font-variant-numeric: tabular-nums; }
.years span { position: absolute; left: calc(var(--a) * var(--yw)); bottom: 0; top: 0; padding: 4px 0 0 6px; border-left: 1px solid var(--rule); }
.lane { position: relative; }
.clip {
  position: absolute; top: 0; bottom: 0; left: calc(var(--a) * var(--yw)); width: calc(var(--n) * var(--yw) - 4px);
  display: flex; align-items: center; overflow: clip;
  background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--c); border-radius: 3px;
  text-decoration: none; color: var(--ink);
}
/* Poster and title stay in view while a long clip scrolls past. */
.clip-head { position: sticky; left: 24px; display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding-right: 10px; }
.clip img { flex: none; width: 28px; height: 42px; object-fit: cover; }
.clip-head span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane:last-of-type .clip { background: transparent; border-style: dashed; border-left-style: solid; }
.clip:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.now { position: absolute; top: 0; bottom: 0; left: calc(var(--now) * var(--yw)); width: 2px; background: var(--red); pointer-events: none; z-index: 2; }
.now b { position: absolute; top: 2px; right: 6px; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--red); background: var(--paper); padding: 0 3px; }
.legend { display: flex; gap: 8px 20px; flex-wrap: wrap; padding-top: 12px; color: var(--muted); }
.legend span::before, .filters label::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 7px;
}

/* ---------- Networks ---------- */
.networks { padding: clamp(56px, 7vw, 96px) var(--gutter) 0; display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.networks .label { margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
/* One-line logo carousel: the list is duplicated so the loop is seamless. */
.logo-strip { overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.logo-track { display: flex; width: max-content; animation: logos 36s linear infinite; }
.logo-strip:hover .logo-track, .logo-strip:focus-within .logo-track { animation-play-state: paused; }
.networks ul { list-style: none; margin: 0; padding: 0 20px; display: flex; flex-wrap: nowrap; gap: 48px; align-items: center; }
@keyframes logos { to { transform: translateX(-50%); } }
.networks img { height: 24px; width: auto; max-width: none; filter: grayscale(1) contrast(1.2); opacity: .72; }

/* ---------- Selected work ---------- */
.work { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(40px, 6vw, 72px); }
.proj { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.proj:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.proj:nth-child(even) .frame { order: 2; }
.frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #222; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.frame:hover img { transform: scale(1.025); }
.frame:hover { outline: 2px solid var(--c); outline-offset: 4px; }
.tcb { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 12px; color: #fff; background: #000000a0; padding: 3px 7px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); transform-origin: left; transform: scaleX(var(--r, 1)); }
.meta { display: grid; gap: 12px; padding-bottom: 4px; }
.meta p { margin: 0; color: var(--muted); max-width: 42ch; }
.meta .net { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.meta .net i { flex: none; width: 10px; height: 10px; border-radius: 2px 2px 50% 50%; background: var(--c); }
.meta h3 { font-family: var(--display); font-weight: 750; font-stretch: 80%; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.meta .links { display: flex; gap: 20px; color: var(--ink); font-weight: 600; }
.meta .links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c); text-decoration-thickness: 2px; }

/* ---------- Credits ---------- */
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.head-links, .contact-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; font-weight: 600; }
.head-links a, .contact-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 12px; }
.filters input { position: absolute; opacity: 0; pointer-events: none; }
.filters label {
  display: inline-flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--card);
}
.filters label[for="f-all"]::before { background: var(--ink); }
.filters label small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }
.filters .sm { display: none; }
.filters input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.filters input:checked + label small { color: #cfcabd; }
.credits { border-top: 1px solid var(--ink); }
.block:has(#f-sport:checked) .credit:not(.c-sport),
.block:has(#f-crime:checked) .credit:not(.c-crime),
.block:has(#f-factual:checked) .credit:not(.c-factual) { display: none; }
.credit { border-bottom: 1px solid var(--rule); position: relative; }
.credit::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); transform-origin: top; transform: scaleY(var(--k, 1)); transition: transform .5s; }
.credit summary {
  display: grid; grid-template-columns: 96px 44px minmax(0, 1fr) minmax(0, 15rem) 24px; gap: 20px; align-items: center;
  padding: 14px 8px 14px 20px; cursor: pointer; list-style: none;
}
.credit summary::-webkit-details-marker { display: none; }
.credit summary:hover { background: var(--card); }
.yr { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.poster { width: 44px; height: 65px; object-fit: cover; border-radius: 2px; background: var(--rule); }
.ttl { display: grid; gap: 2px; min-width: 0; }
.name { font-weight: 650; font-size: 18px; line-height: 1.25; }
.fmt { font-size: 14px; color: var(--muted); }
.role { font-size: 14px; color: var(--muted); }
.plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
.credit[open] .plus::after { transform: none; }
.credit-body { padding: 0 8px 20px calc(20px + 96px + 20px + 44px + 20px); font-size: 15px; }
.credit-body p { margin: 0 0 8px; }
.episodes { margin: 0 0 12px; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.credit-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c); text-decoration-thickness: 2px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(32px, 5vw, 56px); }
.about-copy p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; margin: 0 0 1em; max-width: 60ch; }
.about-copy p:first-child { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.35; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }

/* ---------- Sizzles ---------- */
.sizzles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sizzle-intro { font-size: clamp(18px, 1.7vw, 21px); margin: 0 0 24px; max-width: 48ch; }
.sizzle-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.sizzle-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 18px; }
.sizzle-list li span:last-child { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; align-self: center; }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 13vw, 180px) var(--gutter) clamp(64px, 8vw, 110px); }
.contact h2 { font-size: clamp(48px, 8vw, 120px); max-width: 14ch; }
.contact-line { margin: 32px 0 6px; color: var(--muted); }
.email {
  display: inline-block; font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: clamp(26px, 4vw, 52px); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; text-decoration-color: var(--red);
  overflow-wrap: anywhere;
}
.email:hover { color: var(--red); }
.contact-links { margin-top: 28px; }

footer {
  max-width: var(--max); margin: auto; padding: 20px var(--gutter) 40px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .proj, .proj:nth-child(even) { grid-template-columns: 1fr; }
  .proj:nth-child(even) .frame { order: 0; }
  .about-grid, .sizzles { grid-template-columns: 1fr; }
  .credit summary { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; }
  .credit summary .yr { grid-column: 2; grid-row: 2; }
  .credit summary .poster { grid-row: 1 / span 3; }
  .credit summary .ttl { grid-column: 2; grid-row: 1; }
  .credit summary .role { grid-column: 2; grid-row: 3; }
  .credit summary .plus { grid-column: 3; grid-row: 1; }
  .credit-body { padding-left: 78px; }
  .networks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sequence { --yw: 150px; font-size: 11px; }
  .clip img { width: 22px; height: 34px; }
  .clip-head { gap: 7px; }
  .mk { font-size: 9px; letter-spacing: .03em; }
  .ruler-inner { gap: 12px; grid-template-columns: auto 1fr auto; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin-top: 28px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters label { flex: none; font-size: 12px; padding: 5px 7px; border-width: 1px; }
  .filters label small { margin-left: 4px; font-size: 10.5px; }
  .filters label::before { margin-right: 4px; width: 7px; height: 7px; }
  .hide-sm { display: none; }
  .filters .lg { display: none; }
  .filters .sm { display: inline; }
  .hdr-cta { display: none; }
  .tc { font-size: 11px; }
  .tc .tc-label { display: none; }
  .status span { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seq-scroll { scroll-behavior: auto; }
  .logo-track { animation: none; }
  .logo-track ul[aria-hidden] { display: none; }
  .logo-strip { overflow-x: auto; }
  .frame img, .credit::before, .mk::after { transition: none; }
}
@media print {
  .ruler, .sequence, .filters, .networks, .frame { display: none; }
  .credit-body { display: block; }
}

