/* DM ORIGINALS chapter: the catalog. One poster system, one splash (the Original Series), rails, the story sheet. */

.og-head { margin-bottom: clamp(16px, 2.5vh, 28px); }
/* the catalog's lede runs on one line wherever it fits (Dor, 24.10.2026) */
.og-head .chapter-lede { max-width: none; }

/* The category tiles (Dor, 25.10.2026): it must read at a glance that the catalog has several sections.
   Each tile is a small poster of its row, its name in the title face and how much is inside. At rest the
   picture is only lightly graded (Dor: the pictures must be seen, not sunk in the deep); the chosen tile is
   lit, in full colour inside a tungsten ring (the live-state exception), and a tile clicked moves once, like a
   short loop of its picture. The strip bleeds to the screen edge like a rail and, where the tiles do not
   fit, scrolls sideways and fades on the side that hides more. */
.og-tabs-wrap {
  --tabs-pad: max(var(--gutter), var(--edge), calc((100vw - var(--wrap)) / 2));
  position: relative;
}
.og-tabs {
  --fade-start: 0px;
  --fade-end: 0px;
  display: flex;
  gap: 12px;
  padding: 6px var(--tabs-pad) 8px;
  overflow-x: auto;
  scroll-padding-inline: var(--tabs-pad);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  mask-image: linear-gradient(to left, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
}
.og-tabs::-webkit-scrollbar { display: none; }
.og-tabs__tab {
  flex: 1 0 132px;
  max-width: 210px;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 0;
  background: none;
  text-align: start;
  color: var(--ink-2);
  transition: transform 160ms var(--ease-out);
}
.og-tabs__tab:active { transform: scale(0.97); }
.og-tabs__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: var(--r-poster);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 260ms var(--ease-out);
}
.og-tabs__art img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  filter: saturate(0.72) brightness(0.86);
  transition: filter 320ms var(--ease-out), transform 600ms var(--ease-out), opacity 200ms var(--ease-out);
}
/* what a motion needs besides the picture: the bare picture a grow starts from (under it), the copy that holds
   a connect's right half (over it, unseen at rest) and a layer of light for the glows and flashes */
.og-tabs__art .og-tabs__under,
.og-tabs__art .og-tabs__half { position: absolute; inset: 0; }
.og-tabs__art .og-tabs__half { clip-path: inset(0 0 0 50%); opacity: 0; }
.og-tabs__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), var(--fx-color, rgba(255, 226, 176, 0.9)), transparent 42%);
}
.og-tabs__art img.is-loading { opacity: 0; }
/* the deep's cast over a resting picture: a light one, at the foot only */
.og-tabs__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 38, 0) 55%, rgba(10, 18, 38, 0.32));
  transition: opacity 320ms var(--ease-out);
}
/* the sweep of light that crosses a clicked picture, in the reading direction */
.og-tabs__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 226, 176, 0.42) 48%, transparent 66%);
  opacity: 0;
  pointer-events: none;
}
/* A tile clicked moves once (Dor, 25.10.2026: "like a GIF, a slight movement"), and each its own way, told by
   its picture: the camera climbs to the flag; the magnet snaps the picture in; the Play button beats twice;
   the two hands come together and the bulb lights; Cyberloit's screen glitches and the orb glows; the drawn
   bulb is looked at closely and lights up; the sprout grows out of the chip; the press flashes go off.
   Under 1.8s, by hand only (not by keyboard), and not at all for those who ask for less motion. Where a
   keyframe is left out, the motion starts or ends at the picture's own state (hovered or not). A tile without
   a motion of its own pushes in under a sweep of warm light. */
