/* ==========================================================================
   Innovation Hub — Wall display (visual refinement pass)
   Same structure as before; only colour, surfaces, spacing and proportions changed.
   One proportional unit (--u) keeps the composition identical at 3840×2160,
   2560×1440 and 1920×1080 without transform: scale().
   1u = 1% of the 16:9 stage width (38.4px at 4K, 19.2px at 1080p).
   ========================================================================== */

:root {
  --u: min(1vw, 1.77778vh);

  /* Digital Saudi palette */
  --black: #07060d;          /* near-black with a faint violet cast */
  --indigo: #1f114c;
  --blue: #241863;
  --purple: #8614d3;
  --turquoise: #00d5d9;
  --cyan: #12abfe;
  --live: #1cc182;
  --gray: #8e8c99;

  --text: #f4f3f8;
  --text-2: #b9b6c9;         /* neutral lavender-gray, no longer saturated */
  --text-3: #8a869e;

  /* Surfaces: neutral glass tint instead of purple fills */
  /* Layered surface: cool indigo light from the top-start corner fading into the dark fill */
  --surface: linear-gradient(155deg, rgba(138, 104, 240, 0.20) 0%, rgba(92, 68, 190, 0.11) 34%, rgba(255, 255, 255, 0.05) 68%, rgba(255, 255, 255, 0.035) 100%);
  --surface-deep: linear-gradient(160deg, rgba(128, 92, 236, 0.22) 0%, rgba(66, 46, 156, 0.13) 38%, rgba(255, 255, 255, 0.045) 72%, rgba(0, 213, 217, 0.04) 100%);
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.05);
  --edge: inset 0 0 0 var(--hair) rgba(255, 255, 255, 0.10), inset 0 var(--hair) 0 rgba(255, 255, 255, 0.10);
  --lift: 0 calc(var(--u) * 0.55) calc(var(--u) * 1.6) rgba(0, 0, 0, 0.34);
  --hair: calc(var(--u) * 0.05);

  --r-lg: calc(var(--u) * 0.85);
  --r-md: calc(var(--u) * 0.75);
  --r-sm: calc(var(--u) * 0.4);

  /* More breathing room */
  --pad-x: calc(var(--u) * 3);
  --pad-y: calc(var(--u) * 1.7);
  --gap: calc(var(--u) * 2);
  --gap-s: calc(var(--u) * 1.15);

  /* Text-size multipliers, set from Admin → أحجام النصوص (1 = original design) */
  --s-kpi-value: 1; --s-kpi-label: 1; --s-section-title: 1; --s-lead-title: 1; --s-card-title: 1;
  --s-card-date: 1; --s-now-title: 1; --s-now-org: 1; --s-now-desc: 1; --s-now-meta: 1; --s-badge: 1; --s-header: 1;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --font: "DiodrumArabic", "Hub Plex Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--black); }
