/* ============================================
   ConfigX Immersive — QuietCubes-inspired layer
   ============================================ */
body.immersive {
    --bg-primary: #F7F5F0;
    --bg-secondary: #EFEBE3;
    --bg-tertiary: #E8E4DC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFAF8;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --text-primary: #141820;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-accent: #141820;
    --text-inverse: #FFFFFF;
    --border-subtle: rgba(20, 24, 32, 0.08);
    --border-default: rgba(20, 24, 32, 0.12);
    --shadow-sm: 0 2px 12px rgba(20, 24, 32, 0.06);
    --shadow-md: 0 12px 40px rgba(20, 24, 32, 0.08);
    --shadow-lg: 0 24px 64px rgba(20, 24, 32, 0.1);
    --shadow-accent: 0 16px 48px rgba(20, 24, 32, 0.16);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body.immersive .navbar {
    background: rgba(247, 245, 240, 0.75);
    border-bottom-color: var(--border-subtle);
}

body.immersive .nav-link {
    color: var(--text-secondary);
}

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

body.immersive .nav-link.nav-cta {
    color: var(--text-inverse);
}

/* Floating configure CTA */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: var(--text-primary);
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-cta:hover {
    transform: translateY(-3px) scale(1.02);
    color: var(--text-inverse);
    box-shadow: 0 20px 50px rgba(20, 24, 32, 0.22);
}

/* Category tabs — hero */
.category-bar {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.category-tab {
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
}

.category-tab.is-active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--text-inverse);
}

/* Immersive hero — sticky viewport + scroll focus on 3D */
body.immersive .hero.hero--scroll {
    position: relative;
    display: block;
    height: 200vh;
    min-height: auto;
    padding: 0;
    margin: 0;
    background: var(--bg-primary);
    overflow: clip;
}

body.immersive .hero__pin {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 0 3rem;
    overflow: hidden;
    isolation: isolate;
}

body.immersive .hero__pin .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

