/* ==========================================================================
   6G MATRIX versus ONE — UX v4: Open Walk
   Visual journey between two worlds — Matrix briefing vs One field note
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans Variable";
  src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. V3 Global Variables & Themes
   -------------------------------------------------------------------------- */

html[data-ui="v4"] {
  scrollbar-gutter: stable;
  --v4-font-sans: "IBM Plex Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --v4-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, monospace;
  --v4-font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Libre Baskerville", "Times New Roman", Georgia, serif;

  --v4-header-h: 64px;
  --v4-content-max: 1360px;
  --v4-reading-max: 68ch;
  --walk-gutter: clamp(20px, 4.5vw, 72px);

  /* Shared functional tokens */
  --v4-radius-sm: 6px;
  --v4-radius-md: 12px;
  --v4-radius-lg: 20px;
  --v4-radius-pill: 9999px;
  --v4-transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --v4-transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Matrix Reality (Default) */
  --v4-bg: #070a0e;
  --v4-canvas: #0b0f15;
  --v4-surface: #10161f;
  --v4-surface-raised: #151d29;
  --v4-surface-hover: #1c2635;
  --v4-border: rgba(0, 229, 255, 0.16);
  --v4-border-subtle: rgba(255, 255, 255, 0.08);
  --v4-border-bright: rgba(0, 229, 255, 0.5);

  --v4-ink: #f0f4f8;
  --v4-ink-muted: #8c9ba8;
  --v4-ink-faint: #536473;

  --v4-accent: #00d4ff;
  --v4-accent-glow: rgba(0, 212, 255, 0.28);
  --v4-accent-dark: #004d73;
  --v4-accent-signal: #ffb703;
  --v4-accent-danger: #ef4444;
  --v4-accent-matrix-green: #10b981;
  --v4-topic: #10b981;
  --v4-wheel-theme: var(--v4-accent);

  --v4-header-bg: rgba(7, 10, 14, 0.88);
  --v4-header-border: rgba(0, 229, 255, 0.18);
  --v4-glass: rgba(16, 22, 31, 0.78);
  --v4-glass-border: rgba(0, 229, 255, 0.22);
  --v4-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);

  color-scheme: dark;
}

/* One Reality — white field, orange / green / purple */
html[data-ui="v4"] body[data-pole="one"] {
  --v4-one-orange: #e85d04;
  --v4-one-green: #2d8a4e;
  --v4-one-purple: #7c3aed;
  --v4-one-gradient: linear-gradient(90deg, #e85d04 0%, #2d8a4e 48%, #7c3aed 100%);

  --v4-bg: #ffffff;
  --v4-canvas: #ffffff;
  --v4-surface: #ffffff;
  --v4-surface-raised: #f7f4fc;
  --v4-surface-hover: #f4f1fa;
  --v4-border: rgba(45, 138, 78, 0.22);
  --v4-border-subtle: rgba(26, 24, 38, 0.1);
  --v4-border-bright: rgba(124, 58, 237, 0.45);

  --v4-ink: #1a1824;
  --v4-ink-muted: #5b5668;
  --v4-ink-faint: #8c8796;

  --v4-accent: #2d8a4e;
  --v4-accent-glow: rgba(45, 138, 78, 0.22);
  --v4-accent-dark: #1b5c34;
  --v4-accent-signal: #e85d04;
  --v4-accent-gold: #e85d04;
  --v4-accent-purple: #7c3aed;
  --v4-topic: #e85d04;
  --v4-wheel-theme: #2d8a4e;

  --v4-header-bg: rgba(255, 255, 255, 0.94);
  --v4-header-border: rgba(45, 138, 78, 0.16);
  --v4-glass: rgba(255, 255, 255, 0.9);
  --v4-glass-border: rgba(124, 58, 237, 0.18);
  --v4-shadow: 0 20px 50px rgba(26, 24, 38, 0.08);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Body & Typography Foundation
   -------------------------------------------------------------------------- */

html[data-ui="v4"] .hidden,
html[data-ui="v4"] #home-fork.hidden,
html[data-ui="v4"] #panel.hidden,
html[data-ui="v4"] #collection.hidden {
  display: none !important;
  visibility: hidden !important;
}

html[data-ui="v4"] body.js-ready .seo-shell,
html[data-ui="v4"] .seo-shell[hidden] {
  display: none !important;
  visibility: hidden !important;
}

html[data-ui="v4"] body {
  background-color: var(--v4-bg);
  color: var(--v4-ink);
  font-family: var(--v4-font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-ui="v4"] #collection {
  background: var(--v4-bg) !important;
  color: var(--v4-ink);
  min-height: calc(100vh - var(--v4-header-h));
  position: relative;
  overflow-x: clip;
  overflow-y: auto;
}

html[data-ui="v4"] body[data-pole="matrix"] #collection {
  background-color: #070a0e !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.05), transparent 60%),
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

html[data-ui="v4"] body[data-pole="one"] #collection {
  background-color: #ffffff !important;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(232, 93, 4, 0.07), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(45, 138, 78, 0.06), transparent 48%),
    radial-gradient(circle at 88% 8%, rgba(124, 58, 237, 0.07), transparent 40%);
  background-size: 100% 100%;
}

/* Background tactical grid for Matrix */
html[data-ui="v4"] body[data-pole="matrix"] {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.08), transparent 45%),
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0;
}

html[data-ui="v4"] body[data-pole="one"] {
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(232, 93, 4, 0.09), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(45, 138, 78, 0.07), transparent 46%),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.08), transparent 36%);
  background-size: 100% 100%;
}

html[data-ui="v4"] button,
html[data-ui="v4"] input,
html[data-ui="v4"] select,
html[data-ui="v4"] textarea {
  font-family: inherit;
  color: inherit;
}

html[data-ui="v4"] a {
  color: inherit;
  text-decoration: none;
}

html[data-ui="v4"] :where(a, button, input, [role="button"]):focus-visible {
  outline: 2px solid var(--v4-accent);
  outline-offset: 3px;
  box-shadow: 0 0 12px var(--v4-accent-glow);
}

/* Skip Link */
html[data-ui="v4"] .skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 2500;
  padding: 10px 18px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-accent);
  color: #070a0e;
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform var(--v4-transition-fast);
  box-shadow: 0 4px 20px var(--v4-accent-glow);
}

html[data-ui="v4"] .skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Header Navigation & Tactical Branding
   -------------------------------------------------------------------------- */

html[data-ui="v4"] body > header {
  position: sticky;
  top: 0;
  z-index: 2000;
  isolation: isolate;
  pointer-events: auto;
  height: var(--v4-header-h);
  padding: 0 clamp(16px, 3.5vw, 48px);
  background: var(--v4-header-bg);
  border-bottom: 1px solid var(--v4-header-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--v4-transition-smooth), border-color var(--v4-transition-smooth);
}

html[data-ui="v4"] .header-left {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  flex: 0 0 auto;
  pointer-events: auto;
}

html[data-ui="v4"] .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Pole switcher pills */
html[data-ui="v4"] .pole-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--v4-surface);
  border: 1px solid var(--v4-border-subtle);
  border-radius: var(--v4-radius-pill);
}

html[data-ui="v4"] .pole-mark-link {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v4-radius-pill);
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v4-ink-muted);
  border: 1px solid transparent;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .pole-mark-link:hover {
  color: var(--v4-ink);
  background: var(--v4-surface-hover);
}

html[data-ui="v4"] .pole-mark-link--matrix.active,
html[data-ui="v4"] .pole-mark-link--matrix:hover,
html[data-ui="v4"] .pole-mark-link--matrix:focus-visible {
  background: #0a141d;
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.22), inset 0 0 8px rgba(0, 212, 255, 0.1);
}

html[data-ui="v4"] .pole-mark-link--one,
html[data-ui="v4"] .pole-mark .kicker-brand--one {
  background-image: var(--v4-one-gradient, linear-gradient(90deg, #e85d04, #2d8a4e 48%, #7c3aed));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-ui="v4"] .pole-mark-link--one.active,
html[data-ui="v4"] .pole-mark-link--one:hover,
html[data-ui="v4"] .pole-mark-link--one:focus-visible {
  background: #ffffff;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #2d8a4e;
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow:
    0 0 0 1px rgba(45, 138, 78, 0.18),
    0 2px 10px rgba(124, 58, 237, 0.1);
}

html[data-ui="v4"] .pole-mark-sep {
  display: none;
}

/* Center branding banner */
html[data-ui="v4"] .header-subtitle {
  display: none !important;
}

html[data-ui="v4"] .header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  text-align: center;
}

html[data-ui="v4"] .header-center::before,
html[data-ui="v4"] .header-center::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 80px;
  background: currentColor;
  opacity: 0.22;
}

html[data-ui="v4"] .wef-logo {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-surface);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink-muted);
  cursor: pointer;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .wef-logo:hover,