body {
  font-family: var(--font);
  color: var(--text);
  overflow: hidden;              /* a wall never scrolls */
  cursor: none;                  /* non-touch display: hide the pointer */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums lining-nums;
  display: grid;
  place-items: center;
}
body.pointer { cursor: default; }
h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
/* Isolation only; direction comes from the dir attribute set per language (dates/times) or ltr (numbers). */
bdi { unicode-bidi: isolate; }
.ltr { unicode-bidi: isolate; direction: ltr; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------------------- background
   Near-black base with three large, soft light sources that drift very slowly
   behind the content. Softness comes from wide radial falloffs (no CSS blur filter),
   and motion is transform/opacity only — compositor-cheap for a 24/7 display.
   Edges stay near-black; the light pools behind the KPI row and event area. */
.ambient {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 42% at 0% 100%, rgba(36, 24, 99, 0.30), transparent 72%),
    radial-gradient(ellipse 50% 34% at 100% 0%, rgba(60, 24, 130, 0.11), transparent 70%),
    var(--black);
}
/* one wide, static diagonal light sweep (indigo → purple) like the manual's section fields */
.sweep {
  position: absolute; inset: -20% -10%; display: block; pointer-events: none;
  background: linear-gradient(112deg, rgba(20, 24, 90, 0) 16%, rgba(40, 26, 112, 0.34) 44%, rgba(92, 30, 176, 0.26) 60%, rgba(92, 30, 176, 0) 80%);
}
/* abstract digital trace lines in two background areas; extremely faint, masked to fade out */
.trace {
  position: absolute; display: block; pointer-events: none;
  background-repeat: no-repeat; background-size: contain;
}
.trace-a {
  width: 48vw; height: 27vw; left: -6vw; top: -3vw; opacity: 0.075;
  background-image: url("/shared/brand/texture-traces-a.svg");
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 30% 35%, #000 20%, transparent 75%);
}
.trace-b {
  width: 46vw; height: 20vw; right: -5vw; bottom: -4vw; opacity: 0.07; transform: scaleX(-1);
  background-image: url("/shared/brand/texture-traces-b.svg");
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 45% 60%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 65% 75% at 45% 60%, #000 15%, transparent 75%);
}
.ambient::after {
  /* imperceptible static dither: prevents colour banding in dark gradients on large panels */
  content: ""; position: absolute; inset: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.glow {
  position: absolute; display: block; border-radius: 50%;
  will-change: transform, opacity;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
/* 1 — deep Digital Saudi purple, main light behind the featured events */
.glow-a {
  width: 72vw; height: 52vw; left: 26vw; top: 18vw;
  background: radial-gradient(closest-side, rgba(100, 30, 190, 0.38) 0%, rgba(100, 30, 190, 0.22) 30%, rgba(100, 30, 190, 0.08) 62%, rgba(92, 26, 176, 0) 100%);
  animation-name: glowA; animation-duration: 26s;
}
/* 2 — very subtle dark blue, behind the current/next event side */
.glow-b {
  width: 58vw; height: 44vw; left: -6vw; top: 17vw;
  background: radial-gradient(closest-side, rgba(44, 46, 170, 0.32) 0%, rgba(44, 46, 170, 0.18) 32%, rgba(44, 46, 170, 0.06) 64%, rgba(38, 40, 150, 0) 100%);
  animation-name: glowB; animation-duration: 22s; animation-delay: -7s;
}
/* 3 — faint purple band behind the KPI row */
.glow-c {
  width: 90vw; height: 24vw; left: 5vw; top: 2vw;
  background: radial-gradient(closest-side, rgba(104, 30, 190, 0.15) 0%, rgba(104, 30, 190, 0.08) 40%, rgba(104, 30, 190, 0) 100%);
  animation-name: glowC; animation-duration: 30s; animation-delay: -12s;
}
@keyframes glowA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);        opacity: 0.9; }
  33%      { transform: translate3d(-4vw, 1.5vw, 0) scale(1.06); opacity: 1; }
  66%      { transform: translate3d(2.5vw, -1.8vw, 0) scale(0.97); opacity: 0.8; }
}
@keyframes glowB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);        opacity: 0.85; }
  50%      { transform: translate3d(5vw, -2vw, 0) scale(1.08);  opacity: 1; }
}
@keyframes glowC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);        opacity: 0.8; }
  50%      { transform: translate3d(-3vw, 0.8vw, 0) scale(1.05); opacity: 1; }
}

/* --------------------------------------------------------------- stage grid */
.stage {
  position: relative; z-index: 1;
  width: calc(var(--u) * 100);
  height: calc(var(--u) * 56.25);
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-rows: calc(var(--u) * 4.6) minmax(calc(var(--u) * 8.8), auto) minmax(0, 1fr) calc(var(--u) * 5.2);
  row-gap: var(--gap);
}

/* --------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 0;
}
.brand {
  height: 100%; width: auto; display: block;   /* proportional: height drives width */
}
.controls { display: flex; align-items: center; gap: calc(var(--u) * 0.7); }
.years {
  display: flex; padding: calc(var(--u) * 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, 0.09);
}
.years button, .lang {
  appearance: none; border: 0; background: transparent; cursor: inherit;
  font-size: calc(var(--u) * 0.95 * var(--s-header)); font-weight: 500; line-height: 1;
  color: var(--text-3);
  padding: calc(var(--u) * 0.52) calc(var(--u) * 1.05);
  border-radius: 999px;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.years button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 calc(-1 * var(--hair) * 1.4) 0 rgba(0, 213, 217, 0.55); }
.lang {
  box-shadow: inset 0 0 0 var(--hair) var(--line-soft);
  color: var(--text-2);
  padding-inline: calc(var(--u) * 0.95);
  min-width: calc(var(--u) * 3.2);
  font-weight: 600; letter-spacing: 0.02em;
}
.years button:focus-visible, .lang:focus-visible { outline: calc(var(--u) * 0.1) solid var(--turquoise); outline-offset: 2px; }

