/* Worlds post. A dark, full-bleed showcase. Self-contained: this page does not load
   release.css. The --wd-* tokens are also read by the Abyssal section (worlds-ocean.css). */
:root {
  --wd-bg: #050607;
  --wd-raise: #0c0e11;
  --wd-ink: #f2f1ec;
  --wd-muted: rgba(242, 241, 236, 0.64);
  --wd-dim: rgba(242, 241, 236, 0.56);
  --wd-line: rgba(242, 241, 236, 0.12);
  --wd-label: rgba(242, 241, 236, 0.66); /* small mono labels: eyebrows, ratio tags, footnotes */
  --wd-label-size: 0.75rem;               /* 12px */
  --wd-accent: #9cc3ff;
  --wd-sans: "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --wd-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wd-gutter: clamp(1.25rem, 4.6vw, 5rem);
  --wd-wide: min(100% - 2 * var(--wd-gutter), 100rem);
  --wd-text: min(100% - 2 * var(--wd-gutter), 44rem);
  --wd-gap: clamp(0.75rem, 1.4vw, 1.25rem);
  --wd-radius: clamp(10px, 1vw, 16px);
  --wd-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 3.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--wd-bg); color-scheme: dark; scroll-behavior: smooth; }
body.wd {
  background: var(--wd-bg);
  color: var(--wd-ink);
  font-family: var(--wd-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.wd a { color: inherit; }
.wd button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wd :focus-visible { outline: 2px solid var(--wd-accent); outline-offset: 3px; border-radius: 4px; }
.wd ::selection { background: rgba(156, 195, 255, 0.35); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--wd-ink); color: var(--wd-bg);
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wd .kicker {
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wd-label);
}

/* Rows that scroll sideways fade at whichever edge has more to show (worlds.js sets data-more). */
.wd-scroller {
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.wd-scroller[data-more~="right"] { --fr: 3.5rem; }
.wd-scroller[data-more~="left"] { --fl: 2rem; }
.wd-scroller:has(details[open]) { -webkit-mask-image: none; mask-image: none; }

/* ---------- Site nav, dark on this page only ---------- */
.wd .nav {
  background: linear-gradient(rgba(5, 6, 7, 0.6), rgba(5, 6, 7, 0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.35s ease;
}
.wd .nav.is-solid {
  background: rgba(5, 6, 7, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.wd .mark { color: var(--wd-ink); }
.wd .mark img { filter: invert(1); }
.wd .nav-links a,
.wd .nav-links summary,
.wd .nav-aux a { color: rgba(242, 241, 236, 0.66); }
.wd .nav-links a:hover,
.wd .nav-links summary:hover,
.wd .nav-aux a:hover,
.wd .nav-aux a[aria-current="page"] { color: var(--wd-ink); }
.wd .nav-drop { background: #0d0f12; border-color: var(--wd-line); }
/* Phones: the shared mobile layer paints a scrolled nav white; keep it dark on this page */
html.mb body.wd .nav.is-scrolled {
  background: rgba(5, 6, 7, 0.84);
  border-bottom-color: var(--wd-line);
}
/* Narrow screens: the platform links run in one row that scrolls sideways (every label kept);
   their menus drop below the nav instead of being clipped by the row. */
@media (max-width: 860px) {
  html body.wd .nav .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  /* Its edge fade is the .wd-scroller mask (worlds.js), lifted while a menu is open so it is never clipped */
  html body.wd .nav .nav-links > :last-child { margin-right: 1.5rem; }
  html body.wd .nav .nav-links::-webkit-scrollbar { display: none; }
  html body.wd .nav .nav-links > * { flex: none; }
  html body.wd .nav .nav-drop { position: fixed; top: calc(var(--nav-h) - 0.2rem); left: 1.1rem; }
}

/* ---------- Buttons ---------- */
.wd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.2rem; }
.wd-btn {
  display: inline-block;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  background: var(--wd-ink);
  color: var(--wd-bg) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}
.wd-btn:hover { background: var(--wd-accent); }
.wd-link {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
  transition: color 0.2s ease;
}
.wd-link:hover { color: var(--wd-accent); }

/* The loop twin (worlds.js): the same clip stacked over the original, crossfaded at the loop point.
   Painted in DOM order, so a frame's gradient (::after) stays above both. */
.wd .wd-twin {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Media frames: the poster shows at once, the video fades over it once it plays ---------- */
.wd .media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wd-raise);
}
.wd .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Hero ---------- */
.wd-hero {
  position: relative;
  min-height: max(36rem, 100svh);
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
}
.wd-hero-media { position: absolute; inset: 0; z-index: -1; background: var(--wd-raise); }
.wd-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.55) 30%, rgba(5, 6, 7, 0) 58%),
    linear-gradient(to right, rgba(5, 6, 7, 0.66) 0%, rgba(5, 6, 7, 0.3) 34%, rgba(5, 6, 7, 0) 62%),
    radial-gradient(ellipse 60% 55% at 22% 62%, rgba(5, 6, 7, 0.32), rgba(5, 6, 7, 0) 70%),
    linear-gradient(to bottom, rgba(5, 6, 7, 0.45) 0%, rgba(5, 6, 7, 0) 18%);
}
.wd-hero-copy {
  padding: 0 var(--wd-gutter) clamp(7.5rem, 15vh, 10rem);
  max-width: 64rem;
}
.wd-hero-copy .kicker { display: flex; gap: 1.1rem; color: rgba(242, 241, 236, 0.78); }
.wd-hero h1 {
  margin-top: 1.1rem;
  font-weight: 500;
  font-size: clamp(2.7rem, 6.6vw, 6.6rem);
  letter-spacing: -0.048em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(5, 6, 7, 0.38), 0 1px 3px rgba(5, 6, 7, 0.22);
}
.wd-hero-sub, .wd-hero-copy .kicker { text-shadow: 0 1px 14px rgba(5, 6, 7, 0.45); }
.wd-hero-sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(242, 241, 236, 0.78);
  text-wrap: pretty;
}

/* The switcher: each world in the film, with its share of the film filling as it plays */
.wd-switch {
  position: absolute;
  left: var(--wd-gutter);
  right: calc(var(--wd-gutter) + 3.5rem);
  bottom: clamp(1.4rem, 3.5vh, 2.4rem);
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.wd-switch button[data-world] {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  flex: 0 1 9rem;
  padding: 0.4rem 0;
  text-align: left;
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wd-label);
  text-shadow: 0 1px 10px rgba(5, 6, 7, 0.6);
  transition: color 0.3s ease;
}
.wd-switch button[data-world]:hover,
.wd-switch button[aria-current="true"] { color: var(--wd-ink); }
.wd-switch-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-switch button[aria-current="true"] .wd-switch-name { font-weight: 600; }
.wd-switch i { display: block; height: 2px; background: rgba(242, 241, 236, 0.18); border-radius: 2px; overflow: hidden; }
.wd-switch i b {
  display: block; height: 100%;
  background: var(--wd-ink);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.wd-hero-pause {
  position: absolute;
  right: var(--wd-gutter);
  bottom: calc(clamp(1.4rem, 3.5vh, 2.4rem) + 0.2rem);
  z-index: 1;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 236, 0.3) !important;
  display: grid; place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wd-hero-pause:hover { border-color: var(--wd-ink) !important; background: rgba(242, 241, 236, 0.08); }
.wd-hero-pause span { width: 8px; height: 10px; border-left: 2px solid var(--wd-ink); border-right: 2px solid var(--wd-ink); }
.wd-hero-pause[aria-pressed="true"] span {
  width: 0; height: 0; border: 0;
  border-left: 9px solid var(--wd-ink);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  margin-left: 3px;
}

/* ---------- Intro: one statement beside one short column, then the first world ---------- */
.wd-intro {
  width: var(--wd-wide);
  margin: clamp(4.5rem, 8vw, 7.5rem) auto 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.wd-statement {
  grid-row: span 2;
  max-width: 13em;
  font-weight: 500;
  font-size: clamp(2.3rem, 5.6vw, 5.4rem);
  letter-spacing: -0.047em;
  line-height: 1;
  text-wrap: balance;
}
.wd-intro-cols {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}
.wd-intro-cols p {
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
  line-height: 1.62;
  letter-spacing: -0.008em;
  color: var(--wd-muted);
  text-wrap: pretty;
}
.wd-intro-cols p:first-child { color: var(--wd-ink); }
.wd-intro-note {
  margin: 1.8rem 0 0;
  max-width: 34rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--wd-line);
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--wd-label);
}

/* ---------- World index (sticky under the nav) ---------- */
.wd-index {
  position: sticky;
  top: calc(var(--nav-h) - 1px);
  z-index: 30;
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  background: rgba(5, 6, 7, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--wd-line);
  border-bottom: 1px solid var(--wd-line);
}
.wd-index-in {
  width: var(--wd-wide);
  margin: 0 auto;
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.wd-index-in::-webkit-scrollbar { display: none; }
.wd-index-in > a:last-child { margin-right: 1.5rem; } /* room to scroll the last world clear of the fade */
.wd-index a {
  position: relative;
  flex: none;
  padding: 1rem 0 0.95rem;
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wd-label);
  transition: color 0.25s ease;
}
.wd-index a:hover { color: var(--wd-ink); }
.wd-index a[aria-current="true"] { color: var(--wd-ink); }
.wd-index a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--wd-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--wd-ease);
}
.wd-index a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- World chapters ---------- */
.wd-world {
  margin-top: clamp(3rem, 6vw, 6rem);
  scroll-margin-top: calc(var(--nav-h) + 3rem);
}
.wd-world:first-child { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
/* Abyssal opens the atlas: land its heading below the nav and the sticky index, like a chapter */
.wd-atlas > .oc { scroll-margin-top: calc(var(--nav-h) + 3rem); }
.wd-lead { position: relative; width: var(--wd-wide); margin: 0 auto; }
.wd-lead-media {
  width: 100%;
  height: min(84svh, calc(var(--wd-wide-px, 100vw) * 0.5625));
  aspect-ratio: auto;
  min-height: 22rem;
  border-radius: var(--wd-radius);
  cursor: zoom-in;
}
@supports (height: 1cqw) {
  .wd-lead { container-type: inline-size; }
  .wd-lead-media { height: min(84svh, 56.25cqw); }
}
/* 2.39:1 footage keeps its frame instead of being cropped to 16:9 */
@supports (height: 1cqw) {
  .wd-lead--scope .wd-lead-media { height: min(84svh, 41.84cqw); }
}
.wd-lead-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 7, 0.74) 0%, rgba(5, 6, 7, 0.2) 30%, rgba(5, 6, 7, 0) 50%);
  pointer-events: none;
}
.wd-lead-copy {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 44rem;
  padding: clamp(1.4rem, 3.2vw, 3rem);
  pointer-events: none;
}
.wd-lead-copy .kicker { display: flex; gap: 0.9rem; font-size: 0.78rem; color: rgba(242, 241, 236, 0.9); text-shadow: 0 1px 10px rgba(5, 6, 7, 0.5); }
.wd-lead-copy .kicker span { color: var(--wd-accent); }
.wd-lead-copy h2 {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 5.2rem);
  letter-spacing: -0.047em;
  line-height: 0.98;
}
.wd-lead-copy p:not(.kicker) {
  margin-top: 0.9rem;
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.55;
  color: rgba(242, 241, 236, 0.82);
  text-wrap: pretty;
}

