/* ============================================================
   Code Forgetful — Engineering Lab visual system
   Concept: "the engineering room". Deep GitHub-night ground,
   electric-cyan signal, warm-amber spark, a blueprint grid that
   structures space, and a monospace voice that signs every label
   like a line of code. Editorial, asymmetric, oversized, alive.
   ============================================================ */

:root {
    /* palette */
    --bg: #0c1016; /* deep night */
    --bg2: #0a0d12; /* darker footer/well */
    --surface: #141a23; /* card surface */
    --surface2: #1b2330; /* elevated surface */
    --ink: #eaf0f8; /* primary text */
    --muted: #8c9cb5; /* secondary text */
    --faint: #5d6b82; /* tertiary / line labels */
    --primary: #22d3ee; /* electric cyan */
    --primary-ink: #03141a; /* text on cyan */
    --accent: #fbbf24; /* warm amber spark */
    --accent-ink: #1a1303;
    --violet: #a78bfa; /* tertiary accent for data */
    --border: #23304a; /* grid border */
    --border-soft: #1a2030;
    --danger: #ff5d73;
    --ok: #34d399;

    /* shape */
    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 8px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --shadow-cyan: 0 24px 70px -28px rgba(34, 211, 238, 0.45);
    --glow: 0 0 0 4px rgba(34, 211, 238, 0.18);

    /* metrics */
    --maxw: 1320px;
    --maxw-narrow: 920px;
    --pad: clamp(1.1rem, 4vw, 3rem);
    --gap: clamp(1.2rem, 2.4vw, 2rem);

    /* type */
    --h1: clamp(2.9rem, 6.2vw, 5rem);
    --h2: clamp(2.1rem, 4.3vw, 3.5rem);
    --h3: clamp(1.3rem, 1.8vw, 1.6rem);
    --lead: clamp(1.18rem, 1.6vw, 1.4rem);

    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

    /* blueprint grid as reusable background */
    --grid-line: rgba(120, 150, 190, 0.05);
    --blueprint:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}

/* ─── Reset & base ─────────────────────────────────────────── */
* {
    box-sizing: border-box;
}
* {
    min-width: 0;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.nav-lock {
    overflow: hidden;
}
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.5em;
}
h1 {
    font-size: var(--h1);
}
h2 {
    font-size: var(--h2);
}
h3 {
    font-size: var(--h3);
    letter-spacing: -0.015em;
}
p {
    margin: 0 0 1.1rem;
}
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    margin: 0;
    padding: 0;
}
::selection {
    background: var(--primary);
    color: var(--primary-ink);
}
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ─── Layout helpers ──────────────────────────────────────── */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
}
.container--narrow {
    max-width: var(--maxw-narrow);
}
.section {
    padding: clamp(4.5rem, 10vw, 9rem) 0;
    position: relative;
}
.section--alt {
    background: var(--surface);
    border-block: 1px solid var(--border-soft);
}
.section--dark {
    background: var(--surface2);
}
.section--well {
    background: var(--bg2);
}

/* blueprint grid overlay utility */
.bp {
    position: relative;
}
.bp::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--blueprint);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(
        ellipse 90% 70% at 50% 0%,
        #000 0%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse 90% 70% at 50% 0%,
        #000 0%,
        transparent 75%
    );
}
.bp > * {
    position: relative;
    z-index: 1;
}

/* ─── Section heading kit (signature: mono index + lead rule) ── */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: none;
    margin: 0 0 1.1rem;
}
.kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}
.kicker--center {
    justify-content: center;
}
.eyebrow {
    /* legacy alias kept working */
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-transform: none;
    margin: 0 0 1.1rem;
}
.eyebrow::before {
    content: "> ";
    color: var(--accent);
    font-weight: 700;
}
.eyebrow.center {
    justify-content: center;
    margin-inline: auto;
}
.section-index {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--faint);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    display: block;
}
.lead {
    font-size: var(--lead);
    color: var(--muted);
    max-width: 64ch;
    line-height: 1.65;
}
.center {
    text-align: center;
    margin-inline: auto;
}