html[data-ui="v4"] .wef-logo:focus-visible {
  color: var(--v4-ink);
  border-color: var(--v4-border-bright);
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

html[data-ui="v4"] body[data-pole="matrix"] .wef-logo {
  border-color: rgba(0, 212, 255, 0.2);
  color: #a0d8ef;
}

html[data-ui="v4"] body[data-pole="one"] .wef-logo {
  border-color: rgba(21, 101, 192, 0.22);
  color: #5b5668;
}

html[data-ui="v4"] body[data-pole="one"] .wef-logo-word {
  font: inherit;
  letter-spacing: inherit;
}

html[data-ui="v4"] body[data-pole="one"] .wef-logo-word--red {
  color: #c62828;
}

html[data-ui="v4"] body[data-pole="one"] .wef-logo-word--blue {
  color: #1565c0;
}

html[data-ui="v4"] body[data-pole="one"] .wef-logo-word--green {
  color: #2e7d32;
}

html[data-ui="v4"] body[data-pole="one"] .wef-logo:hover,
html[data-ui="v4"] body[data-pole="one"] .wef-logo:focus-visible {
  color: inherit;
  border-color: rgba(21, 101, 192, 0.45);
}

/* Navigation tabs right */
html[data-ui="v4"] .nav-menu-btn {
  display: none;
}

html[data-ui="v4"] .nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

html[data-ui="v4"] .nav a {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v4-radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--v4-ink-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .nav a:hover {
  color: var(--v4-ink);
  background: var(--v4-surface);
  border-color: var(--v4-border-subtle);
}

html[data-ui="v4"] .nav a.active {
  color: var(--v4-ink);
  background: var(--v4-surface-raised);
  border-color: var(--v4-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html[data-ui="v4"] body[data-pole="matrix"] .nav a.active {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
  color: #00d4ff;
}

html[data-ui="v4"] body[data-pole="one"] .nav a.active {
  border-color: rgba(45, 138, 78, 0.4);
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.1);
  color: #2d8a4e;
}

/* History button */
html[data-ui="v4"] #history-btn {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  min-height: 38px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-surface);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] #history-btn:hover {
  background: var(--v4-surface-hover);
  color: var(--v4-ink);
  border-color: var(--v4-border);
}

html[data-ui="v4"] #history-menu {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius-md);
  box-shadow: var(--v4-shadow);
  padding: 8px;
  min-width: 220px;
  backdrop-filter: blur(16px);
}

html[data-ui="v4"] #history-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--v4-radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--v4-ink);
  cursor: pointer;
  transition: background var(--v4-transition-fast);
}

html[data-ui="v4"] #history-menu button:hover {
  background: var(--v4-surface-hover);
}

/* --------------------------------------------------------------------------
   4. Splash Landing (The Two Portals: Matrix vs One)
   -------------------------------------------------------------------------- */

html[data-ui="v4"] body.home-fork > header {
  display: flex !important;
}

html[data-ui="v4"] body.home-fork #container {
  height: calc(100svh - var(--v4-header-h));
}

html[data-ui="v4"] body.home-fork #home-fork {
  height: 100%;
}

html[data-ui="v4"] .fork-doors {
  min-height: calc(100svh - var(--v4-header-h));
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}

html[data-ui="v4"] .fork-door {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--v4-transition-smooth);
}

html[data-ui="v4"] .fork-hero {
  height: 100%;
  min-height: calc(100svh - var(--v4-header-h));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 6vw, 84px) clamp(24px, 5vw, 64px);
  background-size: cover;
  background-position: center;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 600ms ease;
}

html[data-ui="v4"] .fork-hero::after {
  display: none;
}

html[data-ui="v4"] .fork-door:hover .fork-hero,
html[data-ui="v4"] .fork-door:focus-visible .fork-hero {
  transform: scale(1.035);
  filter: brightness(1.16) saturate(1.08) contrast(1.02);
}

/* Tactical Matrix Door Overlay */
html[data-ui="v4"] .fork-door--matrix::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 10, 14, 0.62) 0%, rgba(7, 10, 14, 0.22) 42%, rgba(7, 10, 14, 0.06) 100%),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
  z-index: 1;
  pointer-events: none;
  transition: background 280ms ease;
}

html[data-ui="v4"] .fork-door--matrix:hover::before,
html[data-ui="v4"] .fork-door--matrix:focus-visible::before {
  background:
    linear-gradient(to top, rgba(7, 10, 14, 0.32) 0%, rgba(7, 10, 14, 0.06) 50%, transparent 100%),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
}

/* Organic One Door Overlay */
html[data-ui="v4"] .fork-door--one::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 24, 38, 0.58) 0%, rgba(26, 24, 38, 0.16) 42%, rgba(26, 24, 38, 0.04) 100%),
    radial-gradient(circle at 18% 22%, rgba(232, 93, 4, 0.16), transparent 42%),
    radial-gradient(circle at 80% 18%, rgba(124, 58, 237, 0.16), transparent 46%);
  z-index: 1;
  pointer-events: none;
  transition: background 280ms ease;
}

html[data-ui="v4"] .fork-door--one:hover::before,
html[data-ui="v4"] .fork-door--one:focus-visible::before {
  background:
    linear-gradient(to top, rgba(26, 24, 38, 0.26) 0%, rgba(26, 24, 38, 0.05) 50%, transparent 100%),
    radial-gradient(circle at 18% 22%, rgba(232, 93, 4, 0.24), transparent 44%),
    radial-gradient(circle at 80% 18%, rgba(124, 58, 237, 0.22), transparent 48%);
}

