@font-face {
    font-family: "Google Sans Flex";
    font-style: normal;
    font-weight: 1 1000;
    font-display: swap;
    src: url("../fonts/google-sans-flex-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Google Sans Flex";
    font-style: normal;
    font-weight: 1 1000;
    font-display: swap;
    src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b0b0b;
    --bg-2: #111;
    --intro-bg: #000;
    --ink: #f3f3f3;
    --muted: #9a9a9a;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #3aa028;
    --accent-2: #67d04e;

    /* Shared shell — header, wraps, and media banners */
    --site-max: 1400px;

    --font-sans: "Google Sans Flex", sans-serif;
    --font-outline: var(--font-sans);
    --fs-kicker: clamp(10px, 0.9vw, 13px);
    --fs-caption: clamp(7px, 0.8vw, 11px);
    --fs-card-title: clamp(11px, 1.85vw, 26px);
    --fs-card-title-sm: clamp(13px, 1.6vw, 22px);
    --fs-meta: clamp(12px, 1vw, 14px);
    --fs-body: clamp(14px, 1.15vw, 14px);
    --fs-lead: clamp(15px, 1.2vw, 18px);
    --fs-h3: clamp(22px, 2.4vw, 28px);
    --fs-h2-section: clamp(24px, 3.2vw, 36px);
    --fs-h2: clamp(36px, 4.5vw, 64px);

    --section-y: clamp(12px, 1.5vw, 18px);
    --hero-min: min(52vh, 480px);
    --hero-max: max(72vh, 680px);
    --hero-pad-y-top: 180px;
    --hero-pad-y-bottom: 40px;
    --hero-pad-x: max(28px, calc((100% - var(--site-max, 1400px)) / 2 + 28px));

    --pure-bg: #0b0b0b;
    --pure-text: #ffffff;
    --always-white: #ffffff;
    --rgba-line: rgba(255, 255, 255, 0.1);
    --rgba-hover: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(10, 10, 10, 0.95);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.5);
    --thumb-bg: rgba(255, 255, 255, 0.2);
    --track-bg: rgba(0, 0, 0, 0.2);
    --nav-text: #ffffff;
}

@media (max-width: 640px) {
    :root {
        --hero-min: min(58vh, 420px);
        --hero-pad-y-top: 160px;
        --hero-pad-y-bottom: 32px;
        --hero-pad-x: 18px;
    }
}

:root[data-theme="light"] {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --intro-bg: #f7f7f7;
    --ink: #111111;
    --muted: #555555;
    --line: rgba(0, 0, 0, 0.12);
    --accent: #3aa028;
    --accent-2: #2d7a1e;

    --pure-bg: #ffffff;
    --pure-text: #111111;
    --rgba-line: rgba(0, 0, 0, 0.1);
    --rgba-hover: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.98);
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-hover: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.1);
    --thumb-bg: rgba(0, 0, 0, 0.2);
    --track-bg: rgba(0, 0, 0, 0.05);
    --nav-text: #ffffff;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* visible required — overflow-x:hidden breaks position:sticky stacking cards */
    overflow-x: visible;
}

body {
    overflow-y: scroll;
}

.about-hero-copy h1 span,
.ai-hero-copy h1 span,
.dc-hero-copy h1 span,
.mx-hero-copy h1 span,
.solutions-title span,
.cb-title span,
.sv-title span,
.dc-title span,
.calc-hero-title span,
.audience-hero .h2 span,
.projects-hero .h2 span,
.contact-title span,
.about-why-ghost {
    font-family: var(--font-outline);
}

.about-hero-copy h1 span,
.ai-hero-copy h1 span,
.dc-hero-copy h1 span,
.mx-hero-copy h1 span,
.solutions-title span,
.cb-title span,
.sv-title span,
.dc-title span,
.calc-hero-title span,
.audience-hero .h2 span,
.projects-hero .h2 span,
.contact-title span {
    color: var(--accent);
}

@supports (-webkit-text-stroke: 1px black) {

    .about-hero-copy h1 span,
    .ai-hero-copy h1 span,
    .dc-hero-copy h1 span,
    .mx-hero-copy h1 span,
    .solutions-title span,
    .cb-title span,
    .sv-title span,
    .dc-title span,
    .calc-hero-title span,
    .audience-hero .h2 span,
    .projects-hero .h2 span,
    .contact-title span {
        color: transparent;
        -webkit-text-stroke: 1.35px var(--accent);
        filter: drop-shadow(0 0 0.1em color-mix(in srgb, var(--accent) 42%, transparent));
    }
}

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

p {
    padding-bottom: 15px;
}

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

/* ====== Header (transparent, fixed over hero) ====== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    transition:
        background 0.4s ease,
        border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.topbar.solid {
    /* No backdrop-filter — it creates a containing block and breaks the fixed mobile drawer */
    background: rgba(11, 11, 11, 0.92);
    border-bottom-color: var(--line);
}

:root[data-theme="light"] .topbar.solid {
    --nav-text: #111111;
    background: rgba(255, 255, 255, 0.96);
}

.topbar nav .pull-right svg {
    fill: var(--nav-text);
}

h2,
h3 {
    font-weight: 500;
}