/* A chapter's set: rows of 7/5, three, 5/7, or one wide shot */
.wd-set {
  width: var(--wd-wide);
  margin: var(--wd-gap) auto 0;
  display: grid;
  gap: calc(var(--wd-gap) * 2) var(--wd-gap);
  container-type: inline-size;
}
/* Justified rows: every clip keeps its true frame. Widths follow aspect, so a row shares one height. */
.wd-row { display: flex; gap: var(--wd-gap); align-items: flex-start; }
.wd-shot { flex: var(--ar, 1.7778) 1 0; min-width: 0; }
.wd-open {
  width: 100%;
  aspect-ratio: var(--ar, 1.7778);
  border-radius: var(--wd-radius);
  cursor: zoom-in;
}
.wd-open video { transition: transform 1.2s var(--wd-ease), filter 0.4s ease; }
.wd-open:hover video { transform: scale(1.025); }
.wd-shot figcaption { margin-top: 0.85rem; max-width: 34rem; }
.wd-shot figcaption b { display: flex; align-items: baseline; gap: 0.7rem; font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; }
.wd-shot figcaption small {
  font-family: var(--wd-mono); font-size: var(--wd-label-size); font-weight: 400; letter-spacing: 0.06em;
  color: var(--wd-label);
  padding: 0.05rem 0.4rem; border: 1px solid var(--wd-line); border-radius: 4px;
}
.wd-shot figcaption span { display: block; margin-top: 0.2rem; font-size: 0.88rem; line-height: 1.5; color: var(--wd-muted); text-wrap: pretty; }

