/* RAYERTECH — T1 Energy theme
   Industrial blueprint on white marble. Monochromatic palette,
   T1 Sans (Inter substitute) at 300/400, large 80px radii on cards,
   16px on buttons. Minimal elevation, no decorative accents.

   Home page hero uses dark fullbleed video background; inner pages
   stay on the light Cloud Chalk canvas. */

:root {
    /* Palette — T1 Energy */
    --color-onyx: #0f0e12;
    --color-white: #ffffff;
    --color-carbon: #322d2a;
    --color-chalk: #f0efe9;
    --color-steel: #8b8b8b;
    --color-whatsapp: #25d366;

    /* Semantic aliases */
    --bg: var(--color-chalk);
    --bg-soft: #f6f5ef;
    --surface: var(--color-white);
    --surface-strong: var(--color-white);
    --surface-muted: #e6e5df;
    --surface-dark: var(--color-onyx);
    --hero-bg: var(--color-chalk);
    --hero-text: var(--color-onyx);
    --hero-soft: rgba(15, 14, 18, 0.66);
    --text: var(--color-onyx);
    --text-soft: var(--color-carbon);
    --text-muted: var(--color-steel);
    --border: rgba(50, 45, 42, 0.14);
    --border-strong: rgba(50, 45, 42, 0.28);
    --hairline: rgba(255, 255, 255, 0.18);
    --primary: var(--color-onyx);
    --accent: var(--color-steel);

    /* Layout */
    --max-width: 1240px;
    --section-gap: 48px;

    /* Radii */
    --radius-element: 6px;
    --radius-button: 8px;
    --radius-card: 12px;
    --radius-card-text: 14px; /* for cards whose text is near the corners */
    --radius-card-lg: 18px;   /* for image-only or banner-style cards */
    --radius-pill: 100px;

    /* Type */
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(15, 14, 18, 0.04), 0 8px 24px rgba(15, 14, 18, 0.06);
    --shadow-md: 0 1px 2px rgba(15, 14, 18, 0.05), 0 16px 48px rgba(15, 14, 18, 0.10);
    --shadow-lg: 0 2px 4px rgba(15, 14, 18, 0.06), 0 32px 72px rgba(15, 14, 18, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.01em;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(15, 14, 18, 0.14);
}

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

a {
    color: inherit;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

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

section[id],
footer[id] {
    scroll-margin-top: 110px;
}

/* ─────────── Header (floating, transparent strip) ─────────── */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    padding-top: 20px;
    pointer-events: none;
}

.site-header::before {
    display: none;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
}

.header-shell > * {
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 14px;
    border-radius: var(--radius-card);
    background: rgba(15, 14, 18, 0.06);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    text-decoration: none;
    color: var(--text);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.brand-logo {
    width: auto;
    height: 42px;
    max-width: 100%;
    filter: none;
}

.brand-mark {
    display: grid;
    gap: 3px;
}

.brand-mark strong {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.brand-mark span {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px 0 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    background: rgba(15, 14, 18, 0.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(15, 14, 18, 0.12);
}

.menu-toggle svg {
    width: 18px;
    height: 18px;
}

.menu-toggle__close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
    display: inline;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: rgba(15, 14, 18, 0.08);
    border: 1px solid var(--border);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.lang-switch a.is-active {
    background: var(--color-white);
    color: var(--color-onyx);
    box-shadow: 0 1px 2px rgba(15, 14, 18, 0.08), 0 2px 6px rgba(15, 14, 18, 0.06);
}

/* ─────────── Header (dark scope — home page only) ─────────── */

body.is-home .brand {
    background: rgba(15, 14, 18, 0.32);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
}

body.is-home .brand-logo {
    filter: brightness(0) invert(1);
}

body.is-home .brand-mark span {
    color: rgba(255, 255, 255, 0.62);
}

body.is-home .menu-toggle {
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--color-white);
    background: rgba(15, 14, 18, 0.32);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

body.is-home .lang-switch {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

body.is-home .lang-switch a {
    color: rgba(255, 255, 255, 0.78);
}

body.is-home .lang-switch a.is-active {
    background: var(--color-white);
    color: var(--color-onyx);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.14);
}

/* Scrolled state — header gets denser when leaving hero */
body.is-home.is-scrolled .brand {
    background: rgba(15, 14, 18, 0.6);
    border-color: rgba(255, 255, 255, 0.18);
}

body.is-home.is-scrolled .menu-toggle {
    background: rgba(15, 14, 18, 0.6);
}

.mobile-thumb-bar {
    display: none;
}

/* ─────────── Eyebrow ─────────── */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: currentColor;
    flex: 0 0 auto;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

/* ─────────── Hero (main page) — dark fullbleed with video ─────────── */

.hero {
    position: relative;
    min-height: 100svh;
    padding: 0;
    background: var(--color-onyx);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.55) brightness(0.55) contrast(1.05) saturate(0.85);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(15, 14, 18, 0.55) 0%, rgba(15, 14, 18, 0.30) 22%, rgba(15, 14, 18, 0.40) 50%, rgba(15, 14, 18, 0.94) 100%),
        radial-gradient(ellipse 100% 85% at 20% 100%, rgba(15, 14, 18, 0.85) 0%, rgba(15, 14, 18, 0) 60%);
    z-index: 0;
}

.hero-fade {
    display: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 40px;
    min-height: 100svh;
    padding-bottom: 64px;
    padding-top: 140px;
}

.hero-gallery {
    display: none;
}

.hero-copy {
    display: block;
    max-width: 820px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hero h1 {
    margin: 0;
    max-width: 14ch;
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hero-contact-strip,
.hero-actions {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.section-heading h2,
.capability-card h3,
.value-card h3,
.format-card h3,
.process-card h3,
.partner-card h3,
.certificate-card h3,
.cta-banner h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.footer-col h4 {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
}

.hero-lead {
    margin: 20px 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.4;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    align-items: center;
    gap: 12px;
}

.hero-actions .btn {
    padding: 16px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ─────────── Buttons ─────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

/* Default (on light surfaces) */
.btn-primary {
    background: var(--color-onyx);
    color: var(--color-white);
    border-color: var(--color-onyx);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-carbon);
    border-color: var(--color-carbon);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-onyx);
    border-color: var(--color-carbon);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--color-onyx);
    color: var(--color-white);
}

.btn-accent {
    background: rgba(139, 139, 139, 0.5);
    color: var(--color-white);
    border-color: transparent;
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: var(--color-onyx);
    color: var(--color-white);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-onyx);
    border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #1fbf5b;
    border-color: #1fbf5b;
    color: var(--color-onyx);
}

.btn-outline {
    background: transparent;
    color: var(--color-onyx);
    border-color: var(--color-onyx);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--color-onyx);
    color: var(--color-white);
}

/* Buttons on dark surfaces (hero on home, cta-banner, detail-hero) */
.hero .btn-primary,
.cta-banner .btn-primary,
.detail-hero .btn-primary {
    background: var(--color-white);
    color: var(--color-onyx);
    border-color: var(--color-white);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible,
.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus-visible,
.detail-hero .btn-primary:hover,
.detail-hero .btn-primary:focus-visible {
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-onyx);
}

.hero .btn-secondary,
.cta-banner .btn-secondary,
.detail-hero .btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible,
.cta-banner .btn-secondary:hover,
.cta-banner .btn-secondary:focus-visible,
.detail-hero .btn-secondary:hover,
.detail-hero .btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero .btn-accent,
.cta-banner .btn-accent {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border-color: transparent;
}

.hero .btn-accent:hover,
.hero .btn-accent:focus-visible,
.cta-banner .btn-accent:hover,
.cta-banner .btn-accent:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.hero .btn-outline,
.cta-banner .btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible,
.cta-banner .btn-outline:hover,
.cta-banner .btn-outline:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
}

