/* nLine website styles. No build step: plain CSS with custom properties. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
    --red: #ee3b3b;
    --red-dark: #d42c2c;
    --red-soft: #fdeeee;
    --red-glow: rgba(238, 59, 59, 0.45);

    --ink-950: #06080d;
    --ink-900: #0a0d14;
    --ink-800: #11151f;
    --ink-700: #1a1f2b;
    --ink-600: #283041;

    --gray-50: #f6f7f9;
    --gray-100: #eef0f3;
    --gray-200: #e2e5ea;
    --gray-300: #cbd0d8;
    --gray-400: #9aa1ad;
    --gray-500: #6b7280;
    --gray-600: #4b5260;
    --gray-700: #343a46;
    --text: #0e121b;

    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, 0.68);
    --on-dark-subtle: rgba(255, 255, 255, 0.45);
    --line-dark: rgba(255, 255, 255, 0.09);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(14, 18, 27, 0.06);
    --shadow: 0 10px 30px -12px rgba(14, 18, 27, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(14, 18, 27, 0.28);

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 32px);
    --header-h: 72px;
    --section-y: clamp(72px, 9vw, 128px);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    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.6;
    color: var(--text);
    background: #fff;
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.35rem, 5.2vw, 4rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

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

::selection {
    background: var(--red);
    color: #fff;
}

.sr-only {
    position: absolute;
    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 16px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.icon-sprite {
    display: none;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon .fill,
.icon-sprite .fill {
    fill: currentColor;
    stroke: none;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* ---------- Layout ---------- */

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

.container-narrow {
    max-width: calc(820px + 2 * var(--gutter));
}

.section {
    padding-block: var(--section-y);
}

.section:not(.section--muted, .section--dark) + .section:not(.section--muted, .section--dark) {
    padding-top: 0;
}

.section--muted {
    background: var(--gray-50);
}

.section--dark {
    background: var(--ink-900);
    color: var(--on-dark);
}

.section--dark + .section--dark,
.section--muted + .section--muted {
    padding-top: 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head > :last-child {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}

/* The dash has the slanted end of the red bar in the nLine logo. */
.eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.section-head--center .eyebrow::after {
    content: "";
    width: 26px;
    height: 3px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 3px 100%);
}

.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--gray-600);
}

.section--dark .lead,
.hero .lead,
.page-hero .lead {
    color: var(--on-dark-muted);
}

.muted {
    color: var(--gray-500);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.45rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
        box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn .icon {
    transition: transform 0.2s var(--ease);
}

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

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 10px 28px -10px var(--red-glow);
}

.btn-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 14px 32px -10px var(--red-glow);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
    border-color: var(--gray-300);
    color: var(--text);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--text);
}

.btn-light {
    background: #fff;
    color: var(--ink-900);
}

.btn-light:hover {
    background: var(--gray-100);
}

.btn-sm {
    padding: 0.6rem 1.05rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 1.7rem;
    font-size: 1.025rem;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--red);
}

.link-arrow .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon,
a:hover > .link-arrow .icon {
    transform: translateX(4px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(10, 13, 20, 0.82);
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

/* The link covers the full header height and some space around the logo, so
   it is easy to hit. The negative margin keeps the logo in place. */
.brand {
    display: flex;
    flex: none;
    align-items: center;
    align-self: stretch;
    margin: 0 -12px;
    padding: 0 12px;
}

.brand img {
    width: 136px;
    height: auto;
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--on-dark-muted);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-active,
.has-dropdown:hover > .nav-link,
.has-dropdown.is-open > .nav-link {
    color: #fff;
}

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -15px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.nav-link .icon {
    transition: transform 0.2s var(--ease);
}

.has-dropdown.is-open > .nav-link .icon {
    transform: rotate(180deg);
}

/* Full-width panel below the header (desktop). It is positioned against the
   sticky header, so the dropdown's list item must not be positioned. */
.nav-item.has-dropdown {
    position: static;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-block: 32px 36px;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

/* Invisible bridge so the panel stays open while moving the pointer down. */
.dropdown::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.has-dropdown.is-open .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (hover: hover) and (min-width: 961px) {
    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

.dropdown-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px;
    gap: 32px;
}

.dropdown-label {
    margin: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-dark-subtle);
}

.dropdown-links {
    display: grid;
    gap: 4px;
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 12px;
    transition: background-color 0.15s;
}

.dropdown-link:hover,
.dropdown-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 11px;
    background: rgba(238, 59, 59, 0.12);
    color: var(--red);
}

.dropdown-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
}

