/* ==========================================================================
   VIVPAK — Design System
   Bright, glassmorphic, international-scale industrial B2B.
   Brand colour is injected at runtime from data/settings.json (--brand).
   ========================================================================== */

/* ---------- 1a. Reference display face (self-hosted Montserrat) ----------
   The reference site declares Montserrat 400/700 via Google Fonts. We ship
   the woff2 locally so the face resolves even when Google Fonts is blocked.
   It is applied to ALL large display headings; body / nav / labels / eyebrows
   / mono data keep Inter exactly as before. */
@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    /* Brand — overwritten inline by PHP from settings.json */
    --brand:        #0E3B2E;
    --brand-2:      #3ECF8E;
    --pak:          #209B68;   /* wordmark 'PAK' green — VI hover accent */
    --brand-accent: #C9A227;

    --brand-ink:    #08251D;   /* deepest tone, for gradients */
    --brand-soft:   rgba(14, 59, 46, 0.08);
    --brand-line:   rgba(14, 59, 46, 0.14);

    /* Surfaces — bright, never pure grey */
    --canvas:       #FBFCFB;
    --surface:      #FFFFFF;
    --surface-alt:  #F4F7F5;
    --surface-warm: #FAFAF7;

    /* Text */
    --ink:          #0C1512;
    --ink-2:        #2A3B35;
    --slate:        #566761;
    --steel:        #7E8C87;
    --muted:        #A6B0AC;

    /* Hairlines & shadow */
    --line:         rgba(12, 21, 18, 0.08);
    --line-strong:  rgba(12, 21, 18, 0.14);
    --shadow-xs:    0 1px 2px rgba(12, 21, 18, 0.04);
    --shadow-sm:    0 2px 8px rgba(12, 21, 18, 0.05);
    --shadow-md:    0 8px 24px rgba(12, 21, 18, 0.07);
    --shadow-lg:    0 24px 60px rgba(12, 21, 18, 0.10);
    --shadow-xl:    0 40px 90px rgba(12, 21, 18, 0.14);

    /* Glass */
    --glass-bg:     rgba(255, 255, 255, 0.66);
    --glass-bg-2:   rgba(255, 255, 255, 0.50);
    --glass-border: rgba(255, 255, 255, 0.94);
    --glass-inner:  inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --blur:         saturate(185%) blur(28px);

    /* Radius */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 36px;
    --r-full: 999px;

    /* Layout */
    --container: 1280px;
    --container-wide: 1440px;
    --gutter: 32px;
    --nav-h: 76px;

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-alt: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', ui-monospace, monospace;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
    /* `clip` (not `hidden`) keeps horizontal overflow clipped WITHOUT
       creating a scroll container — required for position: sticky to work. */
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* Inline icons must never expand to fill their container.
   :where() keeps specificity at 0 so component rules (.btn svg, .feature-icon svg) still win. */
:where(svg:not([width]):not([height])) { width: 18px; height: 18px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: rgba(12,21,18,.16); border-radius: 99px; border: 3px solid var(--surface-alt); }
::-webkit-scrollbar-thumb:hover { background: rgba(12,21,18,.28); }

/* ---------- 3. Ambient background ---------------------------------------- */
.bg-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 12% -8%,  rgba(62, 207, 142, 0.13), transparent 62%),
        radial-gradient(760px 520px at 92% 4%,   rgba(201, 162, 39, 0.09), transparent 60%),
        radial-gradient(1000px 700px at 50% 108%, rgba(14, 59, 46, 0.07), transparent 66%),
        linear-gradient(178deg, #FCFDFC 0%, #F6F9F7 48%, #FBFCFB 100%);
}
.bg-field::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(rgba(12,21,18,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,21,18,.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 78%);
}

/* ---------- 4. Typography ------------------------------------------------- */
.display-1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 680; line-height: 1.03; letter-spacing: -0.035em; }
.display-2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 660; line-height: 1.08; letter-spacing: -0.03em; }
.display-3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 640; line-height: 1.16; letter-spacing: -0.022em; }
/* Reference display face — Montserrat on EVERY large display heading
   (page-head banners + section heads), matching the reference site's
   bold geometric face. Body copy, navigation, labels, eyebrows and mono
   data deliberately stay on Inter. */
.display-1, .display-2, .display-3 {
    font-family: var(--font-alt);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.font-ref { font-family: var(--font-alt); }
.h4 { font-size: 1.25rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.014em; }
.h5 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--slate); font-weight: 400; }
.body { font-size: 0.9375rem; line-height: 1.72; color: var(--ink-2); }
.small { font-size: 0.8125rem; line-height: 1.6; color: var(--steel); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-2);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: linear-gradient(90deg, var(--brand-2), transparent);
}
.eyebrow.no-rule::before { display: none; }

.gradient-text {
    background: linear-gradient(112deg, var(--brand) 0%, var(--brand-2) 58%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Tight display line-heights clip y/g/p descenders under background-clip:
       text; the extra padding keeps them inside the painted box. */
    padding-bottom: .14em;
}

.text-brand { color: var(--brand); }
.text-slate { color: var(--slate); }

/* ---------- 5. Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 8vw, 116px); position: relative; }
.section-sm { padding-block: clamp(44px, 5vw, 72px); }
.section-alt { background: linear-gradient(180deg, rgba(244,247,245,.7), rgba(255,255,255,.35)); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4.4vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--slate); font-size: 1.0625rem; line-height: 1.68; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- 6. Glass card ------------------------------------------------ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm), var(--glass-inner);
    position: relative;
    overflow: hidden;
}
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(255,255,255,.62), transparent 46%);
    pointer-events: none;
    opacity: .9;
}
.glass > * { position: relative; z-index: 1; }
.glass-pad { padding: 30px; }
.glass-pad-lg { padding: clamp(28px, 3.4vw, 44px); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }

/* ---------- 7. Buttons --------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--r-full);
    font-size: 0.9375rem;
    font-weight: 560;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14,59,46,.22);
}
.btn-primary:hover {
    background: var(--brand-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14,59,46,.28);
}

.btn-accent {
    background: var(--brand-2);
    color: var(--brand-ink);
    box-shadow: 0 4px 14px rgba(62,207,142,.26);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(62,207,142,.34); }

.btn-outline {
    background: rgba(255,255,255,.50);
    color: var(--ink);
    border-color: var(--line-strong);
    backdrop-filter: saturate(185%) blur(16px);
    -webkit-backdrop-filter: saturate(185%) blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
/* ALL white outline buttons flip to the wordmark PAK green on hover:
   Hero CTA, Reference data, Talk to an engineer, All products, ...
   The dark CTA band keeps its own white hover (higher specificity). */
.btn-outline:hover { border-color: var(--pak); color: #fff; background: var(--pak); box-shadow: 0 8px 22px rgba(32,155,104,.26); }
.btn-outline:hover svg { stroke: #fff; }

.btn-ghost { background: rgba(255,255,255,.34); color: var(--ink-2); padding-inline: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { color: var(--brand); background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* Text link with animated underline */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 560;
    font-size: 0.9375rem;
    color: var(--brand);
    transition: gap .28s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .28s var(--ease); }
.link-arrow:hover { gap: 11px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- 8. Badges / pills ------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 560;
    letter-spacing: .01em;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand-line);
}
.pill-accent { background: rgba(62,207,142,.14); color: var(--brand); border-color: rgba(62,207,142,.3); }
.pill-neutral { background: var(--surface-alt); color: var(--slate); border-color: var(--line); }
.pill-dark { background: var(--brand); color: #fff; border-color: transparent; }
.pill-dot::before { content:''; width:5px; height:5px; border-radius:50%; background: currentColor; opacity:.7; }

/* ---------- 9. Navigation ------------------------------------------------ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(251,252,251,.62);
    backdrop-filter: saturate(185%) blur(30px);
    -webkit-backdrop-filter: saturate(185%) blur(30px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled {
    background: rgba(255,255,255,.76);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px rgba(12,21,18,.05);
}
.nav-inner { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 44px; width: auto; display: block; }
@media (max-width: 760px) { .logo img { height: 38px; } }
.logo-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; }
.logo-text span { color: var(--brand-2); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border-radius: var(--r-sm);
    font-size: 0.9063rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .22s, background .22s;
}
.nav-link:hover, .nav-item.open .nav-link { color: var(--brand); background: var(--brand-soft); }
/* Current section: PAK-green text only — NO background pill. The
   signal-green underline stays as the position marker. */
.nav-link.active {
    color: var(--pak);
    font-weight: 650;
    background: transparent;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 13px; right: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-2);
}
.nav-link .caret { width: 11px; height: 11px; opacity: .5; transition: transform .25s var(--ease); }
.nav-item.open .nav-link .caret { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, -6px);
    min-width: 560px;
    background: rgba(255,255,255,.82);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), var(--glass-inner);
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.dd-link {
    display: flex;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    transition: background .2s;
}
.dd-link:hover { background: var(--brand-soft); }
.dd-icon {
    width: 30px; height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--surface-alt);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: -.02em;
}
.dd-link:hover .dd-icon { background: var(--brand); color: #fff; }
.dd-text { min-width: 0; }
.dd-title { font-size: .875rem; font-weight: 560; color: var(--ink); line-height: 1.35; }
.dd-desc { font-size: .75rem; color: var(--steel); line-height: 1.4; margin-top: 3px; }

/* Round 1115: BOTH dropdowns are now ONE narrow single-column "waterfall"
   list. Name-only rows, hairline separators, one footer link. No descriptions,
   no two-letter badges, no two-column grid. */
.dd-title, .dd-desc { display: block; }
.dd-link { gap: 0; border-bottom: 1px solid rgba(12,21,18,.055); }

.dropdown.dropdown-single {
    /* Round 1149: size the panel to its longest label so EVERY option stays
       on one line. The old 252px cap left only ~206px of text room and wrapped
       "Multi-layer Co-extruded Barrier Film" (natural width ~273px). */
    width: max-content;
    min-width: 296px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px;
}
.dropdown.dropdown-single .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 0;
}
.dropdown.dropdown-single .dd-link {
    align-items: center;
    gap: 0;
    /* Round 1200: rows were only 33.9px tall and looked cramped. */
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 7px;
    border-bottom: 1px solid rgba(12,21,18,.055);
}
.dropdown.dropdown-single .dd-link:last-child { border-bottom: 0; }
.dropdown.dropdown-single .dd-title {
    font-size: .8125rem; line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown.dropdown-single .dd-all {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 6px; padding: 12px 14px 4px;
    border-top: 1px solid var(--line);
    font-size: .75rem; font-weight: 600; color: var(--pak);
    transition: color .2s var(--ease);
}
.dropdown.dropdown-single .dd-all:hover { color: var(--brand); }
.dropdown.dropdown-single .dd-all svg { width: 14px; height: 14px; }

/* Round 1440: Resources has only 5 short section names (longest 93px), so a
   296px panel looked empty. Narrow ONLY that dropdown; Products keeps the
   296px / 44px-row layout that was already approved. */
.dropdown.dropdown-single.dropdown-narrow { min-width: 200px; }


.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Light/dark switch — moon in light mode, sun in dark mode. */
.theme-toggle {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 0; border-radius: 50%;
    background: transparent;
    color: var(--slate);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.theme-toggle .theme-icon { width: 18px; height: 18px; }
.theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }

/* Contact has no text menu item — mark its CTA when that page is current. */
.nav-actions .btn-primary.is-current { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.7);
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-direction: column;
    position: relative;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s, width .3s var(--ease);
    transform-origin: center;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    bottom: 0;
    background: rgba(251,252,251,.97);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 20px var(--gutter) 40px;
    overflow-y: auto;
    z-index: 890;
}
.mobile-nav.open { display: block; }
.mobile-nav a.m-link {
    display: block;
    padding: 14px 2px;
    font-size: 1.0625rem;
    font-weight: 550;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.mobile-nav .m-sub { padding-left: 16px; font-size: .9375rem; font-weight: 450; color: var(--slate); }
.mobile-nav .m-group-label {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-2);
    padding: 22px 2px 8px;
}
/* Collapsible groups inside the mobile drawer */
.mobile-nav .m-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left; cursor: pointer;
    padding: 14px 2px;
    font-size: 1.0625rem;
    font-weight: 550;
    color: var(--ink);
    line-height: 1.4;
}
.mobile-nav .m-caret { font-size: 1.25rem; font-weight: 300; line-height: 1; transition: transform .28s var(--ease); }
.mobile-nav .m-toggle.open .m-caret { transform: rotate(45deg); }
.mobile-nav .m-group { display: none; }
.mobile-nav .m-group.open { display: block; }
.mobile-nav .m-link.m-all { color: var(--brand); font-weight: 560; }
.mobile-nav .m-link.is-current { color: var(--pak); font-weight: 650; background: transparent; }
.mobile-nav a.m-link.is-current { padding-left: 12px; }

