/*
 * Hub blocks (/industries/, /solutions/): directory with filter chips,
 * ecosystem chain, industry × solution matrix, world markets map and
 * selected projects. Logical properties only (RTL for ar and he); spacing
 * from the --space-* / --flow-gap tokens; card titles take the main menu
 * lettering through the shared selector list in landing.css (.hub-card-body,
 * .hub-stage-body, .hub-mk-card, .hub-pj-body are listed there).
 * Motion only under .hub-motion, which hub.js adds when the visitor has
 * not asked for reduced motion.
 */

.hub-sec .lp-head { max-inline-size: 860px; }
.hub-sec .hub-note { margin-block-start: var(--flow-gap); }
.hub-sec .hub-ctas { margin-block-start: var(--flow-gap); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hub-sec .btn { white-space: nowrap; }
.hub-arrow { display: inline-flex; vertical-align: -2px; transition: transform .25s ease; }
.hub-arrow .ico { inline-size: 16px; block-size: 16px; stroke: currentColor; fill: none; stroke-width: 2.25; }
[dir="rtl"] .hub-arrow { transform: scaleX(-1); }

/* ---------------- Hero ---------------- */
.hub-hero .hub-hero-media { background: var(--navy-950); }
.hub-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hub-slide.is-on { opacity: 1; }
.hub-slide img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hub-hero-shade { background:
  radial-gradient(120% 90% at 85% 10%, rgba(165, 0, 0, .22), transparent 55%),
  linear-gradient(90deg, rgba(6, 17, 31, .97) 0%, rgba(6, 17, 31, .88) 40%, rgba(6, 17, 31, .42) 100%); }
.hub-frame { position: absolute; inset-block-end: 0; inset-inline-end: 0; z-index: -1; inline-size: min(56vw, 760px); block-size: auto; opacity: .55; pointer-events: none; }
[dir="rtl"] .hub-frame { transform: scaleX(-1); }
.hub-frame-lines path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hub-frame-lines path:first-child { stroke: var(--red); stroke-width: 2.4; }
.hub-frame-nodes circle { fill: var(--gold); }
.hub-rotator { margin: 0; font-family: var(--f-display); font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; color: var(--mist); }
.hub-rotator-words { position: relative; display: inline-grid; vertical-align: bottom; color: var(--white); }
.hub-rotator-words::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; block-size: 3px; background: var(--red); }
.hub-word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(.6em); }
.hub-word.is-on { opacity: 1; transform: none; }
.hub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); margin: 0; max-inline-size: 900px; }
.hub-stat { padding-inline-start: var(--space-4); border-inline-start: 3px solid var(--red); }
.hub-stat dt { font-size: 13px; line-height: 1.4; color: var(--mist); }
.hub-stat dd { margin: 0 0 4px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hub-stat { display: flex; flex-direction: column-reverse; }
.hub-stats-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--mist-2); }
.hub-reel { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.hub-reel::-webkit-scrollbar { display: none; }
.hub-reel-item { flex: none; scroll-snap-align: start; }
.hub-reel-item a, .hub-reel-item .hub-reel-btn {
  position: relative; display: flex; align-items: center; gap: var(--space-2); min-block-size: 44px; padding-inline: 14px; overflow: hidden;
  font-family: var(--f-display); font-size: 15px; font-weight: 500; letter-spacing: var(--tracking-nav); text-transform: uppercase; white-space: nowrap;
  color: var(--mist); text-decoration: none; background: rgba(6, 17, 31, .62); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.hub-reel-item .ico { inline-size: 18px; block-size: 18px; flex: none; stroke: #FF8A8A; fill: none; stroke-width: 1.75; }
.hub-reel-item a:hover, .hub-reel-item.is-on a, .hub-reel-item .hub-reel-btn:hover, .hub-reel-item.is-on .hub-reel-btn { color: var(--white); border-color: rgba(255, 255, 255, .45); background: rgba(16, 36, 63, .85); }
.hub-reel-bar { position: absolute; inset-inline-start: 0; inset-block-end: 0; block-size: 2px; inline-size: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hub-reel-bar { transform-origin: right; }
.hub-reel-item.is-on .hub-reel-bar { transform: scaleX(1); }
@media (max-width: 719px) {
  .hub-frame { inline-size: 92vw; opacity: .28; }
  .hub-hero-shade { background: linear-gradient(0deg, rgba(6, 17, 31, .97) 0%, rgba(6, 17, 31, .84) 55%, rgba(6, 17, 31, .5) 100%); }
  .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .hub-stat dt { font-size: 12px; }
  .hub-reel-item a, .hub-reel-item .hub-reel-btn { font-size: 14px; }
}

/* ---------------- Directory ---------------- */
.hub-chips {
  display: flex; flex-wrap: nowrap; gap: var(--space-2);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-block: var(--flow-gap) var(--space-5); padding-block-end: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent);
}
[dir="rtl"] .hub-chips { -webkit-mask-image: linear-gradient(to left, #000 92%, transparent); mask-image: linear-gradient(to left, #000 92%, transparent); }
.hub-chips::-webkit-scrollbar { display: none; }
.hub-chip {
  flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-block-size: 40px; padding-inline: var(--space-4);
  font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: var(--tracking-card-title); text-transform: uppercase;
  color: var(--ink); background: var(--white); border: 1px solid var(--steel-200); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hub-chip:hover { border-color: var(--red); color: var(--red); }
.hub-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.hub-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hub-count { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; opacity: .75; }
.navy .hub-chip { background: transparent; color: var(--white); border-color: var(--navy-600); }

.hub-dir-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.hub-chips[hidden] + .hub-dir-grid, .hub-head + .hub-dir-grid { margin-block-start: var(--flow-gap); }
.hub-card { position: relative; }
.hub-card.is-out { display: none; }
.hub-card-link {
  position: relative; display: flex; flex-direction: column; block-size: 100%;
  background: var(--white); border: 1px solid var(--steel-200); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.hub-card-link::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2;
  block-size: 4px; inline-size: 0; background: var(--red); transition: inline-size .45s cubic-bezier(.2, .7, .2, 1);
}
.hub-card-link:hover, .hub-card-link:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(10, 26, 48, .55); border-color: var(--steel-300); }
.hub-card-link:hover::before, .hub-card-link:focus-visible::before { inline-size: 100%; }
.hub-card-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hub-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.hub-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 48, 0) 45%, rgba(10, 26, 48, .55)); }
.hub-card-media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hub-card-link:hover .hub-card-media img { transform: scale(1.06); }
.hub-card-body { position: relative; display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: 0 var(--space-5) var(--space-5); }
.hub-card.is-plain .hub-card-body { padding-block-start: var(--space-5); }
.hub-card-top { display: flex; align-items: flex-end; gap: var(--space-3); margin-block-start: -26px; }
.hub-card.is-plain .hub-card-top { margin-block-start: 0; align-items: center; }
.hub-ico {
  flex: 0 0 auto; display: grid; place-items: center; inline-size: 52px; block-size: 52px;
  background: var(--navy-900); color: var(--white); border-block-end: 3px solid var(--red);
  transition: background-color .3s ease;
}
.hub-ico .ico { inline-size: 26px; block-size: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.hub-card-link:hover .hub-ico { background: var(--red); }
.hub-tag { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2); padding-block-end: 4px; }
.hub-badge {
  margin-inline-start: auto; padding: 3px var(--space-2); white-space: nowrap;
  font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red);
}
.hub-card-body > h3 { margin: 0; color: var(--ink); }
.hub-card-text { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.hub-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-card-chips > span { padding: 3px var(--space-2); font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); background: var(--steel-50); border: 1px solid var(--steel-200); }
.hub-go {
  margin-block-start: auto; padding-block-start: var(--space-2);
  font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--red); white-space: nowrap;
}
.hub-card-link:hover .hub-arrow, .hub-pj-card a:hover .hub-arrow, .hub-stage-links a:hover .hub-arrow, .hub-mk-go:hover .hub-arrow { transform: translateX(4px); }
[dir="rtl"] .hub-card-link:hover .hub-arrow, [dir="rtl"] .hub-pj-card a:hover .hub-arrow, [dir="rtl"] .hub-stage-links a:hover .hub-arrow, [dir="rtl"] .hub-mk-go:hover .hub-arrow { transform: scaleX(-1) translateX(4px); }

