@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/poppins-500.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/poppins-600.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/poppins-700.woff2") format("woff2");
}

:root {
    --color-bg: #ffffff;
    --color-text: #1b1a3a;
    --color-primary: #2e3192;
    --color-primary-dark: #262262;
    --color-primary-tint: #ececf8;
    --color-secondary: #00a651;
    --color-secondary-dark: #007a3d;
    --color-secondary-tint: #e6f6ec;
    --color-border: #e3e3ef;
    --color-muted: #5a5c78;
    --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.25;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-tagline {
    font-weight: 500;
    font-size: 0.68rem;
    color: var(--color-muted);
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .brand-tagline {
        display: none;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

.main-nav a.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

.cart-link {
    background: var(--color-primary-tint);
    color: var(--color-primary) !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 999px;
    border-bottom: none !important;
}

.cart-link:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease);
    }

    .main-nav.is-open {
        max-height: 24rem;
        opacity: 1;
        padding: 0.5rem 0 1.1rem;
    }

    .cart-link {
        padding: 0.55rem 1rem !important;
    }
}

main.container {
    padding: 2rem 1.25rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0 0 0.5rem;
}

.page-header p {
    color: var(--color-muted);
    max-width: 640px;
    margin: 0;
}

.trust-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-primary-tint);
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

.trust-strip svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.trust-strip a {
    color: var(--color-primary);
}

/* The portal stat cards normally pull up into the gradient hero's bottom
   padding (see .portal-stats). When a trust-strip banner sits between the
   hero and the stats, that negative margin would pull the stats up into
   the banner instead — cancel it so the banner gets normal spacing. */
.trust-strip + .portal-stats {
    margin-top: 1rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 760px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-item .highlight-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.contact-info-item h2 {
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.contact-info-item p {
    color: var(--color-muted);
    margin: 0 0 0.25rem;
}

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.75rem;
}

.hero-wrap.portal-hero {
    padding: 3rem 0 5.5rem;
}

.portal-hero .portal-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.portal-hero .portal-hero-inner h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.01em;
    margin: 0.3rem 0 0.6rem;
    max-width: none;
}

.portal-hero .portal-hero-inner p {
    margin: 0;
    max-width: 480px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: -3.5rem 0 3rem;
    position: relative;
    z-index: 2;
}

.portal-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(27, 26, 58, 0.05);
}

.portal-panel .section-heading-row {
    margin-bottom: 1.5rem;
}

.portal-panel .empty-state {
    padding: 2rem 1rem 1rem;
}

@media (max-width: 600px) {
    .portal-panel {
        padding: 1.25rem;
    }
}

.section-heading-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.25rem;
}

.section-heading-row .stat-icon {
    width: 36px;
    height: 36px;
}

.section-heading-row .stat-icon svg {
    width: 18px;
    height: 18px;
}

.section-heading-row h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.job-card:hover {
    box-shadow: 0 10px 25px rgba(27, 26, 58, 0.08);
    transform: translateY(-1px);
}

.job-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.job-card-number {
    font-size: 0.78rem;
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.job-card-title {
    font-weight: 600;
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--color-primary-tint);
    color: var(--color-primary);
    white-space: nowrap;
}

.status-badge-done {
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
}

.status-badge-danger {
    background: #fbe9e9;
    color: #b00020;
}

.status-badge-warning {
    background: #fff4e0;
    color: #9a6400;
}

.stat-card-alert {
    box-shadow: 0 0 0 2px #f3c0c0, 0 10px 30px rgba(27, 26, 58, 0.12);
}

.stat-chart {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.stat-chart-row {
    display: grid;
    grid-template-columns: 150px 1fr 32px;
    align-items: center;
    gap: 0.75rem;
}

.stat-chart-label {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.stat-chart-track {
    background: var(--color-primary-tint);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.stat-chart-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--color-primary);
}

.stat-chart-bar.bar-done {
    background: var(--color-secondary);
}

.stat-chart-bar.bar-danger {
    background: #c23b3b;
}

.stat-chart-value {
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .stat-chart-row {
        grid-template-columns: 1fr 24px;
        grid-template-areas: "label value" "track track";
        row-gap: 0.3rem;
    }

    .stat-chart-label { grid-area: label; }
    .stat-chart-value { grid-area: value; }
    .stat-chart-track { grid-area: track; }
}

.portal-unavailable {
    background: #fff4e0;
    color: #9a6400;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(27, 26, 58, 0.1);
    text-align: center;
}

.auth-card-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: block;
}

.auth-card-mark .brand-mark {
    width: 100%;
    height: 100%;
}

.auth-card h1 {
    margin-top: 0;
    font-size: 1.4rem;
}

.auth-card form,
.auth-card .form-footnote {
    text-align: left;
}

.auth-card .form-footnote {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.contact-form-wrap h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.contact-form-wrap form {
    max-width: none;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 5rem 0 9rem;
    isolation: isolate;
}

.hero-wrap::before {
    content: "";
    position: absolute;
    inset: -10% -10%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(0, 0, 0, 0.9), transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(0, 0, 0, 0.9), transparent 75%);
    animation: heroGridDrift 70s linear infinite;
    z-index: -1;
}

.hero-wrap::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    opacity: 0.28;
    border-radius: 50%;
    animation: heroGlowDrift 14s ease-in-out infinite;
    z-index: -1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: -3;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    opacity: 0;
    z-index: -2;
    transition: opacity 0.6s var(--ease);
}

.hero-wrap.has-video .hero-video-overlay {
    opacity: 0.68;
}

