/* CDE national portal – light theme (default) and dark theme built on the CDE logo colours.
   RTL/LTR aware (logical properties). Motion uses transform/opacity only, pauses off-screen
   and is disabled by prefers-reduced-motion. */
@font-face {
  font-family: "NotoKufiArabic";
  src: url("../fonts/NotoKufiArabic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root, [data-theme="light"] {
  --mint: #07E5BB;
  --mint-deep: #05C9A4;
  --mint-ink: #02856B;            /* readable green for text on light backgrounds */
  --mint-soft: rgba(7, 229, 187, .13);
  --sky: #7CC8FF;
  --navy: #0D1B2A;
  --bg: #EAF0F5;
  --bg-alt: #DFE8EF;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #FFFFFF;
  --surface-2: #E4ECF2;
  --ink: #0D1B2A;
  --muted: #46576A;
  --line: rgba(13, 27, 42, .12);
  --line-strong: rgba(13, 27, 42, .22);
  --shadow-sm: 0 2px 6px rgba(13, 27, 42, .07), 0 10px 26px rgba(13, 27, 42, .09);
  --shadow: 0 4px 10px rgba(13, 27, 42, .06), 0 26px 60px rgba(13, 27, 42, .14);
  --glass: rgba(240, 245, 249, .78);
  --dots: rgba(13, 27, 42, .10);
  --aura-1: rgba(124, 190, 255, .26);
  --aura-2: rgba(150, 160, 255, .16);
  --aura-3: rgba(13, 27, 42, .06);
  --bubble: rgba(255, 255, 255, .88);
  color-scheme: light;
}
[data-theme="dark"] {
  --mint-ink: #3DF0CD;
  --mint-soft: rgba(7, 229, 187, .15);
  --bg: #0B1726;
  --bg-alt: #0F2034;
  --surface: rgba(19, 40, 61, .82);
  --surface-solid: #13283D;
  --surface-2: #16304A;
  --ink: #E9F2F6;
  --muted: #A3B6C6;
  --line: rgba(233, 242, 246, .09);
  --line-strong: rgba(233, 242, 246, .18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 24px 60px rgba(0, 0, 0, .38);
  --glass: rgba(11, 23, 38, .74);
  --dots: rgba(7, 229, 187, .07);
  --aura-1: rgba(58, 116, 200, .24);
  --aura-2: rgba(70, 90, 190, .18);
  --aura-3: rgba(124, 190, 255, .05);
  --bubble: rgba(22, 48, 74, .82);
  color-scheme: dark;
}

:root { --ease: cubic-bezier(.22, 1, .36, 1); --ease-soft: cubic-bezier(.45, 0, .25, 1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.8;
  font-family: "NotoKufiArabic", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
html[lang="fr"] body, html[lang="en"] body { font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "NotoKufiArabic", Arial, sans-serif; line-height: 1.65; letter-spacing: -.005em; }
html[lang="fr"] h1, html[lang="en"] h1, html[lang="fr"] h2, html[lang="en"] h2 { letter-spacing: -.03em; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--mint); color: var(--navy); padding: .5rem 1rem; border-radius: 10px; z-index: 2000; font-weight: 700; }
.skip:focus { top: 12px; }

/* Theme-dependent images (logos have a light and a dark variant: no white badges) */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: var(--glass);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease-soft);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .bar { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand .cde img { height: 46px; width: auto; }
.brand .sep { width: 1px; height: 36px; background: var(--line-strong); }
.brand .owner { display: flex; align-items: center; gap: .55rem; }
.brand .owner img { height: 44px; width: 44px; object-fit: contain; }
.brand .owner span { font-size: .72rem; line-height: 1.45; color: var(--muted); max-width: 170px; display: block; font-weight: 600; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .15rem; }
.nav a, .nav summary { position: relative; color: var(--ink); font-weight: 600; font-size: .92rem; padding: .45rem .75rem; border-radius: 10px; cursor: pointer; list-style: none; white-space: nowrap; transition: background-color .2s ease; }
.nav a:hover, .nav summary:hover { background: var(--mint-soft); text-decoration: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary i { display: inline-block; transition: transform .3s var(--ease); font-size: .75rem; }
.dropdown[open] summary i { transform: rotate(180deg); }
.dropdown { position: relative; }
.dropdown .menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 340px; background: var(--surface-solid);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: .5rem; display: grid; gap: .15rem;
  animation: pop .28s var(--ease);
}
.dropdown .menu a { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; font-weight: 500; }
.dropdown .menu img { width: 36px; height: 36px; object-fit: contain; flex: 0 0 36px; }
.dropdown .menu .dot { width: 8px; height: 8px; border-radius: 50%; margin-inline-start: auto; flex: 0 0 8px; }
.tools { display: flex; align-items: center; gap: .4rem; }
.lang-switch { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.lang-switch a { font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
[data-theme="dark"] .lang-switch a[aria-current="true"] { background: var(--mint); color: var(--navy); }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; transition: border-color .2s ease, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--mint); transform: translateY(-1px); }
.theme-btn .i-light { display: none; }
.theme-btn .i-dark { display: inline; animation: pop .35s var(--ease); }
[data-theme-pref="light"] .theme-btn .i-light { display: inline; animation: pop .35s var(--ease); }
[data-theme-pref="light"] .theme-btn .i-dark { display: none; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.55rem; font-weight: 700;
  border: 0; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s ease; font-family: inherit; font-size: .95rem; overflow: hidden; isolation: isolate;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(13, 27, 42, .22); }
.btn-primary i { color: var(--mint); }
[data-theme="dark"] .btn-primary { background: var(--mint); color: var(--navy); box-shadow: 0 10px 30px rgba(7, 229, 187, .28); }
[data-theme="dark"] .btn-primary i { color: var(--navy); }
.btn-mint { background: var(--mint); color: var(--navy); box-shadow: 0 10px 26px rgba(7, 229, 187, .30); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--mint); }
.nav-toggle { display: none; }
/* The header buttons keep their size; the menu links give way first (register button never wraps). */
.tools, .header-cta { flex-shrink: 0; }

@media (max-width: 1320px) { .brand .owner span { display: none; } }
@media (min-width: 1081px) and (max-width: 1280px) {
  .site-header .bar { gap: .6rem; }
  .nav a, .nav summary { padding: .45rem .5rem; font-size: .88rem; }
  .header-cta { padding: .6rem 1.1rem; font-size: .9rem; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--surface-solid);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem; display: none; margin: 0;
  }
  .nav.open { display: flex; animation: slide-down .35s var(--ease); }
  .nav a, .nav summary { padding: .75rem 1rem; font-size: 1rem; }
  .dropdown .menu { position: static; width: auto; box-shadow: none; }
  .brand .owner span { display: none; }
  .tools { margin-inline-start: auto; }
  .header-cta { display: none; }
}

/* ---------- Shared section styles ---------- */
section { padding: 72px 0; position: relative; isolation: isolate; }
.section-alt { background: var(--bg-alt); }
.dotted::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dots) 1.3px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.wave { position: absolute; inset-inline: 0; height: 70px; width: 100%; pointer-events: none; color: var(--bg-alt); }
.wave.top { top: -69px; }
.wave.bottom { bottom: -69px; transform: scaleY(-1); }
.wave path { fill: currentColor; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--mint-ink); font-weight: 700; font-size: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--mint), var(--sky)); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); line-height: 1.32; margin: .5rem 0 .8rem; font-weight: 800; letter-spacing: -.015em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.06rem; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: morph 22s var(--ease-soft) infinite alternate; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 84px; overflow: hidden; }
.hero .blob.b1 { width: 520px; height: 520px; background: var(--aura-1); top: -160px; inset-inline-end: -120px; }
.hero .blob.b2 { width: 420px; height: 420px; background: var(--aura-2); bottom: -140px; inset-inline-start: -120px; animation-duration: 28s; }
.hero .blob.b3 { width: 260px; height: 260px; background: var(--aura-3); top: 30%; inset-inline-start: 40%; animation-duration: 34s; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.hero .eyebrow { max-width: 620px; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); padding: .35rem .9rem .35rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero .eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: beacon 2.4s ease-out infinite; }
.hero h1 { font-size: clamp(2.05rem, 4.5vw, 3.7rem); line-height: 1.22; margin: 1rem 0 1rem; font-weight: 800; letter-spacing: -.025em; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--mint-ink), #1F8FD6 60%, var(--mint-ink));
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s var(--ease-soft) infinite;
}
[data-theme="dark"] .hero h1 .hl { background-image: linear-gradient(100deg, var(--mint), #7CC8FF 60%, var(--mint)); }
.hero .lead { color: var(--muted); font-size: 1.14rem; max-width: 600px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero .note { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.hero .note i { color: var(--mint-ink); }

/* Animated network: works for any number of sectors (angle = index × 360 / n) */
.network { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.network .halo { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, var(--mint-soft), transparent 68%); animation: breathe 7s var(--ease-soft) infinite; }
.network .track { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line-strong); }
.network .track.t2 { inset: 22%; border-style: solid; border-color: var(--line); }
.network .orbit { position: absolute; inset: 0; animation: spin 160s linear infinite; }
.network .spoke {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 41%; margin-left: -1px; transform-origin: top center;
  transform: rotate(calc(var(--a) + 180deg));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), color-mix(in srgb, var(--c) 55%, transparent));
  border-radius: 2px;
}
.network .spoke .pulse {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 12px var(--c); animation: travel 3.6s var(--ease-soft) infinite; animation-delay: var(--d);
}
.network .node {
  position: absolute; top: 50%; left: 50%; width: 21%; aspect-ratio: 1; margin: -10.5% 0 0 -10.5%;
  transform: rotate(var(--a)) translateY(-195%) rotate(calc(-1 * var(--a)));
}
.network .upright { display: block; width: 100%; height: 100%; animation: spin 160s linear infinite reverse; }
.network .bubble {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--bubble);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 10%, transparent), 0 14px 34px rgba(13, 27, 42, .14);
  animation: float 7s var(--ease-soft) infinite; animation-delay: var(--d);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.network .bubble img { width: 82%; height: 82%; object-fit: contain; }