.util {
    font-size: var(--fs-kicker);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar.solid .util {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    background: #222;
}

.util-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 8px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.util-inner>div:first-child,
.util-rotate {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: start;
}

.util-end {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.top-con {
    display: flex;
    gap: 24px;
    align-items: center;
}

.util a {
    opacity: 0.85;
}

.util a:hover {
    color: var(--accent);
}

.util-rotate {
    min-height: 1.2em;
    font-weight: 500;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.util-rotate.is-words {
    letter-spacing: normal;
    text-transform: none;
}

.util-rotate.is-in {
    opacity: 1;
    transform: translateY(0);
}

.util-rotate.is-out {
    opacity: 0;
    transform: translateY(4px);
}

.nav {
    position: relative;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--nav-text);
}

.logo img {
    width: 120px;
}

.logo span {
    color: var(--accent);
}

.pull-right {
    display: flex;
}

.pull-right a {
    padding-left: 10px;
}

.menu {
    display: flex;
    gap: 24px;
    font-size: var(--fs-kicker);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-items: center;
}

.menu>a.mobile-cta {
    display: none;
}

.menu a {
    position: relative;
    padding: 4px 15px;
    color: var(--nav-text);
}

.menu a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.menu a:hover:after {
    transform: scaleX(1);
}

/* --- Mega Menu Styles --- */
.has-dropdown {
    /* padding to increase hover area */
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.caret {
    font-size: 10px;
    vertical-align: middle;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 28px;
    right: 28px;
    background: var(--pure-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.3s,
        transform 0.3s,
        visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 10px 40px var(--shadow);
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    .has-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.has-dropdown.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: flex;
    height: 600px;
    max-height: 80vh;
    position: relative;
}

.scroll-indicator-wrapper {
    position: absolute;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg) 10%, transparent 100%);
    pointer-events: none;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 16px;
    transition: opacity 0.3s ease;
}

.scroll-indicator-wrapper.hidden {
    opacity: 0;
}

.scroll-indicator-left {
    left: 0;
    width: 250px;
    border-right: 1px solid var(--border-light);
    /* match mega-tabs border */
}

.scroll-indicator-right {
    left: 250px;
    right: 0;
}

.scroll-indicator {
    font-size: var(--fs-caption);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite ease-in-out;
    font-weight: 500;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.mega-tabs {
    width: 250px;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    padding: 16px 0;
}

.mega-tabs::-webkit-scrollbar {
    width: 4px;
}

.mega-tabs::-webkit-scrollbar-thumb {
    background: var(--rgba-line);
    border-radius: 4px;
}

.mega-tab {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-tab:hover {
    color: var(--pure-text);
    background: var(--card-bg);
}

.mega-tab.active {
    color: var(--accent);
    background: var(--rgba-hover);
    font-weight: 500;
}

.mega-panels {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    position: relative;
    /* subtle inset shadow to indicate scrollability */
    box-shadow: inset 0 -15px 15px -15px var(--shadow);
}

.mega-panels::-webkit-scrollbar {
    width: 6px;
}

.mega-panels::-webkit-scrollbar-track {
    background: var(--track-bg);
}

.mega-panels::-webkit-scrollbar-thumb {
    background: var(--thumb-bg);
    border-radius: 4px;
}

.mega-panel-header {
    position: sticky;
    top: -24px;
    /* matches padding of mega-panels */
    background: var(--pure-bg);
    padding: 12px 0 8px 0;
    margin-top: -24px;
    margin-bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--rgba-line);
    height: 40px;
    box-sizing: border-box;
}

.mega-panel-title {
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    font-weight: 600;
    color: var(--accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-panel-header .view-all-btn {
    font-size: var(--fs-kicker);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s;
}

.mega-panel-header .view-all-btn:hover {
    text-decoration: underline;
}

.mega-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mega-panel.active {
    display: block;
}

.subcategory-section {
    margin-bottom: 32px;
}

.subcategory-section:last-child {
    margin-bottom: 0;
}

.subcategory-header {
    position: sticky;
    top: 16px;
    /* Sits right beneath the 40px tall mega-panel-header starting at -24px */
    background: var(--pure-bg);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 -24px 12px -24px;
    padding: 8px 24px;
    border-bottom: 1px solid var(--rgba-hover);
}

.subcategory-header h5 {
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    font-weight: 500;
    color: var(--pure-text);
    margin: 0;
}

.subcategory-header .view-all-link {
    display: none;
    /* removed per user request */
    font-size: var(--fs-caption);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subcategory-header .view-all-link:hover {
    text-decoration: underline;
}

.subcategory-products-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
}

.mega-product-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    background: #111;
    aspect-ratio: 1/1;
    transition: transform 0.2s;
}

.mega-product-card:hover {
    transform: translateY(-3px);
}

.mega-product-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.mega-product-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8));
}

.mega-product-code {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: var(--fs-caption);
    color: var(--pure-text);
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 2;
}

.view-all-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--pure-bg);
    text-transform: uppercase;
    font-size: var(--fs-caption);
    letter-spacing: 0.05em;
    padding: 12px;
    transition: all 0.2s;
    aspect-ratio: 1/1;
    font-weight: 500;
}

.view-all-card:hover {
    background: var(--pure-text);
    border-color: var(--pure-text);
    transform: translateY(-3px);
    color: var(--pure-bg);
}

.view-all-card svg {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
    stroke: currentColor;
}

.mega-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--track-bg);
    text-align: right;
}

.mega-footer a {
    color: var(--accent);
    font-size: var(--fs-kicker);
    letter-spacing: 0.1em;
}

.mega-footer a:after {
    display: none;
}

.mega-footer a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta {
    color: var(--nav-text);
    font-size: var(--fs-kicker);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s;
    border-radius: 4px;
    position: relative;
}

.cta span.count {
    position: absolute;
    top: -6px;
    right: -6px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--pure-bg);
    font-size: 10px;
    width: 18px;
    height: 18px;
    padding: 1px 7px;
}

/*
.cta {
  padding: 8px 16px;
  border: 1px solid var(--nav-text);
  color: var(--nav-text);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all .3s;
  border-radius: 4px;
}*/

a.cta:after {
    height: 0;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}

.theme-switch-track {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

:root[data-theme="light"] .theme-switch-track {
    background: rgba(255, 255, 255, 0.88);
}

.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c8c8c8;
    color: #222;
    display: grid;
    place-items: center;
    transform: translateX(16px);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

:root[data-theme="light"] .theme-switch-thumb {
    transform: none;
    background: #4a4a4a;
    color: #fff;
}

.theme-switch-thumb svg {
    grid-area: 1 / 1;
    width: 12px;
    height: 12px;
}

.theme-switch .sun-icon {
    opacity: 0;
}

.theme-switch .moon-icon {
    opacity: 1;
}

:root[data-theme="light"] .theme-switch .sun-icon {
    opacity: 1;
}

:root[data-theme="light"] .theme-switch .moon-icon {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .theme-switch-thumb {
        transition: none;
    }
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    z-index: 220;
    background: none;
    border: 0;
    padding: 0;
}

.burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--nav-text);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        top 0.3s ease;
}

.burger span:nth-child(1) {
    top: 15px;
}

.burger span:nth-child(2) {
    top: 21px;
}

.burger span:nth-child(3) {
    top: 27px;
}

body.nav-open .burger span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
    opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 180;
}

body.nav-open .nav-overlay {
    display: block;
}

.mobile-util,
.mobile-nav-head {
    display: none;
}

/* ====== Hero slider (sticky parallax) ====== */
.hero {
    position: relative;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(var(--z, 1)) translate3d(0, var(--ty, 0), 0);
    transition: transform 0.1s linear;
    z-index: 0;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.slide-inner {
    z-index: 2;
}

.slide .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
    transform: scale(var(--z, 1)) translate3d(0, var(--ty, 0), 0);
    transition: transform 0.1s linear;
}

.slide.has-video::before {
    display: none;
}

@keyframes kenburns {
    0% {
        transform: scale(1.05) translate3d(0, var(--ty, 0), 0);
    }

    100% {
        transform: scale(1.4) translate3d(0, var(--ty, 0), 0);
    }
}