/* ─────────── Hero — glass tiles ─────────── */

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

.hero-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 168px;
    padding: 22px 60px 22px 22px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: var(--color-white);
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-tile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-tile__num {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
}

.hero-tile__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--color-white);
    text-wrap: balance;
}

.hero-tile__arrow {
    position: absolute;
    right: 22px;
    bottom: 20px;
    font-size: 1.15rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

.hero-tile:hover,
.hero-tile:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    outline: none;
}

.hero-tile:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.hero-tile:hover .hero-tile__arrow,
.hero-tile:focus-visible .hero-tile__arrow {
    color: var(--color-white);
    transform: translateX(4px);
}

/* Reveal stagger — tiles appear one after another */
.hero-tiles > [data-reveal]:nth-child(2) {
    transition-delay: 90ms;
}

.hero-tiles > [data-reveal]:nth-child(3) {
    transition-delay: 180ms;
}

/* ─────────── Hero — contact strip ─────────── */

.hero-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.hero-contact-strip a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.hero-contact-strip a:hover,
.hero-contact-strip a:focus-visible {
    opacity: 0.72;
}

/* ─────────── Hero — gallery (slider) — hidden in T1 layout, kept in DOM for later ─────────── */

.hero-slider {
    position: relative;
    min-height: 620px;
    height: 100%;
    border-radius: var(--radius-card-lg);
    overflow: hidden;
    background: var(--color-onyx);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    margin: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s var(--ease), transform 4.6s var(--ease);
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 14, 18, 0) 50%, rgba(15, 14, 18, 0.42) 100%);
}

