/* ═══════════════════════════════════════════════════════════════════
   MSI Mechanical Services — v2 Single-Page Stylesheet
   Built: 2026-02-22
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-dark); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── 2. Design Tokens ────────────────────────────────────────────── */
:root {
    /* Colors */
    --bg-primary: #ffffff;
    --bg-surface: #f1f3f5;
    --bg-dark: #1a1a2e;
    --bg-darker: #12121f;
    --accent: #c0392b;
    --accent-hover: #a93226;
    --accent-glow: rgba(192, 57, 43, 0.15);
    --accent-secondary: #e67e22;
    --steel: #2c3e50;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #ffffff;
    --text-light-muted: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.08);
    --success: #27ae60;
    --error: #e74c3c;

    /* Typography */
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 7rem);
    --content-max: 1200px;
    --gap: 2rem;
    --gap-sm: 1rem;
    --gap-xs: 0.5rem;
    --radius: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
}

/* ── 3. Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { max-width: 65ch; }
.label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ── 4. Layout ───────────────────────────────────────────────────── */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 2rem;
}
.section {
    padding: var(--section-pad) 0;
    position: relative;
}
.section--dark {
    background: var(--bg-dark);
    color: var(--text-light);
}
.section--light {
    background: var(--bg-surface);
    color: var(--text-primary);
}
.section--white {
    background: var(--bg-primary);
    color: var(--text-primary);
}
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}
.section__header .label {
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}
.section--dark .section__header .label {
    color: var(--accent-secondary);
}
.section__header p {
    margin: 1rem auto 0;
    color: var(--text-secondary);
    max-width: 600px;
}
.section--dark .section__header p {
    color: var(--text-light-muted);
}
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

/* ── 5. Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4),
                0 0 30px rgba(192, 57, 43, 0.2);
    transform: translateY(-1px);
}
.btn--jumbo:hover {
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.5),
                0 0 40px rgba(192, 57, 43, 0.25),
                0 0 60px rgba(192, 57, 43, 0.1);
}
.btn--jumbo {
    font-size: 1.5rem;
    padding: 1.25rem 3.5rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
}
.btn--outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: transparent;
}
.btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.btn--outline-dark {
    border: 2px solid var(--border);
    color: var(--text-primary);
    background: transparent;
}
.btn--outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── 6. Hero ─────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/hero-trucks.jpg') center/cover no-repeat;
    opacity: 0.3;
    filter: saturate(0.6);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.25) 0%, rgba(26,26,46,0.65) 100%);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}
.hero__content .label {
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    display: block;
}
.hero__content h1 {
    color: #fff;
    margin-bottom: 1.5rem;
}
.hero__content h1 span {
    color: var(--accent);
}
.hero__content p {
    color: var(--text-light-muted);
    font-size: 1.15rem;
    margin: 0 auto 2.5rem;
    max-width: 550px;
}
.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}
.hero__scroll svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255,255,255,0.4);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ── 7. Trust Bar ────────────────────────────────────────────────── */
.trust-bar {
    padding: 1.5rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}
.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.trust-bar__item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.trust-bar__logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--duration) var(--ease);
}
.trust-bar__item:hover .trust-bar__logo {
    opacity: 0.8;
}

/* Trust Bar Scrolling Banner */
.trust-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    padding: 1rem 0;
}
.trust-marquee__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}
.trust-marquee__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2.5rem;
}
.trust-marquee__item img {
    height: 36px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}
.trust-marquee__item span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    white-space: nowrap;
}
.trust-marquee__sep {
    flex-shrink: 0;
    width: 1px;
    height: 2rem;
    background: var(--text-secondary);
    opacity: 0.2;
    margin: 0 0.5rem;
}
.trust-marquee:hover .trust-marquee__track {
    animation-play-state: paused;
}

/* ── 8. Service Cards ────────────────────────────────────────────── */
.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}
.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── 9. Equipment ────────────────────────────────────────────────── */
.equipment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.equipment__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.equipment__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.equipment__content h2 {
    margin-bottom: 1rem;
}
.equipment__content p {
    color: var(--text-light-muted);
    margin-bottom: 1.5rem;
}
.equipment__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.spec-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
}
.spec-item .label {
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 0.25rem;
}
.spec-item span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ── 10. Industries ──────────────────────────────────────────────── */
.industry-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.industry-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.industry-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}
.industry-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.industry-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 auto;
}