.slide.active::before {
    animation: kenburns 22s ease-out both;
}

.slide-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Full-bleed media; copy aligns to header shell */
    padding: 0 max(28px, calc((100% - var(--site-max)) / 2 + 28px)) 14vh;
    z-index: 2;
    color: var(--always-white);
}

.slide-title {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--fs-h2);
    line-height: 1.02;
    max-width: 1100px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.1s 0.45s ease;
}

.slide.active .slide-title {
    opacity: 1;
    transform: none;
}

.slide-sub {
    margin-top: 22px;
    max-width: 560px;
    color: #dadada;
    font-size: var(--fs-lead);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.1s 0.65s ease;
}

.slide.active .slide-sub {
    opacity: 1;
    transform: none;
}

.slide-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.1s 0.85s ease;
}

.slide.active .slide-actions {
    opacity: 1;
    transform: none;
}

.slide-actions .btn:not(.primary) {
    color: var(--always-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.slide-actions .btn:not(.primary):hover {
    background: var(--always-white);
    color: #111111;
    border-color: var(--always-white);
}

.btn {
    padding: 14px 28px;
    font-size: var(--fs-kicker);
    text-transform: uppercase;
    border: 1px solid var(--accent-2);
    color: var(--pure-text);
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
    border-radius: 4px;
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--pure-bg);
}

.btn:hover {
    background: var(--accent);
    color: var(--always-white);
    border-color: var(--accent);
}

.btn.primary:hover {
    background: var(--pure-text);
    color: var(--pure-bg);
}

/* slider controls  */
.slider-ctrl {
    position: absolute;
    left: max(28px, calc((100% - var(--site-max)) / 2 + 28px));
    right: max(28px, calc((100% - var(--site-max)) / 2 + 28px));
    bottom: 6vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    z-index: 3;
    color: var(--always-white);
}

.pp {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--always-white);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.pp:hover {
    background: var(--always-white);
    color: #111111;
    border-color: var(--always-white);
}

.pp svg {
    width: 14px;
    height: 14px;
}

.counter {
    color: var(--always-white);
    font-size: var(--fs-kicker);
    letter-spacing: 0.2em;
    min-width: 60px;
    text-align: right;
}

.counter b {
    font-size: var(--fs-body);
}

.counter span {
    opacity: 0.5;
}

/* --- Page Layout & Breadcrumbs --- */
.product-page-wrapper {
    padding-top: var(--hero-pad-y-top);
    /* offset for fixed topbar */
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    transition:
        background 0.4s ease,
        color 0.4s ease;
}

.breadcrumbs {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    opacity: 0.5;
}

/* ====== Intro / value props ====== */
section {
    position: relative;
    z-index: 2;
    background: var(--bg);
}

.wrap {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 10px 28px;
}

.wrap-sm {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-pad {
    padding: var(--section-y) 0;
}

.kicker {
    font-size: var(--fs-kicker);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 500;
}

.h2 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--fs-h2-section);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.lead {
    color: var(--muted);
    max-width: 680px;
    margin-top: 22px;
    font-size: var(--fs-lead);
}

.intro {
    padding: 80px 0;
    text-align: center;
    background: var(--intro-bg);
}

.audience {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.audience a {
    padding: 14px 26px;
    border: 1px solid var(--accent);
    font-size: var(--fs-kicker);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: all 0.35s;
    color: #666;
}

.audience a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    background-color: var(--accent);
    color: var(--always-white);
}

.card-in {
    text-align: center;
    padding: 80px 0;
    background: var(--bg);
}

/* value grid — pinned scroll storytelling */
.values {
    padding: 0;
    background: var(--bg);
}

.pin-track {
    position: relative;
    height: 320vh;
}

.pin-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.pin-stage .wrap {
    width: 100%;
}

.v-head {
    overflow: hidden;
}

.v-head .kicker,
.v-head .h2 {
    display: block;
    opacity: 0;
    transform: translateY(120%);
    transition:
        opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.v-head.on .kicker {
    opacity: 1;
    transform: none;
}

.v-head.on .h2 {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin-top: 40px;
}

.value-grid .value {
    padding: 36px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    opacity: 0;
    transform: translateX(140px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
        background 0.4s;
}

.value-grid .value.on {
    opacity: 1;
    transform: none;
}

.value-grid .value:hover {
    background: #141414;
}

.value-grid .value .n {
    font-family: var(--font-sans);
    color: var(--accent);
    font-size: var(--fs-h3);
    margin-bottom: 30px;
}

.value-grid .value h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--fs-h3);
    margin-bottom: 14px;
}

.value-grid .value p {
    color: var(--muted);
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* ====== Product marquee (auto scroll R->L, pause on hover) ====== */
.products {
    padding: var(--section-y) 0;
    background: var(--bg);
    overflow: hidden;
    /* max-width: var(--site-max); */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.products .head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(16px, 2.5vh, 28px);
}

.products .head .h2 {
    font-size: var(--fs-h2-section);
}

.marquee {
    position: relative;
    width: 100%;
    /* max-width: var(--site-max); */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    /* -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); */
    /* mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); */
}

.marquee .track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 6px 28px 16px;
    animation: products-scroll 45s linear infinite;
    will-change: transform;
}

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

@keyframes products-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee .card {
    flex: 0 0 clamp(220px, 28vw, 320px);
    width: clamp(220px, 28vw, 320px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--ink);
    overflow: hidden;
    position: relative;
    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.marquee .card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.16);
}

.marquee .card .img {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: var(--card-bg, #1a1a1a);
}

.marquee .card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s ease;
}

.marquee .card:hover .img img {
    transform: scale(1.04);
}

.marquee .card .img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.marquee .card .body {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    padding: 16px 18px 18px;
    background: var(--bg);
}

.marquee .card h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--fs-meta);
    letter-spacing: -0.01em;
    line-height: 1.25;
    min-height: 1.25em;
    margin-bottom: 6px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marquee .card p {
    color: var(--muted);
    font-size: var(--fs-kicker);
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
    white-space: pre-line;
}