.dropdown-desc {
    display: block;
    margin-top: 2px;
    font-size: 0.88rem;
    color: var(--on-dark-subtle);
}

.dropdown-promo {
    align-self: start;
    padding: 24px;
    background: radial-gradient(120% 120% at 100% 0%, rgba(238, 59, 59, 0.22), transparent 60%), var(--ink-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.dropdown-promo-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.dropdown-promo p:not(.dropdown-promo-title) {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--on-dark-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-dark-muted);
    transition: color 0.15s;
}

.lang-switch:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #fff;
    cursor: pointer;
}

.nav-toggle .icon {
    width: 26px;
    height: 26px;
}

.nav-toggle .icon-close,
.site-header.is-open .nav-toggle .icon-open {
    display: none;
}

.site-header.is-open .nav-toggle .icon-close {
    display: block;
}

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

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
        padding: 24px var(--gutter) 40px;
        background: var(--ink-900);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    }

    .site-header.is-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* backdrop-filter would turn the header into the containing block of the fixed menu. */
    .site-header.is-open {
        background: var(--ink-900);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item {
        border-bottom: 1px solid var(--line-dark);
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 16px 4px;
        font-size: 1.1rem;
    }

    /* Chevron centered under the close icon of the menu toggle (8px padding + 13px half icon). */
    .has-dropdown > .nav-link {
        padding-right: 11px;
    }

    .has-dropdown > .nav-link .icon {
        width: 20px;
        height: 20px;
    }

    .nav-link[aria-current="page"]::after,
    .nav-link.is-active::after {
        display: none;
    }

    .nav-link[aria-current="page"],
    .nav-link.is-active {
        color: var(--red);
    }

    .dropdown {
        position: static;
        display: none;
        margin-bottom: 12px;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-inner {
        display: block;
        padding: 0;
    }

    .dropdown-group + .dropdown-group {
        margin-top: 12px;
    }

    .dropdown-label {
        margin: 8px 0 4px 12px;
    }

    .dropdown-promo {
        display: none;
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }

    .nav-actions {
        justify-content: space-between;
    }

    .nav-actions .btn {
        flex: 1;
        padding-block: 0.9rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(820px, calc(100svh - var(--header-h)));
    padding-block: clamp(80px, 10vw, 140px);
    overflow: hidden;
    background: var(--ink-900);
    color: var(--on-dark);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--ink-900) 0%, rgba(10, 13, 20, 0.92) 30%, rgba(10, 13, 20, 0.35) 62%, rgba(10, 13, 20, 0) 80%),
        linear-gradient(0deg, var(--ink-900) 0%, rgba(10, 13, 20, 0) 30%);
}

.hero::after {
    content: "";
    position: absolute;
    left: -10%;
    top: -30%;
    z-index: -1;
    width: 55%;
    height: 90%;
    background: radial-gradient(closest-side, rgba(238, 59, 59, 0.14), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 640px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 em,
.page-hero h1 em {
    font-style: normal;
    color: var(--red);
}

/* Keeps hyphenated words in headings on one line, e.g. "KI-Bildverarbeitung". */

.hero .lead {
    max-width: 560px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: clamp(56px, 7vw, 88px);
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
}

.stat-value {
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-value small {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0;
}

.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--on-dark-subtle);
}

@media (max-width: 960px) {
    .hero {
        min-height: 0;
        align-items: flex-end;
        padding-top: 52vw;
    }

    .hero::before {
        background: linear-gradient(0deg, var(--ink-900) 35%, rgba(10, 13, 20, 0.3) 70%, rgba(10, 13, 20, 0.1) 100%);
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Simple hero for secondary pages. */
.page-hero {
    position: relative;
    padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 88px);
    overflow: hidden;
    background: var(--ink-900);
    color: var(--on-dark);
    isolation: isolate;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -60%;
    z-index: -1;
    width: 60%;
    height: 180%;
    background: radial-gradient(closest-side, rgba(238, 59, 59, 0.13), transparent);
}

.page-hero .container > * {
    max-width: 760px;
}

.page-hero .lead {
    margin-bottom: 0;
}

.page-hero--compact h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--on-dark-subtle);
}

.breadcrumb a:hover {
    color: #fff;
}

/* ---------- Cards ---------- */

.card {
    position: relative;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    margin: 0;
    color: var(--gray-600);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--red);
}

.card-icon .icon {
    width: 24px;
    height: 24px;
}

.section--dark .card {
    background: var(--ink-800);
    border-color: var(--line-dark);
}

.section--dark .card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}

.section--dark .card p {
    color: var(--on-dark-muted);
}