/* --------------------------------------------------------------- KPIs
   Shorter cards, larger numbers, quieter label/icon/surface. */
.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap-s);
  min-height: 0;
}
.kpi {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--u) * 0.95) calc(var(--u) * 1.55) calc(var(--u) * 0.964);  /* content-sized card = exactly 8.8u at default */
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(0, 213, 217, 0.07), transparent 70%),
    var(--surface);
  box-shadow: var(--edge), var(--lift);
  overflow: hidden;
  min-width: 0;
}
.kpi .ico {
  position: absolute; top: calc(var(--u) * 1.2); inset-inline-end: calc(var(--u) * 1.4);
  font-size: calc(var(--u) * 1.75);
  color: var(--turquoise);
  opacity: 0.92;
  stroke-width: 1.35;
  filter: drop-shadow(0 0 calc(var(--u) * 0.25) rgba(0, 213, 217, 0.35));
}
.kpi-value {
  align-self: end;
  font-size: calc(var(--u) * 5.4 * var(--s-kpi-value));
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.kpi-label {
  margin-top: calc(var(--u) * 0.35);
  font-size: calc(var(--u) * 1.12 * var(--s-kpi-label));
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --------------------------------------------------------------- main split (RTL: featured right, now left) */
.main {
  display: grid;
  grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
  column-gap: var(--gap);
  min-height: 0;
}
[dir="ltr"] .main { grid-template-columns: minmax(0, 66fr) minmax(0, 34fr); }

.section-title {
  font-size: calc(var(--u) * 1.42 * var(--s-section-title));
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

/* ---------- featured editorial composition */
.featured {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: calc(var(--u) * 1.25);
  min-height: 0;
}
.featured .section-title { padding-top: calc(var(--u) * 0.15); }

.featured-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr);  /* RTL: supporting column on the right, larger lead on the left */
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "s2 lead" "s3 lead";
  gap: var(--gap-s);
  min-height: 0;
}
.slot {
  position: relative; min-height: 0; min-width: 0; border-radius: var(--r-md); overflow: hidden; background: rgba(255,255,255,0.025);
  box-shadow: inset 0 0 0 var(--hair) rgba(180, 150, 255, 0.22), 0 calc(var(--u) * 0.6) calc(var(--u) * 1.8) rgba(0, 0, 0, 0.42), 0 0 calc(var(--u) * 1.8) rgba(96, 30, 180, 0.28);
}
.slot-lead { box-shadow: inset 0 0 0 var(--hair) rgba(180, 150, 255, 0.24), 0 calc(var(--u) * 0.7) calc(var(--u) * 2.2) rgba(0, 0, 0, 0.45), 0 0 calc(var(--u) * 2.8) rgba(96, 30, 180, 0.32); }
.slot-lead { grid-area: lead; }
.slot-2 { grid-area: s2; }
.slot-3 { grid-area: s3; }
.featured-grid[data-count="2"] { grid-template-areas: "s2 lead" "s2 lead"; }
.featured-grid[data-count="2"] .slot-3 { display: none; }
.featured-grid[data-count="1"] { grid-template-columns: 1fr; grid-template-areas: "lead" "lead"; }
.featured-grid[data-count="1"] .slot-2,
.featured-grid[data-count="1"] .slot-3 { display: none; }
.featured-grid[data-count="0"] .slot { display: none; }

.featured-empty {
  display: none;
  place-items: center;
  grid-column: 1 / -1; grid-row: 1 / -1;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--edge);
  color: var(--text-3);
  font-size: calc(var(--u) * 1.35);
  font-weight: 500;
}
.featured-grid[data-count="0"] .featured-empty { display: grid; }