.network .node:hover .bubble, .network .node:focus-visible .bubble { transform: scale(1.12); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 22%, transparent), 0 18px 40px rgba(13, 27, 42, .2); }
.network .label {
  position: absolute; top: 106%; left: 50%; translate: -50% 4px; white-space: nowrap; font-size: .74rem; font-weight: 700;
  color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .65rem;
  opacity: 0; transition: opacity .3s var(--ease), translate .3s var(--ease); box-shadow: var(--shadow-sm);
}
.network .node:hover .label, .network .node:focus-visible .label { opacity: 1; translate: -50% 0; }
.network .core { position: absolute; inset: 31%; display: grid; place-items: center; }
.network .core .ring { position: absolute; inset: -20%; width: 140%; height: 140%; animation: spin 90s linear infinite; }
.network .core .ring circle { fill: var(--mint); }
.network .core .ring circle:nth-child(3n) { animation: twinkle 3.6s ease-in-out infinite; }
.network .core .ring circle:nth-child(4n) { animation: twinkle 5.2s ease-in-out infinite .9s; }
.network .core .disc { position: absolute; inset: 6%; border-radius: 50%; background: var(--surface-solid); box-shadow: var(--shadow); }
.network .core img { width: 60%; position: relative; z-index: 1; }

/* ---------- Vision ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem;
  color: var(--navy); background: linear-gradient(135deg, var(--mint), #9FF5E2);
  box-shadow: 0 10px 22px rgba(7, 229, 187, .28); transition: transform .5s var(--ease);
}
.pillar:hover .icon { transform: rotate(-8deg) scale(1.06); }
.pillar .num { position: absolute; inset-block-start: 1.2rem; inset-inline-end: 1.4rem; font-size: 2.6rem; font-weight: 800; color: var(--line); line-height: 1; }
.pillar h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.pillar p { margin: 0; color: var(--muted); }
.sector-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.4rem; }
.sector-strip a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .95rem .4rem .45rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .88rem;
  transition: border-color .3s ease, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sector-strip a:hover { border-color: var(--c); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sector-strip img { width: 30px; height: 30px; object-fit: contain; }

/* ---------- Service cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.cards > .card { flex: 1 1 320px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), box-shadow .5s var(--ease), border-color .4s ease;
}
.card.tilting { transition: transform .12s linear, box-shadow .5s var(--ease), border-color .4s ease; }
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.card::after { /* soft light following the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%);
}
.card:hover::after { opacity: 1; }
.card .band { position: relative; height: 120px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--c2))); overflow: hidden; }
.card .band::before { /* each card drifts on its own path, speed and phase */
  content: ""; position: absolute; inset: -70px; background: #fff; opacity: .17;
  -webkit-mask: var(--motif) repeat; mask: var(--motif) repeat; -webkit-mask-size: var(--ms, 92px); mask-size: var(--ms, 92px);
  animation: motif var(--dur, 26s) var(--ease-soft) infinite alternate; animation-delay: var(--del, 0s);
}
.card:nth-child(5n+1) { --dx: 46px; --dy: -22px; --rot: 3deg; --dur: 24s; --del: -3s; --ms: 92px; }
.card:nth-child(5n+2) { --dx: -38px; --dy: 30px; --rot: -4deg; --dur: 31s; --del: -11s; --ms: 84px; }
.card:nth-child(5n+3) { --dx: 30px; --dy: 40px; --rot: 2deg; --dur: 27s; --del: -7s; --ms: 100px; }
.card:nth-child(5n+4) { --dx: -50px; --dy: -18px; --rot: 5deg; --dur: 35s; --del: -16s; --ms: 88px; }
.card:nth-child(5n+5) { --dx: 24px; --dy: -36px; --rot: -3deg; --dur: 29s; --del: -21s; --ms: 96px; }
.card:hover .band::before { animation-duration: calc(var(--dur, 26s) / 2.4); }
.card .band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .28), transparent 55%); }
.card .badge {
  position: absolute; inset-block-end: -38px; inset-inline-start: 22px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--bubble); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(13, 27, 42, .16); z-index: 1; transition: transform .6s var(--ease);
}
.card:hover .badge { transform: translateY(-4px) rotate(-4deg); }
.card .badge img { width: 84%; height: 84%; object-fit: contain; }
.card .band-wrap { position: relative; }
.card .body { position: relative; z-index: 1; padding: 50px 22px 20px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.16rem; line-height: 1.45; }
.card .ministry { font-size: .82rem; color: var(--muted); }
.card .audience { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: .15rem .7rem; align-self: flex-start; }
.card .audience i { color: var(--c); }
.card .summary { color: var(--muted); font-size: .94rem; margin: .2rem 0 .7rem; flex: 1; }
.card .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.card .btn { padding: .58rem 1.15rem; font-size: .88rem; }
.card .btn-sector, .centre-hero .btn-sector { background: var(--c); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 32%, transparent); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps .rail { position: absolute; top: 35px; inset-inline: 11%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.steps .rail::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mint), var(--sky));
  transform: scaleX(0); transform-origin: right; transition: transform 1.6s var(--ease) .2s;
}
[dir="ltr"] .steps .rail::before { transform-origin: left; }
.steps .rail::after {
  content: ""; position: absolute; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 14px var(--mint); inset-inline-start: 0; animation: rail 4.5s var(--ease-soft) infinite 1.8s; opacity: 0;
}
.steps.in-view .rail::before, html:not(.js) .steps .rail::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step .circle {
  width: 70px; height: 70px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--mint);
  display: grid; place-items: center; font-size: 1.5rem; color: var(--mint-ink); position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--bg-alt), 0 10px 24px rgba(7, 229, 187, .2);
  transition: transform .5s var(--ease), background-color .3s ease, color .3s ease;
}
.step:hover .circle { transform: translateY(-4px) scale(1.06); background: var(--mint); color: var(--navy); }
.step h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- About (ownership) ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.emblem { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.emblem .ring { position: absolute; inset: 0; animation: spin 140s linear infinite reverse; }
.emblem .ring circle { fill: var(--mint); }
.emblem .glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, var(--mint-soft), transparent 70%); animation: breathe 8s var(--ease-soft) infinite; }
.emblem .seal { position: relative; width: 62%; aspect-ratio: 1; display: grid; place-items: center; }
.emblem .seal img { width: 100%; filter: drop-shadow(0 14px 28px rgba(13, 27, 42, .14)); }
.about h2 { font-size: clamp(1.65rem, 2.9vw, 2.35rem); line-height: 1.35; margin: .5rem 0 1rem; }
.about p { color: var(--muted); font-size: 1.05rem; }
.keys { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.keys li { display: flex; gap: .85rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .85rem 1.05rem; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease); }
.keys li:hover { transform: translateX(var(--nudge, -4px)); }
[dir="ltr"] .keys li { --nudge: 4px; }
.keys i { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); font-size: 1.1rem; }

