/*
   Artha WearTech Design System
   Purpose: normalize public and admin-facing UI primitives across templates
   without changing page intent or business content.

   Structure mirrors the ThinkArtha design system: brand tokens in :root,
   semantic component classes below. No utility framework and no build step -
   edit this file and reload.
*/

:root {
    /* Ink - deep industrial navy */
    --wt-ink-950: #070a12;
    --wt-ink-900: #0b1020;
    --wt-ink-800: #101830;
    --wt-ink-700: #17223f;
    --wt-ink-600: #1f2d52;

    /* Brand blue - taken from the WearTech logo (#0070e0 mark, #003087 navy) */
    --wt-brand-50: #eef5ff;
    --wt-brand-100: #d9e8fd;
    --wt-brand-200: #b6d4fb;
    --wt-brand-300: #7fb5f5;
    --wt-brand-400: #3f97ec;
    --wt-brand-500: #0070e0;
    --wt-brand-600: #005ec0;
    --wt-brand-700: #003087;
    --wt-brand-rgb: 0 112 224;

    /* Steel - neutrals */
    --wt-steel-50: #f7f8fa;
    --wt-steel-100: #eef0f4;
    --wt-steel-200: #dfe3ea;
    --wt-steel-300: #c6ccd8;
    --wt-steel-400: #98a2b3;
    --wt-steel-500: #6b7684;
    --wt-steel-600: #4b5563;
    --wt-steel-700: #364152;
    --wt-white: #ffffff;

    /* Status */
    --wt-success-700: #047857;
    --wt-success-600: #059669;
    --wt-success-100: #d1fae5;
    /* "Warning" severity. Amber would be the conventional choice, but the brand
       carries no orange, so this uses the logo navy - deep enough to stay
       distinct from the lighter --wt-info-* cyan it sits beside in the console. */
    --wt-warning-700: #002a6b;
    --wt-warning-600: #003087;
    --wt-warning-100: #d7e3f7;
    --wt-error-700: #b91c1c;
    --wt-error-600: #dc2626;
    --wt-error-100: #fee2e2;
    --wt-info-700: #0369a1;
    --wt-info-600: #0284c7;
    --wt-info-100: #e0f2fe;
    --wt-violet-100: #ede9fe;
    --wt-violet-800: #5b21b6;

    /* Semantic mapping */
    --bg-primary: var(--wt-white);
    --bg-secondary: var(--wt-steel-50);
    --bg-tertiary: var(--wt-steel-100);
    --text-primary: var(--wt-ink-900);
    --text-secondary: var(--wt-steel-600);
    --text-tertiary: var(--wt-steel-500);
    --accent: var(--wt-brand-500);
    --accent-strong: var(--wt-brand-600);
    --border-color: var(--wt-steel-200);
    --border-strong: var(--wt-steel-300);

    /* Typography scale */
    --type-display: clamp(2.25rem, 5.4vw, 4.25rem);
    --type-hero: clamp(2rem, 4.4vw, 3.375rem);
    --type-section: clamp(1.75rem, 3.4vw, 2.75rem);
    --type-subsection: clamp(1.625rem, 3vw, 2.375rem);
    --type-card-title: 1.0625rem;
    --type-lede: clamp(1rem, 1.35vw, 1.1875rem);
    --type-body-lg: 1.0625rem;
    --type-body: 0.9375rem;
    --type-body-sm: 0.875rem;
    --type-caption: 0.8125rem;
    --type-eyebrow: 0.6875rem;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Shape and depth */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgb(11 16 32 / 0.06);
    --shadow-lift: 0 1px 2px rgb(11 16 32 / 0.04), 0 12px 32px -8px rgb(11 16 32 / 0.12);
    --shadow-lift-lg: 0 2px 4px rgb(11 16 32 / 0.05), 0 28px 60px -16px rgb(11 16 32 / 0.22);
    --shadow-menu: 0 20px 50px -16px rgb(11 16 32 / 0.28);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    --header-height: 68px;
    --shell-max: 80rem;
}