.hero-wrap.has-video::before,
.hero-wrap.has-video::after {
    display: none;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10rem;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c9f0d2;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-kicker::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--color-secondary);
}

.hero-wrap h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    max-width: 680px;
}

.hero-wrap p {
    color: #dcdcf0;
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 0 2rem;
}

.hero-wrap .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-wrap .button-secondary:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

@keyframes heroGridDrift {
    from { background-position: 0 0; }
    to { background-position: 44px 88px; }
}

@keyframes heroGlowDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 25px); }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: -6.5rem 0 3rem;
    position: relative;
    z-index: 2;
}

/* For pages where the stats bar follows a plain .page-header rather than
   a full-bleed hero — no hero to float up over, so no negative margin.
   Combined-class selector so this beats the mobile media query below too. */
.stats-bar.stats-bar-plain {
    margin-top: 0;
}

@media (max-width: 600px) {
    .hero-wrap {
        padding: 3.5rem 0 7rem;
    }

    .stats-bar {
        margin-top: -4.5rem;
    }
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.1rem;
    box-shadow: 0 10px 30px rgba(27, 26, 58, 0.12);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon-primary {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.stat-icon-alert {
    background: #fbe9e9;
    color: #b00020;
}

.stat-value {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    display: block;
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.section-heading {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    margin: 0 0 0.5rem;
}

.section-intro {
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 0 2rem;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 3rem;
}

.highlight {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(27, 26, 58, 0.1);
}

.highlight-photo {
    display: block;
    width: calc(100% + 3rem);
    height: 160px;
    margin: -1.75rem -1.5rem 1.25rem;
    object-fit: cover;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-tint);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.highlight-icon svg {
    width: 26px;
    height: 26px;
}

.highlight h2 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.highlight p {
    color: var(--color-muted);
    margin: 0;
}

.page-cta {
    text-align: center;
    background: var(--color-primary-tint);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.page-cta h2 {
    margin: 0 0 0.5rem;
}

.page-cta p {
    color: var(--color-muted);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 3rem;
}

.process-step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -20px rgba(38, 34, 98, 0.45);
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.process-step h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.process-step p {
    margin: 0;
    color: var(--color-muted);
}

.cert-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
    margin: 1rem 0 0;
}

.cert-teaser-item h2 {
    margin: 0;
    font-size: 0.95rem;
}

.cert-teaser-item .cert-status {
    margin: 0.5rem 0 0;
}

.cert-teaser-more {
    text-align: center;
    margin: 2rem 0 3rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
}

.testimonial-quote-icon {
    display: block;
    color: var(--color-primary-tint);
    margin-bottom: 0.5rem;
}

.testimonial-quote-icon svg {
    width: 28px;
    height: 28px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
}

.star-filled {
    color: var(--color-secondary);
}

.star-empty {
    color: var(--color-border);
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-company {
    font-weight: 400;
    color: var(--color-muted);
}

.testimonial-more {
    text-align: center;
    margin: 1.5rem 0 3rem;
}

.testimonial-more a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.testimonial-more a:hover {
    text-decoration: underline;
}

.engineer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 1.75rem;
    margin: 1rem 0 3rem;
}

.engineer-bio {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ------------------------------------------------------------------
   Engineer "trading cards" — Top Trumps / Pokémon-style profile cards.
   Fixed portrait width so a single card reads as a card, not a banner.
   The foil edge and photo window reuse the same navy-to-green gradient
   as the shop's product-photo frame, so this page matches the shop.
   ------------------------------------------------------------------ */
.trump-card {
    flex: 0 1 340px;
    width: 340px;
    max-width: 100%;
    padding: 4px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 35%, var(--color-secondary) 100%);
    box-shadow: 0 18px 40px -26px rgba(38, 34, 98, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trump-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -24px rgba(38, 34, 98, 0.6);
}

.trump-card-inner {
    background: #fff;
    border-radius: 16px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 720px;
}

.trump-nameplate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
}

.trump-nameplate h2 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
    color: #fff;
}

.trump-hp {
    align-self: flex-end;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.trump-photo-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    padding: 4px;
    background:
        linear-gradient(var(--color-primary-tint), var(--color-primary-tint)) content-box,
        linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 22%, rgba(46, 49, 146, 0.35) 62%, #fff 100%) border-box;
    box-shadow: 0 0 0 1px rgba(46, 49, 146, 0.12);
}

.trump-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.trump-level {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--color-secondary-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.trump-role {
    color: var(--color-secondary-dark);
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
}

.trump-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.trump-type-chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    background: var(--color-primary);
}

.trump-type-b {
    background: var(--color-secondary-dark);
}

.trump-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.65rem;
    background: var(--color-primary-tint);
    border-radius: 10px;
}

.trump-stat-row {
    display: grid;
    grid-template-columns: 70px 1fr minmax(40px, auto);
    gap: 0.45rem;
    align-items: center;
    font-size: 0.7rem;
}

.trump-stat-label {
    color: var(--color-muted);
    font-weight: 600;
}

.trump-stat-bar {
    position: relative;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.trump-stat-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-secondary));
}

.trump-stat-value {
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
    white-space: normal;
    line-height: 1.2;
}

.trump-certs h3 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin: 0 0 0.4rem;
}

.trump-cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.trump-cert-list .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    white-space: normal;
    max-width: 100%;
}

.trump-cert-list .status-badge svg {
    width: 11px;
    height: 11px;
}

.trump-bio {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-style: italic;
    margin: 0;
    padding: 0.6rem 0.7rem;
    background: #fafbfc;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.trump-footer {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: var(--color-muted);
    margin: 0;
}

.trump-weakness-tag {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary-dark);
}