/* ---------------- Ecosystem chain ---------------- */
.hub-eco-chain {
  list-style: none; margin: var(--flow-gap) 0 0; padding: 0; position: relative;
  display: grid; gap: var(--space-5); grid-template-columns: 1fr;
  --hub-node: 64px;
}
.hub-eco-chain::before, .hub-eco-chain::after {
  content: ""; position: absolute; inset-inline-start: calc(var(--hub-node) / 2 - 1px); inset-block: calc(var(--hub-node) / 2) calc(var(--hub-node) / 2);
  inline-size: 2px; background: var(--navy-600);
}
.hub-eco-chain::after { background: var(--red); transform-origin: top; }
.hub-stage { position: relative; display: grid; grid-template-columns: var(--hub-node) 1fr; gap: var(--space-4); align-items: start; align-content: start; }
.hub-stage-node {
  position: relative; z-index: 1; display: grid; place-items: center;
  inline-size: var(--hub-node); block-size: var(--hub-node); border-radius: 50%;
  background: var(--navy-800); border: 2px solid var(--red); color: var(--white);
  box-shadow: 0 0 0 6px var(--navy-900);
}
.hub-stage-node .ico { inline-size: 26px; block-size: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.hub-stage-no {
  position: absolute; inset-block-start: -6px; inset-inline-end: -8px; padding: 1px 6px;
  font-size: 11px; color: var(--white); background: var(--red);
}
.hub-stage-body { min-inline-size: 0; }
.hub-stage-body > h3 { margin: 0; color: var(--white); }
.hub-stage-body > p { margin: var(--space-2) 0 0; color: var(--mist); font-size: 15px; line-height: 1.6; }
.hub-stage-links { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 2px; }
.hub-stage-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); font-size: 14px; color: var(--white); text-decoration: none;
  background: rgba(255, 255, 255, .04); border-inline-start: 2px solid var(--navy-600);
  transition: background-color .2s ease, border-color .2s ease;
}
.hub-stage-links a:hover, .hub-stage-links a:focus-visible { background: rgba(165, 0, 0, .22); border-inline-start-color: var(--red); }
@media (min-width: 1100px) {
  .hub-eco-chain { grid-template-columns: repeat(var(--hub-n), minmax(0, 1fr)); gap: var(--space-4); }
  .hub-eco-chain::before, .hub-eco-chain::after {
    inset-block: calc(var(--hub-node) / 2 - 1px) auto; block-size: 2px; inline-size: auto;
    inset-inline: calc(100% / var(--hub-n) / 2) calc(100% / var(--hub-n) / 2);
  }
  .hub-eco-chain::after { transform-origin: left; }
  [dir="rtl"] .hub-eco-chain::after { transform-origin: right; }
  .hub-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hub-stage-links a { text-align: start; }
}

