/* MeerTech Ltd site stylesheet.
   Liquid glass, two themes: deep space (default) and ice (light).
   Theme is toggled by setting data-theme="light" on <html>; dark is the brand default. */
:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-2: #050B18;
  --glass: rgba(13, 23, 42, 0.52);
  --glass-strong: rgba(13, 23, 42, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --glass-edge-bright: rgba(255, 255, 255, 0.22);
  --specular: rgba(255, 255, 255, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --shadow-color: rgba(2, 6, 16, 0.45);
  --shadow-color-deep: rgba(2, 6, 16, 0.5);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --active-bg: rgba(255, 255, 255, 0.08);
  --chip-bg: rgba(255, 255, 255, 0.04);
  --hairline: rgba(230, 237, 243, 0.09);
  --grid-line: rgba(230, 237, 243, 0.028);
  --text: #EEF4FA;
  --text-muted: #A8BACF;
  --text-faint: rgba(230, 237, 243, 0.55);
  --accent: #2ACBAC;
  --accent-2: #2DD493;
  --accent-deep: #12A974;
  --accent-contrast: #04110C;
  --glow: rgba(42, 203, 172, 0.16);
  --badge-glow: rgba(42, 203, 172, 0.35);
  --btn-glow: rgba(42, 203, 172, 0.28);
  --btn-glow-hover: rgba(42, 203, 172, 0.4);
  --aurora:
    radial-gradient(42% 34% at 78% 6%, rgba(42, 203, 172, 0.13), transparent 70%),
    radial-gradient(50% 40% at 8% 30%, rgba(30, 78, 120, 0.20), transparent 70%),
    radial-gradient(44% 36% at 60% 96%, rgba(18, 169, 116, 0.10), transparent 70%),
    linear-gradient(180deg, #04091a 0%, #030712 55%, #04101d 100%);
  --hero-scene-opacity: 0.85;
  --hero-overlay:
    radial-gradient(70% 90% at 30% 40%, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.66) 82%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.06) 45%, #030712 98%);
  --heading: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F6FB;
  --bg-2: #E9F0F8;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(11, 22, 38, 0.09);
  --glass-edge-bright: rgba(11, 22, 38, 0.18);
  --specular: rgba(255, 255, 255, 0.9);
  --glass-highlight: rgba(255, 255, 255, 0.75);
  --shadow-color: rgba(24, 44, 74, 0.12);
  --shadow-color-deep: rgba(24, 44, 74, 0.16);
  --hover-bg: rgba(11, 22, 38, 0.05);
  --active-bg: rgba(11, 22, 38, 0.07);
  --chip-bg: rgba(11, 22, 38, 0.04);
  --hairline: rgba(11, 22, 38, 0.10);
  --grid-line: rgba(11, 22, 38, 0.045);
  --text: #0B1626;
  --text-muted: #40536C;
  --text-faint: rgba(11, 22, 38, 0.52);
  --accent: #0C9A7E;
  --accent-2: #0FA96A;
  --accent-deep: #0B8A67;
  --accent-contrast: #FFFFFF;
  --glow: rgba(12, 154, 126, 0.14);
  --badge-glow: rgba(12, 154, 126, 0.3);
  --btn-glow: rgba(12, 154, 126, 0.25);
  --btn-glow-hover: rgba(12, 154, 126, 0.36);
  --aurora:
    radial-gradient(42% 34% at 78% 6%, rgba(42, 203, 172, 0.16), transparent 70%),
    radial-gradient(50% 40% at 8% 30%, rgba(94, 146, 198, 0.18), transparent 70%),
    radial-gradient(44% 36% at 60% 96%, rgba(18, 169, 116, 0.10), transparent 70%),
    linear-gradient(180deg, #EDF3FA 0%, #F2F6FB 55%, #E9F1F8 100%);
  --hero-scene-opacity: 0.6;
  --hero-overlay:
    radial-gradient(70% 90% at 30% 40%, rgba(242, 246, 251, 0.2), rgba(242, 246, 251, 0.65) 82%),
    linear-gradient(180deg, rgba(242, 246, 251, 0.45) 0%, rgba(242, 246, 251, 0.12) 45%, #F2F6FB 98%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 450;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 250ms ease, color 250ms ease;
}

/* Aurora field */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background: var(--aurora);
}
/* Engineering grid, masked to the middle of the viewport */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 38%, #000 0%, transparent 100%);
          mask-image: radial-gradient(72% 64% at 50% 38%, #000 0%, transparent 100%);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-contrast); padding: 8px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Liquid glass primitives ---------- */
.card, .doctrine, header.site .nav, blockquote.honest, .arch .layer, .trusted-item {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
          backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 40px var(--shadow-color);
}

/* ---------- Header: floating glass capsule ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 14px 20px 0; }
header.site .nav {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto; padding: 10px 12px 10px 20px;
  border-radius: 999px;
  position: relative;
}
header.site .nav::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--specular), transparent);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--heading); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; width: auto; display: block; }
:root[data-theme="light"] .brand img { filter: invert(1) brightness(0.2); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.845rem;
  padding: 7px 13px; border-radius: 999px; transition: color 160ms ease, background 160ms ease;
}
.nav-links a:hover { color: var(--text); background: var(--hover-bg); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--active-bg); }
main { padding-top: 84px; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--glass-edge-bright);
  color: var(--text-muted); padding: 0;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.875rem; line-height: 1.4;
  border: 1px solid transparent; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-contrast);
  box-shadow: 0 8px 28px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px var(--btn-glow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost {
  border-color: var(--glass-edge-bright); color: var(--text);
  background: var(--chip-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav-links .btn { padding: 9px 18px; }

/* Burger (mobile only) */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--glass-edge-bright);
  color: var(--text); padding: 0; margin-left: auto;
}
.nav-burger svg { width: 18px; height: 18px; display: block; }

/* ---------- Mobile navigation and scale ---------- */
@media (max-width: 880px) {
  header.site { padding: 10px 10px 0; }
  header.site .nav { padding: 8px 10px 8px 16px; gap: 12px; border-radius: 22px; }
  .nav-burger { display: inline-flex; }
  .nav-links { display: none; }
  header.site .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 4px; padding: 10px 4px 8px; margin-left: 0;
    border-top: 1px solid var(--hairline); margin-top: 4px;
  }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 0.95rem; border-radius: 12px; }
  .nav.open .nav-links .btn { text-align: center; margin-top: 6px; }
  .nav.open .theme-toggle { width: 100%; border-radius: 12px; height: 44px; margin-top: 2px; }

  main { padding-top: 72px; }
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 44px; }
  .hero-home { min-height: 0; padding: 64px 0 48px; }
  h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero p.sub { font-size: 0.95rem; }
  .doctrine { padding: 20px 22px; border-radius: 16px; }
  section.block { padding: 60px 0 8px; }
  .trusted { padding: 44px 0 8px; }
  .page-hero { padding: 52px 0 8px; }
  .close-block { padding: 72px 0 56px; }
  .card { padding: 20px; }
  .stats { gap: 28px; }
  footer.site { margin-top: 56px; padding: 40px 0 28px; }
  .btn { padding: 11px 20px; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 400px) {
  .trusted-grid { grid-template-columns: 1fr; }
  .defs .row { padding: 12px 6px; }
}

