/* ─────────────────────────────────────────
RESET & BASE
───────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hint to the browser which color-scheme its native UI (select dropdowns,
   date pickers, scrollbars, autofill) should match. Without this, Chrome
   renders <select> option lists in light mode regardless of our CSS. */
:root { color-scheme: dark; }
html.light { color-scheme: light; }

:root {
    --red: #c41717;
    --red-dark: #9e1010;
    --black: #0a0a0a;
    --off-black: #111111;
    --charcoal: #1c1c1e;
    --gray-dark: #3a3a3c;
    --gray-mid: #6e6e73;
    --gray-light: #aeaeb2;
    --off-white: #d9d6cf;
    --white: #ffffff;
    --warm-bg: #383838;
    --warm-bg-light: #303030;
    --border: rgba(0, 0, 0, 0.08);
    --red-alpha: rgba(196, 23, 23, 0.12);

    --font:
        -apple-system, "SF Pro Display", "Helvetica Neue", Arial,
        sans-serif;
    --font-mono: "SF Mono", "Fira Code", monospace;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Reserve space for the scrollbar always, so toggling
       `body { overflow: hidden }` (e.g. when the About modal opens)
       doesn't cause a horizontal layout shift. */
    scrollbar-gutter: stable;
}

/* Sleek custom scrollbar matching the dark theme. Applies everywhere on
   the public site (page scroll, the about/orders modal inner scroll, etc.)
   so the chrome stays consistent. Light-theme override below. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.18s;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 16, 46, 0.55);
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:active {
    background: var(--red, #c8102e);
    background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }
html.light * {
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
html.light *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    background-clip: padding-box;
}
html.light *::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 16, 46, 0.6);
    background-clip: padding-box;
}

body {
    font-family: var(--font);
    background: var(--warm-bg);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Body bg crossfades between --warm-bg and --off-black in sync with
       the modal slide, so the gray-to-dark blend feels gradual, not snappy. */
    transition: background 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    display: block;
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ─────────────────────────────────────────
NAVIGATION
───────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(212, 208, 200, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

nav.dark {
    background: rgba(10, 10, 10, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
}
nav.dark .nav-logo {
    color: var(--white);
}
nav.dark .nav-logo-img {
    filter: brightness(0) invert(1);
}

.nav-logo-img {
    height: 110px;
    width: auto;
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 101;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    display: block;
    /* Invert to white on the dark footer background */
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-dark);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
nav.dark .nav-links a {
    color: var(--gray-light);
}
.nav-links a:hover {
    color: var(--black);
}
nav.dark .nav-links a:hover {
    color: var(--white);
}

/* Active nav link — applied by the scroll-spy in script.js when the
   matching section is in view, or briefly after click. Same red used
   for the About modal "open" state. */
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
    color: var(--red, #c8102e);
}
nav.dark .nav-links a.is-active,
nav.dark .nav-links a[aria-current="page"] {
    color: var(--red, #c8102e);
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    background: var(--red);
    color: #fff;
    border-radius: 980px;
    letter-spacing: -0.01em;
    transition:
        background 0.2s,
        transform 0.15s;
}
.nav-cta:hover {
    background: var(--red-dark);
    transform: scale(1.02);
}

/* ─────────────────────────────────────────
HERO
───────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

/* Video background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay — keeps text readable over any video content */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.72) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Subtle red vignette on top of the overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 40%,
        rgba(196, 23, 23, 0.14) 0%,
        transparent 70%
    );
    z-index: 2;
    pointer-events: none;
}

/* Grid texture on top */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 60px 60px;
    mask-image: radial-gradient(
        ellipse 90% 80% at 50% 50%,
        black 20%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 22px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--red);
    opacity: 0.5;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #ffffff;
    max-width: 920px;
    position: relative;
    z-index: 3;
    margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
    -webkit-text-fill-color: var(--red);
}

.hero-sub {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin-bottom: 44px;
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 980px;
    letter-spacing: -0.01em;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}
.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(196, 23, 23, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 980px;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        background 0.2s,
        border-color 0.2s;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-mid);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(
        to bottom,
        var(--gray-mid),
        transparent
    );
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ─────────────────────────────────────────
STATS TICKER
───────────────────────────────────────── */
.stats-bar {
    background: var(--off-black);
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    padding: 32px 48px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
    min-width: 180px;
}
.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-num span {
    color: var(--red);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-mid);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
SECTION UTILITY
───────────────────────────────────────── */
.section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-full {
    padding: 100px 0;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: var(--black);
    margin-bottom: 20px;
}

.section-title.light {
    color: var(--white);
}

.section-body {
    font-size: 18px;
    line-height: 1.65;
    color: var(--gray-mid);
    max-width: 560px;
}

.section-body.light {
    color: var(--gray-light);
}

/* ─────────────────────────────────────────
PRODUCTS SECTION
───────────────────────────────────────── */
.products-section {
    background: var(--off-black);
    padding: 100px 0;
}

.products-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
    padding: 0 40px;
}

.products-header h2 {
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.product-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition:
        border-color 0.3s var(--ease),
        transform 0.3s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 280px;
    /* Cards are <a> tags now — strip default link styling. */
    color: inherit;
    text-decoration: none;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: -6%;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    /* Blur radius cost is quadratic — 5px is ~4x cheaper than 10px on the
       GPU and visually nearly identical at this scale. */
    filter: blur(5px) saturate(1.1);
    transform: translateZ(0) scale(1.1);
    transition:
        transform 0.7s var(--ease),
        filter 0.7s var(--ease);
    z-index: -2;
    /* Pre-promote to its own GPU layer so the first time the card scrolls
       into view we're not paying the layer-creation cost. */
    will-change: transform, filter;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.55) 0%,
        rgba(10, 10, 10, 0.88) 100%
    );
    z-index: -1;
    transition: background 0.3s var(--ease);
}

.product-card:hover {
    border-color: rgba(196, 23, 23, 0.45);
    transform: translateY(-4px);
}
.product-card:hover::before {
    transform: translateZ(0) scale(1.24);
    filter: blur(3px) saturate(1.25) brightness(1.05);
}
.product-card:hover::after {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.78) 100%
    );
}

.product-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-bottom: 4px;
    transition:
        background 0.3s var(--ease),
        border-color 0.3s var(--ease);
}
.product-card:hover .product-icon {
    background: rgba(196, 23, 23, 0.35);
    border-color: rgba(196, 23, 23, 0.55);
}
.product-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.25;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.product-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    flex: 1;
}

.product-link {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition:
        gap 0.25s var(--ease),
        color 0.25s var(--ease);
    margin-top: 4px;
}
.product-link span {
    color: var(--red);
}
.product-card:hover .product-link {
    gap: 10px;
    color: var(--red);
}

/* ─────────────────────────────────────────
INDUSTRIES SECTION
───────────────────────────────────────── */
.industries-section {
    background: var(--black);
    padding: 100px 0;
}

.industries-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
    padding: 0 40px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    max-width: 1200px;
    margin: 0 auto;
}

.industry-card {
    background: var(--off-black);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s;
}
.industry-card:hover {
    background: #1a1a1a;
}

.industry-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.industry-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.industry-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-mid);
}

/* ─────────────────────────────────────────
ABOUT SLIDER
───────────────────────────────────────── */
.about-slider {
    position: relative;
    overflow: hidden;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(0);
    pointer-events: none;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    display: flex;
    align-items: center;
}

.about-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Arrows */
.about-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition:
        background 0.25s,
        border-color 0.25s,
        color 0.25s,
        transform 0.25s;
}

.about-arrow:hover {
    background: rgba(196, 23, 23, 0.2);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
}

.about-arrow-left {
    left: 20px;
}

.about-arrow-right {
    right: 20px;
}