html[data-ui="v4"] .fork-hero .hero-text-stack {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

html[data-ui="v4"] .fork-hero .hero-kicker {
  font-family: var(--v4-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

html[data-ui="v4"] .fork-door--matrix .hero-kicker {
  color: #00e5ff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

html[data-ui="v4"] .fork-door--one .hero-kicker {
  background-image: linear-gradient(90deg, #ff8a3d, #5ee08a 48%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

html[data-ui="v4"] .fork-hero .hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
}

html[data-ui="v4"] .fork-door--one .hero-title {
  font-family: var(--v4-font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

html[data-ui="v4"] .fork-hero .hero-tagline {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

html[data-ui="v4"] .fork-door-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--v4-radius-pill);
  font-family: var(--v4-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 1;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .fork-door--matrix .fork-door-enter {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.45);
  color: #00e5ff;
}

html[data-ui="v4"] .fork-door--matrix:hover .fork-door-enter {
  background: #00d4ff;
  color: #070a0e;
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.65);
  transform: translateY(-1px);
}

html[data-ui="v4"] .fork-door--one .fork-door-enter {
  background: rgba(45, 138, 78, 0.18);
  border: 1px solid rgba(232, 93, 4, 0.45);
  color: #ffe4cc;
}

html[data-ui="v4"] .fork-door--one:hover .fork-door-enter {
  background: #2d8a4e;
  color: #ffffff;
  box-shadow: 0 0 28px rgba(232, 93, 4, 0.4), 0 0 36px rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Walk Experience (Cinematic Widescreen Theater)
   -------------------------------------------------------------------------- */

html[data-ui="v4"] .walk-film-frame {
  position: relative;
  min-height: clamp(480px, 64vh, 720px);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 56px) var(--walk-gutter);
  touch-action: pan-y pinch-zoom;
  transition: opacity 220ms ease, filter 220ms ease;
  overflow: hidden;
}

/* Widescreen Vignette & Gradient Overlays */
html[data-ui="v4"] body[data-pole="matrix"] .walk-film-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, transparent 40%, rgba(7, 10, 14, 0.8) 100%),
    linear-gradient(to top, rgba(7, 10, 14, 0.98) 0%, rgba(7, 10, 14, 0.6) 40%, rgba(7, 10, 14, 0.25) 100%),
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
  pointer-events: none;
  z-index: 1;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, transparent 45%, rgba(14, 28, 22, 0.75) 100%),
    linear-gradient(to top, rgba(14, 28, 22, 0.96) 0%, rgba(14, 28, 22, 0.5) 40%, rgba(14, 28, 22, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Feathered hero-to-dossier bottom transition */
html[data-ui="v4"] .walk-film-frame::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(80px, 14vh, 160px);
  pointer-events: none;
  z-index: 2;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-frame::after {
  background: linear-gradient(to bottom, transparent, rgba(7, 10, 14, 0.95) 75%, #070a0e 100%);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-frame::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95) 75%, #ffffff 100%);
}

html[data-ui="v4"] .walk-film-ghosts {
  position: absolute;
  top: 33.333%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* V1-style circular hero ghosts, V4 tokens — grouped at the right */
html[data-ui="v4"] .walk-film-ghost,
html[data-ui="v4"] .walk-film-ghost-prev,
html[data-ui="v4"] .walk-film-ghost-next {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 44px;
  height: 44px;
  z-index: 4;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(17, 24, 39, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  backdrop-filter: blur(4px);
  transition: background var(--v4-transition-fast), border-color var(--v4-transition-fast);
}

html[data-ui="v4"] .walk-film-ghost-prev,
html[data-ui="v4"] .walk-film-ghost--prev,
html[data-ui="v4"] .walk-film-ghost-next,
html[data-ui="v4"] .walk-film-ghost--next {
  left: auto;
  right: auto;
}

html[data-ui="v4"] .walk-film-ghost:hover,
html[data-ui="v4"] .walk-film-ghost-prev:hover,
html[data-ui="v4"] .walk-film-ghost-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-ghost,
html[data-ui="v4"] body[data-pole="one"] .walk-film-ghost-prev,
html[data-ui="v4"] body[data-pole="one"] .walk-film-ghost-next {
  background: rgba(255, 255, 255, 0.72);
  color: #1a1824;
  border-color: rgba(45, 138, 78, 0.35);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-ghost:hover,
html[data-ui="v4"] body[data-pole="one"] .walk-film-ghost-prev:hover,
html[data-ui="v4"] body[data-pole="one"] .walk-film-ghost-next:hover {
  background: #ffffff;
  border-color: rgba(232, 93, 4, 0.55);
}

/* Overlay and dots positioning */
html[data-ui="v4"] .walk-film-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html[data-ui="v4"] .walk-film-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

html[data-ui="v4"] .walk-film-head .walk-film-overlay-body {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 4px;
}

html[data-ui="v4"] .walk-film-head .walk-film-kicker {
  margin: 0;
}

html[data-ui="v4"] .walk-film-head .walk-film-title-row,
html[data-ui="v4"] .walk-film-head .walk-film-title {
  margin: 0;
}

html[data-ui="v4"] .walk-film-head .walk-film-title {
  min-height: calc(1.15em * 2);
}

html[data-ui="v4"] .walk-film-head,
html[data-ui="v4"] .walk-film-overlay > .walk-film-caption,
html[data-ui="v4"] .walk-film-dots-wrap {
  width: 100%;
}

html[data-ui="v4"] .walk-film-overlay > .walk-film-caption {
  margin-top: 8px;
}

html[data-ui="v4"] .walk-film-overlay > .walk-film-enter-link {
  margin-top: 10px;
  width: auto;
}

html[data-ui="v4"] .walk-film-dots-wrap {
  margin-bottom: 20px;
}

html[data-ui="v4"] .walk-film-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 10, 14, 0.65);
  padding: 6px 14px;
  border-radius: var(--v4-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-dots {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 138, 78, 0.22);
}

html[data-ui="v4"] .walk-film-dot {
  width: 20px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-dot {
  background: rgba(22, 36, 30, 0.22);
}

html[data-ui="v4"] .walk-film-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

html[data-ui="v4"] .walk-film-dot.on,
html[data-ui="v4"] .walk-film-dot.active {
  width: 34px;
  background: var(--v4-accent);
  box-shadow: 0 0 10px var(--v4-accent-glow);
}

html[data-ui="v4"] .walk-film-progress {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--v4-ink-muted);
  margin-left: 6px;
}

/* HUD Breadcrumbs & Kicker Line */
html[data-ui="v4"] .v3-hud-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

html[data-ui="v4"] .v3-hud-compass {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--v4-radius-pill);
}

html[data-ui="v4"] body[data-pole="matrix"] .v3-hud-compass {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-compass {
  background: rgba(45, 138, 78, 0.1);
  border: 1px solid rgba(45, 138, 78, 0.3);
  color: #2d8a4e;
}

html[data-ui="v4"] .v3-hud-seal {
  font-family: var(--v4-font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

html[data-ui="v4"] .v3-hud-seal-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}

html[data-ui="v4"] .v3-hud-seal--fact {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

html[data-ui="v4"] .v3-hud-seal--dev {
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.5);
  color: #fb923c;
}

html[data-ui="v4"] .v3-hud-seal--echo {
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.5);
  color: #f59e0b;
}

html[data-ui="v4"] .v3-hud-seal--intro {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00e5ff;
}

html[data-ui="v4"] .v3-hud-seal--voice {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

html[data-ui="v4"] .v3-hud-seal--mirror {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

html[data-ui="v4"] .v3-hud-seal--source {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

html[data-ui="v4"] .v3-hud-seal--default {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* One Bio-Field Seal Overrides */
html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal {
  font-family: var(--v4-font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal--intro {
  background: rgba(45, 138, 78, 0.12);
  border: 1px solid rgba(45, 138, 78, 0.35);
  color: #2d8a4e;
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal--fact {
  background: rgba(184, 130, 34, 0.15);
  border: 1px solid rgba(184, 130, 34, 0.4);
  color: #8c5d08;
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal--dev {
  background: rgba(194, 65, 12, 0.12);
  border: 1px solid rgba(194, 65, 12, 0.35);
  color: #9a3412;
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal--echo {
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.35);
  color: #854d0e;
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal--voice {
  background: rgba(11, 66, 52, 0.12);
  border: 1px solid rgba(11, 66, 52, 0.35);
  color: #0b4234;
}

html[data-ui="v4"] body[data-pole="one"] .v3-hud-seal--mirror {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

html[data-ui="v4"] .walk-film-kicker,
html[data-ui="v4"] .walk-film-kicker-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 12px;
  background: transparent;
  border: 0;
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-ui="v4"] .walk-film-kicker-tag,
html[data-ui="v4"] .walk-film-kicker-tags .walk-film-kicker-link,
html[data-ui="v4"] .walk-film-kicker-tags .walk-film-kicker-topic {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--v4-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(7, 10, 14, 0.42);
  color: #ffffff;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background var(--v4-transition-fast), border-color var(--v4-transition-fast);
}

html[data-ui="v4"] .walk-film-kicker-tag:hover,
html[data-ui="v4"] .walk-film-kicker-tag:focus-visible,
html[data-ui="v4"] .walk-film-kicker-tags .walk-film-kicker-link:hover,
html[data-ui="v4"] .walk-film-kicker-tags .walk-film-kicker-topic:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-kicker-tag--brand {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.45);
  color: #00e5ff;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-kicker-tag--theme {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.28);
  color: #b9f4ff;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-kicker-tag--topic,
html[data-ui="v4"] body[data-pole="matrix"] .walk-film-kicker-tag--current {
  background: rgba(255, 183, 3, 0.14);
  border-color: rgba(255, 183, 3, 0.4);
  color: #ffd56a;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-kicker-tag--brand {
  background: rgba(232, 93, 4, 0.22);
  border-color: rgba(232, 93, 4, 0.55);
  color: #ffe0c2;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-kicker-tag--theme {
  background: rgba(45, 138, 78, 0.22);
  border-color: rgba(45, 138, 78, 0.5);
  color: #c8f0d4;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-kicker-tag--topic,
html[data-ui="v4"] body[data-pole="one"] .walk-film-kicker-tag--current {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.5);
  color: #ddd6fe;
}

html[data-ui="v4"] .walk-film-title {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-title {
  font-family: var(--v4-font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

html[data-ui="v4"] .walk-film-caption {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: var(--v4-reading-max);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   6. Deepening Layer & Tactical Dossier (De Haak & Citaat)
   -------------------------------------------------------------------------- */

html[data-ui="v4"] .walk-film-cue {
  padding: 20px var(--walk-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 5;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-cue {
  background: #0d1217;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-cue {
  background: #ffffff;
  border-top: 1px solid rgba(45, 138, 78, 0.16);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 4px 20px rgba(22, 36, 30, 0.04);
}

html[data-ui="v4"] .walk-film-cue-kicker {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-cue-kicker {
  color: #00e5ff;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-cue-kicker {
  color: #2d8a4e;
}

html[data-ui="v4"] .walk-film-cue p {
  margin: 0;
  font-size: 14px;
  color: var(--v4-ink-muted);
}

html[data-ui="v4"] .walk-film-enter-link,
html[data-ui="v4"] .walk-film-deepen-toggle {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--v4-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-deepen-toggle,
html[data-ui="v4"] body[data-pole="matrix"] .walk-film-enter-link {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00e5ff;
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-deepen-toggle:hover,
html[data-ui="v4"] body[data-pole="matrix"] .walk-film-enter-link:hover {
  background: #00d4ff;
  color: #070a0e;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-deepen-toggle,
html[data-ui="v4"] body[data-pole="one"] .walk-film-enter-link {
  background: rgba(45, 138, 78, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.35);
  color: #2d8a4e;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-deepen-toggle:hover,
html[data-ui="v4"] body[data-pole="one"] .walk-film-enter-link:hover {
  background: #2d8a4e;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}


/* Deepen Panel (Decompress Zone) */
html[data-ui="v4"] .walk-film-deepen-panel {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 48px;
  border-top: 0;
  scroll-margin-top: calc(var(--v4-header-h) + 12px);
}

html[data-ui="v4"] body[data-pole="matrix"] .walk-film-deepen-panel {
  background: #070a0e;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-deepen-panel {
  background: #ffffff;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

html[data-ui="v4"] .pole-overview {
  max-width: none;
  width: 100%;
  margin: 0;
}

html[data-ui="v4"] .pole-overview-hook,
html[data-ui="v4"] .walk-film-deepen-panel > .pole-overview > .pole-overview-hook {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tactical Hook Grid */
html[data-ui="v4"] .pole-overview-hook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

html[data-ui="v4"] .pole-overview-hook-grid--solo {
  grid-template-columns: 1fr;
}

html[data-ui="v4"] .pole-overview-hook-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 18px var(--walk-gutter) 22px;
  border-radius: 0;
  background: var(--v4-surface);
  border: 0;
  box-shadow: none;
}

html[data-ui="v4"] body[data-pole="matrix"] .pole-overview-hook-panel--quote,
html[data-ui="v4"] body[data-pole="versus"] .pole-overview-hook-panel--quote,
html[data-ui="v4"] .walk-film--versus .pole-overview-hook-panel--quote,
html[data-ui="v4"] .pole-overview--versus .pole-overview-hook-panel--quote {
  border-left: 0 !important;
  background: linear-gradient(135deg, rgba(16, 22, 31, 0.95), rgba(11, 15, 21, 0.98)) !important;
  box-shadow: inset 3px 0 0 var(--v4-accent) !important;
}

html[data-ui="v4"] body[data-pole="one"] .pole-overview-hook-panel--quote {
  border-left: 3px solid #7c3aed !important;
  background: #ffffff !important;
  font-family: var(--v4-font-serif) !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08) !important;
}

html[data-ui="v4"] .pole-overview--one .pole-overview-hook-panel--quote::after,
html[data-ui="v4"] .pole-overview--matrix .pole-overview-hook-panel--quote::after,
html[data-ui="v4"] .pole-overview--versus .pole-overview-hook-panel--quote::after {
  display: none !important;
}

html[data-ui="v4"] .pole-overview--one .pole-overview-hook-panel--quote::before {
  content: none !important;
  display: none !important;
}

html[data-ui="v4"] .pole-overview--matrix .pole-overview-hook-panel--quote::before,
html[data-ui="v4"] .pole-overview--versus .pole-overview-hook-panel--quote::before {
  content: none !important;
  display: none !important;
}

html[data-ui="v4"] .pole-overview--one .pole-overview-quote {
  font-family: var(--v4-font-serif) !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #1b3227 !important;
  font-style: italic !important;
  text-shadow: none !important;
}

html[data-ui="v4"] .pole-overview--one .quote-src {
  font-family: var(--v4-font-sans) !important;
  font-size: 13px !important;
  color: #e85d04 !important;
  font-style: normal !important;
}

html[data-ui="v4"] .pole-overview--matrix .pole-overview-quote,
html[data-ui="v4"] .pole-overview--versus .pole-overview-quote {
  font-family: var(--v4-font-mono) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important;
  text-shadow: 0 0 1px rgba(0, 212, 255, 0.3) !important;
}

html[data-ui="v4"] .pole-overview--matrix .quote-src,
html[data-ui="v4"] .pole-overview--versus .quote-src {
  font-family: var(--v4-font-mono) !important;
  font-size: 12px !important;
  color: #00e5ff !important;
}

html[data-ui="v4"] .pole-overview-hook-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 36px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--v4-border-subtle);
}

html[data-ui="v4"] .pole-overview-hook-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding-top: 14px;
}

html[data-ui="v4"] .pole-overview-hook-tag {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--v4-radius-pill);
}

html[data-ui="v4"] body[data-pole="matrix"] .pole-overview-hook-tag,
html[data-ui="v4"] body[data-pole="versus"] .pole-overview-hook-tag,
html[data-ui="v4"] .walk-film--versus .pole-overview-hook-tag,
html[data-ui="v4"] .pole-overview--versus .pole-overview-hook-tag {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00e5ff;
}

html[data-ui="v4"] body[data-pole="one"] .pole-overview-hook-tag {
  background: rgba(45, 138, 78, 0.1);
  border: 1px solid rgba(45, 138, 78, 0.25);
  color: #2d8a4e;
}

html[data-ui="v4"] .pole-overview-hook-kicker {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--v4-ink-muted);
  text-transform: uppercase;
}

html[data-ui="v4"] .pole-overview-lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
  color: var(--v4-ink);
  margin: 0;
}

html[data-ui="v4"] .pole-overview-quote {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  margin: 0 0 16px 0;
  color: var(--v4-ink);
}

html[data-ui="v4"] body[data-pole="matrix"] .pole-overview-quote--typewriter {
  font-family: var(--v4-font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: #a0d8ef;
}

html[data-ui="v4"] .quote-src,
html[data-ui="v4"] .pole-overview-quote-source {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  color: var(--v4-accent);
  letter-spacing: 0.04em;
}

html[data-ui="v4"] .quote-src a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sections & Cards Grids */
html[data-ui="v4"] .pole-overview-section {
  margin-bottom: 48px;
}

html[data-ui="v4"] .collection-section-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--v4-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html[data-ui="v4"] .pole-overview-section--fold {
  border: 1px solid var(--v4-border-subtle);
  border-radius: var(--v4-radius-md);
  background: var(--v4-surface);
  padding: 18px 24px;
}

html[data-ui="v4"] .pole-overview-section--fold summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html[data-ui="v4"] .pole-overview-section--fold summary::-webkit-details-marker {
  display: none;
}

html[data-ui="v4"] .section-fold-action {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-surface-raised);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-accent);
}

/* Cards Grid */
html[data-ui="v4"] .collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

html[data-ui="v4"] .collection-card {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border-subtle);
  border-radius: var(--v4-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--v4-border);
  box-shadow: var(--v4-shadow);
}

html[data-ui="v4"] .collection-card-hero {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

html[data-ui="v4"] .collection-card-body {
  padding: 20px;
}

html[data-ui="v4"] .collection-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--v4-ink);
  margin-bottom: 8px;
}

html[data-ui="v4"] .collection-card-caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--v4-ink-muted);
}

/* Collection Back Bar & Rails */
html[data-ui="v4"] .collection-back {
  background: var(--v4-bg);
  border-bottom: 1px solid var(--v4-border-subtle);
  padding: 10px var(--walk-gutter);
}

html[data-ui="v4"] .collection-back button {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v4-ink-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--v4-radius-pill);
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .collection-back button:hover {
  color: var(--v4-ink);
  background: var(--v4-surface);
}

html[data-ui="v4"] .home-rail {
  margin-bottom: 32px;
}

html[data-ui="v4"] .home-rail-label {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v4-accent);
  margin-bottom: 14px;
}

html[data-ui="v4"] .home-rail-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

html[data-ui="v4"] .home-rail-card {
  flex: 0 0 clamp(200px, 24vw, 280px);
  scroll-snap-align: start;
  border-radius: var(--v4-radius-md);
  background: var(--v4-surface);
  border: 1px solid var(--v4-border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] body[data-pole="matrix"] .home-rail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 14, 0.95), rgba(7, 10, 14, 0.35) 60%, transparent);
}

html[data-ui="v4"] body[data-pole="one"] .home-rail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 28, 22, 0.92), rgba(14, 28, 22, 0.3) 60%, transparent);
}

html[data-ui="v4"] .home-rail-card:hover {
  transform: translateY(-3px);
  border-color: var(--v4-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-ui="v4"] .home-rail-card-title {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

html[data-ui="v4"] .home-rail-card-sub {
  position: relative;
  z-index: 2;
  font-family: var(--v4-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v4-accent);
  margin-bottom: 4px;
}

/* Fact Cards and Deepen Text Blocks */
html[data-ui="v4"] .fact-card-stack {
  margin-bottom: 24px;
}

html[data-ui="v4"] .fact-claim {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.64;
  color: var(--v4-ink);
  margin-bottom: 12px;
}

html[data-ui="v4"] .fact-label {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--v4-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

html[data-ui="v4"] .topic-intro,
html[data-ui="v4"] .scene-fact {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--v4-ink);
}

html[data-ui="v4"] body[data-pole="one"] .collection-card-title {
  font-family: var(--v4-font-serif);
  font-weight: 600;
}

html[data-ui="v4"] .collection-body,
html[data-ui="v4"] .dossiers-index-body,
html[data-ui="v4"] .versus-index-body {
  max-width: var(--v4-content-max);
  margin: 0 auto;
  padding: 36px var(--walk-gutter) 72px;
}

/* --------------------------------------------------------------------------
   7. Discover Kennisbank (Tactical Archive Deck)
   -------------------------------------------------------------------------- */

html[data-ui="v4"] body.discover-index-mode #container,
html[data-ui="v4"] body.collection-mode #container {
  display: none !important;
}

html[data-ui="v4"] body.discover-index-mode #collection {
  display: block !important;
  min-height: calc(100vh - var(--v4-header-h));
  background: var(--v4-bg) !important;
}

html[data-ui="v4"] .discover-index {
  max-width: var(--v4-content-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--walk-gutter);
}

html[data-ui="v4"] .discover-heading {
  margin-bottom: 28px;
}

html[data-ui="v4"] .discover-heading .collection-hero-kicker {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v4-accent);
  margin-bottom: 8px;
}

html[data-ui="v4"] .discover-heading h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
  margin-bottom: 8px;
}

html[data-ui="v4"] .discover-heading > p:last-child {
  font-size: 15px;
  color: var(--v4-ink-muted);
}

/* Sticky Search & Filter Toolbar */
html[data-ui="v4"] .discover-toolbar {
  position: sticky;
  top: var(--v4-header-h);
  z-index: 50;
  margin-bottom: 32px;
  padding: 16px;
  border-radius: var(--v4-radius-lg);
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  box-shadow: var(--v4-shadow);
  backdrop-filter: blur(16px);
}

html[data-ui="v4"] .discover-search-wrap input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-surface-raised);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink);
  font-size: 15px;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .discover-search-wrap input[type="search"]:focus {
  border-color: var(--v4-accent);
  box-shadow: 0 0 16px var(--v4-accent-glow);
}

html[data-ui="v4"] .discover-filter-drawer {
  margin-top: 14px;
}

html[data-ui="v4"] .discover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

html[data-ui="v4"] .discover-tag {
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--v4-radius-pill);
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: var(--v4-surface-raised);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink-muted);
  cursor: pointer;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .discover-tag:hover {
  background: var(--v4-surface-hover);
  color: var(--v4-ink);
  border-color: var(--v4-border);
}

html[data-ui="v4"] .discover-tag.active {
  background: var(--v4-accent);
  color: #070a0e;
  border-color: var(--v4-accent);
  font-weight: 750;
  box-shadow: 0 0 12px var(--v4-accent-glow);
}

html[data-ui="v4"] .discover-reset {
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--v4-radius-pill);
  background: transparent;
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink-muted);
  cursor: pointer;
}

/* Discover Results Grid */
html[data-ui="v4"] .discover-count {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  color: var(--v4-ink-muted);
  margin-bottom: 16px;
}

html[data-ui="v4"] .discover-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

html[data-ui="v4"] .discover-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--v4-surface);
  border: 1px solid var(--v4-border-subtle);
  border-radius: var(--v4-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--v4-transition-fast);
  text-decoration: none;
}

html[data-ui="v4"] .discover-item:hover {
  transform: translateY(-2px);
  border-color: var(--v4-border);
  box-shadow: var(--v4-shadow);
}

html[data-ui="v4"] img.discover-item-thumb {
  width: 140px;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--v4-surface-raised);
}

html[data-ui="v4"] .discover-item-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[data-ui="v4"] .discover-item-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--v4-ink);
  margin-bottom: 6px;
}

html[data-ui="v4"] .discover-item-sub {
  font-size: 13px;
  color: var(--v4-ink-muted);
  margin-bottom: 12px;
}

html[data-ui="v4"] .discover-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html[data-ui="v4"] .discover-item-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--v4-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--v4-surface-raised);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink-muted);
}