/* ---------- Cinematic hero ---------- */
.hero { position: relative; padding: 120px 0 72px; }
.hero-home {
  min-height: min(88vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 0 64px;
}
.hero-media {
  position: absolute; inset: -84px -100vw 0 -100vw; z-index: -1; overflow: hidden;
  pointer-events: none;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-overlay);
}
.hero-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: var(--hero-scene-opacity);
  transition: opacity 250ms ease;
}
.scene-contours path {
  fill: none; stroke: var(--text); stroke-width: 1; opacity: 0.05;
}
.scene-links line {
  stroke: var(--accent); stroke-width: 1; opacity: 0.28;
  stroke-dasharray: 5 9;
}
.scene-links line.trunk { stroke-width: 1.4; opacity: 0.4; stroke-dasharray: 2 12; }
.node .halo { fill: var(--accent); opacity: 0.14; }
.node .core { fill: var(--accent); opacity: 0.9; }
.node.hub .halo { opacity: 0.2; }

@media (prefers-reduced-motion: no-preference) {
  .scene-links line { animation: linkflow 6s linear infinite; }
  .scene-links line.trunk { animation: linkflow 9s linear infinite reverse; }
  .node .halo { animation: pulse 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .scene-nodes .node:nth-child(3n) .halo { animation-delay: 1.6s; }
  .scene-nodes .node:nth-child(3n+1) .halo { animation-delay: 3.2s; }
  .scene-net { animation: drift 46s ease-in-out infinite alternate; }
}
@keyframes linkflow { to { stroke-dashoffset: -70; } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.7); opacity: 0.3; }
}
@keyframes drift {
  from { transform: translate(-14px, 6px); }
  to { transform: translate(14px, -6px); }
}
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 650; margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
h1 {
  font-family: var(--heading); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04;
  letter-spacing: -0.03em; margin: 0 0 26px; max-width: 20ch;
}
h1 .grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-deep) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.125rem); max-width: 60ch; margin: 0 0 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Doctrine strip: glass monolith ---------- */
.doctrine { border-radius: 20px; padding: 30px 36px; margin: 8px 0 0; position: relative; overflow: hidden; }
.doctrine::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--specular), transparent);
}
.doctrine p {
  margin: 0; font-family: var(--heading); font-weight: 650;
  font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text);
  letter-spacing: 0.002em;
}
.doctrine p span { color: var(--accent); }