/* ------------------------------------------------------------- reset ---- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--type-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

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

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

dl, dd, dt, figure, blockquote {
    margin: 0;
}

input, select, textarea, button {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--wt-brand-500);
    color: #fff;
}

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

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

.skip-link:focus {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: var(--space-2) var(--space-4);
    overflow: visible;
    clip: auto;
    border-radius: var(--radius-sm);
    background: var(--wt-ink-900);
    color: #fff;
    font-size: var(--type-body-sm);
    font-weight: 600;
}

/* ------------------------------------------------------------ layout ---- */

.shell {
    width: 100%;
    margin-inline: auto;
    max-width: var(--shell-max);
    padding-inline: var(--space-5);
}

@media (min-width: 768px) {
    .shell {
        padding-inline: var(--space-8);
    }
}

.shell-narrow {
    max-width: 48rem;
}

.site-main {
    flex: 1;
}

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

@media (min-width: 768px) {
    .section {
        padding-block: var(--space-20);
    }
}

.section-tight {
    padding-block: var(--space-12);
}

@media (min-width: 768px) {
    .section-tight {
        padding-block: var(--space-16);
    }
}

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

.section-bordered {
    border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------- typography ---- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--type-eyebrow);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wt-brand-600);
}

.eyebrow::before {
    content: '';
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    flex: none;
}

.eyebrow-light {
    color: var(--wt-brand-400);
}

.eyebrow-plain {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.h-display {
    font-size: var(--type-display);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.032em;
}

.h-hero {
    font-size: var(--type-hero);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.028em;
}

.h-section {
    font-size: var(--type-section);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.028em;
}

.h-subsection {
    font-size: var(--type-subsection);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.026em;
}

.h-card {
    font-size: var(--type-card-title);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.014em;
}

.lede {
    font-size: var(--type-lede);
    line-height: 1.65;
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-tertiary);
}

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

.prose-body p {
    font-size: var(--type-body-lg);
    line-height: 1.75;
    color: var(--wt-steel-700);
}

.prose-body p + p {
    margin-top: 1.125rem;
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--type-body);
    padding: 0.8125rem 1.375rem;
    border: 0;
    border-radius: var(--radius);
    transition:
        transform 0.18s var(--ease-out-expo),
        background-color 0.18s,
        border-color 0.18s,
        color 0.18s,
        box-shadow 0.18s;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled='true'] {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--wt-brand-500);
    color: #fff;
    box-shadow: 0 8px 22px -8px rgb(0 112 224 / 0.65);
}

.btn-primary:hover {
    background: var(--wt-brand-600);
    box-shadow: 0 12px 26px -8px rgb(0 112 224 / 0.75);
}

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

.btn-ink:hover {
    background: var(--wt-ink-700);
}

.btn-outline {
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--wt-ink-900);
}

.btn-outline:hover {
    border-color: var(--wt-ink-900);
    background: var(--bg-secondary);
}

.btn-ghost-light {
    border: 1px solid rgb(255 255 255 / 0.28);
    color: #fff;
    background: rgb(255 255 255 / 0.04);
    backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.5);
}

.btn-danger {
    background: var(--wt-error-600);
    color: #fff;
}

.btn-danger:hover {
    background: var(--wt-error-700);
}

.btn-sm {
    padding: 0.5625rem 1rem;
    font-size: var(--type-body-sm);
}

.btn-xs {
    padding: 0.375rem 0.75rem;
    font-size: var(--type-caption);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: var(--type-body-sm);
    color: var(--wt-brand-600);
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

.link-arrow svg {
    transition: transform 0.22s var(--ease-out-expo);
    width: 1rem;
    height: 1rem;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.link-inline {
    color: var(--wt-brand-600);
    font-weight: 600;
}

.link-inline:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------- cards ---- */

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition:
        transform 0.28s var(--ease-out-expo),
        box-shadow 0.28s var(--ease-out-expo),
        border-color 0.28s;
}

.card-pad {
    padding: var(--space-6);
}

.card-pad-sm {
    padding: var(--space-5);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift-lg);
    border-color: var(--border-strong);
}

.card-dark {
    background: rgb(255 255 255 / 0.035);
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    transition:
        transform 0.28s var(--ease-out-expo),
        background-color 0.28s,
        border-color 0.28s;
}