html[data-ui="v4"] .v3-search-hit {
  background: rgba(0, 212, 255, 0.28);
  color: #00e5ff;
  padding: 1px 4px;
  border-radius: 2px;
}

html[data-ui="v4"] body[data-pole="one"] .v3-search-hit {
  background: rgba(184, 130, 34, 0.25);
  color: #78350f;
}

/* --------------------------------------------------------------------------
   8. Monitor Command Center & Accessible Deck
   -------------------------------------------------------------------------- */

html[data-ui="v4"] body.monitor-mode #container {
  display: flex !important;
  height: calc(100vh - var(--v4-header-h));
  overflow: hidden;
  position: relative;
}

html[data-ui="v4"] #viz {
  flex: 1;
  height: 100%;
  position: relative;
  background: var(--v4-bg);
}

/* Tactical Monitor Radial Radar Canvas */
html[data-ui="v4"] body[data-pole="matrix"] #viz {
  background-image: 
    radial-gradient(circle at center, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    radial-gradient(circle at center, transparent 38%, rgba(0, 212, 255, 0.03) 39%, transparent 40%),
    radial-gradient(circle at center, transparent 68%, rgba(0, 212, 255, 0.03) 69%, transparent 70%);
}

html[data-ui="v4"] body[data-pole="one"] #viz {
  background-image:
    radial-gradient(circle at center, rgba(45, 138, 78, 0.06) 0%, transparent 70%),
    radial-gradient(circle at center, transparent 38%, rgba(232, 93, 4, 0.05) 39%, transparent 40%),
    radial-gradient(circle at center, transparent 68%, rgba(124, 58, 237, 0.05) 69%, transparent 70%);
}