.marquee .card .more {
    font-size: var(--fs-caption);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    flex-shrink: 0;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.marquee .card:hover .more {
    gap: 12px;
}

@media (max-width: 640px) {
    .marquee .track {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.products-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start;
}

.products-main {
    min-width: 0;
}

.products-sidebar {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
    width: 100%;
    margin: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-family: var(--font-sans);
    font-size: var(--fs-h3);
    margin: 0;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--pure-text);
    font-size: var(--fs-h3);
    cursor: pointer;
    padding: 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-list a {
    text-decoration: none;
    color: var(--muted);
    font-size: var(--fs-body);
    transition: color 0.3s;
}

.category-list a:hover,
.category-list a.active {
    color: var(--accent);
}

.mobile-filter-bar {
    display: none;
    margin-bottom: 20px;
}

.products-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.products-filters::-webkit-scrollbar {
    height: 4px;
}

.products-filters::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.filter-pill {
    padding: 8px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: var(--fs-kicker);
    color: var(--pure-text);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.compact-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.compact-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.3s,
        border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.compact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.compact-card .img-wrap {
    height: 130px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
    display: block;
}

.compact-card .info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.compact-card h4 {
    font-size: var(--fs-meta);
    margin: 0 0 8px;
    color: var(--pure-text);
    font-weight: 600;
    line-height: 1.3;
}

.compact-card .specs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--fs-caption);
    color: var(--muted);
    margin-bottom: auto;
}

.compact-card .specs strong {
    color: var(--pure-text);
    font-weight: 500;
}

.cart-action {
    margin-top: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: var(--fs-kicker);
    border-radius: 4px;
    width: 100%;
    text-align: center;
    display: block;
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .mobile-filter-bar {
        display: block;
    }

    .products-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        bottom: 0;
        width: 280px;
        z-index: 100;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--line);
        transition: left 0.4s ease;
        padding: 30px;
    }

    .products-sidebar.open {
        left: 0;
    }

    .close-sidebar {
        display: block;
    }
}

/* ====== Projects ====== */
.projects {
    padding: 80px 0px;
    background: var(--bg);
}

.projects .wrap {
    padding-left: clamp(12px, 2vw, 28px);
    padding-right: clamp(12px, 2vw, 28px);
}

.projects .grid {
    margin-top: clamp(14px, 2vw, 28px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(8px, 1.7vw, 24px);
}

.proj {
    position: relative;
    overflow: hidden;
    background: #111;
    min-height: 0;
    cursor: pointer;
    border-radius: 4px;
}

.proj>a {
    display: block;
    position: absolute;
    inset: 0;
    color: inherit;
}

.proj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 1.4s ease;
    opacity: 0.78;
}

.proj:hover img {
    transform: scale(1.07);
    opacity: 1;
}

.proj .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(8px, 1.4vw, 20px) clamp(8px, 1.7vw, 24px);
    color: var(--always-white);
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 2;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            transparent 100%);
}

.proj .cap small {
    font-size: var(--fs-caption);
    letter-spacing: clamp(0.12em, 0.3vw, 0.3em);
    text-transform: uppercase;
    color: var(--accent);
}

.proj .cap h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--fs-card-title);
    line-height: 1.15;
    margin-top: clamp(3px, 0.55vw, 8px);
}

.project-products {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    opacity: 1;
    transition: all 0.4s ease;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pp-card {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #fff;
}

.pp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: static;
    opacity: 1;
    transition: transform 0.3s ease;
}

.pp-card:hover img {
    transform: scale(1.1);
}

.pp-view-all {
    font-size: var(--fs-caption);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
    padding: 4px;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.pp-view-all:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.projects .grid .proj:nth-child(4n + 1) {
    grid-column: span 7;
    aspect-ratio: 770 / 520;
}

.projects .grid .proj:nth-child(4n + 2) {
    grid-column: span 5;
    aspect-ratio: 550 / 520;
}

.projects .grid .proj:nth-child(4n + 3) {
    grid-column: span 5;
    aspect-ratio: 550 / 380;
}

.projects .grid .proj:nth-child(4n + 4) {
    grid-column: span 7;
    aspect-ratio: 770 / 380;
}

/* ====== Stats CTA ====== */
.stats {
    padding: 80px 0px;
    background: url("../vid2_fallback.jpg") center/cover no-repeat;
    position: relative;
    color: var(--always-white);
    width: 100%;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 7, 0.82);
}

.stats .wrap {
    position: relative;
    z-index: 2;
}

.stats-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat .num {
    font-family: var(--font-sans);
    font-size: var(--fs-h2);
    color: var(--accent);
    font-weight: 400;
    line-height: 1;
}

.stat .lbl {
    margin-top: 12px;
    font-size: var(--fs-kicker);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ccc;
}

/* ====== Reveal animations ====== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ====== Footer ====== */
footer {
    background: var(--bg);
    padding: 48px 0 24px;
    border-top: 1px solid var(--line);
}

.foot {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.foot-brand {
    min-width: 0;
}

.foot-links {
    display: contents;
}

.foot h5 {
    font-size: var(--fs-kicker);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pure-text);
    margin-bottom: 22px;
}

.foot a {
    display: block;
    color: var(--muted);
    font-size: var(--fs-body);
    padding: 6px 0;
    transition: color 0.3s;
}

.foot a:hover {
    color: var(--accent);
}

.foot p {
    color: var(--muted);
    font-size: var(--fs-body);
    margin-top: 18px;
    line-height: 1.7;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.socials a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--pure-text);
}

.socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.socials svg {
    width: 14px;
    height: 14px;
}

.copy {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: var(--fs-kicker);
}

.copy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.copy-links a {
    color: var(--muted);
    transition: color 0.25s ease;
}

.copy-links a:hover {
    color: var(--accent);
}