/* ------------------------------------------------------------------
   Admin & support team: plain profile cards, deliberately simpler than
   the engineer trading cards — no skills/certs/stats, since those
   don't apply to office or subcontracted roles.
   ------------------------------------------------------------------ */
.support-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    margin: 1rem 0 3rem;
}

.support-card {
    flex: 0 1 260px;
    width: 260px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(27, 26, 58, 0.1);
}

.support-photo-frame {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background:
        linear-gradient(var(--color-primary-tint), var(--color-primary-tint)) content-box,
        linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 22%, rgba(46, 49, 146, 0.35) 62%, #fff 100%) border-box;
    box-shadow: 0 0 0 1px rgba(46, 49, 146, 0.12);
}

.support-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.support-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

.support-role {
    color: var(--color-secondary-dark);
    font-weight: 600;
    font-size: 0.82rem;
    margin: 0 0 0.75rem;
}

.support-bio {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0;
}

.working-with-us-section {
    margin-bottom: 2.5rem;
}

.working-with-us-section h2 {
    margin-bottom: 0.5rem;
}

.working-with-us-section p,
.working-with-us-section li {
    color: var(--color-muted);
}

.button {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 14px rgba(46, 49, 146, 0.28);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 49, 146, 0.32);
}

.button:disabled {
    background: var(--color-border);
    color: var(--color-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.button-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    box-shadow: none;
}

.button-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(46, 49, 146, 0.2);
}

.button-urgent {
    background: #c23b3b;
    box-shadow: 0 4px 14px rgba(194, 59, 59, 0.32);
}

.button-urgent:hover {
    background: #a52f2f;
    box-shadow: 0 8px 20px rgba(194, 59, 59, 0.36);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.1);
}

.product-card h2 {
    font-size: 1.05rem;
    margin-top: 0;
}

.product-card h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.product-sku {
    color: var(--color-muted);
    font-size: 0.78rem;
    margin: 0 0 0.35rem;
}

.stock-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

.stock-badge-in {
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
}

.stock-badge-low {
    background: #fff4e0;
    color: #9a6400;
}

.stock-badge-out {
    background: #fbe9e9;
    color: #b00020;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-detail form.add-to-cart-form {
    flex-direction: row;
    align-items: center;
    max-width: none;
    margin-top: 1.5rem;
}

.product-detail .qty-input {
    width: 80px;
}

.product-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 1.25rem;
}

.product-note svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary-dark);
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.product-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: var(--color-primary-tint);
}

.product-image-large {
    display: block;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    background: var(--color-primary-tint);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.price {
    font-weight: 700;
    color: var(--color-primary);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}

.service-list h2 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.service-list h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.service-list h2 a:hover {
    color: var(--color-primary);
}

.accreditation-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 3rem;
}

.accreditation {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.accreditation h2 {
    font-size: 1.05rem;
    margin: 0.5rem 0 0.35rem;
}

.accreditation p {
    color: var(--color-muted);
    margin: 0;
}

.accreditation-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.accreditation-certified .accreditation-status {
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
}

.accreditation-progress .accreditation-status {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.accreditation-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    margin-bottom: 0;
}

.cart-table th {
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.link-button {
    background: none;
    border: none;
    color: #b00020;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--color-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--color-border);
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0 0 1.25rem;
}

.icon-centered {
    margin: 0 auto 1rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 820px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.order-summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.order-summary h2 {
    font-size: 1.05rem;
    margin: 0 0 1rem;
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 0.75rem;
    color: var(--color-primary);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
}

label {
    font-weight: 600;
    margin-top: 0.5rem;
}

input,
select,
textarea {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-tint);
}

.error {
    color: #b00020;
}

.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, var(--color-primary-dark) 0%, #17163f 100%);
    color: #c9cae6;
    font-size: 0.78rem;
    padding: 3rem 0 1.25rem;
    margin-top: 2.5rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 100%, rgba(0, 0, 0, 0.85), transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 80% 100%, rgba(0, 0, 0, 0.85), transparent 75%);
    z-index: -1;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    opacity: 0.16;
    border-radius: 50%;
    z-index: -1;
}