body.immersive .hero__kicker {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body.immersive .hero-content {
    text-align: left;
    animation: none;
    opacity: 1;
    transform: none;
}

body.immersive .hero-stage {
    animation: none;
    opacity: 1;
    transform: none;
    transform-origin: center center;
}

body.immersive .hero-title .title-line {
    animation: none;
}

body.immersive .category-bar {
    margin-bottom: 1rem;
}

body.immersive .hero__pin .scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

body.immersive .hero__atmosphere {
    opacity: 0.35;
}

body.immersive .hero__mesh {
    background:
        radial-gradient(ellipse 50% 45% at 15% 20%, rgba(20, 24, 32, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 85% 30%, rgba(20, 24, 32, 0.05) 0%, transparent 50%);
}

body.immersive .hero__grid {
    opacity: 0.25;
}

body.immersive .hero__scrim {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 45%,
        rgba(247, 245, 240, 0.35) 75%,
        rgba(247, 245, 240, 0.92) 100%
    );
    will-change: opacity;
}

body.immersive .hero-title {
    font-size: clamp(2.5rem, 7.5vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

body.immersive .hero-description {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 36rem;
}

body.immersive .hero__eyebrow {
    color: var(--accent-1);
}

/* Smooth, GPU-friendly scrubbing for the two animated wrappers */
body.immersive .hero-content[data-hero="copy"],
body.immersive .hero-stage[data-hero="visual"] {
    will-change: transform, opacity;
}

/* Short laptops: keep the full hero composition inside the 100vh pin.
   Without this the stats / CTA fall outside the clipped pin and "disappear"
   as you scroll. We compress vertical rhythm instead of clipping. */
@media (min-width: 969px) and (max-height: 820px) {
    body.immersive .hero__pin {
        padding-top: 4.75rem;
    }

    body.immersive .hero-title {
        font-size: clamp(2.25rem, 5vw, 3.75rem);
    }

    body.immersive .category-bar {
        margin-bottom: 0.75rem;
    }

    body.immersive .hero__eyebrow {
        margin-bottom: 0.5rem;
    }

    body.immersive .hero-description {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    body.immersive .hero-style-chips {
        margin-bottom: 1rem;
    }

    body.immersive .hero-stats {
        margin-top: 1.25rem;
    }

    body.immersive .device-frame__viewport {
        max-height: min(42svh, 380px);
    }
}

@media (max-width: 968px) {
    /* Below the desktop scrub breakpoint the hero is a normal, static block.
       No sticky pin, no scroll-jacking — it just scrolls like any section. */
    body.immersive .hero.hero--scroll {
        height: auto;
        min-height: 100svh;
        overflow-x: clip;
    }

    body.immersive .hero__pin {
        position: relative;
        top: auto;
        height: auto;
        min-height: 100svh;
        align-items: center;
        padding: 6rem 0 3.5rem;
        /* clip the wide decorative glows horizontally so they can't push
           the page sideways; vertical content is never clipped */
        overflow-x: clip;
        overflow-y: visible;
    }

    body.immersive .hero__pin .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    /* Visual leads on small screens */
    body.immersive .hero-stage {
        order: -1;
    }

    body.immersive .hero-content {
        text-align: center;
    }

    body.immersive .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    body.immersive .hero-style-chips,
    body.immersive .hero-cta,
    body.immersive .hero-stats {
        justify-content: center;
    }

    body.immersive .hero-stage__caption {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* ── Card rails become native, swipeable scrollers on touch ──
       The GSAP horizontal scroll-jack is disabled below 969px (see JS),
       so here the rails are simple swipe containers with snap. The old
       negative margin on the models rail is removed — it was bleeding
       24px past the viewport and letting the whole page slide sideways. */
    body.immersive .models-rail-wrap,
    body.immersive .process-rail-wrap,
    body.immersive .testimonials-rail-wrap {
        margin: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.immersive .models-rail-wrap::-webkit-scrollbar,
    body.immersive .process-rail-wrap::-webkit-scrollbar,
    body.immersive .testimonials-rail-wrap::-webkit-scrollbar {
        display: none;
    }

    /* Never let a stale GSAP transform offset the rail on touch */
    body.immersive .models-rail,
    body.immersive .process-rail,
    body.immersive .testimonials-rail {
        transform: none !important;
        width: max-content;
    }

    body.immersive .model-card,
    body.immersive .process-step,
    body.immersive .testimonial-slide {
        scroll-snap-align: start;
    }

    /* tech-pin stage: aspect-ratio + min-height was driving the width past
       its grid column (280 × 4/3 ≈ 373px) and bleeding off-screen. Let it
       fill the column and grow only in height. */
    body.immersive .tech-pin__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    body.immersive .tech-pin__stage {
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.immersive .hero.hero--scroll {
        height: auto;
        min-height: 100svh;
    }

    body.immersive .hero__pin {
        position: relative;
        height: auto;
        min-height: 100svh;
    }
}

body.immersive .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-default);
}

body.immersive .device-frame {
    background: var(--bg-card);
    border-color: var(--border-default);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

body.immersive .device-frame__chrome {
    background: #F3F1EC;
}

body.immersive .device-frame__urlbar {
    background: #EBE8E1;
}

body.immersive .device-frame__viewport {
    background: radial-gradient(ellipse 90% 80% at 50% 45%, #1a2332 0%, #0B0F18 100%);
}

body.immersive .hero-preview-panel,
body.immersive .hero-preview-dock {
    background: rgba(5, 7, 12, 0.55);
}

/* ── Hero video (live carport configurator footage) ── */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
    display: block;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse 90% 80% at 50% 45%, #1a2332 0%, #0B0F18 100%);
}

/* Soft animated ambient light behind the rotating model for depth */
.configurator-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 55% 45% at 50% 52%, rgba(255, 255, 255, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 72% 38%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    mix-blend-mode: screen;
    animation: configGlowPulse 7s ease-in-out infinite;
}

@keyframes configGlowPulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Premium device frame treatment for the video showcase */
body.immersive .device-frame--glowing {
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.85),
        0 40px 90px rgba(20, 24, 32, 0.22);
}

/* Single "carports · live" tag that replaces the old category tabs */
.hero-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-accent, rgba(20, 24, 32, 0.25));
    background: var(--accent-1-subtle, rgba(20, 24, 32, 0.08));
    color: var(--accent-1, #141820);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-live-tag__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: configurator-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .configurator-glow,
    .hero-live-tag__dot {
        animation: none;
    }
}

/* Section typography */
.immersive-section {
    padding: clamp(4rem, 10vh, 7rem) 0;
    position: relative;
}

.immersive-section--alt {
    background: var(--bg-secondary);
}

.section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 0.75rem;
}

.section-headline {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 1rem;
    max-width: 18ch;
}

.section-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 42rem;
    line-height: 1.7;
}

.section-head {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Horizontal models rail */
/* ── Carousel (models + testimonials) — drag / scroll / arrows / autoplay ── */
.carousel {
    position: relative;
}

.models-rail-wrap,
.testimonials-rail-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-left: clamp(1rem, 4vw, 3rem);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding: 0.5rem clamp(1rem, 4vw, 3rem) 1.25rem;
}

.models-rail-wrap::-webkit-scrollbar,
.testimonials-rail-wrap::-webkit-scrollbar {
    display: none;
}

.models-rail-wrap.is-dragging,
.testimonials-rail-wrap.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.models-rail-wrap .model-card,
.testimonials-rail-wrap .testimonial-slide {
    scroll-snap-align: start;
}

/* Prev / next controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: var(--bg-card-hover, #fff);
}

.carousel-arrow--prev { left: 0.4rem; }
.carousel-arrow--next { right: 0.4rem; }

@media (max-width: 768px) {
    .carousel-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .models-rail-wrap,
    .testimonials-rail-wrap {
        scroll-behavior: auto;
    }
}

.models-rail {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding-bottom: 1rem;
}

.model-card {
    flex: 0 0 min(320px, 78vw);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.model-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.model-card__visual {
    height: 210px;
    /* matches the light grid background baked into the style render PNGs */
    background: #EDEFF2;
    position: relative;
    overflow: hidden;
}

/* Style preview render (decoded from the configurator export) */
.model-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card:hover .model-card__visual img {
    transform: scale(1.05);
}

.model-card__visual span {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.model-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.model-card__body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
}

.model-card__body p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.model-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-1);
}