.section--dark .card-icon {
    background: rgba(238, 59, 59, 0.12);
}

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.section--dark .badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--on-dark-muted);
}

/* Image cards (e.g. the capabilities on the products page). */
.media-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.media-card-img {
    aspect-ratio: 2 / 1;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.media-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card {
    position: relative;
}

.media-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-900);
}

.media-card-body {
    padding: 24px 26px 28px;
}

.media-card-body h3 {
    margin-bottom: 8px;
}

.media-card-body p {
    margin: 0;
    color: var(--gray-600);
}

.section--dark .media-card {
    background: var(--ink-800);
    border-color: var(--line-dark);
}

.section--dark .media-card-img {
    background: var(--ink-950);
    border-color: var(--line-dark);
}

.section--dark .media-card-body p {
    color: var(--on-dark-muted);
}

.product-card-kicker {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
}

/* Compact links to the other application pages. */
.app-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.app-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 22px 24px;
    background: var(--ink-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    color: var(--on-dark);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.app-link:hover {
    transform: translateY(-3px);
    border-color: rgba(238, 59, 59, 0.45);
}

.app-link-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(238, 59, 59, 0.12);
    color: var(--red);
}

.app-link-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.app-link-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.app-link-text {
    font-size: 0.92rem;
    color: var(--on-dark-muted);
}

.app-link-arrow {
    flex: none;
    margin-top: 12px;
    color: var(--red);
    transition: transform 0.3s var(--ease);
}

.app-link:hover .app-link-arrow {
    transform: translateX(3px);
}

@media (max-width: 960px) {
    .app-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Split sections ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.split--reverse > :first-child {
    order: 2;
}

.split h2 {
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .split{
        grid-template-columns: minmax(0, 1fr);
    }

    .split--reverse > :first-child {
        order: 0;
    }
}

.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.media-frame img {
    width: 100%;
}

.section--dark .media-frame {
    background: var(--ink-800);
    border-color: var(--line-dark);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

/* ---------- Lists ---------- */

.checklist {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.checklist li {
    position: relative;
    padding-left: 38px;
    color: var(--gray-600);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red-soft) center / 14px no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee3b3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.checklist strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-weight: 600;
}

.section--dark .checklist li {
    color: var(--on-dark-muted);
}

.section--dark .checklist li::before {
    background-color: rgba(238, 59, 59, 0.15);
}

.section--dark .checklist strong {
    color: #fff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    padding: 5px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    background: #fff;
}

.section--dark .tag {
    border-color: var(--line-dark);
    background: rgba(255, 255, 255, 0.03);
    color: var(--on-dark-muted);
}

/* Flex instead of grid so the last row stretches and leaves no empty cells. */
.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    overflow: hidden;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.spec {
    flex: 1 1 240px;
    display: flex;
    gap: 18px;
    padding: 28px;
    background: #fff;
}

.spec .card-icon {
    flex: none;
    margin: 0;
    width: 44px;
    height: 44px;
}

.spec h3 {
    margin: 2px 0 6px;
    font-size: 1.05rem;
}

.spec p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.section--dark .specs {
    background: var(--line-dark);
    border-color: var(--line-dark);
}

.section--dark .spec {
    background: var(--ink-800);
}

.section--dark .spec p {
    color: var(--on-dark-muted);
}

/* ---------- Process steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 72px;
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink-900);
    border: 1px solid rgba(238, 59, 59, 0.55);
    box-shadow: 0 0 0 6px rgba(238, 59, 59, 0.08);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.step::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 64px;
    right: -12px;
    height: 1px;
    background: linear-gradient(90deg, rgba(238, 59, 59, 0.55), var(--line-dark));
}

.step:last-child::after {
    display: none;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--on-dark-muted);
}

@media (max-width: 1024px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .step {
        padding: 0 0 36px 80px;
        min-height: 52px;
    }

    .step::after {
        top: 64px;
        left: 26px;
        right: auto;
        bottom: 8px;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, rgba(238, 59, 59, 0.55), var(--line-dark));
    }

    .step h3 {
        padding-top: 12px;
    }
}

/* ---------- Industries ---------- */

.industries {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1024px) {
    .industries {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

/* ---------- Logos ---------- */

.logo-tile {
    display: grid;
    place-items: center;
    aspect-ratio: 300 / 156;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.25s, opacity 0.25s;
}

.logo-tile:hover img {
    filter: none;
    opacity: 1;
}

/* All partners in one panel. Rows are centered, so an
   incomplete last row leaves no gap. */
.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    padding: clamp(24px, 4vw, 48px);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.logo-cloud .logo-tile {
    flex: 0 0 190px;
    padding: 12px;
    border: 0;
}

@media (max-width: 680px) {
    .logo-cloud .logo-tile {
        flex-basis: calc(50% - 9px);
    }
}

/* ---------- Use cases ---------- */

.usecases {
    display: grid;
    gap: clamp(56px, 8vw, 104px);
}

.usecase {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
}

.usecase:nth-child(even) > .usecase-media {
    order: 2;
}

/* Most use case images are cut-outs made for light backgrounds. */
.usecase-media {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
}

.usecase-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.usecase-kicker {
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--red);
}

.usecase h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin-bottom: 4px;
}

.usecase .checklist {
    margin-top: 20px;
}

.usecase .btn {
    margin-top: 32px;
}

@media (max-width: 900px) {
    .usecase {
        grid-template-columns: minmax(0, 1fr);
    }

    .usecase:nth-child(even) > .usecase-media {
        order: 0;
    }
}

/* ---------- CTA ---------- */

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(36px, 5vw, 64px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink-900);
    color: #fff;
    isolation: isolate;
}

.cta-band::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -80%;
    z-index: -1;
    width: 70%;
    height: 260%;
    background: radial-gradient(closest-side, rgba(238, 59, 59, 0.35), transparent);
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.cta-band h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    margin-bottom: 10px;
    max-width: 640px;
}