.hero-slider__footer {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: auto;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: calc(100% - 40px);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(139, 139, 139, 0.5);
    border: 0;
    backdrop-filter: blur(14px);
}

.hero-slider__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
    background: rgba(255, 255, 255, 0.7);
}

.hero-slider__dot.is-active {
    width: 28px;
    background: var(--color-white);
}

/* ─────────── Sections ─────────── */

.section {
    padding-top: 96px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin-top: 14px;
    max-width: 28ch;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.1;
    color: var(--text);
}

.section-heading p {
    margin: 0;
    max-width: 36rem;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.4;
}

/* ─────────── Direction cards (3-up) ─────────── */

.direction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Full-bleed for the directions/partners/certificates grids on wide screens */
@media (min-width: 1121px) {
    .direction-grid,
    .partner-grid,
    .certificate-grid {
        width: min(calc(100vw - 32px), 1680px);
        max-width: none;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

.direction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    overflow: hidden;
    border-radius: var(--radius-card-text);
    border: 0;
    box-shadow: var(--shadow-md);
    color: var(--color-white);
    text-decoration: none;
    background: var(--color-onyx);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.direction-card:hover,
.direction-card:focus-visible {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.direction-card__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.direction-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(15, 14, 18, 0) 32%, rgba(15, 14, 18, 0.78) 100%);
}

.direction-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease), filter 0.5s var(--ease);
    filter: brightness(0.78);
}

.direction-card__media--supply {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--color-onyx);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
    justify-items: stretch;
    gap: 6px 8px;
    padding: 18px 18px 22px;
}

/* Supply card: no photo overlay needed over the logo grid */
.direction-card:has(.direction-card__media--supply) .direction-card__overlay {
    display: none;
}

.direction-card__body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    padding: 28px 32px 30px;
    text-shadow: none;
}

.direction-card__kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.direction-card__kicker::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: currentColor;
    flex: 0 0 auto;
}

.direction-card__copy {
    margin-top: 16px;
}

.direction-card h3 {
    margin: 0;
    min-height: 2.2em;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 300;
    letter-spacing: -0.005em;
    line-height: 1.08;
    color: var(--color-white);
}

.direction-card p {
    margin: 14px 0 0;
    max-width: 28rem;
    min-height: 7em;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.4;
    text-wrap: pretty;
}

.direction-card .inline-link {
    margin-top: 18px;
    color: var(--color-white);
}

.direction-card:hover img,
.direction-card:focus-visible img {
    transform: scale(1.06);
    filter: brightness(0.92);
}

