@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0a1f3d;
  --navy-2: #102a4f;
  --blue: #2f6da3;
  --blue-l: #9cc3e6;
  --pale: #eaf2fa;
  --copper: #e08a5b;
  --copper-d: #b4592a;

  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --ink: #0f2036;
  --ink-2: #4a5b72;
  --line: #d9e3ee;
  --link: #1f5a8f;

  --head: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07172e;
    --bg-alt: #0a1f3d;
    --ink: #e6eef8;
    --ink-2: #a9bbd1;
    --line: #1b3558;
    --link: #9cc3e6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--copper-d); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 31, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156, 195, 230, 0.15);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 28px); }
.nav a { color: var(--pale); text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.85; }
.nav a:hover { opacity: 1; color: #fff; }
@media (max-width: 720px) {
  .nav a:nth-child(1), .nav a:nth-child(n+4):not(:last-child) { display: none; }
  .nav { gap: 18px; }
  .hero::after { background: linear-gradient(180deg, rgba(10,31,61,0.82), rgba(10,31,61,0.6)); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero .flow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero .flow path { fill: none; stroke-linecap: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.hero .flow g { animation: drift 16s ease-in-out infinite alternate; }
.hero .flow g:nth-child(2n) { animation-duration: 21s; animation-direction: alternate-reverse; }
.hero .flow g:nth-child(3n) { animation-duration: 27s; }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero .flow g { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(10,31,61,0.88) 38%, rgba(10,31,61,0) 78%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(72px, 14vw, 150px); }
.eyebrow { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; color: var(--blue-l); margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 700; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero .lede { max-width: 54ch; font-size: clamp(17px, 2vw, 20px); color: #cfe0f2; margin-top: 24px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-family: var(--head); font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid var(--blue-l); color: #fff; }
.btn:hover { background: rgba(156, 195, 230, 0.15); color: #fff; }
.btn.primary { background: var(--copper); border-color: var(--copper); color: #1b0f08; }
.btn.primary:hover { background: #eb9a6e; color: #1b0f08; }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 9vw, 104px); }
section.alt { background: var(--bg-alt); }
.kicker { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12.5px; color: var(--copper-d); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--copper); } }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; max-width: 22ch; }
.section-intro { max-width: 62ch; color: var(--ink-2); font-size: 18px; margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.two p { color: var(--ink-2); }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.examples li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); background: var(--bg); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 44px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px 26px; display: flex; flex-direction: column; border-top: 4px solid var(--blue); }
.card:nth-child(3) { border-top-color: var(--copper); }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.card ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.card li { margin-bottom: 4px; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; }

/* vonneuro */
.von { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.von .kicker { color: var(--copper); }
.von h2 { color: #fff; max-width: 20ch; }
.von p { color: #cfe0f2; }
.von .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.stat b { white-space: nowrap; }
.stat { border: 1px solid rgba(156, 195, 230, 0.25); border-radius: 12px; padding: 18px 18px 16px; background: rgba(16, 42, 79, 0.55); }
.stat b { display: block; font-family: var(--head); font-size: 30px; color: #fff; }
.stat span { font-size: 14px; color: var(--blue-l); }
.von a { color: var(--blue-l); }
.von .btn.primary { color: #1b0f08; }

/* principles */
.principles { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; counter-reset: p; }
.principles li { counter-increment: p; padding-top: 16px; border-top: 2px solid var(--line); }
.principles li::before { content: "0" counter(p); font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--copper-d); letter-spacing: 0.1em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .principles li::before { color: var(--copper); } }
.principles h3 { font-size: 18px; margin: 8px 0 6px; }
.principles p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* news */
.news { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--head); font-weight: 600; color: var(--copper-d); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .news time { color: var(--copper); } }
.news h3 { font-size: 19px; }
.news p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* contact */
.contact { text-align: center; }
.contact h2 { margin-inline: auto; }
.contact .section-intro { margin-inline: auto; }
.contact .btns { justify-content: center; }
.contact .btn { color: var(--ink); border-color: var(--line); }
.contact .btn:hover { background: var(--bg-alt); color: var(--ink); }
.contact .btn.primary { color: #1b0f08; border-color: var(--copper); }

/* footer */
footer { background: var(--navy); color: var(--blue-l); padding-block: 40px; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
footer a { color: var(--pale); }
footer .fb { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--head); font-weight: 600; }
footer .fb img { width: 34px; height: 34px; }

/* redirect + 404 pages */
.center { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 24px; background: var(--navy); color: #fff; }
.center a { color: var(--blue-l); }