/* Side Intelligence Panel */
html[data-ui="v4"] #panel {
  width: min(440px, 42vw);
  height: 100%;
  overflow-y: auto;
  background: var(--v4-surface);
  border-left: 1px solid var(--v4-border);
  padding: 0;
  color: var(--v4-ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  transition: transform var(--v4-transition-smooth);
}

html[data-ui="v4"] #panel.hidden {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
}

html[data-ui="v4"] #panel .wef-card {
  min-height: 100%;
}

html[data-ui="v4"] #panel .hero {
  height: 168px;
  min-height: 168px;
  flex: 0 0 168px;
}

html[data-ui="v4"] #panel .hero .hero-kicker {
  bottom: 52px;
  left: 22px;
  right: 22px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

html[data-ui="v4"] #panel .hero .hero-title {
  bottom: 16px;
  left: 22px;
  right: 22px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

html[data-ui="v4"] #panel .card-body {
  padding: 22px 22px 32px;
}

html[data-ui="v4"] #panel .monitor-brief-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--v4-accent);
}

html[data-ui="v4"] #panel .topic-intro,
html[data-ui="v4"] #panel .monitor-brief-intro,
html[data-ui="v4"] #panel .scene-fact {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--v4-ink);
  margin-bottom: 18px;
}

html[data-ui="v4"] #panel .unit {
  margin-bottom: 22px;
}

html[data-ui="v4"] #panel .unit h3 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v4-ink-muted);
  margin-bottom: 10px;
}

html[data-ui="v4"] #panel .unit.haak h3 {
  color: var(--v4-accent);
}

html[data-ui="v4"] #panel .unit-hint {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--v4-ink-muted);
  margin-bottom: 12px;
}

html[data-ui="v4"] #panel .timeline {
  position: relative;
  padding: 2px 0 8px;
}

html[data-ui="v4"] #panel .timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--v4-border);
}

html[data-ui="v4"] #panel .tl-item {
  position: relative;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 13px 10px 13px 0;
  border-bottom: 0;
  border-radius: var(--v4-radius-sm);
}

html[data-ui="v4"] #panel .tl-item:hover {
  background: var(--v4-surface-hover);
}

html[data-ui="v4"] #panel .tl-year {
  font-family: var(--v4-font-mono);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--v4-accent);
}

html[data-ui="v4"] #panel .tl-item strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--v4-ink);
  margin-bottom: 6px;
}

html[data-ui="v4"] #panel .badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 3px 8px;
  border-radius: var(--v4-radius-pill);
  margin-bottom: 0;
  background: var(--v4-surface-raised);
  color: var(--v4-ink-muted);
  border: 1px solid var(--v4-border-subtle);
}

html[data-ui="v4"] #panel .badge.documented {
  color: var(--v4-accent);
  background: color-mix(in srgb, var(--v4-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--v4-accent) 28%, transparent);
}

html[data-ui="v4"] #panel .badge.in-development {
  color: var(--v4-ink-muted);
  background: var(--v4-surface-raised);
  border-color: var(--v4-border-subtle);
}

html[data-ui="v4"] #panel .badge.mirror {
  color: var(--v4-accent-signal);
  background: color-mix(in srgb, var(--v4-accent-signal) 14%, transparent);
  border-color: color-mix(in srgb, var(--v4-accent-signal) 30%, transparent);
}

html[data-ui="v4"] #panel .badge.echo {
  color: var(--v4-accent-purple, #c4b5fd);
  background: color-mix(in srgb, var(--v4-accent-purple, #7c3aed) 16%, transparent);
  border-color: color-mix(in srgb, var(--v4-accent-purple, #7c3aed) 32%, transparent);
}

html[data-ui="v4"] #panel .unwrap,
html[data-ui="v4"] #panel .actions button,
html[data-ui="v4"] #panel .chip {
  background: transparent;
  border: 1px solid var(--v4-border);
  color: var(--v4-ink);
  border-radius: var(--v4-radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

html[data-ui="v4"] #panel .unwrap {
  width: 100%;
  margin: 8px 0 0;
  padding: 10px 16px;
}

html[data-ui="v4"] #panel .unwrap:hover,
html[data-ui="v4"] #panel .actions button:hover,
html[data-ui="v4"] #panel .chip:hover {
  background: var(--v4-surface-hover);
  border-color: var(--v4-accent);
  color: var(--v4-accent);
}

html[data-ui="v4"] #panel .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-ui="v4"] #panel a {
  color: var(--v4-accent);
}

html[data-ui="v4"] #panel .quote {
  font-size: 15px;
  line-height: 1.5;
  color: var(--v4-ink);
}

html[data-ui="v4"] #panel .quote-src,
html[data-ui="v4"] #panel .curation {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--v4-ink-muted);
  text-transform: none;
}

/* Floating Dock Controls — hidden on V4 Web; they sit on the wheel.
   Geschiedenis ≈ browser-terug. Paneel: Escape. Geluid staat standaard uit. */
html[data-ui="v4"] body.monitor-mode .monitor-dock,
html[data-ui="v4"] body.monitor-mode #history-menu {
  display: none !important;
}

html[data-ui="v4"] .monitor-dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  box-shadow: var(--v4-shadow);
  backdrop-filter: blur(16px);
}

html[data-ui="v4"] .monitor-dock button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--v4-radius-pill);
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 650;
  background: var(--v4-surface-raised);
  border: 1px solid var(--v4-border-subtle);
  color: var(--v4-ink);
  cursor: pointer;
  transition: all var(--v4-transition-fast);
}

html[data-ui="v4"] .monitor-dock button:hover {
  background: var(--v4-accent);
  color: #070a0e;
  border-color: var(--v4-accent);
  box-shadow: 0 0 14px var(--v4-accent-glow);
}

/* Wheel labels — V1 is near-black 9–10px; unreadable on Matrix dark */
html[data-ui="v4"] body.monitor-mode #tooltip {
  display: none !important;
}

