/* ==========================================================================
   Prime Rule — public site styles
   All colours, fonts, radius, shadow and motion come from the CSS variables
   emitted by the admin Theme module (<style id="theme-vars">). No literal colours here.
   ========================================================================== */

:root {
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: calc(180ms * var(--motion, 1));
  --t-med: calc(320ms * var(--motion, 1));
  --t-slow: calc(700ms * var(--motion, 1));
  --origin: left;
}
[dir="rtl"] { --origin: right; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.95; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-light); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); color: var(--heading); line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.45; letter-spacing: 0; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--primary-dark); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: var(--s2); top: -100px; z-index: 200; background: var(--primary); color: var(--on-dark); padding: 12px 20px; border-radius: var(--radius-sm); text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: var(--s2); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-text); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-dark); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-lg { padding: 16px 32px; }
.btn .icon { transition: transform var(--t-med) var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 90; height: var(--header-h); color: var(--header-text); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--header-bg-rgb), 0); transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}
.site-header.is-scrolled::before, body.has-hero-photo .site-header::before {
  background: rgba(var(--header-bg-rgb), .88);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 100%; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand-logo { height: 44px; width: auto; max-width: 220px; display: block; }
.brand-wordmark { font-family: var(--font-heading); font-size: 1.45rem; letter-spacing: .16em; white-space: nowrap; line-height: 1; }
[dir="rtl"] .brand-wordmark { letter-spacing: 0; font-size: 1.6rem; }
.wm-a { color: var(--primary); font-weight: 700; }
.wm-b { color: var(--heading); font-weight: 400; }

.primary-nav { display: flex; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link {
  position: relative; display: block; padding: 10px 14px; color: var(--header-text); text-decoration: none;
  font-size: .95rem; font-weight: 500;
}
.nav-link::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: var(--origin); transition: transform var(--t-med) var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--primary); font-weight: 600; }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--header-text);
  text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid var(--border); background: rgba(var(--header-bg-rgb), .6);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--header-text); }
.nav-toggle .bars { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle .bars i { position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast), top var(--t-med) var(--ease); }
.nav-toggle .bars i:nth-child(1) { top: 0; } .nav-toggle .bars i:nth-child(2) { top: 6px; } .nav-toggle .bars i:nth-child(3) { top: 12px; }
.nav-open .nav-toggle .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(var(--primary-dark-rgb), .55); }
.nav-backdrop[hidden] { display: none; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .primary-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(88vw, 380px); z-index: 95;
    flex-direction: column; padding: calc(var(--header-h) + 8px) var(--s3) var(--s4); background: var(--header-bg);
    box-shadow: var(--shadow-lg); overflow-y: auto; visibility: hidden;
    transform: translateX(100%); transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  [dir="rtl"] .primary-nav { transform: translateX(-100%); }
  .nav-open .primary-nav { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--primary); box-shadow: inset 3px 0 0 var(--accent); padding-inline-start: 14px; }
  [dir="rtl"] .nav-link.is-active { box-shadow: inset -3px 0 0 var(--accent); }
  .nav-cta-mobile { display: block; margin-top: var(--s3); }
  .nav-cta-mobile .btn { width: 100%; }
  .site-header { z-index: 100; }
  .nav-open { overflow: hidden; }
  .nav-toggle { position: relative; z-index: 110; }
}
@media (max-width: 420px) {
  .lang-switch span { display: none; }
  .lang-switch { padding: 10px; }
  .brand-logo { height: 38px; max-width: 150px; }
  .brand-wordmark { font-size: 1.2rem; }
}