/* Dots */
.about-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.about-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition:
        background 0.3s,
        border-color 0.3s,
        transform 0.3s;
}

.about-dot:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.about-dot.active {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.2);
}

/* ─────────────────────────────────────────
ABOUT / STORY SECTION
───────────────────────────────────────── */
.about-section {
    padding: 48px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    width: 100%;
}

.about-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    background: var(--off-black);
}

.about-visual-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #1a0a0a 0%,
        #2d1010 30%,
        #1c1c1e 70%,
        #0a0a0a 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 36px;
}

.about-badge {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-badge-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
}
.about-badge-num span {
    color: var(--red);
}
.about-badge-label {
    font-size: 12px;
    color: var(--gray-light);
    letter-spacing: 0.04em;
}

/* Red accent stripe on about visual */
.about-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
    z-index: 1;
}

.about-visual-rp {
    background: linear-gradient(
        135deg,
        #1a0f0a 0%,
        #2d1f10 30%,
        #1c1c1e 70%,
        #0a0a0a 100%
    ) !important;
}

.about-visual-lh {
    background: linear-gradient(
        135deg,
        #0a0a1a 0%,
        #10182d 30%,
        #1c1c1e 70%,
        #0a0a0a 100%
    ) !important;
}

.about-visual-jd {
    background: linear-gradient(
        135deg,
        #0a1a0a 0%,
        #102d10 30%,
        #1c1c1e 70%,
        #0a0a0a 100%
    ) !important;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-content .eyebrow {
    color: var(--red);
}

.about-content .section-title {
    color: var(--off-white);
}

.about-content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-light);
}

.about-content p strong {
    color: var(--white);
    font-weight: 700;
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 24px;
}

.timeline-item {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--off-black);
    border: 2px solid var(--red);
}

.timeline-year {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 14px;
    color: var(--gray-mid);
    line-height: 1.5;
}

.company-ids {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 20px 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.company-ids-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-right: 8px;
}
.company-id {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}
.company-id-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
}
.company-id-value {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
PARTNERS TICKER
───────────────────────────────────────── */
.partners-section {
    background: #0a0a0a;
    padding: 100px 0 0;
    position: relative;
    border-top: 1px solid rgba(196, 23, 23, 0.3);
}

/* faint red top glow */
.partners-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: radial-gradient(
        ellipse 70% 100% at 50% 0%,
        rgba(196, 23, 23, 0.12) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.partners-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 0 40px;
    position: relative;
}

.partners-header .section-title {
    color: var(--white);
}

.partners-header p {
    font-size: 17px;
    color: var(--off-white);
    margin-top: 14px;
    line-height: 1.65;
}

/* ── Partners stats strip ── */
.partners-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 36px auto 52px;
    padding: 0 40px;
}
.pstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.pstat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.03em;
    line-height: 1;
}
.pstat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}
.pstat-div {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* ── Partnership benefits row ── */
.partners-benefits {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 860px;
    margin: 0 auto 64px;
    padding: 0 40px;
    position: relative;
}
.pb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.pb-item:last-child {
    border-right: none;
}
.pb-icon {
    font-size: 22px;
    margin-bottom: 2px;
}
.pb-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.pb-text p {
    font-size: 12px;
    color: var(--gray-mid);
    line-height: 1.55;
    margin: 0;
}

/* ── Partners editorial block ── */
.partners-editorial {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    max-width: 1080px;
    margin: 0 auto 80px;
    padding: 0 40px;
    position: relative;
}
.pe-left {
    padding: 0 56px 0 0;
    border-right: 1px solid rgba(196, 23, 23, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pe-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--red);
    margin-bottom: 18px;
}
.pe-statement {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.03em;
}
.pe-statement em {
    font-style: normal;
    color: var(--red);
}
.pe-right {
    padding: 0 0 0 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}
.pe-right p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin: 0;
}
.pe-right p strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

/* ── Ticker ── */
.ticker-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    isolation: isolate; /* new stacking context so z-index:10 masks are definitely on top */
}

/* Fade masks — real elements so they sit above the GPU-composited ticker layer */
.ticker-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 10;
    pointer-events: none;
}
.ticker-fade-l {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}
.ticker-fade-r {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

.ticker-row-inner {
    display: flex;
    width: max-content;
    padding: 16px 0;
    will-change: transform;
}

/* Each row holds the brand-set repeated 4 times. Translate distance MUST
   equal exactly one set's pixel width so the loop seam lands on a
   visually-identical chip. Chip = 200px wide + 20px right margin = 220px.
   Row 1: 9 chips × 220 = 1980px per set (Eaton, Siemens, ABB, GE, Leviton,
          Maddox, 3M, Honeywell, Illumus).
   Row 2: 9 chips × 220 = 1980px per set (Johnson Controls, LG, Atkore,
          Lithonia, Legrand, Generac, Hitachi, Cooper Lighting, ChargePoint).
   If you add/remove a partner, update the value of that row's keyframe. */
.ticker-row-inner.left {
    animation: tl 32s linear infinite;
}
.ticker-row-inner.right {
    animation: tr 28s linear infinite;
}
.ticker-wrap:hover .ticker-row-inner {
    animation-play-state: paused;
}

@keyframes tl {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-1980px, 0, 0); }
}
@keyframes tr {
    from { transform: translate3d(-1980px, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

.brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
    height: 160px;
    width: 200px;
    flex-shrink: 0;
    flex-grow: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    transition:
        background 0.25s,
        border-color 0.25s,
        transform 0.25s;
    cursor: default;
    margin-right: 20px; /* trailing space on every chip — makes seam seamless */
}
.brand-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(196, 23, 23, 0.4);
    transform: translateY(-3px);
}

.chip-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s var(--ease-out, ease-out), filter 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.brand-chip:hover .chip-logo {
    transform: scale(1.04);
}
/* Dark mode: keep the chip's original subtle dark-gray styling (set on
   the base .brand-chip rule above) and add a soft white drop-shadow on
   the logo. drop-shadow() respects the PNG's alpha channel, so the glow
   traces the actual letter/icon edges instead of the bounding box. */
html:not(.light) .chip-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}
html:not(.light) .brand-chip:hover .chip-logo {
    filter:
        drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.45))
        drop-shadow(0 0 18px rgba(196, 23, 23, 0.35));
}

.brand-chip { cursor: pointer; }

/* ─────────────────────────────────────────
PARTNER MODAL (clicked from ticker chip)
───────────────────────────────────────── */
.partner-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.partner-modal.is-open { display: flex; }
.partner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pmFadeIn 180ms ease-out;
}
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmPopIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.partner-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: pmPopIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.light .partner-modal-dialog {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.partner-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}
.partner-modal-close:hover {
    background: rgba(196, 23, 23, 0.22);
    color: #fff;
}
html.light .partner-modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.55);
}
html.light .partner-modal-close:hover {
    background: rgba(196, 23, 23, 0.12);
    color: #c41717;
}
.partner-modal-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}
.partner-modal-logo-wrap {
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 260px;
}
html.light .partner-modal-logo-wrap {
    background: rgba(0, 0, 0, 0.03);
    border-right-color: rgba(0, 0, 0, 0.08);
}
.partner-modal-logo {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}
html:not(.light) .partner-modal-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}
.partner-modal-body {
    padding: 32px 36px 36px;
    color: #fff;
}
html.light .partner-modal-body { color: #18181b; }
.partner-modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c41717;
    margin-bottom: 10px;
}
.partner-modal-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
}
.partner-modal-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #a1a1aa;
    margin: 0 0 22px;
}
html.light .partner-modal-desc { color: #4a4a52; }
.partner-modal-cat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 10px;
}
html.light .partner-modal-cat-label { color: #6b6b73; }
.partner-modal-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.partner-modal-categories li {
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(196, 23, 23, 0.12);
    color: #ff7c7c;
    border: 1px solid rgba(196, 23, 23, 0.28);
}
html.light .partner-modal-categories li {
    background: rgba(196, 23, 23, 0.08);
    color: #c41717;
    border-color: rgba(196, 23, 23, 0.22);
}
@media (max-width: 640px) {
    .partner-modal-grid { grid-template-columns: 1fr; }
    .partner-modal-logo-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        min-height: 180px;
        padding: 24px;
    }
    html.light .partner-modal-logo-wrap { border-bottom-color: rgba(0, 0, 0, 0.08); }
    .partner-modal-logo { max-height: 100px; }
    .partner-modal-body { padding: 24px 22px 28px; }
    .partner-modal-title { font-size: 22px; }
}