/* ---------- 10. Hero ----------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(40px, 5vw, 76px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.125rem; line-height: 1.68; color: var(--slate); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.hero-stat { background: rgba(255,255,255,.60); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); padding: 18px 16px; }
.hero-stat .v { font-size: 1.375rem; font-weight: 660; letter-spacing: -0.025em; color: var(--brand); line-height: 1.2; }
.hero-stat .l { font-size: .6875rem; color: var(--steel); margin-top: 3px; line-height: 1.35; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-frame {
    position: relative;
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 3.2;
    background: var(--surface-alt);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(8,37,29,.30));
}

.float-card {
    position: absolute;
    background: rgba(255,255,255,.84);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg), var(--glass-inner);
    padding: 15px 18px;
    z-index: 3;
}
.float-card .fc-label { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.float-card .fc-value { font-size: 1.125rem; font-weight: 660; color: var(--brand); letter-spacing: -0.02em; margin-top: 2px; }
.float-card .fc-note { font-size: .6875rem; color: var(--steel); margin-top: 1px; }
.float-tl { top: -18px; left: -22px; }
.float-br { bottom: -22px; right: -18px; }

/* ---------- 10b. Full-bleed banner hero (home) -------------------------- */
.hero-banner {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;   /* small-viewport height: stable on mobile browsers */
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: var(--surface-alt);
}
.hero-banner-media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #d9dddf 0%, #c9ccd0 100%); }
.hero-banner-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 52%;
    display: block;
}
.hero-banner-media .hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .85s ease;
}
.hero-banner-media .hero-slide.is-active { opacity: 1; }
.hero-carousel-dots {
    position: absolute;
    right: clamp(210px, 21vw, 290px);
    bottom: calc(clamp(150px, 18vh, 210px) + 18px);
    z-index: 3;
    display: flex; gap: 8px;
}
.hero-dot {
    width: 9px; height: 9px;
    padding: 0; border-radius: 50%;
    border: 1px solid rgba(12,46,35,.34);
    background: rgba(255,255,255,.62);
    cursor: pointer;
    transition: width .25s ease, background .25s ease, border-color .25s ease;
}
.hero-dot.is-active {
    width: 26px; border-radius: 999px;
    background: var(--brand); border-color: var(--brand);
}
.hero-dot:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
/* Light scrim, deliberately NOT a dark overlay: the whole photograph stays
   visible while the left-hand copy keeps a readable, bright base. */
.hero-banner-scrim {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(251,252,251,.94) 0%,
            rgba(251,252,251,.86) 26%,
            rgba(251,252,251,.56) 42%,
            rgba(251,252,251,.12) 62%,
            rgba(251,252,251,0) 78%),
        linear-gradient(0deg, rgba(251,252,251,.58) 0%, rgba(251,252,251,0) 34%);
}
.hero-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    /* Extra bottom room keeps the copy clear of the pinned stats bar */
    padding-block: clamp(48px, 6vw, 76px) clamp(150px, 18vh, 210px);
}
.hero-banner-copy { max-width: 590px; position: relative; z-index: 2; }
.hero-banner-copy .hero-sub { color: var(--ink-2); max-width: 520px; }
.hero-banner-copy .hero-cta { margin-bottom: 0; }

/* Glass data cards float over the open right side of the photograph */
.hero-banner-floats {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    width: 228px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
}
.hero-banner-floats .float-card {
    position: relative;
    top: auto; right: auto; bottom: auto; left: auto;
    background: rgba(255,255,255,.80);
    box-shadow: var(--shadow-lg), var(--glass-inner);
}
.hero-banner-floats .float-b { margin-left: 46px; }

/* Bottom information band: stats + certifications both live inside the
   banner so the whole fold is one composed hero, with nothing clipped. */