@media (prefers-reduced-motion: no-preference) {
  .og-tabs__tab.is-playing:not([data-motion]) .og-tabs__pic { animation: og-tile-push 1400ms var(--ease-out); }
  .og-tabs__tab.is-playing:not([data-motion]) .og-tabs__art::before { animation: og-tile-sweep 1000ms var(--ease-out) 80ms both; }

  .og-tabs__tab.is-playing[data-motion="climb"] .og-tabs__pic { animation: og-m-climb 1600ms var(--ease-out); }

  .og-tabs__tab.is-playing[data-motion="pull"] .og-tabs__pic { animation: og-m-pull 1300ms ease-in-out; }

  .og-tabs__tab.is-playing[data-motion="pulse"] .og-tabs__pic { animation: og-m-pulse 1300ms ease-in-out; }
  .og-tabs__tab.is-playing[data-motion="pulse"] .og-tabs__fx { animation: og-m-pulse-fx 1300ms ease-in-out; }

  .og-tabs__tab.is-playing[data-motion="connect"] .og-tabs__pic { animation: og-m-connect-l 1500ms var(--ease-out); }
  .og-tabs__tab.is-playing[data-motion="connect"] .og-tabs__half { animation: og-m-connect-r 1500ms var(--ease-out); }
  .og-tabs__tab.is-playing[data-motion="connect"] .og-tabs__fx { animation: og-m-flare 1500ms ease-out; }

  .og-tabs__tab.is-playing[data-motion="glitch"] .og-tabs__pic { animation: og-m-glitch 1500ms steps(1, end); }
  .og-tabs__tab.is-playing[data-motion="glitch"] .og-tabs__art::before { animation: og-m-scan 1500ms steps(1, end); }
  .og-tabs__tab.is-playing[data-motion="glitch"] .og-tabs__fx { animation: og-m-flare 1500ms ease-out; }

  .og-tabs__tab.is-playing[data-motion="light"] .og-tabs__pic { animation: og-m-light 1800ms ease-in-out; }
  .og-tabs__tab.is-playing[data-motion="light"] .og-tabs__fx { animation: og-m-glow 1800ms ease-in-out; }

  .og-tabs__tab.is-playing[data-motion="grow"] .og-tabs__pic { animation: og-m-grow 1600ms var(--ease-out); }
  .og-tabs__tab.is-playing[data-motion="grow"] .og-tabs__fx { animation: og-m-spark 1600ms ease-out; }

  .og-tabs__tab.is-playing[data-motion="flash"] .og-tabs__pic { animation: og-m-zoom 1400ms var(--ease-out); }
  .og-tabs__tab.is-playing[data-motion="flash"] .og-tabs__fx { animation: og-m-flash 1400ms linear; }
}
/* the colour of each motion's light */
.og-tabs__tab[data-motion="glitch"] .og-tabs__fx { --fx-color: rgba(120, 255, 150, 0.9); }
.og-tabs__tab[data-motion="grow"] .og-tabs__fx { --fx-color: rgba(120, 230, 255, 0.95); }
.og-tabs__tab[data-motion="flash"] .og-tabs__fx {
  background: radial-gradient(circle at var(--fx) var(--fy), #fff, rgba(255, 255, 255, 0.55) 70%);
}
.og-tabs__tab[data-motion="glitch"] .og-tabs__art::before {
  background: repeating-linear-gradient(0deg, rgba(120, 255, 150, 0.22) 0 2px, transparent 2px 5px);
}

@keyframes og-tile-push {
  45% { transform: scale(1.09) translate(-1.5%, -1%); }
}
@keyframes og-tile-sweep {
  from { opacity: 1; transform: translateX(110%); }
  to { opacity: 1; transform: translateX(-110%); }
}
/* climb: a quick dip to the snow at the foot of the pole, then the camera rises to the flag */
@keyframes og-m-climb {
  16% { transform: scale(1.3) translateY(-14%); animation-timing-function: cubic-bezier(0.45, 0, 0.15, 1); }
}
/* pull: snapped in, a small wobble, let go */
@keyframes og-m-pull {
  24% { transform: scale(1.13); }
  36% { transform: scale(1.06); }
  48% { transform: scale(1.1); }
  62% { transform: scale(1.08); }
}
/* pulse: two beats, the second the stronger, the light beating with them */
@keyframes og-m-pulse {
  14% { transform: scale(1.09); }
  30% { transform: scale(1.01); }
  46% { transform: scale(1.11); }
  70% { transform: scale(1.02); }
}
@keyframes og-m-pulse-fx {
  14% { opacity: 0.85; }
  30% { opacity: 0.15; }
  46% { opacity: 1; }
  100% { opacity: 0; }
}
/* connect: the picture's two halves start apart and slide together; then the light flares where they meet */
@keyframes og-m-connect-l {
  0% { clip-path: inset(0 50% 0 0); transform: translateX(-11%); }
  55% { clip-path: inset(0 50% 0 0); transform: none; }
  55.1%, 100% { clip-path: inset(0); }
}
@keyframes og-m-connect-r {
  0% { opacity: 1; transform: translateX(11%); }
  55% { opacity: 1; transform: none; }
  55.1%, 100% { opacity: 0; }
}
@keyframes og-m-flare {
  0%, 50% { opacity: 0; }
  64% { opacity: 1; }
  100% { opacity: 0; }
}
/* glitch: a few hard jumps of a broken screen, scan lines with them */
@keyframes og-m-glitch {
  0% { transform: scale(1.1) translate(-4%, 0) skewX(-6deg); }
  5% { transform: scale(1.1) translate(3%, 1%) skewX(4deg); }
  10% { transform: none; }
  20% { transform: scale(1.1) translate(2.5%, -1%) skewX(5deg); }
  24% { transform: none; }
  34% { transform: scale(1.06) translate(-1.5%, 0); }
  37%, 100% { transform: none; }
}
@keyframes og-m-scan {
  0% { opacity: 1; }
  10% { opacity: 0; }
  20% { opacity: 0.8; }
  24% { opacity: 0; }
  34% { opacity: 0.6; }
  37%, 100% { opacity: 0; }
}
/* light: a slow look into the drawn bulb while it lights up */
@keyframes og-m-light {
  55% { transform: scale(1.14); }
}
@keyframes og-m-glow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
/* grow: the whole picture is laid back over the bare one from the chip upward, so the sprout rises out of it */
@keyframes og-m-grow {
  0% { clip-path: inset(var(--fy, 50%) 0 0 0); }
  70% { clip-path: inset(16% 0 0 0); }
  100% { clip-path: inset(0); }
}
@keyframes og-m-spark {
  0% { opacity: 0; }
  12% { opacity: 1; }
  55%, 100% { opacity: 0; }
}
/* flash: a quick look into the middle under two camera flashes */
@keyframes og-m-zoom {
  30% { transform: scale(1.15); }
}
@keyframes og-m-flash {
  0% { opacity: 0; }
  6% { opacity: 0.9; }
  18% { opacity: 0; }
  30% { opacity: 0.7; }
  40%, 100% { opacity: 0; }
}
.og-tabs__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink-2);
  transition: color 160ms ease;
}
.og-tabs__name .ltr { font-family: var(--font-display); }
.og-tabs__count { font-size: var(--step-micro, 0.75rem); color: var(--ink-3); }