/* ─────────────────────────────────────────
CTA SECTION
───────────────────────────────────────── */
.cta-section {
    background: var(--red);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        black 0%,
        transparent 80%
    );
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: var(--red);
    font-size: 15px;
    font-weight: 700;
    border-radius: 980px;
    letter-spacing: -0.01em;
    transition:
        transform 0.15s,
        box-shadow 0.2s;
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 980px;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ─────────────────────────────────────────
CONTACT STRIP
───────────────────────────────────────── */
.contact-strip {
    background: var(--off-black);
    padding: 56px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
.contact-value:hover {
    color: var(--red);
}

.contact-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* ─────────────────────────────────────────
FOOTER
───────────────────────────────────────── */
footer {
    background: var(--black);
    padding: 60px 40px 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    display: block;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-mid);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.social-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-light);
    transition:
        background 0.2s,
        color 0.2s;
}
.social-btn:hover {
    background: var(--red);
    color: #fff;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li a {
    font-size: 14px;
    color: var(--gray-light);
    transition: color 0.2s;
    letter-spacing: -0.01em;
}
.footer-col li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--gray-mid);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer-legal a {
    font-size: 13px;
    color: var(--gray-mid);
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: var(--white);
}

/* ─────────────────────────────────────────
ANIMATIONS
───────────────────────────────────────── */
[data-reveal] {
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

/* Only hide elements once JS has confirmed it will drive the animation */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

[data-reveal].visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

[data-reveal][data-delay="1"] {
    transition-delay: 0.1s;
}
[data-reveal][data-delay="2"] {
    transition-delay: 0.2s;
}
[data-reveal][data-delay="3"] {
    transition-delay: 0.3s;
}
[data-reveal][data-delay="4"] {
    transition-delay: 0.4s;
}
[data-reveal][data-delay="5"] {
    transition-delay: 0.5s;
}

/* ─────────────────────────────────────────
CERTIFICATIONS STRIP
───────────────────────────────────────── */
.certs-strip {
    background: var(--off-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
}

.certs-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 40px;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.cert-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cert-icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

.cert-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.01em;
}

.cert-sub {
    font-size: 12px;
    color: var(--gray-mid);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.cert-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-visual {
        aspect-ratio: 16/9;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 100px 24px 72px;
    }
    .section {
        padding: 72px 24px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .industries-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-inner {
        flex-direction: column;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 24px 40px;
    }
    .contact-strip {
        flex-direction: column;
        gap: 28px;
    }
    .contact-divider {
        display: none;
    }
    .certs-inner {
        flex-direction: column;
    }
    .cert-divider {
        display: none;
    }
    .cert-item {
        padding: 18px 24px;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────
THEME TOGGLE + LIGHT MODE
───────────────────────────────────────── */
.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0 4px 0 0;
    cursor: pointer;
    color: var(--gray-mid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition:
        color 0.2s,
        transform 0.2s;
}
.theme-toggle:hover {
    color: var(--white);
    transform: scale(1.1);
}
.theme-toggle svg {
    width: 16px;
    height: 16px;
}
.theme-toggle .icon-sun {
    display: none;
}
html.light .theme-toggle .icon-moon {
    display: none;
}
html.light .theme-toggle .icon-sun {
    display: block;
}

/* Header-mounted variant: scales to match the larger nav logo. */
.nav-theme-toggle {
    width: 36px;
    height: 36px;
    margin: 0 0 0 8px;
    color: var(--gray-mid);
}
.nav-theme-toggle svg {
    width: 20px;
    height: 20px;
}
nav.dark .nav-theme-toggle { color: var(--gray-mid); }
nav.dark .nav-theme-toggle:hover { color: var(--white); }
html.light .nav-theme-toggle,
html.light nav.dark .nav-theme-toggle { color: #6b7280; }
html.light .nav-theme-toggle:hover,
html.light nav.dark .nav-theme-toggle:hover { color: #0a0a0a; }

/* Global light-mode surface + text */
html.light body {
    background: #ffffff;
    color: #1c1c1e;
}

/* Nav */
html.light nav,
html.light nav.dark {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html.light nav .nav-logo,
html.light nav.dark .nav-logo {
    color: #0a0a0a;
}
html.light nav .nav-logo-img,
html.light nav.dark .nav-logo-img {
    filter: none;
}
html.light .nav-links a,
html.light nav.dark .nav-links a {
    color: var(--gray-dark);
}
html.light .nav-links a:hover,
html.light nav.dark .nav-links a:hover {
    color: #0a0a0a;
}
/* Active nav link (scroll-spy + click pulse) — keeps red highlight in
   light mode by trumping the .nav-links a base color above. */
html.light .nav-links a.is-active,
html.light nav.dark .nav-links a.is-active,
html.light .nav-links a[aria-current="page"],
html.light nav.dark .nav-links a[aria-current="page"] {
    color: var(--red, #c8102e);
}

/* Stats bar */
html.light .stats-bar {
    background: #f5f5f7;
    border-top-color: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html.light .stat-item {
    border-right-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html.light .stat-num {
    color: #0a0a0a;
}

/* Products section */
html.light .products-section {
    background: #ffffff;
}
html.light .products-header h2 {
    color: #0a0a0a;
}

/* Industries section */
html.light .industries-section {
    background: #f5f5f7;
}
html.light .section-title.light {
    color: #0a0a0a;
}
html.light .section-body.light {
    color: var(--gray-mid);
}
html.light .industries-grid {
    background: rgba(0, 0, 0, 0.08);
}
html.light .industry-card {
    background: #ffffff;
}
html.light .industry-card:hover {
    background: #fafafa;
}
html.light .industry-name {
    color: #0a0a0a;
}

/* About section (overrides inline style) */
html.light #about {
    background: #ffffff !important;
}
html.light .about-content .section-title {
    color: #0a0a0a;
}
html.light .about-content p {
    color: var(--gray-dark);
}
html.light .about-content p strong {
    color: #0a0a0a;
}
html.light .about-timeline {
    border-left-color: rgba(0, 0, 0, 0.1);
}
html.light .timeline-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html.light .timeline-item::before {
    background: #ffffff;
}
html.light .timeline-text {
    color: var(--gray-mid);
}
html.light .company-ids {
    border-top-color: rgba(0, 0, 0, 0.1);
}
html.light .company-id-value {
    color: #0a0a0a;
}
html.light .about-arrow {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
    color: var(--gray-dark);
}
html.light .about-arrow:hover {
    color: #ffffff;
}
html.light .about-dot {
    border-color: rgba(0, 0, 0, 0.25);
}

/* Partners section */
html.light .partners-section {
    background: #ffffff;
}
html.light .partners-header .section-title {
    color: #0a0a0a;
}
html.light .partners-header p {
    color: var(--gray-dark);
}
html.light .pstat-div {
    background: rgba(196, 23, 23, 0.4);
}
html.light .pb-item {
    border-right-color: rgba(196, 23, 23, 0.3);
}
html.light .pb-text strong {
    color: #0a0a0a;
}
html.light .pe-statement {
    color: #0a0a0a;
}
html.light .pe-right p {
    color: rgba(0, 0, 0, 0.65);
}
html.light .pe-right p strong {
    color: rgba(0, 0, 0, 0.9);
}
html.light .ticker-wrap {
    border-top-color: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html.light .ticker-fade-l {
    background: linear-gradient(to right, #ffffff, transparent);
}
html.light .ticker-fade-r {
    background: linear-gradient(to left, #ffffff, transparent);
}
html.light .brand-chip {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}
html.light .brand-chip:hover {
    background: rgba(0, 0, 0, 0.06);
}
/* Light mode: no filter, no opacity drop — logos render in their real
   brand colors against the light chip. */
html.light .chip-logo {
    opacity: 1;
}

/* Contact strip */
html.light .contact-strip {
    background: #f5f5f7;
}
html.light .contact-value {
    color: #0a0a0a;
}
html.light .contact-divider {
    background: rgba(196, 23, 23, 0.4);
}

/* Certs strip */
html.light .certs-strip {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Footer */
html.light footer {
    background: #f5f5f7;
}
html.light .footer-logo-img {
    filter: none;
}
html.light .footer-tagline {
    color: var(--gray-dark);
}
html.light .social-btn {
    background: rgba(0, 0, 0, 0.06);
    color: var(--gray-dark);
}
html.light .social-btn:hover {
    color: #fff;
}
html.light .footer-col li a {
    color: var(--gray-dark);
}
html.light .footer-col li a:hover {
    color: #0a0a0a;
}
html.light .footer-bottom {
    border-top-color: rgba(196, 23, 23, 0.4);
}
html.light .footer-legal a:hover {
    color: #0a0a0a;
}
html.light .theme-toggle:hover {
    color: #0a0a0a;
}

/* ─────────────────────────────────────────
SIGN UP MODAL
───────────────────────────────────────── */

/* Reset nav-cta button appearance since it's now a <button> */
button.nav-cta {
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-auth-guest,
.nav-auth-user {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-auth-guest[hidden],
.nav-auth-user[hidden] {
    display: none !important;
}

.nav-hello {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-dark);
    letter-spacing: -0.01em;
    padding: 7px 4px 7px 8px;
    white-space: nowrap;
}
nav.dark .nav-hello {
    color: var(--gray-light);
}
html.light .nav-hello,
html.light nav.dark .nav-hello {
    color: var(--gray-dark);
}

.nav-signin {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-dark);
    letter-spacing: -0.01em;
    padding: 7px 14px;
    cursor: pointer;
    border-radius: 980px;
    transition:
        color 0.2s,
        background 0.2s;
}
.nav-signin:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.04);
}
nav.dark .nav-signin {
    color: var(--gray-light);
}
nav.dark .nav-signin:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
html.light .nav-signin,
html.light nav.dark .nav-signin {
    color: var(--gray-dark);
}
html.light .nav-signin:hover,
html.light nav.dark .nav-signin:hover {
    color: #0a0a0a;
    background: rgba(0, 0, 0, 0.04);
}

.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.75s;
}
.signup-modal.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

.signup-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(196, 23, 23, 0) 0%,
            transparent 65%
        ),
        rgba(6, 6, 8, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    cursor: pointer;
    transition:
        background 0.65s var(--ease-out),
        backdrop-filter 0.75s var(--ease-out),
        -webkit-backdrop-filter 0.75s var(--ease-out);
}
.signup-modal.is-open .signup-backdrop {
    background: radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(196, 23, 23, 0.18) 0%,
            transparent 65%
        ),
        rgba(6, 6, 8, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.signup-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
    width: 100%;
    max-width: 1040px;
    max-height: calc(100vh - 48px);
    background: var(--off-black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 20px 40px -10px rgba(196, 23, 23, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.45s var(--ease-out),
        opacity 0.35s var(--ease-out);
}
html.light .signup-dialog {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.18),
        0 20px 40px -10px rgba(196, 23, 23, 0.15);
}
.signup-modal.is-open .signup-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.signup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.15s,
        border-color 0.2s;
}
.signup-close:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: rotate(90deg);
}
html.light .signup-close {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}
html.light .signup-close:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ── Brand (left) panel ── */
.signup-brand {
    position: relative;
    padding: 44px 40px;
    background:
        linear-gradient(
            155deg,
            #1a0707 0%,
            #0f0606 40%,
            #080808 100%
        );
    color: #fff;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.signup-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    mask-image: radial-gradient(
        ellipse 80% 70% at 30% 30%,
        black 10%,
        transparent 90%
    );
    pointer-events: none;
}

.signup-brand-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(
        circle,
        rgba(196, 23, 23, 0.4) 0%,
        transparent 60%
    );
    filter: blur(40px);
    pointer-events: none;
}

.signup-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 540px;
}

.signup-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
}
.signup-brand-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}
.signup-brand-wordmark {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #fff;
}
.signup-brand-wordmark span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.signup-brand-headline {
    flex: 1;
}
.signup-brand-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    padding: 6px 12px;
    background: rgba(196, 23, 23, 0.14);
    border: 1px solid rgba(196, 23, 23, 0.3);
    border-radius: 980px;
    margin-bottom: 20px;
}
.signup-brand-headline h3 {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 14px;
}
.signup-brand-headline h3 em {
    font-style: normal;
    color: var(--red);
    position: relative;
}
.signup-brand-headline p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    max-width: 340px;
}

.signup-brand-list {
    list-style: none;
    margin: 32px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.signup-brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.005em;
}
.signup-brand-bullet {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(196, 23, 23, 0.35);
}

.signup-brand-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.signup-brand-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* ── Form (right) panel ── */
.signup-form-panel {
    padding: 48px 44px;
    background: #fafafa;
    color: var(--black);
    overflow-y: auto;
    max-height: calc(100vh - 48px);
}

.signup-form-header {
    margin-bottom: 28px;
}
.signup-form-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.signup-form-header h2 {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: 10px;
}
.signup-form-header p {
    font-size: 13px;
    color: var(--gray-mid);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-form[hidden],
.signup-form-header[hidden] {
    display: none !important;
}

.mfa-choose-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--white, #fff);
    border: 1px solid var(--gray-line, #e2e2e2);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.05s ease;
    font: inherit;
}
.mfa-choose-btn:hover {
    border-color: var(--brand-red, #c8102e);
}
.mfa-choose-btn:active { transform: translateY(1px); }
.mfa-choose-btn:focus-visible {
    outline: 2px solid var(--brand-red, #c8102e);
    outline-offset: 2px;
}
.mfa-choose-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(200, 16, 46, 0.08);
    color: var(--brand-red, #c8102e);
}
.mfa-choose-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mfa-choose-title { font-size: 14px; font-weight: 600; }
.mfa-choose-sub { font-size: 12px; color: var(--gray-mid, #6a6a6a); }
.mfa-choose-chev { flex: 0 0 14px; color: var(--gray-mid, #6a6a6a); }

.signup-mfa-notice {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 196, 71, 0.08);
    border: 1px solid rgba(255, 196, 71, 0.35);
    border-radius: 10px;
    color: inherit;
}
.signup-mfa-notice-icon {
    flex: 0 0 18px;
    color: #c89432;
    margin-top: 1px;
}
.signup-mfa-notice strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
}
.signup-mfa-notice p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--gray-mid, #6a6a6a);
    margin: 0;
}

.signup-mfa-pick {
    border: 1px solid var(--gray-line, #e2e2e2);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}
.signup-mfa-pick legend {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 6px;
    color: var(--gray-mid, #6a6a6a);
}
.signup-mfa-pick .signup-mfa-hint {
    font-size: 12px;
    color: var(--gray-mid, #6a6a6a);
    margin: -2px 0 4px;
    line-height: 1.4;
}

.totp-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--gray-line, #e2e2e2);
    border-radius: 12px;
}
.totp-qr-canvas {
    display: block;
    width: 192px;
    height: 192px;
    background: #fff;
    padding: 8px;
    box-sizing: content-box;
}
.totp-qr-canvas img,
.totp-qr-canvas canvas {
    display: block;
    width: 192px !important;
    height: 192px !important;
}
.totp-qr-fallback {
    font-size: 12px;
    color: var(--gray-mid, #6a6a6a);
    text-align: center;
    line-height: 1.5;
}
.totp-qr-fallback code {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    background: #f3f3f3;
    border-radius: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    user-select: all;
    word-break: break-all;
}
.light .totp-qr-fallback code,
html:not(.dark) .totp-qr-fallback code {
    color: #1a1a1a;
}

.signup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.signup-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--gray-dark);
}
.signup-field input,
.signup-select select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--black);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}
.signup-field input::placeholder {
    color: var(--gray-light);
}
.signup-field input:hover,
.signup-select select:hover {
    border-color: rgba(0, 0, 0, 0.2);
}
.signup-field input:focus,
.signup-select select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(196, 23, 23, 0.12);
    background: #fff;
}

/* Chrome / Edge / Safari highlight autofilled fields with a blue or yellow
   background tint. You can't style that bg directly, but a giant inset
   box-shadow paints over it. The 5000s transition keeps the override from
   ever being interpolated away. */
.signup-field input:-webkit-autofill,
.signup-field input:-webkit-autofill:hover,
.signup-field input:-webkit-autofill:focus,
.signup-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--black) !important;
    caret-color: var(--black);
    transition: background-color 5000s ease-in-out 0s;
}
.signup-field input:-webkit-autofill:focus {
    -webkit-box-shadow:
        0 0 0 1000px #fff inset,
        0 0 0 4px rgba(196, 23, 23, 0.12) !important;
}

.signup-select {
    position: relative;
}
.signup-select select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    cursor: pointer;
}
.signup-select-caret {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--gray-mid);
    pointer-events: none;
}