/* ---------- Partners ---------- */
.partners-label { text-align: center; font-weight: 700; color: var(--muted); font-size: .9rem; margin: 0 0 1.4rem; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.logo-row a {
  width: 132px; height: 132px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 14px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.logo-row a:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow); }
.logo-row img { max-height: 100%; object-fit: contain; }
.support { margin: 2.2rem auto 0; max-width: 780px; display: flex; gap: 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.support .logo { flex: 0 0 160px; }
.support .logo img { width: 160px; }
.support .kicker { margin: 0 0 .2rem; font-weight: 700; color: var(--mint-ink); font-size: .82rem; }
.support h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.support p { margin: 0; color: var(--muted); font-size: .94rem; }
/* Support bodies side by side (NESDA, ANGEM...): one card per body, stacked on small screens. */
.supports { margin: 2.2rem auto 0; max-width: 1080px; display: grid; gap: 1.2rem; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 520px)); }
.supports .support { margin: 0; max-width: none; flex-direction: column; align-items: center; text-align: center; }
.supports .support .logo { flex: 0 0 auto; height: 100px; display: flex; align-items: center; justify-content: center; }
.supports .support .logo img { width: auto; max-width: 180px; max-height: 100px; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: .85rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 1.25rem; box-shadow: var(--shadow-sm); transition: border-color .3s ease, box-shadow .3s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--mint) 60%, transparent); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); font-size: 1.2rem; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); animation: fade-up .45s var(--ease); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.contact .box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.75rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.contact .label { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--mint-ink); letter-spacing: .02em; }
.contact .label i { font-size: 1rem; }
.contact .operator { display: flex; gap: 1.75rem; align-items: center; padding: 2.25rem; }
.contact .operator::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--mint-soft), transparent 70%); pointer-events: none; }
.contact .operator .emblem { flex: 0 0 120px; height: 120px; display: grid; place-items: center; }
.contact .operator .emblem img { width: 120px; height: 120px; object-fit: contain; }
.contact .operator h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; margin: .6rem 0 .5rem; color: var(--ink); }
.contact .operator p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.contact .reach { display: flex; flex-direction: column; gap: .9rem; }
.contact .reach .line { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.contact .reach .line:hover { border-color: var(--mint-ink); background: var(--mint-soft); transform: translateY(-2px); }
.contact .reach .line i { flex: 0 0 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; background: var(--mint-soft); color: var(--mint-ink); }
.contact .reach small { display: block; color: var(--muted); font-size: .8rem; }
.contact .reach b { display: block; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.contact .reach [dir="ltr"] { text-align: start; unicode-bidi: isolate; }

/* ---------- Live state on service cards (filled by portal.js; hidden when unknown) ---------- */
.card .live { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600;
  padding: .28rem .7rem; border-radius: 999px; margin-bottom: .55rem; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.card .live[hidden] { display: none; }
.card .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.card .live.is-open { color: var(--mint-ink); border-color: color-mix(in srgb, var(--mint-ink) 35%, transparent); background: var(--mint-soft); }
.card .live.is-open::before { animation: livePulse 2.2s ease-out infinite; }
.card .live.is-maintenance { color: #D9932B; border-color: color-mix(in srgb, #D9932B 40%, transparent); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Online tools band (home) ---------- */
.tools-band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.tools-band .container { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tools-head h2 { margin: .5rem 0 .6rem; }
.tools-head p { color: var(--muted); margin: 0; }
.tools-grid { display: grid; gap: 14px; }
.tool-tile { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.3rem; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.tool-tile:hover { transform: translateY(-3px); border-color: var(--mint-ink); box-shadow: var(--shadow); }
.tool-tile > i:first-child { flex: 0 0 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; background: var(--mint-soft); color: var(--mint-ink); }
.tool-tile span { flex: 1; }
.tool-tile strong { display: block; font-size: 1.05rem; }
.tool-tile small { display: block; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.tool-tile .go { color: var(--mint-ink); font-size: 1.15rem; transition: transform .35s var(--ease); }
.tool-tile:hover .go { transform: translateX(-4px); }
[dir="ltr"] .flip { transform: scaleX(-1); }
[dir="ltr"] .tool-tile:hover .go { transform: scaleX(-1) translateX(-4px); }
.dropdown .menu .menu-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); }

/* ---------- Figures ---------- */
.figures-band { padding-block: clamp(3rem, 6vw, 5rem); }
.figures-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.figures-grid.trend-only { grid-template-columns: minmax(0, 640px); justify-content: center; }
.figure-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.figure::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--mint-soft), transparent 70%); }
.figure strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
[dir="rtl"] .figure strong { text-align: right; }
.figure > span { display: block; margin-top: .35rem; color: var(--muted); font-weight: 600; }
.figure.women { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding-block: 1rem; }
.figure.women strong { font-size: 1.7rem; color: var(--mint-ink); }
.figure.women > span { margin: 0; }
.as-of { grid-column: 1 / -1; margin: .2rem 0 0; display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; }
.as-of i { color: var(--mint-ink); }
.figure-side { display: grid; gap: 16px; align-content: start; }
.trend-card, .sector-bars { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.trend-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; }
.trend-dir { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; background: var(--mint-soft); color: var(--mint-ink); }
.trend-dir.is-down { background: color-mix(in srgb, #D9932B 16%, transparent); color: #D9932B; }
.trend-dir.is-stable { background: color-mix(in srgb, #3B82F6 14%, transparent); color: #3B82F6; }
.trend { display: block; width: 100%; height: 110px; margin: .9rem 0 .5rem; overflow: visible; }
[dir="rtl"] .trend { transform: scaleX(-1); }
.trend .line { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.js .trend { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease) .2s; }
.in-view .trend { clip-path: inset(0 0 0 0); }
.trend .area { opacity: 0; transition: opacity 1.2s var(--ease) .9s; }
html:not(.js) .trend .area { opacity: 1; }
html:not(.js) .bar-row .fill { width: var(--w); }
.in-view .trend .area { opacity: 1; }
.trend-card small { color: var(--muted); font-size: .82rem; }
.bars-title { display: block; font-weight: 600; margin-bottom: .9rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: .8rem; padding: .45rem 0; }
.bar-row .name { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, var(--mint)));
  transition: width 1.2s var(--ease); }
.in-view .bar-row .fill { width: var(--w); }
.bar-row:nth-child(3) .fill { transition-delay: .1s; } .bar-row:nth-child(4) .fill { transition-delay: .2s; }
.bar-row:nth-child(5) .fill { transition-delay: .3s; } .bar-row:nth-child(6) .fill { transition-delay: .4s; }
.bar-row b { font-size: .9rem; min-width: 3.5ch; text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .figures-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .figure-tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .js .trend { clip-path: none; transition: none; } .trend .area { opacity: 1; transition: none; }
  .bar-row .fill { width: var(--w); transition: none; }
}

/* ---------- Tracking & verification pages ---------- */
.tool-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.tool-hero .crumbs { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.tool-hero .crumbs a { color: var(--mint-ink); text-decoration: none; }
.tool-hero .crumbs i { font-size: .7rem; }
.tool-hero h1 { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 .7rem; }
.tool-hero h1 i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--mint-soft); color: var(--mint-ink); }
.tool-hero .lead { color: var(--muted); max-width: 720px; margin: 0 0 1.4rem; }
.tool-switch { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.tool-switch a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tool-switch a[aria-current] { background: var(--mint); color: #062A24; }
.tool-body { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-card, .result-card, .result-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.tool-card { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field > span { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-weight: 400; margin-inline-start: .35rem; }
.field input, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--mint-ink); box-shadow: 0 0 0 4px var(--mint-soft); }
.field input[dir="ltr"] { text-align: left; letter-spacing: .04em; }
.tool-card .btn { justify-self: start; }
.tool-card .privacy { display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: .85rem; color: var(--muted); }
.tool-card .privacy i { color: var(--mint-ink); margin-top: .15rem; }
.tool-result { display: grid; gap: 16px; }
.result-empty { display: grid; place-items: center; text-align: center; gap: .7rem; color: var(--muted); min-height: 260px; border-style: dashed; box-shadow: none; background: transparent; }
.result-empty i { font-size: 2.6rem; color: var(--mint-ink); opacity: .7; }
.result-empty p { max-width: 340px; margin: 0; }
.result-card { position: relative; overflow: hidden; display: grid; gap: 1.1rem; animation: resultIn .6s var(--ease) both; }
.result-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c, var(--mint)), var(--mint)); }
.result-card header { display: flex; align-items: center; gap: .9rem; }
.result-card header .badge img { width: 56px; height: 56px; object-fit: contain; }
.result-card header small { display: block; color: var(--muted); font-size: .82rem; }
.result-card header strong { font-size: 1.1rem; }
.status-pill { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.status-pill.is-ok { background: var(--mint-soft); color: var(--mint-ink); }
.status-pill.is-wait { background: color-mix(in srgb, #3B82F6 14%, transparent); color: #3B82F6; }
.status-pill.is-stop { background: color-mix(in srgb, #E5484D 14%, transparent); color: #E5484D; }
.result-card dl { margin: 0; display: grid; gap: .1rem; }
.result-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; font-weight: 600; text-align: end; }
.result-card .btn { justify-self: start; }
.tool-alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); animation: resultIn .5s var(--ease) both; }
.tool-alert > i { font-size: 1.3rem; }
.tool-alert.warn > i { color: #D9932B; }
.tool-alert.info > i { color: #3B82F6; }
.tool-alert a { display: inline-flex; gap: .35rem; margin-top: .5rem; color: var(--mint-ink); font-weight: 600; }
@keyframes resultIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .tools-band .container, .tool-grid { grid-template-columns: 1fr; }
  .result-empty { min-height: 0; }
  .tool-grid:has(.result-card, .tool-alert) .tool-result { order: -1; }
}
@media (max-width: 600px) {
  .tool-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tool-switch a { justify-content: center; text-align: center; border-radius: 14px; padding: .6rem .5rem; font-size: .85rem; }
  .result-empty { display: none; }
}

/* ---------- Registration guide ---------- */
.guide-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.guide-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; }
.guide-hero .crumbs { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.guide-hero .crumbs a { color: var(--mint-ink); text-decoration: none; }
.guide-hero .crumbs i { font-size: .7rem; }
.guide-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.25; margin: .6rem 0 .9rem; letter-spacing: -.015em; }
.guide-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 0 1.3rem; }
.guide-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.guide-meta span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.guide-meta i { color: var(--mint-ink); }
.prepare { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.prepare h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.1rem; margin: 0 0 1rem; }
.prepare h2 i { color: var(--mint-ink); }
.prepare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.prepare li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.prepare li i { flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); }
.prepare .note { display: flex; gap: .5rem; align-items: center; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.guide-progress { position: sticky; top: 0; z-index: 30; height: 3px; background: transparent; }
.guide-progress span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--mint), var(--sky, var(--mint))); transition: width .4s var(--ease); }
[dir="rtl"] .guide-progress span { margin-inline-start: 0; }
.guide-body { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.guide-nav { position: sticky; top: 96px; }
.guide-nav-title { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: .8rem; }
.guide-nav ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: .2rem; }
.guide-nav ol::before { content: ""; position: absolute; inset-inline-start: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.guide-nav a { position: relative; display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem .45rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; border-radius: 12px; transition: color .3s var(--ease); }
.guide-nav a b { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong); font-size: .85rem; transition: all .35s var(--ease); z-index: 1; }
.guide-nav a:hover { color: var(--ink); }
.guide-nav a.is-done b { border-color: var(--mint-ink); color: var(--mint-ink); }
.guide-nav a[aria-current="step"] { color: var(--ink); }
.guide-nav a[aria-current="step"] b { background: var(--mint); border-color: var(--mint); color: #062A24; box-shadow: 0 0 0 6px var(--mint-soft); }
.guide-steps { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.g-step { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; scroll-margin-top: 100px; }
.g-num { display: inline-flex; align-items: baseline; gap: .4rem; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--mint-ink); }
.g-num small { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.g-text h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: .6rem 0 .6rem; }
.g-text p { color: var(--muted); line-height: 1.75; margin: 0 0 1rem; }
.g-tip { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 16px; background: var(--mint-soft); color: var(--ink) !important; font-size: .93rem; }
.g-tip i { color: var(--mint-ink); margin-top: .15rem; }
.g-tip b { display: block; color: var(--mint-ink); font-size: .8rem; margin-bottom: .1rem; }
.g-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.how-guide { text-align: center; margin-top: 2.2rem; }

/* Illustrated screens */
.g-shot { margin: 0; }
.mock { position: relative; border-radius: 20px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; }
.mock::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--mint-soft), transparent 65%); pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar i:first-child { background: #ff6b6b99; } .mock-bar i:nth-child(2) { background: #ffd16699; } .mock-bar i:nth-child(3) { background: #3ddc9799; }
.mock-bar span { margin-inline-start: .6rem; flex: 1; font-size: .75rem; color: var(--muted); background: var(--surface); border-radius: 8px; padding: .2rem .7rem; text-align: left; }
.mock-body { position: relative; padding: 1.4rem; min-height: 250px; display: grid; align-content: center; }
.m-line { display: block; height: 8px; border-radius: 6px; background: var(--line-strong); }
.w45 { width: 45%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.m-tile { display: grid; gap: .5rem; justify-items: start; padding: .9rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; }
.m-tile::before { content: ""; height: 6px; width: 100%; border-radius: 6px; background: var(--c); opacity: .85; }
.m-logo img { width: 40px; height: 40px; object-fit: contain; }
.m-btn { margin-top: .3rem; font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 9px; background: var(--c); color: #fff; }
.m-paths { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.m-path { position: relative; display: grid; gap: .55rem; padding: 1.1rem; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); transition: border-color .5s, box-shadow .5s; }
.m-path > i { font-size: 1.6rem; color: var(--mint-ink); }
.m-path b { font-size: .92rem; }
.m-check { position: absolute; top: .7rem; inset-inline-end: .7rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #062A24; transform: scale(0); transition: transform .45s var(--ease) 1.1s; }
.m-form { display: grid; gap: .45rem; }
.m-form label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: .3rem; }
.m-input { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 40px; padding: .5rem .8rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); font-size: .85rem; overflow: hidden; }
.m-input.is-focus { border-color: var(--mint-ink); box-shadow: 0 0 0 4px var(--mint-soft); }
.m-select i { color: var(--muted); font-size: .8rem; }
.m-type { display: inline-block; white-space: nowrap; overflow: hidden; max-width: 100%; letter-spacing: .03em; }
.m-submit { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .55rem 1rem; border-radius: 12px; background: var(--mint); color: #062A24; font-weight: 700; font-size: .82rem; }
.m-ghost { display: inline-flex; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--muted); }
.m-file { position: relative; display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding: .65rem .8rem; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: .82rem; overflow: hidden; }
.m-file > i:first-child { color: #E5484D; font-size: 1.2rem; }
.m-file .ok { margin-inline-start: auto; color: var(--mint-ink); opacity: 0; transition: opacity .3s 1.6s; }
.m-bar { position: absolute; inset: auto 0 0 0; height: 3px; }
.m-bar span { display: block; height: 100%; width: 0; background: var(--mint); transition: width 1.4s var(--ease) .3s; }
.m-grid { grid-template-columns: 1fr 1fr; gap: .2rem .8rem; }
.m-grid > div { display: grid; gap: .35rem; }
.m-grid .full { grid-column: 1 / -1; display: flex; }
.m-wizard { display: grid; gap: .7rem; }
.m-stage { display: grid; gap: .45rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.m-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.m-progress span { display: block; height: 100%; width: 0; background: var(--mint); transition: width 1.2s var(--ease) .3s; }
.m-q { font-size: .98rem; margin-top: .3rem; }
.m-opt { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: 12px; border: 1px solid var(--line-strong); font-size: .85rem; transition: border-color .4s 1.1s, background .4s 1.1s; }
.m-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); transition: border .3s 1.1s, box-shadow .3s 1.1s; }
.m-actions { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .3rem; }
.m-actions .m-submit { margin: 0; }
.m-done { display: grid; justify-items: center; text-align: center; gap: .7rem; }
.m-badge svg { width: 64px; height: 64px; }
.m-badge circle { fill: var(--mint-soft); stroke: var(--mint); stroke-width: 2.5; stroke-dasharray: 145; stroke-dashoffset: 145; transition: stroke-dashoffset .9s var(--ease) .2s; }
.m-badge path { fill: none; stroke: var(--mint-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s var(--ease) 1s; }
.m-done b { font-size: 1.05rem; }
.m-code { display: grid; gap: .2rem; padding: .6rem 1.4rem; border-radius: 14px; border: 1px dashed var(--mint-ink); }
.m-code small { font-size: .72rem; color: var(--muted); }
.m-code code { font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; color: var(--ink); }
.m-done .m-submit { justify-self: center; margin: 0; }
.m-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; position: relative; }
.m-timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.m-timeline li { position: relative; display: flex; align-items: center; gap: .8rem; padding: .55rem 0; font-size: .9rem; color: var(--muted); }
.m-timeline li span { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--line-strong); z-index: 1; display: grid; place-items: center; }
.m-timeline li.done { color: var(--ink); }
.m-timeline li.done span { background: var(--mint); border-color: var(--mint); }
.m-timeline li.done span::after { content: "\2713"; font-size: .7rem; font-weight: 800; color: #062A24; }
.m-timeline li.now { color: var(--ink); font-weight: 700; }
.m-timeline li.now span { border-color: var(--mint); box-shadow: 0 0 0 0 var(--mint-soft); }
.m-cursor { position: absolute; left: var(--x); top: var(--y); font-size: 1.5rem; color: var(--ink); filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); opacity: 0; transform: translate(60px, 50px); pointer-events: none; z-index: 3; }

/* Played once, when the screen enters the view */
.g-shot.in-view .m-cursor { animation: cursorIn 1.4s var(--ease) .3s forwards; }
.g-shot.in-view .m-tile.is-target { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 10px 24px -12px var(--c); transition-delay: 1.3s; }
.g-shot.in-view .m-path.is-target { border-color: var(--mint-ink); box-shadow: 0 0 0 4px var(--mint-soft); transition-delay: 1.1s; }
.g-shot.in-view .m-check { transform: scale(1); }
.g-shot.in-view .m-type { animation: typing 1.6s steps(18) .4s both; }
.g-shot.in-view .m-type.d2 { animation-delay: 2.1s; }
.g-shot.in-view .m-bar span { width: 100%; }
.g-shot.in-view .m-file .ok { opacity: 1; }
.g-shot.in-view .m-progress span { width: 33%; }
.g-shot.in-view .m-opt.is-target { border-color: var(--mint-ink); background: var(--mint-soft); }
.g-shot.in-view .m-opt.is-target .m-radio { border: 5px solid var(--mint-ink); }
.g-shot.in-view .m-badge circle, .g-shot.in-view .m-badge path { stroke-dashoffset: 0; }
.g-shot.in-view .m-timeline li.now span { animation: livePulse 2s ease-out infinite; color: var(--mint); }
@keyframes cursorIn { 0% { opacity: 0; transform: translate(60px, 50px); } 60% { opacity: 1; transform: translate(0, 0); } 75% { transform: scale(.85); } 100% { opacity: 1; transform: none; } }
@keyframes typing { from { max-width: 0; } to { max-width: 100%; } }

.guide-cta { padding-block: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.guide-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1.6rem; }
.guide-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
.guide-cta-grid a { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; text-align: start; font-weight: 600; font-size: .92rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease); }
.guide-cta-grid a:hover { transform: translateY(-3px); border-color: var(--c); }
.guide-cta-grid img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.guide-cta-grid span { flex: 1; }
.guide-cta-grid a > i { color: var(--c); }