.copy-links .sep {
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .util {
        display: block;
    }

    .util-inner,
    .util-rotate {
        text-align: start;
    }

    .util-end {
        margin-left: auto;
    }

    .util .top-con {
        display: none !important;
    }

    .burger {
        display: flex;
    }

    .nav {
        gap: 12px;
        padding: 10px 16px;
    }

    .nav>.cta {
        margin-left: auto;
        font-size: var(--fs-caption);
    }

    .menu.mobile-drawer>a.mobile-cta {
        display: flex;
    }

    .menu.mobile-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 90vw);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: var(--pure-bg);
        border-left: 1px solid var(--line);
        z-index: 270;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
        overflow: hidden;
        box-shadow: -18px 0 48px rgba(0, 0, 0, 0.12);
    }

    body.nav-open .menu.mobile-drawer {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .topbar {
        z-index: 260;
    }

    .nav-overlay {
        z-index: 240;
    }

    /* —— Drawer chrome —— */
    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 18px 14px;
        border-bottom: 1px solid var(--line);
        flex: 0 0 auto;
    }

    .mobile-nav-brand {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .mobile-nav-kicker {
        font-size: var(--fs-caption);
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
    }

    .mobile-nav-title {
        font-size: var(--fs-h3);
        font-weight: 500;
        letter-spacing: -0.02em;
        color: var(--ink);
        line-height: 1.1;
    }

    .mobile-nav-close {
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--pure-bg);
        position: relative;
        cursor: pointer;
        flex: 0 0 auto;
        transition:
            background 0.2s ease,
            border-color 0.2s ease;
    }

    .mobile-nav-close:hover {
        background: var(--card-bg);
        border-color: var(--accent);
    }

    .mobile-nav-close span {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 50%;
        height: 2px;
        background: var(--ink);
        border-radius: 1px;
    }

    .mobile-nav-close span:first-child {
        transform: translateY(-50%) rotate(45deg);
    }

    .mobile-nav-close span:last-child {
        transform: translateY(-50%) rotate(-45deg);
    }

    .menu.mobile-drawer>a,
    .menu.mobile-drawer .has-dropdown {
        flex: 0 0 auto;
    }

    .menu.mobile-drawer>a,
    .menu.mobile-drawer .has-dropdown>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: var(--fs-body);
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
    }

    .menu.mobile-drawer>a:hover,
    .menu.mobile-drawer .has-dropdown>a:hover {
        color: var(--accent);
        background: rgba(58, 160, 40, 0.04);
    }

    .menu.mobile-drawer a:after {
        display: none;
    }

    .has-dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .has-dropdown .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: none !important;
        left: auto;
        right: auto;
        margin: 0;
    }

    /* Products: plain link on mobile — no accordion panel or caret */
    .has-dropdown.mobile-plain-link .mega-menu,
    .has-dropdown.open .mega-menu {
        display: none !important;
    }

    .has-dropdown.mobile-plain-link>a .caret,
    .menu.mobile-drawer .has-dropdown>a .caret {
        display: none;
    }

    .mega-menu-inner {
        height: auto;
        max-height: none;
        flex-direction: column;
    }

    .mega-sidebar,
    .mega-tabs {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    /* Util block — clean white + accent (under nav links) */
    .mobile-util {
        position: relative;
        display: grid;
        gap: 8px;
        margin-top: auto;
        padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line);
        flex: 0 0 auto;
        background: var(--pure-bg);
    }

    .mobile-util-link {
        display: grid !important;
        gap: 3px;
        padding: 12px 14px !important;
        border-radius: 4px;
        background: var(--pure-bg) !important;
        border: 1px solid var(--line) !important;
        border-left: 3px solid var(--accent) !important;
        color: var(--ink) !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        font-size: var(--fs-body) !important;
        font-weight: 500;
        transition:
            background 0.2s ease,
            border-color 0.2s ease;
    }

    .mobile-util-link:hover {
        background: rgba(58, 160, 40, 0.05) !important;
        border-color: var(--accent) !important;
    }

    .mobile-util-label {
        font-size: var(--fs-caption);
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
    }

    .mobile-util-value {
        font-size: var(--fs-body);
        color: var(--ink);
        word-break: break-word;
    }

    .mobile-util a:after {
        display: none;
    }

    /* Scrollable mid section: head + links scroll as one column with util pinned bottom */
    .menu.mobile-drawer {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ========== Variant A — Clean sheet (default) ========== */
    .menu.mobile-drawer[data-nav-style="a"] {
        background: var(--pure-bg);
    }

    /* ========== Variant B — Accent rail ========== */
    .menu.mobile-drawer[data-nav-style="b"] {
        background: #111;
        border-left: 0;
        color: #fff;
    }

    .menu.mobile-drawer[data-nav-style="b"] .mobile-nav-head {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        background: #0a0a0a;
    }

    .menu.mobile-drawer[data-nav-style="b"] .mobile-nav-title {
        color: #fff;
    }

    .menu.mobile-drawer[data-nav-style="b"] .mobile-nav-close {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.25);
    }

    .menu.mobile-drawer[data-nav-style="b"] .mobile-nav-close span {
        background: #fff;
    }

    .menu.mobile-drawer[data-nav-style="b"]>a,
    .menu.mobile-drawer[data-nav-style="b"] .has-dropdown>a {
        color: #fff;
        border-bottom-color: rgba(255, 255, 255, 0.08);
        border-left: 3px solid transparent;
        padding-left: 17px;
    }

    .menu.mobile-drawer[data-nav-style="b"]>a:hover,
    .menu.mobile-drawer[data-nav-style="b"] .has-dropdown>a:hover,
    .menu.mobile-drawer[data-nav-style="b"] .has-dropdown.open>a {
        color: #8cc63f;
        background: rgba(140, 198, 63, 0.08);
        border-left-color: #8cc63f;
    }

    .menu.mobile-drawer[data-nav-style="b"] .has-dropdown.open .mega-menu {
        background: #161616;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    /* ========== Variant C — Bold editorial ========== */
    .menu.mobile-drawer[data-nav-style="c"] {
        background: #f4f4f1;
        width: min(100vw, 420px);
    }

    .menu.mobile-drawer[data-nav-style="c"] .mobile-nav-head {
        padding: 22px 22px 18px;
        border-bottom: 0;
    }

    .menu.mobile-drawer[data-nav-style="c"] .mobile-nav-title {
        font-size: var(--fs-h2-section);
        font-weight: 400;
        letter-spacing: -0.03em;
    }

    .menu.mobile-drawer[data-nav-style="c"] .mobile-nav-close {
        border-radius: 4px;
        width: 42px;
        height: 42px;
    }

    .menu.mobile-drawer[data-nav-style="c"]>a,
    .menu.mobile-drawer[data-nav-style="c"] .has-dropdown>a {
        padding: 18px 22px;
        font-size: var(--fs-body);
        font-weight: 400;
        letter-spacing: -0.01em;
        text-transform: none;
        border-bottom: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .menu.mobile-drawer[data-nav-style="c"] .mobile-util {
        background: #fff;
        border-top: 1px solid var(--line);
        padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .menu.mobile-drawer[data-nav-style="c"] .mobile-util-link {
        padding: 12px 14px !important;
        color: #111 !important;
        background: #fff !important;
    }

    .menu.mobile-drawer[data-nav-style="c"] .mobile-util-value {
        color: #111;
    }

    .intro,
    .products,
    .projects {
        padding: 50px 0px;
    }

    .stats {
        padding: 50px 0px;
    }

    .card-in {
        padding: var(--section-y) 0;
    }

    footer {
        padding: 40px 0 20px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stats {
        background-attachment: scroll;
    }

    .foot {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .foot-brand {
        max-width: none;
    }

    .foot-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-inner {
        padding: 0 20px 18vh;
    }

    .slider-ctrl {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 640px) {
    .foot {
        gap: 28px;
    }

    .foot-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .copy {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .slide-inner {
        padding: 0 5% 22vh;
    }

    .slide-actions .btn {
        width: 100%;
        text-align: center;
    }

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

    .form-actions .btn {
        width: 100%;
    }
}

:root {
    /* Hug the copy + image — tall enough for the sticky stack, not a empty slab */
    --card-height: min(70svh, );
    --card-margin: 0px;
    /* --card-top-offset: 1.5rem; */
    --outline-width: 0px;
}

#cards {
    /* Make place at bottom, as items will slide to that position*/
    padding-bottom: calc(var(--numcards) * var(--card-top-offset));
    /* Don't include the --card-margin in padding, as that will affect the scroll-timeline*/
    margin-bottom: var(--card-margin);
}

#card_1 {
    --index: 1;
}

#card_2 {
    --index: 2;
}

#card_3 {
    --index: 3;
}

#card_4 {
    --index: 4;
}

.card-main {
    position: sticky;
    top: 0;
    padding-top: calc(var(--index) * var(--card-top-offset));
}

.card__content {
    min-height: 70svh;
    transform-origin: 50% 0%;
    will-change: transform;
}

/** PAGE STYLING **/

#cards {
    list-style: none;
    --numcards: 4;
    outline: calc(var(--outline-width) * 10) solid hotpink;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--numcards), var(--card-height));
    gap: clamp(1.25rem, 3vh, 2.5rem);
    padding-top: 32px;
    margin-top: 16px;
}