/* oversized section title with accent slab */
.section h2.center {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 1.2rem;
    margin-inline: auto;
    max-width: 18ch;
}
.section h2.center::after {
    display: none;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-head);
    letter-spacing: -0.01em;
    transition:
        transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.2s,
        background 0.18s,
        border-color 0.18s,
        color 0.18s;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}
.btn--primary {
    background: var(--primary);
    color: var(--primary-ink);
}
.btn--primary:hover {
    box-shadow: var(--shadow-cyan);
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn--outline:hover {
    background: var(--primary);
    color: var(--primary-ink);
}
.btn--lg {
    padding: 1.1rem 2.3rem;
    font-size: 1.08rem;
}
.btn--accent {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn--accent:hover {
    box-shadow: 0 24px 70px -28px rgba(251, 191, 36, 0.55);
}
.btn .arr {
    transition: transform 0.2s;
}
.btn:hover .arr {
    transform: translateX(4px);
}

/* ─── Top utility bar ─────────────────────────────────────── */
.topbar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}
.topbar__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}
.topbar a {
    color: var(--muted);
}
.topbar a:hover {
    color: var(--primary);
}
.topbar__left {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    align-items: center;
}
.topbar__left span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    margin-right: 0.45rem;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
.topbar__right {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
@media (max-width: 760px) {
    .topbar {
        display: none;
    }
}

/* ─── Header / nav ────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border-soft);
    transition:
        border-color 0.25s,
        background 0.25s,
        box-shadow 0.25s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1rem 0;
}
.brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.32rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    flex-shrink: 0;
}
.brand:hover {
    color: var(--ink);
}
.brand__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--primary), #0ea5c4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px -6px rgba(34, 211, 238, 0.6);
    position: relative;
    overflow: hidden;
}
.brand__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    transition: transform 0.6s;
}
.brand:hover .brand__icon::after {
    transform: translateX(120%);
}
.brand__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--primary-ink);
}
.brand__name em {
    color: var(--primary);
    font-style: normal;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu > li > a:not(.btn) {
    position: relative;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.84rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    transition:
        color 0.15s,
        background 0.15s;
    display: block;
}
.nav-menu > li > a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.32rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.nav-menu > li > a:not(.btn):hover {
    color: var(--ink);
}
.nav-menu > li > a:not(.btn):hover::after {
    transform: scaleX(1);
}
.nav-menu .btn {
    padding: 0.6rem 1.3rem;
    color: var(--primary-ink);
    margin-left: 0.5rem;
    font-size: 0.92rem;
}
.nav-menu .btn:hover {
    color: var(--primary-ink);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: 0.25s;
    border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Scroll-reveal animation system ─────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal[data-d="1"] {
    transition-delay: 0.08s;
}
.reveal[data-d="2"] {
    transition-delay: 0.16s;
}
.reveal[data-d="3"] {
    transition-delay: 0.24s;
}
.reveal[data-d="4"] {
    transition-delay: 0.32s;
}
.reveal[data-d="5"] {
    transition-delay: 0.4s;
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

/* ─── HERO — editorial split + live terminal ─────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
    border-bottom: 1px solid var(--border-soft);
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.22;
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 80% at 80% 20%,
            rgba(34, 211, 238, 0.12),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(12, 16, 22, 0.7) 0%,
            rgba(12, 16, 22, 0.92) 70%,
            var(--bg) 100%
        );
}
.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--blueprint);
    background-size: 44px 44px;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hero__content {
    max-width: 42rem;
}
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.6rem;
}
.hero__tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse-dot 2s infinite;
}
.hero h1 {
    margin-bottom: 1.2rem;
}
.hero h1 .hl {
    color: var(--primary);
    position: relative;
}
@media (min-width: 560px) {
    .hero h1 .hl {
        white-space: nowrap;
    }
}
.hero h1 .hl::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.12em;
    background: rgba(34, 211, 238, 0.25);
    border-radius: 2px;
}
.hero .lead {
    font-size: var(--lead);
    color: var(--muted);
    margin-bottom: 0;
}
.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}
.hero__meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-soft);
}
.hero__meta div {
    font-family: var(--font-head);
}
.hero__meta strong {
    display: block;
    font-size: 1.8rem;
    color: var(--ink);
    line-height: 1;
}
.hero__meta span {
    font-size: 0.82rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

/* live terminal card */
.terminal {
    background: linear-gradient(180deg, #0e141d, #0b1018);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: floaty 7s ease-in-out infinite;
    font-family: var(--font-mono);
    font-size: 0.86rem;
}
.terminal__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-soft);
}
.terminal__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.terminal__dot--r {
    background: #ff5f57;
}
.terminal__dot--y {
    background: #febc2e;
}
.terminal__dot--g {
    background: #28c840;
}
.terminal__title {
    margin-left: 0.6rem;
    color: var(--faint);
    font-size: 0.78rem;
}
.terminal__body {
    padding: 1.2rem 1.3rem;
    line-height: 1.85;
}
.terminal__body .l {
    display: block;
    white-space: pre-wrap;
}
.t-mut {
    color: var(--faint);
}
.t-key {
    color: var(--violet);
}
.t-str {
    color: var(--accent);
}
.t-fn {
    color: var(--primary);
}
.t-ok {
    color: var(--ok);
}
.terminal__cursor {
    display: inline-block;
    width: 9px;
    height: 1.05em;
    background: var(--primary);
    vertical-align: -2px;
    animation: blink 1.1s step-end infinite;
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .terminal {
        max-width: 520px;
    }
}