/* ---------- Dossier sections ---------- */
section.block { padding: 104px 0 8px; }
.kicker {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 650; margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.kicker b { color: var(--accent); font-weight: 650; }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
h2 {
  font-family: var(--heading); font-weight: 750;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.14;
  letter-spacing: -0.02em; margin: 0 0 18px; max-width: 26ch;
}
h3 { font-family: var(--heading); font-weight: 700; font-size: 1.1rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.lede { color: var(--text-muted); font-size: 1.03rem; max-width: 64ch; }
p { color: var(--text-muted); max-width: 70ch; }
ul { padding-left: 20px; }
li { color: var(--text-muted); margin-bottom: 8px; }
li::marker { color: var(--accent); }
strong { color: var(--text); font-weight: 600; }

/* ---------- Glass cards ---------- */
.grid { display: grid; gap: 18px; margin: 34px 0 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card { border-radius: 18px; padding: 26px; position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 10%; right: 40%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--specular), transparent);
  pointer-events: none;
}
.card h3 { margin-top: 0; }
.card p { font-size: 0.875rem; margin-bottom: 0; }
.card .sector-tag { display: block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; font-weight: 650; }
a.card { display: block; color: inherit; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
a.card:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 50px var(--shadow-color-deep), 0 0 34px var(--glow);
}
a.card:hover h3 { color: var(--accent); }
a.card::after {
  content: "→"; position: absolute; right: 22px; bottom: 18px;
  color: var(--accent); opacity: 0; transition: opacity 200ms ease, transform 200ms ease;
  transform: translateX(-6px);
}
a.card:hover::after { opacity: 1; transform: translateX(0); }

/* ---------- Status badges ---------- */
.badge {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.badge-deployed {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-contrast);
  box-shadow: 0 0 18px var(--badge-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.badge-built { background: var(--glow); border: 1px solid var(--accent); color: var(--accent); }
.badge-indev { background: var(--chip-bg); border: 1px solid var(--glass-edge-bright); color: var(--text-muted); }
.status-research { font-size: 0.66rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); display: inline-block; margin-bottom: 12px; }

/* ---------- Definition rows: dossier table ---------- */
.defs { border-top: 1px solid var(--hairline); margin-top: 34px; }
.defs .row {
  display: grid; grid-template-columns: 240px 1fr; gap: 18px;
  padding: 16px 10px; border-bottom: 1px solid var(--hairline);
  transition: background 160ms ease;
}
.defs .row:hover { background: var(--hover-bg); }
.defs .row .label { color: var(--text-faint); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 650; padding-top: 4px; }
.defs .row .value { color: var(--text); font-size: 0.95rem; }
@media (max-width: 640px) { .defs .row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-edge); border-radius: 18px; padding: 22px 24px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 80%);
}
.pillar h3 { font-size: 0.98rem; }
.pillar p { font-size: 0.855rem; margin: 0; }