/* ── 11. Client Logos ────────────────────────────────────────────── */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.client-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.625rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.client-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* Clients Watermark */
.clients-watermark {
    position: relative;
    overflow: hidden;
}
.clients-watermark__bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/msi-turbine.jpg') center/cover no-repeat;
    opacity: 0.12;
    filter: saturate(0.3);
}

/* Client Scrolling Banner (text-only) */
.logo-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    padding: 1.5rem 0;
}
.logo-marquee__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}
.logo-marquee__text {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary, #8a94a6);
    white-space: nowrap;
    padding: 0 1rem;
    transition: color 0.3s var(--ease);
}
.logo-marquee__text:hover {
    color: var(--accent, #c0392b);
}
.logo-marquee__sep {
    flex-shrink: 0;
    width: 1px;
    height: 1.4rem;
    background: var(--text-secondary, #64748b);
    opacity: 0.35;
    margin: 0 1rem;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    color: transparent;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-marquee:hover .logo-marquee__track {
    animation-play-state: paused;
}
/* Solid band variant — readable over watermark backgrounds */
.logo-marquee--solid {
    position: relative;
    z-index: 2;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}
.logo-marquee--solid .logo-marquee__text {
    color: rgba(255, 255, 255, 0.7);
}
.logo-marquee--solid .logo-marquee__text:hover {
    color: var(--accent);
}
.logo-marquee--solid .logo-marquee__sep {
    background: rgba(255, 255, 255, 0.2);
}

/* ── 12. About / Team ────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    overflow: hidden;
}
.about__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}
.about__right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.about__story h2 {
    margin-bottom: 1rem;
}
.about__story p {
    color: var(--text-light-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.about__story p:last-child {
    margin-bottom: 0;
}
.team-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.team-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}
.team-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.team-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}
.team-card__info h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.team-card__info p {
    font-size: 0.85rem;
    color: var(--text-light-muted);
    margin: 0;
}

/* ── 13. Certifications ──────────────────────────────────────────── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    max-width: 900px;
    margin: 0 auto;
}
.cert-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.cert-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.cert-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}
.cert-card__logo {
    margin: 0 auto 1rem;
}
.cert-card__logo img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: 0 auto;
}
.cert-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.cert-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 auto;
}

/* ── 13b. Cert Scrolling Banner ─────────────────────────────────── */
.cert-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    padding: 1.5rem 0;
}
.cert-marquee__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}
.cert-marquee__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem;
}
.cert-marquee__item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}
.cert-marquee__item span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    white-space: nowrap;
}
.cert-marquee__sep {
    flex-shrink: 0;
    width: 1px;
    height: 2rem;
    background: var(--text-secondary);
    opacity: 0.25;
    margin: 0 0.5rem;
}
.cert-marquee:hover .cert-marquee__track {
    animation-play-state: paused;
}

/* ── 13c. Contact Watermark ────────────────────────────────────── */
.contact-watermark {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(6rem, 14vw, 12rem);
}
.contact-watermark__bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/msi-night-industrial.jpg') center/cover no-repeat;
    opacity: 0.15;
    filter: saturate(0.4);
}

/* ── 14. Contact Form ────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: border-color var(--duration) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
select.form-input option { background: var(--bg-dark); color: var(--text-light); }
.form-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}
.form-status--success {
    display: block;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: var(--success);
}
.form-status--error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--error);
}

/* Contact sidebar */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info__icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.contact-info__text .label {
    color: var(--text-light-muted);
    display: block;
    margin-bottom: 0.25rem;
}
.contact-info__text a,
.contact-info__text span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}
.contact-info__text a:hover { color: var(--accent); }
.contact-info__divider {
    border: none;
    border-top: 1px solid var(--border-dark);
}

/* ── 15. Footer ──────────────────────────────────────────────────── */
.footer {
    background: var(--bg-darker);
    color: var(--text-light-muted);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-dark);
}
.footer p {
    font-size: 0.85rem;
    margin: 0 auto;
}
.footer a { color: var(--text-light-muted); }
.footer a:hover { color: var(--accent); }

