/* =====================================================================
 * Inter — self-hosted VARIABLE woff2 (wght axis, latin). One file carries
 * every weight AND lets the hero/heading weight animate (the "settle").
 * font-display: swap keeps text visible while the face loads.
 * ===================================================================== */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}

/* =====================================================================
 * NEW DESIGN TOKENS — Phase 1 (additive)
 * Old tokens below are preserved for backward-compat; Phase 2 migrates
 * existing selectors to the new tokens and deletes the legacy block.
 * ===================================================================== */
:root {
    /* Surfaces */
    --surface-cream:        #FCFAF6;
    --surface-elevated:     #FFFFFF;
    --surface-cream-strong: #F5F0E6;

    /* Ink (new naming, more granular) */
    --ink-primary:    #0A2540;
    --ink-secondary:  rgba(10, 37, 64, 0.72);
    --ink-faint-new:  rgba(10, 37, 64, 0.48);
    --ink-disabled:   rgba(10, 37, 64, 0.28);

    /* Accent (new — Phase 2 will replace old --accent) */
    --accent-new:        #1F6FEB;
    --accent-strong-new: #0B4FB8;
    --accent-soft:       #DCEAFB;

    /* Lines */
    --line-cream:  rgba(150, 120, 70, 0.10);

    /* Semantic */
    --success: #0F7D55;
    --danger:  #B0322C;

    /* Type — Inter is the single typeface across the whole site.
       Falls back to the OS UI font (SF Pro on macOS) before Inter loads. */
    --font-sans: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: var(--font-sans);   /* heading face; design B/C override this */

    /* Modular scale: 1.250 (minor third), with clamp() for fluid sizing */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-md:   1.125rem;
    --text-lg:   clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
    --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
    --text-2xl:  clamp(2rem, 1.6rem + 2vw, 2.75rem);
    --text-3xl:  clamp(2.75rem, 2rem + 4vw, 4.5rem);

    --leading-tight:   1.05;
    --leading-snug:    1.2;
    --leading-normal:  1.5;
    --leading-relaxed: 1.65;

    --tracking-tight:    -0.02em;
    --tracking-normal:   0;
    --tracking-wide:     0.08em;
    --tracking-eyebrow:  0.18em;

    /* Spacing — 4px base */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  3rem;
    --space-8:  4rem;
    --space-9:  6rem;
    --space-10: 8rem;
    --section-y: clamp(5rem, 4rem + 5vw, 11rem); /* more air on wide screens = more premium */

    /* Radius (Phase 2 replaces the legacy mega-radius) */
    --radius-sm:   6px;
    --radius-md:   14px;
    --radius-lg:   24px;
    --radius-pill: 999px;

    /* Shadows (Phase 2 replaces the legacy --shadow) */
    --shadow-subtle:   0 1px 2px rgba(10, 37, 64, 0.04),
                       0 2px 8px rgba(10, 37, 64, 0.04);
    --shadow-elevated: 0 4px 12px rgba(10, 37, 64, 0.06),
                       0 16px 40px rgba(10, 37, 64, 0.08);
    --shadow-strong:   0 12px 32px rgba(31, 111, 235, 0.18),
                       0 24px 64px rgba(10, 37, 64, 0.12);

    /* Motion */
    --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 160ms;
    --duration-base: 280ms;
    --duration-slow: 520ms;

    /* Layout (new) */
    --container-new:    min(1280px, 100% - 48px);
    --container-narrow: min(880px, 100% - 48px);
    --max-prose:        68ch;
}

/* =====================================================================
 * LEGACY TOKENS — preserved for backward-compat. Phase 2 will rename
 * selectors to use the new tokens above, then remove this block.
 * ===================================================================== */