.footer-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, var(--color-bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.footer-inner {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h3 {
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.6rem;
}

.site-footer p {
    margin: 0 0 0.35rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e6e6f4;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
    background: var(--color-secondary);
    color: #fff;
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav a {
    color: #e6e6f4;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    font-size: 0.72rem;
    color: #a5a6cf;
}

.footer-credit a {
    color: #c9cae6;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Phone fixes: grid columns may shrink below their widest form field (the
   sell form's file input forced the page wider than the screen), fields
   never outgrow their column, and the fine print stays readable. */
.contact-layout > * {
    min-width: 0;
}

input,
select,
textarea {
    max-width: 100%;
    box-sizing: border-box;
}

input[type="file"] {
    width: 100%;
}

.footer-bottom {
    font-size: 0.75rem;
}

/* Explore holds most of the site's links, so it gets a wider slot and
   two columns (kept on phones too, to halve the scroll). */
.footer-grid {
    grid-template-columns: 1.3fr 1.7fr 0.9fr;
}

/* Reads down the first column, then the second, so related links stay
   together (machinery links first). */
.footer-nav-columns {
    display: block;
    column-count: 2;
    column-gap: 1.5rem;
}

.footer-nav-columns a {
    display: block;
    margin-bottom: 0.4rem;
    break-inside: avoid;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.legal-content {
    max-width: 720px;
}

.legal-content h2 {
    margin-top: 2rem;
    color: var(--color-primary);
}

.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.cookie-notice p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

.cookie-notice a {
    color: #fff;
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   Photo frame: every site photo (shop, engineers) sits in a ring of
   the homepage blue that fades out to white, with a soft blue glow.
   Logos get a lighter version so small marks don't look heavy.
   ------------------------------------------------------------------ */
.product-image,
.product-image-large {
    padding: 6px;
    background:
        linear-gradient(var(--color-primary-tint), var(--color-primary-tint)) content-box,
        linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 22%, rgba(46, 49, 146, 0.35) 62%, #fff 100%) border-box;
    box-shadow:
        0 0 0 1px rgba(46, 49, 146, 0.12),
        0 14px 30px -16px rgba(38, 34, 98, 0.55);
}

.product-image-large {
    padding: 9px;
}

.product-card:hover .product-image {
    box-shadow:
        0 0 0 1px rgba(46, 49, 146, 0.2),
        0 16px 34px -14px rgba(38, 34, 98, 0.65);
}

.accreditation-logo,
.testimonial-logo {
    padding: 3px;
    border-radius: 8px;
    background:
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-tint) 55%, #fff 100%) border-box;
    box-shadow: 0 0 0 1px rgba(46, 49, 146, 0.1);
}

/* ------------------------------------------------------------------
   Certifications page: banner with summary, certificate-style cards
   that rise into the banner's fade, framed seals, community cards.
   ------------------------------------------------------------------ */
.cert-hero .portal-hero-inner {
    align-items: flex-end;
}

.cert-hero-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cert-hero .hero-kicker svg {
    width: 16px;
    height: 16px;
}

.cert-hero-stat {
    flex: 1 1 96px;
    min-width: 0;
    max-width: 140px;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
}

.cert-hero-stat strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1.1;
}

.cert-hero-stat span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.cert-grid {
    list-style: none;
    padding: 0;
    margin: -4rem 0 3.5rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.1rem 1.5rem 1.7rem;
    text-align: center;
    box-shadow: 0 18px 40px -24px rgba(38, 34, 98, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary) 45%, rgba(46, 49, 146, 0.12));
}

.cert-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 55% at 50% 0%, var(--color-primary-tint) 0%, rgba(234, 241, 246, 0) 62%);
    pointer-events: none;
}

.cert-card > * {
    position: relative;
    z-index: 1;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -24px rgba(38, 34, 98, 0.55);
}

.cert-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.1rem;
    padding: 6px;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 22%, rgba(46, 49, 146, 0.35) 62%, #fff 100%) border-box;
    box-shadow:
        0 0 0 1px rgba(46, 49, 146, 0.12),
        0 14px 30px -16px rgba(38, 34, 98, 0.55);
}

.cert-card-progress .cert-seal {
    background:
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(145deg, rgba(46, 49, 146, 0.55) 0%, rgba(46, 49, 146, 0.2) 55%, #fff 100%) border-box;
}

.cert-logo {
    width: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 50%;
    object-fit: contain;
}

.cert-seal-icon {
    display: flex;
    color: var(--color-primary);
}

.cert-seal-icon svg {
    width: 40px;
    height: 40px;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cert-status svg {
    width: 14px;
    height: 14px;
}

.cert-card-certified .cert-status,
.cert-card-approved .cert-status {
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
}

.cert-card-progress .cert-status {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.cert-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.cert-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.cert-community {
    margin-bottom: 1rem;
}

.charity-grid {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.charity-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary-tint) 0%, #fff 70%);
}

.charity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 5px;
    border-radius: 50%;
    color: var(--color-primary);
    background:
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 22%, rgba(46, 49, 146, 0.35) 62%, #fff 100%) border-box;
}

.charity-icon svg {
    width: 20px;
    height: 20px;
}

.charity-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.charity-card p {
    margin: 0;
    color: var(--color-muted);
}

@media (max-width: 720px) {
    .cert-grid {
        margin-top: -3rem;
    }
}

/* ------------------------------------------------------------------
   Services page: gradient hero (same family as the certifications
   banner) plus bold, alternating-accent service cards with a gradient
   top bar and hover lift, instead of the generic grey .highlight card.
   ------------------------------------------------------------------ */
.services-hero .hero-kicker svg {
    width: 16px;
    height: 16px;
}

.service-card-grid {
    list-style: none;
    padding: 0;
    margin: -4rem 0 3rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    cursor: pointer;
    padding: 2.1rem 1.5rem 1.75rem;
    box-shadow: 0 18px 40px -26px rgba(38, 34, 98, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary) 45%, rgba(46, 49, 146, 0.12));
}

.service-card-accent-b::before {
    background: linear-gradient(90deg, var(--color-secondary-dark), var(--color-secondary) 45%, rgba(0, 166, 81, 0.12));
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -24px rgba(38, 34, 98, 0.5);
}

.service-card-photo {
    display: block;
    width: calc(100% + 3rem);
    height: 170px;
    margin: -2.1rem -1.5rem 1.25rem;
    object-fit: cover;
}

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.service-card-accent-b .service-card-icon {
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
}

.service-card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
}

.service-card p {
    margin: 0 0 0.9rem;
    color: var(--color-muted);
}

.service-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.service-card-accent-b .service-card-more {
    color: var(--color-secondary-dark);
}

@media (max-width: 720px) {
    .service-card-grid {
        margin-top: -3rem;
    }
}

/* ------------------------------------------------------------------
   Reusable click-to-open modal, currently used by the services page.
   One overlay/dialog shell in the DOM; JS clones a hidden <template>
   per item into .modal-body rather than rebuilding content in JS.
   ------------------------------------------------------------------ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 26, 58, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 200;
}

/* The [hidden] attribute only hides via the browser's UA stylesheet,
   which author CSS overrides at equal specificity — without this, the
   display:flex above wins and the modal shows on page load regardless
   of the attribute. */