@media (hover: hover) and (pointer: fine) {
  .og-tabs__tab:hover .og-tabs__art img { filter: saturate(0.9) brightness(0.96); transform: scale(1.04); }
  .og-tabs__tab:hover .og-tabs__name { color: var(--paper); }
}
/* the chosen section: lit */
.og-tabs__tab[aria-selected="true"] .og-tabs__art {
  box-shadow: 0 0 0 2px var(--abyss), 0 0 0 4px var(--tungsten), 0 14px 30px -14px rgba(255, 201, 120, 0.45);
}
.og-tabs__tab[aria-selected="true"] .og-tabs__art img { filter: none; }
.og-tabs__tab[aria-selected="true"] .og-tabs__art::after { opacity: 0; }
.og-tabs__tab[aria-selected="true"] .og-tabs__name { color: var(--paper); }
.og-tabs__tab:focus-visible { outline: none; }
/* the strip's arrows: like a rail's, on the middle of the pictures, shown on every screen where the tiles run on */
.og-tabs-wrap .og-tabs__nav {
  display: flex;
  inset-inline: max(4px, calc(var(--tabs-pad) - 22px));
  top: calc(6px + 124px * 0.28125);
}
.og-tabs-wrap .og-tabs__nav.is-idle { visibility: hidden; }
.og-tabs__btn { width: 40px; height: 40px; }
.og-tabs__tab:focus-visible .og-tabs__art { box-shadow: 0 0 0 2px var(--abyss), 0 0 0 4px var(--tungsten); }
/* the dots under the strip: a window five dots wide over the row of all of them. The row is anchored by its
   start (the right edge, the page is RTL) to the window's middle and slid so the chosen dot sits there. */
.og-dots {
  --dot: 8px;
  --dot-gap: 6px;
  position: relative;
  width: calc(5 * var(--dot) + 4 * var(--dot-gap) + 10px);
  height: 16px;
  margin: 2px auto 0;
  overflow: hidden;
}
.og-dots__track {
  position: absolute;
  inset-block: 0;
  right: 50%;
  display: flex;
  align-items: center;
  gap: var(--dot-gap);
  transform: translateX(calc(var(--at, 0) * (var(--dot) + var(--dot-gap)) + var(--dot) / 2));
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.og-dots__dot {
  position: relative;
  flex: none;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.6;
  cursor: pointer;
  transition: transform 250ms var(--ease-out), background-color 250ms ease, opacity 250ms ease;
}
/* a finger-sized target around each small dot */
.og-dots__dot::before { content: ""; position: absolute; inset: -4px -3px; }
.og-dots__dot.is-on { background: var(--tungsten); opacity: 1; transform: scale(1.25); cursor: default; }
.og-dots__dot.is-far { transform: scale(0.6); }
.og-dots__dot.is-out { transform: scale(0); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .og-dots__dot:not(.is-on):hover { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .og-dots__track, .og-dots__dot { transition: none; }
}
.og-tabs-wrap + [role="tabpanel"] .og-row__head,
.og-tabs-wrap + [role="tabpanel"] { margin-top: var(--s-4); }
#originals [role="tabpanel"][hidden] { display: none; }
@media (max-width: 559px) {
  .og-tabs { gap: 10px; }
  .og-tabs__tab { flex-basis: 124px; }
  .og-tabs__name { font-size: 0.9375rem; }
}

.og-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}

/* ------------------------------------------------------------------ poster system */

/* Every poster is graded the same way: navy in the shadows, and the bulb's light arrives only
   on focus. At rest a photo sits in the deep (desaturated, navy cast); lit, its color returns. */
.og-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-poster);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: var(--navy-800);
  box-shadow: 0 22px 44px -26px rgba(2, 5, 14, 0.95), inset 0 0 0 1px var(--line);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
