/* ═══════════════════════════════════════════════════
   SOLARARC — Full-Scroll Cinematic Solar Website
   Animation IS the website. Content synced to frames.
   ═══════════════════════════════════════════════════ */

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

:root {
    --bg: #0a0a0a;
    --text: #f5f5f7;
    --text-dim: rgba(245, 245, 247, 0.55);
    --text-muted: rgba(245, 245, 247, 0.3);
    --accent: #e8a910;
    --accent-warm: #f5c842;
    --accent-glow: rgba(232, 169, 16, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --vh100: 100vh;
}

@supports (height: 100dvh) {
    :root { --vh100: 100dvh; }
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* ─── NAVIGATION ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: env(safe-area-inset-top, 0px) clamp(20px, 4vw, 60px) 0;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover { color: var(--text); }

.nav-link-cta {
    color: var(--bg);
    background: var(--text);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link-cta:hover {
    background: var(--accent-warm);
    color: var(--bg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    position: absolute;
    left: 11px;
    transition: all 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }

.nav-toggle.active span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle.active span:last-child { top: 21px; transform: rotate(-45deg); }

/* ─── SCROLL CONTAINER ─── */
.scroll-container {
    position: relative;
    /* Height = enough scroll distance for all slides */
    /* Each slide gets ~12.5% of scroll, 8 slides ≈ 100% */
    height: 1350vh;
    touch-action: pan-y;
}

/* ─── STICKY CANVAS ─── */
.canvas-wrap {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--vh100);
    z-index: 1;
    overflow: hidden;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.canvas-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.15s linear;
}

/* ─── SLIDES (Content overlays) ─── */
.slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--vh100);
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: none; /* JS controls opacity directly for smoothness */
}

.slide-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(32px, 5vw, 80px);
}

/* Alignment variants */
.slide-left { text-align: left; }
.slide-right { text-align: left; display: flex; flex-direction: column; align-items: flex-end; }
.slide-right > * { max-width: 600px; }
.slide-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ─── SLIDE TYPOGRAPHY ─── */
.slide-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 18px;
}

.slide-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    max-width: 800px;
}

.text-accent {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 650px;
}

.slide-title-large {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.slide-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-dim);
    font-weight: 400;
}

.slide-body {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 28px;
}

.slide-body-center {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── LANDING HERO LAYOUT ─── */
.slide-landing-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: var(--vh100);
    padding-top: 90px;
    padding-bottom: 80px;
    position: relative;
    gap: 40px;
}

.landing-left {
    max-width: 750px;
}

.landing-right {
    opacity: 0;
    transform: translateX(24px);
    animation: landingSlideIn 0.9s var(--ease) 1.2s forwards;
}

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

/* Staggered entrance animations */
.landing-label {
    opacity: 0;
    transform: translateY(24px);
    animation: landingFadeIn 0.9s var(--ease) 0.3s forwards;
}

.landing-headline {
    opacity: 0;
    transform: translateY(32px);
    animation: landingFadeIn 1s var(--ease) 0.5s forwards;
}

.landing-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeIn 0.8s var(--ease) 0.8s forwards;
    margin-bottom: 32px;
}

.landing-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeIn 0.8s var(--ease) 1.0s forwards;
}

@keyframes landingFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── VERTICAL STATS (Right Column) ─── */
.stats-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 180px;
}

.stat-v {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 12px 0;
}

.stat-v-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
}

.stat-v-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.stat-v-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* ─── SCROLL HINT ─── */
.hero-scroll-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: landingFadeIn 0.6s var(--ease) 1.6s forwards;
    grid-column: 1 / -1;
}

.scroll-line-anim {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.45), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

.hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── SERVICES MINI GRID ─── */
.slide-grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 28px;
    max-width: 600px;
}

.mini-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 16px;
}

.mini-card h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.mini-card p {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.45;
}

/* ─── MODEL BADGE ─── */
.model-badge-inline {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.model-badge-accent {
    background: var(--accent-glow);
    border-color: rgba(232, 169, 16, 0.18);
    color: var(--accent-warm);
}

/* ─── FEATURE LIST ─── */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.feat-arrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ─── LIFECYCLE STRIP ─── */
.lifecycle-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 40px;
    flex-wrap: nowrap;
    justify-content: center;
}

.lc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 clamp(8px, 1.5vw, 20px);
}

.lc-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(232, 169, 16, 0.2);
}

.lc-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: normal;
    text-align: center;
    max-width: 64px;
}

.lc-divider {
    width: clamp(16px, 3vw, 40px);
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── INDUSTRY CHIPS ─── */
.industry-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    max-width: 520px;
}

.ind-chip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 16px;
}

.ind-chip svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.ind-chip h5 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.ind-chip p {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* ─── IMPACT ROW ─── */
.impact-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    width: 100%;
}

.impact-block {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.impact-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
}

.impact-suffix {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--accent);
}

.impact-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* ─── CTA BUTTONS ─── */
.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-warm);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 169, 16, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
}

/* ─── PROGRESS BAR ─── */
.progress-track {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.04);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    will-change: width;
}

/* ─── FOOTER ─── */
.footer {
    background: #0d0d0d;
    border-top: 1px solid var(--border);
    padding: 60px clamp(24px, 5vw, 80px) 36px;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 14px;
}

.footer-contact-info {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact-info a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover { color: var(--accent-warm); }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 8px 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--text); }

/* ─── PARTNER LOGO GRID ─── */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 1px gap + container background = hairline dividers between cells */
    gap: 1px;
    margin-top: 32px;
    max-width: 720px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.partner-col-header {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-warm);
    text-align: center;
    padding: 12px 8px 10px;
    background: rgba(0, 0, 0, 0.35);
}