.modal-overlay[hidden] {
    display: none;
}

.modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary-tint);
    color: var(--color-primary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background: var(--color-primary);
    color: #fff;
}

.modal-body .service-card-icon {
    margin-bottom: 1.25rem;
}

.modal-body h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.modal-body p {
    color: var(--color-muted);
    margin: 0;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

body.modal-open {
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Machinery for sale: listing tabs, category chips, condition/status
   badges, the photo gallery and the spec table on a machine page.
   ------------------------------------------------------------------ */
.machinery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.machinery-tabs a {
    padding: 0.6rem 1rem;
    color: var(--color-muted);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.machinery-tabs a:hover,
.machinery-tabs a.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.machinery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.machinery-categories a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    font-size: 0.875rem;
    text-decoration: none;
}

.machinery-categories a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.machinery-categories span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-tint);
    border-radius: 999px;
    padding: 0 0.45rem;
}

.machinery-intro {
    color: var(--color-muted);
    margin-top: -0.5rem;
}

.machine-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
}

.machine-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.machine-badge-new {
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
}

.machine-badge-refurbished {
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
}

.machine-badge-workshop {
    background: #fff4e0;
    color: #9a6400;
}

.machine-badge-sold {
    background: #eceff1;
    color: var(--color-muted);
}

.machine-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.5rem;
    max-width: 480px;
}

.machine-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.machine-thumbs a:hover img {
    border-color: var(--color-primary);
}

.machine-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.spec-table th {
    width: 45%;
    color: var(--color-muted);
    font-weight: 600;
}

@media (max-width: 720px) {
    .machine-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.hs-hero-photo {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 0 2rem;
}

/* ------------------------------------------------------------------
   Stronger engineering feel: a condensed, industrial heading face over
   the Poppins body text, a dark full-width band for contrast, and
   clickable "What we do" cards.
   ------------------------------------------------------------------ */
@font-face {
    font-family: "Barlow Semi Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Semi Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/barlow-semi-condensed-700.woff2") format("woff2");
}

:root {
    --font-display: "Barlow Semi Condensed", "Arial Narrow", var(--font-sans);
    --color-steel: #17163f;
}

/* The band below is full-bleed (100vw), which would otherwise add a
   sideways scroll when a vertical scrollbar takes up some width. */
body {
    overflow-x: clip;
}

h1, h2, h3,
.stat-value {
    font-family: var(--font-display);
    letter-spacing: 0.005em;
}

.hero-wrap h1,
.page-header h1,
.section-heading {
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.hero-wrap h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    max-width: 760px;
}

.page-header h1 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.1;
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    line-height: 1.1;
}

.stat-value {
    font-size: 1.25rem;
}

.highlight h2,
.process-step h2,
.service-card h2,
.product-card h2 {
    font-size: 1.3rem;
}

/* What we do: four clickable cards. */
.highlights-four {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

a.highlight {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.highlight:hover h2 {
    color: var(--color-primary);
}

.highlight-more {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.highlights-four .highlight p {
    min-height: 4.8em;
}

/* Dark full-width band (homepage "How we work"). */
.band-dark {
    position: relative;
    margin: 1rem calc(50% - 50vw) 4rem;
    padding: 4.5rem 0 4rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(135deg, var(--color-steel) 0%, var(--color-primary-dark) 100%);
    color: #fff;
}

.band-dark::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary) 60%, transparent);
}

.band-dark-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.band-dark .section-intro {
    color: rgba(255, 255, 255, 0.72);
}

.band-dark .process-grid {
    margin-bottom: 0;
}

.band-dark .process-step {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.band-dark .process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.band-dark .process-step h2 {
    color: #fff;
}

.band-dark .process-step p {
    color: rgba(255, 255, 255, 0.72);
}

.band-dark .process-step-number {
    background: var(--color-secondary);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.cert-teaser-more a,
.testimonial-more a {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.cert-teaser-more a:hover,
.testimonial-more a:hover {
    text-decoration: underline;
}

/* Keep the homepage certifications grouped in the middle when only a few
   are shown, rather than spread to the far edges. */
.cert-teaser-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 240px));
    justify-content: center;
}

/* ------------------------------------------------------------------
   Header: five main links, with Client Portal and the call-back button
   grouped on the right.
   ------------------------------------------------------------------ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0.5rem;
}

.main-nav .nav-portal {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.main-nav .nav-cta,
.main-nav .nav-cta:hover {
    color: #fff;
    border-bottom: none;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .nav-actions {
        flex-wrap: wrap;
        margin: 0.4rem 0 0;
        padding-top: 0.9rem;
        border-top: 1px solid var(--color-border);
        width: 100%;
    }
}

/* Small helpers used by the new forms. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 500;
}

.checkbox-label input,
.newsletter-consent input {
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.form-section-heading {
    margin: 1.25rem 0 0;
    font-size: 1.3rem;
}

.form-note {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* Newsletter sign-up (footer and Machinery page). */
.newsletter-form {
    max-width: 520px;
    gap: 0.6rem;
}

.newsletter-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-row input {
    flex: 1;
    min-width: 0;
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.8rem;
    margin: 0;
}