html[data-ui="v4"] body.monitor-mode .node-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  fill: var(--v4-ink);
}

html[data-ui="v4"] body.monitor-mode .node-label.outer {
  font-size: 11px;
  font-weight: 600;
}

html[data-ui="v4"] body.monitor-mode .node-label.inner {
  font-size: 11px;
  font-weight: 600;
}

html[data-ui="v4"] body.monitor-mode .label-pill-bg {
  pointer-events: none;
}

html[data-ui="v4"] body.monitor-mode .label-pill--theme .label-pill-bg {
  fill: color-mix(in srgb, var(--v4-wheel-theme) 12%, transparent);
  stroke: color-mix(in srgb, var(--v4-wheel-theme) 28%, transparent);
  stroke-width: 1;
}

html[data-ui="v4"] body.monitor-mode .label-pill--theme text {
  fill: var(--v4-wheel-theme);
}

html[data-ui="v4"] body.monitor-mode .label-pill--theme.is-lit .label-pill-bg,
html[data-ui="v4"] body.monitor-mode .label-pill--theme.is-hover .label-pill-bg {
  fill: color-mix(in srgb, var(--v4-wheel-theme) 28%, transparent);
  stroke: var(--v4-wheel-theme);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--v4-wheel-theme) 40%, transparent));
}

html[data-ui="v4"] body.monitor-mode .label-pill--topic .label-pill-bg {
  fill: color-mix(in srgb, var(--v4-topic) 14%, transparent);
  stroke: color-mix(in srgb, var(--v4-topic) 32%, transparent);
  stroke-width: 1;
}

html[data-ui="v4"] body.monitor-mode .label-pill--topic text {
  fill: var(--v4-topic);
}

html[data-ui="v4"] body.monitor-mode .label-pill--topic.is-lit .label-pill-bg,
html[data-ui="v4"] body.monitor-mode .label-pill--topic.is-hover .label-pill-bg {
  fill: color-mix(in srgb, var(--v4-topic) 30%, transparent);
  stroke: var(--v4-topic);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--v4-topic) 45%, transparent));
}

html[data-ui="v4"] body.monitor-mode .node-label.center {
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.02em;
}

html[data-ui="v4"] body.monitor-mode .hub-label--one,
html[data-ui="v4"] body.monitor-mode .hub-label--matrix {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

html[data-ui="v4"] body.monitor-mode .hub-label--one tspan:nth-child(1) {
  fill: #e85d04;
}

html[data-ui="v4"] body.monitor-mode .hub-label--one tspan:nth-child(2) {
  fill: #2d8a4e;
}

html[data-ui="v4"] body.monitor-mode .hub-label--one tspan:nth-child(3) {
  fill: #7c3aed;
}

html[data-ui="v4"] body.monitor-mode .hub-label--matrix {
  fill: #00d4ff;
}

html[data-ui="v4"] body.monitor-mode .hub-disc--one {
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.12));
}

html[data-ui="v4"] body.monitor-mode .hub-disc--matrix {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.22));
}

html[data-ui="v4"] body.monitor-mode .node-label.center.hub-label--theme {
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  fill: var(--v4-wheel-theme);
}

html[data-ui="v4"] body.monitor-mode .hub-pill--theme .label-pill-bg {
  fill: color-mix(in srgb, var(--v4-wheel-theme) 16%, var(--v4-surface));
  stroke: color-mix(in srgb, var(--v4-wheel-theme) 36%, transparent);
  stroke-width: 1;
}

html[data-ui="v4"] body.monitor-mode .center-sub {
  font-size: 10px;
  letter-spacing: 0.04em;
  fill: rgba(255, 255, 255, 0.86);
}

html[data-ui="v4"] body[data-pole="matrix"].monitor-mode .node-label.ring:not(.label-pill text) {
  paint-order: stroke fill;
  stroke: rgba(7, 10, 14, 0.82);
  stroke-width: 3px;
}

html[data-ui="v4"] body.monitor-mode .label-pill .node-label.ring {
  paint-order: fill;
  stroke: none;
}

/* Accessible Graph List Fallback */
html[data-ui="v4"] .graph-list-fallback {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 60;
  max-width: 380px;
}

html[data-ui="v4"] .graph-list-fallback summary {
  padding: 8px 14px;
  border-radius: var(--v4-radius-pill);
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  font-family: var(--v4-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--v4-ink);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

html[data-ui="v4"] .graph-list-fallback[open] .graph-list-fallback-list {
  margin-top: 8px;
  max-height: 55vh;
  overflow-y: auto;
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius-md);
  padding: 8px;
  box-shadow: var(--v4-shadow);
}

html[data-ui="v4"] .graph-list-fallback-list button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--v4-radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--v4-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

html[data-ui="v4"] .graph-list-fallback-list button:hover {
  background: var(--v4-surface-hover);
  color: var(--v4-accent);
}

/* --------------------------------------------------------------------------
   9. Responsive Adaptations (Mobile & Tablet)
   -------------------------------------------------------------------------- */