/* ---------- Trusted strip: glass chips ---------- */
.trusted { padding: 64px 0 8px; }
.trusted-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 980px) { .trusted-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .trusted-grid { grid-template-columns: 1fr 1fr; } }
.trusted-item { border-radius: 16px; padding: 16px 18px; }
.trusted-item .name { color: var(--text); font-weight: 650; font-size: 0.88rem; display: block; font-family: var(--heading); }
.trusted-item .what { color: var(--text-faint); font-size: 0.74rem; display: block; margin-top: 4px; }

/* ---------- Honesty block ---------- */
blockquote.honest { margin: 34px 0 0; padding: 26px 30px; border-radius: 18px; position: relative; overflow: hidden; }
blockquote.honest::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
blockquote.honest p { color: var(--text); font-size: 1.02rem; margin: 0; max-width: 62ch; font-family: var(--heading); font-weight: 550; }

.disclaimer {
  font-size: 0.78rem; color: var(--text-faint);
  border-top: 1px dashed var(--glass-edge-bright); margin-top: 14px; padding-top: 12px;
}

/* ---------- Stats ---------- */
.stats { display: flex; gap: 44px; flex-wrap: wrap; margin: 30px 0 0; }
.stat .v {
  display: block; font-family: var(--heading); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { display: block; margin-top: 8px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); font-weight: 650; }
.counter { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; margin: 22px 0 0; color: var(--text); font-family: var(--heading); font-weight: 650; font-size: 1rem; }
.counter .dot { color: var(--text-faint); }

/* ---------- Architecture diagram ---------- */
.arch { margin-top: 34px; display: grid; gap: 12px; }
.arch .layer { border-radius: 16px; padding: 16px 20px; }
.arch .layer .t { color: var(--text); font-weight: 650; font-size: 0.9rem; display: block; font-family: var(--heading); }
.arch .layer .d { color: var(--text-faint); font-size: 0.8rem; display: block; margin-top: 3px; }
.arch .conn { text-align: center; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 650; }

/* ---------- Close ---------- */
.close-block { padding: 120px 0 96px; }
.close-block h2 { max-width: none; font-size: clamp(1.8rem, 4vw, 3rem); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--hairline); margin-top: 96px; padding: 56px 0 40px; position: relative; }
footer.site::before {
  content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .tagline { color: var(--text-muted); font-size: 0.875rem; max-width: 44ch; margin-top: 14px; }
.footer-grid h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; font-weight: 650; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul a { color: var(--text-muted); font-size: 0.865rem; }
.footer-grid ul a:hover { color: var(--accent); text-decoration: none; }
:root[data-theme="light"] footer .brand img { filter: invert(1) brightness(0.2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--hairline); margin-top: 40px; padding-top: 24px; color: var(--text-faint); font-size: 0.8rem; }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 88px 0 12px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 64px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose ul { max-width: 70ch; }

/* ---------- Research articles ---------- */
.article-meta {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 650; margin-top: 18px;
}
.article-meta .sep { color: var(--accent); }
.article .page-hero h1 { max-width: 24ch; }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }

.contact-channels { margin-top: 32px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 700ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .hero > *:nth-child(2) { animation-delay: 90ms; }
  .hero > *:nth-child(3) { animation-delay: 180ms; }
  .hero > *:nth-child(4) { animation-delay: 270ms; }
  @supports (animation-timeline: view()) {
    section.block > *, .trusted > *, .close-block > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
