/* Wahtari 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;
}

.icon-lg {
    width: 26px;
    height: 26px;
}

/* ---------- 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);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-head--center .eyebrow::after {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.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-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.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-2,
    .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);
}

/* Sub-page link below a product (nScan > Leerglasinspektion), aligned with the
   product title. */
.dropdown-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    align-self: flex-start;
    justify-self: start;
    margin: -8px 0 4px 72px;
    padding: 6px 12px 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--on-dark-muted);
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-sublink::before {
    content: "";
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: var(--red);
}

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

.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-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}

.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". */
.nowrap {
    white-space: nowrap;
}

.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-media img {
        height: 70vw;
        object-position: 75% 50%;
    }

    .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. nScan functions). */
.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;
}

/* The nScan feature graphics have white lines and text and need a dark background. */
.feature-grid .media-card-img {
    background: radial-gradient(120% 100% at 50% 35%, #222a3a, var(--ink-900));
    border-bottom-color: var(--ink-900);
}

.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 cards on the home page. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ink-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    color: var(--on-dark);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(238, 59, 59, 0.45);
    box-shadow: 0 30px 60px -30px rgba(238, 59, 59, 0.45);
}

.product-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 40%, #f7f8fa, #dfe2e7);
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product-card-media--top img {
    object-position: top;
}

.product-card:hover .product-card-media img {
    transform: scale(1.04);
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px 32px 32px;
}

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

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

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

.product-card .link-arrow {
    margin-top: auto;
    padding-top: 8px;
}

@media (max-width: 760px) {
    .product-grid {
        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--wide-media {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

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

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

@media (max-width: 900px) {
    .split,
    .split--wide-media {
        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%;
}

.media-frame--plain {
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.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);
}

.section--dark .media-frame--plain {
    background: none;
    border: 0;
    box-shadow: none;
}

/* ---------- 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);
}

/* ---------- Specs ---------- */

/* 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);
}

.spec-value {
    font-weight: 700;
    color: var(--text);
}

/* Three per row, e.g. five items as 3 + 2. */
.specs--3 .spec {
    flex-basis: 320px;
}

/* Inspected products below the industries on the start page */
.applications {
    margin-top: 48px;
    text-align: center;
}

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

.applications .tags {
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Key figures on the about page */
.figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 48px;
    padding: 28px 0;
    border-block: 1px solid var(--gray-200);
}

.figures div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

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

.figures dd {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.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);
}

.section--dark .spec-value {
    color: #fff;
}

/* ---------- 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;
}

.industry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.industry:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.industry .icon {
    width: 30px;
    height: 30px;
    color: var(--red);
    stroke-width: 1.5;
}

@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;
}

/* Light text on a colored badge: plain grayscale would leave it light on light. */
.logo-tile--badge img {
    filter: grayscale(1) brightness(0.62) contrast(6);
}

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

/* All partners and memberships 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-media--svg {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 16px;
    background: radial-gradient(120% 100% at 50% 30%, #fff, var(--gray-50));
}

.usecase-media--svg svg {
    width: 100%;
    height: auto;
}

.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;
    }
}

/* ---------- Full-stack layers ---------- */

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

.stack-item {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 40px;
    padding: clamp(28px, 4vw, 44px);
    background: var(--ink-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
}

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

.stack-media img {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
}

.stack-media--svg svg {
    display: block;
    width: 100%;
    max-width: 440px;
    max-height: 340px;
    margin-inline: auto;
}

.stack-step {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--red);
}

.stack-item h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.stack-item p {
    color: var(--on-dark-muted);
}

.stack-item .link-arrow {
    margin-top: 8px;
}

@media (max-width: 860px) {
    .stack-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .stack-item:nth-child(even) > .stack-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;
    }
}

/* ---------- Diagrams (Wahtari OS page) ---------- */

.diagram {
    margin: 0;
    padding: clamp(16px, 3vw, 32px);
    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);
}

.diagram svg {
    display: block;
    width: 100%;
    height: auto;
}

.section--dark .diagram {
    box-shadow: none;
}