/* ── 16. Floating Sidenav ────────────────────────────────────────── */
.sidenav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}
.sidenav__item {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
}
.sidenav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}
.sidenav__item--active .sidenav__dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.4);
}
.sidenav__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(26, 26, 46, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.2s var(--ease);
    pointer-events: none;
    white-space: nowrap;
    margin-right: 10px;
}
.sidenav__item:hover .sidenav__label {
    opacity: 1;
    transform: translateX(0);
}

/* Active section label auto-fades in */
.sidenav__item--active .sidenav__label {
    opacity: 1;
    transform: translateX(0);
}

/* Adapt dot color on light sections */
.sidenav--light .sidenav__dot {
    background: rgba(26, 26, 46, 0.2);
}
.sidenav--light .sidenav__item--active .sidenav__dot {
    background: var(--accent);
    border-color: rgba(26, 26, 46, 0.15);
}

/* ── 17. Top Actions Container ──────────────────────────────────── */
.top-actions {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

/* When inside .top-actions, children are flow items, not fixed */
.top-actions > .dark-toggle,
.top-actions > .portal-login-link {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0;
}

/* Portal Login Link (standalone fallback keeps fixed) */
.portal-login-link {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--duration) var(--ease);
}
.portal-login-link:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}
.portal-login-link svg {
    opacity: 0.8;
}

/* ── 18. Scroll Reveal ───────────────────────────────────────────── */
/* Pure CSS fallback: auto-reveal after 3s if JS never adds --visible.
   Uses animation-fill-mode:forwards to hold the final visible state.
   If JS works normally, the --visible class cancels the animation. */
@keyframes reveal-fallback {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-stagger-fallback {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes reveal-label-fallback {
    to { opacity: 1; transform: translateX(0); filter: none; }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    animation: reveal-fallback 0.6s ease 3s forwards;
}
.reveal--visible {
    opacity: 1;
    transform: none;
    animation: none; /* JS reveal worked — cancel CSS fallback */
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    animation: reveal-stagger-fallback 0.5s ease 3.5s forwards;
}
.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger--visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger--visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger--visible > *:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger--visible > *:nth-child(10) { transition-delay: 720ms; }
.reveal-stagger--visible > *:nth-child(11) { transition-delay: 800ms; }
.reveal-stagger--visible > * {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* JS stagger worked — cancel CSS fallback */
}

/* ── 19. Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── 20. Phase 1 — Ultra-Pro Animations ──────────────────────────── */

/* --- Grain Texture Overlay (hero) ---
   SVG feTurbulence noise → subtle film-grain. Kills "flat template" look.
   Applied via ::after so it layers above image/overlay but below content. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Animated Gradient (hero background) ---
   Slowly shifting deep-tone gradient behind the truck image.
   Visible through the 0.3-opacity hero__bg and overlay. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #2c3e50, #0f3460);
    background-size: 400% 400%;
    animation: heroGradientShift 15s ease infinite;
}
@keyframes heroGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Icon Rotation on Card Hover ---
   Service + industry icons rotate 15° and scale up on hover.
   Industrial/mechanical feel — gears turning. */
.service-card__icon svg,
.industry-card__icon svg {
    transition: transform var(--duration) var(--ease);
}
.service-card:hover .service-card__icon svg {
    transform: rotate(15deg) scale(1.1);
}
.industry-card:hover .industry-card__icon svg {
    transform: rotate(-12deg) scale(1.1);
}

/* --- Sidenav Active Dot Pulse ---
   Soft glow pulse on the active section dot. */
.sidenav__item--active .sidenav__dot {
    animation: sidenavPulse 2s ease-in-out infinite;
}
@keyframes sidenavPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(192, 57, 43, 0.4); }
    50%      { box-shadow: 0 0 18px rgba(192, 57, 43, 0.7), 0 0 6px rgba(192, 57, 43, 0.3); }
}

/* --- Number Counter (scroll-triggered) ---
   Animated elements get a brief blur-up entrance. */
.spec-item [data-count-to] {
    transition: opacity 0.3s var(--ease);
}

/* --- Spotlight Card Border (mouse-tracking glow) ---
   Radial gradient follows cursor along card edges. Stripe-style. */