/* registered so the light can glide after the pointer instead of jumping to it */
@property --px { syntax: "<percentage>"; inherits: true; initial-value: 78%; }
@property --py { syntax: "<percentage>"; inherits: true; initial-value: 18%; }
.og-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.32) contrast(1.06) brightness(0.86);
  transform: scale(1.02);
  transition: filter 320ms var(--ease-out), transform 600ms var(--ease-out), opacity 200ms var(--ease-out);
}
/* the navy cast */
.og-poster--img::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, rgba(34, 56, 107, 0.62), rgba(10, 18, 38, 0.38));
  mix-blend-mode: multiply;
  transition: opacity 320ms var(--ease-out);
}
/* the bulb: follows the pointer on desktop, sits high on the poster otherwise */
.og-poster__light {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(55% 75% at var(--px, 78%) var(--py, 18%), rgba(255, 213, 150, 0.32), rgba(255, 213, 150, 0) 70%);
  mix-blend-mode: soft-light;
  opacity: 0.5;
  transition: opacity 320ms var(--ease-out), --px 420ms var(--ease-out), --py 420ms var(--ease-out);
  pointer-events: none;
}
.og-poster__scrim {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(5, 9, 20, 0.86) 0%, rgba(5, 9, 20, 0.42) 34%, rgba(5, 9, 20, 0) 62%);
}
.og-poster__title {
  position: absolute; z-index: 4;
  inset-inline: 7%;
  bottom: 9%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 7.4cqi, 2.1rem);
  line-height: 1.04;
  color: var(--paper);
  text-wrap: balance;
}

/* lit: focus, hover, or a poster that is the subject of the view */
.og-poster.is-lit img,
.og-card:focus-visible .og-poster img { filter: saturate(1) contrast(1.02) brightness(1); transform: scale(1.06); }
.og-poster.is-lit::after,
.og-card:focus-visible .og-poster::after { opacity: 0.42; }
.og-poster.is-lit .og-poster__light,
.og-card:focus-visible .og-poster__light { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .og-card:hover .og-poster img { filter: saturate(1) contrast(1.02) brightness(1); transform: scale(1.06); }
  .og-card:hover .og-poster::after { opacity: 0.42; }
  .og-card:hover .og-poster__light { opacity: 1; }
}

/* Text-only key art for the few stories with no picture at all: a flat printed field and the title
   set big enough to own it, like a title-only one-sheet. Paper or navy, decided by tone. */
.og-poster--type {
  --field: var(--navy-brand);
  --ink: var(--paper);
  background: var(--field);
}
.og-poster--type[data-tone="0"],
.og-poster--type[data-tone="3"] { --field: var(--paper); --ink: var(--navy-800); }
.og-poster--type[data-tone="2"],
.og-poster--type[data-tone="5"] { --field: var(--navy-700); }
.og-poster--type .og-poster__light { display: none; }
.og-poster__title--art {
  inset-inline: 6%;
  bottom: 7%;
  font-size: calc(var(--fs, 10) * 1.12cqi);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Not aired: an outline where the picture would be. The dashed rule reads as a plan, never as a result. */
.og-poster--type.og-poster--outline[data-tone] {
  --field: transparent;
  --ink: var(--ink-2);
  background: rgba(242, 238, 230, 0.02);
  box-shadow: none;
}
.og-poster--outline::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border: 1.5px dashed rgba(242, 238, 230, 0.26);
  border-radius: inherit;
  transition: border-color var(--t-micro) var(--ease-out);
  pointer-events: none;
}
.og-poster--outline .og-poster__title--art { font-weight: 400; }
.og-card--unaired:hover .og-poster--outline::before,
.og-card--unaired:focus-visible .og-poster--outline::before,
.og-rail__item.is-front .og-poster--outline::before { border-color: rgba(255, 201, 120, 0.6); }
.og-card--unaired:hover .og-poster--outline[data-tone],
.og-card--unaired:focus-visible .og-poster--outline[data-tone],
.og-rail__item.is-front .og-poster--outline[data-tone] { --ink: var(--paper); }
.og-rail__item .og-poster--outline { outline: none; }

/* Not aired, with a picture: the idea as a storyboard frame. The picture sits deeper than an aired
   poster's, inside the same dashed rule drawn over it, and lights up like any poster when attended to. */
.og-poster--img.og-poster--outline { box-shadow: none; }
.og-poster--img.og-poster--outline img { filter: saturate(0.2) contrast(1.04) brightness(0.7); }
.og-poster--img.og-poster--outline::before { z-index: 5; inset: 7px; border-radius: 9px; border-color: rgba(242, 238, 230, 0.34); }
.og-card--unaired:focus-visible .og-poster--img img,
.og-rail__item.is-front .og-poster--img.og-poster--outline img,
.og-poster--img.og-poster--outline.is-lit img { filter: saturate(0.9) contrast(1.02) brightness(0.95); transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) {
  .og-card--unaired:hover .og-poster--img img { filter: saturate(0.9) contrast(1.02) brightness(0.95); transform: scale(1.04); }
}