/* ---------- Generic sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); scroll-margin-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s2); color: var(--primary);
  font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.section-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.lead { font-size: 1.2rem; line-height: 1.75; color: var(--muted); }
.section-head .lead { margin-top: var(--s2); margin-bottom: 0; }

/* Scroll reveal (only when JS is on and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 90ms * var(--motion, 1)); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; overflow: hidden; padding: var(--s4) 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med), opacity var(--t-slow) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: var(--origin); transition: transform var(--t-med) var(--ease);
}
.card:hover, .js .card.reveal.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: var(--s3);
  border-radius: var(--radius); color: var(--primary); background: rgba(var(--primary-rgb), .08);
  transition: background var(--t-med), color var(--t-med), transform var(--t-med) var(--ease);
}
.icon-badge.sm { width: 44px; height: 44px; margin: 0; }
.card:hover .icon-badge { background: var(--primary); color: var(--on-dark); transform: rotate(-4deg) scale(1.05); }
.about .card-grid { margin-top: var(--s10); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 960px); display: flex; align-items: center; padding: calc(var(--header-h) + var(--s8)) 0 var(--s10); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; color: var(--primary); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.orb-1 { width: 520px; height: 520px; inset-inline-end: -120px; top: -80px; background: radial-gradient(circle, rgba(var(--primary-rgb), .28), transparent 65%); animation: float 16s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; inset-inline-start: -140px; bottom: -120px; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 65%); animation: float 20s ease-in-out infinite reverse; }
.hero-grid { position: absolute; inset: 0; opacity: .16; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(var(--primary-dark-rgb), .92) 0%, rgba(var(--primary-dark-rgb), .62) 55%, rgba(var(--primary-dark-rgb), .35) 100%); }
.hero.has-photo, .hero.has-photo h1, .hero.has-photo .eyebrow, .hero.has-photo .hero-sub, .hero.has-photo .hero-loc { color: var(--on-dark); }
.hero.has-photo .eyebrow::before { background: var(--accent); }
.hero.has-photo .btn-outline { color: var(--on-dark); border-color: var(--on-dark); }
.hero.has-photo .btn-outline:hover { background: var(--on-dark); color: var(--primary-dark); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: center; }
.hero-copy { max-width: 680px; position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.06; margin-bottom: var(--s3); }
[dir="rtl"] .hero-title { line-height: 1.35; font-size: clamp(2.3rem, 5vw, 4rem); }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.hero-loc { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin: 0; letter-spacing: .04em; }
.hero-loc .icon { color: var(--accent); }
.hero-art { display: none; position: relative; z-index: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform var(--t-slow) var(--ease); }
.skyline { width: 100%; height: auto; max-height: 640px; overflow: visible; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .hero-art { display: block; }
}
@media (max-width: 899px) {
  .hero { min-height: 0; padding-bottom: var(--s8); }
  .hero-art { display: block; position: absolute; inset-inline-end: -18%; bottom: -6%; width: 78%; opacity: .16; pointer-events: none; z-index: -1; }
}
.skyline .t-body { stroke: var(--primary); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s var(--ease) var(--d, 0s) forwards; }
.skyline .t-cap { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) 1.2s forwards; }
.skyline .t-mast { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: fade 1s ease 1.8s forwards; }
.skyline .t-lines path { stroke: var(--primary); stroke-opacity: .2; stroke-width: 1; opacity: 0; animation: fade 1.2s ease calc(var(--d, 0s) + .9s) forwards; }
.skyline .lit { fill: var(--accent); opacity: 0; animation: blink 5s ease-in-out calc(var(--d, 0s) + 1.8s + var(--k, 0) * .8s) infinite; }
.skyline .ground { stroke: var(--primary); stroke-opacity: .5; stroke-width: 1.5; fill: none; }
.skyline .ground.g2 { stroke-opacity: .25; }
.skyline .arc { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 8; opacity: .7; }
.skyline .sun { animation: spin 60s linear infinite; transform-origin: 418px 120px; }
.scroll-cue { position: absolute; bottom: 24px; inset-inline-start: 50%; width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 14px; transform: translateX(-50%); display: none; }
.scroll-cue span { position: absolute; top: 8px; inset-inline-start: 50%; width: 3px; height: 8px; margin-inline-start: -1.5px; border-radius: 3px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@media (min-width: 900px) and (min-height: 720px) { .scroll-cue { display: block; } }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 0; } 30%, 60% { opacity: .55; } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(30px, 24px, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; align-items: center; }
.about-copy .section-head { margin-bottom: var(--s3); }
.about-copy p { color: var(--muted); }
.about-copy .lead { color: var(--text); }
.about-visual { position: relative; max-width: 460px; width: 100%; margin-inline: auto; aspect-ratio: 1; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.blueprint { width: 100%; height: 100%; }
.blueprint .bp-frame { fill: none; stroke: var(--primary); stroke-width: 1.4; opacity: .55; }
.blueprint .bp-2 { stroke: var(--accent); stroke-dasharray: 4 6; opacity: .8; }
.blueprint .bp-cross { stroke: var(--primary); stroke-width: 1.4; opacity: .5; }
.blueprint .bp-build { fill: rgba(var(--primary-rgb), .05); stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.blueprint .bp-build.thin { fill: none; stroke-width: 1.2; opacity: .45; }
.blueprint .bp-dot { fill: var(--accent); }
.blueprint .bp-arc { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Services (tabs) ---------- */
.tablist-wrap { display: flex; justify-content: center; margin-bottom: var(--s8); }
.tablist { position: relative; display: inline-flex; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); max-width: 100%; }
.tab { position: relative; z-index: 1; padding: 13px 28px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--muted); transition: color var(--t-med); white-space: nowrap; }
.tab:hover { color: var(--primary); }
.tab[aria-selected="true"] { color: var(--on-dark); }
.tab-indicator { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: var(--iw, 50%); transform: translateX(var(--ix, 0px)); background: var(--primary); border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), width var(--t-med) var(--ease); }
html:not(.js) .tablist-wrap { display: none; }
.js .tab-panel { display: none; }
.js .tab-panel.is-active { display: block; }
.tab-panel:focus-visible { outline-offset: 12px; }
.tab-panel .panel-head { max-width: 760px; }
.tab-panel.is-active .panel-head, .tab-panel.is-active .service-card { animation: cardIn var(--t-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms * var(--motion, 1) + 60ms); }
.tab-panel.is-active .panel-head { animation-delay: 0s; }
html:not(.js) .tab-panel + .tab-panel { margin-top: var(--s10); }
@media (max-width: 639px) {
  .tablist { display: flex; width: 100%; }
  .tab { flex: 1; padding: 12px 10px; font-size: .9rem; white-space: normal; line-height: 1.3; }
}