/* ─── Logo / tech marquee ────────────────────────────────── */
.ticker {
    border-block: 1px solid var(--border-soft);
    background: var(--bg2);
    overflow: hidden;
    padding: 1.4rem 0;
    position: relative;
}
.ticker::before,
.ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg2), transparent);
}
.ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg2), transparent);
}
.ticker__track {
    display: flex;
    gap: 3.2rem;
    width: max-content;
    animation: scroll-x 32s linear infinite;
}
.ticker:hover .ticker__track {
    animation-play-state: paused;
}
.ticker__item {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}
.ticker__item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary);
    opacity: 0.55;
}
@keyframes scroll-x {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ─── Stats band ─────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border-soft);
}
.stat {
    padding: clamp(1.8rem, 3vw, 2.8rem) 1.6rem;
    text-align: center;
    background: var(--surface);
    position: relative;
}
.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat:hover::before {
    opacity: 1;
}
.stat__value {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.stat__value .suf {
    color: var(--accent);
}
.stat__line {
    display: none;
}
.stat__label {
    color: var(--muted);
    font-size: 0.92rem;
    font-family: var(--font-mono);
}

/* ─── Generic grids ──────────────────────────────────────── */
.grid {
    display: grid;
    gap: var(--gap);
}
.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ─── Service cards (bento, asymmetric) ──────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 0%),
        rgba(34, 211, 238, 0.08),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.card:hover::after {
    opacity: 1;
}
.card--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card--media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: saturate(1.05);
}
.card--media:hover img {
    transform: scale(1.06);
}
.card--media .card__body {
    padding: 1.8rem;
}
.card ul {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}
.card li {
    margin: 0.45rem 0;
    font-size: 0.92rem;
    padding-left: 1.4rem;
    position: relative;
    font-family: var(--font-mono);
}
.card li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
}

/* services bento layout */
#services .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.1rem;
}
#services .card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
#services .card:nth-child(6) {
    grid-column: span 2;
}
#services .card--media:nth-child(1) img {
    height: 100%;
    min-height: 230px;
}
@media (max-width: 980px) {
    #services .grid {
        grid-template-columns: 1fr 1fr;
    }
    #services .card:nth-child(1) {
        grid-column: span 2;
        grid-row: auto;
    }
    #services .card:nth-child(6) {
        grid-column: span 2;
    }
    #services .card--media:nth-child(1) img {
        height: 210px;
        min-height: 0;
    }
}
@media (max-width: 560px) {
    #services .grid {
        grid-template-columns: 1fr;
    }
    #services .card:nth-child(n) {
        grid-column: auto;
    }
}