.card-dark:hover {
    transform: translateY(-4px);
    background: rgb(255 255 255 / 0.07);
    border-color: rgb(0 112 224 / 0.45);
}

.card-muted {
    background: var(--bg-secondary);
}

.card-flush {
    overflow: hidden;
}

.card-stack {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--space-6);
}

.card-body-sm {
    padding: var(--space-5);
}

.card-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wt-brand-600);
}

.card-kicker-light {
    color: var(--wt-brand-400);
}

.card-title {
    margin-top: 0.625rem;
    font-size: var(--type-card-title);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.014em;
    color: var(--wt-ink-900);
}

.card-title-lg {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card-desc {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.card-foot {
    margin-top: auto;
    padding-top: var(--space-5);
}

.card-icon {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--wt-brand-50);
    color: var(--wt-brand-600);
}

.card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.card-media {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 16 / 10;
}

.card-media-wide {
    aspect-ratio: 16 / 9;
}

.card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.card:hover .card-media img,
.card-hover:hover .card-media img {
    transform: scale(1.06);
}

/* --------------------------------------------------------- card grids ---- */

.card-grid {
    display: grid;
    gap: var(--space-5);
}

.card-grid-gap-lg {
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .card-grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .card-grid-3,
    .card-grid-4,
    .card-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 767px) {
    .card-grid-3,
    .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----------------------------------------------------------- surfaces ---- */

.surface-ink {
    background:
        radial-gradient(70rem 40rem at 15% -10%, rgb(0 112 224 / 0.16), transparent 62%),
        radial-gradient(58rem 34rem at 92% 8%, rgb(0 48 135 / 0.3), transparent 60%),
        linear-gradient(180deg, var(--wt-ink-950), var(--wt-ink-900) 55%, var(--wt-ink-800));
    color: var(--wt-steel-300);
}

.surface-ink .h-section,
.surface-ink .h-display,
.surface-ink .h-hero {
    color: #fff;
}

.surface-ink .lede {
    color: var(--wt-steel-400);
}

/* Light counterpart to surface-ink. Used for the top of the page - the home
   hero and every page hero - so the site opens bright instead of near-black.
   Everything below the fold that wants contrast still uses surface-ink. */
.surface-sky {
    background:
        radial-gradient(70rem 40rem at 12% -14%, rgb(var(--wt-brand-rgb) / 0.13), transparent 62%),
        radial-gradient(58rem 34rem at 92% 4%, rgb(0 48 135 / 0.07), transparent 60%),
        linear-gradient(180deg, #f2f7ff, #e9f1fb 55%, var(--wt-white));
    color: var(--text-secondary);
}

.surface-sky .h-section,
.surface-sky .h-display,
.surface-sky .h-hero {
    color: var(--wt-ink-900);
}

.surface-sky .lede {
    color: var(--text-secondary);
}

.surface-sky .eyebrow-light,
.surface-sky .card-kicker-light {
    color: var(--wt-brand-600);
}

/* The light-on-dark variants of the shared primitives, restated for a light
   ground so hero markup does not have to change per surface. */
.surface-sky .btn-ghost-light {
    border-color: var(--border-strong);
    background: rgb(255 255 255 / 0.7);
    color: var(--wt-ink-900);
}

.surface-sky .btn-ghost-light:hover {
    border-color: var(--wt-ink-900);
    background: var(--wt-white);
}

.surface-sky .card-dark {
    background: rgb(255 255 255 / 0.78);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.surface-sky .card-dark:hover {
    background: var(--wt-white);
    border-color: rgb(var(--wt-brand-rgb) / 0.45);
    box-shadow: var(--shadow-lift);
}

.hairline {
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------- form ---- */

.field {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.6875rem 0.875rem;
    font-size: var(--type-body);
    transition: border-color 0.16s, box-shadow 0.16s;
}

.field::placeholder {
    color: var(--wt-steel-400);
}

.field:focus {
    outline: none;
    border-color: var(--wt-brand-500);
    box-shadow: 0 0 0 3px rgb(0 112 224 / 0.14);
}

.field-error {
    border-color: var(--wt-error-600);
}

textarea.field {
    resize: vertical;
    min-height: 6rem;
}

.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--wt-steel-700);
    margin-bottom: 0.375rem;
}

.field-required {
    color: var(--wt-brand-500);
}

.field-row {
    display: grid;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .field-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field-stack > * + * {
    margin-top: 0.875rem;
}

.field-hint {
    margin-top: 0.375rem;
    font-size: var(--type-caption);
    color: var(--text-tertiary);
}

.field-message {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--wt-error-600);
}

.field-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding-top: var(--space-1);
    cursor: pointer;
}

.field-consent input {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    flex: none;
    accent-color: var(--wt-brand-500);
}

.field-consent span {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.form-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: var(--space-6);
    box-shadow: var(--shadow-lift);
}

@media (min-width: 640px) {
    .form-card-lg { padding: var(--space-8); }
}

/* -------------------------------------------------------------- alerts ---- */

.alert {
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert + .alert {
    margin-top: var(--space-3);
}

.alert-success {
    border-color: var(--wt-success-600);
    background: var(--wt-success-100);
    color: var(--wt-success-700);
}

.alert-error {
    border-color: #fecaca;
    background: var(--wt-error-100);
    color: var(--wt-error-700);
}

.alert-notice {
    border-color: var(--wt-brand-200);
    background: var(--wt-brand-50);
    color: var(--wt-brand-700);
}

.alert-info {
    border-color: #bae6fd;
    background: var(--wt-info-100);
    color: var(--wt-info-700);
}

/* -------------------------------------------------------------- badges ---- */

.badge {
    display: inline-block;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    padding: 0.125rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-neutral { background: var(--wt-steel-200); color: var(--wt-steel-700); }
.badge-brand   { background: var(--wt-brand-100); color: var(--wt-brand-700); }
.badge-warning { background: var(--wt-warning-100); color: var(--wt-warning-700); }
.badge-success { background: var(--wt-success-100); color: var(--wt-success-700); }
.badge-info    { background: var(--wt-info-100); color: var(--wt-info-700); }
.badge-violet  { background: var(--wt-violet-100); color: var(--wt-violet-800); }
.badge-error   { background: var(--wt-error-100); color: var(--wt-error-700); }

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Chips and tags both label what something applies to, so they share one
   brand-tinted treatment rather than reading as disabled grey text. */
/* Same family as .tag: chips list what a product is used for. Slightly larger
   because they stand alone in a section rather than sitting inside a card. */
.chip {
    border-radius: var(--radius-pill);
    background: var(--wt-brand-100);
    padding: 0.3125rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--wt-brand-700);
    transition: background-color 0.22s, color 0.22s;
}

.chip:hover {
    background: var(--wt-brand-500);
    color: #fff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: var(--space-4);
}

/* Tags carry the industries a capability applies to, which is usually the
   thing a visitor is scanning for, so they are pitched to be read at a glance
   rather than to sit quietly under the description. */
.tag {
    border-radius: var(--radius-pill);
    background: var(--wt-brand-100);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--wt-brand-700);
    transition: background-color 0.22s, color 0.22s;
}

/* Hovering the card lifts its tags to solid brand, so the set a visitor is
   pointing at reads as the active one. */
.card-hover:hover .tag,
a:hover > .tag-list .tag {
    background: var(--wt-brand-500);
    color: #fff;
}

/* --------------------------------------------------------------- lists ---- */

.check-list {
    display: grid;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .check-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.check-mark {
    display: flex;
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    margin-top: 0.125rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--wt-brand-100);
    color: var(--wt-brand-600);
}

.check-mark svg {
    width: 0.75rem;
    height: 0.75rem;
}

.check-mark-solid {
    background: var(--wt-brand-500);
    color: #fff;
}

.check-list li span:last-child {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.check-list-sm li span:last-child {
    font-size: 0.84rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.feature-list li span:last-child {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.link-list li + li {
    margin-top: 0.625rem;
}

.link-list a {
    font-size: 0.875rem;
    color: var(--wt-steel-400);
    transition: color 0.18s;
}

.link-list a:hover {
    color: var(--wt-brand-400);
}

.divided-list {
    border-block: 1px solid var(--border-color);
}

.divided-list li + li {
    border-top: 1px solid var(--border-color);
}

.divided-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-4);
}

.divided-list a:hover .divided-list-title {
    color: var(--wt-brand-600);
}

.divided-list-title {
    display: block;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--wt-ink-900);
    transition: color 0.18s;
}

.divided-list-meta {
    display: block;
    margin-top: 0.125rem;
    font-size: var(--type-caption);
    color: var(--text-tertiary);
}

.divided-list svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: var(--wt-steel-400);
    transition: transform 0.2s, color 0.2s;
}

.divided-list a:hover svg {
    transform: translateX(4px);
    color: var(--wt-brand-600);
}

/* --------------------------------------------------------- stat blocks ---- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--border-color);
}

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

.stat-cell {
    height: 100%;
    padding: var(--space-6);
    background: #fff;
}

.stat-row-dark .stat-cell {
    background: var(--wt-ink-900);
}

.stat-value {
    font-size: clamp(1.875rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--wt-brand-500);
}

/* On the ink surface the 500 is too dark to read, so the lighter step carries
   the figure there. The suffix inherits either way - it used to be coloured
   separately, which is what split "30 yrs" into two colours. */
.stat-row-dark .stat-value {
    color: var(--wt-brand-400);
}

.stat-label {
    display: block;
    margin-top: var(--space-2);
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-tertiary);
}