/* ---------- Platform (dark) ---------- */
.section-dark { background: linear-gradient(140deg, var(--primary-dark), var(--primary) 130%); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .lead { color: var(--on-dark); opacity: .82; }
.dark-pattern { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(135deg, transparent 0 46px, rgba(var(--accent-rgb), .07) 46px 47px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--primary-dark) 25%, var(--primary-dark) 75%, transparent); mask-image: linear-gradient(to bottom, transparent, var(--primary-dark) 25%, var(--primary-dark) 75%, transparent); }
.dark-photo { position: absolute; inset: 0; z-index: -2; }
.dark-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; }
.platform-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; align-items: center; }
.hub { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub .ring { stroke: var(--accent); stroke-opacity: .25; stroke-dasharray: 2 5; stroke-width: 1; }
.hub .ring.r2 { stroke-opacity: .15; }
.hub .spoke { stroke: var(--accent); stroke-opacity: .35; stroke-width: 1.2; transition: stroke-opacity var(--t-med), stroke-width var(--t-med); }
.hub .spoke.is-active { stroke-opacity: 1; stroke-width: 2.2; }
.hub-core { position: absolute; top: 50%; inset-inline-start: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 8px;
  background: var(--primary-dark); border: 2px solid var(--accent); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .08), var(--shadow-lg); font-family: var(--font-heading); font-size: clamp(.7rem, 1.6vw, .95rem); letter-spacing: .12em; color: var(--on-dark); line-height: 1.25; }
[dir="rtl"] .hub-core { transform: translate(50%, -50%); letter-spacing: 0; }
.hub-node { position: absolute; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--primary-dark); border: 1.5px solid rgba(var(--accent-rgb), .55); color: var(--accent); transition: transform var(--t-med) var(--ease), background var(--t-med), color var(--t-med), box-shadow var(--t-med); }
.hub-node.is-active { background: var(--accent); color: var(--primary-dark); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .18); }
.hub-node.is-active { transform: translate(-50%, -50%) scale(1.15); }
.platform-list { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
.platform-item { display: flex; gap: var(--s2); padding: 22px 24px; border-radius: var(--radius); background: rgba(var(--on-dark-rgb), .05); border: 1px solid rgba(var(--on-dark-rgb), .12); transition: background var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease); cursor: default; }
.platform-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.platform-item p { margin: 0; font-size: .97rem; opacity: .8; }
.pi-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.platform-item:hover, .platform-item.is-active, .platform-item:focus-visible { background: rgba(var(--on-dark-rgb), .11); border-color: var(--accent); transform: translateX(6px); }
[dir="rtl"] .platform-item:hover, [dir="rtl"] .platform-item.is-active, [dir="rtl"] .platform-item:focus-visible { transform: translateX(-6px); }
.platform-item:focus-visible { outline-color: var(--accent); }
@media (min-width: 640px) { .platform-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .platform-grid { grid-template-columns: .85fr 1.15fr; gap: var(--s10); }
  .platform-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Methodology timeline ---------- */
.timeline { position: relative; margin-top: var(--s4); --p: 0; }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--s5); position: relative; }
.timeline-track { position: absolute; background: var(--border); border-radius: 2px; overflow: hidden; }
.timeline-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: var(--origin); transform: scaleX(var(--p)); }
.step { position: relative; }
.step-node { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); color: var(--muted); font-family: var(--font-heading); font-size: 1.05rem; font-variant-numeric: lining-nums; transition: background var(--t-med), border-color var(--t-med), color var(--t-med), transform var(--t-med) var(--ease), box-shadow var(--t-med); position: relative; z-index: 1; }
.step-node b { font-weight: 700; }
.step.is-active .step-node { background: var(--primary); border-color: var(--accent); color: var(--on-dark); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .18); }
.step h3 { font-size: 1.15rem; letter-spacing: .14em; margin: var(--s2) 0 var(--s1); }
[dir="rtl"] .step h3 { letter-spacing: 0; font-size: 1.3rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .875rem; line-height: 1.4; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); }