.direction-card__logo {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    box-shadow: none;
    transform: none;
}

.direction-card__logo img {
    max-width: 92%;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: opacity 0.45s var(--ease);
}

/* RAYERTECH brand mark closes the grid; sits without a chip and slightly larger */
.direction-card__logo--brand {
    background: transparent;
}

.direction-card__logo--brand img {
    max-width: 78%;
    max-height: 52px;
    opacity: 0.92;
    filter: brightness(0) invert(1);
}

/* Compact wordmark PNGs (cisco, huawei, dell, microsoft, hikvision, enviko)
   carry a lot of internal whitespace, so the chip image renders smaller than
   wider wordmarks. Bump the constraints so they read at the same weight. */
.direction-card__logo--xl img {
    max-width: 100%;
    max-height: 64px;
}

.direction-card:hover .direction-card__logo img,
.direction-card:focus-visible .direction-card__logo img {
    transform: none;
    opacity: 1;
}

/* ─────────── Inline link ─────────── */

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.inline-link::after {
    content: "→";
    color: inherit;
    transition: transform 0.25s ease;
}

.capability-card:hover .inline-link::after,
.capability-card:focus-visible .inline-link::after,
.direction-card:hover .inline-link::after,
.direction-card:focus-visible .inline-link::after {
    transform: translateX(4px);
}

/* ─────────── Partner & Certificate cards ─────────── */

.partner-grid,
.certificate-grid {
    display: grid;
    gap: 16px;
}

.faq-item,
.certificate-card {
    border: 1px solid var(--border);
    background: var(--color-white);
    box-shadow: none;
}

.partner-card p,
.certificate-card p {
    color: var(--text-soft);
    line-height: 1.4;
}

.footer-brand p,
.footer-col p {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.4;
}

.certificate-card h3 {
    margin: 0 0 20px;
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: -0.005em;
    color: var(--text);
}

/* Partners — flat layout, no boxes, all logos visible at once */
.partner-grid {
    grid-template-columns: 1fr;
    gap: 48px;
}

.partner-card {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.partner-card:hover {
    border-color: transparent;
    box-shadow: none;
}

.partner-card h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

.partner-card h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 20px 28px;
    border-radius: var(--radius-element);
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: background-color 0.3s var(--ease);
}

.logo-tile:hover,
.logo-tile:focus-within {
    background: rgba(15, 14, 18, 0.04);
}

.logo-tile img {
    width: auto;
    max-width: 100%;
    max-height: 84px;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) contrast(0.9);
    opacity: 0.72;
    transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.logo-tile:hover img,
.logo-tile:focus-within img {
    filter: grayscale(0) contrast(1);
    opacity: 1;
}

.logo-tile--wide img {
    max-width: 100%;
    max-height: 72px;
}

.logo-tile--mark img {
    max-width: 100%;
    max-height: 100px;
}

.logo-tile--dark img,
.logo-tile--fortinet img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78px;
    object-fit: contain;
    border-radius: 0;
    filter: invert(1) grayscale(1) contrast(0.9);
}

.logo-tile--dark:hover img,
.logo-tile--dark:focus-within img,
.logo-tile--fortinet:hover img,
.logo-tile--fortinet:focus-within img {
    filter: invert(1) grayscale(1) contrast(1);
}

.certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

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

.certificate-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius-card);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.certificate-card:hover,
.certificate-card:focus-visible {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.certificate-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-element);
    border: 1px solid var(--border);
    background: var(--color-white);
    filter: saturate(0.92);
    transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.certificate-card:hover img,
.certificate-card:focus-visible img {
    filter: saturate(1);
    transform: scale(1.02);
}

.certificate-card > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 88px;
}

.certificate-card p {
    margin: 0;
}

/* ─────────── FAQ (legacy) ─────────── */

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 0 26px;
    border-radius: var(--radius-card);
}