.card-main {
    outline: var(--outline-width) solid lime;
}

.card__content {
    box-shadow:
        0 0.2em 1em rgba(0, 0, 0, 0.1),
        0 1em 2em rgba(0, 0, 0, 0.1);
    background: var(--bg-2);
    overflow: hidden;
    border: 1px solid var(--line);
    display: grid;
    grid-template-areas: "text img";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;

    align-items: stretch;
    outline: var(--outline-width) solid blue;
}

.card__content>div {
    grid-area: text;
    width: 100%;
    max-width: none;
    place-self: center;
    align-content: start;
    text-align: left;
    padding: clamp(24px, 3vw, 36px);
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    place-items: start;
}

.card__content>figure {
    grid-area: img;
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__content>figure>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

aside {
    margin: 0;
    text-align: left;
}

aside p {
    margin-bottom: 1em;
}

/* Position warning box */
.warning {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: max-content;
    text-align: center;
    max-width: 90vw;
    margin: auto;
    z-index: 2;
    font-size: 0.8em;
    color: #333;
}

/*anim*/
@supports (animation-timeline: view()) {
    .card-main {
        --index0: calc(var(--index) - 1);
        /* 0-based index */
        --reverse-index: calc(var(--numcards) - var(--index0));
        /* reverse index */
        --reverse-index0: calc(var(--reverse-index) - 1);
        /* 0-based reverse index */
    }

    @keyframes scale {
        to {
            transform: scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
        }
    }

    #cards {
        --numcards: 4;
        view-timeline-name: --cards-element-scrolls-in-body;
        view-timeline-inset: 20%;
    }

    .card__content {
        --start-range: calc(var(--index0) / var(--numcards) * 80%);
        --end-range: calc((var(--index)) / var(--numcards) * 100%);

        animation: linear scale forwards;
        animation-timeline: --cards-element-scrolls-in-body;
        animation-range: exit-crossing var(--start-range) exit-crossing var(--end-range);
    }
}

/* Phones: keep sticky stack — only switch to stacked img/text layout */
@media (max-width: 720px) {
    :root {
        --card-height: min(56svh, 400px);
        --card-top-offset: 0.85rem;
    }

    #cards {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(var(--numcards), var(--card-height));
        gap: clamp(0.75rem, 2vh, 1.25rem);
        padding-top: 16px;
        padding-bottom: calc(var(--numcards) * var(--card-top-offset));
        margin-top: 12px;
        outline: none;
    }

    .card-main {
        position: sticky;
        /* Clear fixed mobile header so the stack is visible */
        top: 64px;
        padding-top: calc(var(--index) * var(--card-top-offset));
        outline: none;
    }

    .card__content {
        grid-template-areas: "img" "text";
        grid-template-columns: 1fr;
        grid-template-rows: minmax(140px, 200px) auto;
        min-height: 0;
        outline: none;
    }

    .card__content>figure {
        aspect-ratio: auto;
        min-height: 0;
        max-height: none;
        height: 100%;
    }

    .card__content>div {
        width: 100%;
        max-width: none;
        padding: 18px 18px 20px;
        place-self: stretch;
        place-items: start;
        gap: 10px;
        overflow: visible;
    }

    .card__content>div h2 {
        font-size: var(--fs-h3);
        line-height: 1.2;
    }

    .card__content>div p {
        font-size: var(--fs-body);
        line-height: 1.55;
    }
}

/* Tablet and phone: hug copy. Desktop keeps the compact --card-height tracks. */
@media (max-width: 1024px) {
    #cards {
        grid-template-rows: repeat(var(--numcards), auto);
    }

    .card__content {
        height: auto;
        max-height: none;
    }

    .card__content>div {
        overflow: visible;
    }

    .card__content>figure {
        position: relative;
        min-height: 200px;
        align-self: stretch;
    }

    .card__content>figure>img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.cityscape {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
}

.cityscape .city-intro {
    max-width: 1280px;
    margin: 0 auto 20px;
    padding: 48px 28px 0 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.cityscape .eyebrow2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-kicker);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.cityscape .eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.cityscape h2 {
    font-size: var(--fs-h2-section);
    line-height: 1.05;
    margin: 14px 0 0;
    letter-spacing: -0.02em;
    font-weight: 400;
    font-family: var(--font-sans);
}

.cityscape h2 em {
    font-style: normal;
    color: var(--accent);
}

.cityscape p.lede {
    color: var(--muted);
    max-width: 460px;
    margin: 0;
    font-size: var(--fs-lead);
    line-height: 1.65;
}

.stage {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    width: 100%;
}

.stage img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.05);
}

.stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            transparent 25%,
            transparent 70%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: pointer;
}

.hotspot .dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 4px rgba(21, 21, 21, 0.25),
        0 0 18px rgba(0, 0, 0, 0.65);
}

.hotspot .ring,
.hotspot .ring2 {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.7;
    animation: ripple 2.4s ease-out infinite;
}

.hotspot .ring2 {
    animation-delay: 1.2s;
}

@keyframes ripple {
    0% {
        transform: scale(0.6);
        opacity: 0.85;
    }

    80% {
        transform: scale(2.6);
        opacity: 0;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Tooltip */
.tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 18px);
    transform: translate(-50%, 8px);
    width: 170px;
    background: rgba(15, 18, 24, 0.92);
    color: var(--ink);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

:root[data-theme="light"] .tip {
    background: rgba(255, 255, 255, 0.95);
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hotspot:hover .tip,
.hotspot:focus-within .tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(15, 18, 24, 0.92);
}

:root[data-theme="light"] .tip::after {
    border-top-color: rgba(255, 255, 255, 0.95);
}

.tip .thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--pure-text) center/contain no-repeat;
    margin-bottom: 10px;
}