/* ── Company picker (typeahead dropdown on signup form) ── */
.company-picker {
    position: relative;
}
.company-trigger {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--black);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.company-trigger:hover {
    border-color: rgba(0, 0, 0, 0.2);
}
.company-trigger[aria-expanded="true"],
.company-trigger:focus-visible {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(196, 23, 23, 0.12);
}
.company-trigger-label {
    flex: 1;
    color: var(--gray-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-trigger-label.is-selected {
    color: var(--black);
}
.company-trigger-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-mid);
    pointer-events: none;
}

.company-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.18);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
}
.company-popover[hidden] {
    display: none !important;
}

.company-search-row {
    flex: 0 0 auto;
}
.company-search {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--black);
    background: #f7f7f8;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.company-search:focus {
    background: #fff;
    border-color: var(--red);
}
.company-search::placeholder {
    color: var(--gray-light);
}

.company-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.company-list-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--black);
    background: transparent;
    border: none;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.company-list-item:hover,
.company-list-item:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.company-empty {
    padding: 12px;
    font-size: 12px;
    color: var(--gray-mid);
    text-align: center;
}

.company-create-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--red);
    background: transparent;
    border: 1px dashed rgba(196, 23, 23, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.company-create-btn:hover {
    background: rgba(196, 23, 23, 0.05);
    border-color: rgba(196, 23, 23, 0.6);
}

.company-new-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 2px 2px;
}
.company-new-form[hidden] {
    display: none !important;
}
.company-new-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--black);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    outline: none;
}
.company-new-input:focus {
    border-color: var(--red);
}
.company-new-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.company-new-cancel,
.company-new-add {
    height: 30px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.company-new-cancel {
    background: transparent;
    color: var(--gray-dark);
}
.company-new-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}
.company-new-add {
    background: var(--red);
    color: #fff;
}
.company-new-add:hover {
    background: #a40f0f;
}
.company-new-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.company-warn {
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--black);
    background: #fff7ec;
    border: 1px solid #f5d599;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.company-warn[hidden] {
    display: none !important;
}
.company-warn-pick,
.company-warn-force {
    align-self: flex-start;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.company-warn-pick {
    background: var(--red);
    color: #fff;
}
.company-warn-pick:hover {
    background: #a40f0f;
}
.company-warn-force {
    background: transparent;
    color: var(--gray-dark);
    text-decoration: underline;
}

.signup-hint {
    font-size: 11px;
    color: var(--gray-mid);
    margin-top: 2px;
    line-height: 1.4;
}

.signup-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-top: 4px;
}
.signup-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.signup-check-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.signup-check-box svg {
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 0.15s,
        transform 0.15s;
}
.signup-check input:checked + .signup-check-box {
    background: var(--red);
    border-color: var(--red);
}
.signup-check input:checked + .signup-check-box svg {
    opacity: 1;
    transform: scale(1);
}
.signup-check input:focus-visible + .signup-check-box {
    box-shadow: 0 0 0 4px rgba(196, 23, 23, 0.2);
}
.signup-check-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray-dark);
}
.signup-check-text a {
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: border-color 0.15s;
}
.signup-check-text a:hover {
    border-bottom-color: var(--red);
    color: var(--red);
}