.faq-item summary {
    position: relative;
    padding: 22px 46px 22px 0;
    list-style: none;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 14px;
    right: 0;
    color: var(--text-soft);
    font-size: 1.7rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0 0 24px;
    max-width: 52rem;
    color: var(--text-soft);
    line-height: 1.4;
}

/* ─────────── CTA Banner ─────────── */

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    flex-wrap: wrap;
    padding: 44px;
    border-radius: var(--radius-card-text);
    background: var(--color-onyx);
    box-shadow: none;
    color: var(--color-white);
}

.cta-banner h2 {
    margin-top: 18px;
    max-width: 14ch;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--color-white);
}

.cta-banner p {
    margin: 16px 0 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.4;
}

.cta-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
}

.cta-meta a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.cta-meta a:hover,
.cta-meta a:focus-visible {
    opacity: 0.72;
}

/* ─────────── Footer ─────────── */

.footer {
    margin-top: 96px;
    padding: 64px 0 64px;
    background: var(--color-onyx);
    border-top: 0;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr repeat(3, minmax(0, 0.8fr));
    gap: 28px;
}

.footer .brand,
body.is-home .footer .brand {
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    color: var(--color-white);
}

.footer .brand-logo {
    filter: brightness(0) invert(1);
}

.footer .brand-mark span {
    color: rgba(255, 255, 255, 0.56);
}

.footer-brand p {
    max-width: 34rem;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 12px;
}

.footer-col h4 {
    color: var(--color-white);
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--color-white);
}

.footer-note {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

/* ─────────── Motion ─────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: 0ms;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger siblings inside grids */
.direction-grid > [data-reveal]:nth-child(2) {
    transition-delay: 100ms;
}
.direction-grid > [data-reveal]:nth-child(3) {
    transition-delay: 200ms;
}
.certificate-grid > [data-reveal]:nth-child(2) {
    transition-delay: 100ms;
}
.certificate-grid > [data-reveal]:nth-child(3) {
    transition-delay: 200ms;
}
.partner-grid > [data-reveal]:nth-child(2) {
    transition-delay: 120ms;
}

/* ─────────── Mega menu (T1-style hover) ─────────── */

.mega-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.mega-menu__top,
.mega-menu__body,
.mega-menu__footer {
    background: rgba(15, 14, 18, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-radius: var(--radius-card);
    color: var(--color-white);
}

.mega-menu__top {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 8px 18px;
}

.mega-menu__top-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-right: 18px;
    margin-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-white);
    text-decoration: none;
}

.mega-menu__top-brand img {
    width: auto;
    height: 28px;
    filter: brightness(0) invert(1);
}

.mega-menu__top-brand strong {
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--color-white);
}

.mega-menu__groups {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-self: start;
}

.mega-menu__group {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--radius-element);
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mega-menu__group:hover,
.mega-menu__group:focus-visible,
.mega-menu__group.is-active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.mega-menu__body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 24px 12px;
}

.mega-menu__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu__col:last-child {
    border-right: 0;
}

.mega-menu__col a,
.mega-menu__col .mega-menu__static {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 400;
    letter-spacing: -0.005em;
    transition: color 0.2s ease;
}

.mega-menu__col a:hover,
.mega-menu__col a:focus-visible {
    color: var(--color-white);
}

.mega-menu__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.mega-menu__cta {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
}

.mega-menu__cta-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-radius: var(--radius-button);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mega-menu__cta-btn:hover,
.mega-menu__cta-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
}

.mega-menu__cta-btn--primary {
    background: var(--color-white);
    color: var(--color-onyx);
    border-color: var(--color-white);
}

.mega-menu__cta-btn--primary:hover,
.mega-menu__cta-btn--primary:focus-visible {
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-onyx);
    border-color: rgba(255, 255, 255, 0.86);
}