/* Pinned tech section */
.tech-pin {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.tech-pin__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    width: 100%;
}

.tech-pin__list {
    list-style: none;
}

.tech-pin__item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tech-pin__item.is-active {
    opacity: 1;
}

.tech-pin__item h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.tech-pin__item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

.tech-pin__item.is-active p {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.25rem;
}

.tech-pin__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: linear-gradient(160deg, #0E1014 0%, #20242C 100%);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tech-pin__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.tech-pin__panel.is-active {
    opacity: 1;
    transform: scale(1);
}

.tech-pin__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    /* Light glass on the dark stage so the icon stays visible without blue */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.tech-pin__panel h4 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tech-pin__panel p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 22rem;
    line-height: 1.6;
}

/* Marquee */
.marquee-strip {
    overflow: hidden;
    border-block: 1px solid var(--border-subtle);
    background: var(--bg-card);
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-track span {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Process horizontal */
.process-rail-wrap {
    overflow: hidden;
}

.process-rail {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.process-step {
    flex: 0 0 min(280px, 75vw);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
}

.process-step__num {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent-1);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.process-step h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials rail (carousel styles shared with models above) */
.testimonials-rail {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

.testimonial-slide {
    flex: 0 0 min(380px, 85vw);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.75rem;
}

.testimonial-slide .testimonial-rating {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.testimonial-slide .testimonial-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.testimonial-slide .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-slide .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.testimonial-slide .author-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.testimonial-slide .author-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.faq-question span:last-child {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question span:last-child {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 280px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.975rem;
}

/* Big CTA band */
.cta-immersive {
    text-align: center;
    padding: clamp(5rem, 12vh, 8rem) 1.5rem;
    background: var(--text-primary);
    color: var(--text-inverse);
}

.cta-immersive h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
    color: var(--text-inverse);
}

.cta-immersive p {
    font-size: 1.125rem;
    opacity: 0.82;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.cta-immersive .btn-primary {
    background: var(--text-inverse);
    color: var(--text-primary);
}

/* Reveal helpers */
.reveal-up {
    opacity: 0;
    transform: translateY(48px);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.immersive .footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-top-color: var(--border-subtle);
}

body.immersive .footer-brand p,
body.immersive .footer-column a,
body.immersive .footer-bottom p {
    color: var(--text-secondary);
}

body.immersive .contact {
    background: var(--bg-secondary);
}

body.immersive .form-group input,
body.immersive .form-group textarea {
    background: var(--bg-card);
    border-color: var(--border-default);
    color: var(--text-primary);
}

body.immersive .scroll-line {
    background: linear-gradient(to bottom, var(--accent-1), transparent);
}

@media (max-width: 968px) {
    .tech-pin__inner {
        grid-template-columns: 1fr;
    }

    .tech-pin__stage {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }

    body.immersive .hero-inner {
        grid-template-columns: 1fr;
    }
}