.signup-error {
    margin-top: 4px;
    padding: 10px 12px;
    background: rgba(196, 23, 23, 0.08);
    border: 1px solid rgba(196, 23, 23, 0.28);
    border-radius: 9px;
    font-size: 13px;
    color: var(--red-dark);
    line-height: 1.4;
}
.signup-error[hidden] {
    display: none;
}

.signup-submit {
    margin-top: 8px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow:
        0 6px 16px -4px rgba(196, 23, 23, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}
.signup-submit:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px -6px rgba(196, 23, 23, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}
.signup-submit:active {
    transform: translateY(0);
}
.signup-submit svg {
    transition: transform 0.2s;
}
.signup-submit:hover svg {
    transform: translateX(3px);
}

.signup-alt {
    text-align: center;
    font-size: 13px;
    color: var(--gray-mid);
    margin-top: 4px;
}
.signup-alt a,
.signup-link-btn {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition:
        color 0.15s,
        border-color 0.15s;
}
.signup-alt a:hover,
.signup-link-btn:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ── Sign In form additions ── */
.signup-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.signup-forgot {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--gray-mid);
    transition: color 0.15s;
}
.signup-forgot:hover {
    color: var(--red);
}

.signup-password {
    position: relative;
}
.signup-password input {
    padding-right: 44px;
}
.signup-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-mid);
    cursor: pointer;
    border-radius: 8px;
    transition:
        color 0.15s,
        background 0.15s;
}
.signup-password-toggle:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.04);
}
.signup-password-toggle .icon-eye-off {
    display: none;
}
.signup-password-toggle.is-visible .icon-eye {
    display: none;
}
.signup-password-toggle.is-visible .icon-eye-off {
    display: block;
}

.signup-check-small .signup-check-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.signup-check-small .signup-check-text {
    font-size: 12px;
    color: var(--gray-mid);
}

.signup-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-light);
}
.signup-divider::before,
.signup-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.signup-sso {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--black);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.15s;
}
.signup-sso:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.signup-sso:active {
    transform: translateY(0);
}

/* Lock background scroll when open */
body.signup-open {
    overflow: hidden;
}