@media (max-width: 899px) {
  .timeline-track { top: 28px; bottom: 28px; inset-inline-start: 27px; width: 2px; }
  .timeline-fill { transform-origin: top; transform: scaleY(var(--p)); background: linear-gradient(180deg, var(--primary), var(--accent)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s3); align-items: start; }
  .step-node { grid-row: 1 / span 2; }
  .step h3 { margin-top: 14px; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 0; }
  .step { padding-inline: 14px; text-align: center; }
  .step-node { margin-inline: auto; }
  .step .chips { justify-content: center; }
  .timeline-track { top: 27px; height: 2px; inset-inline: calc(50% / var(--steps, 4)); }
}

/* ---------- Reporting ---------- */
.report-card { padding: 0; display: flex; flex-direction: column; }
.report-card .viz { height: 104px; padding: 20px 24px 0; background: linear-gradient(180deg, rgba(var(--primary-rgb), .06), transparent); border-bottom: 1px solid var(--border); }
.report-card .viz svg { width: 100%; height: 100%; display: block; overflow: visible; }
.report-head { display: flex; align-items: center; gap: 12px; padding: var(--s3) var(--s3) 0; }
.report-head h3 { margin: 0; font-size: 1.2rem; }
.report-card .chips { padding: var(--s2) var(--s3) var(--s3); }
.v-bars rect { fill: var(--primary); opacity: .22; transform-box: fill-box; transform-origin: bottom; }
.v-bars rect.hi { fill: var(--accent); opacity: .9; }
.v-area { fill: rgba(var(--primary-rgb), .08); }
.v-line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; }
.v-line.dim { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 5; }
.v-rows rect { fill: var(--primary); opacity: .2; }
.v-rows rect.alt { fill: var(--accent); opacity: .9; }
.v-ring { fill: none; stroke: rgba(var(--primary-rgb), .12); stroke-width: 9; }
.v-arc { fill: none; stroke: var(--primary); stroke-width: 9; stroke-linecap: round; transform-origin: 44px 36px; transform: rotate(-90deg); }
.js .report-card .v-bars rect { transform: scaleY(.12); transition: transform 1s var(--ease) calc(var(--i, 0) * 90ms + 200ms); }
.js .report-card.is-visible .v-bars rect { transform: none; }
.js .report-card .v-line { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.js .report-card .v-line.dim { stroke-dasharray: 4 5; stroke-dashoffset: 0; }
.js .report-card.is-visible .v-line:not(.dim) { stroke-dashoffset: 0; }
.js .report-card .v-arc { stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease) .3s; }
.js .report-card.is-visible .v-arc { stroke-dasharray: 68 100; }
.closing-statement { display: flex; gap: var(--s3); align-items: flex-start; margin: var(--s8) 0 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.closing-statement .icon { color: var(--accent); margin-top: 6px; }
.closing-statement p { margin: 0; font-family: var(--font-heading); font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.6; }
.closing-statement a { color: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset-inline-end: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 65%); z-index: -1; }
.contact-photo { position: absolute; inset: 0; z-index: -2; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo::after { content: ""; position: absolute; inset: 0; background: rgba(var(--primary-dark-rgb), .88); }
.contact.has-photo .contact-copy, .contact.has-photo .contact-copy h2, .contact.has-photo .contact-copy .lead, .contact.has-photo .cd-icon + div small, .contact.has-photo .contact-copy a { color: var(--on-dark); }
.contact-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; align-items: start; }
.cta-title { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.15; }
.contact-copy .section-head { margin-bottom: var(--s3); }
.contact-details { margin-top: var(--s5); }
.contact-details ul { list-style: none; display: grid; gap: var(--s2); }
.contact-details li { display: flex; align-items: center; gap: var(--s2); }
.cd-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.contact.has-photo .cd-icon { background: rgba(var(--on-dark-rgb), .12); color: var(--accent); }
.contact-details small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
[dir="rtl"] .contact-details small { letter-spacing: 0; font-size: .9rem; }
.contact-details a, .contact-details span { font-weight: 600; color: var(--heading); text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--primary-light); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); color: var(--primary); text-decoration: none; transition: background var(--t-med), color var(--t-med), transform var(--t-med) var(--ease), border-color var(--t-med); }
.social a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-dark); transform: translateY(-3px); }
.map { margin-top: var(--s4); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 44px); }
.form-title { font-size: 1.5rem; margin-bottom: var(--s3); }
.form-row { display: grid; gap: 0 var(--s3); grid-template-columns: 1fr; }
.field { margin-bottom: 6px; }
.field label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 600; color: var(--heading); }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; background: var(--bg); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .14); }
.field .invalid, .field [aria-invalid="true"] { border-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select-wrap select { padding-inline-end: 44px; cursor: pointer; }
.err { min-height: 22px; margin: 4px 0 0; color: var(--error); font-size: .85rem; line-height: 1.4; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s1); }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
.captcha-box { margin: var(--s1) 0 var(--s2); min-height: 0; }
.form-foot .btn { position: relative; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--on-dark-rgb), .35); border-top-color: var(--on-dark); animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn { pointer-events: none; opacity: .9; }
.form-status { margin-top: var(--s2); border-radius: var(--radius-sm); }
.form-status:empty { display: none; }
.form-status.ok, .form-status.fail { padding: 14px 18px; border-inline-start: 4px solid; font-weight: 500; }
.form-status.ok { color: var(--success); border-color: var(--success); background: rgba(var(--primary-rgb), .05); }
.form-status.fail { color: var(--error); border-color: var(--error); background: rgba(var(--primary-rgb), .05); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s10); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: var(--s10) 0 var(--s4); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 60%); }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .wm-a, .site-footer .wm-b { color: var(--on-dark); }
.site-footer .wm-a { color: var(--accent); }
.site-footer .brand-logo { height: 48px; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
.footer-brand p { margin: var(--s3) 0 0; max-width: 46ch; opacity: .85; font-size: .98rem; }
.site-footer .social a { border-color: rgba(var(--footer-text-rgb), .3); color: var(--footer-text); }
.site-footer .social a:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.footer-col h3 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: var(--s3); }
[dir="rtl"] .footer-col h3 { letter-spacing: 0; font-size: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .icon { margin-top: 5px; color: var(--accent); }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid rgba(var(--footer-text-rgb), .18); font-size: .9rem; opacity: .85; }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 70; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: var(--primary); color: var(--on-dark); box-shadow: var(--shadow); transition: transform var(--t-med) var(--ease), background var(--t-med); }
.to-top:hover { background: var(--primary-light); transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* ---------- Maintenance ---------- */
.maintenance { min-height: 100vh; display: grid; place-items: center; background: var(--bg-alt); padding: var(--s3); }
.maintenance-box { text-align: center; max-width: 520px; padding: var(--s8) var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.maintenance-box .brand { justify-content: center; margin-bottom: var(--s3); }
.maintenance-box p { color: var(--muted); margin: 0; }

/* ---------- Motion preferences ---------- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-motion="off"] .skyline .t-body, html[data-motion="off"] .skyline .t-cap { stroke-dashoffset: 0; }
html[data-motion="off"] .skyline .t-lines path, html[data-motion="off"] .skyline .t-mast { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .skyline .t-body, .skyline .t-cap { stroke-dashoffset: 0; }
  .skyline .t-lines path, .skyline .t-mast { opacity: 1; }
  .js .report-card .v-bars rect { transform: none; }
  .js .report-card .v-line:not(.dim) { stroke-dashoffset: 0; }
  .js .report-card .v-arc { stroke-dasharray: 68 100; }
}