.hero-stat-wrap {
    position: absolute;
    left: 0; right: 0;
    bottom: 56px;
    z-index: 3;
}
.hero-banner .trust-strip {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    z-index: 3;
    border-top: 1px solid var(--glass-border);
    border-bottom: 0;
    background: rgba(255,255,255,.76);
}
.hero-banner .trust-inner { padding-block: 11px; gap: 22px; }
.hero-banner .trust-item { font-size: .75rem; }
.hero-stat-wrap .hero-stats {
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.62);
}
.hero-stat-wrap .hero-stat { background: rgba(255,255,255,.80); }
.hero-stat { transition: background .35s var(--ease); }
.hero-stat .v, .hero-stat .l { transition: color .3s ease; }
.hero-stat:hover { background: var(--pak); }
.hero-stat:hover .v, .hero-stat:hover .l { color: #fff; }

/* Pull the first content section up so the fold is not empty */
.section-tight-top { padding-top: clamp(28px, 3vw, 40px); }
.section-tight-top .section-head { margin-bottom: clamp(24px, 2.8vw, 38px); }

@media (max-width: 1100px) {
    .hero-banner-floats { width: 200px; }
    .hero-banner-floats .float-b { margin-left: 24px; }
}
@media (max-width: 980px) {
    .hero-banner-floats { display: none; }
    .hero-banner-scrim {
        background: linear-gradient(90deg,
            rgba(251,252,251,.95) 0%, rgba(251,252,251,.82) 45%,
            rgba(251,252,251,.28) 78%, rgba(251,252,251,.08) 100%);
    }
}
@media (max-width: 760px) {
    .hero-banner-inner { padding-block: 54px clamp(105px, 13vh, 150px); }
    .hero-banner-copy { max-width: 100%; }
    .hero-banner-copy .display-1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-banner-scrim {
        background: linear-gradient(90deg,
            rgba(251,252,251,.96) 0%, rgba(251,252,251,.86) 62%, rgba(251,252,251,.52) 100%);
    }
    .hero-carousel-dots { right: 18px; bottom: 178px; }
    /* Keep the bottom band short so copy, stats and certificates all fit */
    .hero-stat-wrap { bottom: 62px; }
    .hero-stats { grid-template-columns: repeat(4, 1fr) !important; }
    .hero-stat { padding: 11px 8px; }
    .hero-stat .v { font-size: 1rem; }
    .hero-stat .l { font-size: .5625rem; }
    .hero-banner .trust-inner { padding-block: 9px; gap: 6px 14px; }
    .hero-banner .trust-label { display: none; }
    .hero-banner .trust-items { gap: 5px 14px; }
    .hero-banner .trust-item { font-size: .6875rem; gap: 5px; }
    .hero-banner .trust-item svg { width: 12px; height: 12px; }
    .hero-banner-copy .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.42); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.trust-inner { display: flex; align-items: center; gap: 32px; padding-block: 20px; flex-wrap: wrap; }
.trust-label { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.trust-items { display: flex; align-items: center; gap: 12px 30px; flex-wrap: wrap; flex: 1; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 550; color: var(--ink-2); }
.trust-item svg { width: 15px; height: 15px; color: var(--brand-2); }

/* ---------- 11. Feature / product cards --------------------------------- */
.prod-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s var(--ease), border-color .35s var(--ease); }
/* Hover: the text area flips to the SOLID wordmark PAK green. */
.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pak);
    background: var(--pak);
}
.prod-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.05); }
.prod-media .pill { position: absolute; top: 14px; left: 14px; backdrop-filter: blur(10px); background: rgba(255,255,255,.86); transition: background .3s ease, color .3s ease, border-color .3s ease; }
.prod-card:hover .prod-media .pill {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: var(--brand-ink);
    font-weight: 650;
}
.prod-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.015em; margin-bottom: 9px; line-height: 1.35; transition: color .3s ease; }
.prod-card:hover .prod-body h3 { color: #fff; }
.prod-body p { font-size: .875rem; color: var(--slate); line-height: 1.62; margin-bottom: 16px; transition: color .3s ease; }
.prod-card:hover .prod-body p { color: rgba(255,255,255,.88); }
.prod-specs { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; transition: border-color .3s ease; }
.prod-card:hover .prod-specs { border-top-color: rgba(255,255,255,.34); }
.prod-spec { font-family: var(--font-mono); font-size: .6875rem; color: var(--steel); transition: color .3s ease; }
.prod-spec b { color: var(--brand); font-weight: 600; transition: color .3s ease; }
.prod-card:hover .prod-spec { color: rgba(255,255,255,.92); }
.prod-card:hover .prod-spec b { color: #fff; }

/* Feature card with icon */
.feature { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: all .4s var(--ease); }
.feature:hover { border-color: var(--pak); background: var(--pak); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature:hover h4, .feature:hover p, .feature:hover .prod-spec, .feature:hover .prod-spec b { color: #fff; }
.feature:hover .prod-specs { border-top-color: rgba(255,255,255,.34); }
.feature:hover .feature-icon { background: #fff; color: var(--pak); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.feature h4, .feature p, .feature-icon { transition: color .3s ease, background .3s ease; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; margin-bottom: 18px; box-shadow: 0 6px 16px rgba(14,59,46,.2); flex-shrink: 0; }
.feature-icon svg { width: 21px; height: 21px; }
.feature h4 { margin-bottom: 9px; }
.feature p { font-size: .875rem; color: var(--slate); line-height: 1.65; }

/* Inline icon inside flowing text — must never grow to fill its line box. */
.txt-icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.txt-icon.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- 12. Barrier visualiser (the differentiator) ------------------ */
.viz-panel { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viz-head h3 { font-size: 1rem; font-weight: 620; letter-spacing: -0.012em; }
.viz-body { padding: 26px; }

/* OTR bars */
.otr-row { display: grid; grid-template-columns: 190px 1fr 92px; gap: 16px; align-items: center; padding: 9px 0; }
.otr-name { font-size: .8125rem; font-weight: 520; color: var(--ink-2); line-height: 1.3; }
.otr-track { height: 26px; border-radius: var(--r-xs); background: var(--surface-alt); overflow: hidden; position: relative; }
.otr-fill { height: 100%; border-radius: var(--r-xs); background: linear-gradient(90deg, #A8B8B1, #C4D0CB); }
.otr-fill.dim { background: linear-gradient(90deg, #A8B8B1, #C4D0CB); }
.otr-fill.gold { background: linear-gradient(90deg, #B8933A, var(--brand-accent)); }
/* The highlighted row is the point of the chart — make it unmistakable. */
.otr-row.is-highlight .otr-track { background: rgba(62,207,142,.10); box-shadow: inset 0 0 0 1px rgba(62,207,142,.35); }
.otr-row.is-highlight .otr-fill { background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: 0 2px 8px rgba(14,59,46,.28); }
.otr-val { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-2); text-align: right; }
.otr-row.is-highlight .otr-name { color: var(--brand); font-weight: 620; }
.otr-row.is-highlight .otr-val { color: var(--brand); font-weight: 600; }
.otr-note { font-size: .6875rem; color: var(--steel); grid-column: 2 / -1; margin-top: -4px; }

/* Layer stack */
.layer-stack { display: flex; flex-direction: column; gap: 7px; }
.layer-row { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: center; }
.layer-idx { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; background: var(--surface-alt); color: var(--steel); }
.layer-bar { padding: 13px 18px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.layer-bar .lb-name { font-size: .875rem; font-weight: 600; }
.layer-bar .lb-role { font-size: .75rem; opacity: .82; margin-top: 1px; }
.layer-bar .lb-pct { font-family: var(--font-mono); font-size: .75rem; opacity: .9; white-space: nowrap; }
/* Legacy selectors: only when tone sits on the bar itself (older markup).
   Current markup puts tone on .layer-row and uses the global .layer-bar shell. */
.layer-bar.tone-outer { background: linear-gradient(100deg, #E9EDE9, #F5F8F6); color: var(--ink-2); border: 1px solid var(--line); }
.layer-bar.tone-tie { background: linear-gradient(100deg, #E6EFEA, #F2F7F4); color: var(--ink-2); border: 1px solid var(--line); }
.layer-bar.tone-barrier { background: linear-gradient(100deg, var(--brand), #1A6B4F); color: #fff; box-shadow: 0 6px 18px rgba(14,59,46,.24); }
.layer-bar.tone-seal { background: linear-gradient(100deg, #EDF1EF, #F8FAF9); color: var(--ink-2); border: 1px solid var(--line); }

/* Data tables — same mono / hairline / signal-green language as the
   homepage layer panel. Shared by matrix + property tables. */
.matrix, .prop-table { font-size: .8125rem; }
.matrix th, .matrix td, .prop-table th, .prop-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.matrix thead th, .prop-table thead th {
    background: rgba(62,207,142,.075);
    font-family: var(--font-mono); font-size: .625rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
    white-space: nowrap; border-bottom: 1px solid var(--line-strong);
}
.matrix thead th.col-hl {
    background: linear-gradient(135deg, var(--brand), #17694C); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.matrix tbody tr, .prop-table tbody tr { transition: background .2s; }
.matrix tbody tr:hover, .prop-table tbody tr:hover { background: rgba(62,207,142,.055); }
.matrix tbody tr:last-child td, .prop-table tbody tr:last-child td { border-bottom: 0; }
.matrix td:first-child, .prop-table td:first-child { font-weight: 560; color: var(--ink); }
.matrix td.col-hl { background: rgba(62,207,142,.055); box-shadow: inset 1px 0 0 rgba(62,207,142,.28); }

.rating { display: inline-flex; gap: 4px; vertical-align: middle; }
.rating i { width: 7px; height: 7px; border-radius: 50%; background: rgba(12,21,18,.13); }
/* Colour only the filled dots; the rest stay neutral. */
.rating.lv5 i:nth-child(-n+5) { background: #1F9D63; }
.rating.lv4 i:nth-child(-n+4) { background: #58B77E; }
.rating.lv3 i:nth-child(-n+3) { background: #D9A93C; }
.rating.lv2 i:nth-child(-n+2) { background: #DE8B54; }
.rating.lv1 i:nth-child(-n+1) { background: #D26A5A; }
.rating-word { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .03em; color: var(--steel); margin-left: 7px; white-space: nowrap; }

.prop-table td:nth-child(2) { font-family: var(--font-mono); color: var(--brand); font-weight: 600; white-space: nowrap; }
.prop-table td:nth-child(3) { color: var(--slate); font-size: .75rem; font-family: var(--font-mono); }
.prop-table td:nth-child(4) { color: var(--steel); font-size: .6875rem; font-family: var(--font-mono); }

/* ---------- 12b. Feature-grade visualiser panels (site-wide) --------------
   Glass shells, chart axes, numbered meta rows and a bottom data footer.
   .viz-premium is the reusable shell; .barrier-showcase only adds equal height
   to the homepage pair. */
.barrier-showcase { gap: 28px; align-items: stretch; }

/* Shared glass shell */
.viz-feature, .viz-premium {
    position: relative;
    border: 1px solid rgba(12,21,18,.075);
    background: linear-gradient(158deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.46) 100%);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: var(--glass-inner), 0 24px 60px rgba(12,21,18,.075), 0 3px 10px rgba(12,21,18,.035);
}
.viz-feature::before, .viz-premium::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 200px;
    background: radial-gradient(ellipse 68% 100% at 10% 0%, rgba(62,207,142,.17), transparent 72%);
    pointer-events: none;
}
.viz-feature::after, .viz-premium::after {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background-image:
        linear-gradient(rgba(12,21,18,.020) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,21,18,.020) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
    z-index: 0;
}
.viz-feature > *, .viz-premium > * { position: relative; z-index: 1; }

/* Homepage pair: equal height + footer pinned to the baseline */
.barrier-showcase .viz-feature { height: 100%; display: flex; flex-direction: column; }
.barrier-showcase .viz-feature .viz-body { flex: 1; display: flex; flex-direction: column; }

/* Shared numbered head */
.viz-feature .viz-head, .viz-premium .viz-head {
    align-items: flex-start;
    padding: 22px 28px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}
.viz-head-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.viz-index {
    display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
    font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
    letter-spacing: .08em; color: var(--brand);
}
.viz-index i { display: block; width: 20px; height: 1px; background: var(--brand-2); }
.viz-head-copy h3 { font-size: 1.0625rem; font-weight: 640; letter-spacing: -.018em; line-height: 1.3; }
.viz-sub {
    margin-top: 5px; font-family: var(--font-mono); font-size: .625rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.viz-feature .viz-head .pill, .viz-premium .viz-head .pill {
    font-family: var(--font-mono); font-size: .625rem; letter-spacing: .05em;
}

/* Shared body */
.viz-feature .viz-body, .viz-premium .viz-body { padding: 24px 28px 22px; }
/* Table variant: full-bleed table, inset lead / footer */
.viz-premium .viz-body.viz-table { padding: 0; }
.viz-table-scroll { overflow-x: auto; }
.viz-lead-inset { margin: 20px 28px 16px; }
/* margin-inline only — leave margin-top free so .viz-foot's auto can pin it down */
.viz-foot-inset { margin-inline: 28px; margin-bottom: 22px; }

/* Two premium panels side by side: equal height, footers on one baseline */
.viz-pair { align-items: stretch; }
.viz-pair .viz-premium { height: 100%; display: flex; flex-direction: column; }
.viz-pair .viz-premium .viz-body { flex: 1; display: flex; flex-direction: column; }

/* ---------- 12c. Product detail: equal-height specification columns ----
   The Specification panel (left) and the "Why it works" column (right)
   share one baseline. Scoped to .spec-equal only; the global .grid.g-2
   is untouched. Reuses the flex + .viz-foot margin-top:auto pin above. */
.spec-equal { align-items: stretch; }
.spec-equal > .viz-premium { height: 100%; display: flex; flex-direction: column; }
.spec-equal > .viz-premium .viz-body { flex: 1; display: flex; flex-direction: column; }
.spec-equal > .spec-rail { min-width: 0; }
/* Below 760px .g-2 collapses to one column: let the panel size naturally. */
@media (max-width: 760px) {
    .spec-equal > .viz-premium { height: auto; }
}
.viz-lead {
    max-width: 92%; margin-bottom: 22px; padding-left: 14px;
    border-left: 2px solid var(--brand-2);
    font-size: .8125rem; line-height: 1.7; color: var(--slate);
}

/* OTR chart: axis + scale + hairline rows */
.otr-chart { display: flex; flex-direction: column; }
.otr-axis {
    display: grid; grid-template-columns: 176px 1fr 64px; gap: 14px;
    align-items: end; padding-bottom: 8px; margin-bottom: 2px;
    border-bottom: 1px dashed var(--line-strong);
}
.otr-ticks { position: relative; height: 12px; font-family: var(--font-mono); font-size: .5625rem; color: var(--muted); letter-spacing: .04em; }
.otr-ticks b { position: absolute; top: 0; transform: translateX(-50%); font-weight: 500; white-space: nowrap; }
.otr-ticks b:first-child { transform: none; }
.otr-ticks b:last-child { transform: translateX(-100%); }
.otr-unit { font-family: var(--font-mono); font-size: .5625rem; color: var(--muted); text-align: right; white-space: nowrap; }
.otr-row {
    grid-template-columns: 176px 1fr 64px; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid rgba(12,21,18,.045);
}
.otr-chart .otr-row:last-child { border-bottom: 0; }
.otr-track {
    height: 22px; border-radius: 5px;
    background-color: rgba(12,21,18,.035);
    background-image:
        linear-gradient(90deg, transparent calc(36% - 1px), rgba(255,255,255,.9) calc(36% - 1px), rgba(255,255,255,.9) 36%, transparent 36%),
        linear-gradient(90deg, transparent calc(72% - 1px), rgba(255,255,255,.9) calc(72% - 1px), rgba(255,255,255,.9) 72%, transparent 72%);
    box-shadow: inset 0 0 0 1px rgba(12,21,18,.045);
}
.otr-fill { border-radius: 4px; }
/* Grow-from-zero reveal. PHP writes each final width inline so the chart is
   still correct with JS disabled; main.js collapses the fills to 0 and
   re-applies the targets when the chart scrolls into view. The transition
   exists only after .is-in is added, so there is no reverse "shrink" animation.
   --i (row index, from PHP) adds a subtle 55ms-per-row stagger. */
/* While the panel is armed but not yet on screen, hide the empty track
   chrome so it does not read as a stray rectangle. It fades in as the bars
   grow. With JS disabled the class is absent and tracks render normally. */
.otr-chart.anim-pending .otr-track,
.layer-stack.anim-pending .lb-meter {
    opacity: 0;
}
.otr-chart.anim-pending.is-in .otr-track,
.layer-stack.anim-pending.is-in .lb-meter {
    opacity: 1;
    transition: opacity .7s ease;
}

.otr-chart.is-in .otr-fill {
    /* Deliberately calmer than the global --ease-out: the original curve
       reached ~80% within 300ms, which read as a snap rather than a growth. */
    transition: width 1.05s cubic-bezier(.4, 0, .2, 1);
    transition-delay: calc(var(--i, 0) * 55ms);
}
.otr-name { font-size: .75rem; line-height: 1.35; }
.otr-val { font-size: .8125rem; font-weight: 600; }
.otr-row.is-highlight .otr-track {
    background-color: rgba(62,207,142,.09);
    background-image:
        linear-gradient(90deg, transparent calc(36% - 1px), rgba(255,255,255,.7) calc(36% - 1px), rgba(255,255,255,.7) 36%, transparent 36%),
        linear-gradient(90deg, transparent calc(72% - 1px), rgba(255,255,255,.7) calc(72% - 1px), rgba(255,255,255,.7) 72%, transparent 72%);
    box-shadow: inset 0 0 0 1px rgba(62,207,142,.45);
}
.otr-row.is-highlight .otr-val { font-size: .9375rem; }

/* Layer stack: equal-height rows, thickness meters, connected indices */
.layer-stack { gap: 8px; }
.layer-row { grid-template-columns: 30px 1fr; gap: 14px; }
.layer-idx {
    position: relative; width: 28px; height: 28px; border-radius: 8px;
    font-size: .625rem; color: var(--steel);
    background: rgba(255,255,255,.75); border: 1px solid var(--line);
}
.layer-row:not(:last-child) .layer-idx::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    width: 1px; height: 8px; background: var(--line-strong);
}
.layer-bar {
    min-height: 58px; padding: 11px 16px; border-radius: 10px;
    align-items: center; gap: 20px;
    background: linear-gradient(100deg, #EFF3F0, #F8FAF9);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.lb-main { flex: 1; min-width: 0; }
.lb-main .lb-name { font-size: .8125rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; }
.lb-main .lb-role { margin-top: 2px; font-size: .6875rem; line-height: 1.45; color: var(--slate); }
.lb-metric { width: 108px; flex-shrink: 0; text-align: right; }
.lb-metric .lb-pct { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.lb-meter { height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(12,21,18,.08); overflow: hidden; }
.lb-meter i { display: block; height: 100%; border-radius: 3px; background: var(--brand-2); }
/* Same scoped grow-from-zero rule as .otr-chart.is-in .otr-fill: the
   transition only exists after .is-in, so collapsing to 0 is instant. */
.layer-stack.is-in .lb-meter i {
    transition: width 1.05s cubic-bezier(.4, 0, .2, 1);
    transition-delay: calc(var(--i, 0) * 55ms);
}
.layer-row.tone-barrier .layer-bar {
    background: linear-gradient(105deg, var(--brand) 0%, #17694C 100%);
    border-color: transparent; color: #fff;
    box-shadow: 0 10px 24px rgba(14,59,46,.22);
}
.tone-barrier .lb-main .lb-role, .tone-barrier .lb-metric .lb-pct { color: #fff; }
.tone-barrier .lb-main .lb-role { opacity: .78; }
.tone-barrier .lb-meter { background: rgba(255,255,255,.22); }
.tone-barrier .layer-idx { background: var(--brand); border-color: transparent; color: #fff; }
.tone-barrier .lb-name::after {
    content: 'CORE'; display: inline-block; margin-left: 8px; padding: 2px 6px;
    border-radius: 4px; vertical-align: 2px; background: rgba(255,255,255,.18);
    font-family: var(--font-mono); font-size: .5rem; letter-spacing: .1em; color: #fff;
}

/* Bottom data footer — pushed to the baseline so both cards align */
.viz-foot {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}
.viz-source {
    font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.viz-takeaway { font-size: .75rem; font-weight: 550; color: var(--ink-2); text-align: right; }

/* ---------- 13. Application cards --------------------------------------- */
.app-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; padding: 26px; color: #fff; isolation: isolate; }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.app-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,37,29,.10) 0%, rgba(8,37,29,.86) 78%); }
.app-card:hover img { transform: scale(1.07); }
.app-card h4 { color: #fff; font-size: 1.125rem; font-weight: 620; letter-spacing: -0.015em; margin-bottom: 6px; }
.app-card p { color: rgba(255,255,255,.82); font-size: .8125rem; line-height: 1.55; }
.app-card .app-tag { position: absolute; top: 18px; left: 18px; }

/* ---------- 14. ESG pillars ---------------------------------------------- */
.esg-card { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.esg-head { padding: 30px 30px 26px; background: linear-gradient(140deg, var(--brand), var(--brand-ink)); color: #fff; position: relative; overflow: hidden; }
.esg-head::after { content: ''; position: absolute; right: -30px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(62,207,142,.34), transparent 68%); }
.esg-letter { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; line-height: 1; color: rgba(255,255,255,.34); letter-spacing: -.04em; }
.esg-head h3 { color: #fff; font-size: 1.25rem; font-weight: 620; margin-top: 6px; letter-spacing: -.02em; }
.esg-head p { color: rgba(255,255,255,.78); font-size: .8125rem; margin-top: 7px; position: relative; z-index: 1; }
.esg-list { padding: 8px 30px 26px; }
.esg-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.esg-item:last-child { border-bottom: 0; padding-bottom: 0; }
.esg-item .t { font-size: .875rem; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.esg-item .t::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); flex-shrink: 0; }
.esg-item .d { font-size: .8125rem; color: var(--slate); line-height: 1.6; padding-left: 13px; }

/* ---------- 14b. ESG breathing (decorative pseudo-elements only) ---------
   "忽明忽暗呼吸效果": the soft halo in each dark card head and the small green
   bullet before each list item. ONLY these pseudo-elements animate -- text,
   layout and the base palette never move. Three cards are phase-shifted;
   bullets inside a card are staggered. Reduced-motion users get a static,
   full-brightness version. */
@keyframes esgHaloBreath {
    0%, 100% { opacity: .42; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.07); }
}
@keyframes esgDotBreath {
    0%, 100% { opacity: .42; transform: scale(.88);
               box-shadow: 0 0 0 0 rgba(62,207,142,0); }
    50%      { opacity: 1;   transform: scale(1.22);
               box-shadow: 0 0 0 3px rgba(62,207,142,.18); }
}
.esg-card { --esg-phase: 0s; }
.esg-card:nth-child(2) { --esg-phase: -1.6s; }
.esg-card:nth-child(3) { --esg-phase: -3.2s; }

.esg-card .esg-head::after {
    opacity: .42;
    transform-origin: center;
    animation: esgHaloBreath 4.8s ease-in-out infinite;
    animation-delay: var(--esg-phase);
    will-change: opacity, transform;
}
.esg-card .esg-item .t::before {
    animation: esgDotBreath 3.6s ease-in-out infinite;
}
.esg-card .esg-item:nth-child(1) .t::before { animation-delay: var(--esg-phase); }
.esg-card .esg-item:nth-child(2) .t::before { animation-delay: calc(var(--esg-phase) - 0.35s); }
.esg-card .esg-item:nth-child(3) .t::before { animation-delay: calc(var(--esg-phase) - 0.7s); }
.esg-card .esg-item:nth-child(4) .t::before { animation-delay: calc(var(--esg-phase) - 1.05s); }
.esg-card .esg-item:nth-child(n+5) .t::before { animation-delay: var(--esg-phase); }

@media (prefers-reduced-motion: reduce) {
    .esg-card .esg-head::after,
    .esg-card .esg-item .t::before {
        animation: none !important;
        opacity: 1;
        transform: none;
        box-shadow: none;
    }
}

/* ---------- 15. Article / blog ------------------------------------------- */
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s var(--ease), border-color .35s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--pak); background: var(--pak); }
.post-meta, .post-body h3, .post-body p, .link-arrow { transition: color .3s ease; }
.post-card:hover .post-meta { color: rgba(255,255,255,.82); }
.post-card:hover .post-body h3, .post-card:hover .link-arrow { color: #fff; }
.post-card:hover .post-body p { color: rgba(255,255,255,.88); }
.post-card:hover .link-arrow svg { stroke: #fff; }
.post-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-alt); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .6875rem; color: var(--steel); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.post-body h3 { font-size: 1.0625rem; font-weight: 620; line-height: 1.38; letter-spacing: -.015em; margin-bottom: 10px; }
.post-body p { font-size: .875rem; color: var(--slate); line-height: 1.62; margin-bottom: 18px; }
.post-foot { margin-top: auto; }

/* Article body typography */
.article-body { font-size: 1.0625rem; line-height: 1.82; color: var(--ink-2); }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: 1.65rem; font-weight: 640; letter-spacing: -.022em; color: var(--ink); line-height: 1.24; margin-top: 2em; }
.article-body h3 { font-size: 1.2rem; font-weight: 620; letter-spacing: -.015em; color: var(--ink); margin-top: 1.7em; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body ul li { list-style: disc; margin-bottom: .55em; }
.article-body ol li { list-style: decimal; margin-bottom: .55em; }
.article-body li::marker { color: var(--brand-2); }
.article-body strong { color: var(--ink); font-weight: 620; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
    margin: 1.8em 0;
    padding: 22px 26px;
    background: linear-gradient(120deg, var(--brand-soft), rgba(62,207,142,.08));
    border-left: 3px solid var(--brand-2);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-size: 1.125rem;
    line-height: 1.62;
    color: var(--ink);
    font-weight: 480;
}
.article-body table { margin: 1.6em 0; font-size: .875rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.article-body thead th { background: var(--surface-alt); padding: 12px 14px; font-weight: 620; text-align: left; font-size: .8125rem; }
.article-body tbody td { padding: 11px 14px; border-top: 1px solid var(--line); }
.article-body tbody tr:nth-child(even) { background: rgba(244,247,245,.5); }
.article-body img { border-radius: var(--r-md); margin: 1.6em 0; }

/* ---------- 15b. Article detail: two-column layout + sidebar rail -------- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
    align-items: start;
    max-width: 1308px;
    margin-inline: auto;
    padding: calc(var(--nav-h) + 52px) var(--gutter) clamp(72px, 8vw, 120px);
}
.article-main { min-width: 0; }
.article-main > .crumbs { margin-bottom: 26px; }
.article-main > .post-meta { margin-bottom: 16px; }
.article-main .display-2 { max-width: 900px; }
.article-main .lead { max-width: 780px; margin-top: 18px; }
.article-author {
    display: flex; align-items: center; gap: 12px; margin-top: 26px;
    padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.article-author .avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    color: #fff; font-size: .75rem; font-weight: 600;
}
.article-author .a-name { font-size: .8125rem; font-weight: 600; }
.article-author .a-role { font-size: .6875rem; color: var(--steel); }
.article-cover {
    margin: 32px 0 0; aspect-ratio: 21 / 9; border-radius: var(--r-xl);
    overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-alt);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout .article-body { margin-top: 38px; max-width: 78ch; }
.article-tags { margin-top: 38px; }
.article-inline-cta { margin-top: 40px; }

/* Rail */
.article-rail {
    position: sticky; top: calc(var(--nav-h) + 24px);
    display: flex; flex-direction: column; gap: 18px;
}
.rail-card { padding: 20px; border-radius: var(--r-lg); }
.rail-tabbar {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 18px;
    border-radius: var(--r-sm); background: rgba(12,21,18,.045);
}
.rail-tab {
    flex: 1; padding: 9px 5px; border: 0; border-radius: 7px;
    background: transparent; cursor: pointer; white-space: nowrap;
    font-size: .6875rem; font-weight: 600; letter-spacing: .01em;
    color: var(--steel); transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.rail-tab:hover { color: var(--ink); }
.rail-tab.is-active {
    background: #fff; color: var(--brand);
    box-shadow: var(--shadow-xs), 0 0 0 1px var(--line);
}
.rail-pane { display: none; }
.rail-pane.is-active { display: block; }
.rail-label {
    display: block; margin-bottom: 14px;
    font-family: var(--font-mono); font-size: .625rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
}
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rail-head .rail-label { margin-bottom: 0; }
.rail-more { font-size: .6875rem; font-weight: 600; color: var(--brand); }
.rail-more:hover { text-decoration: underline; }

.rail-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--line);
}
.rail-item:first-of-type { padding-top: 0; }
.rail-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rail-thumb {
    width: 62px; height: 52px; flex-shrink: 0; border-radius: 8px;
    overflow: hidden; background: var(--surface-alt);
}
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rail-item:hover .rail-thumb img { transform: scale(1.08); }
.rail-file {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: .625rem; font-weight: 600;
    color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.rail-item-body { min-width: 0; flex: 1; }
.rail-item-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: .8125rem; font-weight: 600;
    line-height: 1.4; color: var(--ink); transition: color .2s;
}
.rail-item:hover .rail-item-title { color: var(--brand); }
.rail-item-meta {
    display: block; margin-top: 4px;
    font-family: var(--font-mono); font-size: .5625rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--steel);
}
.rail-cat {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--line);
    font-size: .8125rem; color: var(--ink-2); transition: color .2s;
}
.rail-cat:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rail-cat:hover, .rail-cat.is-current { color: var(--brand); }
.rail-cat.is-current { font-weight: 600; }
.rail-cat-count {
    font-family: var(--font-mono); font-size: .6875rem; color: var(--steel);
    background: var(--surface-alt); border-radius: var(--r-full); padding: 2px 8px;
}
.rail-all {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    font-size: .75rem; font-weight: 600; color: var(--brand);
}
.rail-all svg { width: 14px; height: 14px; }
.rail-cta { background: linear-gradient(150deg, rgba(62,207,142,.12), rgba(255,255,255,.72)); border-color: var(--brand-line); }
.rail-cta p { margin: 8px 0 16px; font-size: .8125rem; line-height: 1.65; color: var(--slate); }

@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; gap: 36px; }
    .article-rail {
        position: static;
        display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        align-items: start;
    }
    .article-layout .article-body { max-width: none; }
}
@media (max-width: 760px) {
    .article-layout { padding-top: calc(var(--nav-h) + 32px); gap: 28px; }
    .article-cover { aspect-ratio: 16 / 10; margin-top: 24px; }
    .article-layout .article-body { margin-top: 28px; }
    .article-rail { grid-template-columns: 1fr; }
}

/* ---------- 16. Case cards ----------------------------------------------- */
.case-card { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: all .45s var(--ease); }
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-media { position: relative; min-height: 240px; }
.case-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.case-body { padding: 28px; display: flex; flex-direction: column; }
.case-body h3 { font-size: 1.125rem; font-weight: 620; letter-spacing: -.018em; margin-bottom: 8px; line-height: 1.35; }
.case-body .case-client { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-metric { background: var(--surface-alt); border-radius: var(--r-sm); padding: 9px 13px; }
.case-metric .cm-v { font-size: .9375rem; font-weight: 640; color: var(--brand); letter-spacing: -.015em; }
.case-metric .cm-l { font-size: .625rem; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; margin-top: 1px; }

/* ---------- 17. CTA band ------------------------------------------------- */
.cta-band { position: relative; border-radius: var(--r-2xl); overflow: hidden; padding: clamp(40px, 5.5vw, 76px); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 62%, #0B2F25 100%); color: #fff; }
.cta-band::before { content: ''; position: absolute; right: -80px; top: -90px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(62,207,142,.30), transparent 66%); }
.cta-band::after { content: ''; position: absolute; left: 30%; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.16), transparent 66%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.76); font-size: 1.0625rem; line-height: 1.65; max-width: 560px; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-outline { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- 18. Forms ---------------------------------------------------- */
/* ---------- 19b. Contact: four direct-line cards + full-width form ---------- */
/* FOUR separate glass cards above a single, full-width form card
   (coremodel3d-style), instead of one bar with four columns. */
.dl-title { font-size: 1.0625rem; font-weight: 680; letter-spacing: -.015em; color: var(--ink); margin-bottom: 18px; }
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 26px; }
.dl-item {
    display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0;
    padding: 24px 22px; border-radius: var(--r-lg);
    background: rgba(255,255,255,.76); border: 1px solid var(--line);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease),
                border-color .35s var(--ease), background .35s var(--ease);
}
.dl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--pak); background: var(--pak); }
/* Hover: background flips to the wordmark PAK green, so reverse all text/icon colours. */
.dl-name, .dl-role, .dl-label, .dl-value, .dl-value a, .dl-value-plain, .dl-ico, .dl-avatar {
    transition: color .3s ease, background .3s ease;
}
.dl-item:hover .dl-name,
.dl-item:hover .dl-role,
.dl-item:hover .dl-label,
.dl-item:hover .dl-value,
.dl-item:hover .dl-value a,
.dl-item:hover .dl-value-plain { color: #fff; }
.dl-item:hover .dl-value a:hover { color: rgba(255,255,255,.8); }
.dl-item:hover .dl-ico { background: rgba(255,255,255,.18); color: #fff; }
.dl-item:hover .dl-avatar { background: #fff; color: var(--pak); }
.dl-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 1.0625rem; font-weight: 700;
}
.dl-name { font-size: 1.0625rem; font-weight: 680; color: var(--ink); line-height: 1.25; }
.dl-role { font-size: .8125rem; color: var(--steel); margin-top: 5px; }
.dl-ico {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; line-height: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(32,155,104,.10); color: var(--pak);
}
.dl-ico svg { width: 22px; height: 22px; stroke-width: 1.8; }
.dl-label {
    font-family: var(--font-mono); font-size: .625rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
    margin-bottom: 9px;
}
.dl-value { font-size: 1rem; font-weight: 620; line-height: 1.45; color: var(--brand); word-break: break-word; }
.dl-value a { color: var(--brand); }
.dl-value a:hover { color: var(--pak); }
.dl-value-plain { color: var(--ink-2); font-weight: 560; }

.contact-form-wide { max-width: 100%; margin-inline: auto; background: rgba(255,255,255,.86); }
.contact-form-wide .form-grid { gap: 20px; }

@media (max-width: 1024px) {
    .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 560px) {
    .dl-grid { grid-template-columns: 1fr; gap: 14px; }
    .dl-item { padding: 22px 20px; }
    .dl-title { margin-bottom: 16px; }
}

.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .8125rem; font-weight: 560; color: var(--ink-2); }
.field label .req { color: #D9705C; margin-left: 2px; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.8);
    font-size: .9375rem;
    transition: border-color .22s, box-shadow .22s, background .22s;
    outline: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E8C87' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(62,207,142,.16); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field .hint { font-size: .6875rem; color: var(--steel); }
.form-alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 520; }
.form-alert.ok { background: rgba(62,207,142,.14); color: var(--brand); border: 1px solid rgba(62,207,142,.3); }
.form-alert.err { background: rgba(217,112,92,.12); color: #B4472F; border: 1px solid rgba(217,112,92,.28); }

/* ---------- Quotation brief form (contact) -------------------------------- */
.form-section {
    display: flex; align-items: flex-start; gap: 14px;
    padding-top: 22px; margin-top: 8px;
    border-top: 1px solid var(--line);
}
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-section-no {
    font-family: 'JetBrains Mono', monospace; font-size: .75rem; font-weight: 600;
    letter-spacing: .06em; color: var(--brand); flex-shrink: 0;
    background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.28);
    border-radius: 8px; padding: 7px 10px;
}
.form-section h4 { font-size: 1rem; font-weight: 650; margin: 0 0 4px; }
.form-section p { margin: 0; font-size: .75rem; color: var(--slate); line-height: 1.5; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.check-item {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: .8125rem; color: var(--ink-2); line-height: 1.35;
    padding: 11px 13px; border: 1px solid var(--line);
    border-radius: var(--r-sm); background: rgba(255,255,255,.6);
    transition: border-color .2s, background .2s;
}
.check-item:hover { border-color: var(--brand-line); background: rgba(62,207,142,.06); }
.check-item input {
    width: 15px; height: 15px; padding: 0; flex-shrink: 0;
    border: 0; background: none; box-shadow: none;
    accent-color: var(--brand); cursor: pointer;
}
.check-item input:focus { box-shadow: none; }
.contact-support { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
.cs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-step-num {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
}
@media (max-width: 760px) {
    .cs-steps { grid-template-columns: 1fr; gap: 8px; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .check-grid { grid-template-columns: 1fr; } }

/* ---------- 19. Footer --------------------------------------------------- */
.footer { background: linear-gradient(180deg, #0A2019, #071611); color: rgba(255,255,255,.7); padding: clamp(52px, 6vw, 80px) 0 30px; margin-top: 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; left: 50%; top: -180px; width: 900px; height: 360px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(62,207,142,.14), transparent 70%); }
.footer > * { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand h3 { color: #fff; font-size: 1.25rem; font-weight: 660; letter-spacing: -.02em; margin-bottom: 12px; }
.footer-brand p { font-size: .875rem; line-height: 1.65; max-width: 330px; }
.footer h4 { color: #fff; font-size: .75rem; font-weight: 620; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.68); transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--brand-2); padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; flex-wrap: wrap; font-size: .8125rem; }
.footer-social { display: flex; gap: 9px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); transition: all .25s; }
.footer-social a:hover { background: var(--brand-2); color: var(--brand-ink); border-color: transparent; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- 20. Page header ---------------------------------------------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(40px, 5vw, 72px)); padding-bottom: clamp(40px, 5vw, 68px); position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(760px 400px at 20% 0%, rgba(62,207,142,.10), transparent 66%); pointer-events: none; }
.page-head > * { position: relative; }
/* Dark inner pages: stronger side-centred glows, same language as the home
   hero. Kept inside .page-head (overflow:hidden) so no section edge appears. */
html[data-theme="dark"] .page-head::before {
    background:
        radial-gradient(860px 560px at 7% 8%,   rgba(79, 215, 160, .24), transparent 70%),
        radial-gradient(780px 660px at 98% 60%, rgba(47, 184, 132, .15), transparent 70%);
    /* Fade the glow out before the page-head clipping edge, so no horizontal
       colour step appears where the tinted header band ends. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--steel); margin-bottom: 20px; font-family: var(--font-mono); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .45; }

/* ---------- 21. Product filter rail ---------------------------------- */
.filter-rail { position: sticky; top: calc(var(--nav-h) + 72px); }

.filter-block { border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: 0; }

.filter-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    transition: color .2s;
}
.filter-head:hover { color: var(--brand); }
.filter-head svg {
    width: 13px; height: 13px;
    opacity: .45;
    transition: transform .28s var(--ease);
    flex-shrink: 0;
}
.filter-block.open .filter-head svg { transform: rotate(180deg); }

.filter-body { display: none; padding: 0 20px 16px; }
.filter-block.open .filter-body { display: block; }

.filter-sub {
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.filter-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: .8125rem;
    color: var(--ink-2);
    transition: color .18s;
    line-height: 1.35;
}
.filter-opt:hover { color: var(--brand); }
.filter-box {
    width: 15px; height: 15px;
    border: 1.5px solid var(--line-strong);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.filter-box svg { width: 10px; height: 10px; color: #fff; }
.filter-opt.on .filter-box { background: var(--brand); border-color: var(--brand); }
.filter-opt.on .filter-label { color: var(--brand); font-weight: 560; }
.filter-label { flex: 1; min-width: 0; }
.filter-n {
    font-family: var(--font-mono);
    font-size: .625rem;
    color: var(--muted);
    flex-shrink: 0;
}

/* Contact block inside the rail */
.rail-contact { display: flex; flex-direction: column; gap: 11px; }
.rail-contact a, .rail-contact-static {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: .8125rem; color: var(--ink-2); line-height: 1.4;
}
.rail-contact a:hover { color: var(--brand); }
.rail-contact svg { width: 15px; height: 15px; color: var(--brand-2); flex-shrink: 0; margin-top: 1px; }
.rail-contact-static { color: var(--steel); }

/* Product card badges */
.prod-badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.badge-hot, .badge-new {
    font-family: var(--font-mono);
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
}
.badge-hot { background: #D2603F; }
.badge-new { background: var(--brand-2); color: var(--brand-ink); }
.badge-core { background: var(--brand); }

.prod-group {
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-2);
}

/* FAQ / catalogue search box */
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
}
.faq-search svg {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    color: var(--steel);
    pointer-events: none;
}
.faq-search input {
    width: 100%;
    padding: 17px 22px 17px 52px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-full);
    background: rgba(255,255,255,.76);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    font-size: 1.0625rem;
    outline: none;
    transition: border-color .22s, box-shadow .22s, background .22s;
}
.faq-search input:focus {
    border-color: var(--brand-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(62,207,142,.14);
}
.faq-search input::placeholder { color: var(--muted); }

/* FAQ accordion toggle */
.faq-item.open .faq-toggle {
    background: var(--brand);
    color: #fff;
    transform: rotate(45deg);
}

.divider { height: 1px; background: var(--line); border: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; } .mb-5 { margin-bottom: 48px; }
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }
.hide { display: none !important; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* Back to top */
.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 800;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--brand); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
    transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand-ink); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 22. Responsive ---------------------------------------------- */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    /* .nav-links carried margin-left:auto on desktop; once hidden the
       hamburger lost it and sat next to the logo. Restore it here. */
    .nav-actions { margin-left: auto; }
    .nav-toggle { display: flex; }
    .nav-actions .btn-hide-sm { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-frame { aspect-ratio: 16 / 10; }
    .float-tl { top: -12px; left: 12px; }
    .float-br { bottom: -14px; right: 12px; }
    .g-4 { grid-template-columns: repeat(2, 1fr); }
    .g-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* Product page: collapse the filter rail above the grid on narrow screens */
@media (max-width: 980px) {
    .filter-rail { position: static; }
    .products-layout { grid-template-columns: 1fr !important; }
    .filter-rail .glass:first-child { margin-bottom: 20px; }
    .faq-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 760px) {
    :root { --gutter: 20px; }
    .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
    /* Product grid must never force the page wider than the viewport */
    .products-grid { grid-template-columns: 1fr !important; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .case-card { grid-template-columns: 1fr; }
    .case-media { min-height: 190px; }
    .otr-row { grid-template-columns: 1fr; gap: 6px; }
    .otr-val { text-align: left; }
    .layer-row { grid-template-columns: 26px 1fr; gap: 10px; }
    .layer-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
    .footer-top { grid-template-columns: 1fr; }
    .section-head { margin-bottom: 32px; }
    .viz-head { padding: 16px 18px; }
    .viz-body { padding: 18px; }

    /* Feature-grade visualiser panels on small screens (site-wide) */
    .barrier-showcase { gap: 18px; }
    .viz-feature .viz-head, .viz-premium .viz-head { align-items: flex-start; padding: 18px; }
    .viz-feature .viz-body, .viz-premium .viz-body { padding: 18px; }
    .viz-premium .viz-body.viz-table { padding: 0; }
    .viz-lead-inset { margin: 16px 18px 14px; }
    .viz-foot-inset { margin-inline: 18px; margin-bottom: 18px; }
    .matrix th, .matrix td, .prop-table th, .prop-table td { padding: 11px 12px; }
    /* Two-column spec tables should wrap, not force a horizontal scroll.
       Wide multi-column tables (matrix / property sheet) keep the scroll. */
    .prop-table td:nth-child(2) { white-space: normal; }
    .viz-head-left { gap: 11px; }
    .viz-index { font-size: .6875rem; }
    .viz-index i { width: 12px; }
    .viz-head-copy h3 { font-size: .9375rem; }
    .viz-sub { font-size: .5625rem; letter-spacing: .06em; }
    .viz-feature .viz-head .pill, .viz-premium .viz-head .pill { font-size: .5625rem; }
    .viz-lead { max-width: 100%; padding-left: 11px; margin-bottom: 16px; font-size: .75rem; }
    .otr-axis { grid-template-columns: 92px 1fr 44px; gap: 8px; }
    .otr-row { grid-template-columns: 92px 1fr 44px; gap: 8px; padding: 8px 0; }
    .otr-name { font-size: .625rem; }
    .otr-val { font-size: .6875rem; text-align: right; }
    .otr-row.is-highlight .otr-val { font-size: .75rem; }
    .otr-ticks b:nth-child(2), .otr-ticks b:nth-child(3) { display: none; }
    .otr-unit { display: none; }
    .layer-row { grid-template-columns: 26px 1fr; gap: 10px; }
    .layer-bar { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; min-height: 54px; }
    .lb-metric { width: 66px; }
    .lb-main .lb-role { display: none; }
    .lb-main .lb-name { font-size: .75rem; }
    .viz-foot { padding-top: 13px; gap: 6px; }
    .viz-source { white-space: normal; font-size: .5rem; }
    .viz-takeaway { text-align: left; font-size: .6875rem; }

    .glass-pad { padding: 22px; }
    .prod-body { padding: 18px; }
    .post-body { padding: 18px; }

    /* Floating stat cards shrink so they never cover the hero image */
    .float-card { padding: 11px 14px; }
    .float-card .fc-value { font-size: .9375rem; }
    .float-card .fc-label { font-size: .5625rem; }
    .float-card .fc-note { font-size: .625rem; }
    .float-tl { top: -10px; left: 10px; }
    .float-br { bottom: -12px; right: 10px; }

    /* Hamburger: give the three bars breathing room */
    .nav-toggle { width: 44px; height: 44px; }
    .nav-toggle span { width: 20px; height: 2px; }
    .nav-toggle span + span { margin-top: 5px; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-actions { gap: 8px; }
    .nav-inner { gap: 12px; }
    .hero { padding-top: calc(var(--nav-h) + 32px); }
    .hero-frame { aspect-ratio: 4 / 3.4; }
}

/* Below ~420px the enlarged wordmark + CTA + hamburger no longer fit on one
   row. The mobile drawer already carries "Request a sample", so the header
   keeps logo + menu only and the logo stays legible. */
@media (max-width: 420px) {
    .nav-actions .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- 24. Product secondary navigation ---------------------------- */
/* Relocated: sits BELOW the page head and ABOVE the product grid.
   Width = container-wide only (NOT full-bleed), and the whole bar sticks
   directly under the fixed main nav once the page scrolls. Light glass +
   mono tabs + a signal-green active state — not the competitor's dark bar. */
.subnav-wrap {
    position: sticky;
    top: var(--nav-h);
    z-index: 40;
    /* Permanently transparent — at rest AND while stuck. No opaque canvas is
       ever painted, so the page gradient is never covered by a hard-edged
       rectangle. Ghost-text protection lives on the capsule itself (below). */
    padding-top: 10px;
    padding-bottom: 16px;
    background: transparent;
    box-shadow: none;
}
.subnav {
    position: relative; z-index: 20;
    background: rgba(255,255,255,.76);
    -webkit-backdrop-filter: saturate(185%) blur(28px);
    backdrop-filter: saturate(185%) blur(28px);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
/* Only the capsule turns fully opaque once stuck: scrolled product text can
   never show through the nav, but there is still NO surrounding band. The
   slightly stronger card shadow keeps a soft separation from the grid. */
.subnav-wrap.is-stuck .subnav {
    background: #fff;
    box-shadow: 0 12px 30px -10px rgba(12,46,35,.18);
}
.subnav-inner { display: flex; align-items: center; gap: 22px; min-height: 50px; padding: 8px 16px; }
.subnav-label {
    font-family: 'JetBrains Mono', monospace; font-size: .6875rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--steel); flex-shrink: 0;
}
.subnav-tabs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tab {
    position: relative; white-space: nowrap; flex-shrink: 0; text-decoration: none;
    font-family: 'JetBrains Mono', monospace; font-size: .6875rem; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
    padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.subnav-tab:hover { color: var(--brand); background: var(--brand-soft); }
.subnav-tab.is-active { color: var(--brand); font-weight: 650; background: var(--brand-soft); }
.subnav-tab.is-active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
    height: 2px; border-radius: 2px; background: var(--brand-2);
}
.subnav-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); margin-left: 7px; vertical-align: middle; }
.subnav-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.subnav-all svg { width: 13px; height: 13px; }
.subnav-all:hover { text-decoration: underline; }
.filter-block { scroll-margin-top: calc(var(--nav-h) + 100px); }
.filter-block.is-flash { box-shadow: inset 3px 0 0 var(--brand-2), 0 0 0 3px rgba(62,207,142,.18); }
@media (max-width: 760px) {
    .subnav-inner { gap: 12px; }
    .subnav-label, .subnav-all { display: none; }
    .subnav-tab { padding: 8px 11px; font-size: .625rem; }
}

/* ---------- 20. Unified PAK hover: About number tiles ------------------- */
/* The four tiles use inline text colours, so !important is required here. */
.stat-tile { transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.stat-tile:hover { background: var(--pak); border-color: var(--pak); transform: translateY(-3px); }
.stat-tile:hover > div { color: #fff !important; }
.stat-tile:hover .small { color: rgba(255,255,255,.86) !important; }


/* ---------- Contact: arithmetic security check -------------------------- */
.captcha-block {
    margin: 6px 0 20px;
    padding: 20px 22px;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.58);
    border: 1px solid var(--line);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.captcha-block > label {
    display: block;
    font-family: var(--font-mono); font-size: .625rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
    margin-bottom: 12px;
}
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-q {
    font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 700;
    letter-spacing: .04em; color: var(--brand);
    padding: 10px 18px; border-radius: 10px;
    background: rgba(32,155,104,.08); border: 1px solid rgba(32,155,104,.18);
    white-space: nowrap;
}
.captcha-row input {
    flex: 0 0 130px; max-width: 160px;
    padding: 11px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff;
    font-family: var(--font); font-size: .9375rem; color: var(--ink);
    outline: none; transition: border-color .3s ease, box-shadow .3s ease;
}
.captcha-row input:focus { border-color: var(--pak); box-shadow: 0 0 0 3px rgba(32,155,104,.14); }
.captcha-refresh {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 15px; border-radius: 10px; cursor: pointer;
    font-family: var(--font); font-size: .8125rem; font-weight: 600;
    color: var(--brand); background: #fff; border: 1px solid var(--line);
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.captcha-refresh:hover { background: var(--pak); border-color: var(--pak); color: #fff; }
/* Submit lives in the SAME row as the security check — no extra line. */
.captcha-submit { margin-left: auto; }
.captcha-hint-reply { margin-left: 8px; color: var(--steel); }
.captcha-block .hint { display: block; margin-top: 10px; }
@media (max-width: 560px) {
    .captcha-row input { flex: 1 1 120px; max-width: none; }
    .captcha-submit { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}


/* ---------- 25. Round 19:25 — two-line banners + footer lockup ---------- */
/* Banner heads that must read as exactly two lines on desktop. */
.head-two-line {
    font-size: clamp(2.6rem, 5.2vw, 4.3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Footer brand lockup — flat reversed lockup on the dark footer ground.
   No tile: mark + wordmark sit directly on the gradient, mirroring the nav
   lockup but reversed. The SVG notch is a real transparent cut-out. */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-mark {
    width: 36px; height: 31px; flex-shrink: 0;
    display: block;
}
.footer-logo-word { color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.footer-logo-word span { color: var(--brand-2); }

.footer-legal { display: inline-flex; align-items: center; gap: 10px; }
.footer-legal a { color: rgba(255,255,255,.78); transition: color .2s; }
.footer-legal a:hover { color: var(--brand-2); }
.footer-legal-sep { opacity: .4; }
@media (max-width: 560px) {
    .footer-legal { flex-wrap: wrap; }
}


/* ---------- 26. Round 19:50 — search rows out of the banner -------------
   FAQ / Products banners used to be a two-column grid: a large display
   heading on the left, a small search box + pills on the right. Two type
   scales side by side made the banner text look small and inconsistent.
   The banner now carries ONLY the heading + lead; the tools share one
   compact toolbar row (FAQ) or sit inside the sticky secondary nav (Products). */

.faq-head, .prod-head { max-width: 980px; }

/* FAQ: search + category pills share ONE toolbar row below the banner.
   The search is no longer on a line of its own. On wide desktops everything
   fits on a single line; below that the pill group wraps, but the search
   always stays beside the first pill row. */
.faq-tools {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    /* nowrap keeps the search beside the pill group on mid-size screens:
       the pills wrap INSIDE .faq-cats instead of the whole group dropping
       to a second line, which would leave the search alone again. */
    flex-wrap: nowrap;
    margin-bottom: clamp(26px, 3.2vw, 38px);
}
.faq-tools .faq-search {
    flex: 0 0 clamp(180px, 14vw, 220px);
    max-width: none;
    margin: 0;
}
.faq-tools .faq-search svg { left: 14px; width: 16px; height: 16px; }
.faq-tools .faq-search input {
    padding: 9px 14px 9px 38px;
    font-size: .8125rem;
}
.faq-cats {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    gap: 8px;
}
.faq-cats .pill {
    font-size: .8125rem;
    padding: 8px 13px;
    font-weight: 560;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.faq-cats .pill:hover { background: var(--pak); border-color: var(--pak); color: #fff; }

/* Products: compact search embedded in the sticky secondary nav.
   Sits between the last facet tab and "All products" (per the mockup). */
.subnav-search { flex-shrink: 0; width: clamp(180px, 17vw, 250px); }
.subnav-search svg { left: 12px; width: 15px; height: 15px; }
.subnav-search input {
    padding: 9px 12px 9px 34px;
    font-size: .75rem;
    border-radius: 8px;
    background: rgba(255,255,255,.6);
    border-color: var(--line);
}
.subnav-search input:focus { box-shadow: 0 0 0 3px rgba(62,207,142,.14); }
.subnav-search input::placeholder { color: var(--steel); }

/* Result toolbar above the product grid (count / clear / sample CTA) */
.products-toolbar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.products-toolbar .small strong { color: var(--brand); font-weight: 650; }
.products-toolbar .btn-sm { margin-left: auto; }

@media (max-width: 980px) {
    .subnav-search { width: clamp(150px, 20vw, 200px); }
}
@media (max-width: 760px) {
    .subnav-inner { flex-wrap: wrap; }
    .subnav-search { order: 3; width: 100%; flex-basis: 100%; }
    .subnav-search input { font-size: .8125rem; padding: 11px 12px 11px 36px; }
    .faq-tools { flex-wrap: wrap; }
    .faq-tools .faq-search { flex: 1 1 100%; max-width: 100%; }
    .faq-cats { flex: 1 1 100%; }
    .products-toolbar .btn-sm { margin-left: 0; }
}

/* ---------- 25. Legal pages: standard content width -------------------- */
/* Round 1200: legal pages now use .container-wide like EVERY other inner
   page (about / faq / specifications). The old 1280px centred .container
   inset the card by 80px on both sides, so it did not line up with the
   banner / nav content column. .legal-container is kept purely as a hook
   for QA / future tuning; there is intentionally no max-width override. */

/* ==========================================================================
   26. Dark theme ----------------------------------------------------------
   All rules are scoped to html[data-theme="dark"], so the light theme keeps
   its existing rendered bytes. Brand green is lifted to a readable mint on
   dark surfaces; the deep green remains the ink for buttons.
   ========================================================================== */
html[data-theme="dark"] {
    color-scheme: dark;

    --brand:        #4FD7A0;
    --brand-2:      #8BE8C3;
    --pak:          #2FB884;
    --brand-accent: #E6C86A;
    --brand-ink:    #061A13;
    --brand-soft:   rgba(79, 215, 160, .13);
    --brand-line:   rgba(79, 215, 160, .26);

    --canvas:       #0B1511;
    --surface:      #13221B;
    --surface-alt:  #0E1B15;
    --surface-warm: #16241D;

    --ink:    #EDF6F1;
    --ink-2:  #C6D8CF;
    --slate:  #98ADA4;
    --steel:  #81978D;
    --muted:  #62786F;

    --line:        rgba(255,255,255,.09);
    --line-strong: rgba(255,255,255,.17);
    --shadow-xs:   0 1px 2px rgba(0,0,0,.35);
    --shadow-sm:   0 2px 8px rgba(0,0,0,.35);
    --shadow-md:   0 8px 24px rgba(0,0,0,.42);
    --shadow-lg:   0 24px 60px rgba(0,0,0,.5);
    --shadow-xl:   0 40px 90px rgba(0,0,0,.6);

    --glass-bg:     rgba(19, 34, 27, .62);
    --glass-bg-2:   rgba(19, 34, 27, .48);
    --glass-border: rgba(255,255,255,.16);
    --glass-inner:  inset 0 1px 0 rgba(255,255,255,.11);
    --blur:         saturate(170%) blur(28px);
}

html[data-theme="dark"] ::selection { background: #4FD7A0; color: #061A13; }

html[data-theme="dark"] .bg-field {
    background:
        radial-gradient(900px 600px at 12% -8%,  rgba(79, 215, 160, .10), transparent 62%),
        radial-gradient(760px 520px at 92% 4%,   rgba(230, 200, 106, .055), transparent 60%),
        radial-gradient(1000px 700px at 50% 108%, rgba(79, 215, 160, .045), transparent 66%),
        linear-gradient(178deg, #0D1914 0%, #0A130F 48%, #0C1712 100%);
}
html[data-theme="dark"] .bg-field::after {
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
}

/* Navigation — dark frosted glass, copy stays readable when scrolled. */
html[data-theme="dark"] .nav {
    background: rgba(11, 21, 17, .66);
    backdrop-filter: saturate(170%) blur(30px);
    -webkit-backdrop-filter: saturate(170%) blur(30px);
}
html[data-theme="dark"] .nav.scrolled {
    background: rgba(15, 29, 23, .82);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 24px rgba(0,0,0,.42);
}
html[data-theme="dark"] .dropdown,
html[data-theme="dark"] .dropdown .dropdown-grid {
    background: rgba(17, 31, 24, .87);
    border-color: var(--line-strong);
}
html[data-theme="dark"] .dd-link:hover,
html[data-theme="dark"] .dd-all:hover { background: var(--brand-soft); }

/* Hero — dark base, photograph dimmed so the white packaging art melts into
   the page instead of glowing. Left scrim stays opaque for headline contrast.
   Two soft glows sit INSIDE the scrim: top-left (above the headline) and the
   right-middle (beside the product art). Both are radial and fade to fully
   transparent, so they never create a rectangle at the hero edge. */
html[data-theme="dark"] .hero-banner { background: #0C1712; }
html[data-theme="dark"] .hero-banner-media { background: linear-gradient(90deg, #0C1712 0%, #152A21 100%); }
html[data-theme="dark"] .hero-banner-media img {
    filter: brightness(.72) saturate(.86) contrast(1.04);
}
html[data-theme="dark"] .hero-banner-scrim {
    background:
        radial-gradient(820px 580px at 8% 8%,   rgba(79, 215, 160, .26), transparent 70%),
        radial-gradient(760px 820px at 98% 54%, rgba(47, 184, 132, .20), transparent 70%),
        linear-gradient(90deg,
            rgba(10,22,17,.97) 0%,
            rgba(10,22,17,.90) 26%,
            rgba(10,22,17,.55) 44%,
            rgba(10,22,17,.08) 66%,
            rgba(10,22,17,0) 80%),
        linear-gradient(0deg, rgba(10,22,17,.74) 0%, rgba(10,22,17,0) 36%);
}
html[data-theme="dark"] .hero-dot { background: rgba(255,255,255,.34); border-color: rgba(255,255,255,.45); }
html[data-theme="dark"] .hero-dot.is-active { background: var(--brand); border-color: var(--brand); }

/* Glass cards and small data chips. */
html[data-theme="dark"] .glass::before { background: linear-gradient(150deg, rgba(255,255,255,.09), transparent 46%); opacity: .95; }
html[data-theme="dark"] .float-card,
html[data-theme="dark"] .hero-banner-floats .float-card,
html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .hero-stat-wrap .hero-stat,
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .prod-media .pill,
html[data-theme="dark"] .contact-form-wide,
html[data-theme="dark"] .cta-panel,
html[data-theme="dark"] .viz-legend {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--ink);
}

/* Buttons — primary becomes mint with deep ink text for real contrast. */
html[data-theme="dark"] .btn-primary { color: var(--brand-ink); box-shadow: 0 4px 14px rgba(79,215,160,.20); }
html[data-theme="dark"] .btn-primary:hover { background: var(--brand-2); color: var(--brand-ink); box-shadow: 0 10px 28px rgba(79,215,160,.26); }
html[data-theme="dark"] .btn-outline {
    background: rgba(255,255,255,.10);
    color: var(--ink);
    border-color: var(--line-strong);
    backdrop-filter: saturate(170%) blur(16px);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
html[data-theme="dark"] .btn-outline:hover { background: var(--pak); color: var(--brand-ink); border-color: var(--pak); box-shadow: 0 8px 22px rgba(79,215,160,.22); }
html[data-theme="dark"] .btn-outline:hover svg { stroke: var(--brand-ink); }
html[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
/* CTA band is already deep green — keep its white-on-green buttons intact. */
html[data-theme="dark"] .cta-band .btn-outline { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
html[data-theme="dark"] .cta-band .btn-outline:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
html[data-theme="dark"] .cta-band .btn-outline:hover svg { stroke: #fff; }

/* Surfaces that were explicitly white in the light theme. */
html[data-theme="dark"] .feature:hover .feature-icon { background: var(--brand-soft); color: var(--brand); }
html[data-theme="dark"] .post-pill,
html[data-theme="dark"] .pill { background: var(--brand-soft); color: var(--ink); border-color: var(--brand-line); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] input.a-input,
html[data-theme="dark"] textarea.a-textarea,
html[data-theme="dark"] select.a-input {
    background: rgba(255,255,255,.045);
    color: var(--ink);
    border-color: var(--line-strong);
}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus { background: rgba(255,255,255,.07); color: var(--ink); }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--muted); }

/* Tables stay legible without inheriting white zebra stripes. */
html[data-theme="dark"] table th { background: var(--surface-alt); color: var(--ink); }
html[data-theme="dark"] table td { border-color: var(--line); }
html[data-theme="dark"] tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }

/* Mobile drawer, back-to-top and search panels. */
html[data-theme="dark"] .mobile-nav { background: rgba(11, 21, 17, .97); border-color: var(--line); }
html[data-theme="dark"] .nav-toggle { background: var(--glass-bg); }
/* Back-to-top: solid elevated surface + brand arrow so it reads clearly
   against the near-black page instead of blending in. */
html[data-theme="dark"] .to-top {
    background: #16281F;
    color: var(--brand-2);
    border: 1px solid rgba(79, 215, 160, .38);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .to-top:hover {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: var(--brand);
}
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .subnav-search input { background: var(--glass-bg); color: var(--ink); border-color: var(--line-strong); }

/* Live-chat widget: only the shell is themed; the brand accent stays. */
html[data-theme="dark"] .lc-panel { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }

/* ---------- 26b. Dark theme: high-specificity leftovers ----------------- */
html[data-theme="dark"] .hero-stat-wrap .hero-stats { background: rgba(19,34,27,.74); }
html[data-theme="dark"] .hero-stat-wrap .hero-stat { background: rgba(19,34,27,.80); }
html[data-theme="dark"] .hero-stat:hover { background: var(--pak); }
html[data-theme="dark"] .hero-stat:hover .v,
html[data-theme="dark"] .hero-stat:hover .l { color: var(--brand-ink); }

html[data-theme="dark"] .subnav,
html[data-theme="dark"] .subnav-wrap.is-stuck .subnav {
    background: rgba(17,31,24,.94);
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}

html[data-theme="dark"] .dl-item { background: var(--glass-bg); border-color: var(--glass-border); }
html[data-theme="dark"] .dl-item:hover { background: var(--pak); }
html[data-theme="dark"] .dl-item:hover .dl-name,
html[data-theme="dark"] .dl-item:hover .dl-role,
html[data-theme="dark"] .dl-item:hover .dl-label,
html[data-theme="dark"] .dl-item:hover .dl-value,
html[data-theme="dark"] .dl-item:hover .dl-value a,
html[data-theme="dark"] .dl-item:hover .dl-value-plain { color: var(--brand-ink); }
html[data-theme="dark"] .dl-item:hover .dl-value a:hover { color: rgba(6,26,19,.75); }
html[data-theme="dark"] .dl-item:hover .dl-ico { background: rgba(6,26,19,.12); color: var(--brand-ink); }
html[data-theme="dark"] .dl-item:hover .dl-avatar { background: var(--brand-ink); color: var(--brand); }
html[data-theme="dark"] .dl-avatar { color: var(--brand-ink); }

html[data-theme="dark"] .check-item { background: rgba(255,255,255,.045); border-color: var(--line-strong); }
html[data-theme="dark"] .check-item:hover { background: var(--brand-soft); }
html[data-theme="dark"] .captcha-block { background: rgba(19,34,27,.74); border-color: var(--glass-border); }
html[data-theme="dark"] .captcha-q { background: var(--brand-soft); border-color: var(--brand-line); }
html[data-theme="dark"] .captcha-row input { background: rgba(255,255,255,.05); border-color: var(--line-strong); color: var(--ink); }
html[data-theme="dark"] .captcha-refresh { background: rgba(255,255,255,.055); border-color: var(--line-strong); color: var(--ink); }
html[data-theme="dark"] .captcha-refresh:hover { background: var(--pak); border-color: var(--pak); color: var(--brand-ink); }

/* On small screens the copy sits over the photograph rather than beside it.
   A stronger dark scrim keeps body text readable without hiding the products. */
@media (max-width: 760px) {
    html[data-theme="dark"] .hero-banner-scrim {
        background:
            linear-gradient(90deg,
                rgba(10,22,17,.96) 0%,
                rgba(10,22,17,.92) 58%,
                rgba(10,22,17,.60) 100%),
            linear-gradient(0deg, rgba(10,22,17,.78) 0%, rgba(10,22,17,0) 42%);
    }
}

/* ---------- 26c. Dark theme: gradient surfaces -------------------------- */
html[data-theme="dark"] .viz-panel,
html[data-theme="dark"] .viz-panel.viz-feature,
html[data-theme="dark"] .viz-panel.viz-premium {
    background: linear-gradient(158deg, rgba(24,44,35,.94) 0%, rgba(15,29,23,.88) 100%);
    border-color: var(--glass-border);
    color: var(--ink);
}
html[data-theme="dark"] .viz-head {
    background: linear-gradient(180deg, rgba(30,54,43,.75), rgba(20,38,30,.25));
}
html[data-theme="dark"] .viz-panel .pill,
html[data-theme="dark"] .viz-panel .layer-idx { color: var(--ink); }
html[data-theme="dark"] .mobile-nav { background: rgba(15,29,23,.98); }
html[data-theme="dark"] .rail-cta { background: linear-gradient(150deg, rgba(62,207,142,.12), rgba(24,44,35,.72)); }
html[data-theme="dark"] .article-body tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }

/* ---------- 26d. Theme-aware navigation logo ---------------------------- */
.logo { position: relative; }
.logo img.logo-dark { display: none; }
html[data-theme="dark"] .logo img.logo-light { display: none; }
html[data-theme="dark"] .logo img.logo-dark { display: block; }

/* Direct-line icons: solid mint circle, same treatment as the avatar */
html[data-theme="dark"] .dl-ico {
    background: linear-gradient(140deg, var(--brand-2), var(--brand));
    color: var(--brand-ink);
}

/* ---------- 26e. Dark theme: layer-structure bars ----------------------- */
html[data-theme="dark"] .layer-bar.tone-outer,
html[data-theme="dark"] .layer-bar.tone-tie,
html[data-theme="dark"] .layer-bar.tone-seal {
    background: linear-gradient(100deg, rgba(32,56,45,.9), rgba(24,44,35,.82));
    color: var(--ink);
    border-color: var(--line-strong);
}
html[data-theme="dark"] .layer-bar.tone-outer .lb-role,
html[data-theme="dark"] .layer-bar.tone-tie .lb-role,
html[data-theme="dark"] .layer-bar.tone-seal .lb-role { color: var(--slate); }
html[data-theme="dark"] .lb-meter { background: rgba(255,255,255,.12); }

/* ---------- 27. Scroll progress line under the navigation --------------- */
.scroll-progress {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: 1px;
    z-index: 899;
    background: transparent;
    pointer-events: none;
}
.scroll-progress > i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brand-2);
    box-shadow: 0 0 10px rgba(62,207,142,.55);
    transition: width .08s linear;
}

/* Hover: icon circles flip to a black disc with white glyph. */
html[data-theme="dark"] .dl-item:hover .dl-ico {
    background: #0A1510;
    color: #FFFFFF;
}
html[data-theme="dark"] .dl-item:hover .dl-avatar {
    background: #0A1510;
    color: #FFFFFF;
}

/* ---------- 26f. Dark theme: layer bars (base class, not tone-*) -------- */
html[data-theme="dark"] .layer-bar {
    background: linear-gradient(100deg, rgba(34,60,48,.92), rgba(22,42,33,.86));
    color: var(--ink);
    border-color: var(--line-strong);
}
html[data-theme="dark"] .layer-bar .lb-name,
html[data-theme="dark"] .layer-bar .lb-metric .lb-pct { color: var(--ink); }
html[data-theme="dark"] .layer-bar .lb-role { color: var(--slate); }
/* Keep the barrier core mint so it still reads as the highlighted layer */
html[data-theme="dark"] .layer-row.tone-barrier .layer-bar {
    background: linear-gradient(105deg, #4FD7A0, #17694C);
    color: #fff;
}
html[data-theme="dark"] .layer-row.tone-barrier .lb-name,
html[data-theme="dark"] .layer-row.tone-barrier .lb-metric .lb-pct,
html[data-theme="dark"] .layer-row.tone-barrier .lb-role { color: #fff; }

/* Native select popups are OS-rendered; colour-scheme plus explicit option
   colours keeps the expanded dropdown dark in Chrome / Edge / Safari. */
html[data-theme="dark"] select,
html[data-theme="dark"] .field select,
html[data-theme="dark"] select.a-input {
    color-scheme: dark;
    background-color: #15271F;
    color: #EDF6F1;
}
html[data-theme="dark"] select option,
html[data-theme="dark"] .field select option {
    background-color: #15271F;
    color: #EDF6F1;
}
html[data-theme="dark"] select option:checked,
html[data-theme="dark"] .field select option:checked {
    background-color: #2FB884;
    color: #061A13;
}

/* Hide dark-mode hero images until the theme swap has run, preventing the
   white-background photos from flashing when navigating to Home. */
html[data-theme="dark"] .hero-banner-media img[data-dark-src]:not([data-theme-applied]) {
    visibility: hidden;
}

/* =====================================================================
   27. Dark theme — ambient glow (side-centred, 2026-11-18)
   Soft glows sit at the SIDE-MIDDLE of each panel, never at a top/bottom
   edge, so they fade out before any section boundary and cannot draw a
   rectangle. The fixed field glow is continuous across the whole viewport.
   All rules are scoped to dark; the light theme renders as before.
   ===================================================================== */

/* Fixed field: glows centred on the LEFT and RIGHT middle of the viewport.
   Being fixed + full-viewport, they never get clipped by a section edge. */
html[data-theme="dark"] .bg-field {
    background:
        radial-gradient(620px 900px at 2% 46%,   rgba(79, 215, 160, .16), transparent 68%),
        radial-gradient(560px 820px at 98% 54%,  rgba(47, 184, 132, .12), transparent 68%),
        linear-gradient(178deg, #0D1C16 0%, #09130F 48%, #0B1812 100%);
}

/* Every section band is fully transparent: the fixed field glow is the ONE
   continuous background for the whole page, so no rectangle can appear where
   a .section-alt begins or ends. (FAQ/Contact/About/Resources already looked
   natural because their .page-head glow is contained by overflow:hidden.) */
html[data-theme="dark"] .section-alt {
    /* Transparent: every section shows the SAME fixed field glow, so there is
       no colour step / rectangle where a .section-alt band begins or ends. */
    background: transparent;
}

/* Data / spec panels: glow centred on the panel's left-middle, fully inside
   the rounded box so it fades before the border. */
html[data-theme="dark"] .viz-panel,
html[data-theme="dark"] .viz-panel.viz-feature,
html[data-theme="dark"] .viz-panel.viz-premium {
    position: relative;
    background: linear-gradient(158deg, rgba(24,44,35,.94) 0%, rgba(15,29,23,.88) 100%);
}
html[data-theme="dark"] .viz-panel::before {
    content: '';
    position: absolute;
    left: -60px; top: 50%;
    width: 460px; height: 220px;
    transform: translateY(-50%);
    background: radial-gradient(ellipse, rgba(79,215,160,.13), transparent 70%);
    pointer-events: none;
}
html[data-theme="dark"] .viz-panel > * { position: relative; }

/* CTA band: side-centred glow inside the panel, same gentle treatment. */
html[data-theme="dark"] .cta-panel {
    position: relative;
    background: linear-gradient(135deg, rgba(47,184,132,.94), rgba(14,59,46,.95));
}
html[data-theme="dark"] .cta-panel::before {
    content: '';
    position: absolute;
    right: -40px; top: 50%;
    width: 520px; height: 260px;
    transform: translateY(-50%);
    background: radial-gradient(ellipse, rgba(139,232,195,.20), transparent 70%);
    pointer-events: none;
}
html[data-theme="dark"] .cta-panel > * { position: relative; }