.footer-newsletter {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-newsletter h3 {
    margin: 0 0 0.3rem;
    color: #fff;
    font-size: 1.1rem;
}

.footer-newsletter p {
    margin: 0;
}

.footer-newsletter .newsletter-consent {
    color: #c9cae6;
}

.footer-newsletter .newsletter-consent a {
    color: #fff;
}

.footer-newsletter input[type="email"] {
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 760px) {
    .footer-newsletter {
        grid-template-columns: 1fr;
    }
}

/* Machinery page: sell/trade-in and newsletter panels. */
.machinery-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 0;
}

.machinery-panel {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
}

.machinery-panel h2 {
    margin: 0 0 0.4rem;
}

.machinery-panel p {
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

.machine-tradein-link {
    font-size: 0.9rem;
    margin: -0.25rem 0 0;
}

.machine-tradein-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* Case studies and Knowledge Centre. */
a.case-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.case-card:hover h2 {
    color: var(--color-primary);
}

.case-card p {
    color: var(--color-muted);
}

.case-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
    background: var(--color-primary-tint);
    margin-bottom: 2rem;
}

.case-facts span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.case-facts strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.case-gallery h2 {
    margin: 0 0 0.75rem;
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.case-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.case-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem 2.5rem;
}

.case-sections h2 {
    margin: 0 0 0.5rem;
}

.rich-text {
    line-height: 1.7;
}

.rich-text h2,
.rich-text h3 {
    margin: 1.75rem 0 0.5rem;
}

.rich-text ul {
    padding-left: 1.25rem;
}

.rich-text a {
    color: var(--color-primary);
}

.article {
    max-width: 760px;
}

/* Card grids keep a card's natural width when there are only one or two
   items (auto-fill), instead of stretching them across the page. */
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ------------------------------------------------------------------
   Knowledge Centre: search hero, topic tiles, featured guide, cards,
   and an article layout with a sticky "In this guide" contents list.
   ------------------------------------------------------------------ */
.kc-hero .portal-hero-inner {
    padding-bottom: 1rem;
}

.kc-hero .hero-kicker svg {
    width: 16px;
    height: 16px;
}

.kc-search {
    flex-direction: row;
    gap: 0.5rem;
    max-width: 640px;
    margin: 1.25rem 0 1.5rem;
}

.kc-search input {
    flex: 1;
    min-width: 0;
}

.kc-hero .kc-search input {
    border-color: rgba(255, 255, 255, 0.35);
}

.kc-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: -3.5rem 0 2.5rem;
    position: relative;
    z-index: 2;
}

.kc-topic {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 30px -22px rgba(38, 34, 98, 0.45);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.kc-topic:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.kc-topic .highlight-icon {
    margin-bottom: 0.75rem;
}

.kc-topic h2 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem;
}

.kc-topic p {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin: 0 0 0.6rem;
}

.kc-topic-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
}

.kc-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 0 3rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-primary-dark) 100%);
}

.kc-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.kc-featured-body {
    padding: 2.25rem 2rem;
    align-self: center;
}

.kc-featured:not(:has(.kc-featured-image)) {
    grid-template-columns: 1fr;
}

.kc-featured h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0.5rem 0 0.6rem;
    color: #fff;
}

.kc-featured p {
    color: rgba(255, 255, 255, 0.78);
}

.kc-featured .kc-meta span:not(.kc-chip) {
    color: rgba(255, 255, 255, 0.7);
}

.kc-featured .kc-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.kc-featured .kc-chip-strong {
    background: var(--color-secondary);
}

@media (max-width: 760px) {
    .kc-featured {
        grid-template-columns: 1fr;
    }

    .kc-featured-image {
        min-height: 180px;
    }
}

.kc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.kc-chip {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
}

.kc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 2.5rem;
}

.kc-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kc-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 16px 34px -22px rgba(38, 34, 98, 0.5);
}

.kc-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.kc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.35rem;
}

.kc-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.45rem;
}

.kc-card-body > p:not(.kc-meta) {
    color: var(--color-muted);
    margin: 0 0 1rem;
}

.kc-card-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.kc-topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
}

.kc-topic-nav a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
}

.kc-topic-nav a:hover,
.kc-topic-nav a.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.kc-topic-nav a.is-active {
    background: var(--color-primary-tint);
    font-weight: 600;
}

.kc-topic-nav span {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.kc-ask {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    margin: 1rem 0 0;
}

.kc-ask h2 {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
}

.kc-ask p {
    margin: 0;
    color: var(--color-muted);
}

@media (max-width: 760px) {
    .kc-ask {
        grid-template-columns: 1fr;
    }
}

/* Article page. */
.kc-article-header {
    max-width: 820px;
    margin-bottom: 1.75rem;
}

.kc-article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 0.4rem 0 0.75rem;
}

.kc-lede {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin: 0 0 0.75rem;
}