.cta-band p {
    margin: 0;
    color: var(--on-dark-muted);
    max-width: 560px;
}

.section--dark .cta-band {
    background: var(--ink-800);
    border: 1px solid var(--line-dark);
}

@media (max-width: 800px) {
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Prose (legal pages) ---------- */

.prose {
    max-width: 780px;
    color: var(--gray-700);
    line-height: 1.75;
    overflow-wrap: break-word;
}

.prose h2 {
    margin: 2.2em 0 0.6em;
    font-size: 1.6rem;
    color: var(--text);
}

.prose h3 {
    margin: 2em 0 0.5em;
    font-size: 1.2rem;
    color: var(--text);
}

.prose > :first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 0.9em;
}

.prose ul {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
    list-style: disc;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.prose strong {
    color: var(--text);
}

/* ---------- Location map (about page) ---------- */

.map-card {
    margin: 0;
    overflow: hidden;
    background: radial-gradient(120% 100% at 30% 20%, #1a2030, var(--ink-900));
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.map-card svg {
    display: block;
    width: 100%;
    height: auto;
}

.map-card figcaption {
    padding: 14px 22px 18px;
    font-size: 0.85rem;
    color: var(--on-dark-muted);
}

.map-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: map-pulse 2.4s ease-out infinite;
}

@keyframes map-pulse {
    from {
        opacity: 0.6;
        transform: scale(0.6);
    }
    to {
        opacity: 0;
        transform: scale(3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-pulse {
        animation: none;
        opacity: 0;
    }
}

/* ---------- Page hero extras ---------- */

.page-hero .actions {
    margin-top: 32px;
}

.section-more {
    margin: 32px 0 0;
}

.page-hero--split .container > * {
    max-width: none;
}

.card p a,
.card p a:visited,
.checklist li a,
.checklist li a:visited {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- FAQ ---------- */

.faq-group + .faq-group {
    margin-top: 40px;
}

.faq-group-title {
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.faq-item + .faq-item {
    margin-top: 10px;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .icon {
    flex: none;
    color: var(--red);
    transition: transform 0.2s var(--ease);
}

.faq-item[open] summary .icon {
    transform: rotate(180deg);
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--gray-600);
}

/* ---------- Blog ---------- */

.post-card {
    color: inherit;
}

/* Covers are shown in the 1.91:1 format of LinkedIn posts. */
.post-card .media-card-img {
    aspect-ratio: 1.91 / 1;
    overflow: hidden;
}

.post-card .media-card-img--wide {
    background: var(--ink-900);
}

.post-card .media-card-img--wide img {
    object-fit: contain;
}

.post-card h2 {
    margin: 6px 0 10px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.post-card p {
    font-size: 0.95rem;
}

.post-card-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.post-date {
    margin: 16px 0 0;
    color: var(--on-dark-muted);
}

.post-body figure {
    margin: 1.6em 0;
}

.post-body > figure:first-child {
    margin-top: 0;
}

.post-body blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--red);
    color: var(--gray-700);
}

.post-body blockquote footer {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
}

.post-body figure img,
.post-body figure video {
    border-radius: var(--radius);
}

.post-body figure video {
    width: 100%;
    height: auto;
    background: var(--ink-900);
}

.post-back {
    max-width: 780px;
    margin: 48px 0 0;
}

.link-arrow--back .icon {
    transform: rotate(180deg);
}

.link-arrow--back:hover .icon {
    transform: rotate(180deg) translateX(4px);
}

.notice {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    padding: 18px 20px;
    border: 1px solid #f6cccc;
    border-radius: var(--radius);
    background: var(--red-soft);
    color: var(--gray-700);
    font-size: 0.95rem;
}

.notice .icon {
    margin-top: 2px;
    color: var(--red);
}

.notice p {
    margin: 0;
}

/* ---------- Contact ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.form-card {
    padding: clamp(28px, 4vw, 44px);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field--full {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.field .req {
    color: var(--red);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    min-height: 170px;
    resize: vertical;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--gray-400);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(238, 59, 59, 0.14);
}

.field-error {
    display: none;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--red-dark);
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--red);
}

.field.has-error .field-error {
    display: block;
}

.field .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--gray-600);
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    flex: none;
    accent-color: var(--red);
}

.checkbox a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.form-footer .muted {
    margin: 0;
    font-size: 0.85rem;
}

.form-noscript {
    margin: 24px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
    font-size: 0.95rem;
}

/* Honeypot field, hidden from humans. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: none;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.form-status.is-visible,
#form-error:target {
    display: flex;
}

.form-status--error {
    background: var(--red-soft);
    border: 1px solid #f6cccc;
    color: #8f1f1f;
}

.form-status .icon {
    margin-top: 2px;
}

.form-status p {
    margin: 0;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 12px;
}

.form-success .card-icon {
    margin-inline: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfbf1;
    color: #1f8a4c;
}

.form-success .card-icon .icon {
    width: 30px;
    height: 30px;
}

.form-card.is-sent form {
    display: none;
}

.form-card.is-sent .form-success {
    display: block;
}

/* ---------- Guided inquiry (enquiry.html) ---------- */

.enquiry-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 14px 34px -10px var(--red-glow), var(--shadow-lg);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.enquiry-launcher:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.enquiry-launcher:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.enquiry-launcher[hidden],
.enquiry [hidden],
body.nav-open .enquiry-launcher {
    display: none !important;
}

.enquiry {
    position: fixed;
    inset: auto 24px 24px auto;
    z-index: 45;
    width: min(420px, calc(100vw - 32px));
    max-width: none;
    height: min(620px, calc(100svh - var(--header-h) - 48px));
    max-height: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.enquiry[open] {
    display: flex;
    flex-direction: column;
}

.enquiry::backdrop {
    background: rgba(6, 8, 13, 0.6);
}

.enquiry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 16px;
    background: var(--ink-900);
    color: #fff;
}

.enquiry-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.enquiry-progress {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.enquiry-progress span {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    transition: background-color 0.3s var(--ease);
}

.enquiry-progress span.is-done {
    background: var(--red);
}

.enquiry-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin: -4px -6px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.enquiry-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.enquiry-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.enquiry-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.enquiry-step,
.enquiry-success {
    padding: 20px;
}

.enquiry-bubble {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 14px 14px 14px 4px;
    background: var(--gray-100);
    font-size: 0.95rem;
    line-height: 1.55;
}

.enquiry-q {
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.enquiry-q legend {
    margin-bottom: 4px;
    padding: 0;
    font-weight: 600;
}

.enquiry-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.enquiry-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.93rem;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.enquiry-choice:hover {
    border-color: var(--gray-400);
}

.enquiry-choice:has(input:checked) {
    border-color: var(--red);
    background: var(--red-soft);
}

.enquiry-choice input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--red);
}

.enquiry .field {
    margin-bottom: 16px;
}

.enquiry .field textarea {
    min-height: 140px;
}

.enquiry .form-status {
    margin-bottom: 16px;
}

.enquiry-success {
    text-align: center;
    padding-top: 48px;
}

.enquiry-success:focus {
    outline: none;
}

.enquiry-success .card-icon {
    margin: 0 auto 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfbf1;
    color: #1f8a4c;
}

.enquiry-success .card-icon .icon {
    width: 30px;
    height: 30px;
}

.enquiry-success .enquiry-title {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.enquiry-success p:last-child {
    margin: 0;
    color: var(--gray-600);
}

.enquiry-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    background: #fff;
}

.enquiry-nav [data-enquiry-back] {
    margin-right: auto;
}

@media (max-width: 600px) {
    .enquiry-launcher {
        right: 16px;
        bottom: 16px;
        padding: 0.75rem 1.05rem;
        font-size: 0.9rem;
    }

    .enquiry {
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}

@media print {
    .enquiry-launcher,
    .enquiry {
        display: none !important;
    }
}

.contact-info {
    padding: clamp(28px, 4vw, 40px);
    background: var(--ink-900);
    border-radius: var(--radius-lg);
    color: var(--on-dark);
}

.contact-info h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line-dark);
}

.contact-item .card-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    background: rgba(238, 59, 59, 0.12);
}

.contact-item .card-icon .icon {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark-subtle);
}

.contact-value {
    color: #fff;
    font-weight: 500;
}

a.contact-value:hover {
    color: var(--red);
}

/* ---------- Footer ---------- */

.site-footer {
    padding-top: clamp(56px, 7vw, 88px);
    background: var(--ink-950);
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 56px;
}

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

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

.footer-brand img {
    width: 136px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
}

.footer-title {
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
    transition: color 0.15s;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact {
    display: grid;
    gap: 14px;
}

.footer-contact > * {
    display: flex;
    gap: 12px;
}

.footer-contact .icon {
    margin-top: 4px;
    color: var(--red);
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.social a:hover {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}

.social .icon {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.875rem;
    color: var(--on-dark-subtle);
}

.footer-bottom p {
    margin: 0;
}

/* Room for the floating demo button, so it doesn't cover the legal links at the end of the page. */
body:has(.enquiry-launcher) .footer-bottom {
    padding-bottom: 96px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* ---------- 404 ---------- */

.error-page {
    display: grid;
    place-items: center;
    min-height: calc(100svh - var(--header-h) - 200px);
    padding-block: 96px;
    text-align: center;
}

.error-code {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--red);
}

/* ---------- Motion ---------- */

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

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

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

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

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

.hero-stats dt,
.hero-stats dd {
    margin: 0;
}

.h2-size {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

.h3-size {
    font-size: 1.5rem;
}

.actions--center {
    justify-content: center;
}

.form-success--static {
    display: block;
}

/* Home hero: headline on the left, the device on the right. Stacked on small screens. */
.hero--home {
    display: block;
    min-height: 0;
    padding-bottom: clamp(48px, 6vw, 72px);
}

.hero--home::before {
    display: none;
}

.hero--home::after {
    left: 55%;
    top: -10%;
    width: 60%;
    height: 90%;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.hero--home .hero-content {
    max-width: 620px;
}

.hero--home .hero-stats {
    margin-top: clamp(32px, 4vw, 56px);
    text-align: center;
}

@media (max-width: 960px) {
    .hero--home {
        padding-top: clamp(56px, 10vw, 96px);
    }

    .hero-split {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* CTA band with two buttons side by side. */
.cta-band .actions {
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-top: 0;
}

@media (max-width: 960px) {
    .cta-band .actions {
        flex-wrap: wrap;
    }
}

/* Boxed note with a red edge (e.g. "Don't see your application?" on the industries page). */
.insp-note {
    padding: clamp(24px, 3vw, 36px);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
}

.insp-note h3 {
    margin: 8px 0 12px;
    font-size: 1.35rem;
}

.insp-note p:last-child {
    margin-bottom: 0;
}

/* Home hero: the transparent device cut-out on the right, lit from behind. */
.nl-hero-device {
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nl-hero-device::before {
    content: "";
    position: absolute;
    inset: 8% 4% 2%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 60%, transparent);
}

.nl-hero-device img {
    width: auto;
    max-width: 100%;
    max-height: min(620px, 70svh);
    filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
}

@media (max-width: 960px) {
    .nl-hero-device img {
        max-height: 440px;
    }
}

/* Tag at the bottom of a feature card. */
.card .nl-card-tag {
    display: inline-block;
    margin-top: 20px;
    border-color: rgba(238, 59, 59, 0.25);
    background: var(--red-soft);
    color: var(--red-dark);
    font-size: 0.7rem;
}

/* Product chips (normal case, unlike the uppercase .tag labels). */
.nl-chips {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nl-chips .tag {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    font-weight: 500;
}

.nl-accent {
    font-style: normal;
    color: var(--red);
}

/* Key figures: four per row, two on phones. */
.nl-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.nl-stats div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 28px 24px;
    background: #fff;
}

.nl-stats dt {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.nl-stats dd {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--red);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .nl-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nl-stats div {
        padding: 20px 16px;
    }
}

/* Model lineup on the products page. */
.nl-models {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.nl-model {
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
}

.nl-model h3 {
    font-size: 1.3rem;
}

.nl-model > p {
    margin-bottom: 0;
}

.nl-model dl {
    display: grid;
    gap: 12px;
    margin: auto 0 0;
    padding-top: 20px;
}

.nl-model dt {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.nl-model dd {
    margin: 2px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.nl-models-actions {
    margin-top: 32px;
}

@media (max-width: 1100px) {
    .nl-models {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .nl-models {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .nl-models {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Core / add-on label above a capability card title. */
.nl-kicker {
    display: block;
    margin-bottom: 8px;
}

/* Six process steps instead of five. */
.nl-steps-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .nl-steps-6 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hero photo next to the text. */
.app-hero-media img {
    aspect-ratio: 10 / 7;
    object-fit: cover;
}

/* Short label at the bottom of a solution card. */
.card .card-tag {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 12px;
    border: 1px solid rgba(238, 59, 59, 0.35);
    border-radius: 999px;
    background: rgba(238, 59, 59, 0.08);
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section--dark .card .card-tag {
    color: #ff8a8a;
}

/* Product types as small chips. */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 5px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.85rem;
    line-height: 1.4;
}

.checklist--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.checklist--2 li {
    color: var(--text);
    font-weight: 500;
}

.notice--scope {
    margin: 32px 0 0;
}

/* Technical overview as a definition list. */
.spec-table {
    max-width: 920px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--ink-800);
}

.spec-table > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
    padding: 16px 24px;
    border-top: 1px solid var(--line-dark);
}

.spec-table > div:first-child {
    border-top: 0;
}

.spec-table dt {
    color: var(--on-dark-subtle);
    font-size: 0.92rem;
    font-weight: 600;
}

.spec-table dd {
    margin: 0;
    color: var(--on-dark);
}

.app-links--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-band--spaced {
    margin-top: clamp(56px, 7vw, 88px);
}

/* Industry photos fill their frame (the default is contain for cut-outs). */
.usecase-media--photo img {
    object-fit: cover;
}

.custom-note .actions {
    margin-top: 24px;
}

@media (max-width: 760px) {
    .checklist--2,
    .app-links--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .spec-table > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 14px 18px;
    }
}

/* ---------- Contact page: second address block and demo hint ---------- */

.contact-info .contact-info-sub {
    margin: 32px 0 16px;
}

.contact-demo {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-dark);
}

.contact-demo h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.contact-demo p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--on-dark-muted);
}

/* Footer: second address heading ("Contact USA") in partials.html needs space above it. */
.footer-title--sub {
    margin-top: 28px;
}

/* Shared parts of the home hero overlay (flag box, pin, label, live dot). */

.nlh-box {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.nlh-pin {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.5;
}

.nlh-label {
    fill: #fff;
}

.nlh-live {
    fill: var(--red);
}

/* Static state: the flaw has passed the cameras and is flagged. */

@media (prefers-reduced-motion: no-preference) {

    .nlh-live {
        animation: nlh-live 1.4s ease-in-out infinite alternate;
    }
}

/* 0–100 % moves the flaw from x = 150 to 650; it reaches the cameras (x = 360) at 42 %. */

@keyframes nlh-live {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

/* 360° cross-section: cameras around the product, overlapping fields of view. */
.n360 {
    margin: 0;
    text-align: center;
}

.n360 svg {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
}

.n360 figcaption {
    max-width: 380px;
    margin: 16px auto 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.section--dark .n360 figcaption {
    color: var(--on-dark-muted);
}

.n360-orbit,
.n360-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-dasharray: 3 7;
}

.n360-ring {
    stroke-dasharray: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 18;
}

.n360-fov {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
}

.n360-cover {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.n360-cover--1 { stroke: #9fd3ff; }
.n360-cover--2 { stroke: #ffd166; }
.n360-cover--3 { stroke: #b8f2c9; }

.n360-core {
    fill: #fff;
    opacity: 0.12;
}

.n360-cam rect:first-child {
    fill: #11151f;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1.5;
}

.n360-lens {
    fill: #9fd3ff;
}

.n360-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    fill: rgba(255, 255, 255, 0.55);
}

/* Performance figures next to the device photo. */
.nl-perf {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
}

.nl-perf .nl-hero-device img {
    max-height: 560px;
    filter: drop-shadow(0 30px 40px rgba(14, 18, 27, 0.25));
}

.nl-perf .nl-hero-device::before {
    background: radial-gradient(closest-side, rgba(238, 59, 59, 0.12), transparent);
}

.nl-perf .nl-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .nl-perf {
        grid-template-columns: minmax(0, 1fr);
    }

    .nl-perf .nl-hero-device img {
        max-height: 360px;
    }
}

/* ---------- Careers ---------- */

.careers-wahtari {
    margin-top: 20px;
}

.careers-wahtari .link-arrow {
    margin-top: 8px;
}

/* The whole device is always visible (no cover cropping). The photo's edges are faded into the
   hero color (--ink-900) in the image itself, so the spotlight shot looks like a stage without a
   visible edge. On load the device "lights up". */
.nl-stage {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0;
}

/* Sized by the window height and allowed to overflow its column: the photo's margins have
   the hero color, so only the device is visible. The text stays on top. */
.nl-stage img {
    flex: none;
    width: auto;
    max-width: none;
    height: min(840px, calc(100svh - var(--header-h) - 40px));
}

.hero--stage .hero-content {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .nl-stage img {
        animation: nl-stage-in 1.4s var(--ease) both;
    }
}

@keyframes nl-stage-in {
    from {
        opacity: 0;
        filter: brightness(0.35);
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        filter: brightness(1);
        transform: scale(1);
    }
}

.hero--stage {
    padding-block: clamp(32px, 4vw, 56px);
}

/* The red glow of the home hero would end at the opaque photo and show its edges. */
.hero--stage::after {
    display: none;
}

@media (max-width: 960px) {
    .nl-stage img {
        width: min(140vw, 640px);
        height: auto;
    }
}

/* The photo is sized by the hero height and starts at the cable's left end, so head, camera
   opening and the flagged cut are always visible; frame and monitor may run off the right edge.
   The photo's background has the hero color, so it has no visible edge. */
.hero--photo::after {
    display: none;
}

.hero--photo .hero-content {
    position: relative;
    z-index: 1;
}

.hero--photo .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nlx {
    position: relative;
    flex: none;
    height: min(780px, calc(100svh - var(--header-h) - 80px));
    aspect-ratio: 2400 / 1524;
    margin: 0;
    transform: translateX(-6%);
}

.hero--photo .hero-split > .nlx {
    justify-self: start;
}

.nlx img,
.nlx svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nlx-pulse,
.nlx-flash {
    opacity: 0;
}

.nlx-pulse {
    mix-blend-mode: screen;
}

.nlx-flash {
    mix-blend-mode: screen;
}

.nlx-cut {
    fill: none;
    stroke: #2a0606;
    stroke-width: 4;
    stroke-linecap: round;
}

.nlx-label-text {
    font-size: 34px;
    font-weight: 700;
    fill: var(--ink-900);
}

.nlx-hud rect {
    fill: rgba(17, 21, 31, 0.88);
    stroke: rgba(238, 59, 59, 0.6);
    stroke-width: 2;
}

.nlx-hud-title {
    font-size: 30px;
    font-weight: 700;
    fill: #fff;
}

.nlx-hud-text {
    font-size: 25px;
    fill: rgba(255, 255, 255, 0.62);
}

@media (prefers-reduced-motion: no-preference) {
    .nlx img {
        animation: nl-stage-in 1.4s var(--ease) both;
    }

    .nlx-pulse {
        animation: nlx-pulse 4.5s linear infinite;
    }

    .nlx-flash {
        animation: nlx-flash 4.5s linear infinite;
    }

    .nlx-flag,
    .nlx-hud {
        animation: nlx-flag 4.5s linear infinite;
    }

    .nlx-hud .nlh-live {
        animation: nlh-live 1.4s ease-in-out infinite alternate;
    }
}

/* The pulse travels 2720 units (x = -320 to 2400) in 0–75 % of the cycle: it reaches the camera
   opening (x = 1010) at about 37 % and the cut (x = 1260) at about 44 %. */
@keyframes nlx-pulse {
    0% { transform: translateX(0); opacity: 1; }
    75% { transform: translateX(2720px); opacity: 1; }
    76%, 100% { transform: translateX(2720px); opacity: 0; }
}

@keyframes nlx-flash {
    0%, 32% { opacity: 0; }
    37% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes nlx-flag {
    0%, 44% { opacity: 0; }
    47%, 92% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

@media (max-width: 960px) {
    .hero--photo .hero-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .nlx {
        width: 170vw;
        height: auto;
        transform: translateX(-4%);
        margin-left: calc(var(--gutter) * -1);
    }

    .nlx-hud {
        display: none;
    }
}

/* ---------- Home: AI section ("special touch", text from the old nline.ai) ---------- */

.nl-ai-media {
    background: #000;
}

.nl-ai-key {
    margin: 0 0 20px;
    padding-left: 18px;
    border-left: 3px solid var(--red);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
}