.mega-menu__lang {
    flex: 0 0 auto;
    margin: 0;
    padding: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.mega-menu__lang a {
    color: rgba(255, 255, 255, 0.7);
}

.mega-menu__lang a.is-active {
    background: var(--color-white);
    color: var(--color-onyx);
}

.mega-menu__deck {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-left: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-white);
    color: var(--color-onyx);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.mega-menu__deck:hover,
.mega-menu__deck:focus-visible {
    background: rgba(255, 255, 255, 0.86);
}

.mega-menu__deck:active {
    transform: scale(0.97);
}

/* ── Desktop: top plate always visible; body+footer expand on hover ── */
@media (min-width: 769px) {
    .mega-menu {
        gap: 0;
    }

    .mega-menu__body,
    .mega-menu__footer {
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-top-width: 0;
        border-bottom-width: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition:
            max-height 0.34s var(--ease),
            margin-top 0.34s var(--ease),
            padding-top 0.34s var(--ease),
            padding-bottom 0.34s var(--ease),
            border-top-width 0.34s var(--ease),
            border-bottom-width 0.34s var(--ease),
            opacity 0.24s var(--ease),
            transform 0.28s var(--ease),
            visibility 0s linear 0.34s;
        pointer-events: none;
    }

    .mega-menu:hover .mega-menu__body,
    .mega-menu:focus-within .mega-menu__body {
        max-height: 360px;
        margin-top: 6px;
        padding-top: 24px;
        padding-bottom: 24px;
        border-top-width: 1px;
        border-bottom-width: 1px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition:
            max-height 0.34s var(--ease),
            margin-top 0.34s var(--ease),
            padding-top 0.34s var(--ease),
            padding-bottom 0.34s var(--ease),
            border-top-width 0.34s var(--ease),
            border-bottom-width 0.34s var(--ease),
            opacity 0.28s var(--ease) 0.05s,
            transform 0.28s var(--ease);
    }

    .mega-menu:hover .mega-menu__footer,
    .mega-menu:focus-within .mega-menu__footer {
        max-height: 96px;
        margin-top: 6px;
        padding-top: 8px;
        padding-bottom: 8px;
        border-top-width: 1px;
        border-bottom-width: 1px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition:
            max-height 0.34s var(--ease),
            margin-top 0.34s var(--ease),
            padding-top 0.34s var(--ease),
            padding-bottom 0.34s var(--ease),
            border-top-width 0.34s var(--ease),
            border-bottom-width 0.34s var(--ease),
            opacity 0.28s var(--ease) 0.09s,
            transform 0.28s var(--ease);
    }

    /* On desktop hide the header (mega-menu replaces it) and the toggle button */
    .site-header {
        display: none;
    }

    .menu-toggle {
        display: none;
    }
}

/* ── Mobile: hide mega-menu by default; click on .menu-toggle opens overlay ── */
@media (max-width: 768px) {
    .mega-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0s linear 0.32s;
        pointer-events: none;
    }

    .mega-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
    }

    .mega-menu__top-brand {
        display: none;
    }

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

/* ─────────── Responsive ─────────── */