.service-card,
.industry-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    background: radial-gradient(
        350px circle at var(--mouse-x) var(--mouse-y),
        rgba(192, 57, 43, 0.08),
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
}
.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    background: radial-gradient(
        350px circle at var(--mouse-x) var(--mouse-y),
        rgba(192, 57, 43, 0.08),
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
}
.service-card:hover::after,
.industry-card:hover::before {
    opacity: 1;
}
/* Ensure card content sits above spotlight */
.service-card__icon,
.service-card h3,
.service-card p,
.industry-card__icon,
.industry-card h3,
.industry-card p {
    position: relative;
    z-index: 1;
}

/* --- 3D Card Tilt ---
   Cards rotate toward cursor via JS-applied inline transforms.
   perspective() set by JS on mousemove.
   Note: preserve-3d + will-change removed — caused blurry text on Windows
   due to GPU compositing at non-integer pixel positions. */
.service-card,
.industry-card {
    transform-style: flat;
}

/* --- Parallax Hero ---
   hero__bg translateY managed by JS scroll handler.
   will-change hint for GPU compositing. */
.hero__bg {
    will-change: transform;
}

/* --- Magnetic CTA Button ---
   .btn--jumbo gets JS-driven translate. Needs smooth snap-back. */
.btn--jumbo {
    will-change: transform;
    transition: all var(--duration) var(--ease),
                transform 0.15s var(--ease);
}
.btn--jumbo.magnetic-snapback {
    transition: all var(--duration) var(--ease),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Enhanced Stagger Reveals ---
   Upgraded from simple translateY to scale + translateY for more cinematic feel.
   Section labels get a slide-from-left. */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    animation: reveal-stagger-fallback 0.5s ease 3.5s forwards;
}
.reveal-stagger--visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: none; /* JS stagger worked — cancel CSS fallback */
}

/* Section header labels: slide from left instead of fade up */
.section__header .label {
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal .label,
.reveal.section__header .label {
    opacity: 0;
    transform: translateX(-20px);
    animation: reveal-label-fallback 0.5s ease 3.2s forwards;
}
.reveal--visible .label,
.reveal--visible.section__header .label {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

/* Section header paragraphs: CSS fallback ensures text is always readable
   even when GSAP fails to load or execute. No blur — ever. */
.reveal p,
.reveal.section__header p {
    animation: reveal-label-fallback 0.5s ease 3.4s forwards;
}

/* ── 21. Phase 3 — GSAP + Lenis Premium ──────────────────────────── */

/* Hero character animation — individual chars need inline-block for transforms */
.hero-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Equipment pin: image overflow during zoom */
.equipment__image {
    will-change: transform;
}

/* Disable CSS reveal transitions on elements GSAP controls
   (GSAP sets inline styles which override, but this prevents flash) */
.gsap-animated {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* Scroll progress bar — rendered by v2-premium.js */
.scroll-progress {
    will-change: width;
}

/* ── 22. Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .equipment { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--6 { grid-template-columns: repeat(3, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-pad: 3rem; }
    .container { padding: 0 1.25rem; }

    /* Hide sidenav on mobile */
    .sidenav { display: none; }

    .grid--2,
    .grid--3,
    .grid--6 { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }

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

    .hero { min-height: 85vh; }
    .hero__content h1 { font-size: 2rem; }

    .trust-bar__inner {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-marquee__text { font-size: 0.95rem; padding: 0 0.75rem; }

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

@media (max-width: 480px) {
    :root { --section-pad: 2.5rem; }
    .container { padding: 0 1rem; }
    .hero__buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; padding: 0.75rem 1.5rem; min-height: 44px; }
    .btn--jumbo { padding: 1rem 2rem; font-size: 1.25rem; }
    .client-badge { font-size: 0.65rem; padding: 0.5rem 1rem; }

    /* Top actions — compact on mobile */
    .top-actions {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    .portal-login-link {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    .portal-login-link span { display: none; }
    .portal-login-link svg { width: 18px; height: 18px; }

    /* Marquee tighten */
    .logo-marquee__text { font-size: 0.85rem; padding: 0 0.5rem; }
    .trust-marquee__item { padding: 0 1.25rem; }

    /* Hide hero scroll indicator on phone */
    .hero__scroll { display: none; }
}