/* ── Light mode tweaks (dialog chrome stays dark for brand impact) ── */
html.light .signup-form-panel {
    background: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .signup-modal {
        padding: 0;
        align-items: flex-end;
    }
    .signup-dialog {
        grid-template-columns: 1fr;
        max-width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
        overflow-y: auto;
    }
    .signup-brand {
        padding: 32px 28px;
    }
    .signup-brand-inner {
        min-height: auto;
    }
    .signup-brand-top {
        margin-bottom: 28px;
    }
    .signup-brand-headline h3 {
        font-size: 26px;
    }
    .signup-brand-list {
        margin: 24px 0 20px;
    }
    .signup-form-panel {
        padding: 36px 28px 40px;
        max-height: none;
    }
    .signup-form-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .signup-row {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────
ACCOUNT / ADMIN HAMBURGER MENU
───────────────────────────────────────── */
.nav-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu-btn {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-dark);
    transition:
        background 0.18s var(--ease),
        color 0.18s var(--ease),
        transform 0.18s var(--ease);
    position: relative;
    z-index: 102;
}
.nav-menu-btn[hidden] {
    display: none;
}
.nav-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}
.nav-menu-btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
nav.dark .nav-menu-btn {
    color: var(--gray-light);
}
nav.dark .nav-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
html.light .nav-menu-btn,
html.light nav.dark .nav-menu-btn {
    color: var(--gray-dark);
}
html.light .nav-menu-btn:hover,
html.light nav.dark .nav-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0a0a0a;
}

.nav-menu-bars {
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-block;
}
.nav-menu-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition:
        transform 0.25s var(--ease),
        opacity 0.2s var(--ease),
        top 0.25s var(--ease);
}
.nav-menu-bars span:nth-child(1) { top: 0; }
.nav-menu-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-menu-bars span:nth-child(3) { top: 100%; transform: translateY(-100%); }

.nav-menu-btn[aria-expanded="true"] .nav-menu-bars span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.nav-menu-btn[aria-expanded="true"] .nav-menu-bars span:nth-child(2) {
    opacity: 0;
}
.nav-menu-btn[aria-expanded="true"] .nav-menu-bars span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.nav-menu-panel {
    position: fixed;
    top: 60px;
    left: 16px;
    /* Above the about/news modal (z-index: 99) and the nav itself (z-index:
       100) so the dropdown remains usable while a slide-down modal is open. */
    z-index: 110;
    width: 260px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 12px 40px -12px rgba(0, 0, 0, 0.25),
        0 2px 8px -2px rgba(0, 0, 0, 0.08);
    transform-origin: top left;
    transform: translateY(-6px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.22s var(--ease),
        opacity 0.18s var(--ease);
}
.nav-menu-panel[hidden] {
    display: none;
}
.nav-menu-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
nav.dark ~ .nav-menu-panel,
.nav-menu-panel.theme-dark {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}
html.light .nav-menu-panel {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.08);
}

.nav-menu-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 6px;
}
nav.dark ~ .nav-menu-panel .nav-menu-header,
.nav-menu-panel.theme-dark .nav-menu-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html.light .nav-menu-panel .nav-menu-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-menu-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-mid);
}
.nav-menu-role {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--black);
}
nav.dark ~ .nav-menu-panel .nav-menu-role,
.nav-menu-panel.theme-dark .nav-menu-role {
    color: #fff;
}
html.light .nav-menu-panel .nav-menu-role {
    color: #0a0a0a;
}

.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--gray-dark);
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.15s var(--ease),
        color 0.15s var(--ease);
}
.nav-menu-item:hover,
.nav-menu-item:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
    outline: none;
}
nav.dark ~ .nav-menu-panel .nav-menu-item,
.nav-menu-panel.theme-dark .nav-menu-item {
    color: var(--gray-light);
}
nav.dark ~ .nav-menu-panel .nav-menu-item:hover,
nav.dark ~ .nav-menu-panel .nav-menu-item:focus-visible,
.nav-menu-panel.theme-dark .nav-menu-item:hover,
.nav-menu-panel.theme-dark .nav-menu-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
html.light .nav-menu-panel .nav-menu-item {
    color: var(--gray-dark);
}
html.light .nav-menu-panel .nav-menu-item:hover,
html.light .nav-menu-panel .nav-menu-item:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    color: #0a0a0a;
}

.nav-menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gray-mid);
}
.nav-menu-item:hover .nav-menu-icon,
.nav-menu-item:focus-visible .nav-menu-icon {
    color: var(--red);
}

.nav-menu-item--danger {
    color: var(--red);
}
.nav-menu-item--danger:hover,
.nav-menu-item--danger:focus-visible {
    background: rgba(196, 23, 23, 0.08);
    color: var(--red);
}
.nav-menu-item--danger .nav-menu-icon {
    color: var(--red);
}

.nav-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 6px 4px;
    border: none;
    list-style: none;
}
nav.dark ~ .nav-menu-panel .nav-menu-divider,
.nav-menu-panel.theme-dark .nav-menu-divider {
    background: rgba(255, 255, 255, 0.08);
}
html.light .nav-menu-panel .nav-menu-divider {
    background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
    .nav-menu-panel {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* ─────────────────────────────────────────
ABOUT — full-screen modal, slide-up sheet
───────────────────────────────────────── */
/* Material standard easing — balanced motion throughout the slide so
   the panel is clearly visible moving the whole time (vs. easeOutQuint
   which does most of the motion in the first 150ms and then crawls). */
:root {
    --about-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --about-dur: 700ms;
}

.about-modal {
    position: fixed;
    /* Sits below the 68px nav so the panel appears to drop out of the
       header rather than cover it. */
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99; /* below nav (z:100) so header stays above */
    background: var(--off-black);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 0 24px;

    /* Slide down from the header. Translate is the dominant motion;
       opacity is a brief assist so the appearance feels lit, not stamped. */
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Close transition: slide UP + fade OUT, synchronized over the full
       duration so the fade happens AS the panel rises back into the header. */
    transition:
        transform var(--about-dur) var(--about-ease),
        opacity var(--about-dur) var(--about-ease),
        visibility 0s linear var(--about-dur);

    will-change: transform, opacity;
    -webkit-overflow-scrolling: touch;
}
.about-modal.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Open transition: slide DOWN + fade IN, synchronized over the full
       duration so the fade happens AS the panel slides down. */
    transition:
        transform var(--about-dur) var(--about-ease),
        opacity var(--about-dur) var(--about-ease),
        visibility 0s linear 0s;

    /* Soft bottom-edge shadow — subtle vignette so the sheet feels like
       it's dropping down over the page, not just appearing. */
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
}

/* Top hairline — barely-there red accent that fades in once the sheet
   has settled. Pinned to the modal's top edge regardless of inner scroll. */
.about-modal::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--red, #c8102e) 30%,
        var(--red, #c8102e) 70%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 400ms ease 280ms;
    pointer-events: none;
}
.about-modal.is-open::before {
    opacity: 0.55;
}


/* Back button — pill at top-left of the modal panel (under the nav).
   Slides in from above after the sheet settles. The modal itself has
   `transform`, so this fixed-positioned button is positioned relative
   to the modal's box (not the viewport) — `top: 24px` puts it 24px
   below the modal's own top edge, which is just under the 68px nav. */
.about-modal-back {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font: 600 13px/1 system-ui, -apple-system, sans-serif;
    letter-spacing: 0.02em;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        opacity 280ms ease 220ms,
        transform 320ms var(--about-ease) 220ms,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}
.about-modal.is-open .about-modal-back {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.about-modal-back:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.4);
}
.about-modal-back:active {
    transform: translateY(0) scale(0.97);
}
.about-modal-back svg {
    flex: 0 0 auto;
    transition: transform 200ms var(--about-ease);
}
.about-modal-back:hover svg {
    transform: translateX(-2px);
}

/* Light theme */
html.light .about-modal {
    background: #f6f4ef;
}
html.light .about-modal-back {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}
html.light .about-modal-back:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
}

