/* OpenConstruction Academy draft.
   A light, quiet product page: white and pale-grey grounds, one blue for action,
   big type with generous air. Two colours still carry meaning everywhere:
   --core is what every market shares, --local is what national rules change.
   The page commits to a light look on purpose, so it paints every colour itself. */

:root {
  color-scheme: light;
  --ground: #ffffff;
  --alt: #f5f5f7;
  --surface: #ffffff;
  --sunk: #f0f0f3;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --rule: #e3e3e8;
  --rule-2: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --core: #0071e3;
  --core-soft: #e9f2fd;
  --local: #0e9384;
  --local-ink: #067a6d;
  --local-soft: #e2f5f2;
  --band: #1d1d1f;
  --good: #177a33;
  --good-soft: #e7f5ea;
  --warn: #b25000;
  --warn-soft: #fff2e3;
  --focus: #0071e3;
  --scrim: rgba(29, 29, 31, 0.72);
  --live: #e0352b;
  --production: #a35400;
  --planned: #6a45cc;
  --planned-soft: #f1ecfd;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 40px rgba(0, 0, 0, 0.09);
  /* Text on heat cells: mid = 55-80% intensity, hi = above 80%. */
  --on-heat-mid: #1d1d1f;
  --on-heat-hi: #1d1d1f;

  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --f-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.footer :focus-visible, .vh :focus-visible { outline-color: #8ab8ff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--ground); font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
@media (max-width: 720px) { html { scroll-padding-top: 88px; } }
#app:focus, #main:focus { outline: none; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 22px; }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: 19px; letter-spacing: -0.016em; line-height: 1.25; }
p { margin: 0; }

/* Small labels: sentence case, body face. */
.eyebrow, .kicker { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink-3); }
.kicker { color: var(--local-ink); }

.link-more { display: inline-flex; align-items: center; gap: 2px; color: var(--link); text-decoration: none; font-size: 17px; font-weight: 400; }
.link-more::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); margin-left: 3px; transition: transform 160ms ease; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-more:hover::after { transform: translate(2px, -1px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; view-transition-name: topbar;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.topbar-row { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; color: var(--ink); }
.wordmark b { font-weight: 600; color: var(--ink-3); }
.wm-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent) 0%, var(--local) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 980px; color: var(--ink-2); font-size: 14px; transition: background 160ms ease, color 160ms ease; }
.nav a:hover { color: var(--ink); background: var(--alt); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--alt); }
.topbar-end { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 980px; background: var(--alt); }
.lang-switch a { font-size: 12px; font-weight: 600; text-decoration: none; padding: 3px 9px; border-radius: 980px; color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.draft-chip { font-size: 12px; font-weight: 500; color: var(--warn); background: var(--warn-soft); padding: 3px 10px; border-radius: 980px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-weight: 400; font-size: 16px; line-height: 1.2; padding: 11px 22px; border-radius: 980px;
  background: var(--accent); color: #fff; border: 0; transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn.btn-lg { font-size: 17px; padding: 13px 26px; }
.btn.ghost { background: var(--alt); color: var(--ink); }
.btn.ghost:hover { background: var(--sunk); }

/* ---------- hero ---------- */
.hero { padding-block: 72px 0; text-align: center; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, var(--alt) 100%); }
.hero-inner { display: grid; justify-items: center; gap: 18px; }
.hero-kicker { font-size: 17px; font-weight: 600; color: var(--local-ink); letter-spacing: -0.01em; }
.hero-title { font-size: clamp(42px, 7.6vw, 84px); font-weight: 700; letter-spacing: -0.034em; line-height: 1.02; max-width: 16ch; }
.hero-sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--ink-2); max-width: 36ch; letter-spacing: -0.014em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 10px; }
.hero-stage { position: relative; height: clamp(220px, 34vw, 420px); margin-top: 56px; max-width: 1040px; margin-inline: auto; padding-inline: 22px; }
.hs-cover { position: absolute; bottom: -8%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--band); box-shadow: var(--shadow-lift); max-width: 100%; }
.hs-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-cover.center { left: 50%; width: min(64%, 680px); z-index: 2; bottom: -4%; }
.hs-cover.side { width: min(42%, 440px); opacity: 0.9; }
/* --fan runs 0 to 1 as the hero scrolls away (motion.js); at 0 the covers sit exactly as drawn. */
.hs-cover.center { transform: translateX(-50%) scale(calc(1 + var(--fan, 0) * 0.05)); }
.hs-cover.left { left: 4%; transform: translate(calc(var(--fan, 0) * -9%), calc(-12% + var(--fan, 0) * 10%)) rotate(calc(-3deg - var(--fan, 0) * 5deg)); }
.hs-cover.right { right: 4%; transform: translate(calc(var(--fan, 0) * 9%), calc(-12% + var(--fan, 0) * 10%)) rotate(calc(3deg + var(--fan, 0) * 5deg)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: 60ms; }
  .hero-inner > :nth-child(3) { animation-delay: 120ms; }
  .hero-inner > :nth-child(4) { animation-delay: 180ms; }
  .hero-inner > :nth-child(5) { animation-delay: 240ms; }
  /* The headline comes into focus instead of sliding. */
  .hero-inner > .hero-title { animation: focus-in 1100ms 90ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-stage { animation: rise 900ms 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  /* The side covers are dealt out from behind the centre one. */
  .hs-cover.left { animation: deal-left 1100ms 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hs-cover.right { animation: deal-right 1100ms 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hs-cover img { transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .hero-stage:hover .hs-cover.center img { transform: scale(1.03); }
  @keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes focus-in { from { opacity: 0.001; filter: blur(14px); transform: translateY(8px) scale(0.985); } to { opacity: 1; filter: none; transform: none; } }
  @keyframes deal-left { from { translate: 55% 6%; rotate: 3deg; opacity: 0.001; } }
  @keyframes deal-right { from { translate: -55% 6%; rotate: -3deg; opacity: 0.001; } }
}
.hint { margin: 14px auto 0; font-size: 14px; color: var(--ink-3); text-align: center; }
.hint button { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section.alt { background: var(--alt); }
.sec-head { display: grid; justify-items: center; gap: 12px; text-align: center; margin: 0 auto 44px; max-width: 760px; }
.sec-head p:not(.kicker) { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.sec-head .kicker { font-size: 17px; }
.sec-head .link-more { margin-top: 2px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.section-head p { color: var(--ink-2); max-width: 62ch; margin-top: 6px; }

/* ---------- role picker ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.role-tile {
  position: relative; display: grid; gap: 4px; align-content: start; text-decoration: none; padding: 18px 20px 18px;
  border-radius: var(--radius); background: var(--alt); border: 2px solid transparent; min-height: 92px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.role-tile:hover { background: var(--sunk); }
.role-tile[aria-current="true"] { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.role-tile[aria-current="true"]::after {
  content: ""; position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.role-tile { min-width: 0; }
.rt-name { overflow-wrap: anywhere; hyphens: auto; font-weight: 600; font-size: 17px; letter-spacing: -0.016em; line-height: 1.25; padding-right: 24px; }
.rt-count { font-size: 13.5px; color: var(--ink-3); }
.market-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: -18px 0 28px; font-size: 17px; }
.market-pick select { appearance: none; -webkit-appearance: none; padding: 9px 36px 9px 16px; border-radius: 980px; border: 1px solid var(--rule-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 11px no-repeat; cursor: pointer; }

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; margin: -8px 0 40px; text-align: center; }
.stats div { display: grid; gap: 2px; }
.stats b { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats small { font-size: 0.45em; color: var(--ink-3); letter-spacing: 0; }
.stats span { font-size: 14px; color: var(--ink-3); }

/* ---------- chips and badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.3;
  padding: 4px 10px; border-radius: 980px; border: 0; color: var(--ink-2); background: var(--sunk);
  white-space: nowrap; text-decoration: none; max-width: 100%;
}
button.chip { cursor: pointer; }
a.chip:hover, button.chip:hover { background: var(--rule); color: var(--ink); }
.chip.core { background: var(--core-soft); color: var(--core); }
.chip.local { background: var(--local-soft); color: var(--local-ink); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; font-size: 12px; font-weight: 600; line-height: 1.3; padding: 2px 9px 2px 7px; border-radius: 980px; white-space: nowrap; vertical-align: 1px; }
.badge.local { background: var(--local-soft); color: var(--local-ink); }
.badge.local::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--local); }
.iso { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }

/* ---------- start card ---------- */
.start {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--surface); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 64px;
}
.start.no-cover { grid-template-columns: minmax(0, 1fr); padding: 36px; }
.start .thumb { border-radius: 18px; }
.start-body { display: grid; gap: 12px; justify-items: start; padding-right: 18px; }
.start h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.028em; line-height: 1.12; }
.start p:not(.kicker) { color: var(--ink-2); font-size: 17px; }
.start .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.thumb .play, .player .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease;
}
.thumb .play::after, .player .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 19px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.thumb:hover .play, .player:hover .play { transform: translate(-50%, -50%) scale(1.07); }

/* ---------- the route ---------- */
.route-bar { display: grid; justify-items: center; gap: 14px; margin-bottom: 30px; text-align: center; }
.legend { font-size: 14px; color: var(--ink-3); line-height: 1.8; }
.legend .lg-swatch, .legend .lg-dot, .legend .lg-film, .legend .lg-ring { vertical-align: -1px; margin: 0 3px 0 6px; }
.route-bar .legend { max-width: 62ch; }
.legend a { color: var(--link); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 980px; background: var(--sunk); }
.section.alt .seg { background: #e8e8ed; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 980px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 160ms ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stage { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 32px; padding: 28px; border-radius: 24px; background: var(--alt); }
.section.alt .stage { background: var(--surface); }
.stage-head { display: grid; gap: 6px; align-content: start; }
.stage-num { font-size: 13px; font-weight: 600; color: var(--accent); }
.stage-head h3 { font-size: 22px; letter-spacing: -0.022em; }
.stage-head p { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.stage-count { font-size: 13px; color: var(--ink-2); font-weight: 500; margin-top: 4px; }
.stage.is-quiet { grid-template-columns: minmax(0, 1fr); padding-block: 20px; background: transparent; border: 1px dashed var(--rule-2); }
.stage.is-quiet .stage-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
.stage.is-quiet .stage-head p { grid-column: 2; }
.stage.is-quiet .stage-head .stage-count { grid-column: 2; margin: 0; color: var(--ink-3); font-weight: 400; }
.stage.is-quiet h3 { font-size: 18px; color: var(--ink-3); }
.stage.is-quiet .stage-num { color: var(--ink-3); }
.stage-body { display: grid; gap: 14px; align-content: start; min-width: 0; }

.film-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }

.film-tile { display: grid; gap: 6px; text-decoration: none; min-width: 0; }
.film-tile .thumb { border-radius: 14px; transition: transform 240ms ease, box-shadow 240ms ease; }
.film-tile:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.film-tile .thumb img { transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.film-tile:hover .thumb img { transform: scale(1.06); }
.ft-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.film-tile .t { font-weight: 600; font-size: 16px; letter-spacing: -0.014em; line-height: 1.3; }
.film-tile:hover .t { color: var(--link); }

.case-card {
  display: grid; gap: 6px; align-content: start; height: 100%; text-decoration: none; padding: 14px 16px; border-radius: 14px;
  background: var(--alt); transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.case-card:hover { background: var(--surface); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.case-card .t { font-weight: 500; font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; }
.case-card .m { font-size: 12.5px; color: var(--ink-3); }
/* On grey grounds the card turns white. */
.panel .case-card, .drawer .case-card, .section.alt .case-card { background: var(--surface); }
.stage .case-card { background: var(--surface); }
.section.alt .stage .case-card { background: var(--alt); }
.stage .case-card:hover, .section.alt .stage .case-card:hover { background: var(--surface); }

.film-card {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none;
  background: var(--surface); border-radius: 14px; padding: 8px; transition: box-shadow 160ms ease;
}
.film-card:hover { box-shadow: var(--shadow-lift); }
.film-text, .film-text .t, .film-text .o { display: block; min-width: 0; }
.film-card .t { font-weight: 600; line-height: 1.3; font-size: 15px; }
.film-card .o { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.film-card .chips { margin-top: 8px; }
.film-card .chip { white-space: normal; }

.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--band); max-width: 100%; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; background: var(--scrim); padding: 2px 7px; border-radius: 980px; backdrop-filter: blur(6px); }

.more { background: none; border: 0; padding: 4px 0; color: var(--link); font-size: 15px; cursor: pointer; text-align: left; justify-self: start; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- film rail ---------- */
.rail {
  list-style: none; margin: 0; padding: 4px max(22px, calc((100vw - 1120px) / 2 + 22px)) 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 330px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, calc((100vw - 1120px) / 2 + 22px)); scrollbar-width: none;
}
/* The rail bar under it (arrows, progress) replaces the native scrollbar; wheel, touch and keys still scroll. */
.rail::-webkit-scrollbar { display: none; }
.rail li { scroll-snap-align: start; min-width: 0; }
.rail .thumb { border-radius: 18px; }
.rail .film-tile .t { font-size: 17px; }

/* ---------- market bars (international) ---------- */
.bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.bar:hover { background: var(--alt); }
.bar[aria-current="true"] { background: var(--local-soft); }
.bar .name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .track { display: block; height: 6px; border-radius: 3px; background: var(--sunk); margin-top: 5px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--local); border-radius: 3px; }
.bar .n { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- markets page ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.market { display: grid; gap: 10px; align-content: start; text-decoration: none; background: var(--alt); border-radius: var(--radius); padding: 20px; transition: box-shadow 160ms ease, background 160ms ease; }
.market:hover { background: var(--surface); box-shadow: var(--shadow-lift); }
.market-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.market-top .iso { font-size: 20px; color: var(--local-ink); }
.market h3 { font-size: 19px; }
.market .counts { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.market.core-market .iso { color: var(--core); }

/* ---------- toolbars and fields ---------- */
.toolbar, .explore-tools { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin-bottom: 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field select, .field input {
  appearance: none; -webkit-appearance: none; background: var(--alt); border: 1px solid transparent; border-radius: 12px;
  padding: 10px 14px; min-width: 0; max-width: 100%; font-size: 15px; transition: background 160ms ease, border-color 160ms ease;
}
.field select { padding-right: 36px; cursor: pointer; background: var(--alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 11px no-repeat; }
.field select:hover, .field input:hover { background-color: var(--sunk); }
.field input:focus, .field select:focus { background-color: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.field input { width: min(420px, 100%); }
.toolbar .field:first-child:has(input) { flex-basis: 100%; }
.toolbar .field:first-child input { width: min(640px, 100%);  font-size: 17px; padding: 13px 16px 13px 42px; background: var(--alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%236e6e73' stroke-width='1.8'/%3E%3Cpath d='M13 13l4 4' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 15px center / 18px no-repeat; }

/* ---------- detail pages ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.detail-head { display: grid; gap: 16px; padding-block: 48px 12px; }
.detail-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; max-width: 22ch; }
.detail-head .lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 60ch; letter-spacing: -0.012em; }
.detail-head .cta-row { margin-top: 6px; }
.original { font-size: 17px; color: var(--ink-3); font-style: italic; }
.section.wrap > .detail-head { padding-top: 0; }
section.wrap { padding-bottom: 40px; }

.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.panel { background: var(--alt); border: 0; border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 18px; margin-bottom: 12px; }

.player { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--band); aspect-ratio: 16 / 9; max-width: 100%; box-shadow: var(--shadow-lift); }
.player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .play { width: 84px; height: 84px; }
.player .play::after { left: 34px; top: 26px; border-left-width: 24px; border-top-width: 16px; border-bottom-width: 16px; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.produces p:not(.eyebrow) { font-size: 17px; color: var(--ink-2); }

.chapters { list-style: none; margin: 0 -8px; padding: 0; display: grid; max-height: 460px; overflow: auto; }
.chapters a { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.chapters a:hover { background: var(--surface); color: var(--link); }
.chapters .tc { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 22px 24px 22px 20px; border-radius: var(--radius); background: var(--alt); }
.step .n { font-size: 15px; font-weight: 600; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--line, var(--core)); }
.step h3 { font-size: 19px; padding-top: 6px; }
.step .what { color: var(--ink-2); margin-top: 8px; max-width: 66ch; font-size: 16px; }
.io { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 16px; }
.io .arrow { display: none; }
.io > div { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.io .eyebrow { font-size: 12.5px; }
.io .out .eyebrow { color: var(--good); }
.io ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.io li { font-size: 14px; line-height: 1.4; padding-left: 14px; position: relative; }
.io li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--rule-2); }
.io .out li::before { background: var(--good); }
.module { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
details.why { margin-top: 10px; }
details.why summary { cursor: pointer; font-size: 15px; color: var(--link); width: fit-content; list-style: none; }
details.why summary::-webkit-details-marker { display: none; }
details.why summary::after { content: "›"; display: inline-block; margin-left: 6px; transition: transform 160ms ease; }
details.why[open] summary::after { transform: rotate(90deg); }
details.why p { margin-top: 8px; color: var(--ink-2); max-width: 66ch; }

.related, .drawer-grid { display: grid; gap: 10px; }
.drawer-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stop { position: relative; min-width: 0; }

.note { font-size: 14px; color: var(--ink-3); }
.note.center { margin: -40px auto 44px; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* ---------- library ---------- */
.results { display: grid; gap: 8px; }
.result {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 14px; background: var(--alt); text-decoration: none; transition: background 160ms ease, box-shadow 160ms ease;
}
.result:hover { background: var(--surface); box-shadow: var(--shadow-lift); }
.result .t { font-weight: 600; letter-spacing: -0.01em; }
.result .s { font-size: 14px; color: var(--ink-3); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result .kind { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--core-soft); color: var(--core); }
.result .kind.film { background: var(--ink); color: #fff; }
.count-line { margin-bottom: 14px; font-size: 15px; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { background: var(--alt); border-top: 1px solid var(--rule); padding-block: 28px 44px; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.footer-row { display: grid; gap: 10px; }
.footer p { max-width: 90ch; }
.footer b { color: var(--ink-2); font-weight: 600; }

/* ================= explore ================= */
.explore-hero { padding-block: 56px 36px; text-align: center; }
.explore-hero .wrap { display: grid; justify-items: center; gap: 12px; }
.explore-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.042em; }
.explore-hero .hero-sub { font-size: clamp(18px, 2vw, 21px); max-width: 44ch; }
.explore-hero .kicker { font-size: 17px; }
.mode-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; padding: 5px; border-radius: 980px; background: var(--alt); max-width: 100%; }
.mode-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 980px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.mode-tab .glyph { width: 20px; height: 20px; color: var(--ink-3); }
.mode-tab:hover { color: var(--ink); }
.mode-tab[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.mode-tab[aria-current="true"] .glyph { color: var(--accent); }
#explore-body { padding-top: 16px; }

/* Any number of modes fills an auto grid; the five of today get the 3 + 2 composition. */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.modes[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.modes[data-n="5"] .mode { grid-column: span 2; }
.modes[data-n="5"] .mode:nth-child(-n + 2) { grid-column: span 3; }
.mode {
  position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; text-decoration: none; padding: 28px;
  border-radius: 24px; background: var(--surface); color: var(--ink); min-height: 230px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mode .glyph { width: 40px; height: 40px; color: var(--accent); margin-bottom: 8px; }
.mode:nth-child(1) .glyph, .mode:nth-child(4) .glyph { color: var(--local); }
.mode-name { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.mode-line { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.mode-go { color: var(--link); font-size: 16px; }
.mode-go::after { content: " ›"; }

.lg-swatch { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.lg-film { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--ink); }
.lg-ring { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--core); background: var(--surface); }

/* hive */
.hive { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hive-map { background: var(--alt); border-radius: var(--radius); padding: 14px; }
.hive-map svg { display: block; width: 100%; height: auto; }
.hex path { stroke: var(--surface); stroke-width: 3; transition: transform 180ms ease, stroke 180ms ease; transform-box: fill-box; transform-origin: center; }
.hex.is-empty path { stroke: var(--rule-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.hex:hover path, .hex:focus path, .hex.is-focus path { stroke: var(--ink); stroke-width: 2.5; transform: scale(1.04); }
.hex:focus { outline: none; }
.hx-iso { font-family: var(--f-mono); font-size: 16px; font-weight: 500; text-anchor: middle; letter-spacing: 0.04em; pointer-events: none; }
.hx-n { font-family: var(--f-display); font-size: 24px; font-weight: 600; text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.hx-film { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.hx-film-n { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.hive-panel { position: sticky; top: 72px; }
.hp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hp-iso { font-size: 34px; color: var(--local-ink); line-height: 1; }
.hp-title { font-size: 24px; }
.hp-count { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hp-count b { font-family: var(--f-display); font-size: 19px; color: var(--ink); font-weight: 600; }

.spark { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; height: 88px; margin-top: 14px; align-items: end; }
.spark-col { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; gap: 4px; }
.spark-bar { display: block; border-radius: 4px 4px 2px 2px; min-height: 0; }
.spark-lab { font-size: 10px; color: var(--ink-3); text-align: center; }

/* matrix */
.matrix-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--alt); padding: 8px; }
.matrix { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 760px; }
.matrix th { font-weight: 500; font-size: 13.5px; color: var(--ink-2); text-align: left; padding: 6px 10px; white-space: nowrap; }
.matrix thead th { font-size: 12.5px; text-align: center; color: var(--ink-3); }
.matrix thead th .mono { display: block; font-size: 11px; color: var(--ink-3); }
.matrix thead th:first-child { text-align: left; }
.matrix tbody th { position: sticky; left: 0; background: var(--alt); z-index: 1; }
.matrix tbody th .iso { display: inline-block; width: 44px; font-size: 11.5px; color: var(--ink-3); }
.matrix td { padding: 0; }
.cell {
  position: relative; width: 100%; min-width: 56px; height: 42px; border: 2px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: transform 140ms ease;
}
.cell.is-zero { color: var(--ink-3) !important; font-weight: 400; background: transparent; border: 1px dashed var(--rule-2); }
.cell:hover { transform: scale(1.05); }
.cell.is-on { border-color: var(--ink); }
.cell-film { position: absolute; right: 5px; top: 5px; width: 9px; height: 7px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 1.5px var(--surface); }
.matrix .total { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: right; padding-inline: 10px; font-variant-numeric: tabular-nums; }
.matrix tr.is-mine th { color: var(--ink); font-weight: 700; }
.drawer { margin-top: 16px; }

/* moments */
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest .chip { font-size: 13px; padding: 6px 12px; }
.moment { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px; border-radius: var(--radius); transition: opacity 160ms ease, background 160ms ease; }
.moment + .moment { margin-top: 4px; }
.moment:hover { background: var(--alt); }
.moment.is-dim { opacity: 0.42; }
.moment.is-dim:hover { opacity: 1; }
.moment-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.moment-head .t { font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -0.012em; }
.moment-head .t:hover { color: var(--link); }
.timeline { position: relative; height: 28px; margin-top: 12px; min-width: 120px; }
.tl-rail { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--rule); }
.tick { position: absolute; top: 6px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--rule-2); }
.tick:hover { background: var(--ink); height: 20px; top: 4px; }
.tick.is-hit { background: var(--accent); width: 5px; margin-left: -2px; height: 24px; top: 2px; box-shadow: 0 0 0 2px var(--surface); }
.tick:hover::after, .tick:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; z-index: 3; pointer-events: none;
}
.hits { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.hits a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; text-decoration: none; font-size: 15px; padding: 5px 8px; border-radius: 8px; }
.hits a:hover { background: var(--core-soft); }
.hits .tc { font-family: var(--f-mono); font-size: 12.5px; color: var(--accent); padding-top: 2px; }

/* results */
.result-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.result-tile {
  display: grid; gap: 6px; text-align: left; cursor: pointer; padding: 18px; border-radius: var(--radius);
  background: var(--alt); border: 2px solid transparent; transition: background 160ms ease, box-shadow 160ms ease;
}
.result-tile:hover { background: var(--surface); box-shadow: var(--shadow-lift); }
.result-tile.is-on { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.rt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rt-label { font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.rt-n { font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.rt-sub { font-size: 13px; color: var(--ink-3); }
.rt-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--sunk); margin-top: 6px; }
.rt-bar span { display: block; height: 100%; }
.rt-meta { color: var(--ink-3); font-size: 12px; font-family: var(--f-body); }
.re-group { margin-top: 20px; }
.re-group-head { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.re-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.re-item { display: grid; gap: 8px; text-decoration: none; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 3px 0 0 var(--line); transition: box-shadow 160ms ease; }
.re-item:hover { box-shadow: inset 3px 0 0 var(--line), var(--shadow-lift); }
.re-item .t { font-weight: 500; line-height: 1.35; }
.finish { display: flex; flex-wrap: wrap; gap: 4px; }
.finish span { font-size: 12.5px; padding: 2px 8px; border-radius: 980px; background: var(--good-soft); color: var(--good); }

/* graph */
.graph-wrap { position: relative; padding: 0; overflow: hidden; background: var(--alt); }
#graph { display: block; width: 100%; height: 640px; }
.graph-tip {
  position: absolute; z-index: 2; max-width: 240px; display: grid; gap: 2px; pointer-events: none;
  background: rgba(29, 29, 31, 0.92); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lift);
}
.graph-tip .eyebrow { color: inherit; opacity: 0.7; font-size: 11px; }
.graph-tip .note { color: inherit; opacity: 0.75; }

/* ================= series ================= */
.series-facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 10px; }
.series-facts div { display: grid; gap: 2px; }
.series-facts b { font-family: var(--f-display); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.series-facts span { font-size: 14px; color: var(--ink-3); }
.series-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.series-item { display: grid; grid-template-columns: 40px minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--alt); border-radius: 24px; padding: 18px 24px 18px 18px; }
.series-item .thumb { border-radius: 14px; }
.series-no { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); text-align: center; }
.series-body { display: grid; gap: 8px; justify-items: start; }
.series-body h3 { font-size: 22px; letter-spacing: -0.022em; }
.series-body h3 a { text-decoration: none; }
.series-body h3 a:hover { color: var(--link); }
.series-body p { color: var(--ink-2); }
.series-body .note { color: var(--ink-3); }
.series-body .original { color: var(--ink-3); }

.fresh { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 980px; font-size: 11.5px; font-weight: 600; vertical-align: 1px; color: var(--warn); background: var(--warn-soft); white-space: nowrap; hyphens: none; }

/* Normen-Fahrplan: rules as rows, the eight stages as columns, dots sized by count. */
.matrix.normen { min-width: 920px; }
.matrix.normen tbody th { width: 300px; white-space: normal; }
.norm-name { display: grid; gap: 3px; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 12px; cursor: pointer; width: 100%; }
.norm-name b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.norm-name span { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; hyphens: auto; }
.norm-name:hover { background: var(--surface); }
.matrix.normen tr.is-on th .norm-name { background: var(--surface); box-shadow: inset 3px 0 0 var(--local); }
.matrix.normen tr.is-on th .norm-name b { color: var(--local-ink); }
.matrix.normen td { text-align: center; vertical-align: middle; height: 62px; }
.norm-rail { display: block; height: 1px; margin-inline: 10px; background: var(--rule-2); }
.norm-dot { position: relative; display: inline-grid; place-items: center; width: 100%; min-width: 56px; height: 56px; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.norm-dot:hover { background: var(--surface); }
.norm-dot .nd { display: grid; place-items: center; border-radius: 50%; background: #dcdce1; color: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: transform 160ms ease; }
.norm-dot:hover .nd { transform: scale(1.08); }
.norm-dot.is-mine .nd { background: var(--local); color: #fff; }

/* ================= growth: premiere clock, rails, spines ================= */
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 7px 16px 7px 12px; border-radius: 980px;
  background: var(--alt); color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.35; text-decoration: none; text-align: left;
  font-variant-numeric: tabular-nums; transition: background 160ms ease, color 160ms ease;
}
.live-pill:hover { background: var(--sunk); color: var(--ink); }
.lp-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.live-pill.is-live .lp-dot { background: var(--live); }

.series-strip + .series-strip { padding-top: 0; }
.rail-bar { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.rail-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 30%; border-radius: 3px; background: var(--ink); }
.rail-count { color: var(--ink-3); min-width: 10ch; text-align: right; }
.rail-arrows { display: flex; gap: 10px; }
.rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--alt); color: var(--ink); transition: background 160ms ease, transform 160ms ease, opacity 160ms ease; }
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover:not(:disabled) { background: var(--sunk); }
.rail-btn:active:not(:disabled) { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }

/* The route's stages as one line: dots mark the stages, the fill follows the reader (--spine, motion.js). */
.stages[data-spine] { position: relative; padding-left: 44px; }
.stages[data-spine]::before, .stages[data-spine]::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 36px; width: 2px; border-radius: 2px; }
.stages[data-spine]::before { background: var(--rule-2); }
.stages[data-spine]::after { background: linear-gradient(180deg, var(--accent), var(--local)); transform-origin: top; transform: scaleY(var(--spine, 1)); }
.stages[data-spine] > .stage { position: relative; }
.stages[data-spine] > .stage::before {
  content: ""; position: absolute; left: -35px; top: 31px; width: 14px; height: 14px; border-radius: 50%; z-index: 1;
  background: var(--accent); box-shadow: 0 0 0 4px var(--ground); transition: background 300ms ease, transform 300ms ease;
}
.section.alt .stages[data-spine] > .stage::before { box-shadow: 0 0 0 4px var(--alt); }
.stages[data-spine] > .stage.is-quiet::before { background: var(--rule-2); transform: scale(0.72); }
.stages.spine-live > .stage:not(.is-reached)::before { background: var(--rule-2); transform: scale(0.72); }

/* Case steps: the numbers light up in order as the reader passes them. */
.steps[data-spine] { position: relative; }
.steps[data-spine]::before, .steps[data-spine]::after { content: ""; position: absolute; left: 37px; top: 40px; bottom: 40px; width: 2px; border-radius: 2px; }
.steps[data-spine]::before { background: var(--rule-2); }
.steps[data-spine]::after { background: var(--line, var(--core)); transform-origin: top; transform: scaleY(var(--spine, 1)); }
.steps.spine-live > .step .n { transition: background 360ms ease; }
.steps.spine-live > .step:not(.is-reached) .n { background: var(--rule-2); }

/* ================= the premiere day ================= */
.day { margin-top: 18px; background: var(--alt); border-radius: 22px; padding: 20px 22px 14px; display: grid; gap: 14px; }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.day-status { font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-track { position: relative; height: 46px; border-radius: 12px; background: var(--surface); }
.day-film {
  position: absolute; top: 7px; bottom: 7px; min-width: 20px; border-radius: 8px; display: grid; place-items: center; text-decoration: none;
  background: var(--core-soft); color: var(--core); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.day-film:hover, .day-film:focus-visible { background: var(--accent); color: #fff; transform: translateY(-2px); z-index: 2; }
.day-film.is-done { background: var(--sunk); color: var(--ink-3); }
.day-film.is-live { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.day-film:hover::after, .day-film:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 8px; pointer-events: none;
}
.day-now { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--live); z-index: 3; pointer-events: none; }
.day-now::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--live); }
.day-scale { position: relative; height: 16px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* ================= chapters along the running time ================= */
.chapter-strip { margin-top: 16px; display: grid; gap: 6px; }
.chapter-bar { display: flex; gap: 3px; height: 10px; }
.chapter-bar a { position: relative; flex: var(--w) 1 0; min-width: 4px; border-radius: 3px; background: color-mix(in oklab, var(--accent) 28%, var(--sunk)); transition: background 160ms ease, transform 160ms ease; }
.chapter-bar a:hover, .chapter-bar a:focus-visible { background: var(--accent); transform: scaleY(1.6); }
.chapter-bar a:hover::after, .chapter-bar a:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) scaleY(0.625); transform-origin: bottom;
  white-space: nowrap; background: var(--ink); color: #fff; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; pointer-events: none; z-index: 3;
}
.chapter-scale { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; }

.series-switch { width: fit-content; }
.series-switch a { text-decoration: none; padding: 7px 16px; border-radius: 980px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.series-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* ================= countries ================= */
.chip.st-films { background: var(--core-soft); color: var(--core); }
.chip.st-production { background: var(--warn-soft); color: var(--warn); }
.chip.st-cases { background: var(--local-soft); color: var(--local-ink); }
.chip.st-planned { background: var(--planned-soft); color: var(--planned); }
.gl-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.gl-dot.st-films { background: var(--accent); }
.gl-dot.st-production { background: var(--production); }
.gl-dot.st-cases { background: var(--local); }
.gl-dot.st-planned { background: var(--planned); }
.chip.st-later { background: var(--sunk); color: var(--ink-3); }
.gl-dot.st-later { background: var(--rule-2); }

.teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.teaser-text { display: grid; gap: 16px; justify-items: start; }
.teaser-text p:not(.kicker) { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.teaser-text .kicker { font-size: 17px; }
.stats.left { justify-content: flex-start; text-align: left; margin: 6px 0 2px; gap: 18px 40px; }
.globe-teaser { display: block; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: center; border-radius: 50%; }
.globe-teaser canvas, .globe-box canvas { display: block; width: 100%; height: 100%; }

.marquee { display: grid; gap: 12px; margin-top: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.mq-group { display: flex; gap: 10px; padding-right: 10px; }
.mq-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 15px; border-radius: 980px; background: var(--alt); font-size: 14px; color: var(--ink-2); }
.section.alt .mq-item { background: var(--surface); }
.mq-item .iso { font-size: 11px; color: var(--local-ink); }

.world-head { padding-block: 64px 8px; text-align: center; }
.world-head .wrap { display: grid; justify-items: center; gap: 16px; }
.world-head .hero-sub { max-width: 44ch; }
.world-stage { padding-block: 28px 88px; }
.world-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.globe-box { position: sticky; top: 72px; display: grid; gap: 14px; justify-items: center; }
.globe-box canvas { width: 100%; max-width: 560px; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe-box canvas:active { cursor: grabbing; }
.globe-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; color: var(--ink-3); }
.gl-item { display: inline-flex; align-items: center; }

.country-panel { background: var(--alt); border-radius: 28px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.cp-top { display: flex; gap: 18px; align-items: center; }
.cp-iso { font-size: 44px; line-height: 1; color: var(--local-ink); }
.cp-name { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 8px; }
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-stats div { display: grid; gap: 2px; background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.cp-stats b { font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cp-stats span { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.cp-prod { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-prod li { display: grid; gap: 2px; background: var(--warn-soft); border-radius: 14px; padding: 12px 14px; }
.cp-prod b { font-weight: 600; }
.cp-prod span { font-size: 13px; color: var(--warn); }
.lang-block { display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.lang-line { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 14px; }
.rings { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ring { display: grid; grid-template-columns: 58px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.ring svg { grid-row: span 2; width: 58px; height: 58px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--rule); stroke-width: 5; }
.ring-fill { fill: none; stroke: var(--local); stroke-width: 5; stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.ring:first-child .ring-fill { stroke: var(--core); }
.ring b { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; align-self: end; font-variant-numeric: tabular-nums; }
.ring span { font-size: 13px; color: var(--ink-3); align-self: start; }
.cp-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 4px; }

.country-groups { display: grid; gap: 28px; margin-top: 56px; }
.country-group h3 { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink-3); margin-bottom: 12px; }
.country-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.country-tile {
  position: relative; overflow: hidden; display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: var(--alt); border: 2px solid transparent; transition: background 160ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.country-tile:hover { background: var(--sunk); transform: translateY(-2px); }
.country-tile[aria-current="true"] { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.ct-iso { font-size: 12px; color: var(--local-ink); }
.ct-name { font-weight: 600; font-size: 16px; letter-spacing: -0.014em; }
.ct-n { font-size: 13px; color: var(--ink-3); }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.roadmap-col { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; background: var(--surface); border-radius: 24px; padding: 24px; }
.rm-kicker { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rm-n { font-family: var(--f-display); font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.roadmap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roadmap li a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--alt); text-decoration: none; transition: background 160ms ease; }
.roadmap li a:hover { background: var(--sunk); }
.roadmap li .iso { font-size: 12px; color: var(--local-ink); padding-top: 2px; }
.roadmap li b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.roadmap li a > span:last-child > span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.roadmap .chips .chip { font-size: 13px; padding: 6px 11px; }

.ready { display: grid; gap: 4px; max-width: 920px; margin-inline: auto; }
.ready-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 12px 16px; border-radius: 14px; text-decoration: none; }
a.ready-row:hover { background: var(--alt); }
.ready-headrow { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-block: 0 4px; }
.rr-name { display: flex; gap: 12px; align-items: center; }
.rr-name .iso { width: 26px; font-size: 12px; color: var(--local-ink); }
.rr-name b { display: block; font-weight: 600; }
.rr-name span span { font-size: 13px; color: var(--ink-3); }
.rr-val { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 12px; align-items: center; }
.rr-lab { display: none; }
.rr-val b { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rb { display: block; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.rb span { display: block; height: 100%; width: var(--v); border-radius: 4px; background: var(--core); }
.rb.local span { background: var(--local); }
.ready-note { max-width: 920px; margin: 20px auto 0; }

/* A soft light follows the pointer across large tiles (motion.js sets --gx and --gy). */
.mode::after, .country-tile::after, .roadmap-col::after, .pipe-step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 113, 227, 0.07), transparent 65%);
}
.mode:hover::after, .country-tile:hover::after, .roadmap-col:hover::after, .pipe-step:hover::after { opacity: 1; }

/* ================= motion (all of it opt-in to no-preference) ================= */
@media (prefers-reduced-motion: no-preference) {
  .rv-in { animation: rv 760ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-delay, 0ms) both; }
  @keyframes rv { from { opacity: 0.001; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  .ready-row.rv-in .rb span { animation: grow 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--rv-delay, 0ms) + 180ms) both; }
  @keyframes grow { from { width: 0; } }
  .lp-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
  @keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
  .marquee-track { animation: marquee 80s linear infinite; }
  .marquee-row.rev .marquee-track { animation-direction: reverse; animation-duration: 95s; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .wall.is-lighting .wall-sq { animation: sq-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 9ms) both; }
  @keyframes sq-in { from { transform: scale(0.2); opacity: 0; } }
  .course-card .cc-marks span.own { transform-origin: left; }
  .course-card:hover .cc-marks span.own { animation: mark-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes mark-in { from { transform: scaleX(0); } }
  .course-grid .course-card:not([hidden]) { animation: pop-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes pop-in { from { opacity: 0; transform: scale(0.97); } }
  .ring-fill { animation: ring 1200ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .ring + .ring .ring-fill { animation-delay: 340ms; }
  @keyframes ring { from { stroke-dasharray: 0 100; } }
  .country-panel.is-swapping { animation: swap 460ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes swap { from { opacity: 0.001; transform: translateY(10px); } }
  .chapter-bar a { animation: seg 520ms calc(var(--i) * 28ms + 200ms) cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes seg { from { transform: scaleY(0); opacity: 0.001; } }
  .steps.spine-live > .step.is-reached .n { animation: pop 440ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes pop { 50% { transform: scale(1.18); } }
  ::view-transition-old(root) { animation: vt-out 160ms ease both; }
  ::view-transition-new(root) { animation: vt-in 340ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  /* the same two rows, standing still and scrolled by hand: a wrapped block of every standard is a wall */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
  .mq-group[aria-hidden="true"] { display: none; }
}


/* ================= courses ================= */
.link-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }

/* A poster is drawn, never a photo we do not have: the course title in its own script on a
   tinted ground, a dotted field that echoes the globe, and one mark per project stage. */
.cc-poster {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; aspect-ratio: 16 / 9; max-width: 100%;
  padding: 18px 20px; border-radius: 18px; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(29, 29, 31, 0.1) 1px, transparent 1.4px) 0 0 / 14px 14px,
    linear-gradient(150deg, var(--poster-a, #f5f5f7), var(--poster-b, #e8e8ed));
}
.cc-poster.st-planned { --poster-a: #f6f2ff; --poster-b: #e4dafb; --poster-ink: var(--planned); }
.cc-poster.st-production { --poster-a: #fff6ea; --poster-b: #fbe2c2; --poster-ink: var(--production); }
.cc-poster.has-cover { padding: 0; display: block; background: var(--band); }
.cc-poster.has-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cc-iso { font-family: var(--f-mono); font-size: 11px; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.75); color: var(--poster-ink, var(--ink)); }
.cc-title { align-self: end; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.cc-marks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.cc-marks span { height: 4px; border-radius: 4px; background: rgba(29, 29, 31, 0.12); }
.cc-marks span.own { background: var(--poster-ink, var(--local)); }

.course-card { display: grid; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.course-card .cc-poster { transition: transform 260ms ease, box-shadow 260ms ease; }
.course-card:hover .cc-poster { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.course-card[hidden] { display: none; }
.cc-body { display: grid; gap: 5px; }
.cc-body .chips { margin-bottom: 2px; }
.cc-name { font-weight: 600; font-size: 18px; letter-spacing: -0.018em; line-height: 1.25; }
.course-card:hover .cc-name { color: var(--link); }
.cc-project { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.cc-meta { font-size: 13px; color: var(--ink-3); }
.course-rail { grid-auto-columns: clamp(270px, 28vw, 350px); }

.hs-poster { background: transparent; }
.hs-poster .cc-poster { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 22px; }
.hs-poster .cc-title { font-size: clamp(16px, 2.2vw, 30px); }

.courses-head { padding-bottom: 20px; }
.course-filter { margin-top: 8px; }
.course-filter .mono { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.course-section { padding-top: 32px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 28px; }
.course-note { margin-top: 36px; max-width: 70ch; }

.pipeline { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: pipe; }
.pipe-step { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 24px; background: var(--surface); }
.pipe-num { color: var(--ink-3); font-size: 13px; }
.pipe-step .gl-dot { position: absolute; top: 28px; right: 24px; width: 11px; height: 11px; margin: 0; }
.pipe-step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pipe-step p { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.pipe-step .chip { text-decoration: none; font-size: 13px; }

.course-hero { padding-block: 40px 56px; }
.course-hero .crumbs { margin-bottom: 26px; }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.course-hero-text { display: grid; gap: 18px; justify-items: start; }
.course-title { font-family: var(--f-display); font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: anywhere; }
.course-hero .lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.course-hero-poster .cc-poster { box-shadow: var(--shadow-lift); border-radius: 26px; padding: 26px 28px; }
.course-hero-poster .cc-title { font-size: clamp(26px, 3vw, 40px); }

.course-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ct-stage { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 20px; background: var(--surface); }
.ct-stage .stage-num { font-size: 12.5px; color: var(--ink-3); }
.ct-stage h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ct-stage ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ct-stage li a { display: block; padding: 8px 10px; border-radius: 10px; background: var(--local-soft); color: var(--local-ink); font-size: 14px; line-height: 1.35; text-decoration: none; }
.ct-stage li a:hover { background: #d3eee9; }
.ct-core { font-size: 13px; color: var(--core); }
.ct-stage:not(.has-own) h3 { color: var(--ink-2); }

.course-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; align-items: start; }
.course-fact { display: grid; gap: 12px; align-content: start; }
.course-fact .chip { text-decoration: none; }
.preview-note { margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: var(--planned-soft); color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 80ch; }
.preview-note b { color: var(--planned); }

/* A course kept for later: the same card, drained of colour, with no link but the request. */
.cc-poster.st-later { --poster-a: #f4f4f6; --poster-b: #e6e6ea; --poster-ink: #8e8e93; color: #8e8e93; }
.cc-poster.st-later .cc-top { color: #8e8e93; }
.cc-poster.st-later .cc-marks span, .cc-poster.st-later .cc-marks span.own { background: rgba(29, 29, 31, 0.09); }
.course-card.is-later { cursor: default; }
.course-card.is-later:hover .cc-poster { transform: none; box-shadow: none; }
.course-card.is-later .cc-name { color: var(--ink-3); }
.course-card.is-later:hover .cc-name { color: var(--ink-3); }
.course-card.is-later .cc-project { color: var(--ink-3); }
.cc-lock-wrap { position: relative; display: block; }
.cc-lock-wrap .cc-poster { filter: grayscale(1); opacity: 0.72; }
.cc-lock { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 980px; background: rgba(255, 255, 255, 0.88); color: var(--ink-3); font-size: 12px; font-weight: 600; }
.cc-lock svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.cc-lock svg rect { fill: currentColor; stroke: none; }
.cc-ask { justify-self: start; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--link); text-decoration: none; }
.cc-ask:hover { text-decoration: underline; }
.cc-ask::after { content: " ›"; }

.request-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: 26px 28px; border-radius: 24px; background: var(--alt); }
.request-band h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.request-band p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; max-width: 58ch; }
.courses-strip .sec-head .link-row { justify-content: center; }

.request-head { padding-bottom: 12px; }
.request-head .crumbs { justify-content: center; margin-bottom: 18px; }
.request-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px 56px; align-items: start; }
.request-form { display: grid; gap: 20px; padding: 28px; border-radius: 24px; background: var(--alt); }
.request-form .field input, .request-form .field select, .request-form .field textarea { width: 100%; background-color: var(--surface); }
.request-form .field textarea {
  appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 15px; resize: vertical; min-height: 96px;
}
.request-form .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.rq-courses { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; min-width: 0; }
.rq-courses legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rq-course { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.rq-course:hover { border-color: var(--rule-2); }
.rq-course:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent); }
.rq-course input, .rq-consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rq-iso { font-size: 11px; color: var(--ink-3); }
.rq-text { display: grid; min-width: 0; }
.rq-text b { font-size: 14.5px; font-weight: 600; }
.rq-text span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.rq-consent input { margin-top: 2px; }
.rq-status { font-size: 14.5px; color: var(--ink-2); min-height: 1em; }
.rq-status:empty { display: none; }
.request-aside { display: grid; gap: 18px; justify-items: start; padding-top: 8px; }
.request-aside h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.request-aside .note a { color: var(--link); }
.rq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: rq; }
.rq-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; counter-increment: rq; }
.rq-steps li::before { content: counter(rq); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--core-soft); color: var(--core); font-size: 13px; font-weight: 600; }
.rq-steps b { font-size: 15.5px; font-weight: 600; }
.rq-steps span { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 860px) {
  .request-grid { grid-template-columns: minmax(0, 1fr); }
  .request-form { padding: 20px; }
}

.cp-course { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--alt); text-decoration: none; color: inherit; transition: background 160ms ease; }
.cp-course:hover { background: var(--sunk); }
.cp-course-poster { display: grid; align-items: end; aspect-ratio: 16 / 10; padding: 8px 9px; border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, #f5f5f7, #e3e3e8); font-family: var(--f-display); font-weight: 700; font-size: 11.5px; line-height: 1.15; letter-spacing: -0.01em; }
.cp-course-poster.st-planned { background: linear-gradient(150deg, #f6f2ff, #e4dafb); color: var(--planned); }
.cp-course-poster.st-production { background: linear-gradient(150deg, #fff6ea, #fbe2c2); color: var(--production); }
.cp-course-poster.st-released { background: linear-gradient(150deg, #e9f2fd, #cfe3fb); color: var(--core); }
.cp-course-text { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cp-course-text b { font-size: 15px; }
.cp-course-text > span:last-child { font-size: 13px; color: var(--ink-3); }
.rb-none { font-size: 13px; color: var(--ink-3); }

/* ================= languages ================= */
.lang-band { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 56px; align-items: start; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--rule); }
.lang-band-text { display: grid; gap: 12px; justify-items: start; }
.lang-band-text h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.lang-band-text p { color: var(--ink-2); max-width: 46ch; }
.lang-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-cloud a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 980px; background: var(--alt); color: var(--ink-2); font-size: 14.5px; text-decoration: none; transition: background 160ms ease, color 160ms ease, transform 200ms ease; }
.lang-cloud a:hover { background: var(--sunk); color: var(--ink); transform: translateY(-1px); }
.lang-cloud a.has-course { color: var(--ink); font-weight: 600; }
.lang-cloud a.has-course::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lang-cloud a.st-films::before { background: var(--accent); }
.lang-cloud a.st-production::before { background: var(--production); }
.lang-cloud a.st-planned::before { background: var(--planned); }

.languages-head .link-more { margin-top: -4px; }
.lang-filter { margin-top: 8px; }
.lang-filter .mono { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.lang-tile { display: grid; gap: 6px; align-content: start; padding: 18px 18px 16px; border-radius: 20px; background: var(--alt); border: 2px solid transparent; scroll-margin-top: 96px; }
.lang-tile[aria-current="true"] { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.lt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lt-code { font-size: 12px; color: var(--ink-3); }
.lt-top .chip { font-size: 11.5px; }
.lt-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.lt-local { font-size: 14px; color: var(--ink-3); margin-top: -4px; }
.lt-core { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.lt-core > span:first-child { grid-column: 1 / -1; }
.lt-core b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lt-core.is-source { color: var(--core); }
.lt-courses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lt-courses a { display: inline-flex; align-items: center; padding: 4px 10px 4px 8px; border-radius: 980px; background: var(--surface); font-size: 13px; color: var(--ink); text-decoration: none; }
.lt-courses a:hover { box-shadow: var(--shadow-lift); }
.lt-courses .gl-dot { width: 7px; height: 7px; margin-right: 6px; }
.ready-link { justify-content: center; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .lang-grid .lang-tile:not([hidden]) { animation: pop-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@media (max-width: 860px) {
  .lang-band { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
}
@media (max-width: 600px) {
  .lang-grid { grid-template-columns: minmax(0, 1fr); }
  .lt-name { font-size: 21px; }
  /* "OpenConstructionERP" is one word and must fit the phone width unbroken. */
  .languages-head .hero-title { font-size: 33px; }
}

/* ================= case wall ================= */
.wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; align-items: end; }
.wall-col { display: grid; gap: 12px; min-width: 0; }
.wall-head { display: grid; gap: 2px; order: 2; }
.wall-head b { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.wall-head span { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; }
.wall-grid { display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 3px; }
.wall-sq { display: block; width: 11px; height: 11px; border-radius: 3px; background: var(--core); opacity: 0.22; transition: opacity 200ms ease, transform 200ms ease; }
.wall-sq.is-local { background: var(--local); }
.wall-sq.is-role { opacity: 1; }
.wall-sq:hover, .wall-sq.is-armed { transform: scale(1.7); opacity: 1; position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--ground); }
.wall-read { margin-top: 22px; min-height: 1.5em; font-size: 15px; color: var(--ink-2); }
.case-wall .link-row { margin-top: 10px; }

/* German compounds ("Leistungsverzeichnis", "Bauzeitverlängerung") are single
   tokens; let the browser hyphenate running text instead of overflowing. */
:lang(de) p, :lang(de) li, :lang(de) h2, :lang(de) h3, :lang(de) .t, :lang(de) .mode-line { hyphens: auto; overflow-wrap: break-word; }
:lang(de) h1 { overflow-wrap: break-word; }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .modes, .modes[data-n="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes .mode, .modes[data-n="5"] .mode:nth-child(-n + 2) { grid-column: span 1; }
  .modes[data-n="5"] .mode:last-child { grid-column: span 2; }
  .hive { grid-template-columns: minmax(0, 1fr); }
  .hive-panel { position: static; }
  .world-grid, .teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .globe-box { position: static; }
  .globe-box canvas { max-width: 480px; }
  .globe-teaser { max-width: 420px; }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .section { padding-block: 64px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .start { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 14px; }
  .start-body { padding: 4px 10px 14px; }
  .series-item { grid-template-columns: 30px minmax(0, 1fr); gap: 14px 16px; }
  .series-item .thumb { grid-column: 2; max-width: 360px; }
  .series-body { grid-column: 2; }
  .hs-cover.side { display: none; }
  .hs-cover.center { width: min(88%, 620px); }
  .hero-stage { margin-top: 40px; }
}
/* Below this width the menu takes its own row under the wordmark instead of running off the page. */
@media (max-width: 1100px) {
  .nav { order: 3; width: calc(100% + 12px); margin: 0 0 0 -12px; padding-bottom: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .topbar-row { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; min-height: 0; }
  .topbar-row .wordmark { min-height: 44px; }
  .topbar-end { margin-left: auto; }
}
@media (max-width: 600px) {
  .nav { order: 3; width: calc(100% + 44px); margin: 0 -22px; padding: 0 16px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .topbar-row { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; min-height: 0; }
  .topbar-row .wordmark { min-height: 40px; }
  .topbar-end { margin-left: auto; gap: 6px; }
  .wordmark { font-size: 15px; gap: 7px; }
  .wm-mark { width: 20px; height: 20px; border-radius: 6px; }
  .draft-chip { font-size: 11px; padding: 2px 8px; }
  .lang-switch a { padding: 3px 7px; }
  .hero { padding-top: 48px; }
  .section { padding-block: 52px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p:not(.kicker) { font-size: 17px; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .role-tile { padding: 14px; min-height: 84px; }
  .rt-name { font-size: 15px; }
  .rt-count { font-size: 12.5px; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .mode-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .modes, .modes[data-n="5"] { grid-template-columns: minmax(0, 1fr); }
  .modes .mode, .modes[data-n="5"] .mode:nth-child(-n + 2), .modes[data-n="5"] .mode:last-child { grid-column: span 1; min-height: 0; padding: 22px; }
  .film-card { grid-template-columns: 112px minmax(0, 1fr); }
  .io { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .step .n { width: 30px; height: 30px; font-size: 14px; }
  .step h3 { padding-top: 0; }
  .result { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .moment { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .moment .thumb { max-width: 240px; }
  #graph { height: 480px; }
  .re-items, .drawer-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: 78vw; }
  .note.center { margin-top: -24px; }
  .stages[data-spine] { padding-left: 26px; }
  .stages[data-spine]::before, .stages[data-spine]::after { left: 6px; top: 30px; bottom: 30px; }
  .stages[data-spine] > .stage::before { left: -26px; top: 26px; width: 12px; height: 12px; }
  .steps[data-spine]::before, .steps[data-spine]::after { left: 32px; }
  .rail-count { display: none; }
  .day { padding: 16px 14px 12px; }
  .day-film { font-size: 10px; min-width: 16px; }
  .day-scale span:nth-child(even) { display: none; }
  .country-panel { padding: 20px; border-radius: 22px; }
  .cp-iso { font-size: 34px; }
  .cp-name { font-size: 26px; }
  .cp-stats b { font-size: 24px; }
  .cp-stats div { padding: 12px; }
  .country-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .ready-headrow { display: none; }
  .rr-val { grid-template-columns: 48px minmax(0, 1fr) 58px; }
  .rr-lab { display: block; font-size: 12px; color: var(--ink-3); }
  .marquee { margin-top: 44px; }
  .mq-item { font-size: 13px; padding: 7px 12px; }
  .world-head { padding-top: 44px; }
  .toolbar .field, .explore-tools .field { width: 100%; }
  .field select, .field input { width: 100%; }
}
@media (max-width: 420px) {
  .wm-mark { display: none; }
}

/* courses and the case wall on narrow screens */
@media (max-width: 960px) {
  .course-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .course-hero-poster { max-width: 520px; }
  .course-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 600px) {
  .course-stages { grid-template-columns: minmax(0, 1fr); }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-rail { grid-auto-columns: 80vw; }
  .wall { gap: 22px 12px; }
  .wall-sq { width: 8px; height: 8px; border-radius: 2px; }
  .wall-grid { gap: 2px; }
  .cp-course { grid-template-columns: 88px minmax(0, 1fr); }
  .course-filter button { padding: 7px 12px; }
}

/* ================= home: the case wall lit by the videos, the globe with its panel ================= */
.home-wall .wall-sq { opacity: 0.16; }
.home-wall .wall-sq.is-vid { opacity: 1; box-shadow: 0 0 0 1px var(--ground), 0 0 8px color-mix(in srgb, var(--core) 55%, transparent); }
.home-wall .wall-sq.is-local.is-vid { box-shadow: 0 0 0 1px var(--ground), 0 0 8px color-mix(in srgb, var(--local) 55%, transparent); }
.wall-vid { font-style: normal; font-size: 12px; font-weight: 600; color: var(--core); }
.wall-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.wall-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-sq { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, var(--core) 50%, var(--local) 50%); opacity: 0.2; }
.lg-sq.is-vid { background: var(--core); opacity: 1; }
.lg-sq.is-core { background: var(--core); opacity: 0.6; }
.lg-sq.is-local { background: var(--local); opacity: 0.6; }
.wall-list { margin-top: 14px; }
.wall-list summary { cursor: pointer; font-weight: 600; color: var(--link, var(--core)); padding: 6px 0; }
.wall-list ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 22px; }
.wall-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.35; }
.wall-list li > span:last-child { display: grid; gap: 2px; }
.wall-list a { color: var(--ink-2); font-size: 13.5px; }
.home-world-grid { margin-top: 8px; }
.home-world .globe-box { max-width: 520px; width: 100%; aspect-ratio: 1; justify-self: center; }
.hp-flag { width: 44px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.hw-countries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hw-cc { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.hw-cc img { border-radius: 2px; }
.hw-cc b { font-size: 12px; color: var(--good, #177a33); }
.hw-cc:hover { background: var(--alt); }
.hw-cc[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.hw-cc[aria-pressed="true"] b { color: inherit; }
.cp-vids { display: grid; gap: 8px; }
.cp-vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cp-vid { display: grid; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.cp-vid-img { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sunk); }
.cp-vid-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.cp-vid:hover img { transform: scale(1.04); }
.cp-vid-img .dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cp-vid-t { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-vid-en { font-size: 12px; line-height: 1.3; color: var(--ink-3); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .cp-vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-list ul { grid-template-columns: minmax(0, 1fr); }
  .hw-cc { font-size: 13px; padding: 5px 11px; }
}
.hw-iso { font-size: 11px; line-height: 1; }
.hw-iso.hp-flag { font-size: 30px; box-shadow: none; width: auto; }