.kc-byline {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.kc-article-layout {
    display: block;
}

.kc-article-layout.has-toc {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.kc-toc {
    position: sticky;
    top: 1.5rem;
    border-left: 3px solid var(--color-secondary);
    padding: 0.25rem 0 0.25rem 1rem;
}

.kc-toc p {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.kc-toc ol {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.kc-toc li {
    margin-bottom: 0.4rem;
}

.kc-toc a {
    color: var(--color-text);
    text-decoration: none;
}

.kc-toc a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.kc-article {
    max-width: 760px;
}

.kc-article .rich-text h2 {
    font-size: 1.6rem;
    scroll-margin-top: 1.5rem;
}

.kc-key-points {
    background: var(--color-secondary-tint);
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.4rem;
    margin: 0 0 1.75rem;
}

.kc-key-points h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.kc-key-points ul {
    margin: 0;
    padding-left: 1.2rem;
}

.kc-key-points li {
    margin-bottom: 0.3rem;
}

.kc-faqs {
    margin-top: 2.5rem;
    scroll-margin-top: 1.5rem;
}

.kc-faqs h2 {
    font-size: 1.6rem;
}

.kc-faqs details {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.6rem;
}

.kc-faqs summary {
    cursor: pointer;
    font-weight: 600;
}

.kc-faqs details[open] summary {
    margin-bottom: 0.5rem;
}

.kc-faqs details p {
    margin: 0;
    color: var(--color-text);
}

.kc-disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .kc-article-layout.has-toc {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kc-toc {
        position: static;
    }
}

.kc-home-heading {
    justify-content: space-between;
}

.kc-grid-home {
    margin-bottom: 3rem;
}

/* Made-to-order machines and model comparison tables */
.machine-badge-order {
    background: #e9e9f6;
    color: #262262;
}

.machine-details > :only-child {
    grid-column: 1 / -1;
    max-width: 75ch;
}

.model-specs {
    margin-top: 2.5rem;
}

.model-specs + .model-specs {
    margin-top: 1rem;
}

.model-table {
    min-width: 560px;
}

.model-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.model-table th[scope="row"] {
    width: auto;
    white-space: nowrap;
}

.model-table tbody tr:nth-child(even) {
    background: var(--color-primary-tint, #f4f4fa);
}

/* Machine pages: let grid columns shrink on phones (thumbnail rows, tables) */
.product-detail > *,
.machine-details > * {
    min-width: 0;
}

/* Show the whole machine photo, not a crop of it */
.machine-gallery .product-image-large {
    object-fit: contain;
}

/* ------------------------------------------------------------------
   Baler selector and savings calculator
   ------------------------------------------------------------------ */
.selector-form {
    max-width: none;
    gap: 1.75rem;
}

.selector-step {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.selector-step legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.selector-step legend small {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.selector-step-number {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.95rem;
}

.selector-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.selector-option {
    position: relative;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    margin: 0;
    font-weight: 400;
}

.selector-option[hidden] {
    display: none;
}

.selector-option:hover {
    border-color: var(--color-primary);
}

.selector-option input {
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
    flex: none;
    width: auto;
}

.selector-option span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.selector-option small {
    color: var(--color-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.selector-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-tint);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.selector-option:has(input:focus-visible) {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.selector-submit {
    align-self: flex-start;
}

.selector-results {
    margin-top: 3rem;
    scroll-margin-top: 1.5rem;
}

.selector-note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff4e0;
    color: #6b4600;
}

.selector-picks {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.selector-pick {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
}

.selector-pick.is-best {
    border-color: var(--color-primary);
    box-shadow: 0 14px 30px -18px rgba(38, 34, 98, 0.55);
}

.selector-pick > * {
    min-width: 0;
}

.selector-pick-label {
    position: absolute;
    top: -0.7rem;
    left: 1.25rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.selector-pick-label-alt {
    background: var(--color-muted);
}

.selector-pick-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: var(--color-primary-tint);
}

.selector-pick-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.selector-pick-body h3 a {
    color: inherit;
    text-decoration: none;
}

.selector-pick-model {
    color: var(--color-primary);
    margin: 0 0 0.6rem;
}

.selector-pick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 0;
}

.savings-calculator {
    margin-top: 3rem;
    padding: 1.75rem;
    border-radius: 16px;
    background: var(--color-primary-tint);
}

.savings-calculator h2 {
    margin-top: 0;
}

.savings-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.savings-inputs label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.savings-inputs input {
    max-width: 100%;
    font-size: 1.1rem;
}

.savings-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.savings-results > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #fff;
}

.savings-results span {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.savings-results strong {
    font-size: 1.6rem;
    color: var(--color-primary-dark, #262262);
}

.savings-results small {
    color: var(--color-muted);
}

.savings-results .savings-total {
    background: var(--color-primary);
}

.savings-results .savings-total span,
.savings-results .savings-total strong,
.savings-results .savings-total small {
    color: #fff;
}

.selector-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--color-primary-dark, #262262), var(--color-primary));
    color: #fff;
}

.selector-promo h2 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-size: 1.35rem;
}

.selector-promo p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
}

.selector-promo .button {
    background: #fff;
    color: var(--color-primary-dark, #262262);
    border-color: #fff;
}

@media (max-width: 640px) {
    .selector-pick {
        grid-template-columns: 1fr;
    }

    .selector-pick-photo img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .selector-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .selector-option {
        padding: 0.65rem 0.7rem;
        gap: 0.45rem;
        font-size: 0.9rem;
    }

    .selector-option small {
        font-size: 0.75rem;
    }
}

/* ------------------------------------------------------------------
   DWS brand logos
   ------------------------------------------------------------------ */
.brand-logo,
.footer-logo,
.brand-mark {
    display: inline-block;
    line-height: 0;
}

.brand-logo img {
    display: block;
    height: 84px;
    width: auto;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand {
    margin: 0 0 1rem;
}

.footer-logo img {
    display: block;
    height: 76px;
    width: auto;
}

@media (max-width: 760px) {
    .brand-logo img {
        height: 60px;
    }
}

/* Certification logos: let a logo fill its round frame, and footer badges */
.cert-seal:has(.cert-logo) {
    width: 124px;
    height: 124px;
    padding: 4px;
}

.cert-seal .cert-logo {
    padding: 3px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-badges img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

/* Charity partner logos on the Certifications page */
.charity-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 128px;
    height: 92px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--color-border);
}

.charity-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.charity-card:has(.charity-logo) {
    align-items: center;
}

@media (max-width: 480px) {
    .charity-card:has(.charity-logo) {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ------------------------------------------------------------------
   "Giving back" band (homepage) and footer charity logos
   ------------------------------------------------------------------ */
.giving-back {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
    margin: 0 0 3.5rem;
    padding: 2.25rem 2.5rem 2.25rem 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: linear-gradient(115deg, var(--color-secondary-tint) 0%, #fff 48%, var(--color-primary-tint) 100%);
    overflow: hidden;
}

.giving-back::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(var(--color-secondary), var(--color-primary));
}

.giving-back-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

.giving-back-kicker svg {
    width: 16px;
    height: 16px;
}

.giving-back h2 {
    margin: 0.5rem 0 0.6rem;
}

.giving-back p {
    margin: 0 0 1rem;
    color: var(--color-muted);
    max-width: 46ch;
}

.giving-back-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.giving-back-link:hover {
    text-decoration: underline;
}

.giving-back-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.giving-back-logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 132px;
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 0 0 1px var(--color-border),
        0 14px 30px -20px rgba(38, 34, 98, 0.5);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.giving-back-logos li:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px var(--color-border),
        0 20px 36px -20px rgba(38, 34, 98, 0.55);
}

.giving-back-logos img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.giving-back-name {
    font-weight: 600;
    text-align: center;
    color: var(--color-primary-dark);
}

@media (max-width: 760px) {
    .giving-back {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem 1.25rem 1.75rem 1.5rem;
    }

    .giving-back-logos {
        justify-content: flex-start;
        gap: 0.85rem;
    }

    .giving-back-logos li {
        width: calc(50% - 0.45rem);
        height: 104px;
        padding: 0.85rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .giving-back-logos li {
        transition: none;
    }

    .giving-back-logos li:hover {
        transform: none;
    }
}

.footer-supporters-label {
    margin-bottom: 0.6rem;
}

.footer-supporters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 0.25rem;
}

.footer-supporters span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 60px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #fff;
}

.footer-supporters img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-footer .footer-badges-heading {
    margin-top: 1.75rem;
}

.footer-badges-heading + .footer-badges {
    margin-top: 0;
}

/* ------------------------------------------------------------------
   Shop and machine cards: same card style as the rest of the site
   (16px corners, white, soft shadow, photo edge to edge on top)
   ------------------------------------------------------------------ */
.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0 1.5rem 1.5rem;
    box-shadow: 0 18px 40px -26px rgba(38, 34, 98, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -24px rgba(38, 34, 98, 0.5);
}

.product-card > a:first-child {
    display: block;
    margin: 0 -1.5rem 1.25rem;
    text-decoration: none;
}

.product-card .product-image,
.product-card:hover .product-image {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-primary-tint);
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card:hover {
        transform: none;
        transition: none;
    }
}

/* ------------------------------------------------------------------
   Tagline statement (homepage) — "Engineering a Sustainable Tomorrow"
   ------------------------------------------------------------------ */
.tagline-statement {
    max-width: 900px;
    margin: 3.75rem auto 4.25rem;
    padding: 0 1rem;
    text-align: center;
}

.tagline-arrows {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
}

.tagline-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

.tagline-kicker::before,
.tagline-kicker::after {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.tagline-title {
    margin: 0.6rem 0 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.tagline-title span {
    color: var(--color-secondary);
}

.tagline-text {
    max-width: 62ch;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-muted);
}

.footer-tagline {
    margin-left: 0.35rem;
    color: #9fdcb8;
    font-weight: 600;
}

.footer-tagline::before {
    content: "· ";
    color: inherit;
}

/* Stock and condition badges keep their natural width inside cards. */
.product-card .stock-badge,
.product-card .machine-badges {
    align-self: flex-start;
}

/* ------------------------------------------------------------------
   Machine photo gallery: one photo at a time with arrows and thumbnails
   ------------------------------------------------------------------ */
.gallery-stage {
    position: relative;
    max-width: 480px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    outline: none;
}

.gallery-stage:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary);
}

.gallery-stage .product-image-large {
    margin-bottom: 0;
}

.machine-gallery.is-enhanced .gallery-slide {
    display: none;
}

.machine-gallery.is-enhanced .gallery-slide.is-active {
    display: block;
}

.machine-gallery:not(.is-enhanced) .gallery-slide:not(:first-child) {
    display: none;
}

.gallery-slide.from-right {
    animation: gallery-in-right 0.35s ease;
}

.gallery-slide.from-left {
    animation: gallery-in-left 0.35s ease;
}

@keyframes gallery-in-right {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

@keyframes gallery-in-left {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-dark);
    box-shadow: 0 6px 18px -6px rgba(38, 34, 98, 0.55);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav[hidden] {
    display: none;
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.gallery-nav:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.gallery-nav svg {
    width: 22px;
    height: 22px;
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

.gallery-count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(27, 26, 58, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.gallery-count[hidden] {
    display: none;
}

.machine-thumbs .gallery-thumb {
    display: block;
    border-radius: 8px;
    outline: none;
}

.machine-thumbs .gallery-thumb img {
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.machine-thumbs .gallery-thumb:hover img,
.machine-thumbs .gallery-thumb.is-active img {
    opacity: 1;
}

.machine-thumbs .gallery-thumb.is-active img {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.machine-thumbs .gallery-thumb:focus-visible img {
    box-shadow: 0 0 0 3px var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide.from-right,
    .gallery-slide.from-left {
        animation: none;
    }
}

/* Engineer card: jobs attended, from Field Ascend's job records. */
.trump-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    background: var(--color-secondary-tint);
    color: var(--color-secondary-dark);
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}

.trump-track svg {
    width: 13px;
    height: 13px;
    flex: none;
}