/* ------------------------------------------------------------------ the Original Series (the one splash) */

.og-series { margin-top: clamp(24px, 3.5vh, 40px); }

.og-series__core {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* a season's wide shelf scrolls inside; it never widens the banner */
}
.og-series__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-core) var(--r-core) 0 0;
  background: var(--deep);
}
.og-series__layer {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(10px);
  transition: opacity 450ms var(--ease-out), transform 700ms var(--ease-out), filter 450ms var(--ease-out);
}
.og-series__layer.is-in { opacity: 1; transform: none; filter: none; }
.og-series__layer.is-out { opacity: 0; transform: scale(0.97); filter: blur(6px); }
.og-series__layer .og-poster {
  position: absolute; inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
.og-series__layer .og-poster__title--art { font-size: calc(var(--fs, 10) * 0.8cqi); }

.og-series__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* the season's document shelf scrolls in place; the text keeps the width */
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6) var(--s-5) var(--s-8);
}
.og-series__title {
  font-size: var(--step-display-l);
  line-height: 1.02;
}
.og-series__logline {
  color: var(--ink-2);
  font-size: var(--step-body-l);
  max-width: 44ch;
}

.og-seasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: var(--s-2);
  max-width: 440px;
}
.og-seasons__tab {
  min-height: 44px;
  padding-inline: 8px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-2);
  font-weight: 500;
  transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out), transform 160ms var(--ease-out);
}
.og-seasons__tab:hover { color: var(--paper); background: rgba(242, 238, 230, 0.06); }
.og-seasons__tab:active { transform: scale(0.96); }
.og-seasons__tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--abyss);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.og-seasons__tab[aria-selected="true"]:hover,
.og-seasons__tab:focus-visible { background: var(--tungsten); color: var(--abyss); }

.og-season {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-2);
  border-radius: var(--r-core);
}
.og-season__title { font-size: var(--step-display-s); }
.og-season__logline { color: var(--ink-2); max-width: 52ch; }
.og-season__slogan {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-display-s);
  color: var(--paper);
}
.og-season__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
@media (prefers-reduced-motion: no-preference) {
  .og-season.is-arriving { animation: og-arrive 460ms var(--ease-out) both; }
}
@keyframes og-arrive {
  from { opacity: 0; transform: scale(0.97) translateY(10px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.og-watch__time { font-size: 0.8125rem; opacity: 0.72; }

/* Desktop: the season image keeps its own 16:9 on the far side of the banner, at its own size whatever the
   story beside it holds, and dissolves into the deep toward the story and below */
@media (min-width: 900px) {
  .og-series__core { min-height: clamp(460px, 62vh, 600px); background: var(--deep); }
  .og-series__stage {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 62%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border-start-end-radius: var(--r-core);
  }
  .og-series__stage::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background:
      linear-gradient(to left, rgba(10, 18, 38, 1) 0%, rgba(10, 18, 38, 0.78) 22%, rgba(10, 18, 38, 0.16) 58%, rgba(10, 18, 38, 0) 100%),
      linear-gradient(0deg, rgba(10, 18, 38, 1) 0%, rgba(10, 18, 38, 0) 34%);
  }
  .og-series__content {
    width: min(560px, 54%);
    padding: clamp(40px, 6vh, 64px) clamp(32px, 4vw, 56px);
  }
}

/* The arc: one table, no boasting */
.og-arc { margin-top: var(--s-4); }
.og-arc__core { padding: var(--s-2) var(--s-2); overflow-x: auto; }
.og-arc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-small);
}
.og-arc__table th, .og-arc__table td {
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
}
.og-arc__table thead th {
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.og-arc__table tbody th { color: var(--ink-2); width: 4.5em; }
.og-arc__table tbody td { color: var(--ink-2); }
.og-arc__table tbody tr { transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out); }
.og-arc__table tbody tr + tr > * { border-top: 1px solid rgba(242, 238, 230, 0.05); }
.og-arc__table tbody tr.is-current > * { color: var(--paper); background: rgba(242, 238, 230, 0.05); }
.og-arc__table tbody tr.is-current th .num { color: var(--tungsten); }
@media (min-width: 700px) {
  .og-arc__table { font-size: var(--step-body); }
  .og-arc__table th, .og-arc__table td { padding: 14px 20px; }
}

/* ------------------------------------------------------------------ rails */

.og-row { margin-top: clamp(24px, 3.5vh, 40px); }