.stat-row-dark .stat-label {
    color: var(--wt-steel-400);
}

.metric-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.metric-cell {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    padding: var(--space-5);
}

.metric-value {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--wt-ink-900);
}

.metric-label {
    margin-top: 0.625rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* ---------------------------------------------------------- spec table ---- */

.spec-table {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.spec-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: 0.875rem var(--space-5);
    background: var(--bg-secondary);
}

.spec-row:nth-child(even) {
    background: #fff;
}

@media (min-width: 640px) {
    .spec-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-6);
    }
    .spec-row dd { text-align: right; }
}

.spec-row dt {
    font-size: var(--type-caption);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.spec-row dd {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wt-ink-900);
}

/* ----------------------------------------------------------- utilities ---- */

.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.cluster-tight { gap: var(--space-2); }

.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.text-center { text-align: center; }
.text-right { text-align: left; }
@media (min-width: 640px) { .text-right { text-align: right; } }

.hide { display: none !important; }

@media (max-width: 639px) {
    .hide-sm { display: none !important; }
}

@media (max-width: 1279px) {
    .hide-xl-down { display: none !important; }
}

@media (min-width: 1280px) {
    .hide-xl-up { display: none !important; }
}

.line-clamp-3,
.line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; line-clamp: 4; }

.tabular { font-variant-numeric: tabular-nums; }