:root {
    --surface: rgba(255, 255, 255, 0.64);
    --ink: #071d31;
    --ink-soft: rgba(7, 29, 49, 0.72);
    --ink-faint: rgba(7, 29, 49, 0.46);
    --line: rgba(83, 150, 205, 0.18);
    --line-strong: rgba(83, 150, 205, 0.32);
    --accent: #4fbfff;
    --accent-strong: #118bea;
    --shadow: 0 34px 110px rgba(18, 70, 119, 0.13);
    --radius: 34px;
    --container: min(1200px, calc(100vw - 56px));
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

/* Anchor jumps (#contact, #apply, #activity-*, skip-link) land below the fixed
   header — native scroll offset (applied to the destinations, not just :target). */
:target,
section[id],
main[id],
[id^="activity-"] {
    scroll-margin-top: 100px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at 50% 0%, rgba(160, 224, 255, 0.5), transparent 28%),
        linear-gradient(180deg, #f9fdff 0%, #eef6ff 36%, #f8fbff 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.18) 48%, rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at 12% 14%, rgba(79, 191, 255, 0.14), transparent 22%);
    pointer-events: none;
    z-index: -3;
}

body.has-menu-open {
    overflow: hidden;
}

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

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

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

button,
a,
canvas {
    -webkit-tap-highlight-color: transparent;
}

.site-header,
.section,
.site-footer {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    z-index: 40;
    transition: padding 0.35s var(--ease);
}

/* Scrolled state: solid floating bar, hairline + shadow (no glass blur —
   blur is off-brand and a mobile paint cost; a crisp solid reads more precise). */
.site-header.is-scrolled {
    padding: 10px 24px;
    background: var(--surface-elevated, #FFFFFF);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.12));
    border-radius: var(--radius-pill, 999px);
    box-shadow: var(--shadow-elevated);
}

.brand {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Logo lockup (emblem + DATASCOPE wordmark). Intrinsic 589×81; capped by
   height here so the header owns the display size and the ratio holds. */
.brand__logo {
    display: block;
    height: 40px;
    width: auto;
    transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .brand__logo {
    height: 34px;
}

@media (max-width: 760px) {
    .brand__logo { height: 32px; }
}

.brand__name {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: var(--ink-primary, #0A2540);
}

.brand__tag {
    font-size: 0.7rem;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.menu-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 2;
}

.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--ink-primary, #0A2540);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

.menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* Flat inline nav — no glass pill (matches the minimal light direction) */
.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    transition: color 0.2s var(--ease-out, ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink-primary, #0A2540);
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Buttons — solid accent (gradient dropped per the new design tokens) */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: var(--radius-pill, 999px);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.28s var(--ease-out, ease),
        box-shadow 0.28s var(--ease-out, ease),
        border-color 0.28s var(--ease-out, ease),
        background 0.28s var(--ease-out, ease);
}

.button--primary {
    color: #fff;
    background: var(--accent-new, #1F6FEB);
    box-shadow: var(--shadow-subtle);
}

.button--primary:hover {
    background: var(--accent-strong-new, #0B4FB8);
    box-shadow: var(--shadow-elevated);
}

.button--ghost {
    color: var(--ink-primary, #0A2540);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    background: transparent;
}

.button--ghost:hover {
    background: var(--accent-soft, #DCEAFB);
    border-color: var(--accent-new, #1F6FEB);
}

.button:hover {
    transform: translateY(-1px);
}

h1,
h2,
h3,
.contact-direct strong {
    font-family: var(--font-sans);
    font-weight: 600;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 10ch;
    margin-bottom: 22px;
    font-size: clamp(4rem, 8vw, 7.4rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
    font-weight: 600;
}

h2 {
    max-width: 13ch;
    margin-bottom: 16px;
    font-size: clamp(3rem, 4.2vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    font-weight: 600;
}

h3 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 600;
}

p {
    color: var(--ink-soft);
    line-height: 1.78;
    font-size: 1rem;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.76rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(7, 29, 49, 0.44);
}

.section {
    position: relative;
    padding: 150px 0;
}

.section-heading {
    margin-bottom: 56px;
}

.section-heading--compact {
    margin-bottom: 40px;
}

.section-heading p {
    max-width: 60ch;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
    padding: 44px;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid rgba(100, 177, 234, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.18)),
        radial-gradient(circle at top left, rgba(155, 223, 255, 0.24), transparent 46%);
    box-shadow: 0 36px 110px rgba(24, 91, 145, 0.12);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0;
}

.contact-direct {
    display: grid;
    gap: 16px;
}

.contact-direct a,
.contact-direct p {
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.contact-direct p:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-direct span {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.contact-direct strong {
    display: block;
    font-size: clamp(1.45rem, 2.2vw, 2.35rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 10px;
}

.contact-form span {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(108, 176, 231, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--ink);
    outline: none;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(19, 139, 234, 0.52);
    box-shadow: 0 0 0 4px rgba(19, 139, 234, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

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

.contact-form__message {
    grid-column: 1 / -1;
}

.contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.contact-form__note {
    margin: 0;
    max-width: 34ch;
    font-size: 0.92rem;
    color: var(--ink-faint);
}

.contact-form__note.is-success {
    color: rgba(7, 101, 64, 0.9);
}

/* =====================================================================
 * SITE FOOTER — Phase 1 4-col cream surface
 * Markup: see partials/footer.php
 * Tokens: uses new --surface-cream, --ink-*, --space-*, --text-*
 * ===================================================================== */
.site-footer {
    margin-top: var(--space-9, 6rem);
    padding: 0;
    background: var(--surface-cream, #FCFAF6);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: normal;
    font-size: var(--text-base, 1rem);
}

.site-footer__inner {
    display: grid;
    gap: var(--space-7, 3rem);
    grid-template-columns: 1.4fr 1fr 1.3fr 0.8fr;
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    padding: var(--space-9, 6rem) 0 var(--space-7, 3rem);
}

.site-footer__col--brand {
    align-self: start;
}

.site-footer__brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--ink-primary, #0A2540);
    text-decoration: none;
}

.site-footer__name {
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: var(--text-sm, 0.875rem);
}

.site-footer__tag {
    font-size: var(--text-xs, 0.75rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
}

.site-footer__heading {
    margin: 0 0 var(--space-4, 1rem);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 0.75rem);
}

.site-footer__list a,
.site-footer__list span {
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    text-decoration: none;
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
    transition: color var(--duration-fast, 160ms) var(--ease-out, ease);
}

/* trace motif: the footer underline DRAWS left-to-right on hover/focus */
.site-footer__list a {
    position: relative;
    display: inline-block;
}
.site-footer__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s var(--ease-out);
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible {
    color: var(--ink-primary, #0A2540);
}
.site-footer__list a:hover::after,
.site-footer__list a:focus-visible::after {
    transform: scaleX(1);
}

.site-footer__muted {
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    font-style: italic;
}

.site-footer__base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 1rem);
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    padding: var(--space-5, 1.5rem) 0 var(--space-7, 3rem);
    border-top: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
    font-size: var(--text-xs, 0.75rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.site-footer__base p {
    margin: 0;
}

.site-footer__legal {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
}

.site-footer__legal a {
    color: inherit;
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--ink-primary, #0A2540);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1080px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7, 3rem) var(--space-6, 2rem);
        padding-top: var(--space-8, 4rem);
        padding-bottom: var(--space-6, 2rem);
    }
}

@media (max-width: 600px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-6, 2rem);
    }

    .site-footer__base {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================================
 * 404 — Not Found page
 * ===================================================================== */
.not-found {
    padding: clamp(7rem, 12vw, 12rem) 0 clamp(4rem, 6vw, 7rem);
}

.not-found__inner {
    width: var(--container-narrow, min(880px, 100% - 48px));
    margin: 0 auto;
    text-align: left;
}

.not-found__code {
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    margin-bottom: var(--space-4, 1rem);
}

.not-found__title {
    margin: 0 0 var(--space-5, 1.5rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 18ch;
}

.not-found__lede {
    margin: 0 0 var(--space-7, 3rem);
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
}

/* =====================================================================
 * PAGE HERO — reusable hero for non-home pages
 * Markup: partials/hero.php
 * ===================================================================== */
.page-hero {
    padding: clamp(6rem, 8vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
}

.page-hero__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    gap: var(--space-7, 3rem);
    align-items: center;
}

.page-hero--with-image .page-hero__inner {
    grid-template-columns: 5fr 7fr;
}

.page-hero__title {
    margin: 0 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 14ch;
}

.page-hero__subtitle {
    margin: 0;
    max-width: 60ch;
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.page-hero__media {
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--surface, #F4F8FC);
    box-shadow: var(--shadow-subtle);
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1080px) {
    .page-hero--with-image .page-hero__inner {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
 * CTA STRIP — recurring partnership CTA above footer
 * Markup: partials/cta-strip.php
 * ===================================================================== */
.cta-strip {
    padding: clamp(4rem, 6vw, 6rem) 0;
}

.cta-strip__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-7, 3rem);
    align-items: end;
    padding: clamp(2.5rem, 4vw, 4rem);
    border-radius: var(--radius-lg, 24px);
    background: var(--surface-cream, #FCFAF6);
    border: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
}

.cta-strip__title {
    margin: 0 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 18ch;
}

.cta-strip__lede {
    margin: 0;
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    line-height: var(--leading-relaxed, 1.65);
}

.cta-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .cta-strip__inner {
        grid-template-columns: 1fr;
        gap: var(--space-5, 1.5rem);
    }

    .cta-strip__actions {
        justify-content: flex-start;
    }
}

/* Scroll reveal is opt-in via JS: the hidden start state only applies once
   `.has-js` is set (see head.php). Without JS, [data-reveal] content is fully
   visible by default, so no-JS users, SEO crawlers, and social bots never get
   a blank section. */
.has-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, var(--reveal-y, 30px), 0);
    transition:
        opacity var(--reveal-dur, 0.7s) var(--ease),
        transform var(--reveal-dur, 0.7s) var(--ease);
    /* cascade within a group: order set per-parent in site.js, cap 6, 80ms step */
    transition-delay: calc(min(var(--reveal-order, 0), 6) * 80ms);
}

.has-js [data-reveal="left"] {
    transform: translate3d(var(--reveal-x, 34px), 0, 0);
}

.has-js [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Motion hierarchy: the section lead travels more + resolves slower (it carries
   weight); card followers stay tight so a row cascades as one gesture. */
.has-js .section-heading[data-reveal] { --reveal-y: 50px; --reveal-dur: 0.85s; }
.has-js .product-card[data-reveal],
.has-js .activity-item[data-reveal],
.has-js .category-card[data-reveal],
.has-js .team-card[data-reveal] { --reveal-y: 20px; --reveal-dur: 0.6s; }

/* The "draw" motif on photos: as a card reveals, its image wipes in L→R
   (same direction as the hero trace). Compositor-friendly clip-path only. */
@keyframes cal-clip-wipe {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}
/* Wipe OBJECTS (products, event photos); faces just fade with dignity via the
   card's own reveal — no clip-wipe on team portraits. Wrapped in no-preference
   so reduced-motion users never get a clipped (hidden) image. */
@media (prefers-reduced-motion: no-preference) {
    .has-js .product-card__media img,
    .has-js .activity-item__media img {
        clip-path: inset(0 100% 0 0);
    }
    .has-js [data-reveal].is-visible .product-card__media img,
    .has-js [data-reveal].is-visible .activity-item__media img {
        clip-path: inset(0 0 0 0); /* robust final state (also where the animation lands) */
        animation: cal-clip-wipe 0.8s var(--ease-out) 0.1s both;
    }
}

@media (max-width: 1080px) {
    :root {
        --container: min(100vw - 40px, 1200px);
    }

    .site-header {
        width: calc(100vw - 40px);
        gap: 14px;
        flex-wrap: wrap;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --container: calc(100vw - 28px);
        --radius: 28px;
    }

    .site-header {
        top: 8px;
        width: calc(100vw - 28px);
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 10px 0;
    }

    .site-header.is-scrolled {
        padding: 8px 0;
    }

    .menu-toggle {
        display: inline-flex;
        position: relative;
    }

    .site-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 78px;
        display: grid;
        gap: 4px;
        padding: 16px;
        border-radius: var(--radius-lg, 24px);
        background: var(--surface-elevated, #FFFFFF);
        border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.12));
        box-shadow: var(--shadow-elevated);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }

    .site-nav a {
        padding: 10px 8px;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    h1 {
        font-size: clamp(3.3rem, 15vw, 5.3rem);
    }

    h2 {
        font-size: clamp(2.55rem, 11vw, 4.1rem);
    }

    .contact-panel {
        padding: 24px;
    }

    .section {
        padding: 110px 0;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form__actions {
        align-items: flex-start;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =====================================================================
 * PHASE 2 — PAGE-SPECIFIC COMPONENTS
 * Product list/grid/detail · Activity feed · Team grid · Breadcrumb · Chip
 * All using new Phase 1 design tokens.
 * ===================================================================== */

/* --- Shared button reset for new components ---------------------------- */
.product-card,
.team-card,
.activity-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* --- Breadcrumb -------------------------------------------------------- */
.breadcrumb {
    padding: calc(var(--space-7, 3rem) + 80px) 0 0;
}

.breadcrumb__list {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.breadcrumb__list li + li::before {
    content: "/";
    margin-right: var(--space-2, 0.5rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.breadcrumb__list a {
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    text-decoration: none;
    transition: color var(--duration-fast, 160ms) var(--ease-out);
}

.breadcrumb__list a:hover {
    color: var(--ink-primary, #0A2540);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb__list [aria-current="page"] {
    color: var(--ink-primary, #0A2540);
    font-weight: 500;
}

/* --- Chip (filter) ----------------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-pill, 999px);
    background: transparent;
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    text-decoration: none;
    transition:
        background var(--duration-fast, 160ms) var(--ease-out),
        border-color var(--duration-fast, 160ms) var(--ease-out),
        color var(--duration-fast, 160ms) var(--ease-out);
}

.chip:hover {
    background: var(--accent-soft, #DCEAFB);
    border-color: var(--accent-new, #1F6FEB);
    color: var(--ink-primary, #0A2540);
}

.chip.is-active {
    background: var(--ink-primary, #0A2540);
    border-color: var(--ink-primary, #0A2540);
    color: #FFFFFF;
}

/* --- Product list ----------------------------------------------------- */
.product-list {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--section-y, 6rem);
}

.product-list__head {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto var(--space-8, 4rem);
    display: grid;
    gap: var(--space-7, 3rem);
    grid-template-columns: 5fr 7fr;
    align-items: end;
}

.product-list__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 14ch;
}

.product-list__lede {
    margin: var(--space-4, 1rem) 0 0;
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

.product-list__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
    justify-content: flex-end;
}

.product-list__empty {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: var(--space-7, 3rem) auto;
    padding: var(--space-7, 3rem);
    text-align: center;
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-md, 14px);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

@media (max-width: 1080px) {
    .product-list__head {
        grid-template-columns: 1fr;
        gap: var(--space-5, 1.5rem);
        align-items: start;
    }

    .product-list__filters {
        justify-content: flex-start;
    }
}

/* --- Product grid ----------------------------------------------------- */
.product-grid {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    gap: var(--space-5, 1.5rem);
}

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

@media (max-width: 1080px) {
    .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .product-grid--3 { grid-template-columns: 1fr; }
}

/* --- Product card ----------------------------------------------------- */
.product-card {
    background: var(--surface-elevated, #FFFFFF);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    transition:
        transform var(--duration-base, 280ms) var(--ease-out),
        box-shadow var(--duration-base, 280ms) var(--ease-out),
        border-color var(--duration-base, 280ms) var(--ease-out);
    box-shadow: var(--shadow-subtle);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent-new, #1F6FEB);
}

.product-card__media {
    aspect-ratio: 1 / 1;
    background: var(--surface, #F4F8FC);
    display: grid;
    place-items: center;
    padding: var(--space-5, 1.5rem);
}

.product-card__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--duration-base, 280ms) var(--ease-out);
}

.product-card:hover .product-card__media img {
    transform: scale(1.03);
}

.product-card__body {
    padding: var(--space-5, 1.5rem) var(--space-5, 1.5rem) var(--space-6, 2rem);
}

.product-card__category {
    margin: 0 0 var(--space-3, 0.75rem);
}

.product-card__name {
    margin: 0 0 var(--space-3, 0.75rem);
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.product-card__tagline {
    margin: 0 0 var(--space-5, 1.5rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--accent-new, #1F6FEB);
}

.product-card__arrow {
    transition: transform var(--duration-base, 280ms) var(--ease-out);
    display: inline-block;
}

.product-card:hover .product-card__arrow {
    transform: translateX(4px);
}

/* --- Product detail --------------------------------------------------- */
.product-detail {
    padding: var(--space-7, 3rem) 0 var(--section-y, 6rem);
}

.product-detail__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: var(--space-8, 4rem);
    align-items: start;
}

.product-detail__primary {
    aspect-ratio: 4 / 3;
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: var(--space-7, 3rem);
    box-shadow: var(--shadow-subtle);
}

.product-detail__primary img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-3, 0.75rem);
    list-style: none;
    margin: var(--space-4, 1rem) 0 0;
    padding: 0;
}

.product-detail__thumbs li {
    aspect-ratio: 1 / 1;
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: var(--space-3, 0.75rem);
}

.product-detail__thumbs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail__name {
    margin: var(--space-2, 0.5rem) 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 14ch;
}

.product-detail__tagline {
    margin: 0 0 var(--space-5, 1.5rem);
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
    color: var(--ink-primary, #0A2540);
    max-width: 56ch;
}

.product-detail__description {
    margin: 0 0 var(--space-6, 2rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    line-height: var(--leading-relaxed, 1.65);
    max-width: var(--max-prose, 68ch);
}

.product-detail__highlights {
    margin: 0 0 var(--space-7, 3rem);
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line, rgba(10, 37, 64, 0.08));
}

.product-detail__highlights li {
    padding: var(--space-3, 0.75rem) 0;
    border-bottom: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
    position: relative;
    padding-left: var(--space-5, 1.5rem);
}

.product-detail__highlights li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-new, #1F6FEB);
    position: absolute;
    left: 0;
    top: 1.05em;
}

.product-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
}

@media (max-width: 1080px) {
    .product-detail__inner {
        grid-template-columns: 1fr;
        gap: var(--space-6, 2rem);
    }
}

/* --- Product related -------------------------------------------------- */
.product-related {
    padding: var(--space-8, 4rem) 0 0;
}

.product-related__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
}

.product-related__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-6, 2rem);
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

/* --- Activity feed ---------------------------------------------------- */
.activity-list {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--section-y, 6rem);
}

.activity-list__head {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto var(--space-8, 4rem);
}

.activity-list__title {
    margin: 0 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 18ch;
}

.activity-list__lede {
    margin: 0;
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

.activity-list__featured {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto var(--space-7, 3rem);
}

.activity-list__empty {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    padding: var(--space-7, 3rem);
    text-align: center;
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-md, 14px);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.activity-grid {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7, 3rem) var(--space-5, 1.5rem);
}

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

/* --- Activity item ---------------------------------------------------- */
.activity-item {
    background: var(--surface-elevated, #FFFFFF);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    border: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    transition: transform var(--duration-base, 280ms) var(--ease-out),
                box-shadow var(--duration-base, 280ms) var(--ease-out);
    box-shadow: var(--shadow-subtle);
}

.activity-item:not(.activity-item--featured):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.activity-item__media {
    aspect-ratio: 3 / 2;
    background: var(--surface, #F4F8FC);
    overflow: hidden;
    position: relative;
}

.activity-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-item__body {
    padding: var(--space-5, 1.5rem) var(--space-5, 1.5rem) var(--space-6, 2rem);
}

.activity-item__date {
    margin: 0 0 var(--space-3, 0.75rem);
}

.activity-item__title {
    margin: 0 0 var(--space-3, 0.75rem);
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.activity-item__excerpt {
    margin: 0 0 var(--space-4, 1rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-relaxed, 1.65);
}

.activity-item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--accent-new, #1F6FEB);
    text-decoration: none;
    transition: gap var(--duration-base, 280ms) var(--ease-out);
}

.activity-item__link:hover {
    gap: 0.7em;
}

/* Featured variant — wider, on cream surface, 2-col internal layout */
.activity-item--featured {
    background: var(--surface-cream, #FCFAF6);
    border: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
    display: grid;
    grid-template-columns: 7fr 5fr;
}

.activity-item--featured .activity-item__media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.activity-item--featured .activity-item__body {
    padding: var(--space-7, 3rem);
    align-self: center;
}

.activity-item--featured .activity-item__title {
    font-size: var(--text-2xl);
}

@media (max-width: 1080px) {
    .activity-item--featured {
        grid-template-columns: 1fr;
    }
}

/* --- Lite YouTube embed ---------------------------------------------- */
.lite-yt {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.lite-yt__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity var(--duration-base, 280ms) var(--ease-out);
}

.lite-yt:hover .lite-yt__poster {
    opacity: 0.88;
}

.lite-yt__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.lite-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Team hero -------------------------------------------------------- */
.team-hero {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--space-9, 6rem);
    background: var(--surface-cream, #FCFAF6);
    border-bottom: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
}

.team-hero__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8, 4rem);
    align-items: center;
}

.team-hero__media {
    margin: 0;
    text-align: center;
}

/* Show the whole photo, no crop — works for portrait OR landscape.
   Capped height keeps a tall portrait from dominating the hero. */
.team-hero__media img {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg, 24px);
    border: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
    box-shadow: var(--shadow-elevated);
}

@media (max-width: 860px) {
    .team-hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-6, 2rem);
    }
}

.team-hero__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 16ch;
}

.team-hero__lede {
    margin: 0;
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

/* --- Team sections ---------------------------------------------------- */
.team-sections {
    padding: var(--section-y, 6rem) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-9, 6rem);
}

.team-dept__head {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto var(--space-6, 2rem);
}

.team-dept__title {
    margin: var(--space-2, 0.5rem) 0 0;
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

/* --- Team grid + card ------------------------------------------------- */
.team-grid {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6, 2rem) var(--space-5, 1.5rem);
}

@media (max-width: 1080px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.team-card {
    display: flex;
    flex-direction: column;
}

.team-card__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    margin-bottom: var(--space-4, 1rem);
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover-swap: the second portrait fades in on hover / keyboard focus */
.team-card__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease, ease);
}

.team-card:hover .team-card__img--hover,
.team-card:focus-within .team-card__img--hover {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .team-card__img--hover {
        transition: none;
    }
}

.team-card__name {
    margin: 0 0 var(--space-1, 0.25rem);
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.team-card__role {
    margin: 0 0 var(--space-3, 0.75rem);
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.team-card__bio {
    margin: 0 0 var(--space-3, 0.75rem);
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.team-card__linkedin {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--accent-new, #1F6FEB);
    text-decoration: none;
}

.team-card__linkedin:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================================
 * PHASE 2 — HOME PAGE (product-first rewrite)
 * Hero (editorial split) · Featured Categories · Featured Products ·
 * Stat row · Why Datascope (cream) · Activity teaser
 * ===================================================================== */

/* --- Home hero (editorial split) -------------------------------------- */
.home-hero {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--space-9, 6rem);
}

.home-hero__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: var(--space-8, 4rem);
    align-items: stretch;
}

.home-hero__title {
    margin: var(--space-3, 0.75rem) 0 var(--space-5, 1.5rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 14ch;
}

.home-hero__lede {
    margin: 0 0 var(--space-6, 2rem);
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
}

.home-hero__media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    background: var(--surface, #F4F8FC);
    border: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    box-shadow: var(--shadow-subtle);
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1080px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-7, 3rem);
    }
}

/* --- Section heading link (e.g. "See all products →") ----------------- */
.section-heading__link {
    margin-top: var(--space-4, 1rem);
    align-self: end;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--accent-new, #1F6FEB);
    text-decoration: none;
    transition: gap var(--duration-base, 280ms) var(--ease-out);
}

.section-heading__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-heading--narrow {
    max-width: 760px;
}

/* --- Featured Categories ---------------------------------------------- */
.featured-categories__grid {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5, 1.5rem);
}

@media (max-width: 1080px) {
    .featured-categories__grid { grid-template-columns: 1fr; }
}

.category-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5, 1.5rem);
    padding: var(--space-7, 3rem) var(--space-6, 2rem);
    background: var(--surface-elevated, #FFFFFF);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: var(--radius-md, 14px);
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--duration-base, 280ms) var(--ease-out),
        border-color var(--duration-base, 280ms) var(--ease-out),
        box-shadow var(--duration-base, 280ms) var(--ease-out);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-new, #1F6FEB);
    box-shadow: var(--shadow-elevated);
}

.category-card__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-3, 0.75rem);
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    color: var(--ink-primary, #0A2540);
}

.category-card__copy {
    margin: 0;
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.category-card__arrow {
    font-size: 1.5rem;
    color: var(--accent-new, #1F6FEB);
    transition: transform var(--duration-base, 280ms) var(--ease-out);
    flex-shrink: 0;
}

.category-card:hover .category-card__arrow {
    transform: translateX(6px);
}

/* --- Featured Products: 4-col grid ----------------------------------- */
.product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* --- Stat row (typographic, no animated bars) ------------------------ */
.stat-row__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    padding: var(--space-7, 3rem) 0;
    border-top: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    border-bottom: 1px solid var(--line, rgba(10, 37, 64, 0.08));
}

.stat-row__inner .eyebrow {
    display: block;
    margin-bottom: var(--space-6, 2rem);
}

.stat-row__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5, 1.5rem);
}

.stat-row__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
    padding: 0 var(--space-5, 1.5rem) 0 0;
    border-right: 1px solid var(--line, rgba(10, 37, 64, 0.08));
}

.stat-row__item:last-child {
    border-right: none;
}

.stat-row__value {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--ink-primary, #0A2540);
    letter-spacing: var(--tracking-tight);
    font-variant-numeric: tabular-nums;
}

.stat-row__label {
    font-size: var(--text-xs, 0.75rem);
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    font-weight: 500;
}

@media (max-width: 720px) {
    .stat-row__grid { grid-template-columns: 1fr; }
    .stat-row__item {
        border-right: none;
        border-bottom: 1px solid var(--line, rgba(10, 37, 64, 0.08));
        padding: var(--space-4, 1rem) 0;
    }
    .stat-row__item:last-child { border-bottom: none; }
}

/* --- Why Datascope (cream surface) ----------------------------------- */
.why-datascope {
    background: var(--surface-cream, #FCFAF6);
    border-top: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
    border-bottom: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
}

.why-datascope__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
}

.why-datascope__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6, 2rem);
}

.proof-point {
    padding: var(--space-6, 2rem);
    background: #FFFFFF;
    border: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-subtle);
}

.proof-point__title {
    margin: 0 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.proof-point__copy {
    margin: 0;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-relaxed, 1.65);
}

@media (max-width: 1080px) {
    .why-datascope__grid { grid-template-columns: 1fr; }
}

/* --- Activity teaser grid -------------------------------------------- */
.activity-teaser__grid {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5, 1.5rem);
}

/* One activity left over: don't strand a lone card in the left column of a
 * 2-col grid (reads as broken). Center it at a calm editorial width. */
.activity-teaser__grid--single {
    grid-template-columns: min(680px, 100%);
    justify-content: center;
}

@media (max-width: 1080px) {
    .activity-teaser__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
 * PHASE 3 — CAREER + FORMS + THANK YOU
 * Career hero · Job cards (details expand) · Subscribe panel ·
 * Apply form (file upload, PDPA, progress) · Form flash · Thank you
 * ===================================================================== */

/* --- Universal honeypot field (hide from humans, leave for bots) ------ */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* --- Form flash (error banner above forms) ---------------------------- */
.form-flash {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: var(--space-5, 1.5rem) auto 0;
    padding: var(--space-4, 1rem) var(--space-5, 1.5rem);
    border-radius: var(--radius-md, 14px);
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
}

.form-flash--error {
    background: rgba(176, 50, 44, 0.08);
    border: 1px solid rgba(176, 50, 44, 0.32);
    color: var(--danger, #B0322C);
}

.form-flash__inner { width: 100%; }

/* --- Career hero ------------------------------------------------------ */
.career-hero {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--space-9, 6rem);
}

.career-hero__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: var(--space-8, 4rem);
    align-items: stretch;
}

.career-hero__title {
    margin: var(--space-3, 0.75rem) 0 var(--space-5, 1.5rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 14ch;
}

.career-hero__lede {
    margin: 0 0 var(--space-4, 1rem);
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

.career-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
    margin-top: var(--space-5, 1.5rem);
}

/* Hiring snapshot panel (mirrors the home credibility panel) */
.career-snapshot {
    display: flex;
    flex-direction: column;
    background: var(--surface-elevated, #FFFFFF);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow-elevated);
    padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}

.career-snapshot__eyebrow {
    margin: 0 0 var(--space-4, 1rem);
}

.career-snapshot__count {
    display: flex;
    align-items: baseline;
    gap: var(--space-3, 0.75rem);
    padding-bottom: var(--space-4, 1rem);
    border-bottom: 1px solid var(--line, rgba(10, 37, 64, 0.08));
}

.career-snapshot__count strong {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1;
    letter-spacing: var(--tracking-tight);
    color: var(--ink-primary, #0A2540);
    font-variant-numeric: tabular-nums;
}

.career-snapshot__count span {
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.career-snapshot__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.career-snapshot__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 1rem);
    padding: var(--space-3, 0.75rem) 0;
    border-bottom: 1px solid var(--line, rgba(10, 37, 64, 0.08));
}

.career-snapshot__dept {
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-primary, #0A2540);
    font-weight: 500;
}

.career-snapshot__n {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: var(--radius-pill, 999px);
    background: var(--accent-soft, #DCEAFB);
    color: var(--accent-strong-new, #0B4FB8);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.career-snapshot__note {
    display: flex;
    align-items: baseline;
    gap: var(--space-2, 0.5rem);
    margin: var(--space-5, 1.5rem) 0 0;
    padding-top: var(--space-4, 1rem);
    border-top: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    margin-top: auto;
}

.career-snapshot__note-mark {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 0.4em;
    border-radius: 50%;
    background: var(--accent-new, #1F6FEB);
}

@media (max-width: 1080px) {
    .career-hero__inner { grid-template-columns: 1fr; gap: var(--space-7, 3rem); }
}

/* --- Open positions list --------------------------------------------- */
.career-positions {
    padding: var(--section-y, 6rem) 0;
}

/* This section isn't a `.section`, so constrain its heading to the container
   (otherwise the loose .section-heading spans the full viewport). */
.career-positions > .section-heading {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.career-positions__list {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 0.75rem);
}

.career-positions__empty {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    padding: var(--space-7, 3rem);
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-md, 14px);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    text-align: center;
}

/* Job card (details/summary expand pattern) */
.job-card {
    background: var(--surface-elevated, #FFFFFF);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: var(--radius-md, 14px);
    transition: border-color var(--duration-base, 280ms) var(--ease-out),
                box-shadow var(--duration-base, 280ms) var(--ease-out);
}

.job-card[open] {
    border-color: var(--accent-new, #1F6FEB);
    box-shadow: var(--shadow-elevated);
}

.job-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5, 1.5rem);
    padding: var(--space-5, 1.5rem) var(--space-6, 2rem);
    cursor: pointer;
    list-style: none;
}

.job-card__summary::-webkit-details-marker { display: none; }

.job-card__head { flex: 1; }

.job-card__department { margin: 0; }

.job-card__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-1, 0.25rem);
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.job-card__meta {
    margin: 0;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
}

.job-card__chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface, #F4F8FC);
    color: var(--accent-new, #1F6FEB);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: transform var(--duration-base, 280ms) var(--ease-out),
                background var(--duration-base, 280ms) var(--ease-out);
}

.job-card[open] .job-card__chevron {
    transform: rotate(45deg);
    background: var(--accent-soft, #DCEAFB);
}

.job-card__body {
    padding: 0 var(--space-6, 2rem) var(--space-6, 2rem);
    border-top: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    margin-top: var(--space-2, 0.5rem);
    padding-top: var(--space-5, 1.5rem);
}

.job-card__summary-text {
    margin: 0 0 var(--space-5, 1.5rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    line-height: var(--leading-relaxed, 1.65);
}

.job-card__subheading {
    margin: var(--space-5, 1.5rem) 0 var(--space-3, 0.75rem);
    font-family: var(--font-sans);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.job-card__list {
    margin: 0 0 var(--space-5, 1.5rem);
    padding: 0 0 0 var(--space-5, 1.5rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-relaxed, 1.65);
}

.job-card__list li { margin: 0 0 var(--space-2, 0.5rem); }

/* --- Subscribe panel -------------------------------------------------- */
.career-subscribe {
    background: var(--surface-cream, #FCFAF6);
    border-top: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
    border-bottom: 1px solid var(--line-cream, rgba(150, 120, 70, 0.10));
    padding: var(--section-y, 6rem) 0;
}

.career-subscribe__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-7, 3rem);
    align-items: center;
}

.career-subscribe__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-3, 0.75rem);
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.career-subscribe__lede {
    margin: 0;
    max-width: 56ch;
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
}

.career-subscribe__form {
    display: grid;
    gap: var(--space-3, 0.75rem);
}

.career-subscribe__form label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1, 0.25rem);
}

.career-subscribe__form label > span {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.career-subscribe__form input,
.career-subscribe__form select {
    padding: 12px 14px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    background: #FFFFFF;
    font-size: var(--text-base, 1rem);
    color: var(--ink-primary, #0A2540);
    transition: border-color var(--duration-fast, 160ms) var(--ease-out),
                box-shadow var(--duration-fast, 160ms) var(--ease-out);
}

.career-subscribe__form input:focus,
.career-subscribe__form select:focus {
    outline: none;
    border-color: var(--accent-new, #1F6FEB);
    box-shadow: 0 0 0 3px var(--accent-soft, #DCEAFB);
}

.career-subscribe__form button {
    margin-top: var(--space-3, 0.75rem);
    align-self: start;
}

@media (max-width: 1080px) {
    .career-subscribe__inner { grid-template-columns: 1fr; }
}

/* --- Apply form (CV submission) -------------------------------------- */
.career-apply {
    padding: var(--section-y, 6rem) 0;
}

.career-apply__inner {
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: 0 auto;
}

.apply-form {
    margin-top: var(--space-7, 3rem);
    max-width: 880px;
    display: grid;
    gap: var(--space-5, 1.5rem);
}

.apply-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4, 1rem);
}

.apply-form label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1, 0.25rem);
}

.apply-form label > span {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select,
.apply-form textarea {
    padding: 12px 14px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    background: #FFFFFF;
    font-family: var(--font-sans);
    font-size: var(--text-base, 1rem);
    color: var(--ink-primary, #0A2540);
    transition: border-color var(--duration-fast, 160ms) var(--ease-out),
                box-shadow var(--duration-fast, 160ms) var(--ease-out);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--accent-new, #1F6FEB);
    box-shadow: 0 0 0 3px var(--accent-soft, #DCEAFB);
}

.apply-form__file {
    background: var(--surface-cream, #FCFAF6);
    border: 1px dashed var(--line-cream, rgba(150, 120, 70, 0.10));
    border-radius: var(--radius-md, 14px);
    padding: var(--space-6, 2rem);
    display: grid;
    gap: var(--space-3, 0.75rem);
}

.apply-form__file-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1, 0.25rem);
    cursor: pointer;
}

.apply-form__file-label-eyebrow {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-primary, #0A2540);
}

.apply-form__file-label-hint {
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.apply-form__file-input {
    font-size: var(--text-sm, 0.875rem);
}

.apply-form__file-status {
    margin: 0;
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    min-height: 1.2em;
}

.apply-form__file-status.is-error  { color: var(--danger, #B0322C); }
.apply-form__file-status.is-success{ color: var(--success, #0F7D55); }

.apply-form__pdpa {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3, 0.75rem);
    align-items: start;
    padding: var(--space-4, 1rem);
    background: var(--surface, #F4F8FC);
    border: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    border-radius: var(--radius-md, 14px);
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-relaxed, 1.65);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.apply-form__pdpa input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-new, #1F6FEB);
}

.apply-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4, 1rem);
}

.apply-form__note {
    margin: 0;
    font-size: var(--text-xs, 0.75rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    max-width: 44ch;
}

.apply-form__progress {
    padding: var(--space-4, 1rem);
    background: var(--surface, #F4F8FC);
    border-radius: var(--radius-md, 14px);
}

.apply-form__progress-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--line, rgba(10, 37, 64, 0.08));
    overflow: hidden;
    margin-bottom: var(--space-2, 0.5rem);
}

.apply-form__progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-new, #1F6FEB);
    transition: width var(--duration-base, 280ms) var(--ease-out);
}

.apply-form__progress-text {
    margin: 0;
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

@media (max-width: 720px) {
    .apply-form__grid { grid-template-columns: 1fr; }
}

/* --- Thank you page -------------------------------------------------- */
.thank-you {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--section-y, 6rem);
}

.thank-you__inner {
    width: var(--container-narrow, min(880px, 100% - 48px));
    margin: 0 auto;
}

.thank-you__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-5, 1.5rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
    max-width: 16ch;
}

.thank-you__lede {
    margin: 0 0 var(--space-7, 3rem);
    max-width: 56ch;
    font-size: var(--text-md, 1.125rem);
    line-height: var(--leading-relaxed, 1.65);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.thank-you__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
}

/* =====================================================================
 * PHASE 5 — LEGAL PAGES (Privacy, Terms)
 * Editorial reading layout — narrow column, generous line-height
 * ===================================================================== */
.legal {
    padding: calc(var(--space-9, 6rem) + 80px) 0 var(--section-y, 6rem);
}

.legal__inner {
    width: var(--container-narrow, min(880px, 100% - 48px));
    margin: 0 auto;
}

.legal__title {
    margin: var(--space-2, 0.5rem) 0 var(--space-3, 0.75rem);
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.legal__updated {
    margin: 0 0 var(--space-7, 3rem);
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
}

.legal__inner h2 {
    margin: var(--space-8, 4rem) 0 var(--space-4, 1rem);
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    line-height: var(--leading-snug, 1.2);
    letter-spacing: var(--tracking-tight);
    font-weight: 600;
    color: var(--ink-primary, #0A2540);
}

.legal__inner p,
.legal__inner ul,
.legal__inner ol {
    margin: 0 0 var(--space-5, 1.5rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-size: var(--text-base, 1rem);
    line-height: var(--leading-relaxed, 1.65);
    max-width: var(--max-prose, 68ch);
}

.legal__inner ul,
.legal__inner ol {
    padding-left: var(--space-5, 1.5rem);
}

.legal__inner li {
    margin-bottom: var(--space-2, 0.5rem);
}

.legal__inner a {
    color: var(--accent-new, #1F6FEB);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal__inner strong {
    color: var(--ink-primary, #0A2540);
    font-weight: 600;
}

.legal__note {
    margin-top: var(--space-8, 4rem);
    padding: var(--space-5, 1.5rem);
    background: var(--surface-cream, #FCFAF6);
    border-radius: var(--radius-md, 14px);
    font-size: var(--text-sm, 0.875rem);
}

/* --- Skip-to-content link (a11y) ------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: var(--space-3, 0.75rem) var(--space-5, 1.5rem);
    background: var(--ink-primary, #0A2540);
    color: #FFFFFF;
    font-size: var(--text-sm, 0.875rem);
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    left: var(--space-4, 1rem);
    top: var(--space-4, 1rem);
}

/* --- Reduced motion (final pass — covers all Phase 1–3 animations) --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =====================================================================
 * PHASE 5 — GLOBAL ACCESSIBILITY SAFETY NETS
 * Universal focus-visible · screen-reader-only utility
 * ===================================================================== */
:focus-visible {
    outline: 2px solid var(--accent-new, #1F6FEB);
    outline-offset: 3px;
    border-radius: inherit;
}

/* Visually hidden but accessible to screen readers */
.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;
}

/* Active nav state — visible underline (already implied by .is-active in older
   stylesheet for header, this is a stronger override for high-contrast modes) */
.site-nav a[aria-current="page"],
.site-nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    color: var(--ink-primary, #0A2540);
    font-weight: 600;
}

/* High contrast / forced-colors mode adjustments */
@media (forced-colors: active) {
    .product-card,
    .team-card,
    .activity-item,
    .category-card,
    .job-card {
        border: 1px solid CanvasText;
    }

    .button {
        forced-color-adjust: none;
    }
}

/* =====================================================================
 * HOME REDESIGN — Institutional / credibility-first hero
 * Credibility panel (replaces hero image) · pulse accent · trust strip ·
 * clinical-domain icons
 * ===================================================================== */

@media (max-width: 1080px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
    }
}

/* --- Credibility panel (institutional, no photo) --------------------- */
.credibility-panel {
    display: flex;
    flex-direction: column;
    background: var(--surface-elevated, #FFFFFF);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow-elevated);
    padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
    overflow: hidden;
}

.credibility-panel__eyebrow {
    margin: 0 0 var(--space-5, 1.5rem);
}

.credibility-panel__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.credibility-panel__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-4, 1rem) 0;
    border-bottom: 1px solid var(--line, rgba(10, 37, 64, 0.08));
}

.credibility-panel__stat:first-child { padding-top: 0; }

.credibility-panel__value {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    color: var(--ink-primary, #0A2540);
    font-variant-numeric: tabular-nums;
}

.credibility-panel__label {
    font-size: var(--text-sm, 0.875rem);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.credibility-panel__note {
    display: flex;
    align-items: baseline;
    gap: var(--space-2, 0.5rem);
    margin: var(--space-5, 1.5rem) 0 0;
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
    color: var(--ink-primary, #0A2540);
    font-weight: 500;
}

.credibility-panel__note-mark {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 0.4em;
    border-radius: 50%;
    background: var(--accent-new, #1F6FEB);
}

.credibility-panel__pulse {
    width: 100%;
    height: 36px;
    margin-top: auto;
    padding-top: var(--space-5, 1.5rem);
    color: var(--accent-new, #1F6FEB);
    opacity: 0.6;
}

/* =====================================================================
 * SIGNATURE: "Calibration" — hero entrance choreography + the trace.
 * Drives on LOAD (above the fold), gated by .has-js. One settle curve
 * (--ease-out). A lead (headline), a follow (lede/CTAs), an ambient plane
 * (the panel), then the trace draws and the numbers lock — the instrument
 * calibrating. Transform/opacity/clip only → no layout shift. Reduced-motion
 * snaps every animation to its end state (global guard at the file's end).
 * ===================================================================== */
@keyframes cal-rise {
    from { opacity: 0; transform: translate3d(0, var(--rise, 28px), 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes cal-title-settle {
    from { opacity: 0; transform: translate3d(0, 60px, 0); font-variation-settings: "wght" 600; }
    to   { opacity: 1; transform: translate3d(0, 0, 0);  font-variation-settings: "wght" 628; }
}
@keyframes cal-trace-draw {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}

/* Hold the start frame before each (delayed) animation begins — no flash. */
.has-js .home-hero__copy > *,
.has-js .credibility-panel { opacity: 0; }

.has-js .home-hero .eyebrow   { animation: cal-rise 600ms var(--ease-out) both;  --rise: 22px; animation-delay: 40ms; }
.has-js .home-hero__title     { animation: cal-title-settle 900ms var(--ease-out) both;        animation-delay: 110ms; }
.has-js .home-hero__lede      { animation: cal-rise 720ms var(--ease-out) both;  --rise: 30px; animation-delay: 240ms; }
.has-js .home-hero__actions   { animation: cal-rise 640ms var(--ease-out) both;  --rise: 18px; animation-delay: 330ms; }
.has-js .home-hero__actions .button:nth-child(2) { animation-delay: 390ms; }
.has-js .credibility-panel    { animation: cal-rise 1000ms var(--ease-out) both; --rise: 40px; animation-delay: 180ms; }

/* The trace: a 1px hairline that DRAWS left-to-right like a calibration sweep. */
.credibility-panel__pulse-path { stroke-dasharray: 100; }
.has-js .credibility-panel__pulse-path {
    stroke-dashoffset: 100;
    animation: cal-trace-draw 1100ms var(--ease-out) both;
    animation-delay: 760ms; /* begins as the panel is ~60% resolved */
}

/* --- Trust strip (4 capability pillars, hairline-separated) ---------- */
.trust-strip {
    list-style: none;
    width: var(--container-new, min(1280px, 100% - 48px));
    margin: var(--space-7, 3rem) auto 0;
    padding: var(--space-5, 1.5rem) 0 0;
    border-top: 1px solid var(--line, rgba(10, 37, 64, 0.08));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5, 1.5rem);
}

.trust-strip li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 0.75rem);
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-normal, 1.5);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
}

.trust-strip__mark {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 0.45em;
    border-radius: 50%;
    background: var(--accent-new, #1F6FEB);
}

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

@media (max-width: 520px) {
    .trust-strip { grid-template-columns: 1fr; gap: var(--space-4, 1rem); }
}

/* --- Clinical-domain icon on category cards -------------------------- */
.category-card__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md, 14px);
    background: var(--accent-soft, #DCEAFB);
    color: var(--accent-strong-new, #0B4FB8);
}

.category-card__body {
    flex: 1;
}

.category-card__arrow {
    margin-top: 2px;
}

/* =====================================================================
 * PRODUCT 3D VIEWER — model-viewer + gallery switch (detail page)
 * ===================================================================== */

/* Primary stage holds either the 3D model or a photo (one visible at a time) */
.product-detail__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface, #F4F8FC);
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.12)); /* precise hairline frame */
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 0.5rem + 2.6vw, 3rem); /* more air around the instrument */
    box-shadow: var(--shadow-elevated); /* the signature moment → deliberate depth */
}

/* Crosshair: instrument-grade pointer over the 3D viewer. A 1px tick that
   tracks the cursor (not a trail). JS sets --cx/--cy; fine pointers only. */
@media (pointer: fine) {
    .product-detail__stage.has-crosshair { cursor: none; }
    .product-detail__crosshair {
        position: absolute;
        top: var(--cy, 50%);
        left: var(--cx, 50%);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.18s var(--ease-out);
        color: var(--accent-strong-new, #0B4FB8);
        z-index: 3;
    }
    .product-detail__stage.is-pointing .product-detail__crosshair { opacity: 0.65; }
    .product-detail__crosshair::before,
    .product-detail__crosshair::after { content: ""; position: absolute; background: currentColor; }
    .product-detail__crosshair::before { left: -9px; top: -0.5px; width: 18px; height: 1px; }
    .product-detail__crosshair::after  { top: -9px; left: -0.5px; height: 18px; width: 1px; }
}

.product-detail__photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail__photo[hidden],
.product-detail__model[hidden] {
    display: none !important;
}

.product-detail__model {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background-color: transparent;
    --poster-color: transparent;
    --progress-bar-color: var(--accent-new, #1F6FEB);
    --progress-mask: transparent;
}

/* Thumbnails become real buttons (3D + each photo) */
.product-detail__thumbs li {
    aspect-ratio: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
}

.product-detail__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line-strong, rgba(10, 37, 64, 0.16));
    border-radius: var(--radius-sm, 6px);
    background: var(--surface, #F4F8FC);
    cursor: pointer;
    transition:
        border-color var(--duration-fast, 160ms) var(--ease-out),
        box-shadow var(--duration-fast, 160ms) var(--ease-out);
}

.product-detail__thumb:hover {
    border-color: var(--accent-new, #1F6FEB);
}

.product-detail__thumb.is-active {
    border-color: var(--accent-new, #1F6FEB);
    box-shadow: 0 0 0 2px var(--accent-soft, #DCEAFB);
}

.product-detail__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail__thumb--3d {
    background: var(--accent-soft, #DCEAFB);
}

.product-detail__thumb-badge {
    font-family: var(--font-sans);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-strong-new, #0B4FB8);
}

.product-detail__model-hint {
    margin: var(--space-3, 0.75rem) 0 0;
    font-size: var(--text-xs, 0.75rem);
    letter-spacing: 0.02em;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.product-detail__demo-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-pill, 999px);
    background: var(--surface-cream-strong, #F5F0E6);
    color: var(--ink-secondary, rgba(10, 37, 64, 0.72));
    font-weight: 500;
}

/* --- Product brand label (distributor manufacturer) ------------------ */
.product-card__brand {
    margin: 0 0 var(--space-3, 0.75rem);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.product-detail__brand {
    margin: 0 0 var(--space-4, 1rem);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: var(--tracking-eyebrow, 0.18em);
    text-transform: uppercase;
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
}

.product-detail__brand strong {
    color: var(--ink-primary, #0A2540);
    font-weight: 600;
}

/* =====================================================================
 * POLISH PASS (impeccable) — typographic balance, button press,
 * placeholder contrast. Craft-level; no change to Design A identity.
 * ===================================================================== */

/* Even line lengths on headings; fewer orphans in prose. */
h1, h2, h3, h4,
.home-hero__title, .section-heading h2, .page-hero__title,
.product-detail__name, .career-hero__title, .cta-strip__title {
    text-wrap: balance;
}
p { text-wrap: pretty; }

/* Tactile press: the button settles back down when actively pressed. */
.button:active { transform: translateY(0); }
.button--primary:active { background: var(--accent-strong-new, #0B4FB8); }

/* Placeholders meet the same 4.5:1 bar as body text (no faint-gray default). */
input::placeholder,
textarea::placeholder {
    color: var(--ink-faint-new, rgba(10, 37, 64, 0.48));
    opacity: 1;
}

/* Interaction-state completeness: fill the gaps found in the polish pass. */
.job-card:hover { border-color: var(--line-strong, rgba(10, 37, 64, 0.16)); }
.category-card:active,
.product-card:active,
.activity-item:active { transform: translateY(-2px); }
.product-detail__thumb:focus-visible {
    outline: 2px solid var(--accent-new, #1F6FEB);
    outline-offset: 2px;
}

/* Long product names / titles must never overflow a narrow card or viewport. */
.product-card__name, .product-detail__name, .category-card__title,
.activity-item__title, .team-card__name, .job-card__title {
    overflow-wrap: break-word;
}