.tip .code {
    font-size: var(--fs-caption);
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
}

.tip .name {
    font-size: var(--fs-kicker);
    line-height: 1.35;
    margin: 4px 0 0;
    color: var(--pure-text);
    font-weight: 600;
}

:root[data-theme="light"] .tip .name {
    color: #111111;
}

.tip .meta {
    font-size: var(--fs-caption);
    color: var(--muted);
    margin-top: 6px;
}

/* Place tooltip above by default; flip below when near top */
.hotspot.bottom .tip {
    bottom: auto;
    top: calc(100% + 18px);
    transform: translate(-50%, -8px);
}

.hotspot.bottom:hover .tip {
    transform: translate(-50%, 0);
}

.hotspot.bottom .tip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(15, 18, 24, 0.92);
}

:root[data-theme="light"] .hotspot.bottom .tip::after {
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

/* Legend */
.legend {
    max-width: 1280px;
    margin: 22px auto 0;
    display: flex;
    gap: 18px;
    align-items: center;
    color: var(--always-white);
    font-size: var(--fs-kicker);
    flex-wrap: wrap;
    position: absolute;
    top: 20px;
    right: 50px;
}

.legend .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.legend .pill .ldot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.legend .spacer {
    flex: 1;
}

.legend .cta {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend .cta::after {
    content: "→";
    transition: transform 0.25s ease;
}

.legend .cta:hover::after {
    transform: translateX(4px);
}

@media (max-width: 990px) {
    .tip .thumb {
        display: none;
    }
}

@media (max-width: 640px) {
    .tip {
        width: 170px;
    }
}

/* ==========================================================================
   3-LEVEL RECURSIVE MEGA MENU STYLES
   ========================================================================== */
.mega-menu-inner {
    display: flex;
    height: 600px;
    max-height: 80vh;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

.mega-menu-column {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Sidebar Columns (First, Second, etc.) */
.mega-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-light);
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

:root[data-theme="light"] .mega-sidebar {
    background: rgba(0, 0, 0, 0.02);
}

.mega-sidebar.level-2 {
    background: rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .mega-sidebar.level-2 {
    background: rgba(0, 0, 0, 0.01);
}

.mega-sidebar-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.mega-sidebar-btn:hover {
    color: var(--pure-text);
    background: var(--card-bg);
}

.mega-sidebar-btn.active {
    color: var(--accent);
    background: var(--rgba-hover);
    font-weight: 600;
}

.mega-sidebar-btn svg {
    opacity: 0;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    transform: translateX(-5px);
}

.mega-sidebar-btn.active svg {
    opacity: 0.5;
    transform: translateX(0);
}

/* Product Area Column (Rightmost panel) */
.mega-products-view {
    flex: 1;
    min-width: 450px;
    padding: 24px;
    background: var(--pure-bg);
}

.mega-products-view::-webkit-scrollbar {
    width: 6px;
}

.mega-products-view::-webkit-scrollbar-track {
    background: var(--track-bg);
}

.mega-products-view::-webkit-scrollbar-thumb {
    background: var(--thumb-bg);
    border-radius: 4px;
}

/* Product Row Container */
.mega-product-row {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.mega-product-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mega-product-row-title {
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    font-weight: 600;
    color: var(--pure-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-product-row-title::after {
    content: "";
    flex-grow: 1;
}

/* Variants Grid & Mini Cards */
.mega-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.mega-variant-card {
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 3px;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-variant-card:hover {
    border-color: var(--accent) !important;
    background: var(--card-hover) !important;
    transform: translateY(-2px);
}

a.mega-variant-card:after {
    height: 0;
}

.mega-variant-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    background-color: var(--bg-2) !important;
}

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

/* Green loading line style */
.mega-variant-img-container.loading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    animation: loading-bar-pulse 1.4s infinite ease-in-out;
}

@keyframes loading-bar-pulse {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50.1% {
        transform: scaleX(1);
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.mega-variant-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--card-bg);
    padding: 6px 8px;
    border-radius: 0 0 3px 3px;
}

.mega-variant-name {
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    font-weight: 400;
    color: var(--ink) !important;
    white-space: pre-line;
    line-height: 1.25;
    text-align: left;
    text-transform: capitalize;
    letter-spacing: 0;
}

.mega-variant-code {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.mega-variant-specs {
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View All Buttons & Cards in Mega Menu */
.view-all-range-btn {
    display: block;
    width: 100%;
    padding: 8px !important;
    margin-top: 24px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.view-all-range-btn:hover {
    background: var(--accent);
    color: var(--pure-bg);
    transform: translateY(-2px);
}

.view-all-range-btn:after {
    height: 0 !important;
}

.view-all-card {
    border-color: var(--line) !important;
    background: var(--bg-2) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.view-all-card:hover {
    background: var(--card-hover) !important;
    border-color: var(--accent) !important;
}

.view-all-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.view-all-card-inner svg {
    transition: transform 0.2s ease;
}

.view-all-card:hover .view-all-card-inner svg {
    transform: translateX(4px);
}

/* Mega Menu Collapsible Accordions */
.mega-accordions-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.mega-accordion-group {
    border: none;
    background: #f1f1f1;
    overflow: hidden;
    transition: all 0.25s ease;
}

.mega-direct-products-container {
    padding: 10px 0px;
}

.mega-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: transparent;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-light);
    transition: opacity 0.2s ease;
}

.mega-accordion-header:hover {
    background: transparent;
    opacity: 0.8;
}

.mega-accordion-title {
    font-size: var(--fs-kicker);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.mega-accordion-chevron {
    color: var(--muted);
    transition: transform 0.25s ease;
}

.mega-accordion-content {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.3s cubic-bezier(0, 1, 0, 1),
        padding 0.3s ease,
        opacity 0.25s ease;
}

/* Open State */
.mega-accordion-group.open {
    border: none;
    background: transparent;
}

.mega-accordion-group.open .mega-accordion-header {
    background: #f1f1f1;
    border-bottom: 1px solid var(--border-light);
    padding: 5px 15px;
    font-weight: 400;
    font-size: var(--fs-caption);
}

.mega-accordion-group.open .mega-accordion-title {
    color: var(--ink);
}

.mega-accordion-group.open .mega-accordion-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.mega-accordion-group.open .mega-accordion-content {
    max-height: 2000px;
    padding: 10px 15px;
    opacity: 1;
    overflow-y: auto;
    transition:
        max-height 0.3s cubic-bezier(1, 0, 1, 0),
        padding 0.3s ease,
        opacity 0.25s ease;
}

/* Placeholder Logo, Metadata, and Subfolder Styling */
.mega-variant-img.placeholder-logo {
    object-fit: contain !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    background: var(--bg-2) !important;
    opacity: 0.9 !important;
    filter: grayscale(100%) !important;
}

.mega-variant-product {
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--accent);
    margin-top: 1px;
}

.mega-product-subfolder-title {
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--line);
}

.mega-product-subfolder-container {
    padding-left: 0;
    margin-bottom: 16px;
}

/* ====== Contact page ====== */
.contact-main {
    padding: var(--hero-pad-y-top) 0 calc(var(--section-y) + 16px);
    background: var(--bg);
}

.contact-wrap {
    max-width: var(--site-max, 1400px);
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) clamp(48px, 6vw, 88px) minmax(0,
            1.35fr);
    gap: 0;
    align-items: stretch;
    isolation: isolate;
    border-radius: 4px;
    overflow: hidden;
}

/* One map behind both panels — continuous crop left → right */
.contact-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #1a1a1a;
    background-image: url("../imgcontact.jpeg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Gap cuts the image so page background shows through */
.contact-grid-gap {
    position: relative;
    z-index: 2;
    background: rgba(10, 12, 10, 0.8);
    min-width: clamp(48px, 6vw, 88px);
}

.contact-info-panel,
.contact-form-panel {
    position: relative;
    z-index: 1;
    border-radius: 0;
    overflow: hidden;
    color: #fff;
    background: rgba(10, 12, 10, 0.8);
}

.contact-form-panel {
    padding: clamp(28px, 4vw, 48px);
    border: none;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.contact-form-panel .contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-panel .kicker {
    color: #8cc63f;
}

.contact-title {
    margin: 0 0 16px;
    font-size: var(--fs-h2-section);
    line-height: 1.2;
    color: #fff;
    overflow: visible;
}

.contact-title span {
    font-family: var(--font-outline);
}

.contact-lead {
    font-size: var(--fs-lead);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 clamp(24px, 3vh, 40px);
    padding-bottom: 0;
}

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

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

.contact-form label {
    font-size: var(--fs-kicker);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 16px;
    font: inherit;
    font-size: max(16px, var(--fs-body));
    font-weight: 400;
    border-radius: 4px;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8cc63f;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.contact-page .form-status.is-success {
    color: var(--accent);
}

.contact-page .form-status.is-error {
    color: #ff8a80;
}

.form-actions {
    margin-top: 8px;
}

.form-actions .btn {
    min-width: 180px;
}

.form-status {
    font-size: var(--fs-body);
    font-weight: 400;
    margin-top: 8px;
    padding-bottom: 0;
}

.form-status.is-success {
    color: var(--accent-2);
}

.form-status.is-error {
    color: #b42318;
}

.contact-info-panel {
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Contact-only card — do not share .legal-contact */
.contact-international {
    margin-top: auto;
    padding: 20px 0 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    box-sizing: border-box;
}

.contact-international p {
    margin: 0 0 10px;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-kicker);
    line-height: 1.65;
}

.contact-international p:last-child {
    margin-bottom: 0;
}

.contact-international .green-title {
    color: var(--accent);
    font-size: var(--fs-body);
    font-weight: 500;
}

.contact-international a {
    color: var(--accent)
}

.contact-international a:hover {
    text-decoration: underline;
    color: #a3d65a;
}

.contact-info-panel .info-block {
    margin-bottom: clamp(24px, 3.5vh, 40px);
}

.contact-info-panel .info-block:last-of-type {
    margin-bottom: clamp(20px, 3vh, 28px);
}

.contact-info-panel .info-label {
    font-size: var(--fs-body);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* color: #8cc63f; */
    margin-bottom: 10px;
    line-height: 1.3;
}

.contact-info-panel .info-block p {
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.55;
    color: #fff;
    padding-bottom: 0;
    margin: 0;
}

.contact-info-panel .info-block p span {
    font-size: 0.72em;
    font-weight: 500;
    vertical-align: super;
    letter-spacing: 0.04em;
}

.contact-info-panel .info-block a {
    color: #fff;
    font-weight: 400;
    transition: color 0.25s ease;
}

.contact-info-panel .info-block a:hover {
    color: #8cc63f;
}

.info-block {
    margin-bottom: clamp(24px, 3.5vh, 40px);
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: var(--fs-kicker);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1.3;
}

.info-block p {
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    padding-bottom: 0;
    margin: 0;
}

.info-block p span {
    font-size: 0.72em;
    font-weight: 500;
    vertical-align: super;
    letter-spacing: 0.04em;
}

.info-block a {
    font-weight: 400;
    transition: color 0.25s ease;
}

.info-block a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .contact-main {
        padding: var(--hero-pad-y-top) 0 calc(var(--section-y) + 16px);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid::before {
        display: none;
    }

    .contact-grid-gap {
        display: none;
    }

    .contact-info-panel,
    .contact-form-panel {
        border-radius: 4px;
        background-color: #1a1a1a;
        background-image:
            linear-gradient(160deg,
                rgba(10, 12, 10, 0.84) 0%,
                rgba(10, 12, 10, 0.58) 45%,
                rgba(10, 12, 10, 0.8) 100%),
            url("../imgcontact.jpeg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .contact-info-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        padding: clamp(22px, 4vw, 28px);
        min-height: 320px;
    }

    .contact-info-panel .info-block {
        margin-bottom: 0;
    }

    .contact-international {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
}

@media (max-width: 640px) {
    .contact-form-panel {
        padding: 22px 18px;
    }

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

.site-toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.site-toast {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.45;
    color: var(--pure-bg);
    background: var(--pure-text);
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 16px 40px rgba(17, 17, 17, .22);
    pointer-events: auto;
    animation: site-toast-in .22s ease;
}

.site-toast.is-out {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

@keyframes site-toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===========================================================
   404 & ERROR PAGES
=========================================================== */
.error-main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(120px, 16vh, 180px) 0 clamp(60px, 10vh, 100px);
}

.error-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.error-card {
    max-width: 640px;
    text-align: center;
    padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    display: inline-block;
    font-family: var(--font-outline);
    font-size: clamp(72px, 12vw, 130px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin-bottom: 16px;
}

@supports (-webkit-text-stroke: 1px black) {
    .error-code {
        color: transparent;
        -webkit-text-stroke: 1.5px var(--accent);
        filter: drop-shadow(0 0 0.12em color-mix(in srgb, var(--accent) 42%, transparent));
    }
}


.error-title {
    font-family: var(--font-sans);
    font-size: var(--fs-h2-section);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 16px;
}

.error-lead {
    font-family: var(--font-sans);
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 48ch;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 480px) {
    .error-actions {
        width: 100%;
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }
}