@media (max-width: 1080px) { .guide-layout { grid-template-columns: 1fr; } .guide-nav { display: none; } }
@media (max-width: 900px) {
  .guide-hero-grid, .g-step { grid-template-columns: 1fr; }
  .mock-body { min-height: 0; }
}
@media (max-width: 520px) {
  .m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; } .m-tile { padding: .55rem; } .m-btn { font-size: .62rem; padding: .25rem .4rem; }
  .m-paths, .m-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .g-shot .m-cursor { display: none; }
  .g-shot.in-view .m-type { animation: none; }
  .mock *, .mock *::before, .mock *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
html:not(.js) .m-check { transform: scale(1); } html:not(.js) .m-bar span { width: 100%; } html:not(.js) .m-file .ok { opacity: 1; }
html:not(.js) .m-badge circle, html:not(.js) .m-badge path { stroke-dashoffset: 0; } html:not(.js) .m-progress span { width: 33%; }

/* ---------- Network: directory, centre pages, activities, stories ---------- */
.net-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.net-hero .crumbs, .centre-hero .crumbs, .story-page .crumbs { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.net-hero .crumbs a, .centre-hero .crumbs a, .story-page .crumbs a { color: var(--mint-ink); text-decoration: none; }
.net-hero .crumbs i, .centre-hero .crumbs i, .story-page .crumbs i { font-size: .7rem; }
.net-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.25; margin: .6rem 0 .8rem; }
.net-hero .lead { color: var(--muted); max-width: 760px; font-size: 1.06rem; margin: 0 0 1.4rem; }
.net-counts { display: flex; flex-wrap: wrap; gap: .7rem; }
.net-counts > * { display: inline-flex; align-items: baseline; gap: .45rem; padding: .6rem 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; text-decoration: none; }
.net-counts b { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.net-counts a:hover { border-color: var(--mint-ink); }
.net-body { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.dir-filters { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; margin-bottom: 1rem; }
.dir-search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.dir-search:focus-within { border-color: var(--mint-ink); box-shadow: 0 0 0 4px var(--mint-soft); }
.dir-search i { color: var(--muted); }
.dir-search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; padding: .8rem 0; outline: none; }
.dir-filters select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: .75rem 1rem; }
.dir-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.dir-chips button { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .88rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.dir-chips button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.dir-chips button.is-on { background: var(--mint); border-color: var(--mint); color: #062A24; }
.dir-chips button.is-on i { background: #062A24; }
.dir-count { color: var(--muted); margin: .4rem 0 1rem; }
.dir-count b { color: var(--ink); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.centre-card { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.centre-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--c); }
.centre-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: var(--shadow); }
.centre-card[hidden] { display: none; }
.cc-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; }
.cc-body { flex: 1; min-width: 0; display: grid; gap: .3rem; }
.cc-body b { font-size: .98rem; line-height: 1.4; }
.cc-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; color: var(--muted); font-size: .82rem; }
.cc-meta span, .ch-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.cc-sector i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cc-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.centre-card:hover .cc-go { color: var(--c); }
.dir-empty { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 2.5rem; color: var(--muted); }
.centre-hero { position: relative; overflow: hidden; padding-block: clamp(2.2rem, 5vw, 3.5rem) 2rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); }
.centre-hero::after { content: ""; position: absolute; inset: 0; background: var(--motif) repeat; background-size: 180px; opacity: .07; pointer-events: none; }
.centre-hero .container { position: relative; z-index: 1; }
.ch-main { display: flex; align-items: center; gap: 1.3rem; }
.ch-logo { flex: 0 0 96px; height: 96px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); }
.ch-logo img { width: 78px; height: 78px; object-fit: contain; }
.centre-hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; margin: 0 0 .5rem; }
.ch-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.ch-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.centre-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.centre-main { display: grid; gap: 18px; }
.centre-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem 1.4rem; }
.panel h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin: 0 0 .9rem; }
.panel h2 i { color: var(--mint-ink); }
.panel > p { color: var(--muted); line-height: 1.8; margin: 0; }
.panel .sub { font-size: .85rem; color: var(--muted); margin: 1rem 0 .4rem; letter-spacing: .02em; }
.muted { color: var(--muted); }
.side-line { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.side-line i { color: var(--mint-ink); }
.mini-centre { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.mini-centre > i { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.mini-centre span { display: grid; font-size: .9rem; font-weight: 600; }
.mini-centre small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.mini-centre:hover span { color: var(--mint-ink); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--mint-ink); font-weight: 600; text-decoration: none; margin-top: .5rem; }
.activity { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.activity:first-of-type { border-top: 0; }
.a-date { flex: 0 0 64px; height: 70px; border-radius: 16px; display: grid; place-content: center; text-align: center; background: var(--mint-soft); color: var(--mint-ink); }
.a-date b { font-size: 1.5rem; line-height: 1; }
.a-date span { font-size: .7rem; font-weight: 700; }
.activity.is-joint .a-date { background: linear-gradient(135deg, var(--mint-soft), color-mix(in srgb, var(--sky) 25%, transparent)); }
.a-body { flex: 1; min-width: 0; }
.a-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .3rem; }
.a-kind, .a-joint { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.a-joint { display: inline-flex; align-items: center; gap: .3rem; border-color: color-mix(in srgb, var(--mint-ink) 40%, transparent); color: var(--mint-ink); background: var(--mint-soft); }
.activity h3 { font-size: 1.02rem; margin: .2rem 0 .3rem; }
.a-place, .a-text { color: var(--muted); font-size: .88rem; margin: 0 0 .4rem; }
.a-place i { margin-inline-end: .3rem; }
.a-centres { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.a-centres a { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.a-centres a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.a-centres a:hover { border-color: var(--c); }
.a-link { display: inline-flex; gap: .35rem; margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--mint-ink); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.story-grid.compact { grid-template-columns: 1fr; }
.story-card { display: grid; grid-template-rows: 150px auto; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.story-grid.compact .story-card { grid-template-rows: none; grid-template-columns: 96px 1fr; }
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sc-img { display: grid; place-items: center; background: linear-gradient(135deg, var(--mint-soft), color-mix(in srgb, var(--sky) 22%, transparent)); color: var(--mint-ink); font-size: 2rem; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { display: grid; gap: .3rem; padding: 1rem 1.1rem; }
.sc-body small { color: var(--muted); font-size: .78rem; }
.sc-body b { font-size: 1rem; line-height: 1.4; }
.sc-body > span { color: var(--muted); font-size: .88rem; }
.sc-body em { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--mint-ink); display: inline-flex; gap: .35rem; align-items: center; }
.net-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.net-h { font-size: 1.2rem; margin: 1.2rem 0 .6rem; }
.dir-teaser { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease); }
.dir-teaser:hover { transform: translateY(-3px); border-color: var(--mint-ink); }
.dir-teaser > i:first-child { flex: 0 0 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); font-size: 1.3rem; }
.dir-teaser span { flex: 1; display: grid; gap: .15rem; }
.dir-teaser small { color: var(--muted); }
.dir-teaser > i:last-child { color: var(--mint-ink); }
.dir-teaser.big { flex-wrap: wrap; padding: 1.4rem; background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 14%, var(--surface)), var(--surface)); }
.dt-counts { flex: 0 0 100% !important; display: block !important; color: var(--muted); }
.dt-counts b { font-size: 1.6rem; color: var(--ink); }
.net-band { padding-block: clamp(3rem, 6vw, 5rem); }
.net-home { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.net-home .story-grid { grid-column: 1 / -1; }
.net-home > div:not(.story-grid) { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: .4rem 1.3rem; }
.story-page { padding-block: clamp(2.5rem, 5vw, 4rem); }
.container.narrow { max-width: 820px; }
.story-page time { color: var(--muted); font-weight: 600; }
.story-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.3; margin: .4rem 0 .8rem; }
.story-page .lead { color: var(--muted); font-size: 1.12rem; }
.story-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 22px; margin: 1rem 0 1.5rem; }
.story-text { line-height: 1.9; font-size: 1.05rem; }
@media (max-width: 1000px) { .centre-grid, .net-grid, .net-home { grid-template-columns: 1fr; } .centre-side { position: static; } }
@media (max-width: 600px) { .dir-filters { grid-template-columns: 1fr; } .ch-main { flex-direction: column; align-items: flex-start; } .dir-grid { grid-template-columns: 1fr; } }

/* ---------- Footer (always dark: uses the dark logo variants) ---------- */
.site-footer { background: #08131F; color: #C9D6E0; padding: 56px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(7, 229, 187, .055) 1.3px, transparent 1.5px); background-size: 24px 24px; pointer-events: none; }
.site-footer .glowline { position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--mint), #7CC8FF, var(--mint), transparent); background-size: 200% 100%; animation: shimmer 8s linear infinite; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1.35fr; gap: 32px; position: relative; }
.site-footer h4 { color: #fff; margin: 0 0 1rem; font-size: 1rem; }
.site-footer h4::after { content: ""; display: block; width: 30px; height: 3px; border-radius: 3px; background: var(--mint); margin-top: .45rem; }
.site-footer a { color: #C9D6E0; }
.site-footer a:hover { color: var(--mint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .9rem; line-height: 1.55; }
.owner-block { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.owner-block .cde { height: 72px; width: auto; }
.owner-block .min { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; font-size: .86rem; max-width: 270px; line-height: 1.5; }
.owner-block .min img { width: 78px; height: 78px; flex: 0 0 78px; object-fit: contain; }
.partner-mini { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
.partner-mini img { width: 50px; height: 50px; object-fit: contain; }
.legal { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; font-size: .78rem; color: rgba(255, 255, 255, .62); text-align: center; position: relative; }
.legal a { color: var(--mint); font-weight: 600; }
.back-top { position: fixed; inset-block-end: 18px; inset-inline-start: 18px; z-index: 900; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Maintenance ---------- */
.maint { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.maint .box { max-width: 640px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 26px; padding: 2.4rem 2rem; box-shadow: var(--shadow); }
.maint .box > img { height: 70px; width: auto; margin: 0 auto 1rem; }
.maint .platform-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.maint .platform-links a { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; color: var(--ink); font-size: .88rem; }

/* ---------- Reveal on scroll (content stays visible without JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; } .js .reveal.d5 { transition-delay: .40s; } .js .reveal.d6 { transition-delay: .48s; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes travel { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes drift { to { transform: translate(92px, 92px); } }
@keyframes motif { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 50% { transform: translate(calc(var(--dx) * .5), calc(var(--dy) * -.4)) rotate(calc(var(--rot) * -.5)) scale(1.04); } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes morph { 0% { transform: translate(0, 0) scale(1); border-radius: 50% 46% 54% 48%; } 50% { transform: translate(30px, -20px) scale(1.08); border-radius: 42% 58% 46% 54%; } 100% { transform: translate(-24px, 18px) scale(.96); border-radius: 56% 44% 50% 50%; } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(7, 229, 187, .55); } 100% { box-shadow: 0 0 0 10px rgba(7, 229, 187, 0); } }
@keyframes rail { 0% { inset-inline-start: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { inset-inline-start: calc(100% - 9px); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
  section { padding: 60px 0; }
  .hero .grid, .about { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .lead, .hero .eyebrow { margin-inline: auto; }
  .hero .actions, .hero .note { justify-content: center; }
  .pillars, .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .steps .rail { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pillars, .steps, .contact, .site-footer .cols { grid-template-columns: 1fr; }
  .contact .operator { flex-direction: column; text-align: center; padding: 1.75rem; }
  .cards { grid-template-columns: 1fr; }
  .support { flex-direction: column; text-align: center; }
  .brand { gap: .5rem; }
  .brand .cde img { height: 40px; }
  .brand .sep { display: none; }
  .brand .owner img { height: 36px; width: 36px; }
  .network .label { display: none; }
  .hero .blob.b1 { width: 320px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .card { transform: none !important; }
}

/* Footer: compact useful links */
.site-footer ul.links-two { grid-template-columns: 1fr 1fr; column-gap: 1.4rem; row-gap: .5rem; }
.site-footer ul.links-two a { display: block; }
@media (max-width: 600px) { .site-footer ul.links-two { grid-template-columns: 1fr; } }

/* Calm backgrounds: no glowing colour blobs. A very soft vertical tone, the dot grid, and thin rings around the network. */
.blob { display: none; }
.hero { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg-alt) 85%, var(--bg)) 100%); }
.hero .network::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 52px, color-mix(in srgb, var(--ink) 9%, transparent) 53px 54px);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%);
}
.network .halo { background: radial-gradient(circle, color-mix(in srgb, var(--ink) 7%, transparent), transparent 68%); }
.tool-hero, .guide-hero, .net-hero { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg-alt) 70%, var(--bg)) 100%); }
@media (prefers-reduced-motion: reduce) { .hero .network::before { animation: none; } }