/* ---------- Capabilities ---------- */
.wd-head { max-width: 42rem; }
.wd-head h2 {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.wd-head p:not(.kicker) { margin-top: 1rem; color: var(--wd-muted); font-size: 1.05rem; line-height: 1.6; text-wrap: pretty; }

.wd-caps { width: var(--wd-wide); margin: clamp(7rem, 13vw, 12rem) auto 0; }
.wd-caps-body {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) 1.6fr;
  gap: clamp(1.6rem, 3.6vw, 4rem);
  align-items: start;
}
.wd-caps-list { border-top: 1px solid var(--wd-line); }
.wd-caps-list [role="tab"] {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  grid-template-rows: auto 0fr;
  width: 100%;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--wd-line) !important;
  text-align: left;
  color: var(--wd-dim);
  transition: color 0.3s ease, grid-template-rows 0.45s var(--wd-ease);
}
.wd-caps-list [role="tab"]:hover { color: var(--wd-muted); }
.wd-caps-list [aria-selected="true"] { color: var(--wd-ink); grid-template-rows: auto 1fr; }
/* The selected tab's clip: progress fills as it plays, then the next tab takes over */
.wd-cap-bar { grid-column: 2; display: block; height: 2px; margin-top: 0; background: var(--wd-line); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 0.3s ease; }
.wd-cap-bar b { display: block; height: 100%; background: var(--wd-accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.wd-caps-list [aria-selected="true"] .wd-cap-bar { opacity: 1; margin-top: 0.9rem; }
.wd-cap-n { font-family: var(--wd-mono); font-size: var(--wd-label-size); letter-spacing: 0.14em; padding-top: 0.32rem; }
.wd-caps-list [aria-selected="true"] .wd-cap-n { color: var(--wd-accent); }
.wd-caps-list b { font-weight: 500; font-size: 1.12rem; letter-spacing: -0.015em; }
.wd-cap-text {
  grid-column: 2;
  overflow: hidden;
  min-height: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--wd-muted);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.wd-caps-list [aria-selected="true"] .wd-cap-text { opacity: 1; padding-top: 0.5rem; }
.wd-caps-view {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--wd-radius);
  overflow: hidden;
  background: var(--wd-raise);
}
.wd-cap-view {
  position: absolute !important; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.wd-cap-view.is-on { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }
.wd-cap-src {
  position: absolute; left: 1.1rem; bottom: 1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: rgba(5, 6, 7, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, 0.82);
}
.wd-cap-src b { font-weight: 500; color: var(--wd-ink); margin-right: 0.5rem; }

/* ---------- Ledger ---------- */
.wd-ledger { width: var(--wd-wide); margin: clamp(7rem, 13vw, 12rem) auto 0; }
.wd-ledger table {
  width: 100%;
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.wd-ledger caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 1.1rem;
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--wd-label);
}
.wd-ledger th, .wd-ledger td { padding: 1.05rem 0; border-bottom: 1px solid var(--wd-line); text-align: left; font-weight: 400; }
.wd-ledger thead th {
  font-family: var(--wd-mono);
  font-size: var(--wd-label-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wd-label);
  padding-bottom: 0.8rem;
}
.wd-ledger tbody th { width: 26%; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; font-weight: 500; }
.wd-ledger td:nth-child(2) { width: 58%; }
.wd-ledger td:last-child, .wd-ledger th:last-child { text-align: right; width: 16%; }
.wd-ledger tbody td { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.wd-ledger tbody td:nth-child(2) { white-space: nowrap; }
.wd-bar {
  display: inline-block;
  vertical-align: middle;
  width: calc(var(--v) * 68%);
  margin-right: 1.2rem;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(156, 195, 255, 0.35), var(--wd-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--wd-ease);
}
.wd-ledger tbody tr:nth-child(2) .wd-bar { transition-delay: 0.08s; }
.wd-ledger tbody tr:nth-child(3) .wd-bar { transition-delay: 0.16s; }
.wd-ledger tbody tr:nth-child(4) .wd-bar { transition-delay: 0.24s; }
.wd-ledger tbody tr:nth-child(5) .wd-bar { transition-delay: 0.32s; }
.wd-ledger.is-in .wd-bar { transform: scaleX(1); }
.wd-ledger tfoot th, .wd-ledger tfoot td { border-bottom: 0; color: var(--wd-muted); font-family: var(--wd-mono); font-size: var(--wd-label-size); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Limitations ---------- */
.wd-limits { width: var(--wd-wide); margin: clamp(7rem, 12vw, 11rem) auto 0; }
.wd-limits dl {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}
.wd-limits dl div { padding-top: 1.1rem; border-top: 1px solid var(--wd-line); }
.wd-limits dt { font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.wd-limits dd { margin-top: 0.55rem; font-size: 0.98rem; line-height: 1.6; color: rgba(242, 241, 236, 0.74); text-wrap: pretty; }
.wd-apps .wd-head { max-width: 46rem; }
.wd-apps dl { grid-template-columns: repeat(5, 1fr); }

/* ---------- Close ---------- */
.wd-close {
  width: var(--wd-wide);
  margin: clamp(8rem, 15vw, 14rem) auto 0;
  padding: 0 0 clamp(6rem, 10vw, 9rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.wd-close h2 {
  margin-top: 1rem;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 6.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}
.wd-close p:not(.kicker) { margin-top: 1.4rem; color: var(--wd-muted); font-size: 1.08rem; }
.wd-close .wd-actions { justify-content: center; }

/* ---------- Viewer ---------- */
.wd-viewer {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(3, 4, 5, 0.97);
  color: var(--wd-ink);
}
.wd-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: wd-fade 0.3s ease; }
.wd-viewer::backdrop { background: transparent; }
@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }
/* The clip and its bar are one block, sized from the clip's own frame to the largest that fits */
.wd-viewer-stage { position: relative; width: min(100% - 2 * clamp(0.5rem, 2vw, 2rem), calc((100dvh - 8.5rem) * var(--ar, 1.7778))); }
.wd-viewer-stage video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1.7778); object-fit: contain; border-radius: 8px; background: #000; cursor: pointer; outline: none; }
.wd-viewer-bar {
  display: flex; align-items: center; gap: 1rem;
  width: min(100% - 2 * clamp(0.5rem, 2vw, 2rem), calc((100dvh - 8.5rem) * var(--ar, 1.7778)));
  padding: 1.1rem 0 calc(0.6rem + env(safe-area-inset-bottom));
}
.wd-viewer-cap { flex: 1; min-width: 0; }
.wd-viewer-cap b { font-weight: 500; font-size: 1.08rem; margin-right: 0.8rem; }
.wd-viewer-cap span { color: rgba(242, 241, 236, 0.74); font-size: 0.98rem; }
.wd-viewer-count, .wd-viewer-close {
  font-family: var(--wd-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wd-muted);
}
.wd-viewer-prev, .wd-viewer-next, .wd-viewer-close {
  min-width: 3rem; height: 3rem;
  padding: 0 1.1rem;
  font-size: 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--wd-line) !important;
}
.wd-viewer-prev:hover, .wd-viewer-next:hover, .wd-viewer-close:hover { border-color: var(--wd-ink) !important; color: var(--wd-ink); }
.wd-viewer button:disabled { opacity: 0.3; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wd-limits dl { grid-template-columns: repeat(2, 1fr); }
  .wd-apps dl div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .wd-caps-body { grid-template-columns: 1fr; }
  .wd-caps-view { order: -1; }
}
@media (max-width: 760px) {
  .wd-hero-copy { padding-bottom: 8.6rem; }
  .wd-switch { gap: 1.1rem; overflow-x: auto; scrollbar-width: none; }
  .wd-switch[data-more~="right"] { --fr: 2.5rem; } /* the next world shows, fading, at the edge */
  .wd-switch button[data-world]:last-child { margin-right: 1.5rem; }
  .wd-index-in { padding: 0 0 0 0.2rem; }
  .wd-viewer-prev, .wd-viewer-next, .wd-viewer-close { min-width: 2.9rem; height: 2.9rem; }
  .wd-intro { grid-template-columns: 1fr; }
  .wd-statement { grid-row: auto; margin-bottom: 1.6rem; }
  .wd-viewer-cap span { display: block; margin-top: 0.2rem; font-size: 0.9rem; }
  .wd-viewer-bar { flex-wrap: wrap; row-gap: 0.8rem; }
  .wd-viewer-cap { flex-basis: 100%; }
  .wd-viewer-prev { margin-left: auto; }
  .wd-switch::-webkit-scrollbar { display: none; }
  .wd-switch button[data-world] { flex: none; }
  .wd-switch-name { overflow: visible; text-overflow: clip; } /* whole names; the row scrolls instead */
  .wd-hero-pause { background: rgba(5, 6, 7, 0.6); }
  .wd-lead--scope .wd-lead-media { height: min(78svh, 120vw); }
  @supports (height: 1cqw) { .wd-lead--scope .wd-lead-media { height: min(78svh, 120cqw); } }
  .wd-intro-cols { grid-template-columns: 1fr; }
  .wd-lead { width: 100%; }
  .wd-lead-media { height: min(78svh, 120vw); border-radius: 0; }
  @supports (height: 1cqw) { .wd-lead-media { height: min(78svh, 120cqw); } }
  .wd-row { flex-direction: column; }
  .wd-shot { flex: none; width: 100%; }
  .wd-set { gap: 1.8rem; }
  .wd-row { gap: 1.8rem; }
  .wd-bar { margin-right: 0.7rem; width: calc(var(--v) * 44%); }
  .wd-ledger tbody th { width: 34%; }
  .wd-limits dl { grid-template-columns: 1fr; }
  .wd-viewer-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wd *, .wd *::before, .wd *::after { transition: none !important; animation: none !important; }
  .wd-bar { transform: scaleX(1); }
}