/* ─── Editorial split ────────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.split--rev {
    grid-template-columns: 1.05fr 0.95fr;
}
.split--rev > .split__media {
    order: 2;
}
.split__media {
    position: relative;
}
.split img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.split__media::before {
    content: "";
    position: absolute;
    inset: -14px -14px auto auto;
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    opacity: 0.35;
    z-index: -1;
}
.split__badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow);
    font-family: var(--font-mono);
}
.split__badge strong {
    display: block;
    color: var(--primary);
    font-size: 1.6rem;
    font-family: var(--font-head);
}
.split__badge span {
    font-size: 0.78rem;
    color: var(--muted);
}
.split__stat {
    display: flex;
    gap: 2.4rem;
    margin-top: 2.2rem;
    flex-wrap: wrap;
}
.split__stat-item strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.3rem;
    color: var(--primary);
    line-height: 1;
}
.split__stat-item span {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: var(--font-mono);
}
@media (max-width: 820px) {
    .split,
    .split--rev {
        grid-template-columns: 1fr;
    }
    .split--rev > .split__media {
        order: 0;
    }
}

/* ─── Case result cards ──────────────────────────────────── */
.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.case-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s;
}
.case-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.case-card:hover::before {
    transform: scaleY(1);
}
.case-card__metric {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}
.case-card__kpi {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
}
.case-card__divider {
    width: 36px;
    height: 2px;
    background: var(--border);
    margin-bottom: 1.1rem;
}
.case-card .tag {
    margin-bottom: 0.6rem;
}
.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}
.case-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.65;
    flex: 1;
}

/* ─── Partners / badge strip ─────────────────────────────── */
.badge-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}
.badge-item {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.2rem;
    gap: 0.5rem;
    transition:
        background 0.25s,
        transform 0.25s;
}
.badge-item:hover {
    background: var(--surface2);
    transform: translateY(-3px);
}
.badge-item__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.badge-item strong {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--ink);
    font-weight: 700;
}
.badge-item span {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
}

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    align-items: start;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}
.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.pricing-card--featured {
    background: linear-gradient(180deg, var(--surface2), var(--surface));
    border-color: var(--primary);
    box-shadow: var(--shadow-cyan);
}
.pricing-card__badge {
    display: inline-block;
    background: var(--primary);
    color: var(--primary-ink);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.pricing-card__header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}
.pricing-card__price {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0.6rem 0;
    line-height: 1.1;
}
.pricing-card__price strong {
    color: var(--primary);
}
.pricing-card__desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.pricing-list li {
    color: var(--muted);
    font-size: 0.95rem;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.55;
}
.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
    border-radius: 1px;
}
.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
.pricing-note {
    text-align: center;
    margin-top: 2.2rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* ─── Team rows ──────────────────────────────────────────── */
.tmr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 2.4rem;
    max-width: 68rem;
    margin: 0 auto;
}
.tmr__p {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-soft);
    transition: padding-left 0.2s;
}
.tmr__p:hover {
    padding-left: 0.6rem;
}
.tmr__av {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        140deg,
        rgba(34, 211, 238, 0.2),
        rgba(34, 211, 238, 0.05)
    );
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
}
.tmr__p h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
}
.tmr__p p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-family: var(--font-mono);
}
@media (max-width: 640px) {
    .tmr {
        grid-template-columns: 1fr;
    }
}