/* ---------- "Coming soon" page (public, before the launch) ---------- */
.soon-body { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow-x: clip;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg-alt) 85%, var(--bg)) 100%); }
.soon-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: radial-gradient(var(--dots) 1.3px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); }
.soon-top, .soon-main, .soon-foot { position: relative; z-index: 1; }
.soon-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.soon-logo img { height: 56px; width: auto; }
.soon-logo .logo-dark { display: none; }
[data-theme="dark"] .soon-logo .logo-light { display: none; }
[data-theme="dark"] .soon-logo .logo-dark { display: inline; }
.soon-top .tools { display: flex; align-items: center; gap: .6rem; margin: 0; }

/* Orbits: thin rings turning slowly with small travelling nodes (the network idea, without any glow) */
.soon-main { position: relative; display: grid; place-items: center; padding: 1rem clamp(1rem, 4vw, 2rem) 2.4rem; }
.soon-orbits { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 76%); mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 76%); }
.soon-ring { position: absolute; width: var(--d); height: var(--d); border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin var(--t, 140s) linear infinite; }
.soon-ring.r2 { border-style: solid; border-color: var(--line); animation-direction: reverse; }
.soon-ring i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--mint));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--mint)) 16%, transparent); }
.soon-ring i:nth-child(1) { top: -5px; left: 50%; }
.soon-ring i:nth-child(2) { bottom: 15%; right: 2%; }
.soon-ring i:nth-child(3) { bottom: -5px; left: 28%; }