.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------------------------------------------------------- animation ---- */

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/*
   `.reveal` only hides once site.js confirms it can observe the element.
   Without JavaScript the js-reveal class is never set, so content stays visible.
*/
.js-reveal .reveal { opacity: 0; }

.js-reveal .reveal.is-visible {
    animation: reveal-up 0.72s var(--ease-out-expo) forwards;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 3.5rem;
    animation: marquee 38s linear infinite;
}

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

.marquee-item {
    display: flex;
    width: 8rem;
    height: 3rem;
    flex: none;
    align-items: center;
    justify-content: center;
}

/* Client logos run in their own brand colours. They are third-party marks, so
   they are shown as supplied rather than desaturated to match the palette. */
.marquee-item img {
    max-height: 2.75rem;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}

.marquee-label {
    margin-bottom: var(--space-8);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wt-steel-400);
}

.spin {
    animation: spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js-reveal .reveal { opacity: 1; }
    .js-reveal .reveal.is-visible { animation: none; }
    .marquee-track { animation: none; }
    .btn:active { transform: none; }
    .card-hover:hover,
    .card-dark:hover { transform: none; }
    .card:hover .card-media img { transform: none; }
}

/* Icons default to 1rem square; component rules above override where needed. */
.icon {
    width: 1rem;
    height: 1rem;
    flex: none;
    display: inline-block;
    vertical-align: middle;
}
