/* ==========================================================================
   metadist — site styles
   White, calm, one brand blue. Every animation is CSS; JS only adds
   `has-js` and the `.is-visible` reveal class.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
    --ink: #0e1116;
    --text: #1f2430;
    --muted: #5b6472;
    --faint: #8b93a1;
    --line: #e6e8ee;
    --line-strong: #d3d8e2;
    --bg: #ffffff;
    --bg-tint: #f6f7fa;
    --brand: #2f5394;
    --brand-ink: #24407a;
    --brand-bright: #4b78d0;
    --synaplan: #0003c7;
    --brand-soft: #e9eefb;
    --brand-glow: rgba(47, 83, 148, 0.18);
    --tile: #7c7c7c;
    --console: #101522;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 4px 12px rgba(14, 17, 22, 0.05);
    --shadow-md: 0 2px 4px rgba(14, 17, 22, 0.05), 0 18px 44px rgba(14, 17, 22, 0.09);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --container: 1120px;
    --gutter: clamp(20px, 4vw, 32px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --header-h: 68px;
}

/* --- Base --------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand);
    text-decoration: none;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* --- Brand mark (shared SVG tiles) -------------------------------------- */
.tile {
    fill: var(--tile);
}

.tile--accent {
    fill: var(--brand);
}

.tile--animated {
    transform-box: fill-box;
    transform-origin: center;
    animation: tile-settle 7s var(--ease) infinite;
}

@keyframes tile-settle {
    0%,
    100% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(3deg) translate(-1.5px, -2px);
    }
}

.bird {
    fill: var(--synaplan);
}

.lattice__bird,
.orbit__bird {
    transform-box: fill-box;
    transform-origin: center;
    animation: bird-hover 6s ease-in-out infinite;
}