/* Landing dims to 0.4 (not 0) so a hint of the page stays visible
   behind the modal — the user liked that look. Both directions use
   the same 700ms duration as the modal slide, so the dim/undim
   blends gradually with the slide motion. */
body > section:not(.about-modal),
body > footer {
    transition: opacity var(--about-dur) var(--about-ease);
}
body.about-open > section:not(.about-modal),
body.about-open > footer {
    opacity: 0.4;
    pointer-events: none;
}

/* Active state for the nav "About" link while the panel is open. */
body.about-open .nav-links a[href="#about"] {
    color: var(--red, #c8102e);
}

body.about-open {
    overflow: hidden;
    /* Body bg crossfades to off-black over the same 700ms as the
       modal slide so the warm-bg → off-black blend is gradual. */
    background: var(--off-black);
}

/* Reduced-motion: shorten the animation but keep the slide so users
   on `prefers-reduced-motion: reduce` still see what's happening — just
   in less time. Don't override transform; let the existing transitions
   run with a shorter duration via the custom property. */
@media (prefers-reduced-motion: reduce) {
    :root {
        --about-dur: 240ms;
    }
}


/* ─────────────────────────────────────────
   ORDERS MODAL (customer-side order tracking)
   Reuses .about-modal slide/fade chrome; this block adds only the
   orders-specific layout: header, card list, timeline progress bar.
   ───────────────────────────────────────── */
.orders-modal-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 40px 56px;
}
.orders-header {
    margin-bottom: 36px;
}
.orders-header .eyebrow {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.orders-header .section-title {
    color: var(--off-white);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.orders-sub {
    color: var(--gray-light);
    font-size: 16px;
    line-height: 1.6;
    max-width: 620px;
}

/* Loading + empty states */
.orders-loading,
.orders-empty {
    color: var(--gray-light);
    font-size: 15px;
    padding: 80px 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.orders-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    margin-right: 10px;
    animation: ord-spin 0.8s linear infinite;
    vertical-align: -2px;
}
@keyframes ord-spin { to { transform: rotate(360deg); } }

/* Order card — one per order in the list */
.order-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 18px;
    transition: border-color 0.2s, background 0.2s;
}
.order-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.order-card-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.order-card-title {
    color: var(--off-white);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
.order-card-meta {
    color: var(--gray-mid);
    font-size: 12.5px;
    margin-top: 4px;
}

/* Status pill — color-coded by stage */
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}
.order-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.order-status.status-requested  { background: rgba(170, 170, 170, 0.12); color: #b8b8c0; }
.order-status.status-reviewed   { background: rgba(80, 130, 200, 0.14); color: #6da0e0; }
.order-status.status-quoted     { background: rgba(80, 160, 110, 0.14); color: #6cc294; }
.order-status.status-production { background: rgba(220, 150, 60, 0.16); color: #f0b96a; }
.order-status.status-shipped    { background: rgba(200, 16, 46, 0.18); color: #ff6b7c; }

/* Timeline progress bar — horizontal 5-stage with dates */
.order-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
    margin: 18px 0 4px;
    padding: 0;
}
.order-timeline::before {
    /* Track line behind the dots */
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 13px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}
.order-timeline-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
}
.order-timeline-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--off-black);
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s var(--ease-out);
}
.order-timeline-step.is-done .order-timeline-dot {
    background: var(--red);
    border-color: var(--red);
}
.order-timeline-step.is-done .order-timeline-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
/* Connector line that fills in red between completed steps. Each step
   colors the segment that comes BEFORE it (its left half), so a fully
   completed timeline has a continuous red line across all 5 dots. */
.order-timeline-step::before {
    content: "";
    position: absolute;
    left: -50%;
    right: 50%;
    top: 13px;
    height: 2px;
    background: transparent;
    z-index: -1;
    transition: background 0.3s var(--ease-out);
}
.order-timeline-step.is-done::before {
    background: var(--red);
}
.order-timeline-step:first-child::before { display: none; }

.order-timeline-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gray-light);
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 4px;
    min-height: 30px;
}
.order-timeline-step.is-done .order-timeline-label {
    color: var(--off-white);
}
.order-timeline-date {
    font-size: 10.5px;
    font-family: var(--font-mono);
    color: var(--gray-mid);
    letter-spacing: 0.02em;
}
.order-timeline-step.is-done .order-timeline-date {
    color: var(--gray-light);
}

/* Estimated-ship readout under the timeline. Switches between "Estimated
   ship: <date>" while in production and "Shipped <date>" once expected
   ship is checked. */
.order-ship-readout {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: var(--gray-light);
}
.order-ship-readout strong {
    color: var(--off-white);
    font-variant-numeric: tabular-nums;
}
.order-ship-readout.is-shipped {
    border-left-color: #6cc294;
}
.order-ship-readout.is-shipped strong {
    color: #aef0c8;
}