@media (max-width: 1120px) {

    .capability-grid,
    .partner-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .direction-card {
        min-height: 380px;
    }

    .direction-card:has(.direction-card__media--supply) {
        min-height: 640px;
    }

    .direction-card__media--supply {
        grid-template-columns: repeat(3, 1fr);
        padding: 18px 14px;
        gap: 4px 6px;
    }

    .direction-card__logo {
        padding: 3px 5px;
    }

    .direction-card__logo img {
        max-height: 38px;
    }

    .direction-card__logo--xl img {
        max-height: 56px;
    }

    .hero-gallery,
    .hero-slider {
        min-height: 480px;
    }

    .hero-tile {
        min-height: 152px;
        padding: 18px 56px 18px 18px;
    }

    .hero-tile__title {
        font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    }

    .section-heading h2,
    .cta-banner h2,
    .hero h1 {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(var(--max-width), calc(100% - 24px));
    }

    .mega-menu {
        top: 14px;
        right: 14px;
        left: 14px;
    }

    .mega-menu__top {
        grid-template-columns: 1fr 1fr;
        padding: 12px 18px;
    }

    .mega-menu__deck {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 12px 20px;
    }

    .mega-menu__group {
        font-size: 1.05rem;
        padding: 12px 6px;
    }

    .mega-menu__body {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px 18px;
    }

    .mega-menu__col {
        padding: 18px 6px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        gap: 14px;
    }

    .mega-menu__col:last-child {
        border-bottom: 0;
    }

    .mega-menu__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .mega-menu__cta {
        flex-direction: column;
    }

    .mega-menu__lang {
        align-self: stretch;
        justify-content: center;
    }

    .mega-menu__lang a {
        flex: 1 1 0;
    }

    .hero {
        min-height: auto;
        padding-top: 112px;
        padding-bottom: 64px;
    }

    .hero-copy {
        padding: 24px 0;
    }

    .hero-tiles {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-tile {
        min-height: 0;
        padding: 18px 60px 18px 20px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "num title arrow";
        column-gap: 14px;
        align-items: center;
    }

    .hero-tile__num {
        grid-area: num;
    }

    .hero-tile__title {
        grid-area: title;
        font-size: 1.05rem;
    }

    .hero-tile__arrow {
        grid-area: arrow;
        position: static;
    }

    .hero-gallery,
    .hero-slider {
        min-height: 420px;
    }

    .cta-banner {
        padding: 32px;
    }

    .section {
        padding-top: 80px;
    }

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

/* ── Mobile mega-menu: solid sheet, scrollable, no horizontal overflow ── */
@media (max-width: 768px) {
    .mega-menu {
        top: calc(86px + env(safe-area-inset-top));
        right: 12px;
        bottom: calc(80px + env(safe-area-inset-bottom));
        left: 12px;
        gap: 0;
        max-height: none;
        background: rgba(15, 14, 18, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius-card);
        backdrop-filter: blur(32px) saturate(180%);
        -webkit-backdrop-filter: blur(32px) saturate(180%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
    }

    .mega-menu__top,
    .mega-menu__body,
    .mega-menu__footer {
        background: transparent;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mega-menu__top {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mega-menu__groups {
        flex-wrap: wrap;
        gap: 4px;
        min-width: 0;
        justify-self: stretch;
    }

    .mega-menu__group {
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 1rem;
    }

    .mega-menu__lang {
        align-self: stretch;
        justify-content: stretch;
    }

    .mega-menu__lang a {
        flex: 1 1 0;
    }

    .mega-menu__body {
        padding: 18px 18px;
    }

    .mega-menu__col {
        padding: 14px 6px;
    }

    .mega-menu__footer {
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.menu-open .site-header {
        z-index: 70;
    }
}

/* ─────────── Mobile thumb-bar ─────────── */

@media (max-width: 768px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .mobile-thumb-bar {
        position: fixed;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 140;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(64px, auto);
        gap: 6px;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: var(--radius-pill);
        background: rgba(240, 239, 233, 0.78);
        box-shadow:
            0 14px 38px rgba(15, 14, 18, 0.18),
            0 2px 8px rgba(15, 14, 18, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
    }

    .mobile-thumb-bar__link,
    .mobile-thumb-bar__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 48px;
        padding: 0 18px;
        border: 0;
        border-radius: var(--radius-pill);
        font-family: var(--font-body);
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.005em;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        transition:
            background-color 0.18s ease,
            color 0.18s ease,
            transform 0.12s ease,
            box-shadow 0.18s ease;
    }

    .mobile-thumb-bar__link:active,
    .mobile-thumb-bar__button:active {
        transform: scale(0.97);
    }

    .mobile-thumb-bar__link--call {
        background: var(--color-onyx);
        color: var(--color-white);
        box-shadow: 0 1px 2px rgba(15, 14, 18, 0.18);
    }

    .mobile-thumb-bar__link--call:hover,
    .mobile-thumb-bar__link--call:focus-visible {
        background: var(--color-carbon);
    }

    .mobile-thumb-bar__link--wa {
        background: var(--color-whatsapp);
        color: var(--color-onyx);
        box-shadow: 0 1px 2px rgba(37, 211, 102, 0.32);
    }

    .mobile-thumb-bar__link--wa:hover,
    .mobile-thumb-bar__link--wa:focus-visible {
        background: #1fbf5b;
    }

    .mobile-thumb-bar__button {
        padding: 0 20px;
        background: rgba(15, 14, 18, 0.06);
        color: var(--color-onyx);
    }

    .mobile-thumb-bar__button:hover,
    .mobile-thumb-bar__button:focus-visible {
        background: rgba(15, 14, 18, 0.12);
    }

    body.menu-open .mobile-thumb-bar__button {
        background: var(--color-onyx);
        color: var(--color-white);
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .container {
        width: min(var(--max-width), calc(100% - 20px));
    }

    .direction-grid,
    .partner-grid,
    .certificate-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-shell {
        min-height: 70px;
    }

    .mobile-thumb-bar {
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        left: 8px;
        padding: 5px;
        gap: 5px;
    }

    .mobile-thumb-bar__link,
    .mobile-thumb-bar__button {
        min-height: 46px;
        font-size: 0.86rem;
        padding: 0 14px;
    }

    .mobile-thumb-bar__button {
        padding: 0 14px;
    }

    .brand-mark span {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3.4rem);
        letter-spacing: -0.005em;
        line-height: 1.05;
    }

    .hero-tile {
        padding: 16px 50px 16px 16px;
    }

    .hero-tile__title {
        font-size: 1rem;
    }

    .hero-actions {
        display: none;
    }

    .cta-actions,
    .cta-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-contact-strip,
    .hero-slider__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-gallery,
    .hero-slider {
        min-height: 360px;
        border-radius: var(--radius-card);
    }

    .partner-card,
    .faq-item,
    .certificate-card,
    .cta-banner {
        border-radius: var(--radius-card);
    }

    .direction-card {
        min-height: 420px;
        border-radius: var(--radius-card);
    }

    .direction-card h3 {
        min-height: 0;
    }

    .direction-card p {
        max-width: none;
        min-height: 0;
        font-size: 0.92rem;
    }

    .direction-card__media--supply {
        grid-template-columns: repeat(4, 1fr);
        padding: 16px 12px;
        gap: 4px 6px;
    }

    .direction-card:has(.direction-card__media--supply) {
        min-height: 500px;
    }

    .direction-card__logo {
        padding: 3px;
    }

    .direction-card__logo img {
        max-height: 28px;
    }

    .direction-card__logo--xl img {
        max-height: 42px;
    }

    .hero-slider__footer {
        right: 12px;
        bottom: 12px;
        left: auto;
        flex-direction: row;
        align-items: center;
        max-width: calc(100% - 24px);
        gap: 12px;
        border-radius: var(--radius-pill);
    }

    .hero-slider__nav {
        justify-content: flex-start;
    }

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

    .partner-card {
        padding: 0;
        border-radius: 0;
    }

    .partner-card h3 {
        margin: 0 0 14px;
        padding-bottom: 12px;
    }

    .partner-grid {
        gap: 36px;
    }

    .logo-grid {
        gap: 6px;
    }

    .logo-tile {
        min-height: 96px;
        padding: 10px 10px;
    }

    .logo-tile img {
        max-height: 60px;
    }

    .logo-tile--mark img {
        max-height: 76px;
    }

    .logo-tile--wide img {
        max-height: 52px;
    }

    .logo-tile--dark img,
    .logo-tile--fortinet img {
        max-height: 56px;
    }

    .eyebrow {
        font-size: 0.68rem;
    }

    .certificate-card > div {
        min-height: 0;
    }
}

@media (max-width: 360px) {
    .mobile-thumb-bar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
        gap: 4px;
        padding: 4px;
    }

    .mobile-thumb-bar__link,
    .mobile-thumb-bar__button {
        font-size: 0.76rem;
        padding: 0 6px;
    }
}

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

    /* Skip the slide-in: start at final state so the .is-visible toggle is a no-op.
       Hover/focus transitions stay intact. */
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