/* team cards (about) */
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}
.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.team-avatar--teal {
    background: rgba(34, 211, 238, 0.15);
    color: var(--primary);
    border: 2px solid rgba(34, 211, 238, 0.35);
}
.team-avatar--blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 2px solid rgba(56, 189, 248, 0.35);
}
.team-avatar--violet {
    background: rgba(167, 139, 250, 0.15);
    color: var(--violet);
    border: 2px solid rgba(167, 139, 250, 0.35);
}
.team-avatar--amber {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
    border: 2px solid rgba(251, 191, 36, 0.35);
}
.team-avatar--green {
    background: rgba(52, 211, 153, 0.15);
    color: var(--ok);
    border: 2px solid rgba(52, 211, 153, 0.35);
}
.team-avatar--rose {
    background: rgba(255, 93, 115, 0.15);
    color: var(--danger);
    border: 2px solid rgba(255, 93, 115, 0.35);
}
.team-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.25rem;
    color: var(--ink);
}
.team-role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.8rem;
}
.team-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ─── Industry cards ─────────────────────────────────────── */
.industry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}
.industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.industry-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: transform 0.3s;
}
.industry-card:hover .industry-card__icon {
    transform: rotate(-6deg) scale(1.05);
}
.industry-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.industry-card p {
    color: var(--muted);
    font-size: 0.93rem;
    margin: 0;
    line-height: 1.65;
}

/* ─── Testimonials (TV2) ─────────────────────────────────── */
.tv2 {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.6rem;
    align-items: start;
}
.tv2__lead {
    background: linear-gradient(150deg, var(--primary), #0ea5c4);
    color: var(--primary-ink);
    padding: 2.4rem;
    border-radius: var(--radius);
    margin: 0;
    position: relative;
    overflow: hidden;
}
.tv2__lead::before {
    content: "\201C";
    position: absolute;
    top: -1.5rem;
    right: 1rem;
    font-family: var(--font-head);
    font-size: 9rem;
    opacity: 0.18;
    line-height: 1;
}
.tv2__lead p {
    font-size: 1.32rem;
    line-height: 1.5;
    margin: 0 0 1.2rem;
    font-weight: 500;
    position: relative;
}
.tv2__lead cite {
    font-weight: 700;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.tv2__col {
    display: grid;
    gap: 1.6rem;
}
.tv2__sm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    padding: 1.5rem 1.6rem;
    margin: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition:
        transform 0.2s,
        border-color 0.2s;
}
.tv2__sm:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}
.tv2__sm p {
    margin: 0 0 0.7rem;
    color: var(--ink);
    line-height: 1.6;
}
.tv2__sm cite {
    color: var(--muted);
    font-style: normal;
    font-weight: 600;
    font-size: 0.86rem;
    font-family: var(--font-mono);
}
@media (max-width: 820px) {
    .tv2 {
        grid-template-columns: 1fr;
    }
}

/* ─── Why-us (WV1) ───────────────────────────────────────── */
.wv1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
}
.wv1__item {
    display: flex;
    gap: 1.3rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--border);
    transition: padding-left 0.2s;
}
.wv1__item:hover {
    padding-left: 0.5rem;
}
.wv1__n {
    font-family: var(--font-mono);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    flex: 0 0 auto;
    line-height: 1.5;
}
.wv1__item h3 {
    margin: 0 0 0.4rem;
    color: var(--ink);
    font-size: 1.15rem;
}
.wv1__item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
@media (max-width: 760px) {
    .wv1 {
        grid-template-columns: 1fr;
    }
}