/* ---------------- Ecosystem layouts (shared pieces) ---------------- */
.hub-eco .hub-stage-body > h3 { margin: 0; }
.hub-eco .hub-stage-body > p { margin: var(--space-2) 0 0; font-size: 15px; line-height: 1.6; }
.navy.hub-eco .hub-stage-body > h3 { color: var(--white); }
.navy.hub-eco .hub-stage-body > p { color: var(--mist); }
.light.hub-eco .hub-stage-body > p { color: var(--ink-2); }
.light.hub-eco .hub-stage-body > h3 { color: var(--navy-900); }
.light.hub-eco .hub-hex .hub-stage-body > h3 { color: var(--white); }
.hub-stage-links a > span:first-child { min-inline-size: 0; }
.light .hub-stage-links a { color: var(--ink); background: var(--white); border-inline-start-color: var(--steel-300); }
.light .hub-stage-links a:hover, .light .hub-stage-links a:focus-visible { background: #FFF1F1; border-inline-start-color: var(--red); color: var(--red); }
@media (min-width: 1000px) {
  .hub-js [data-hub-tabs] .hub-panel { display: none; }
  .hub-js [data-hub-tabs] .hub-panel.is-on { display: block; animation: hub-panel .5s cubic-bezier(.2, .7, .2, 1) both; }
}
.hub-panel { position: relative; }
.hub-panel > .hub-stage-body > h3, .hub-panel > .hub-stage-body > p { padding-inline-end: clamp(96px, 11vw, 190px); }
.hub-panel + .hub-panel { margin-block-start: var(--space-5); }
@media (min-width: 1000px) { .hub-js [data-hub-tabs] .hub-panel + .hub-panel { margin-block-start: 0; } }
.hub-panel-no { position: absolute; inset-block-start: -.32em; inset-inline-end: 0; font-size: clamp(90px, 10vw, 160px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); pointer-events: none; }
.hub-panel .hub-stage-body { position: relative; }
.hub-panel .hub-stage-body > h3 { font-size: var(--fs-card-title-lg); }
.hub-panel .hub-stage-links { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-2); margin-block-start: var(--space-5); }
@keyframes hub-panel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Orbit ---- */
.hub-orbit { margin-block-start: var(--flow-gap); }
.hub-orbit-rings, .hub-spoke, .hub-orbit-nodes, .hub-core-label, .hub-orbit-hub { display: none; }
.hub-orbit-core { display: grid; gap: var(--space-5); }
@media (min-width: 1000px) {
  .hub-js .hub-orbit-stage { position: relative; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
  .hub-js .hub-orbit-rings { display: block; grid-column: 1; grid-row: 1; inline-size: 100%; aspect-ratio: 1; }
  .hub-orbit-rings circle { fill: none; }
  .hub-ring-a { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: .004 .012; transform-origin: 300px 300px; }
  .hub-ring-b { stroke: var(--navy-700); stroke-width: 1; }
  .hub-ring-c { stroke: rgba(212, 161, 46, .35); stroke-width: 1; stroke-dasharray: 2 6; transform-origin: 300px 300px; }
  .hub-js .hub-spoke {
    display: block; position: absolute; inset-block-start: 50%; inset-inline-start: calc(min(600px, 50%) / 2); grid-column: 1;
    inline-size: calc(min(600px, 100%) * .393); block-size: 2px; transform-origin: 0 50%; transform: rotate(var(--hub-a));
    background: linear-gradient(90deg, rgba(43, 70, 104, .0), var(--navy-600)); pointer-events: none;
  }
  .hub-js .hub-spoke.is-on { background: linear-gradient(90deg, rgba(165, 0, 0, 0), var(--red)); }
  .hub-js .hub-orbit-nodes { display: block; position: absolute; inset-block-start: 50%; inset-inline-start: 0; inline-size: min(600px, 50%); aspect-ratio: 1; transform: translateY(-50%); }
  .hub-node {
    position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 150px; margin: -32px 0 0 -75px;
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--mist);
    transform: rotate(var(--hub-a)) translate(calc(min(600px, 50vw) * .393)) rotate(calc(var(--hub-a) * -1));
  }
  .hub-node-ico { display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 50%; background: var(--navy-800); border: 2px solid var(--navy-600); color: var(--white); box-shadow: 0 0 0 6px var(--navy-900); transition: background-color .3s ease, border-color .3s ease, transform .3s ease; }
  .hub-node-ico .ico { inline-size: 26px; block-size: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; }
  .hub-node-label { font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .6px; line-height: 1.15; text-transform: uppercase; text-align: center; }
  .hub-node-label .mono { display: block; font-size: 11px; color: #FF8A8A; letter-spacing: 1px; }
  .hub-node:hover .hub-node-ico, .hub-node:focus-visible .hub-node-ico { border-color: var(--red); transform: scale(1.08); }
  .hub-node:focus-visible { outline: none; }
  .hub-node:focus-visible .hub-node-ico { outline: 2px solid var(--focus); outline-offset: 4px; }
  .hub-node.is-on .hub-node-ico { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 12px rgba(165, 0, 0, .25); }
  .hub-node.is-on { color: var(--white); }
  .hub-js .hub-orbit-core { grid-column: 2; grid-row: 1; display: block; padding: clamp(24px, 3vw, 40px); background: linear-gradient(160deg, var(--navy-800), rgba(16, 36, 63, .4)); border: 1px solid var(--navy-700); border-inline-start: 4px solid var(--red); min-block-size: 360px; }
  .hub-js .hub-core-label { display: block; margin-block-end: var(--space-4); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
  .hub-js .hub-orbit-hub { grid-column: 1; grid-row: 1; justify-self: center; align-self: center; position: relative; z-index: 1; display: grid; place-content: center; gap: 6px; inline-size: 30%; aspect-ratio: 1; padding: var(--space-3); border-radius: 50%; text-align: center; background: radial-gradient(circle at 35% 30%, #C21414, var(--red) 55%, #6E0000); box-shadow: 0 0 0 10px rgba(165, 0, 0, .14), 0 0 0 22px rgba(165, 0, 0, .06), 0 24px 60px -20px rgba(0, 0, 0, .7); }
  .hub-orbit-hub strong { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.05; letter-spacing: .8px; text-transform: uppercase; color: var(--white); }
  .hub-orbit-hub span { font-size: 12px; line-height: 1.35; color: #FFE4E4; }
  .hub-orbit-stage::after { content: ""; grid-column: 1; grid-row: 1; justify-self: center; align-self: center; inline-size: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(165, 0, 0, .55), rgba(165, 0, 0, 0) 70%); pointer-events: none; }
}

/* ---- Honeycomb ---- */
.hub-honey { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hub-hex {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center;
  aspect-ratio: 1.12; padding: 12% 16%; color: var(--white);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hub-hex::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--red), var(--red-700)); opacity: 0; transition: opacity .4s ease; clip-path: inherit; }
.hub-hex::after { content: ""; position: absolute; inset: 3px; background: transparent; clip-path: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hub-hex > * { position: relative; z-index: 1; }
.hub-cell:hover .hub-hex::before, .hub-cell:focus-within .hub-hex::before { opacity: 1; }
.hub-cell:hover .hub-hex, .hub-cell:focus-within .hub-hex { transform: translateY(-6px); }
.hub-hex-no { font-size: 12px; letter-spacing: 2px; color: var(--gold); }
.hub-cell:hover .hub-hex-no { color: var(--white); }
.hub-hex-ico .ico { inline-size: 36px; block-size: 36px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hub-cell:hover .hub-hex-ico .ico { transform: rotate(-12deg) scale(1.12); }
.hub-eco .hub-hex .hub-stage-body > h3 { color: var(--white); }
.light.hub-eco .hub-hex .hub-stage-body > p { color: var(--mist); font-size: 14px; line-height: 1.5; }
.hub-cell:hover .hub-hex .hub-stage-body > p { color: #FFE4E4; }
.hub-cell .hub-stage-links { margin-block-start: var(--space-3); }
@media (min-width: 1000px) {
  .hub-honey { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-4); }
  .hub-cell:nth-child(3n + 2) { transform: translateY(42%); }
  .hub-honey { padding-block-end: 14%; }
}

/* ---- Flow ---- */
.hub-flow { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; position: relative; display: grid; gap: var(--space-5); }
.hub-flow-spine { position: absolute; inset-block: 0; inset-inline-start: 27px; inline-size: 4px; background: var(--steel-200); border-radius: 2px; }
.hub-flow-spine i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--red), #D4382F); border-radius: 2px; transform-origin: top; transform: scaleY(var(--hub-p, 1)); }
.hub-flow-step { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.hub-flow-node { position: relative; z-index: 1; display: grid; place-items: center; inline-size: 58px; block-size: 58px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); color: var(--red); box-shadow: 0 0 0 6px var(--steel-50); }
.hub-flow-node .ico { inline-size: 24px; block-size: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.hub-flow-card { position: relative; padding: var(--space-5); background: var(--white); border: 1px solid var(--steel-200); box-shadow: 0 14px 30px -24px rgba(10, 26, 48, .5); }
.hub-flow-no { position: absolute; inset-block-start: var(--space-4); inset-inline-end: var(--space-5); font-size: 28px; color: var(--steel-200); }
.hub-flow-card .hub-stage-body > h3 { padding-inline-end: 48px; }
@media (min-width: 1000px) {
  .hub-flow { gap: 0; }
  .hub-flow-spine { inset-inline-start: calc(50% - 2px); }
  .hub-flow-step { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); column-gap: var(--space-6, 40px); margin-block-end: -40px; }
  .hub-flow-step:last-child { margin-block-end: 0; }
  .hub-flow-node { grid-column: 2; grid-row: 1; margin-block-start: var(--space-5); }
  .hub-flow-card { grid-column: 1; grid-row: 1; }
  .hub-flow-step.is-alt .hub-flow-card { grid-column: 3; }
  .hub-flow-card::after { content: ""; position: absolute; inset-block-start: 40px; inset-inline-end: -9px; inline-size: 16px; block-size: 16px; background: var(--white); border-block-start: 1px solid var(--steel-200); border-inline-end: 1px solid var(--steel-200); transform: rotate(45deg); }
  .hub-flow-step.is-alt .hub-flow-card::after { inset-inline-end: auto; inset-inline-start: -9px; transform: rotate(-135deg); }
  [dir="rtl"] .hub-flow-card::after { transform: rotate(-45deg); }
}

/* ---- Layers ---- */
.hub-layers { margin-block-start: var(--flow-gap); display: grid; gap: var(--space-5); }
.hub-stack { display: none; }
@media (min-width: 1000px) {
  .hub-js .hub-layers { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .hub-js .hub-stack { display: flex; flex-direction: column; padding-block: var(--space-4); }
  .hub-plate { position: relative; padding: 0; margin-block-start: -6px; border: 0; background: none; cursor: pointer; text-align: start; z-index: calc(20 - var(--hub-i)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
  .hub-plate-face {
    display: flex; align-items: center; gap: var(--space-3); min-block-size: 64px; padding-inline: 48px 24px;
    color: var(--mist); background: linear-gradient(100deg, var(--navy-700), var(--navy-800));
    transform: skewX(-18deg); box-shadow: 0 10px 0 -2px #06111F, 0 18px 30px -12px rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .35s ease, color .35s ease;
  }
  .hub-plate-face > * { transform: skewX(18deg); }
  .hub-plate-face .ico { inline-size: 22px; block-size: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; flex: none; }
  .hub-plate-no { font-size: 12px; color: #FF8A8A; letter-spacing: 1px; }
  .hub-plate-title { font-family: var(--f-display); font-size: 18px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hub-plate:nth-child(odd) { margin-inline-start: 4%; }
  .hub-plate:hover { transform: translateX(10px); }
  [dir="rtl"] .hub-plate:hover { transform: translateX(-10px); }
  .hub-plate.is-on { transform: translateX(28px); }
  [dir="rtl"] .hub-plate.is-on { transform: translateX(-28px); }
  .hub-plate.is-on .hub-plate-face { color: var(--white); background: linear-gradient(100deg, var(--red), var(--red-700)); }
  .hub-plate.is-on .hub-plate-no { color: var(--white); }
  .hub-plate:focus-visible { outline: none; }
  .hub-plate:focus-visible .hub-plate-face { outline: 2px solid var(--focus); outline-offset: 3px; }
  .hub-js .hub-layers-detail { padding: clamp(24px, 3vw, 40px); background: var(--navy-800); border: 1px solid var(--navy-700); border-block-start: 4px solid var(--red); min-block-size: 340px; }
}

/* ---- Network ---- */
.hub-net { position: relative; margin-block-start: var(--flow-gap); }
.hub-net-svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.hub-wire { fill: none; stroke: var(--navy-600); stroke-width: 1.5; }
.hub-wire.is-ring { stroke: rgba(212, 161, 46, .35); stroke-dasharray: .01 .02; }
.hub-signal { fill: #FF5A5A; opacity: 0; }
.hub-net-core circle { fill: var(--red); }
.hub-net-core .hub-net-halo { fill: none; stroke: rgba(165, 0, 0, .5); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.hub-net-node circle { fill: var(--navy-800); stroke: var(--red); stroke-width: 2.5; }
.hub-net-node text { fill: var(--white); font-family: var(--f-mono); font-size: 16px; }
.hub-net-label { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); margin: 0; inline-size: 13%; min-inline-size: 110px; text-align: center; color: var(--white); pointer-events: none; }
[dir="rtl"] .hub-net-label { transform: translate(50%, -50%); }
.hub-net-label .display { display: block; font-size: clamp(14px, 1.6vw, 22px); line-height: 1.05; }
.hub-net-label > span:last-child:not(.display) { display: block; margin-block-start: 4px; font-size: 11px; color: #FFD6D6; line-height: 1.3; }
.hub-net-cards { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .hub-net-cards:has(> :nth-child(5):last-child), .hub-net-cards:has(> :nth-child(6):last-child), .hub-net-cards:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-net-card { position: relative; padding: var(--space-5); padding-block-start: calc(var(--space-5) + 6px); background: var(--navy-800); border: 1px solid var(--navy-700); }
.hub-net-badge { position: absolute; inset-block-start: -14px; inset-inline-start: var(--space-5); display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; font-size: 13px; color: var(--white); background: var(--navy-900); border: 2px solid var(--red); }
.hub-net-card h3 { display: flex; align-items: center; gap: var(--space-2); }
.hub-net-ico .ico { inline-size: 20px; block-size: 20px; stroke: #FF8A8A; fill: none; stroke-width: 1.75; }
@media (max-width: 719px) { .hub-net-label { display: none; } .hub-net-node text { font-size: 22px; } .hub-net-node circle { r: 36; } }

/* ---- Spotlight ---- */
.hub-spot { margin-block-start: var(--flow-gap); display: grid; gap: var(--space-5); }
.hub-spot-tabs { display: none; }
@media (min-width: 1000px) {
  .hub-js .hub-spot { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0; border: 1px solid var(--navy-700); background: var(--navy-800); }
  .hub-js .hub-spot-tabs { display: flex; flex-direction: column; border-inline-end: 1px solid var(--navy-700); }
  .hub-spot-tab {
    position: relative; display: grid; grid-template-columns: 30px 24px minmax(0, 1fr); align-items: center; gap: var(--space-3);
    min-block-size: 64px; padding-inline: var(--space-5); border: 0; border-block-end: 1px solid var(--navy-700); background: transparent; color: var(--mist); text-align: start; cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
  }
  .hub-spot-tab:last-child { border-block-end: 0; }
  .hub-spot-tab .mono { font-size: 12px; color: var(--mist-2); }
  .hub-spot-tab .ico { inline-size: 22px; block-size: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; }
  .hub-spot-title { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
  .hub-spot-tab:hover { background: rgba(255, 255, 255, .04); color: var(--white); }
  .hub-spot-tab.is-on { background: var(--navy-900); color: var(--white); }
  .hub-spot-tab.is-on .mono { color: #FF8A8A; }
  .hub-spot-tab.is-on::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 4px; background: var(--red); }
  .hub-spot-bar { position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
  [dir="rtl"] .hub-spot-bar { transform-origin: right; }
  .hub-js .hub-spot-panels { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px); background: radial-gradient(90% 80% at 100% 0%, rgba(165, 0, 0, .18), transparent 60%), var(--navy-900); }
  .hub-spot .hub-panel-no { font-size: clamp(140px, 14vw, 220px); -webkit-text-stroke-color: rgba(255, 255, 255, .1); }
}

/* ---------------- Matrix ---------------- */
.hub-mx-scroll {
  position: relative; margin-block-start: var(--flow-gap); overflow-x: auto; overscroll-behavior-x: contain;
  background: var(--white); border: 1px solid var(--steel-200);
}
.hub-mx-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hub-mx-table { inline-size: 100%; min-inline-size: 860px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.hub-mx-table th, .hub-mx-table td { padding: var(--space-3) var(--space-2); border-block-end: 1px solid var(--steel-100); text-align: center; vertical-align: middle; }
.hub-mx-table thead th {
  position: sticky; inset-block-start: 0; z-index: 1; background: var(--navy-900); color: var(--white); border-block-end: 3px solid var(--red);
  font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; line-height: 1.2;
}
.hub-mx-table thead a { color: var(--white); text-decoration: none; }
.hub-mx-table thead a:hover { color: var(--gold); }
.hub-mx-table tbody th {
  position: sticky; inset-inline-start: 0; z-index: 1; background: var(--white); text-align: start; min-inline-size: 220px;
  font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  box-shadow: 1px 0 0 var(--steel-200);
}
.hub-mx-table .hub-mx-corner { position: sticky; inset-inline-start: 0; z-index: 2; text-align: start; }
.hub-mx-table tbody th a, .hub-mx-row { display: flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; }
.hub-mx-table tbody th a:hover { color: var(--red); }
.hub-mx-table tbody th .ico { flex: 0 0 auto; inline-size: 20px; block-size: 20px; stroke: var(--red); fill: none; stroke-width: 1.75; }
.hub-mx-table tbody tr { transition: background-color .2s ease; }
.hub-mx-table tbody tr:hover, .hub-mx-table tbody tr:hover th { background: var(--steel-50); }
.hub-dot {
  display: inline-block; inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(165, 0, 0, .14); transition: transform .2s ease, box-shadow .2s ease; vertical-align: middle;
}
a.hub-dot:hover, a.hub-dot:focus-visible { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(165, 0, 0, .2); }
.hub-dash { display: inline-block; inline-size: 12px; block-size: 2px; background: var(--steel-300); vertical-align: middle; }
.hub-mx-legend { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; font-size: 14px; color: var(--ink-2); }
.hub-mx-legend .hub-dot { inline-size: 12px; block-size: 12px; box-shadow: none; }
.hub-common { margin-block-start: var(--flow-gap); padding: var(--space-5); background: var(--white); border: 1px solid var(--steel-200); border-inline-start: 4px solid var(--red); }
.hub-common-title { margin: 0 0 var(--flow-gap-tight); font-family: var(--f-card-title); font-size: var(--fs-card-title-sm); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); text-transform: var(--tt-card-title); }
.hub-common-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.hub-common-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.hub-common-list a:hover { color: var(--red); }
.hub-common-list .ico { inline-size: 18px; block-size: 18px; stroke: var(--red); fill: none; stroke-width: 2.25; }

/* ---------------- Markets ---------------- */
.hub-map { margin: var(--flow-gap) 0 0; }
.hub-map svg { display: block; inline-size: 100%; block-size: auto; }
.hub-land { fill: var(--navy-700); }
.hub-route { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; transition: stroke-width .2s ease, opacity .2s ease; }
.hub-pin circle { fill: var(--red); stroke: var(--white); stroke-width: 1.5; }
.hub-pin .hub-pin-pulse, .hub-origin .hub-pin-pulse { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: 0; }
.hub-origin circle { fill: var(--gold); stroke: var(--navy-900); stroke-width: 2; }
.hub-origin .hub-pin-pulse { stroke: var(--gold); }
.hub-map.is-dim .hub-route { opacity: .2; }
.hub-map.is-dim .hub-route.is-hot { opacity: 1; stroke-width: 2.6; }
.hub-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-block-start: var(--space-3); color: var(--mist-2); font-size: 13px; }
.hub-map-key { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--mist); }
.hub-map-origin { inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--gold); }
.hub-mk-grid { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.hub-mk-card {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5);
  background: var(--navy-800); border: 1px solid var(--navy-700); border-block-start: 3px solid var(--navy-600);
  transition: border-color .25s ease, transform .3s ease;
}
.hub-mk-card:hover, .hub-mk-card.is-hot { border-block-start-color: var(--red); transform: translateY(-3px); }
.hub-mk-card > h3 { margin: 0; color: var(--white); }
.hub-mk-card > h3 a { color: inherit; text-decoration: none; }
.hub-mk-card > p { margin: 0; color: var(--mist); font-size: 15px; line-height: 1.6; }
.hub-mk-countries { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-mk-countries span { padding: 2px var(--space-2); font-family: var(--f-mono); font-size: 12px; color: var(--mist); border: 1px solid var(--navy-600); }
.hub-mk-go { margin-block-start: auto; align-self: flex-start; white-space: nowrap; }

/* ---------------- Projects ---------------- */
.hub-pj-grid { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hub-pj-card a { display: flex; flex-direction: column; block-size: 100%; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--steel-200); transition: box-shadow .3s ease, transform .3s ease; }
.hub-pj-card a:hover, .hub-pj-card a:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(10, 26, 48, .55); }
.hub-pj-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--steel-100); }
.hub-pj-media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hub-pj-card a:hover .hub-pj-media img { transform: scale(1.05); }
.hub-pj-flag { position: absolute; inset-block-start: var(--space-3); inset-inline-start: var(--space-3); padding: 2px var(--space-2); font-size: 12px; color: var(--white); background: rgba(10, 26, 48, .8); }
.hub-pj-body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--space-5); }
.hub-pj-body > h3 { margin: 0; }
.hub-pj-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1px; }
.hub-pj-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.hub-pj-meta .ico { inline-size: 14px; block-size: 14px; stroke: var(--red); fill: none; stroke-width: 2; }
.hub-pj-scope { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hub-empty { margin-block-start: var(--flow-gap); padding: var(--space-5); background: var(--steel-50); border-inline-start: 4px solid var(--red); }


/* ---------------- Ecosystem: stack (sticky cards that pile up) ---------------- */
.hub-stack { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.hub-stack-card { position: sticky; inset-block-start: calc(var(--header-h, 89px) + 20px + var(--hub-i, 0) * 14px); display: grid; grid-template-columns: minmax(0, 1fr); background: var(--navy-800); border: 1px solid var(--navy-700); border-block-start: 4px solid var(--red); box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .8); transform-origin: 50% 0; transform: scale(var(--hub-s, 1)); filter: brightness(var(--hub-b, 1)); will-change: transform; }
.hub-stack-side { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: linear-gradient(135deg, rgba(165, 0, 0, .9), rgba(110, 0, 0, .9)); color: var(--white); overflow: hidden; }
.hub-stack-no { font-size: 56px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); }
.hub-stack-ico { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); }
.hub-stack-ico .ico { inline-size: 22px; block-size: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.hub-stack-of { margin-inline-start: auto; font-size: 12px; letter-spacing: 1px; color: #FFD4D4; }
.hub-stack-card > .hub-stage-body { padding: var(--space-5); }
.hub-stack-card .hub-stage-body > h3 { font-size: var(--fs-card-title-lg); }
.hub-stack-card .hub-stage-links { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--space-2); margin-block-start: var(--space-5); }
@media (min-width: 900px) {
  .hub-stack { gap: var(--space-6, 48px); }
  .hub-stack-card { grid-template-columns: 260px minmax(0, 1fr); min-block-size: 300px; }
  .hub-stack-side { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: var(--space-5); }
  .hub-stack-no { font-size: 120px; }
  .hub-stack-of { margin-inline-start: 0; }
  .hub-stack-card > .hub-stage-body { padding: clamp(28px, 3.5vw, 48px); align-self: center; }
  .hub-stack-side::after { content: ""; position: absolute; inset: auto -40px -40px auto; inline-size: 160px; block-size: 160px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 50%; }
}

/* ---------------- Ecosystem: bento (feature grid of mixed tiles) ---------------- */
.hub-bento { list-style: none; margin: var(--flow-gap) 0 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.hub-bento-brand { display: grid; align-content: end; gap: var(--space-2); padding: var(--space-5); min-block-size: 180px; background: radial-gradient(120% 120% at 100% 0, #C21414, var(--red) 45%, #5A0000); color: var(--white); position: relative; overflow: hidden; }
.hub-bento-brand::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 18px); }
.hub-bento-brand strong { position: relative; font-size: clamp(26px, 3vw, 40px); line-height: 1; letter-spacing: .8px; text-transform: uppercase; }
.hub-bento-brand span { position: relative; color: #FFE4E4; font-size: 15px; }
.hub-tile { position: relative; display: grid; align-content: start; gap: var(--space-4); padding: var(--space-5); background: var(--white); border: 1px solid var(--steel-200); overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.hub-tile:hover { border-color: var(--red); box-shadow: 0 24px 48px -30px rgba(10, 26, 48, .55); transform: translateY(-3px); }
.hub-tile-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--hub-mx, 50%) var(--hub-my, 50%), rgba(165, 0, 0, .12), transparent 70%); transition: opacity .3s ease; }
.hub-tile:hover .hub-tile-glow { opacity: 1; }
.hub-tile-head { position: relative; display: flex; align-items: center; justify-content: space-between; }
.hub-tile-ico { display: grid; place-items: center; inline-size: 52px; block-size: 52px; background: var(--steel-50); border: 1px solid var(--steel-200); color: var(--red); }
.hub-tile-ico .ico { inline-size: 26px; block-size: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.hub-tile-no { font-size: 13px; letter-spacing: 1px; color: var(--steel-400, #8A97A8); }
.hub-tile .hub-stage-body { position: relative; }
.hub-tile .hub-stage-links { margin-block-start: var(--space-4); }
.hub-tile--1 { background: var(--navy-900); border-color: var(--navy-800); }
.hub-tile--1 .hub-stage-body > h3 { color: var(--white); font-size: var(--fs-card-title-lg); }
.light.hub-eco .hub-tile--1 .hub-stage-body > h3 { color: var(--white); }
.light.hub-eco .hub-tile--1 .hub-stage-body > p { color: var(--mist); }
.hub-tile--1 .hub-tile-ico { background: var(--red); border-color: var(--red); color: var(--white); }
.hub-tile--1 .hub-tile-glow { background: radial-gradient(320px circle at var(--hub-mx, 50%) var(--hub-my, 50%), rgba(255, 80, 80, .22), transparent 70%); }
@media (min-width: 700px) { .hub-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-tile--1 { grid-column: span 2; } }
@media (min-width: 1100px) {
  .hub-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
  .hub-tile--1 { grid-column: span 2; grid-row: span 2; align-content: space-between; padding: clamp(28px, 3vw, 44px); }
  .hub-tile--1 .hub-tile-ico { inline-size: 72px; block-size: 72px; }
  .hub-tile--1 .hub-tile-ico .ico { inline-size: 36px; block-size: 36px; }
  .hub-bento-brand { grid-column: span 2; }
  .hub-tile--4 { grid-column: span 2; }
  .hub-tile--4 .hub-stage-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3); }
}

/* ---------------- Ecosystem: rail (horizontal runway of stages) ---------------- */
.hub-rail { margin-block-start: var(--flow-gap); }
.hub-rail-track { list-style: none; margin: 0; padding: 0 0 var(--space-3); display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hub-rail-track::-webkit-scrollbar { display: none; }
.hub-rail-track:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.hub-rail-card { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; background: var(--navy-800); border: 1px solid var(--navy-700); transition: border-color .4s ease, background .4s ease, transform .4s ease; }
.hub-rail-card.is-on { border-color: rgba(165, 0, 0, .8); background: linear-gradient(180deg, rgba(165, 0, 0, .14), var(--navy-800) 45%); }
.hub-rail-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: var(--space-4) var(--space-5); border-block-end: 1px dashed var(--navy-700); overflow: hidden; }
.hub-rail-top::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 22px, transparent 22px 40px); opacity: .55; }
.hub-rail-no { font-size: 64px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); }
.hub-rail-card.is-on .hub-rail-no { -webkit-text-stroke-color: #FF8A8A; }
.hub-rail-ico { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--red); color: var(--white); }
.hub-rail-ico .ico { inline-size: 24px; block-size: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.hub-rail-card > .hub-stage-body { padding: var(--space-5); }
.hub-rail-bar { display: flex; align-items: center; gap: var(--space-3); margin-block-start: var(--space-4); }
.hub-rail-progress { flex: 1; block-size: 3px; background: var(--navy-700); position: relative; overflow: hidden; }
.hub-rail-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: calc(var(--hub-p, 0) * 100%); min-inline-size: 8%; background: var(--red); transition: inline-size .2s linear; }
.hub-rail-btn { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border: 1px solid var(--navy-700); background: var(--navy-800); color: var(--white); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.hub-rail-btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.hub-rail-btn:disabled { opacity: .35; cursor: default; }
.hub-rail-btn .ico { inline-size: 20px; block-size: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
[dir="rtl"] .hub-rail-btn .ico { transform: scaleX(-1); }
@media (min-width: 1000px) { .hub-rail-track { grid-auto-columns: calc((100% - 2 * var(--space-4)) / 3.2); } }
.hub-motion .hub-rail .hub-rail-card { opacity: 0; transform: translateX(60px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1), border-color .4s ease, background .4s ease; transition-delay: calc(var(--hub-i, 0) * 100ms); }
.hub-motion .hub-rail.is-in .hub-rail-card { opacity: 1; transform: none; }
[dir="rtl"] .hub-motion .hub-rail .hub-rail-card { transform: translateX(-60px); }
[dir="rtl"] .hub-motion .hub-rail.is-in .hub-rail-card { transform: none; }

/* Tabbed styles below 1000px: every stage is listed, each style keeps its own look */
@media (max-width: 999px) {
  .hub-orbit .hub-orbit-hub { display: grid; place-content: center; gap: 4px; inline-size: 168px; aspect-ratio: 1; margin: 0 auto var(--space-5); padding: var(--space-3); border-radius: 50%; text-align: center; background: radial-gradient(circle at 35% 30%, #C21414, var(--red) 55%, #6E0000); box-shadow: 0 0 0 8px rgba(165, 0, 0, .16), 0 0 0 18px rgba(165, 0, 0, .06); }
  .hub-orbit .hub-orbit-hub strong { font-size: 17px; line-height: 1.05; letter-spacing: .8px; text-transform: uppercase; color: var(--white); }
  .hub-orbit .hub-orbit-hub span { font-size: 11px; line-height: 1.3; color: #FFE4E4; }
  .hub-orbit .hub-panel { padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); border-inline-start: 3px solid var(--red); background: linear-gradient(90deg, rgba(165, 0, 0, .12), rgba(165, 0, 0, 0) 60%); }
  .hub-layers .hub-panel { padding: var(--space-5) var(--space-4) var(--space-4); background: var(--navy-800); border-block-start: 4px solid var(--red); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
  .hub-layers .hub-panel:nth-child(even) { margin-inline-start: var(--space-3); }
  .hub-spot .hub-panel { padding: var(--space-5) var(--space-4) var(--space-4); border: 1px solid var(--navy-700); background: radial-gradient(120% 80% at 100% 0, rgba(165, 0, 0, .22), rgba(165, 0, 0, 0) 60%), var(--navy-800); }
  .hub-orbit .hub-panel + .hub-panel, .hub-layers .hub-panel + .hub-panel, .hub-spot .hub-panel + .hub-panel { margin-block-start: var(--space-3); }
  .hub-panel .hub-panel-no { font-size: 72px; inset-block-start: var(--space-2); inset-inline-end: var(--space-3); }
  .hub-panel > .hub-stage-body > h3, .hub-panel > .hub-stage-body > p { padding-inline-end: 72px; }
}

/* ---------------- Motion (hub.js adds .hub-motion without prefers-reduced-motion) ---------------- */
.hub-motion .hub-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--hub-i, 0) * 80ms); }
.hub-motion .hub-rv.is-in { opacity: 1; transform: none; }
.hub-motion .hub-card.is-enter { animation: hub-pop .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--hub-i, 0) * 50ms); }
.hub-motion .hub-eco-chain::after { transform: scaleY(0); transition: transform 1.6s cubic-bezier(.4, 0, .2, 1) .2s; }
.hub-motion .hub-eco-chain.is-in::after { transform: none; }
.hub-motion .hub-eco-chain .hub-stage { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(.25s + var(--hub-i, 0) * 220ms); }
.hub-motion .hub-eco-chain.is-in .hub-stage { opacity: 1; transform: none; }
.hub-motion .hub-eco-chain.is-in .hub-stage-node { animation: hub-ring 1s ease both; animation-delay: calc(.35s + var(--hub-i, 0) * 220ms); }
@media (min-width: 1100px) {
  .hub-motion .hub-eco-chain::after { transform: scaleX(0); }
  .hub-motion .hub-eco-chain.is-in::after { transform: none; }
}
.hub-motion .hub-mx-scroll tbody .hub-dot { transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.2s + var(--hub-i, 0) * 70ms); }
.hub-motion .hub-mx-scroll tbody tr { --hub-d: 0; }
.hub-motion .hub-mx-scroll.is-in tbody .hub-dot { transform: none; }
.hub-motion .hub-mx-scroll.is-in tbody a.hub-dot:hover { transform: scale(1.25); }
.hub-motion .hub-map .hub-route { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1); transition-delay: calc(.2s + var(--hub-i, 0) * 180ms); }
.hub-motion .hub-map.is-in .hub-route { stroke-dashoffset: 0; }
.hub-motion .hub-map .hub-pin { opacity: 0; transition: opacity .4s ease; transition-delay: calc(1.2s + var(--hub-i, 0) * 180ms); }
.hub-motion .hub-map.is-in .hub-pin { opacity: 1; }
.hub-motion .hub-map.is-in .hub-pin-pulse { animation: hub-pulse 2.6s ease-out infinite; animation-delay: calc(1.6s + var(--hub-i, 0) * 180ms); }
.hub-motion .hub-map.is-in .hub-origin .hub-pin-pulse { animation-delay: 0s; }
@keyframes hub-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hub-ring { 0% { box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 6px rgba(165, 0, 0, .6); } 100% { box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 20px rgba(165, 0, 0, 0); } }
@keyframes hub-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.hub-pin-pulse { transform-box: fill-box; transform-origin: center; }

/* Hero motion */
.hub-motion .hub-slide.is-on img { animation: hub-zoom 9s ease-out both; }
.hub-motion .hub-frame-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hub-draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.hub-motion .hub-frame-lines path:nth-child(2) { animation-delay: .5s; }
.hub-motion .hub-frame-lines path:nth-child(3) { animation-delay: .9s; }
.hub-motion .hub-frame-lines path:nth-child(4) { animation-delay: 1.2s; }
.hub-motion .hub-frame-lines path:nth-child(5) { animation-delay: 1.5s; animation-duration: 3s; }
.hub-motion .hub-frame-nodes circle { opacity: 0; animation: hub-fade .6s ease forwards 2.2s; }
.hub-motion .hub-hero-copy > * { animation: hub-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hub-motion .hub-hero-copy > :nth-child(2) { animation-delay: .12s; }
.hub-motion .hub-hero-copy > :nth-child(3) { animation-delay: .24s; }
.hub-motion .hub-hero-copy > :nth-child(4) { animation-delay: .36s; }
.hub-motion .hub-hero-copy > :nth-child(5) { animation-delay: .48s; }
.hub-motion .hub-stat { animation: hub-rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.6s + var(--hub-i, 0) * 120ms); }
.hub-motion .hub-reel { animation: hub-rise .8s cubic-bezier(.2, .7, .2, 1) both .9s; }
.hub-motion .hub-word { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.hub-motion .hub-word.is-out { opacity: 0; transform: translateY(-.6em); }
.hub-motion .hub-rotator-words::after { animation: hub-underline 1s cubic-bezier(.4, 0, .2, 1) both .6s; transform-origin: left; }
.hub-motion .hub-reel-item .hub-reel-bar { transition: none; }
.hub-motion .hub-reel-item.is-on .hub-reel-bar { animation: hub-progress var(--hub-slide-ms, 5000ms) linear both; }
.hub-hero.is-paused .hub-reel-item.is-on .hub-reel-bar { animation-play-state: paused; }
/* Ecosystem motion */
.hub-motion .hub-ring-a { animation: hub-spin 60s linear infinite; }
.hub-motion .hub-ring-c { animation: hub-spin 90s linear infinite reverse; }
.hub-motion .hub-orbit .hub-node { opacity: 0; transition: opacity .5s ease; transition-delay: calc(.2s + var(--hub-i, 0) * 120ms); }
.hub-motion .hub-orbit.is-in .hub-node { opacity: 1; }
.hub-motion .hub-orbit.is-in .hub-node.is-on .hub-node-ico { animation: hub-node-pulse 2.4s ease-out infinite; }
.hub-motion .hub-spoke.is-on { animation: hub-spoke 1.6s ease-in-out infinite alternate; }
.hub-motion .hub-honey .hub-cell.hub-rv { transform: translateY(30px) scale(.86) rotate(-6deg); }
.hub-motion .hub-honey .hub-cell.hub-rv.is-in { transform: none; }
@media (min-width: 1000px) {
  .hub-motion .hub-honey .hub-cell:nth-child(3n + 2).hub-rv { transform: translateY(calc(42% + 30px)) scale(.86) rotate(6deg); }
  .hub-motion .hub-honey .hub-cell:nth-child(3n + 2).hub-rv.is-in { transform: translateY(42%); }
}
.hub-motion .hub-flow-step.hub-rv { transform: translateX(-30px); }
.hub-motion .hub-flow-step.is-alt.hub-rv { transform: translateX(30px); }
.hub-motion .hub-flow-step.hub-rv.is-in { transform: none; }
@media (max-width: 999px) {
  /* Single-column flow: slide up, not sideways, so hidden steps never widen the page on phones */
  .hub-motion .hub-flow-step.hub-rv, .hub-motion .hub-flow-step.is-alt.hub-rv { transform: translateY(24px); }
  .hub-motion .hub-flow-step.hub-rv.is-in { transform: none; }
}
.hub-motion .hub-flow-step.is-in .hub-flow-node { animation: hub-ring-light 1s ease both .2s; }
.hub-motion .hub-layers .hub-plate { opacity: 0; transform: translateY(-40px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--hub-i, 0) * 110ms); }
.hub-motion .hub-layers.is-in .hub-plate { opacity: 1; transform: none; }
@media (min-width: 1000px) {
  /* Plates only shift sideways in the desktop stack; on phones they stay inside the page width */
  .hub-motion .hub-layers.is-in .hub-plate.is-on { transform: translateX(28px); transition-delay: 0s; }
  .hub-motion .hub-layers.is-in .hub-plate:hover:not(.is-on) { transform: translateX(10px); transition-delay: 0s; }
  [dir="rtl"] .hub-motion .hub-layers.is-in .hub-plate.is-on { transform: translateX(-28px); }
  [dir="rtl"] .hub-motion .hub-layers.is-in .hub-plate:hover:not(.is-on) { transform: translateX(-10px); }
}
.hub-motion .hub-net .hub-wire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1); transition-delay: calc(.2s + var(--hub-i, 0) * 120ms); }
.hub-motion .hub-net .hub-wire.is-ring { stroke-dasharray: .01 .02; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s ease 1.2s; }
.hub-motion .hub-net.is-in .hub-wire { stroke-dashoffset: 0; }
.hub-motion .hub-net.is-in .hub-wire.is-ring { opacity: 1; }
.hub-motion .hub-net .hub-net-node { opacity: 0; transition: opacity .4s ease; transition-delay: calc(.6s + var(--hub-i, 0) * 120ms); }
.hub-motion .hub-net.is-in .hub-net-node { opacity: 1; }
.hub-motion .hub-net.is-in .hub-signal { animation: hub-signal 3.2s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: calc(1.6s + var(--hub-i, 0) * 450ms); }
.hub-motion .hub-net.is-in .hub-net-halo { animation: hub-pulse 2.8s ease-out infinite; }
.hub-motion .hub-spot-tab.is-on .hub-spot-bar { animation: hub-progress var(--hub-auto-ms, 6000ms) linear both; }
.hub-motion .hub-spot.is-paused .hub-spot-tab.is-on .hub-spot-bar { animation: none; transform: scaleX(1); }
@keyframes hub-spin { to { transform: rotate(360deg); } }
@keyframes hub-node-pulse { 0% { box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 6px rgba(165, 0, 0, .55); } 100% { box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 26px rgba(165, 0, 0, 0); } }
@keyframes hub-spoke { from { opacity: .45; } to { opacity: 1; } }
@keyframes hub-ring-light { 0% { box-shadow: 0 0 0 6px var(--steel-50), 0 0 0 6px rgba(165, 0, 0, .5); } 100% { box-shadow: 0 0 0 6px var(--steel-50), 0 0 0 22px rgba(165, 0, 0, 0); } }
@keyframes hub-signal { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes hub-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes hub-draw { to { stroke-dashoffset: 0; } }
@keyframes hub-fade { to { opacity: 1; } }
@keyframes hub-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hub-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hub-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hub-motion .hub-bento .hub-tile, .hub-motion .hub-bento .hub-bento-brand { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, box-shadow .3s ease; transition-delay: calc(var(--hub-i, 0) * 90ms); }
.hub-motion .hub-bento.is-in .hub-tile, .hub-motion .hub-bento.is-in .hub-bento-brand { opacity: 1; transform: none; }
.hub-motion .hub-bento.is-in .hub-tile:hover { transform: translateY(-3px); transition-delay: 0s; }
.hub-motion .hub-bento.is-in .hub-tile-ico .ico { animation: hub-draw 1.2s ease both; animation-delay: calc(.3s + var(--hub-i, 0) * 90ms); stroke-dasharray: 120; stroke-dashoffset: 120; }
.hub-motion .hub-stack-card { opacity: 0; translate: 0 40px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.hub-motion .hub-stack-card.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hub-frame-lines path, .hub-frame-nodes circle, .hub-slide img, .hub-hero-copy > *, .hub-stat, .hub-reel { animation: none !important; }
  .hub-motion .hub-rv, .hub-motion .hub-eco-chain .hub-stage { opacity: 1; transform: none; transition: none; }
  .hub-card-link, .hub-card-media img, .hub-pj-card a, .hub-pj-media img, .hub-mk-card, .hub-arrow { transition: none; }
  .hub-card-link:hover, .hub-pj-card a:hover, .hub-mk-card:hover { transform: none; }
  .hub-card-link:hover .hub-card-media img, .hub-pj-card a:hover .hub-pj-media img { transform: none; }
  .hub-pin-pulse, .hub-ring-a, .hub-ring-c, .hub-signal, .hub-net-halo, .hub-node-ico, .hub-spoke { animation: none !important; }
  .hub-hex, .hub-plate, .hub-hex-ico .ico { transition: none; }
}

@media (max-width: 719px) {
  .hub-card-body { padding-inline: var(--space-4); padding-block-end: var(--space-4); }
  .hub-mx-table tbody th { min-inline-size: 170px; font-size: 14px; }
  .hub-map { margin-inline: calc(var(--space-4) * -1); }
}

.hub-reel-btn { font: inherit; cursor: pointer; }