@media (max-width: 840px) {
  html[data-ui="v4"] .fork-doors {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  html[data-ui="v4"] .fork-hero {
    min-height: calc(50vh - var(--v4-header-h) / 2);
    padding: 24px;
  }

  html[data-ui="v4"] .pole-overview-hook {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html[data-ui="v4"] .discover-grid {
    grid-template-columns: 1fr;
  }

  html[data-ui="v4"] .discover-item {
    grid-template-columns: 100px 1fr;
  }

  html[data-ui="v4"] body.monitor-mode #container {
    flex-direction: column;
  }

  html[data-ui="v4"] #panel {
    width: 100%;
    height: 45vh;
    border-left: 0;
    border-top: 1px solid var(--v4-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui="v4"] *,
  html[data-ui="v4"] *::before,
  html[data-ui="v4"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html[data-ui="v4"] .fork-door:hover .fork-hero,
  html[data-ui="v4"] .fork-door:focus-visible .fork-hero {
    transform: none;
  }
}

/* ==========================================================================
   V4 Open Walk — two worlds, photo rails, world-rail
   ========================================================================== */

html[data-ui="v4"] {
  --hero-h: clamp(480px, 64vh, 720px);
  --box-cell: calc(var(--hero-h) / 6);
  --v4-box-cols: 1;
  --v4-rail-w: calc(var(--box-cell) * var(--v4-box-cols, 1));
}

html[data-ui="v4"] .v3-hud-bar,
html[data-ui="v4"] .walk-film-cue,
html[data-ui="v4"] .walk-film-deepen-toggle {
  display: none !important;
}

html[data-ui="v4"] .walk-film-frame::before {
  background: linear-gradient(to top, rgba(7, 10, 14, 0.78) 0%, rgba(7, 10, 14, 0.18) 42%, transparent 72%) !important;
}

html[data-ui="v4"] body[data-pole="one"] .walk-film-frame::before {
  background: linear-gradient(to top, rgba(14, 28, 22, 0.72) 0%, rgba(14, 28, 22, 0.16) 42%, transparent 72%) !important;
}

html[data-ui="v4"] .walk-film-frame::after {
  display: none !important;
}

html[data-ui="v4"] .walk-film-dots--overlay {
  opacity: 0;
  pointer-events: none;
}

html[data-ui="v4"] .walk-film-dots--overlay:focus-within {
  opacity: 1;
  pointer-events: auto;
}

html[data-ui="v4"] .walk-film-deepen-panel {
  padding-top: 0;
}

html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section:has(.pole-theme-grid),
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section:has(.pole-topic-grid),
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section:has(.collection-grid--voice),
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section:has(.versus-portrait-grid),
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section:has(.versus-vision-card),
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section--layer-1,
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section--layer-2,
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section--layer-3,
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section--layer-5,
html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-section--layer-6 {
  display: none;
}

html[data-ui="v4"] .pole-overview-hook-kicker,
html[data-ui="v4"] .pole-overview-hook-scope {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-ui="v4"] .pole-overview-hook-scope {
  margin-left: auto;
}

html[data-ui="v4"] body[data-pole="matrix"] .pole-overview-hook-panel--lede,
html[data-ui="v4"] body[data-pole="versus"] .pole-overview-hook-panel--lede,
html[data-ui="v4"] .walk-film--versus .pole-overview-hook-panel--lede,
html[data-ui="v4"] .pole-overview--versus .pole-overview-hook-panel--lede {
  border-radius: 0;
  background: #10161f;
}

html[data-ui="v4"] body[data-pole="one"] .pole-overview-hook {
  padding: 0;
}

html[data-ui="v4"] body[data-pole="one"] .pole-overview-hook-grid {
  gap: 4px;
}

html[data-ui="v4"] body[data-pole="one"] .pole-overview-hook-panel--lede,
html[data-ui="v4"] body[data-pole="one"] .pole-overview-quote-block {
  border-radius: 0;
  background: #ffffff;
  border-color: rgba(45, 138, 78, 0.16);
}

html[data-ui="v4"] body[data-pole="one"] .pole-overview-quote {
  font-family: var(--v4-font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
}

html[data-ui="v4"] body[data-pole="matrix"] .pole-overview-quote,
html[data-ui="v4"] body[data-pole="versus"] .pole-overview-quote,
html[data-ui="v4"] .pole-overview--versus .pole-overview-quote {
  font-family: var(--v4-font-sans);
  letter-spacing: -0.01em;
}

html[data-ui="v4"] .pole-overview-quote::before,
html[data-ui="v4"] .pole-overview-quote::after,
html[data-ui="v4"] .pole-overview-hook-panel--quote::before {
  content: none !important;
  display: none !important;
}

html[data-ui="v4"] .v4-walk-rails {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 8px var(--walk-gutter) 32px;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-label {
  font-family: var(--v4-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--v4-ink-muted);
}

html[data-ui="v4"] .v4-photo-rail .home-rail-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 16px 14px 14px;
  border: 0;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card::before {
  display: none;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 14, 0.42) 0%, rgba(7, 10, 14, 0.08) 42%, transparent 72%);
  pointer-events: none;
}

html[data-ui="v4"] body[data-pole="matrix"] .v4-photo-rail .home-rail-card {
  border-radius: 0;
}

html[data-ui="v4"] body[data-pole="one"] .v4-photo-rail .home-rail-card {
  border-radius: 0;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card-copy {
  position: absolute;
  top: 54%;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100% - 28px);
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card-title,
html[data-ui="v4"] .v4-photo-rail .home-rail-card-sub {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card-title {
  font-size: clamp(16px, 2.1vw, 26px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card-sub {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: var(--v4-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(7, 10, 14, 0.42);
  color: #ffffff;
  font-family: var(--v4-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

html[data-ui="v4"] body[data-pole="matrix"] .v4-photo-rail .home-rail-card-sub {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.45);
  color: #00e5ff;
}

html[data-ui="v4"] .v4-photo-rail .home-rail-card.is-on {
  outline: 2px solid var(--v4-accent);
  outline-offset: 2px;
}

html[data-ui="v4"] .world-rail,
html[data-ui="v4"] .world-edge,
html[data-ui="v4"] .world-sheet {
  display: none;
}

html[data-ui="v4"] .world-rail[hidden],
html[data-ui="v4"] .world-edge[hidden],
html[data-ui="v4"] .world-sheet[hidden],
html[data-ui="v4"] body.home-fork .world-rail,
html[data-ui="v4"] body.home-fork .world-edge,
html[data-ui="v4"] body.home-fork .world-sheet {
  display: none !important;
  pointer-events: none !important;
}

html[data-ui="v4"] body.v4-has-rail .world-rail {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: absolute;
  top: 0;
  left: 0;
  bottom: auto;
  width: var(--v4-rail-w);
  height: var(--hero-h);
  z-index: 40;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

html[data-ui="v4"] body.v4-has-rail #collection {
  margin-left: 0;
  margin-right: 0;
}

html[data-ui="v4"] body.v4-has-rail:not(.walk-film-mode) #container,
html[data-ui="v4"] body.v4-has-rail.discover-index-mode #collection {
  padding-left: var(--v4-rail-w);
}

html[data-ui="v4"] body.v4-has-rail .walk-film-frame,
html[data-ui="v4"] body.v4-has-rail .collection-hero,
html[data-ui="v4"] body.v4-has-rail .box-hero-preview {
  min-height: var(--hero-h) !important;
  height: var(--hero-h);
  max-height: var(--hero-h);
  box-shadow: inset 0 -1px 0 var(--v4-header-border);
}

html[data-ui="v4"] #box-hero-preview {
  position: fixed;
  top: var(--v4-header-h);
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
}

html[data-ui="v4"] body.v4-has-rail .collection-hero-text {
  left: calc(var(--v4-rail-w) + 48px);
}

html[data-ui="v4"] body.v4-has-rail .dossiers-index-body,
html[data-ui="v4"] body.v4-has-rail .versus-index-body {
  padding-left: calc(var(--walk-gutter) + var(--v4-rail-w));
}

html[data-ui="v4"] .walk-film-overlay-body .walk-film-title,
html[data-ui="v4"] .walk-film-overlay-body .walk-film-caption {
  transition: opacity var(--v4-transition-fast);
}

html[data-ui="v4"] body.v4-has-rail .walk-film-overlay {
  padding-left: var(--v4-rail-w);
}

html[data-ui="v4"] body.v4-has-rail .walk-film-ghosts {
  right: 16px;
}

html[data-ui="v4"] body.v4-has-rail .walk-film-head .walk-film-ghosts {
  right: auto;
}

html[data-ui="v4"] body.v4-has-rail .walk-film-ghost--prev,
html[data-ui="v4"] body.v4-has-rail .walk-film-ghost-prev {
  left: auto;
}

html[data-ui="v4"] .block-box-cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

html[data-ui="v4"] .block-box-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: var(--box-cell);
}

html[data-ui="v4"] .block-box-cell {
  position: relative;
  width: var(--box-cell);
  height: var(--box-cell);
  flex: 0 0 var(--box-cell);
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  background-color: #10161f;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

html[data-ui="v4"] .block-box-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  transition: background var(--v4-transition-fast);
}

html[data-ui="v4"] .block-box-cell:hover::before {
  background: rgba(255, 255, 255, 0.08);
}

html[data-ui="v4"] .block-box-cell.is-on::before {
  background: transparent;
}

html[data-ui="v4"] .block-box-cell.is-on::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  pointer-events: none;
  z-index: 2;
}

html[data-ui="v4"] .block-box-cell.is-empty {
  cursor: default;
  pointer-events: none;
  background: var(--v4-canvas);
}

html[data-ui="v4"] .block-box-cell-label {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 6px 7px;
  font-size: clamp(9px, calc(var(--box-cell) * 0.12), 13px);
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

html[data-ui="v4"] .world-edge {
  position: fixed;
  top: var(--v4-header-h);
  bottom: 0;
  z-index: 45;
  width: 16px;
  border: 0;
  padding: 8px 2px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

html[data-ui="v4"] body.v4-has-rail .world-edge,
html[data-ui="v4"] body.v4-sheet-open .world-edge {
  display: none !important;
}

html[data-ui="v4"] body.v4-has-rail[data-pole="one"] .world-edge {
  background: #7c3aed;
  color: #fff;
}

html[data-ui="v4"] .world-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 6, 10, 0.62);
  padding: 12px;
}

html[data-ui="v4"] .world-sheet-panel {
  height: 100%;
  overflow: auto;
  padding: 16px;
  background: var(--v4-canvas);
  color: var(--v4-ink);
}

html[data-ui="v4"] .world-sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

html[data-ui="v4"] .world-sheet-title {
  margin: 0;
  font-size: 1.1rem;
}

html[data-ui="v4"] .world-sheet-close {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--v4-border);
  background: var(--v4-surface);
  color: inherit;
  cursor: pointer;
}

html[data-ui="v4"] .world-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

html[data-ui="v4"] .world-sheet-grid .block-box-cell {
  width: 100%;
  height: auto;
  min-height: 28svh;
}

html[data-ui="v4"] .world-sheet-cell {
  min-height: 28svh;
  border: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  text-align: left;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  font-size: 15px;
  cursor: pointer;
}

html[data-ui="v4"] body.v4-sheet-open .world-sheet {
  display: block;
}

html[data-ui="v4"]::view-transition-old(world-cross),
html[data-ui="v4"]::view-transition-new(world-cross) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phone: één kolom blokkendoos, edge alleen over de hero */
@media (max-width: 767px) {
  html[data-ui="v4"] {
    --v4-header-h: 56px;
    --walk-gutter: 16px;
    --hero-h: 336px;
    --box-cell: 56px;
    --v4-box-cols: 1;
    --v4-rail-w: 56px;
  }

  html[data-ui="v4"] body > header {
    height: var(--v4-header-h);
    min-height: var(--v4-header-h);
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
  }

  html[data-ui="v4"] .header-left {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  html[data-ui="v4"] .header-right {
    position: relative;
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: 0;
    z-index: 3;
  }

  html[data-ui="v4"] .header-center,
  html[data-ui="v4"] .wef-logo,
  html[data-ui="v4"] .header-subtitle {
    display: none !important;
  }

  html[data-ui="v4"] .pole-mark {
    flex-shrink: 0;
  }

  html[data-ui="v4"] .pole-mark-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 12px;
    min-height: 34px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  html[data-ui="v4"] .nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--v4-border-subtle);
    border-radius: 12px;
    background: var(--v4-surface);
    color: var(--v4-ink);
    cursor: pointer;
  }

  html[data-ui="v4"] .nav-menu-btn-bars,
  html[data-ui="v4"] .nav-menu-btn-bars::before,
  html[data-ui="v4"] .nav-menu-btn-bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
  }

  html[data-ui="v4"] .nav-menu-btn-bars {
    position: relative;
  }

  html[data-ui="v4"] .nav-menu-btn-bars::before,
  html[data-ui="v4"] .nav-menu-btn-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  html[data-ui="v4"] .nav-menu-btn-bars::before { top: -5px; }
  html[data-ui="v4"] .nav-menu-btn-bars::after { top: 5px; }

  html[data-ui="v4"] body.v4-nav-open .nav-menu-btn-bars {
    background: transparent;
  }

  html[data-ui="v4"] body.v4-nav-open .nav-menu-btn-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  html[data-ui="v4"] body.v4-nav-open .nav-menu-btn-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  html[data-ui="v4"] .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    width: min(220px, calc(100vw - 20px));
    min-height: 0;
    padding: 8px;
    gap: 4px;
    background: var(--v4-surface);
    border: 1px solid var(--v4-border);
    border-radius: 16px;
    box-shadow: var(--v4-shadow);
  }

  html[data-ui="v4"] body.v4-nav-open .nav {
    display: flex;
  }

  html[data-ui="v4"] .nav a {
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  html[data-ui="v4"] .walk-film-frame {
    min-height: 56svh;
  }

  html[data-ui="v4"] body.v4-has-rail .walk-film-frame,
  html[data-ui="v4"] body.v4-has-rail .collection-hero,
  html[data-ui="v4"] body.v4-has-rail .box-hero-preview {
    min-height: var(--hero-h) !important;
    height: var(--hero-h);
    max-height: var(--hero-h);
    padding: 0;
  }

  html[data-ui="v4"] .pole-overview-hook-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-ui="v4"] .pole-overview-hook {
    padding-inline: 0;
  }

  html[data-ui="v4"] .pole-overview-hook-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  html[data-ui="v4"] .pole-overview-hook-tag,
  html[data-ui="v4"] .pole-overview-hook-kicker {
    white-space: nowrap;
    letter-spacing: 0.04em;
  }

  html[data-ui="v4"] .pole-overview-lede,
  html[data-ui="v4"] .pole-overview-quote,
  html[data-ui="v4"] .topic-intro,
  html[data-ui="v4"] .collection-hero-text p {
    word-break: normal;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: 0;
  }

  html[data-ui="v4"] body.v4-has-rail .world-rail {
    display: flex;
  }

  html[data-ui="v4"] body.v4-has-rail:not(.walk-film-mode) #container,
  html[data-ui="v4"] body.v4-has-rail.discover-index-mode #collection {
    padding-left: 0;
  }

  html[data-ui="v4"] body.v4-has-rail .dossiers-index-body,
  html[data-ui="v4"] body.v4-has-rail .versus-index-body,
  html[data-ui="v4"] body.v4-has-rail .collection-body {
    padding-left: var(--walk-gutter);
    padding-right: var(--walk-gutter);
  }

  html[data-ui="v4"] body.v4-has-rail .collection-hero-text {
    left: calc(var(--v4-rail-w) + 28px);
    right: 16px;
    bottom: 20px;
    max-width: none;
  }

  html[data-ui="v4"] body.v4-has-rail .collection-hero-text h1 {
    font-size: 28px;
  }

  html[data-ui="v4"] body.v4-has-rail .walk-film-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 8px var(--walk-gutter) 16px calc(var(--v4-rail-w) + var(--walk-gutter));
  }

  html[data-ui="v4"] body.v4-has-rail .walk-film-ghosts {
    top: 33.333%;
    right: var(--walk-gutter);
    transform: translateY(-50%);
  }

  html[data-ui="v4"] .walk-film-dots-wrap {
    display: none;
  }

  html[data-ui="v4"] .walk-film-head {
    gap: 0;
    padding-right: 104px;
  }

  html[data-ui="v4"] .walk-film-head .walk-film-title {
    font-size: 22px;
    line-height: 1.15;
    min-height: calc(1.15em * 2);
  }

  html[data-ui="v4"] .walk-film-head .walk-film-kicker,
  html[data-ui="v4"] .walk-film-head .walk-film-kicker-tags {
    flex-wrap: nowrap;
    gap: 5px;
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  html[data-ui="v4"] .walk-film-head .walk-film-kicker-tag,
  html[data-ui="v4"] .walk-film-head .walk-film-kicker-tags .walk-film-kicker-link,
  html[data-ui="v4"] .walk-film-head .walk-film-kicker-tags .walk-film-kicker-topic {
    padding: 3px 8px;
  }

  html[data-ui="v4"] .walk-film-overlay > .walk-film-caption {
    position: absolute;
    top: 50%;
    left: calc(var(--v4-rail-w) + var(--walk-gutter));
    right: var(--walk-gutter);
    width: auto;
    margin: 0;
    max-width: none;
    max-height: calc(50% - 56px);
    overflow: hidden;
  }

  html[data-ui="v4"] .walk-film-overlay > .walk-film-enter-link,
  html[data-ui="v4"] .walk-film-overlay > .carousel-bridge-preview {
    position: absolute;
    left: calc(var(--v4-rail-w) + var(--walk-gutter));
    right: var(--walk-gutter);
    bottom: 16px;
    margin: 0;
  }

  html[data-ui="v4"] .walk-film-overlay > .walk-film-enter-link {
    right: auto;
    padding: 8px 14px;
    font-size: 11px;
  }

  html[data-ui="v4"] .walk-film-overlay > .carousel-bridge-preview {
    max-width: none;
  }

  html[data-ui="v4"] .block-box-cell-label {
    padding: 4px 5px;
    font-size: 9px;
  }

  html[data-ui="v4"] .world-sheet {
    padding: 0;
  }

  html[data-ui="v4"] .world-sheet-panel {
    padding: 12px;
  }

  html[data-ui="v4"] .world-sheet-grid {
    grid-template-columns: 1fr 1fr;
  }

  html[data-ui="v4"] .world-sheet-grid .block-box-cell,
  html[data-ui="v4"] .world-sheet-cell {
    min-height: 22svh;
  }

  html[data-ui="v4"] .v4-photo-rail .home-rail-track {
    grid-template-columns: 1fr;
  }
}