.og-row__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.og-row__title { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
.og-row__note { margin-top: 6px; color: var(--ink-3); font-size: var(--step-small); }

/* Arrows wherever there is a mouse, at any width (touch screens swipe the rail instead). They sit on the
   two sides of the rail at the posters' middle; the one with nowhere to go steps out of sight. */
.og-rail-wrap {
  --rail-pad: max(var(--gutter), var(--edge), calc((100vw - var(--wrap)) / 2));
  position: relative;
}
.og-row__nav {
  display: none;
  position: absolute;
  z-index: 2;
  inset-inline: max(6px, calc(var(--rail-pad) - 58px));
  top: calc(10px + var(--card-w) * 0.28125);
  transform: translateY(-50%);
  justify-content: space-between;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine), (min-width: 820px) {
  .og-row__nav { display: flex; }
  .og-row__nav.is-idle { visibility: hidden; }
}
/* where the chapter bar stands on the right edge, the arrows move onto the posters' edges, clear of it */
@media (min-width: 1200px) {
  .og-row__nav { inset-inline: calc(var(--rail-pad) + 10px); }
}
.og-row__btn {
  pointer-events: auto;
  background: rgba(5, 9, 20, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 24px -12px rgba(2, 5, 14, 0.9);
  transition: opacity var(--t-micro) var(--ease-out), transform 160ms var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.og-row__btn:disabled { opacity: 0; pointer-events: none; }

.og-rail-wrap { --card-w: min(74vw, 320px); }
.og-rail {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 10px var(--rail-pad) 22px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
}
.og-rail::-webkit-scrollbar { display: none; }
/* a soft fade on the side where more posters wait, so a rail never looks finished early */
.og-rail {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--fade-start, 0px), #000 calc(100% - var(--fade-end, 0px)), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 var(--fade-start, 0px), #000 calc(100% - var(--fade-end, 0px)), transparent 100%);
}
.og-rail__item {
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
  transform-origin: 50% 60%;
  transition: transform 300ms var(--ease-out), filter 300ms var(--ease-out), opacity 300ms var(--ease-out);
}

/* Posters at depth: the one in focus comes forward and catches the bulb's light on its rim;
   the rest of the rail sits a step further back. Touch: the leading poster. Desktop: the hovered one. */
.og-rail.has-front .og-rail__item:not(.is-front) { transform: scale(0.93); filter: brightness(0.6) saturate(0.8); }
.og-rail__item.is-front .og-poster { outline: 1px solid rgba(255, 201, 120, 0.55); outline-offset: -1px; }
.og-rail__item.is-front .og-poster img { filter: saturate(1) contrast(1.02) brightness(1); transform: scale(1.05); }
.og-rail__item.is-front .og-poster::after { opacity: 0.42; }
@media (hover: hover) and (pointer: fine) {
  .og-rail:hover .og-rail__item { transform: scale(0.95); filter: brightness(0.62) saturate(0.85); }
  .og-rail:hover .og-rail__item:hover,
  .og-rail:focus-within .og-rail__item:focus-within { transform: none; filter: none; }
  .og-rail__item:hover .og-poster,
  .og-rail__item:focus-within .og-poster { outline: 1px solid rgba(255, 201, 120, 0.55); outline-offset: -1px; }
}
.og-row--l .og-rail-wrap { --card-w: min(86vw, 440px); }
@media (min-width: 820px) {
  .og-rail-wrap { --card-w: 300px; }
  .og-rail { gap: 18px; }
  .og-row--l .og-rail-wrap { --card-w: 420px; }
}
@media (min-width: 1280px) {
  .og-rail-wrap { --card-w: 282px; }
  .og-row--l .og-rail-wrap { --card-w: 400px; }
}

.og-card {
  display: block;
  width: 100%;
  text-align: start;
  color: var(--paper);
  border-radius: var(--r-poster);
}
.og-card:focus-visible { outline: none; }
.og-card:focus-visible .og-poster { box-shadow: 0 0 0 2px var(--abyss), 0 0 0 4px var(--tungsten); }
@media (hover: hover) and (pointer: fine) {
  .og-card:hover .og-poster { transform: translateY(-4px) scale(1.015); box-shadow: 0 30px 50px -26px rgba(2, 5, 14, 1), inset 0 0 0 1px var(--line-strong); }
}
.og-card:active .og-poster { transform: scale(0.98); transition-duration: 160ms; }

.og-card__meta {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 12px;
  padding-inline: 2px;
  font-size: var(--step-small);
  color: var(--ink-2);
  min-width: 0;
}
.og-card__year { color: var(--ink-3); }
.og-card__genre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* what the project was, in a line (two at most) */
.og-card__line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  line-height: 1.45;
  color: var(--ink-2);
}
.og-card__meta--proof { align-items: baseline; }
.og-card__num { flex: none; font-size: 1.05rem; color: var(--paper); }
.og-card__num .num { letter-spacing: 0; }
.og-card__label {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.og-card__prefix { flex: none; color: var(--ink-2); }
.og-card__prefix + .og-card__num { margin-inline-start: -4px; }
/* the plain label a plan carries */
.og-card__stamp {
  flex: none;
  display: inline-flex; align-items: center;
  min-height: 22px; padding-inline: 10px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--step-micro); font-weight: 500;
  color: var(--ink-2);
}

/* The line that rides on row 05, set big as the notes ask */
.og-quote { margin: 0 auto var(--s-6); }
.og-quote blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-display-m);
  line-height: 1.12;
  max-width: 22ch;
  text-wrap: balance;
}
.og-quote__setup { color: var(--ink-2); font-weight: 400; }
.og-quote__punch { color: var(--paper); }
.og-quote figcaption { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--step-small); }