@keyframes bird-hover {
    0%,
    100% {
        transform: translateY(1px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* --- Header ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px rgba(14, 17, 22, 0.04);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand__logo {
    height: 34px;
    width: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.site-nav__list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.site-nav__list a:hover {
    text-decoration: none;
    color: var(--brand);
}

.site-nav__list a[aria-current="page"] {
    color: var(--brand);
}

.site-nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.lang-switch {
    padding: 6px 12px !important;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.88rem !important;
}

.lang-switch:hover {
    border-color: var(--brand);
}

.lang-switch__icon {
    color: var(--muted);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.nav-toggle__bar {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle__bar:nth-child(1) {
    top: 14px;
}

.nav-toggle__bar:nth-child(2) {
    top: 21px;
}

.nav-toggle__bar:nth-child(3) {
    top: 28px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(14, 17, 22, 0.08);
        padding: 8px var(--gutter) 20px;
        display: none;
    }

    .has-js .site-nav {
        display: block;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }

    .has-js .site-nav.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    /* Without JavaScript the menu is always visible as a plain list. */
    html:not(.has-js) .site-nav {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0 0 12px;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-nav__list a {
        display: flex;
        padding: 12px 4px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--line);
    }

    .site-nav__list a[aria-current="page"]::after {
        display: none;
    }

    .site-nav__lang {
        margin-top: 12px;
    }

    .lang-switch {
        display: inline-flex !important;
        align-self: flex-start;
        border-bottom: 1px solid var(--line-strong) !important;
    }
}

/* --- Typography helpers ------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand);
}

.eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    animation: dot-pulse 2.6s var(--ease) infinite;
}

@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(47, 83, 148, 0.45);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(47, 83, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(47, 83, 148, 0);
    }
}

.section__title {
    font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

.section__lead {
    margin-top: 16px;
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 62ch;
}

.section__head {
    max-width: 760px;
    margin-bottom: clamp(32px, 4vw, 52px);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.3rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 22px rgba(47, 83, 148, 0.22);
}

.btn--primary:hover {
    background: var(--brand-ink);
    box-shadow: 0 12px 28px rgba(47, 83, 148, 0.28);
}

.btn--ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn__arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 104px) clamp(40px, 6vw, 80px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.6px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 42%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 80% at 72% 42%, #000 20%, transparent 70%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero__title {
    font-size: clamp(2.25rem, 1.45rem + 3.2vw, 3.7rem);
    line-height: 1.06;
    letter-spacing: -0.028em;
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 45%, var(--brand) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

.hero__lead {
    margin-top: 22px;
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
    color: var(--muted);
    max-width: 58ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

@media (max-width: 899px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        order: 2;
        max-width: 480px;
        margin-inline: auto;
    }

    .hero::before {
        -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%);
        mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%);
    }
}

/* --- Lattice (Open Source Integration hero) ----------------------------- */
.lattice {
    width: 100%;
    max-width: 580px;
    height: auto;
    overflow: visible;
}

.lattice__glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: breathe 5.5s var(--ease) infinite;
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

.lattice .link {
    stroke: var(--line-strong);
    stroke-width: 1.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 1.1s var(--ease) forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.lattice .pulse {
    stroke: var(--synaplan);
    stroke-width: 2.5;
    stroke-dasharray: 9 100;
    stroke-dashoffset: 9;
    opacity: 0;
    animation: travel 4.8s linear infinite;
}

@keyframes travel {
    0% {
        stroke-dashoffset: 9;
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    30% {
        stroke-dashoffset: -100;
        opacity: 1;
    }
    31%,
    100% {
        stroke-dashoffset: -100;
        opacity: 0;
    }
}

.lattice .node {
    opacity: 0;
    animation: node-in 0.6s var(--ease) forwards, float 6s ease-in-out infinite alternate;
}

@keyframes node-in {
    to {
        opacity: 1;
    }
}

@keyframes float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-4px);
    }
}

.lattice .node__chip {
    fill: #fff;
    stroke: var(--line-strong);
    stroke-width: 1.25;
    filter: drop-shadow(0 6px 14px rgba(14, 17, 22, 0.06));
}

.lattice .node__dot {
    fill: var(--tile);
}

.lattice .node:nth-child(odd) .node__dot {
    fill: var(--brand);
}

.lattice .node__label {
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    fill: var(--text);
}

.lattice .node__ring {
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: ring 4.8s var(--ease) infinite;
}

@keyframes ring {
    0% {
        opacity: 0;
        transform: scale(0.55);
    }
    4% {
        opacity: 0.55;
    }
    24% {
        opacity: 0;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.lattice__plate {
    fill: #fff;
    stroke: var(--line);
    filter: drop-shadow(0 18px 40px rgba(0, 3, 199, 0.14));
}

/* Stagger: lines draw in order, then one pulse at a time travels inward. */
.lattice .link:nth-child(1) { animation-delay: 0.05s; }
.lattice .link:nth-child(2) { animation-delay: 0.15s; }
.lattice .link:nth-child(3) { animation-delay: 0.25s; }
.lattice .link:nth-child(4) { animation-delay: 0.35s; }
.lattice .link:nth-child(5) { animation-delay: 0.45s; }
.lattice .link:nth-child(6) { animation-delay: 0.55s; }
.lattice .link:nth-child(7) { animation-delay: 0.65s; }
.lattice .link:nth-child(8) { animation-delay: 0.75s; }

.lattice .node:nth-child(1) { animation-delay: 0.5s, 0s; }
.lattice .node:nth-child(2) { animation-delay: 0.6s, 0.7s; }
.lattice .node:nth-child(3) { animation-delay: 0.7s, 1.4s; }
.lattice .node:nth-child(4) { animation-delay: 0.8s, 2.1s; }
.lattice .node:nth-child(5) { animation-delay: 0.9s, 2.8s; }
.lattice .node:nth-child(6) { animation-delay: 1s, 3.5s; }
.lattice .node:nth-child(7) { animation-delay: 1.1s, 4.2s; }
.lattice .node:nth-child(8) { animation-delay: 1.2s, 4.9s; }

.lattice .pulse:nth-child(1), .lattice .node:nth-child(1) .node__ring { animation-delay: 1.4s; }
.lattice .pulse:nth-child(2), .lattice .node:nth-child(2) .node__ring { animation-delay: 2s; }
.lattice .pulse:nth-child(3), .lattice .node:nth-child(3) .node__ring { animation-delay: 2.6s; }
.lattice .pulse:nth-child(4), .lattice .node:nth-child(4) .node__ring { animation-delay: 3.2s; }
.lattice .pulse:nth-child(5), .lattice .node:nth-child(5) .node__ring { animation-delay: 3.8s; }
.lattice .pulse:nth-child(6), .lattice .node:nth-child(6) .node__ring { animation-delay: 4.4s; }
.lattice .pulse:nth-child(7), .lattice .node:nth-child(7) .node__ring { animation-delay: 5s; }
.lattice .pulse:nth-child(8), .lattice .node:nth-child(8) .node__ring { animation-delay: 5.6s; }

@media (max-width: 560px) {
    .lattice .node__label {
        font-size: 18px;
    }
}

/* --- Orbit (Open Source AI hero) ---------------------------------------- */
.orbit {
    width: 100%;
    max-width: 520px;
    height: auto;
    overflow: visible;
}

.orbit__boundary {
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.5;
    stroke-dasharray: 3 11;
    stroke-linecap: round;
    opacity: 0.6;
    transform-origin: 260px 260px;
    animation: spin 160s linear infinite;
}

.orbit__glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: breathe 6s var(--ease) infinite;
}

.orbit__ring {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.25;
}

.orbit__track {
    transform-origin: 260px 260px;
    animation: spin 60s linear infinite;
}

.orbit--1 {
    animation-duration: 40s;
}

.orbit--2 {
    animation-duration: 64s;
    animation-direction: reverse;
}

.orbit--3 {
    animation-duration: 96s;
}

.orbit__chip {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 60s linear infinite reverse;
}

.orbit--1 .orbit__chip {
    animation-duration: 40s;
    animation-direction: reverse;
}

.orbit--2 .orbit__chip {
    animation-duration: 64s;
    animation-direction: normal;
}

.orbit--3 .orbit__chip {
    animation-duration: 96s;
    animation-direction: reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.orbit__chip rect {
    fill: #fff;
    stroke: var(--line-strong);
    stroke-width: 1.25;
    filter: drop-shadow(0 6px 14px rgba(14, 17, 22, 0.07));
}

.orbit__chip text {
    font-family: var(--font);
    font-size: 11.5px;
    font-weight: 600;
    fill: var(--text);
}

.orbit__dot {
    fill: var(--brand);
    stroke: #fff;
    stroke-width: 3;
}

.orbit__dot:nth-of-type(even) {
    fill: var(--tile);
}

.orbit__labels text {
    font-family: var(--font);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    fill: var(--faint);
}

.orbit__labels .orbit__boundary-label {
    fill: var(--brand);
}

.orbit__plate {
    fill: #fff;
    stroke: var(--line);
    filter: drop-shadow(0 18px 40px rgba(0, 3, 199, 0.16));
}

/* --- Stats -------------------------------------------------------------- */
.stats {
    padding-block: 8px clamp(32px, 4vw, 56px);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.stat__value {
    order: 1;
}

.stat__label {
    order: 2;
}

.stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat__value {
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
}

.stat__label {
    font-size: 0.88rem;
    color: var(--muted);
}

@media (max-width: 767px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

/* --- Marquee ------------------------------------------------------------ */
.marquee {
    padding-bottom: clamp(24px, 3vw, 40px);
}

.marquee__label {
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--faint);
}

.marquee__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding-block: 6px;
    animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__track li {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.marquee__track li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--tile);
    opacity: 0.6;
}

.marquee__track li:nth-child(4n + 1)::before {
    background: var(--brand);
}

@keyframes marquee {
    to {
        transform: translateX(calc(-50% - 20px));
    }
}

/* --- Sections ----------------------------------------------------------- */
.section {
    padding-block: clamp(56px, 7vw, 104px);
}

.section--tint {
    background: var(--bg-tint);
}

.cards {
    display: grid;
    gap: 20px;
}

.cards--4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
    text-decoration: none;
}

.card:hover::before {
    transform: scaleX(1);
}

.card__index {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--faint);
    letter-spacing: 0.06em;
}

.card__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.card__body {
    color: var(--muted);
    font-size: 0.96rem;
}

.card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
}

.card__link span {
    transition: transform 0.25s var(--ease);
}

.card:hover .card__link span,
.card__link:hover span {
    transform: translateX(3px);
}

.card--link .card__title {
    color: var(--ink);
}

/* Principles */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px 40px;
}

.principles--3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.principle {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.principle__mark {
    flex-shrink: 0;
    margin-top: 3px;
}

.principle__title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
}

.principle__body {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.96rem;
}

/* Checklist */
.checklist {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--text);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.checklist li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: calc(0.3em + 4px);
    width: 6px;
    height: 9px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Product (Synaplan teaser) */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

@media (max-width: 899px) {
    .product {
        grid-template-columns: 1fr;
    }
}

.console {
    background: var(--console);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(14, 17, 22, 0.18);
    overflow: hidden;
    color: #d8dee9;
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.6;
}

.console__bar {
    display: flex;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.console__body {
    padding: 22px 22px 26px;
    min-height: 210px;
}

.console__line {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 4px 0;
}

/* The replay starts when the block scrolls into view (or immediately without JS). */
.has-js .is-visible .console__line,
html:not(.has-js) .console__line {
    opacity: 0;
    animation: console-line 14s var(--ease) infinite;
}

.console__line:nth-child(1) { animation-delay: 0.4s; }
.console__line:nth-child(2) { animation-delay: 1.5s; }
.console__line:nth-child(3) { animation-delay: 2.6s; }
.console__line:nth-child(4) { animation-delay: 3.9s; }
.console__line:nth-child(5) { animation-delay: 5s; }

@keyframes console-line {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    4%,
    78% {
        opacity: 1;
        transform: none;
    }
    86%,
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.console__line--muted {
    color: #8b95a7;
}

.console__line--ok {
    color: #ffffff;
}

.console__tag {
    flex-shrink: 0;
    min-width: 62px;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: #b7c0d0;
    text-align: center;
}

.console__tag--route {
    background: rgba(75, 120, 208, 0.25);
    color: #9fbcf0;
}

.console__tag--rag {
    background: rgba(45, 180, 160, 0.2);
    color: #8fe3d5;
}

.console__tag--ok {
    background: rgba(70, 190, 110, 0.22);
    color: #9fe6b4;
}

.console__cursor {
    width: 9px;
    height: 16px;
    margin-top: 10px;
    background: #9fbcf0;
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

/* Entities & partners */
.entities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.entity {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.entity:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.entity__kicker {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.entity__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.entity__body {
    color: var(--muted);
    font-size: 0.96rem;
    flex-grow: 1;
}

.partners {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .partners {
        grid-template-columns: 1fr;
    }
}

.partners__col {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.partners__col--osba {
    padding: 0;
}

.partners__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.partners__body {
    margin-top: 6px;
    font-size: 0.94rem;
    color: var(--muted);
}

.partners__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.chip:hover {
    border-color: var(--brand);
    color: var(--brand);
    text-decoration: none;
    transform: translateY(-1px);
}

.osba-card {
    display: flex;
    gap: 22px;
    align-items: center;
    height: 100%;
    padding: 28px;
    color: inherit;
    border-radius: var(--radius);
}

.osba-card:hover {
    text-decoration: none;
}

.osba-card img {
    width: 150px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.osba-card .card__link {
    margin-top: 12px;
}

@media (max-width: 480px) {
    .osba-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Regions (AI page) */
.regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.region {
    padding: 30px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.region::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.region:hover::after {
    opacity: 1;
}

.region__name {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.region__title {
    margin-top: 8px;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.region__body {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.96rem;
}

/* Contact */
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.contact .btn {
    margin-top: 28px;
}

.contact__details {
    display: grid;
    gap: 22px;
    padding: 32px;
    background: var(--bg-tint);
    border-radius: var(--radius);
}

.contact__details dt {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.contact__details dd {
    margin-top: 4px;
    font-size: 1.05rem;
    color: var(--ink);
}

@media (max-width: 899px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* CTA band */
.cta-band {
    padding-top: 0;
}

.cta-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto;
    gap: 32px;
    align-items: center;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand-soft), #fff 70%);
    border: 1px solid var(--line);
}

.cta-band .hero__actions {
    margin-top: 0;
}

@media (max-width: 899px) {
    .cta-band__inner {
        grid-template-columns: 1fr;
    }
}

/* --- Legal pages -------------------------------------------------------- */
.legal__inner {
    max-width: 860px;
}

.legal__head {
    margin-bottom: 40px;
}

.legal__title {
    font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    font-weight: 700;
    color: var(--ink);
}

.legal__subtitle {
    margin-top: 12px;
    color: var(--muted);
}

.legal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.legal__block {
    padding: 24px;
    background: var(--bg-tint);
    border-radius: var(--radius);
}

.legal__block h2,
.legal__summary h2 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 10px;
}

.legal__block p {
    margin-top: 10px;
    font-size: 0.96rem;
}

.legal__facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 0.96rem;
}

.legal__facts dt {
    color: var(--muted);
}

.legal__summary {
    padding: 26px 28px;
    margin-bottom: 40px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
}

.legal__summary .checklist {
    margin-top: 6px;
}

.legal__text {
    margin-top: 40px;
}

.legal__text h2 {
    margin-top: 36px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.legal__text p {
    color: var(--text);
    hyphens: auto;
}

.legal__updated {
    margin-top: 36px;
    font-size: 0.9rem;
    color: var(--faint);
}

/* --- 404 ---------------------------------------------------------------- */
.not-found__inner {
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: clamp(32px, 6vw, 80px);
}

.not-found__mark {
    margin-bottom: 28px;
}

.not-found .hero__actions {
    justify-content: center;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
    background: var(--bg-tint);
    border-top: 1px solid var(--line);
    padding-block: clamp(40px, 5vw, 64px) 28px;
    font-size: 0.93rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.site-footer__mark {
    margin-bottom: 18px;
}

.site-footer__tagline {
    color: var(--text);
    max-width: 34ch;
}

.site-footer__address {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer__heading {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}

.site-footer__col ul {
    display: grid;
    gap: 10px;
}

.site-footer__col a {
    color: var(--text);
}

.site-footer__col a:hover {
    color: var(--brand);
}

.osba-badge {
    display: inline-block;
    margin-top: 24px;
}

.osba-badge img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    transition: transform 0.25s var(--ease);
}

.osba-badge:hover img {
    transform: translateY(-2px);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 0.84rem;
}

@media (max-width: 899px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Scroll reveal ------------------------------------------------------ */
.has-js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.has-js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.has-js .reveal:nth-child(2) { transition-delay: 0.08s; }
.has-js .reveal:nth-child(3) { transition-delay: 0.16s; }
.has-js .reveal:nth-child(4) { transition-delay: 0.24s; }
.has-js .reveal:nth-child(5) { transition-delay: 0.32s; }
.has-js .reveal:nth-child(6) { transition-delay: 0.4s; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .has-js .reveal {
        opacity: 1;
        transform: none;
    }

    .lattice .pulse,
    .lattice .node__ring {
        display: none;
    }

    .lattice .link {
        stroke-dashoffset: 0;
    }

    .lattice .node,
    .lattice__bird,
    .orbit__bird,
    .has-js .is-visible .console__line,
    html:not(.has-js) .console__line {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        gap: 14px 28px;
    }

    .marquee__track li[aria-hidden="true"] {
        display: none;
    }

    .marquee__viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* --- Print -------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .hero__visual,
    .marquee,
    .nav-toggle {
        display: none;
    }

    .has-js .reveal {
        opacity: 1;
        transform: none;
    }
}