/* ─── Process (PV1) ──────────────────────────────────────── */
.pv1 {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.2rem;
    padding: 0;
    margin: 0;
}
.pv1__step {
    position: relative;
    padding-top: 4rem;
}
.pv1__n {
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--primary), #0ea5c4);
    color: var(--primary-ink);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.5);
}
.pv1__step::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 3rem;
    right: -2.2rem;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--border) 0,
        var(--border) 6px,
        transparent 6px,
        transparent 12px
    );
}
.pv1__step:last-child::before {
    display: none;
}
.pv1__step h3 {
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.pv1__step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
@media (max-width: 760px) {
    .pv1__step::before {
        display: none;
    }
    .pv1__step {
        padding-top: 0;
        padding-left: 4rem;
        min-height: 3rem;
    }
    .pv1__n {
        top: 0;
    }
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.6rem;
    margin-bottom: 1rem;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.faq details:hover {
    border-color: var(--primary);
}
.faq details[open] {
    background: var(--surface2);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.6rem;
    line-height: 1;
    font-family: var(--font-head);
    transition: transform 0.25s;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    margin-top: 1rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ─── CTA banner ─────────────────────────────────────────── */
.cta-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    padding: clamp(3rem, 7vw, 6rem);
    text-align: center;
    border: 1px solid var(--border);
    isolation: isolate;
}
.cta-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
}
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 80% at 50% 0%,
            rgba(34, 211, 238, 0.2),
            transparent 60%
        ),
        linear-gradient(160deg, rgba(8, 12, 18, 0.88), rgba(10, 14, 20, 0.96));
    z-index: -1;
}
.cta-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--blueprint);
    background-size: 40px 40px;
    opacity: 0.5;
}
.cta-banner h2 {
    color: #fff;
    max-width: 20ch;
    margin-inline: auto;
}
.cta-banner p {
    color: #bcd0e6;
    max-width: 54ch;
    margin-inline: auto;
    font-size: var(--lead);
}
.cta-banner .eyebrow {
    color: var(--primary);
    justify-content: center;
}
.cta-banner__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ─── Page hero (inner pages) ────────────────────────────── */
.page-hero {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--blueprint);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(
        ellipse 80% 100% at 20% 0%,
        #000,
        transparent 70%
    );
    mask-image: radial-gradient(
        ellipse 80% 100% at 20% 0%,
        #000,
        transparent 70%
    );
}
.page-hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(
        ellipse,
        rgba(34, 211, 238, 0.1),
        transparent 65%
    );
    z-index: -1;
}
.page-hero h1 {
    color: var(--ink);
    max-width: 18ch;
    margin-bottom: 1rem;
}
.page-hero p {
    color: var(--muted);
    max-width: 62ch;
    font-size: var(--lead);
}
.page-hero__crumb {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--faint);
    margin-bottom: 1.2rem;
}
.page-hero__crumb a {
    color: var(--faint);
}
.page-hero__crumb a:hover {
    color: var(--primary);
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(1.8rem, 4vw, 3.5rem);
    align-items: start;
}
.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 3vw, 2.6rem);
}
.field {
    margin-bottom: 1.2rem;
}
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-family: var(--font-mono);
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--bg2);
    color: var(--ink);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field textarea {
    resize: vertical;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
@media (max-width: 560px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}
.check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--muted);
}
.check input {
    margin-top: 0.25rem;
    accent-color: var(--primary);
}
.check a {
    color: var(--primary);
}
.form-note {
    margin-top: 0.9rem;
    font-size: 0.92rem;
    min-height: 1.3em;
    font-family: var(--font-mono);
}
.form-note.error {
    color: var(--danger);
}
.form-note.ok {
    color: var(--ok);
}
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.info-list li:first-child {
    padding-top: 0;
}
.info-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.info-list .ic {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    display: grid;
    place-items: center;
    color: var(--primary);
}
.info-list strong {
    display: block;
    font-family: var(--font-mono);
    color: var(--faint);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}
.info-list a {
    color: var(--ink);
}
.info-list a:hover {
    color: var(--primary);
}
.map-box {
    height: 220px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-image:
        var(--blueprint), linear-gradient(180deg, var(--surface), var(--bg2));
    background-size:
        30px 30px,
        100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    flex-direction: column;
    gap: 0.5rem;
}
.map-box svg {
    opacity: 0.5;
}
@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Blog ───────────────────────────────────────────────── */
.blog-featured {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    transition:
        border-color 0.25s,
        box-shadow 0.25s;
}
.blog-featured:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-cyan);
}
.blog-featured__media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
}
.blog-featured__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.blog-featured:hover .blog-featured__media img {
    transform: scale(1.05);
}
.blog-featured__body {
    padding: clamp(2rem, 4vw, 3.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured__body h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}
.blog-featured__body p {
    color: var(--muted);
    line-height: 1.7;
}
@media (max-width: 820px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }
    .blog-featured__media {
        min-height: 240px;
    }
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: var(--gap);
}
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}
.post-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.post-card__media {
    height: 200px;
    overflow: hidden;
}
.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.post-card:hover .post-card__media img {
    transform: scale(1.06);
}
.post-card__body {
    padding: 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}