/* ------------------------------------------------------------------ the story sheet */

.og-detail { padding-top: 2px; }

.og-media { margin-inline: calc(-1 * var(--gutter)); }
.og-media__frame {
  position: relative;
  overflow: hidden;
  background: var(--abyss);
}
.og-media--16x9 .og-media__frame { aspect-ratio: 16 / 9; }
.og-media--1x1 .og-media__frame { aspect-ratio: 1; width: min(100%, 420px); margin-inline: auto; border-radius: var(--r-core); }
/* vertical films stand in a phone-shaped frame */
.og-media--9x16 { margin-inline: 0; }
.og-media--9x16 .og-media__frame {
  aspect-ratio: 9 / 16;
  height: min(62dvh, 560px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(2, 5, 14, 1);
}
.og-media .og-poster {
  position: absolute; inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
.og-media__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--abyss); }
.og-media__play {
  position: absolute; z-index: 5;
  left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(10, 18, 38, 0.55);
  box-shadow: inset 0 0 0 1px rgba(242, 238, 230, 0.4), 0 16px 34px -14px rgba(2, 5, 14, 0.9);
  color: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 160ms var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.og-media__play svg { width: 28px; height: 28px; margin-inline-start: -3px; fill: currentColor; }
.og-media__play:hover { background: var(--tungsten); color: var(--abyss); }
.og-media__play:active { transform: translate(-50%, -50%) scale(0.94); }
.og-media__error {
  position: absolute; inset: auto 16px 16px;
  padding: 12px 16px;
  border-radius: var(--r-poster);
  background: var(--surface-solid);
  color: var(--paper);
  font-size: var(--step-small);
}

.og-detail__head { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.og-detail__title { font-size: var(--step-display-m); }
.og-detail__story { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.og-detail__story p { font-size: var(--step-body-l); line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.og-detail__block h3 {
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: 6px;
}

.og-result {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: grid; gap: 4px;
}
.og-result__value { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); line-height: 1; }
.og-result__value .num { color: var(--paper); letter-spacing: -0.01em; }
.og-result__prefix { font-family: var(--font-ui); font-weight: 400; font-size: 0.5em; color: var(--ink-2); }
.og-result__label { font-size: var(--step-body-l); color: var(--paper); max-width: 40ch; }
.og-result__more {
  margin: var(--s-3) 0 var(--s-1); padding: 0; list-style: none;
  display: grid; gap: 6px;
  color: var(--ink-2);
}
.og-result__more li { position: relative; padding-inline-start: 18px; }
.og-result__more li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.72em;
  width: 6px; height: 1px; background: var(--ink-3);
}
.og-result__source { font-size: var(--step-small); color: var(--ink-3); }

/* a target stands apart from the result, in its own words */
.og-goal {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-core);
  box-shadow: inset 0 0 0 1px var(--line);
}
.og-goal h3 { font-size: 1rem; color: var(--paper); margin-bottom: 4px; }
.og-goal p { color: var(--ink-2); max-width: 60ch; }

/* lists inside a story: what was led, and the ideas of one brief */
.og-detail__list { margin: var(--s-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.og-detail__list li {
  position: relative;
  padding-inline-start: 20px;
  font-size: var(--step-body-l); line-height: 1.6; color: var(--ink-2); max-width: 60ch;
}
.og-detail__list li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.8em;
  width: 7px; height: 1px; background: var(--ink-3);
}
.og-detail__list strong { color: var(--paper); font-weight: 500; }
.og-detail__block > p + .og-detail__list,
.og-detail__block > p + .og-shelf { margin-top: var(--s-3); }

/* tones of copy as small cards that wrap within the sheet: one column on phones, three in the dialog.
   Nothing slides sideways, so the sheet keeps the width of every other story */
.og-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.og-shelf__item {
  min-width: 0;
  padding: var(--s-4);
  border-radius: var(--r-core);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface-solid));
  box-shadow: inset 0 1px 0 rgba(242, 238, 230, 0.08), inset 0 0 0 1px rgba(242, 238, 230, 0.06);
}
.og-shelf__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--paper); }
.og-shelf__lines { margin: var(--s-2) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.og-shelf__lines li { font-size: var(--step-small); line-height: 1.5; color: var(--ink-2); }

.og-detail__quote { margin: 0; }
.og-detail__quote figcaption { color: var(--ink-2); font-size: var(--step-body-l); line-height: 1.6; max-width: 60ch; }
.og-detail__quote blockquote { margin: var(--s-3) 0 0; }
.og-detail__quote blockquote p {
  font-family: var(--font-ui); font-weight: 400;
  font-size: var(--step-display-s); line-height: 1.35;
  color: var(--paper); max-width: 30ch;
}
.og-detail__story .og-detail__aside { font-size: var(--step-body); color: var(--ink-3); }
.og-detail--unaired .og-media__frame { background: transparent; }

.og-season__result { color: var(--ink-2); max-width: 52ch; }
.og-season__result strong { color: var(--paper); font-weight: 500; }
.og-season__note { color: var(--ink-3); font-size: var(--step-small); max-width: 52ch; }

.og-detail__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.og-detail__note { margin-top: var(--s-3); font-size: var(--step-small); color: var(--ink-3); }

/* ------------------------------------------------------------------ preferences */

@media (prefers-reduced-motion: reduce) {
  .og-series__layer, .og-series__layer.is-out { filter: none; transform: none; }
  .og-card:hover .og-poster { transform: none; }
}

/* ------------------------------------------------------------------ the gate (js/intro.js) */

/* Sealed until the intro film has played: the space is kept, so nothing below jumps when it opens */
.originals.is-sealed > * { visibility: hidden; }
/* then the browse screen opens in its place, block after block */
.originals.is-opening > * { animation: og-open 1000ms var(--ease-out) both; animation-delay: calc(var(--oi, 0) * 110ms); }
@keyframes og-open {
  from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------------ the originals: documents to read */

.og-docs {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.og-docs__head { font-size: 1.15rem; color: var(--paper); }
.og-docs__note { margin-top: 2px; font-size: var(--step-small); color: var(--ink-3); }
.og-docs__list {
  display: flex;
  gap: 12px;
  margin: var(--s-4) calc(-1 * var(--gutter)) 0;
  padding: 4px var(--gutter) 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.og-docs__list::-webkit-scrollbar { display: none; }
.og-docs__list > li { flex: none; scroll-snap-align: start; }
.og-docs__item {
  display: grid;
  gap: 6px;
  width: 150px;
  text-align: start;
  color: var(--paper);
  border-radius: var(--r-poster);
}
.og-docs__thumb {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: var(--r-poster);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-micro) var(--ease-out), transform 200ms var(--ease-out);
}
/* pictures that arrive late (lazy posters, thumbnails, reader pages) fade in instead of popping */
.og-poster img.is-loading,
.og-docs__thumb img.is-loading,
.reader__page.is-loading { opacity: 0; }
.og-docs__thumb img {
  transition: opacity 200ms var(--ease-out);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  aspect-ratio: var(--r, 0.7071);
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}
.og-docs__title {
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.og-docs__meta { font-size: var(--step-micro); color: var(--ink-3); }
.og-docs__item:focus-visible .og-docs__thumb { box-shadow: inset 0 0 0 1.5px rgba(255, 201, 120, 0.6); transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) {
  .og-docs__item:hover .og-docs__thumb { box-shadow: inset 0 0 0 1.5px rgba(255, 201, 120, 0.6); transform: translateY(-2px); }
}
.og-docs__item:active .og-docs__thumb { transform: scale(0.97); transition-duration: 160ms; }
.og-docs__item:focus-visible { outline-offset: 4px; }

/* inside a season's panel the shelf is quieter */
.og-season .og-docs { margin-top: var(--s-5); padding-top: var(--s-4); }
.og-season .og-docs__list { margin-inline: 0; padding-inline: 0; }

/* The reader: the pages one under the other, on the deep, over everything */
.reader {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--abyss);
  color: var(--paper);
  z-index: var(--z-sheet);
}
.reader[open] { display: flex; flex-direction: column; }
.reader::backdrop { background: var(--abyss); }
.reader__bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 20, 0.92);
}
.reader__head { flex: 1; min-width: 0; }
.reader__title {
  font-size: var(--step-body-l);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader__count { font-size: var(--step-micro); color: var(--ink-3); }
.reader__pages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 16px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  -webkit-touch-callout: none;
  user-select: none;
}
.reader__page {
  transition: opacity 200ms var(--ease-out);
  width: min(100%, 860px);
  height: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 40px -20px rgba(2, 5, 14, 1);
  -webkit-user-drag: none;
  pointer-events: none;
}
.reader__pages.is-slides .reader__page { width: min(100%, 1100px); }
html.reader-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .reader[open] { animation: scrim-in 320ms var(--ease-out); }
  .reader.is-closing { animation: scrim-out 200ms var(--ease-out) forwards; }
}