@media (max-width: 680px) {
    .diagram {
        margin-inline: calc(-1 * var(--gutter) + 8px);
        padding: 10px;
    }
}

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

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

/* ---------- Wahtari Platform page ---------- */

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

.platform-hero-art {
    margin: 0;
}

.platform-hero-art svg {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-inline: auto;
}

.platform-points {
    margin-top: 24px;
}

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

/* Data flowing through the tunnels */
.tunnel-flow {
    animation: tunnel-flow 1.2s linear infinite;
}

@keyframes tunnel-flow {
    to {
        stroke-dashoffset: -26;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tunnel-flow {
        animation: none;
    }
}

/* Comparison table */
.compare {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.compare table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare th,
.compare td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: top;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
    border-bottom: 0;
}

.compare thead th {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.compare tbody th {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.compare td {
    color: var(--gray-600);
}

/* The Wahtari OS column */
.compare th:last-child,
.compare td:last-child {
    background: var(--red-soft);
    color: var(--text);
}

.compare thead th:last-child {
    color: var(--red);
}

.compare td:last-child {
    font-weight: 600;
}

/* On phones every row becomes a card: feature, then the two values with their column name. */
@media (max-width: 680px) {
    .compare {
        overflow: visible;
        border: 0;
    }

    .compare table {
        min-width: 0;
    }

    .compare thead {
        display: none;
    }

    .compare tr {
        display: block;
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
    }

    .compare th,
    .compare td {
        display: block;
        padding: 12px 18px;
        border-bottom: 1px solid var(--gray-200);
    }

    .compare td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--gray-500);
    }

    .compare td:last-child::before {
        color: var(--red);
    }

    .compare tr td:last-child {
        border-bottom: 0;
    }
}

/* ---------- 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;
}

/* Most covers have 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--success {
    background: #ecfbf1;
    border: 1px solid #bfe9cd;
    color: #17603a;
}

.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;
}

.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);
}

/* ---------- Jobs ---------- */

.job-list {
    display: grid;
    gap: 14px;
}

.job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.job:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.job h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.job p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .job {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- 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;
}

.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;
}

.hero--product {
    min-height: min(680px, calc(100svh - var(--header-h)));
}

.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;
}

.job-list + .section-head {
    margin-top: 72px;
    margin-bottom: 24px;
}

/* Home hero: headline on the left, the exploded view of an inspection system 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;
}

.hero-system {
    margin: 0;
}

.hero-system svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Layers drop into place one after the other. */
.hs-layer {
    animation: hs-in 0.9s var(--ease) both;
}

.hs-layer--1 { animation-delay: 0.1s; }
.hs-layer--2 { animation-delay: 0.3s; }
.hs-layer--3 { animation-delay: 0.5s; }
.hs-layer--4 { animation-delay: 0.7s; }
.hs-layer--5 { animation-delay: 0.9s; }

@keyframes hs-in {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
}

.hs-label {
    animation: hs-fade 0.6s ease both;
    animation-delay: 1.4s;
}

@keyframes hs-fade {
    from {
        opacity: 0;
    }
}

/* Scan line moving across the part, then the result appears. */
.hs-scan {
    animation: hs-scan 2.4s ease-in-out 1.8s infinite;
}

@keyframes hs-scan {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(48px, 28px);
    }
}

.hs-leds {
    animation: hs-leds 2.4s linear 1.8s infinite;
}

@keyframes hs-leds {
    50% {
        stroke: #fff;
    }
}

.hs-result {
    animation: hs-fade 0.4s ease both;
    animation-delay: 2.2s;
}

@media (prefers-reduced-motion: reduce) {
    .hs-layer,
    .hs-label,
    .hs-scan,
    .hs-leds,
    .hs-result {
        animation: none;
    }
}

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

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

    .hero-system {
        max-width: 440px;
        margin-inline: auto;
    }
}

/* On phones the drawing may reach a little into the side margins. */
@media (max-width: 480px) {
    .hero-system {
        margin-inline: -12px;
    }
}