.post-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
}
.post-topic {
    color: var(--primary);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
}
.post-card h3 {
    font-size: 1.18rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
}
.post-card p {
    color: var(--muted);
    font-size: 0.93rem;
    margin: 0;
    line-height: 1.65;
    flex: 1;
}
.post-card__link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}
.post-card__link:hover {
    gap: 0.75rem;
}

/* ─── Support page ───────────────────────────────────────── */
.support-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}
.tier-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.tier-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.tier-card--featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--surface2), var(--surface));
}
.tier-card__name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}
.tier-card__sla {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.tier-card__sla span {
    font-size: 1rem;
    color: var(--muted);
    font-family: var(--font-mono);
}
.tier-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}
.tier-card li {
    color: var(--muted);
    font-size: 0.94rem;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.55;
}
.tier-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap);
}
.channel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}
.channel-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.channel-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.2rem;
}
.channel-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.channel-card p {
    color: var(--muted);
    font-size: 0.93rem;
    margin: 0 0 0.8rem;
    line-height: 1.6;
}
.channel-card a {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 600;
}

.status-board {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid var(--border-soft);
}
.status-row:last-child {
    border-bottom: 0;
}
.status-row span:first-child {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--ink);
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ok);
}
.status-pill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

/* ─── Values / guarantee grids ───────────────────────────── */
.values-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    border-top: 3px solid var(--primary);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}
.value-card__n {
    font-family: var(--font-mono);
    color: var(--faint);
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
}
.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}
.value-card p {
    color: var(--muted);
    font-size: 0.94rem;
    margin: 0;
    line-height: 1.65;
}