.partner-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    background: rgba(0, 0, 0, 0.18);
    min-height: 80px;
    transition: background 0.3s ease;
}

.partner-logo-cell:hover {
    background: rgba(232, 169, 16, 0.04);
}

.partner-logo-img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo-cell:hover .partner-logo-img {
    opacity: 1;
}

/* Shown via onerror when a logo CDN can't serve the image */
.partner-logo-fallback {
    display: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    text-align: center;
}

/* Always-visible wordmark — brand color via CSS custom property set inline */
.partner-wordmark {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-color, rgba(255, 255, 255, 0.8));
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo-cell:hover .partner-wordmark {
    opacity: 1;
}

/* ─── ASSESSMENT MODAL ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #131313;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 36px 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(24px);
    transition: transform 0.35s var(--ease);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    border-radius: 50%;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }

.modal-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.modal-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.55;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.form-label .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.55;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(245,245,247,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.file-upload-label:hover {
    border-color: var(--accent);
    color: var(--text-dim);
}

.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    font-size: 0.78rem;
    text-align: center;
    margin-top: 8px;
    min-height: 1.2em;
    line-height: 1.4;
}

.form-status-ok  { color: #4ade80; }
.form-status-err { color: #f87171; }

.form-submit {
    width: 100%;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    padding: 13px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.form-submit:hover {
    background: var(--accent-warm);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── WHATSAPP FLOAT BUTTON ─── */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    display: block;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .impact-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .lifecycle-strip {
        flex-wrap: wrap;
        gap: 8px;
    }

    .lc-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    /* ── SCROLL DISTANCE — 1350vh is 13.5 screen heights on desktop.
       On mobile (667px screen) that's ~9000px of scrolling. Halving it
       keeps the slide timing fractions identical but cuts scroll effort. ── */
    .scroll-container { height: 1115vh; }

    /* ── NAV ── */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--vh100);
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-link { font-size: 1.15rem; padding: 12px 24px; }
    .nav-toggle { display: block; z-index: 1001; }

    /* ── TYPOGRAPHY SCALE-DOWN ── */
    .slide-headline { font-size: clamp(1.8rem, 7.5vw, 2.8rem); }
    .slide-title { font-size: clamp(1.45rem, 5.5vw, 2rem); margin-bottom: 12px; }
    .slide-title-large { font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
    .slide-label { margin-bottom: 10px; }
    .slide-body { margin-bottom: 16px; }

    /* ── SLIDE ALIGNMENT — block layout on mobile, not flex-end ── */
    .slide-right {
        display: block;
        justify-content: flex-start;
        margin-left: 0;
    }
    .slide-right > * { max-width: 100%; }

    /* ── LANDING HERO ── */
    .slide-landing-layout {
        grid-template-columns: 1fr;
        padding-top: 80px;
        padding-bottom: 60px;
        gap: 20px;
        overflow: hidden;
    }
    .landing-right { justify-self: flex-start; }
    .stats-vertical {
        flex-direction: row;
        align-items: center;
        min-width: auto;
    }
    .stat-v { align-items: center; padding: 8px 12px; }
    .stat-v-divider { width: 1px; height: 28px; }
    .stat-v-label { white-space: normal; }
    .landing-cta-row { flex-direction: column; align-items: stretch; }

    /* ── SERVICES GRID ── */
    .slide-grid-services {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        margin-top: 16px;
        gap: 8px;
    }

    /* ── FEATURE LIST ── */
    .feature-list { gap: 8px; }
    .feature-list li { font-size: 0.85rem; }

    /* ── LIFECYCLE — 3-column grid instead of flex row ── */
    .lifecycle-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
        width: 100%;       /* must fill flex parent so 1fr distributes real space */
        flex-wrap: unset;
        justify-content: unset;
    }
    .lc-step { padding: 8px 0; }
    .lc-name { max-width: 100%; }   /* unlock from 64px — column width now controls sizing */
    .lc-divider { display: none; }

    /* ── INDUSTRIES ── */
    .industry-chips {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin-top: 16px;
    }

    /* ── IMPACT ── */
    .impact-row {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        margin-top: 20px;
        gap: 12px;
    }
    .impact-block { padding: 20px 12px; }

    /* ── CTA BUTTONS ── */
    .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .cta-row .btn { width: 100%; }

    /* ── FOOTER ── */
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* ── WHATSAPP BUTTON ── */
    .whatsapp-btn { bottom: 20px; right: 16px; width: 52px; height: 52px; }
}

@media (max-width: 768px) and (max-height: 600px) {
    .landing-right { display: none; }
}

@media (max-width: 480px) {
    .slide-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .slide-grid-services {
        grid-template-columns: 1fr;
    }

    .impact-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .impact-block {
        padding: 16px 12px;
    }

    .lifecycle-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
    }

    .partner-logo-cell {
        padding: 16px 8px;
        min-height: 64px;
    }

    .partner-logo-img {
        height: 36px;
        max-width: 100px;
    }

    .partner-logo-fallback {
        font-size: 0.7rem;
    }

    .partner-col-header {
        font-size: 0.5rem;
        padding: 10px 6px 8px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .modal-box {
        padding: 20px 16px 16px;
    }

    .modal-title {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .modal-sub {
        font-size: 0.76rem;
        margin-bottom: 14px;
    }

    .form-group {
        margin-bottom: 9px;
    }

    .form-label {
        margin-bottom: 5px;
    }

    .form-input,
    .form-textarea {
        padding: 9px 12px;
    }

    .form-textarea {
        min-height: 68px;
    }
}