/* iPad + desktop: pills/title from mid-hero, arrows vertically centered */
@media (min-width: 768px) {
  html[data-ui="v4"] body.v4-has-rail .walk-film-frame {
    padding: 0;
  }

  html[data-ui="v4"] body.v4-has-rail .walk-film-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 0 calc(var(--walk-gutter) + 104px) 24px calc(var(--v4-rail-w) + var(--walk-gutter));
  }

  html[data-ui="v4"] body.v4-has-rail .walk-film-ghosts {
    top: 50%;
    right: var(--walk-gutter);
    transform: translateY(-50%);
  }

  html[data-ui="v4"] .walk-film-dots-wrap {
    flex: 0 0 50%;
    height: 50%;
    min-height: 50%;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
  }

  html[data-ui="v4"] .walk-film-dots-wrap .walk-film-dots {
    display: none;
  }

  html[data-ui="v4"] .walk-film-head {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
  }

  html[data-ui="v4"] .walk-film-overlay > .walk-film-caption {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  html[data-ui="v4"] .walk-film-overlay > .walk-film-enter-link,
  html[data-ui="v4"] .walk-film-overlay > .carousel-bridge-preview {
    position: absolute;
    left: calc(var(--v4-rail-w) + var(--walk-gutter));
    right: var(--walk-gutter);
    bottom: 24px;
    margin: 0;
  }

  html[data-ui="v4"] .walk-film-overlay > .walk-film-enter-link {
    right: auto;
  }
}

/* iPad */
@media (min-width: 768px) and (max-width: 1199px) {
  html[data-ui="v4"] {
    --walk-gutter: clamp(16px, 3vw, 32px);
  }

  html[data-ui="v4"] .v4-photo-rail .home-rail-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ui="v4"] .header-center,
  html[data-ui="v4"] .wef-logo,
  html[data-ui="v4"] .header-subtitle {
    display: none !important;
  }

  html[data-ui="v4"] .walk-film-frame {
    min-height: 48svh;
  }

  html[data-ui="v4"] .world-rail-cell {
    min-height: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
  html[data-ui="v4"] {
    --walk-gutter: 20px;
  }

  html[data-ui="v4"] .walk-film-frame {
    min-height: calc(100svh - var(--v4-header-h) - 8px);
  }

  html[data-ui="v4"] .world-rail-cell {
    min-height: 0;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  html[data-ui="v4"] {
    --walk-gutter: clamp(20px, 4.5vw, 72px);
  }

  html[data-ui="v4"] .v4-photo-rail .home-rail-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  html[data-ui="v4"] .v4-photo-rail .home-rail-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .pole-overview > .pole-overview-hook,
  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .fact-card-stack {
    padding-left: calc(var(--v4-rail-w) + var(--walk-gutter));
    padding-right: var(--walk-gutter);
  }

  html[data-ui="v4"] .walk-film .walk-film-deepen-panel .pole-overview-hook-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .pole-overview > .pole-overview-hook .pole-overview-hook-panel,
  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .fact-card-stack .pole-overview-hook-panel {
    padding-left: 0;
    padding-right: 0;
  }

  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .pole-overview > .pole-overview-hook .pole-overview-hook-panel--lede,
  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .fact-card-stack .pole-overview-hook-panel--lede {
    padding-left: 0;
    padding-right: var(--walk-gutter);
  }

  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .pole-overview > .pole-overview-hook .pole-overview-hook-panel--quote,
  html[data-ui="v4"] .walk-film .walk-film-deepen-panel > .fact-card-stack .pole-overview-hook-panel--quote {
    padding-left: var(--walk-gutter);
    padding-right: 0;
  }
}

@media (min-width: 1200px) {
  html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-hook,
  html[data-ui="v4"] .walk-film-deepen-panel .pole-overview-hook-grid {
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui="v4"]::view-transition-old(world-cross),
  html[data-ui="v4"]::view-transition-new(world-cross) {
    animation: none !important;
  }
}
