/* ============================================================
   Kompas Foundation design system · redesign 2026-07 · v100
   Rules: square corners, no shadows, no gradients, red scarce.
   ============================================================ */
:root {
  --navy: #0F2340;
  --blue: #2A6CC4;
  --blue-light: #5B9BD5;
  --pale: #DBE9F8;
  --red: #E84030;
  --red-deep: #D63324;
  --muted: #4A6080;
  --paper: #FFFFFF;
  --font-d: 'Space Grotesk', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --w: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---- typography ---- */
.h-display { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(2.7rem, 7.5vw, 5.4rem); }
.h-section { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; font-size: clamp(1.7rem, 3.8vw, 2.9rem); }
.h-item { font-family: var(--font-d); font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--muted); }
.body { font-size: 0.98rem; line-height: 1.75; color: var(--muted); }
.accent { color: var(--blue); }
.dot { color: var(--red); }
.maxw { max-width: 34em; }
.kicker { font-family: var(--font-d); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
.kicker .n { color: var(--red); margin-inline-end: 0.6em; }

/* ---- layout ---- */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec > .wrap > .kicker { margin-bottom: 1.6rem; }
.wrap > .h-section + .lead { margin-top: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- section themes ---- */
.t-navy { background: var(--navy); color: #fff; }
.t-navy .lead, .t-navy .body { color: rgba(255, 255, 255, 0.72); }
.t-navy .kicker { color: var(--blue-light); }
.t-pale { background: var(--pale); }
.t-blue { background: var(--blue); color: #fff; }
.t-blue .lead, .t-blue .body { color: rgba(255, 255, 255, 0.95); }
.t-blue .kicker { color: #fff; }

/* ---- nav ---- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--navy); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--pad); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand canvas { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-d); font-weight: 700; letter-spacing: 0.18em; font-size: 15px; display: block; }
.brand-sub { font-family: var(--font-b); font-weight: 600; font-size: 8.5px; letter-spacing: 0.34em; color: var(--muted); display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.5vw, 30px); align-items: center; font-family: var(--font-d); font-weight: 500; font-size: 14px; }
.nav-links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.15s ease; }
.nav-links a:hover { border-bottom-color: rgba(15, 35, 64, 0.3); }
.nav-links a.active { border-bottom-color: var(--navy); }
.nav-links a.nav-cta { background: var(--red-deep); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; padding: 12px 26px; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta.active { border-bottom-color: transparent; }
.lang-switch { font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-left: 6px; }
.nav-links a.lang-switch:hover { border-bottom-color: transparent; color: var(--navy); }

/* ---- language picker (nav) ---- */
.lang-menu { position: relative; margin-inline-start: 6px; }
.lang-menu summary { list-style: none; cursor: pointer; font-family: var(--font-d); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); padding: 6px 0; display: flex; align-items: center; gap: 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--navy); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 1px solid var(--navy); min-width: 184px; max-height: 70vh; overflow-y: auto; z-index: 60; }
.lang-menu li { margin: 0; }
.lang-menu ul a { display: block; padding: 8px 18px; text-decoration: none; font-family: var(--font-b); font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--navy); }
.lang-menu ul a:hover { background: var(--pale); }
.lang-menu ul a[aria-current="true"] { background: var(--pale); font-weight: 700; }

/* ---- language strip (homepage hero) ---- */
.lang-strip { margin-top: 2.4rem; max-width: 34em; font-family: var(--font-d); font-size: 13.5px; font-weight: 500; line-height: 2.1; color: var(--muted); }
.lang-strip a { text-decoration: none; color: inherit; white-space: nowrap; }
.lang-strip a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang-strip a.current { color: var(--navy); font-weight: 700; }
.lang-strip .sep { margin: 0 0.55em; color: rgba(15, 35, 64, 0.35); }

/* ---- per-script typography ---- */
html[lang="uk"] { --font-d: 'Inter', system-ui, sans-serif; }
html[lang="ar"], html[lang="fa"] { --font-d: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; --font-b: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; }
html[lang="ti"] { --font-d: 'Noto Sans Ethiopic', 'Inter', system-ui, sans-serif; --font-b: 'Noto Sans Ethiopic', 'Inter', system-ui, sans-serif; }
html[lang="ar"] .h-display, html[lang="ar"] .h-section, html[lang="fa"] .h-display, html[lang="fa"] .h-section { letter-spacing: 0; line-height: 1.25; }
html[lang="ti"] .h-display, html[lang="ti"] .h-section { letter-spacing: 0; line-height: 1.25; }
.brand-name, .footer .brand-name { font-family: 'Space Grotesk', system-ui, sans-serif; }
.brand-sub, .footer .brand-sub { font-family: 'Inter', system-ui, sans-serif; }

/* ---- translated-by-AI note (footer) ---- */
.footer .translate-note { flex-basis: 100%; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }
.footer .translate-note a { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 760px) {
  .brand-sub { display: none; }
  .nav-links { font-size: 12.5px; }
  .nav-links a.nav-cta { padding: 10px 18px; }
}
@media (max-width: 480px) {
  .nav-links { gap: 10px; font-size: 12px; }
  .nav-links a.nav-cta { padding: 8px 14px; }
  .lang-switch { margin-left: 0; }
}

/* ---- hero ---- */
.hero { max-width: var(--w); margin: 0 auto; padding: clamp(60px, 9vw, 130px) var(--pad) clamp(52px, 7vw, 100px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero .kicker { margin-bottom: 1.4rem; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: center; }
  .hero-mark canvas { width: 180px !important; height: 180px !important; }
}

/* ---- page header (subpages) ---- */
.page-head { max-width: var(--w); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--pad) clamp(40px, 5vw, 72px); }
.page-head .kicker { margin-bottom: 1.4rem; }
.page-head .lead { margin-top: 1.4rem; }

/* ---- buttons & links ---- */
.btn { display: inline-block; font-family: var(--font-d); font-weight: 700; font-size: 15px; text-decoration: none; padding: 15px 28px; }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { border: 1.5px solid currentColor; }
.link-arrow { font-family: var(--font-d); font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 3px solid var(--red); padding-bottom: 3px; }

/* ---- stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(255, 255, 255, 0.25); margin-top: 2.6rem; }
.stat { background: var(--navy); padding: clamp(20px, 2.6vw, 34px); }
.stat--blue { background: var(--blue); }
.stat-num { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -0.02em; }
.stat-label { font-size: 12.5px; line-height: 1.55; color: var(--pale); margin-top: 8px; }
.stat--blue .stat-label { color: #fff; }
.sources { margin-top: 2rem; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---- numbered principles / cards ---- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 2.6rem; }
.principle { border-top: 1px solid var(--navy); padding-top: 18px; }
.t-navy .principle { border-top-color: rgba(255, 255, 255, 0.4); }
.principle .num { font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: var(--red); display: block; margin-bottom: 10px; }
.t-navy .principle .num { color: var(--blue-light); }
.principle h3 { margin-bottom: 0.6rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy); border: 1px solid var(--navy); margin-top: 2.6rem; }
.card { background: var(--paper); padding: clamp(22px, 2.6vw, 34px); }
.card h3 { margin-bottom: 0.6rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---- comparison table ---- */
.cmp-wrap { overflow-x: auto; margin-top: 2.6rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.cmp th, .cmp td { border: 1px solid rgba(15, 35, 64, 0.18); padding: 11px 14px; text-align: start; vertical-align: top; }
.cmp thead th { font-family: var(--font-d); font-weight: 700; background: var(--navy); color: #fff; }
.cmp tbody th { font-weight: 600; color: var(--navy); }
.cmp .k { background: var(--pale); font-weight: 700; color: var(--navy); }
.cmp .yes { color: var(--blue); font-weight: 700; }
.cmp .no { color: var(--muted); }

/* ---- roadmap ---- */
.roadmap { margin-top: 2.6rem; }
.phase { display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-top: 1px solid var(--navy); padding: 24px 0; }
.phase:last-child { border-bottom: 1px solid var(--navy); }
.p-num { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--red); }
.phase h3 { margin-bottom: 0.5rem; }
@media (max-width: 560px) { .phase { grid-template-columns: 1fr; gap: 6px; } }

/* ---- founders ---- */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 2.6rem; }
.duotone { aspect-ratio: 4 / 5; background: var(--navy); position: relative; overflow: hidden; }
.duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.95); mix-blend-mode: screen; opacity: 0.92; }
.duotone .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 56px; letter-spacing: 0.05em; color: var(--blue-light); }
.founder .role { font-family: var(--font-d); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-top: 18px; }
.founder h3 { font-size: 1.35rem; margin-top: 6px; }
.founder .body { margin-top: 0.8rem; }
.founders-aside { border-top: 1px solid var(--navy); margin-top: 2.6rem; padding-top: 1.2rem; font-style: italic; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 700px) { .founders { grid-template-columns: 1fr; } }

/* ---- facts ---- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 2.6rem; }
.fact h4 { font-family: var(--font-d); font-weight: 700; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 8px; }
.fact p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.fact a { color: var(--blue-light); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---- insight block ---- */
.insight { background: var(--pale); padding: clamp(24px, 3vw, 40px); margin-top: 2.2rem; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; }

/* ---- band (CTA) ---- */
.band { text-align: start; }
.band .h-section { max-width: 18em; }
.band .lead { margin-top: 1.2rem; }
.band .hero-actions { margin-top: 2rem; }

/* ---- footer ---- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.65); padding: 52px var(--pad); display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; font-size: 13px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255, 255, 255, 0.5); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