/* ─── Timeline ───────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: clamp(2rem, 6vw, 3.5rem);
}
.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--border));
}
.timeline-item {
    position: relative;
    margin-bottom: 2.6rem;
    padding-left: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.timeline-body h3 {
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.timeline-body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ─── Legal pages ────────────────────────────────────────── */
.legal {
    max-width: 820px;
    margin: 0 auto;
}
.legal h2 {
    margin-top: 2.4rem;
    color: var(--ink);
}
.legal h3 {
    margin-top: 1.6rem;
    color: var(--ink);
}
.legal p,
.legal li {
    color: var(--muted);
}
.legal ul {
    padding-left: 1.3rem;
}
.legal li {
    margin: 0.4rem 0;
}
.legal .updated {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.2rem;
    background: var(--surface);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

/* ─── Footer (enriched) ──────────────────────────────────── */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.8rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
    opacity: 0.5;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
}
.site-footer .brand {
    color: var(--ink);
    margin-bottom: 1rem;
}
.site-footer .brand:hover {
    color: var(--ink);
}
.footer-grid p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-grid h4 {
    color: var(--faint);
    font-family: var(--font-mono);
    margin: 0 0 1.1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-grid li {
    margin: 0.55rem 0;
}
.site-footer a {
    color: var(--muted);
    transition:
        color 0.15s,
        padding-left 0.15s;
}
.site-footer ul a:hover {
    color: var(--primary);
    padding-left: 0.3rem;
}
.footer-news {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.footer-news input {
    flex: 1;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
}
.footer-news input:focus {
    outline: none;
    border-color: var(--primary);
}
.footer-news button {
    flex-shrink: 0;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--primary-ink);
    border: 0;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.footer-news button:hover {
    box-shadow: var(--shadow-cyan);
}
.footer-social {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.4rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: all 0.2s;
}
.footer-social a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    margin-top: 3rem;
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
}
.footer-bottom a {
    color: var(--muted);
}
.footer-bottom a:hover {
    color: var(--primary);
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid > :first-child {
        grid-column: 1/-1;
    }
}
@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Cookie banner ──────────────────────────────────────── */
.cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    background: var(--surface2);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.6rem;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 820px;
    margin: 0 auto;
}
.cookie p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}
.cookie a {
    color: var(--primary);
}
.cookie__btns {
    display: flex;
    gap: 0.7rem;
    flex-shrink: 0;
}
.cookie .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ─── Responsive nav ─────────────────────────────────────── */
@media (max-width: 980px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        inset: 0 0 auto 0;
        top: var(--nav-h, 64px);
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 1.4rem var(--pad);
        transform: translateY(-130%);
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
        max-height: calc(100vh - var(--nav-h, 64px));
        overflow: auto;
    }
    .nav-menu.is-open {
        transform: translateY(0);
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu > li > a:not(.btn) {
        padding: 0.85rem 0.5rem;
        font-size: 0.95rem;
    }
    .nav-menu > li > a:not(.btn)::after {
        display: none;
    }
    .nav-menu .btn {
        width: 100%;
        justify-content: center;
        margin: 0.6rem 0 0;
        color: var(--primary-ink) !important;
    }
}
@media (max-width: 520px) {
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__cta .btn {
        justify-content: center;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
    }
}
@media (max-width: 380px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

/* ─── Mobile overflow safeguards ─────────────────────────── */
@media (max-width: 820px) {
    .split__badge {
        left: 1rem;
        bottom: 1rem;
    }
    .split__media::before {
        right: -6px;
        top: -6px;
        width: 80px;
        height: 80px;
    }
}
@media (max-width: 560px) {
    .container {
        padding: 0 1.1rem;
    }
    .terminal {
        max-width: 100%;
    }
    .split__media::before {
        display: none;
    }
    .tv2__lead::before {
        display: none;
    }
    .startbox__cta .btn,
    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* consent checkbox normalization */
.field.check {
    display: flex !important;
    gap: 0.7rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}
.field.check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
    margin: 0.18rem 0 0 0;
    padding: 0;
}
.field.check label {
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    flex: 1 1 auto;
    font-family: var(--font-body);
}
[hidden] {
    display: none !important;
}

/* ─── FAQ as open Q&A grid (no accordion) ────────────────── */
.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}
.qa-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    border-top: 3px solid var(--primary);
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.qa-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 100% 0%,
        rgba(34, 211, 238, 0.07),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.qa-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
    border-color: var(--primary);
}
.qa-item:hover::after {
    opacity: 1;
}
.qa-item__q {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.8rem;
}
.qa-item__n {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    flex: 0 0 auto;
}
.qa-item h3 {
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}
.qa-item p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}
.qa-item a {
    color: var(--primary);
}
@media (max-width: 760px) {
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Closing "let's build" contact split ────────────────── */
.startbox {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--surface2), var(--surface));
}
.startbox__main {
    padding: clamp(2.2rem, 4vw, 3.6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    isolation: isolate;
}
.startbox__main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--blueprint);
    background-size: 40px 40px;
    opacity: 0.6;
    -webkit-mask-image: radial-gradient(
        ellipse 90% 80% at 0% 0%,
        #000,
        transparent 70%
    );
    mask-image: radial-gradient(
        ellipse 90% 80% at 0% 0%,
        #000,
        transparent 70%
    );
}
.startbox__main h2 {
    margin-bottom: 1rem;
    max-width: 16ch;
}
.startbox__main p {
    color: var(--muted);
    max-width: 46ch;
    font-size: var(--lead);
    margin-bottom: 1.8rem;
}
.startbox__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.startbox__side {
    background: var(--bg2);
    border-left: 1px solid var(--border);
    padding: clamp(2rem, 3.5vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.startbox__side h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.6rem;
}
.next-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
.next-steps li {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}
.next-steps__n {
    flex: 0 0 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 700;
}
.next-steps strong {
    display: block;
    color: var(--ink);
    font-size: 1.02rem;
    margin-bottom: 0.15rem;
}
.next-steps span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}
@media (max-width: 820px) {
    .startbox {
        grid-template-columns: 1fr;
    }
    .startbox__side {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}