/* Inline expandable details — items table and notes */
.order-card-body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
}
.order-card.is-expanded .order-card-body {
    display: block;
}
.order-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--gray-light);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
}
.order-card-toggle:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--off-white);
}
.order-card-toggle .chev {
    transition: transform 0.2s;
}
.order-card.is-expanded .order-card-toggle .chev {
    transform: rotate(180deg);
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-top: 8px;
}
.order-items-table th {
    text-align: left;
    color: var(--gray-mid);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.order-items-table td {
    color: var(--gray-light);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.order-items-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.order-items-table tr:last-child td {
    border-bottom: none;
}
.order-notes {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.5;
}
.order-notes-label {
    color: var(--gray-mid);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Light-theme overrides */
html.light .orders-header .section-title { color: #0a0a0a; }
html.light .orders-sub                   { color: #4a4a4a; }
html.light .order-card                    { background: #fff; border-color: rgba(0, 0, 0, 0.08); }
html.light .order-card:hover              { border-color: rgba(0, 0, 0, 0.18); background: #fafafa; }
html.light .order-card-title              { color: #0a0a0a; }
html.light .order-timeline-label          { color: #6e6e73; }
html.light .order-timeline-step.is-done .order-timeline-label { color: #0a0a0a; }
html.light .order-timeline-dot            { background: #fff; border-color: rgba(0, 0, 0, 0.18); }
html.light .order-ship-readout            { background: rgba(0, 0, 0, 0.03); color: #4a4a4a; }
html.light .order-ship-readout strong     { color: #0a0a0a; }
html.light .order-items-table th          { color: #6e6e73; border-bottom-color: rgba(0, 0, 0, 0.08); }
html.light .order-items-table td          { color: #1a1a1a; border-bottom-color: rgba(0, 0, 0, 0.04); }

/* Attachments — quote downloads + signed-PO uploads */
.order-att-section {
    margin-top: 14px;
}
.order-att-list:empty { display: none; }
.order-att-loading,
.order-att-error {
    color: var(--gray-mid);
    font-size: 12.5px;
    padding: 8px 0;
}
.order-att-error { color: var(--red); }

.order-att-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
}
.order-att-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--gray-light);
}
.order-att-kind {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    background: rgba(200, 16, 46, 0.16);
    color: #ff6b7c;
    border-radius: 999px;
    flex-shrink: 0;
}
.order-att-name {
    color: var(--off-white);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-att-size {
    color: var(--gray-mid);
    font-size: 12px;
    flex-shrink: 0;
}
.order-att-download {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--off-white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    flex-shrink: 0;
}
.order-att-download:hover {
    border-color: var(--red);
    color: #fff;
    background: rgba(200, 16, 46, 0.1);
}

/* Drag-drop zone for the customer's signed PO upload */
.order-po-upload {
    margin-top: 10px;
    padding: 22px 18px;
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.order-po-upload:hover,
.order-po-upload.is-dragover {
    border-color: var(--red);
    background: rgba(200, 16, 46, 0.06);
}
.order-po-upload-icon {
    color: var(--gray-light);
    margin-bottom: 8px;
}
.order-po-upload:hover .order-po-upload-icon,
.order-po-upload.is-dragover .order-po-upload-icon { color: var(--red); }
.order-po-upload-text strong {
    display: block;
    color: var(--off-white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.order-po-upload-text span {
    color: var(--gray-mid);
    font-size: 12px;
}
.order-po-upload-status {
    margin-top: 10px;
    font-size: 12.5px;
}
.order-po-upload-status.is-busy { color: var(--gray-light); }
.order-po-upload-status.is-ok   { color: #6cc294; }
.order-po-upload-status.is-err  { color: var(--red); }

html.light .order-att-row        { background: #fafafa; border-color: rgba(0, 0, 0, 0.08); }
html.light .order-att-name       { color: #0a0a0a; }
html.light .order-att-download   { color: #0a0a0a; border-color: rgba(0, 0, 0, 0.18); }
html.light .order-po-upload      { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.16); }
html.light .order-po-upload-text strong { color: #0a0a0a; }

/* Mobile — stack timeline vertically below ~640px so labels don't crush */
@media (max-width: 640px) {
    .orders-modal-inner { padding: 24px 20px 56px; }
    .orders-header .section-title { font-size: 28px; }
    .order-card { padding: 18px 18px; }
    .order-card-head { flex-direction: column; gap: 10px; }
    .order-timeline {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .order-timeline::before { display: none; }
    .order-timeline-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    .order-timeline-step::before { display: none; }
    .order-timeline-dot { margin-bottom: 0; flex-shrink: 0; }
    .order-timeline-label { min-height: 0; margin-bottom: 0; flex: 1; }
    .order-timeline-date { font-size: 11px; }
}

/* ─────────────────────────────────────────────────────────────────────
   News modal — list + single post views. Mirrors /news/news.css styles
   but scoped to .news-* classes living inside .news-modal.
   ───────────────────────────────────────────────────────────────────── */
.news-modal-inner { padding-top: 80px; padding-bottom: 80px; }
.news-modal-header { text-align: center; margin-bottom: 40px; }
.news-modal-header .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red, #c41717);
    margin-bottom: 14px;
}
.news-modal-header h2 { margin: 0 0 12px; }
.news-modal-header p {
    color: var(--gray-light, #aeaeb2);
    max-width: 640px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
}
html.light .news-modal-header p { color: #4a4a4a; }
.news-modal-list { max-width: 1100px; margin: 0 auto; }
.news-modal-single { max-width: 760px; margin: 0 auto; }

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}
@media (max-width: 720px) { .news-list { grid-template-columns: 1fr; } }
.news-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
html.light .news-card { background: #fff; border-color: rgba(0, 0, 0, 0.08); }
.news-card:hover {
    border-color: rgba(196, 23, 23, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}
html.light .news-card:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08); }
.news-card-thumb {
    aspect-ratio: 16 / 9;
    background-color: rgba(255, 255, 255, 0.04);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html.light .news-card-thumb {
    background-color: rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
.news-card-thumb.is-empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-mid, #71717a);
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.news-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red, #c41717); }
.news-card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.news-card-excerpt {
    font-size: 13.5px; line-height: 1.55;
    color: var(--gray-light, #a1a1aa); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
html.light .news-card-excerpt { color: #4a4a4a; }
.news-card-foot {
    margin-top: auto; padding-top: 14px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--gray-mid, #71717a);
}
.news-card-readmore { color: var(--red, #c41717); font-weight: 600; }

.news-single { max-width: 760px; margin: 0 auto; }
.news-single-back {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: none; padding: 0;
    color: var(--gray-light, #a1a1aa);
    font-size: 13px; margin-bottom: 24px; cursor: pointer;
    transition: color 0.15s;
}
.news-single-back:hover { color: var(--red, #c41717); }
.news-single-meta {
    font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--red, #c41717); margin-bottom: 14px;
}
.news-single-title {
    font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.1; margin: 0 0 14px;
}
.news-single-byline { font-size: 13px; color: var(--gray-light, #a1a1aa); margin-bottom: 28px; }
.news-single-byline strong { color: var(--off-white, #fff); font-weight: 600; }
html.light .news-single-byline strong { color: #18181b; }
.news-single-hero {
    width: 100%; aspect-ratio: 16 / 9;
    background-color: rgba(255, 255, 255, 0.04);
    background-size: cover; background-position: center;
    border-radius: 14px; margin-bottom: 32px;
}
html.light .news-single-hero { background-color: rgba(0, 0, 0, 0.04); }
.news-single-content { font-size: 16px; line-height: 1.7; color: var(--off-white, #fff); }
html.light .news-single-content { color: #18181b; }
.news-single-content h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 36px 0 14px; }
.news-single-content h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.news-single-content p { margin: 0 0 18px; }
.news-single-content a { color: var(--red, #c41717); text-decoration: underline; text-underline-offset: 2px; }
.news-single-content ul, .news-single-content ol { margin: 0 0 18px; padding-left: 26px; }
.news-single-content li { margin-bottom: 6px; }
.news-single-content blockquote {
    margin: 0 0 18px; padding: 12px 18px;
    border-left: 3px solid var(--red, #c41717);
    background: rgba(196, 23, 23, 0.06);
    color: var(--gray-light, #a1a1aa);
    border-radius: 0 8px 8px 0;
}
.news-single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.news-single-content hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 36px 0; }
html.light .news-single-content hr { border-top-color: rgba(0, 0, 0, 0.1); }

.news-gallery-main {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 24px;
    /* Smooth fade-out + tiny scale-down when switching media items. */
    opacity: 1;
    transform: scale(1);
    transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
                transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.news-gallery-main.is-switching {
    opacity: 0;
    transform: scale(0.985);
}
html.light .news-gallery-main { background: #f0f0f2; }
.news-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-gallery-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Thumbnail strip below the main viewer. */
.news-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.news-gallery-thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}
html.light .news-gallery-thumb { background-color: rgba(0, 0, 0, 0.05); }
.news-gallery-thumb:hover { transform: translateY(-1px); }
.news-gallery-thumb.is-active {
    border-color: var(--red, #c41717);
    transform: translateY(-1px);
}
.news-gallery-thumb.is-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}
.news-gallery-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.news-embed {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    margin: 24px 0; border-radius: 10px; overflow: hidden; background: #000;
}
html.light .news-embed { background: #f0f0f2; }
.news-embed iframe, .news-single-content iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.news-loading, .news-empty {
    text-align: center; padding: 60px 24px;
    color: var(--gray-mid, #71717a); font-size: 14px;
}

/* Light-mode overrides for the news modal text colors that the base rules
   above leave dark. The about-modal shell already lightens to #f6f4ef. */
html.light .news-card-thumb.is-empty { color: #6e6e73; }
html.light .news-card-foot { color: #6e6e73; }
html.light .news-single-back { color: #4a4a4a; }
html.light .news-single-byline { color: #4a4a4a; }
html.light .news-single-content blockquote { color: #4a4a4a; }
html.light .news-loading,
html.light .news-empty { color: #6e6e73; }

/* Explicit dark-mode colors for news modal — the .about-modal shell
   doesn't set an inherited text color, so heading + card titles fall
   through to whatever the body had (which can be dark in light mode
   carryover). Pin them to off-white for the dark theme. */
html:not(.light) .news-modal-header h2 { color: #f6f6f7; }
html:not(.light) .news-card { color: #f6f6f7; }
html:not(.light) .news-card-title { color: #f6f6f7; }
html:not(.light) .news-single-title { color: #f6f6f7; }
html:not(.light) .news-single-content { color: #e8e8ea; }