/* ---------- Empty-glass inspection page ---------- */

/* Hero: the rendering sits right of the text, scaled so the whole bottle and the
   cameras stay visible, and fades out on all sides. Below 961px it is shown
   between the text and the stats. */
.hero--glass {
    display: block;
    min-height: 0;
    padding-bottom: clamp(48px, 6vw, 72px);
}

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

.hero--glass .hero-content {
    max-width: 560px;
}

.hero--glass h1 em {
    display: block;
}

.glass-hero-media {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    right: max(0px, calc((100vw - var(--container)) / 2 - 40px));
    bottom: 210px;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 91%, transparent 100%);
}

.glass-hero-media img {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    max-width: none;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.35) 22%, #000 52%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.35) 22%, #000 52%, #000 86%, transparent 100%);
}

@media (min-width: 961px) {
    .hero--glass .container {
        min-height: clamp(560px, 44vw, 700px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (max-width: 960px) {
    .glass-hero-media {
        position: relative;
        inset: auto;
        z-index: 0;
        margin: 32px calc(var(--gutter) * -1) 0;
        aspect-ratio: 4 / 3;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 76%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 76%, transparent 100%);
    }

    .glass-hero-media img {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 68% 50%;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero--glass .hero-stats {
        margin-top: 8px;
    }
}

/* Inspection task cards: photo with red markers drawn as SVG on top. The
   markers are animated when the card is revealed; this deliberately also runs
   with reduced motion (short, small movements), see the override below. */
.media-card-img.inspect-img {
    position: relative;
    aspect-ratio: 650 / 354;
    background: #05060a;
}

.inspect-marks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.inspect-marks * {
    fill: none;
    stroke: var(--red);
    stroke-linecap: square;
    transform-box: fill-box;
    transform-origin: center;
}

.inspect-marks path {
    stroke-width: 6;
}

.inspect-marks .mk-dash {
    stroke-linecap: butt;
}

.inspect-marks .mk-label rect {
    fill: var(--red);
    stroke: none;
    transform-origin: left center;
}

.inspect-marks .mk-label text {
    fill: #fff;
    stroke: none;
    font: 500 24px var(--font);
}

.inspect-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.inspect-grid .media-card {
    --md: 0.5s;
}

.inspect-grid .media-card:nth-child(2) { --md: 0.68s; }
.inspect-grid .media-card:nth-child(3) { --md: 0.86s; }
.inspect-grid .media-card:nth-child(4) { --md: 1.04s; }
.inspect-grid .media-card:nth-child(5) { --md: 1.22s; }
.inspect-grid .media-card:nth-child(6) { --md: 1.4s; }

.js .inspect-marks .mk-c,
.js .inspect-marks .mk-b,
.js .inspect-marks .mk-f,
.js .inspect-marks .mk-label text,
.js .inspect-chip {
    opacity: 0;
}

.js .inspect-marks .mk-tl { transform: translate(-14px, -14px); }
.js .inspect-marks .mk-tr { transform: translate(14px, -14px); }
.js .inspect-marks .mk-bl { transform: translate(-14px, 14px); }
.js .inspect-marks .mk-br { transform: translate(14px, 14px); }
.js .inspect-marks .mk-b { transform: scale(1.4); }
.js .inspect-marks .mk-label rect { transform: scaleX(0); }
.js .inspect-chip { transform: translateY(6px); }

.js .inspect-marks .mk-l {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.inspect-marks .mk-geo-line { --k: 0.1s; }
.inspect-marks .mk-geo-head { --k: 0.6s; }
.inspect-marks .mk-geo-axis { --k: 0.8s; }
.inspect-marks .mk-label { --k: 1.05s; }
.mk-codes .mk-b:nth-child(2) { --k: 0.07s; }
.mk-codes .mk-b:nth-child(3) { --k: 0.14s; }
.mk-codes .mk-b:nth-child(4) { --k: 0.21s; }
.mk-codes .mk-b:nth-child(5) { --k: 0.28s; }
.mk-codes .mk-b:nth-child(6) { --k: 0.35s; }
.mk-codes .mk-b:nth-child(7) { --k: 0.42s; }
.mk-codes .mk-b:nth-child(8) { --k: 0.49s; }
.mk-codes .mk-b:nth-child(9) { --k: 0.56s; }
.mk-codes .mk-b:nth-child(10) { --k: 0.63s; }
.mk-codes .mk-b:nth-child(11) { --k: 0.7s; }
.mk-codes .mk-b:nth-child(12) { --k: 0.77s; }
.mk-codes .mk-b:nth-child(13) { --k: 0.84s; }
.mk-codes .mk-b:nth-child(14) { --k: 0.91s; }

.is-visible .inspect-marks .mk-c {
    animation: inspect-in 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) var(--md) forwards, inspect-pulse 0.7s ease-in-out calc(var(--md) + 0.55s) 2;
}

.is-visible .inspect-marks .mk-b,
.is-visible .inspect-marks .mk-f,
.is-visible .inspect-marks .mk-label rect {
    animation: inspect-in 0.32s ease-out calc(var(--md) + var(--k, 0s)) forwards;
}

.is-visible .inspect-marks .mk-label text {
    animation: inspect-in 0.3s ease-out calc(var(--md) + var(--k, 0s) + 0.3s) forwards;
}

.is-visible .inspect-marks .mk-l {
    animation: inspect-draw 0.6s ease-out calc(var(--md) + var(--k, 0s)) forwards;
}

.is-visible .inspect-chip {
    animation: inspect-in 0.4s ease-out calc(var(--md) + 1.3s) forwards;
}

@keyframes inspect-in {
    to {
        opacity: 1;
        transform: none;
    }
}

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

@keyframes inspect-pulse {
    50% {
        opacity: 0.35;
    }
}

/* The global reduced-motion rule shortens all animations to 0.01ms. The
   markers keep their timing on purpose (requested by Wahtari). */
@media (prefers-reduced-motion: reduce) {
    .is-visible .inspect-marks .mk-c {
        animation-duration: 0.5s, 0.7s !important;
    }

    .is-visible .inspect-marks .mk-b,
    .is-visible .inspect-marks .mk-f,
    .is-visible .inspect-marks .mk-label rect {
        animation-duration: 0.32s !important;
    }

    .is-visible .inspect-marks .mk-label text {
        animation-duration: 0.3s !important;
    }

    .is-visible .inspect-marks .mk-l {
        animation-duration: 0.6s !important;
    }

    .is-visible .inspect-chip {
        animation-duration: 0.4s !important;
    }
}

/* Four equal columns, so the dividing lines run straight through all rows
   (used for the eight benefits on the empty-glass page). */
.specs--4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.specs--4 .spec > div {
    min-width: 0;
}

.specs--4 h3,
.specs--4 p {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

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

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

/* Real-world defect images on the empty-glass page: one 4:3 photo per defect
   type (img/empty-glass-defect-*.webp, 800 x 600, neutral color grading). */
.defect {
    margin: 0;
    padding: 12px 12px 18px;
    background: var(--ink-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.defect img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

/* nScan heatmap of each defect: a transparent layer (*-heat.webp, colors taken
   unchanged from Wahtari's heatmap images) over the photo. It appears on mouse
   hover; on touch devices (no hover) it is always shown. */
.defect-media {
    position: relative;
}

.defect-media .defect-heat {
    position: absolute;
    inset: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.defect:hover .defect-heat {
    opacity: 1;
}

.defect-hint {
    margin: 12px 0 0;
    color: var(--on-dark-subtle);
    font-size: 0.95rem;
}

@media (hover: none) {
    .defect-media .defect-heat {
        opacity: 1;
    }

    .defect-hint {
        display: none;
    }
}

.defect figcaption {
    margin: 16px 6px 0;
    font-weight: 600;
    color: var(--on-dark);
}


/* Empty-glass inspection station (glass-station.html). Bottles that have passed
   the cameras carry a green check; in the static drawing only those marked
   gs-past show it. */
.gs-bottle:not(.gs-past) .gs-ok {
    opacity: 0;
}

/* Animated version inside .glass-live (empty-glass page): the bottles run along
   the belt, the faulty bottle is detected under the camera (red cross, crack
   turns red) and pushed onto the reject table. One cycle = 10.5s, 7 bottles. */
.glass-live .gs-bottle {
    animation: gs-run 10.5s linear infinite;
}

.glass-live .gs-ok {
    opacity: 0;
    animation: gs-ok 10.5s linear infinite;
}

.glass-live .gs-b1,
.glass-live .gs-b1 .gs-ok { animation-delay: -1.5s; }
.glass-live .gs-b2,
.glass-live .gs-b2 .gs-ok { animation-delay: -3.0s; }
.glass-live .gs-b3,
.glass-live .gs-b3 .gs-ok { animation-delay: -4.5s; }
.glass-live .gs-b4,
.glass-live .gs-b4 .gs-ok { animation-delay: -6.0s; }
.glass-live .gs-b5,
.glass-live .gs-b5 .gs-ok { animation-delay: -7.5s; }
.glass-live .gs-b6,
.glass-live .gs-b6 .gs-ok { animation-delay: -9.0s; }

.glass-live .gs-defect {
    animation: gs-reject 10.5s linear infinite;
}

.glass-live .gs-bad {
    animation: gs-bad 10.5s linear infinite;
}

.glass-live .gs-crack {
    animation: gs-crack 10.5s linear infinite;
}

.glass-live .gs-defect .gs-glass {
    animation: gs-outline 10.5s linear infinite;
}

.glass-live .gs-beam {
    animation: gs-beam 1.5s ease-in-out infinite;
}

.glass-live .gs-pusher {
    animation: gs-push 10.5s linear infinite;
}

@keyframes gs-run {
    0% { transform: translate(240.0px, 177.0px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translate(740.0px, 465.7px); opacity: 0; }
}

@keyframes gs-ok {
    0%, 51% { opacity: 0; }
    54%, 100% { opacity: 1; }
}

@keyframes gs-reject {
    0% { transform: translate(240.0px, 177.0px); opacity: 0; }
    5% { opacity: 1; }
    80.2% { transform: translate(640.9px, 408.5px); animation-timing-function: ease-out; }
    86% { transform: translate(569.9px, 449.5px); opacity: 1; }
    95% { transform: translate(569.9px, 449.5px); opacity: 1; }
    100% { transform: translate(569.9px, 449.5px); opacity: 0; }
}

@keyframes gs-bad {
    0%, 50% { opacity: 0; transform: scale(0.6); }
    53%, 100% { opacity: 1; transform: none; }
}

@keyframes gs-crack {
    0%, 50% { stroke: #5d8a72; stroke-opacity: 0.55; }
    53%, 100% { stroke: #ee3b3b; stroke-opacity: 1; }
}

@keyframes gs-outline {
    0%, 50% { stroke: #4d7a63; }
    53%, 100% { stroke: #ee3b3b; }
}

@keyframes gs-beam {
    0%, 25%, 75%, 100% { fill-opacity: 0.06; stroke-opacity: 0.3; }
    50% { fill-opacity: 0.24; stroke-opacity: 0.9; }
}

@keyframes gs-push {
    0%, 79% { transform: none; }
    82%, 87% { transform: translate(-30px, 17px); }
    93%, 100% { transform: none; }
}

.glass-live .gs-bad {
    transform-box: fill-box;
    transform-origin: center;
}

/* Like the inspection markers, the station keeps moving with reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .glass-live .gs-bottle,
    .glass-live .gs-ok,
    .glass-live .gs-defect,
    .glass-live .gs-bad,
    .glass-live .gs-crack,
    .glass-live .gs-defect .gs-glass,
    .glass-live .gs-pusher {
        animation-duration: 10.5s !important;
        animation-iteration-count: infinite !important;
    }

    .glass-live .gs-beam {
        animation-duration: 1.5s !important;
        animation-iteration-count: infinite !important;
    }
}