.soon-card { position: relative; z-index: 1; width: min(820px, 100%); text-align: center; padding: clamp(1.8rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 3rem);
  border-radius: 32px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.soon-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--mint), var(--sky)); }
.soon-card::after { content: ""; position: absolute; inset-inline-end: -70px; bottom: -70px; width: 230px; height: 230px; border-radius: 50%; pointer-events: none;
  background-image: radial-gradient(var(--dots) 1.5px, transparent 1.7px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.soon-card > * { position: relative; z-index: 1; animation: soonIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * .09s); }
@keyframes soonIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.soon-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: var(--mint-soft); color: var(--mint-ink); border: 1px solid color-mix(in srgb, var(--mint) 45%, transparent); }
.soon-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: beacon 2.4s ease-out infinite; }
.soon-card h1 { font-size: clamp(1.9rem, 5.4vw, 3.3rem); line-height: 1.22; margin: 1.1rem 0 .5rem; font-weight: 800; letter-spacing: -.02em; }
.soon-sub { margin: 0 0 1rem; font-size: clamp(1.1rem, 2.8vw, 1.45rem); font-weight: 800;
  background: linear-gradient(100deg, var(--mint-ink), #1F8FD6 60%, var(--mint-ink)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s var(--ease-soft) infinite, soonIn .8s var(--ease) both; animation-delay: 0s, calc(var(--i, 0) * .09s); }
[data-theme="dark"] .soon-sub { background-image: linear-gradient(100deg, var(--mint), #7CC8FF 60%, var(--mint)); }
.soon-lead { max-width: 580px; margin: 0 auto 1.6rem; color: var(--muted); font-size: clamp(1rem, 2.3vw, 1.12rem); }

/* Journey: awareness → training → mentoring, the nodes light up one after the other */
.soon-journey { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px; margin: 0 auto 1.8rem; padding: 0; }
.soon-journey::before { content: ""; position: absolute; inset-inline: 16.6%; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
.soon-journey li { position: relative; display: grid; justify-items: center; gap: .55rem; font-weight: 700; font-size: .93rem; }
.soon-node { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: var(--mint-ink); position: relative; z-index: 1;
  background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); animation: soonNode 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * 1.2s); }
@keyframes soonNode { 0%, 100% { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
  30% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mint) 22%, transparent), var(--shadow-sm); border-color: var(--mint); } }

.soon-count { display: flex; justify-content: center; gap: .7rem; direction: ltr; margin: 0 0 .6rem; }
.soon-count div { min-width: 78px; padding: .65rem .8rem; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.soon-count b { display: block; font-size: 1.8rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.soon-count small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.soon-date { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.4rem; padding: .4rem 1rem; border-radius: 14px; background: var(--mint-soft); text-align: start; max-width: 100%; font-size: .93rem; }
.soon-date i { color: var(--mint-ink); flex: 0 0 auto; }
.soon-date b { white-space: nowrap; }
.soon-status { display: flex; align-items: center; justify-content: center; gap: .8rem; max-width: 360px; margin: 0 auto; font-size: .88rem; font-weight: 700; }
.soon-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.soon-bar span { display: block; height: 100%; width: 36%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--sky)); animation: soonBar 2.8s ease-in-out infinite alternate; }
@keyframes soonBar { from { transform: translateX(-30%); } to { transform: translateX(180%); } }
[dir="rtl"] .soon-bar span { animation-name: soonBarRtl; }
@keyframes soonBarRtl { from { transform: translateX(30%); } to { transform: translateX(-180%); } }

.soon-foot { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 1.2rem 1rem 1.6rem; font-size: .8rem; color: var(--muted); text-align: start; }
.soon-foot img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.soon-foot .logo-dark { display: none; }
[data-theme="dark"] .soon-foot .logo-light { display: none; }
[data-theme="dark"] .soon-foot .logo-dark { display: inline; }
.soon-foot span { max-width: 460px; }

@media (max-width: 520px) {
  .soon-logo img { height: 46px; } .soon-card { border-radius: 24px; }
  .soon-count { gap: .45rem; } .soon-count div { min-width: 0; flex: 1; padding: .55rem .3rem; } .soon-count b { font-size: 1.4rem; }
  .soon-node { width: 50px; height: 50px; } .soon-journey::before { top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-ring, .soon-node, .soon-bar span, .soon-badge i, .soon-card > *, .soon-sub { animation: none; }
}