/* one event card layer; new layers fade in above the previous one (no layout change) */
.fcard {
  position: absolute; inset: 0;
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
  background: #0e0c18;
}
.fcard.enter { opacity: 0; transform: translate3d(0, calc(var(--u) * 0.3), 0) scale(0.988); }
/* text never ghosts: outgoing text leaves first, incoming text follows its photo */
.fcard-text { transition: opacity 500ms var(--ease) 280ms; }
.fcard.enter .fcard-text { opacity: 0; }
.fcard.leaving .fcard-text { opacity: 0; transition: opacity 250ms linear 0ms; }
.fcard img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.fcard-text { text-shadow: 0 calc(var(--u) * 0.06) calc(var(--u) * 0.5) rgba(0, 0, 0, 0.45); }
.fcard::before {
  /* cinematic grade: cool purple/blue wash over the photo, strongest at the top edge */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(88, 28, 168, 0.26) 0%, rgba(40, 42, 160, 0.14) 45%, rgba(20, 30, 110, 0.06) 100%);
  mix-blend-mode: soft-light;
}
.fcard::after {
  /* shorter, softer scrim only behind the text; photography stays natural */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(7, 6, 13, 0.84) 0%, rgba(7, 6, 13, 0.46) 42%, rgba(7, 6, 13, 0) 100%);
  pointer-events: none;
}
.fcard.no-image { background: linear-gradient(135deg, #16122b, #0e0c18 60%, #1a0f33); }
.fcard.no-image img { display: none; }
.fcard-text {
  position: absolute; z-index: 1; inset: auto 0 0 0;
  padding: calc(var(--u) * 1.15) calc(var(--u) * 1.35);
}
.fcard-title {
  font-weight: 600;
  font-size: calc(var(--u) * 1.22 * var(--s-card-title));
  line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  text-wrap: balance;
}
.fcard-date {
  margin-top: calc(var(--u) * 0.35);
  font-size: calc(var(--u) * 0.95 * var(--s-card-date));
  font-weight: 400;
  color: var(--text-2);
}
.slot-lead .fcard-text { padding: calc(var(--u) * 2) calc(var(--u) * 2.3); max-width: 80%; }
.slot-lead .fcard-title { font-size: calc(var(--u) * 2.45 * var(--s-lead-title)); font-weight: 700; line-height: 1.22; -webkit-line-clamp: 3; }
.slot-lead .fcard-date { margin-top: calc(var(--u) * 0.65); font-size: calc(var(--u) * 1.25 * var(--s-card-date)); }

/* ---------- current / next event: neutral glass, lighter weight */
.now {
  position: relative;
  display: flex; flex-direction: column;
  padding: calc(var(--u) * 2.1) calc(var(--u) * 2.2) calc(var(--u) * 1.7);
  border-radius: var(--r-lg);
  background: var(--surface-deep);
  box-shadow: var(--edge), var(--lift);
  overflow: hidden;
  min-height: 0;
}
.now-motif {
  position: absolute; left: 0; bottom: 0; width: 60%; height: 42%;
  opacity: 0.12; pointer-events: none;
}
.now-motif svg { width: 100%; height: 100%; display: block; }

/* Status badge: always visually top-LEFT (intentional, also in Arabic) */
.badge {
  position: absolute; top: calc(var(--u) * 1.9); left: calc(var(--u) * 2.2);
  display: inline-flex; align-items: center; gap: calc(var(--u) * 0.5);
  padding: calc(var(--u) * 0.42) calc(var(--u) * 0.9);
  border-radius: 999px;
  font-size: calc(var(--u) * 0.98 * var(--s-badge)); font-weight: 500; line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, 0.08);
  color: #c9c7d3;
  z-index: 2;
}
.badge .dot { width: calc(var(--u) * 0.5 * var(--s-badge)); height: calc(var(--u) * 0.5 * var(--s-badge)); border-radius: 50%; background: var(--gray); flex: none; }
.now[data-status="live"] .badge {
  background: rgba(28, 193, 130, 0.1);
  box-shadow: inset 0 0 0 var(--hair) rgba(28, 193, 130, 0.28);
  color: #a9e5c8;
  font-weight: 600;
}
.now[data-status="live"] .badge .dot { background: var(--live); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.now[data-status="none"] .badge { display: none; }

/* Organizer logo: top-RIGHT inside the card (opposite the badge), on a soft neutral tile; shown only when uploaded */
.now-logo {
  position: absolute; top: calc(var(--u) * 1.5); right: calc(var(--u) * 2.2); z-index: 2;
  height: calc(var(--u) * 2.7); max-width: calc(var(--u) * 10);
  padding: calc(var(--u) * 0.4) calc(var(--u) * 0.75);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(240, 238, 246, 0.94), rgba(226, 223, 236, 0.9));
  box-shadow: 0 calc(var(--u) * 0.3) calc(var(--u) * 0.9) rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.now-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
/* Both languages: badge top-left, organizer logo top-right (intentional, matches the Arabic composition) */

.now-desc {
  margin-top: calc(var(--u) * 0.8);
  font-size: calc(var(--u) * 1.18 * var(--s-now-desc));
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.now-desc:empty { display: none; }

.now-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; padding-top: calc(var(--u) * 3.2); }
.now-title, .now-org, .now-desc, .now-meta { flex-shrink: 0; }  /* never squeezed mid-line; fitNow() reduces lines instead */
.now-title {
  font-size: calc(var(--u) * 2.5 * var(--s-now-title));
  font-weight: 700;
  line-height: 1.16;
  text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.now-org {
  margin-top: calc(var(--u) * 0.6);
  font-size: calc(var(--u) * 1.45 * var(--s-now-org));
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.35;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.now-meta {
  margin-top: auto;
  display: grid; row-gap: calc(var(--u) * 0.5);
  padding-top: calc(var(--u) * 1.15);
}
.now-meta li {
  display: flex; align-items: center; gap: calc(var(--u) * 0.8);
  font-size: calc(var(--u) * 1.35 * var(--s-now-meta));
  font-weight: 400;
  line-height: 1.4;
  color: #e3e1ea;
  min-width: 0;
}
.now-meta li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.now-meta .ico { font-size: calc(var(--u) * 1.35 * var(--s-now-meta)); color: var(--turquoise); opacity: 0.92; stroke-width: 1.5; filter: drop-shadow(0 0 calc(var(--u) * 0.2) rgba(0, 213, 217, 0.3)); }
.now-empty {
  display: none;
  position: relative; z-index: 1;
  margin: auto 0;
  font-size: calc(var(--u) * 1.6); font-weight: 500; color: var(--text-2);
}
.now[data-status="none"] .now-body { display: none; }
.now[data-status="none"] .now-empty { display: block; }
.now-body.swap { animation: nowIn 800ms var(--ease); }
@keyframes nowIn { from { opacity: 0; transform: translate3d(0, calc(var(--u) * 0.3), 0); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- partners
   No panel: a hairline divider and a quiet label, logos on soft neutral tiles. */
.partners {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: calc(var(--u) * 1.8);
  padding-top: calc(var(--u) * 0.6);
  border-top: var(--hair) solid transparent;
  border-image: linear-gradient(to left, rgba(134, 20, 211, 0.35), rgba(255, 255, 255, 0.08) 40%, rgba(0, 213, 217, 0.25)) 1;
  min-height: 0;
  overflow: hidden;
}
.partners-title {
  font-size: calc(var(--u) * 1.25 * var(--s-section-title)); font-weight: 500; line-height: 1;
  color: var(--text-2);
  padding-inline-end: calc(var(--u) * 1.8);
  border-inline-end: var(--hair) solid var(--line);
  height: calc(var(--u) * 2.8 * var(--s-section-title));
  display: flex; align-items: center;
  white-space: nowrap;
}
.marquee {
  position: relative; overflow: hidden; height: 100%;
  display: flex; align-items: center;
  direction: ltr;   /* the strip is positioned from the left edge in both languages */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--u) * 5), #000 calc(100% - var(--u) * 5), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--u) * 5), #000 calc(100% - var(--u) * 5), transparent 100%);
}
.track {
  display: flex; flex-wrap: nowrap; width: max-content;
  will-change: transform;
}
.track.run { animation: marquee var(--dur, 36s) linear infinite; }
@keyframes marquee {
  from { transform: translate3d(calc(-1 * var(--shift, 0px)), 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.group { display: flex; flex-wrap: nowrap; gap: calc(var(--u) * 1.1); padding-right: calc(var(--u) * 1.1); }
.logo-tile {
  flex: none;
  height: calc(var(--u) * 3.5);
  padding: 0 calc(var(--u) * 1.45);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(240, 238, 246, 0.9), rgba(226, 223, 236, 0.86));  /* soft neutral surface (tile only; logos unaltered) */
  box-shadow: 0 calc(var(--u) * 0.3) calc(var(--u) * 0.9) rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.logo-tile img {
  display: block;
  height: calc(var(--u) * 2.05);            /* standardised visual height */
  width: auto;
  max-width: calc(var(--u) * 11);
  object-fit: contain;
}
.logo-tile.tall img { height: calc(var(--u) * 2.75); }  /* square/vertical marks need more height to match weight */

/* --------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  .glow, .now[data-status="live"] .badge .dot { animation: none; }
  .fcard, .now-body.swap { transition: opacity 400ms linear; animation: none; }
  .fcard.enter { transform: none; }
}
