/* =========================================
   KÜLFÜN — GLACIAL MONOLITH DESIGN SYSTEM
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&family=JetBrains+Mono:wght@300;400;500&family=Syne:wght@400;600;800&display=swap');

/* ─── TOKENS ─── */
:root {
    --obsidian: #0A0A0A;
    --obsidian-mid: #111111;
    --granite: #2D2D2D;
    --granite-light: #3A3A3A;
    --glacier: #A0D8EF;
    --glacier-dim: rgba(160, 216, 239, 0.12);
    --glacier-mid: rgba(160, 216, 239, 0.35);
    --glacier-glow: rgba(160, 216, 239, 0.06);
    --frost: rgba(255, 255, 255, 0.04);
    --frost-border: rgba(255, 255, 255, 0.08);
    --copper: #C66B3D;
    --text-primary: #EAEAEA;
    --text-muted: #707070;
    --text-ice: rgba(160, 216, 239, 0.8);
    --font-display: 'Unbounded', sans-serif;
    --font-syne: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-glacial: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-cold: cubic-bezier(0.23, 1, 0.32, 1);
    --nav-height: 70px;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--obsidian);
    color: var(--text-primary);
    font-family: var(--font-syne);
    overflow-x: hidden;
    cursor: default;
}

/* ─── SUMMIT PROGRESS BAR (Floating Side Bar) ─── */
#summit-progress {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.summit-track {
    width: 2px;
    height: 160px;
    background: var(--granite);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.summit-fill {
    position: absolute;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to top, var(--glacier), transparent);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.summit-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glacier);
    box-shadow: 0 0 10px var(--glacier);
}

.summit-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ─── NAVIGATION ─── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--frost-border);
    transition: background 0.4s var(--ease-cold);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--glacier);
    transition: width 0.3s var(--ease-cold);
}

.nav-links a:hover {
    color: var(--glacier);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ─── HERO SECTION ─── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    inset: -10%;
    z-index: 0;
    will-change: transform;
}

.hero-bg-layer img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: brightness(0.28) saturate(0.6);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 30%, var(--obsidian) 80%),
        linear-gradient(to bottom, transparent 50%, var(--obsidian) 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(160, 216, 239, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 216, 239, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--glacier);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.9s var(--ease-glacial) forwards 0.4s;
    margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s var(--ease-glacial) forwards 0.7s;
}

.hero-title .glacier-word {
    color: var(--glacier);
    text-shadow: 0 0 80px rgba(160, 216, 239, 0.4);
}

.hero-subtitle {
    font-family: var(--font-syne);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1.8rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: revealUp 0.9s var(--ease-glacial) forwards 1s;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 3rem;
    opacity: 0;
    animation: revealUp 0.9s var(--ease-glacial) forwards 1.2s;
}

.btn-primary {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: var(--glacier);
    color: var(--obsidian);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-cold);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 40px rgba(160, 216, 239, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--granite);
    cursor: pointer;
    transition: all 0.3s var(--ease-cold);
}

.btn-secondary:hover {
    border-color: var(--glacier);
    color: var(--glacier);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: revealUp 0.9s var(--ease-glacial) forwards 1.5s;
}

.hero-scroll-hint span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--glacier), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── SECTION BASE ─── */
section {
    padding: 120px 8%;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--glacier);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--glacier);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* ─── REVEAL ANIMATIONS (JS driven) ─── */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    filter: blur(15px);
    transition: 
        opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ─── BRISA ANCESTRAL (Genetic Root Section) ─── */
.brisa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5rem;
    background: radial-gradient(circle at center, #111111 0%, var(--obsidian) 100%);
    border-top: 1px solid var(--frost-border);
    border-bottom: 1px solid var(--frost-border);
    position: relative;
    overflow: hidden;
    padding: 220px 8%;
    min-height: 100vh;
}

/* DNA HELIX BACKGROUND - Optimized for Horizontal/Vertical placement */
.dna-helix-bg {
    position: absolute;
    inset: 0;
    z-index: 1; /* Behind text (z-index 5) */
    perspective: 2000px;
    perspective-origin: center;
    opacity: 0.15;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#dna-helix {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}

.dna-pair {
    position: absolute;
    top: var(--top);
    left: 50%;
    width: 200px;
    height: 2px;
    transform-style: preserve-3d;
    transform: translateX(-50%) rotateY(calc(var(--i) * 15deg));
    animation: dnaRotate 12s linear infinite;
    animation-delay: calc(var(--i) * -0.2s);
}

.dna-pair::before,
.dna-pair::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--glacier);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--glacier), 0 0 30px var(--glacier-dim);
}

.dna-pair::before {
    left: 0;
}

.dna-pair::after {
    right: 0;
}

.dna-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--glacier-mid) 0%,
            transparent 50%,
            var(--glacier-mid) 100%);
    opacity: 0.3;
}

@keyframes dnaRotate {
    from {
        transform: translateX(-50%) rotateY(calc(var(--i) * 18deg));
    }

    to {
        transform: translateX(-50%) rotateY(calc(var(--i) * 18deg + 360deg));
    }
}

.brisa-text {
    position: relative;
    z-index: 5;
    max-width: 900px;
    text-align: center;
}

.brisa-text .section-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.brisa-text p {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-top: 2.2rem;
    max-width: 780px;
    margin-inline: auto;
}

.brisa-text p strong {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 20px var(--glacier-dim);
}

.brisa-quote {
    display: block;
    margin-top: 3.5rem;
    padding: 2.5rem;
    background: rgba(160, 216, 239, 0.03);
    border: 1px solid var(--frost-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 4px;
}

.quote-label {
    display: block;
    color: var(--glacier);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.glacier-highlight {
    color: var(--glacier);
    font-weight: 600;
}

/* Modern Visual Wrap */
.brisa-visual {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.araucaria-morph-wrap {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
}

.araucaria-morph-wrap img {
    width: 300px;
    z-index: 2;
    filter: drop-shadow(0 0 60px rgba(160, 216, 239, 0.5));
    animation: softBreath 6s ease-in-out infinite;
}

.morph-glow {
    position: absolute;
    inset: 5%;
    background: radial-gradient(circle, var(--glacier-dim) 0%, transparent 75%);
    filter: blur(60px);
    z-index: 1;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes softBreath {

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

    50% {
        transform: scale(1.03) translateY(-10px);
    }
}

@media (max-width: 992px) {
    .brisa {
        padding: 80px 5%;
        align-items: center;
        text-align: center;
    }

    .brisa-text {
        max-width: 100%;
    }

    .brisa-visual {
        justify-content: center;
    }

    .brisa-text p {
        margin-inline: auto;
    }
}

@keyframes scanLineMove {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ─── EL COMBUSTIBLE (Product Showcase) ─── */
.fuel {
    background: var(--obsidian);
}

.fuel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 5rem;
}

/* GLASSMORPHISM CARDS */
.fuel-card {
    position: relative;
    padding: 3rem;
    background: var(--frost);
    border: 1px solid var(--frost-border);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s var(--ease-cold), transform 0.4s var(--ease-cold), box-shadow 0.4s var(--ease-cold);
    border-radius: 2px;
}

.fuel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(160, 216, 239, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fuel-card:hover {
    border-color: rgba(160, 216, 239, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--glacier-dim);
}

.fuel-card:hover::before {
    opacity: 1;
}

.fuel-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 2rem;
    transition: transform 0.6s var(--ease-cold);
}

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

.fuel-card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--glacier);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.fuel-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.fuel-card-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.fuel-card-number {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(160, 216, 239, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* ─── TECH-SPEC SECTION ─── */
.tech-spec {
    background: var(--obsidian-mid);
    border-top: 1px solid var(--frost-border);
    border-bottom: 1px solid var(--frost-border);
}

.tech-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--granite);
    border: 1px solid var(--granite);
    overflow: hidden;
}

.tech-cell {
    background: var(--obsidian-mid);
    padding: 3rem 2.5rem;
    transition: background 0.3s ease;
}

.tech-cell:hover {
    background: var(--granite);
}

.tech-cell-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--glacier);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.tech-cell-unit {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--glacier);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-left: 4px;
    vertical-align: super;
    font-size: 1rem;
}

.tech-cell-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.4rem;
}

.tech-cell-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    line-height: 1.6;
}

/* ─── TECH UPCOMING / COMING SOON ─── */
.tech-upcoming {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--frost-border);
}

.tech-upcoming-header {
    margin-bottom: 2.5rem;
}

.tech-upcoming-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0.6;
}

.tech-upcoming-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-top: 0.7rem;
    opacity: 0.35;
}

.tech-upcoming-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-top: 0.6rem;
    opacity: 0.5;
}

.tech-upcoming-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--granite);
    border: 1px solid var(--granite);
    overflow: hidden;
}

.tech-upcoming-card {
    position: relative;
    background: var(--obsidian-mid);
    padding: 3rem 2.5rem;
    overflow: hidden;
    min-height: 180px;
}

.tech-upcoming-blur-content {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
}

.tech-blur-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--glacier);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tech-blur-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.tech-blur-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-blur-specs span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 1px solid var(--granite);
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
}

.tech-upcoming-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.tech-upcoming-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--granite-light);
    padding: 0.55rem 1.4rem;
    color: var(--text-muted);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-upcoming-card:hover .tech-upcoming-badge {
    border-color: var(--glacier);
    color: var(--glacier);
}

.tech-upcoming-badge span {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

/* ─── COMMITMENT SECTION ─── */
.commitment {
    background: var(--obsidian);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
}

.commitment-icon {
    width: 60px;
    height: 60px;
    border: 1px solid var(--glacier);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    color: var(--glacier);
    animation: glowPulse 3s ease-in-out infinite;
}

.commitment-number {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--granite-light);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-top: -1rem;
    position: relative;
    cursor: crosshair;
    transition: -webkit-text-stroke 0.2s ease;
}

/* Desktop (real hover): both :hover and .active trigger flicker */
@media (hover: hover) and (pointer: fine) {
    .commitment-number.active,
    .commitment-number:hover {
        animation: machineFlicker 1.8s ease-in-out infinite;
    }
}

/* Touch/mobile: only .active drives the flicker — no ghost-hover restarts */
@media (hover: none) {
    .commitment-number.active {
        animation: machineFlicker 1.8s ease-in-out infinite;
    }
}

.commitment-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--glacier);
    text-transform: uppercase;
    margin-top: 1rem;
}

.commitment-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* ─── FOOTER ─── */
footer {
    padding: 5rem 8%;
    background: #000;
    border-top: 1px solid var(--frost-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-align: right;
    line-height: 2;
    text-transform: uppercase;
}

/* ─── KEYFRAMES ─── */
@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.92);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes revealLite {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(160, 216, 239, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(160, 216, 239, 0.25);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
}

@keyframes machineFlicker {
    0% {
        -webkit-text-stroke: 1px var(--granite-light);
        color: transparent;
        text-shadow: none;
    }

    7% {
        -webkit-text-stroke: 1px var(--glacier);
        color: rgba(160, 216, 239, 0.06);
        text-shadow: 0 0 50px rgba(160, 216, 239, 0.3);
    }

    9% {
        -webkit-text-stroke: 1px var(--granite-light);
        color: transparent;
        text-shadow: none;
    }

    18% {
        -webkit-text-stroke: 2px var(--glacier);
        color: rgba(160, 216, 239, 0.14);
        text-shadow: 0 0 80px rgba(160, 216, 239, 0.5), 0 0 160px rgba(160, 216, 239, 0.2);
    }

    22% {
        -webkit-text-stroke: 1px rgba(160, 216, 239, 0.2);
        color: transparent;
        text-shadow: none;
    }

    50% {
        -webkit-text-stroke: 2px var(--glacier);
        color: rgba(160, 216, 239, 0.18);
        text-shadow: 0 0 100px rgba(160, 216, 239, 0.6), 0 0 200px rgba(160, 216, 239, 0.25);
    }

    88% {
        -webkit-text-stroke: 1px var(--glacier);
        color: rgba(160, 216, 239, 0.1);
        text-shadow: 0 0 60px rgba(160, 216, 239, 0.35);
    }

    92% {
        -webkit-text-stroke: 1px var(--granite-light);
        color: transparent;
        text-shadow: none;
    }

    96% {
        -webkit-text-stroke: 1px var(--glacier);
        color: rgba(160, 216, 239, 0.1);
        text-shadow: 0 0 40px rgba(160, 216, 239, 0.2);
    }

    100% {
        -webkit-text-stroke: 2px var(--glacier);
        color: rgba(160, 216, 239, 0.18);
        text-shadow: 0 0 100px rgba(160, 216, 239, 0.55);
    }
}

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

@media (max-width: 768px) {
    section {
        padding: 90px 6%;
    }

    .brisa {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 120px;
    }

    .brisa .section-title {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }

    .araucaria-morph-wrap {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }

    .araucaria-morph-wrap img {
        width: 200px;
    }

    /* Optimized reveal for mobile performance */
    /* Exclude .commitment-icon and .commitment-number:
       - .commitment-icon has glowPulse (infinite) — overriding causes endless loop.
       - .commitment-number has machineFlicker (infinite) — same issue; its reveal
         appearance is handled by CSS transitions (.reveal → .reveal.active), so
         no animation override is needed. */
    .reveal.active:not(.commitment-icon):not(.commitment-number) {
        animation-name: revealLite !important;
    }

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

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

    .hero-title {
        font-size: clamp(2.8rem, 13vw, 5rem);
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-meta {
        text-align: center;
    }

    #summit-progress {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .tech-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ─── ATMOSPHERIC EFFECTS ─── */
#glacial-wind-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    mix-blend-mode: screen;
}

#glacial-wind-canvas.wind-active {
    opacity: 1;
}
/* ─── SHIVER EFFECT ─── */
.shiver-active {
    animation: shiver 0.2s infinite ease-in-out;
}

@keyframes shiver {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-0.5deg); }
    20% { transform: translate(-3px, 0px) rotate(0.5deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(0.5deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-0.5deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-0.5deg); }
}

/* ─── BACK TO TOP BUTTON ─── */
#back-to-top {
    position: fixed;
    bottom: 2.2rem;
    right: 2rem;
    z-index: 9998;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid var(--granite-light);
    color: var(--glacier);
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition:
        opacity 0.5s var(--ease-cold),
        transform 0.5s var(--ease-cold),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    border-color: var(--glacier);
    box-shadow: 0 0 24px rgba(160, 216, 239, 0.2);
}

#back-to-top.launching {
    animation: bttLaunch 0.55s var(--ease-glacial) forwards;
}

@keyframes bttLaunch {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    40%  { transform: translateY(-12px) scale(0.88); opacity: 0.8; }
    100% { transform: translateY(-80px) scale(0.6); opacity: 0; }
}

/* ─── WHATSAPP CONTACT BUTTON ─── */
#whatsapp-btn {
    position: fixed;
    bottom: 6.2rem;
    right: 2rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem 0.6rem 0.75rem;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid var(--granite-light);
    color: var(--glacier);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-radius: 2px;
    max-width: 44px;
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease,
        max-width 0.4s var(--ease-cold);
}

#whatsapp-btn span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease 0.15s;
}

#whatsapp-btn:hover {
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.15);
    max-width: 160px;
}

#whatsapp-btn:hover span {
    opacity: 1;
}

@media (max-width: 768px) {
    #whatsapp-btn {
        max-width: 160px;
        bottom: 6.5rem;
        right: 1.2rem;
    }

    #whatsapp-btn span {
        opacity: 1;
        transition: none;
    }

    #back-to-top {
        right: 1.2rem;
        bottom: 1.8rem;
    }
}

/* ─────────────────────────────────────────────
   BRISA — COLD DAWN MODE
   Triggered on logo hover/touch. The storm
   calms and a cold Andean dawn seeps through.
───────────────────────────────────────────── */

/* Dawn background overlay — sits above base bg,
   below DNA helix (z-index 1) and text (z-index 5) */
.brisa::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% 90%, rgba(255, 195, 110, 0.07) 0%, transparent 52%),
        radial-gradient(circle at 50% 48%, #1C3D62 0%, #0E1F32 48%, rgba(10, 10, 10, 0) 78%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s var(--ease-glacial);
}

.brisa.dawn-active::before {
    opacity: 1;
}

/* Wind canvas — smooth fade out */
#glacial-wind-canvas.wind-calmed {
    opacity: 0 !important;
    transition: opacity 2s var(--ease-glacial) !important;
}

/* Logo image — shift to warm dawn glow */
.araucaria-morph-wrap img {
    transition: filter 1.8s var(--ease-glacial);
}

.brisa.dawn-active .araucaria-morph-wrap img {
    filter:
        drop-shadow(0 0 90px rgba(255, 200, 130, 0.6))
        drop-shadow(0 0 30px rgba(160, 215, 255, 0.35))
        brightness(1.08);
}

/* Morph glow — warm ámbar replaces cold glacier */
.morph-glow {
    transition: background 1.8s var(--ease-glacial), filter 1.8s var(--ease-glacial);
}

.brisa.dawn-active .morph-glow {
    background: radial-gradient(circle, rgba(255, 195, 110, 0.22) 0%, rgba(90, 155, 215, 0.12) 50%, transparent 75%);
    filter: blur(70px);
}

/* Section label — ámbar dawn accent */
.brisa .section-label {
    transition: color 1.8s ease;
}

.brisa .section-label::before {
    transition: background 1.8s ease;
}

.brisa.dawn-active .section-label {
    color: rgba(255, 210, 155, 0.85);
}

.brisa.dawn-active .section-label::before {
    background: rgba(255, 210, 155, 0.85);
}

/* Glacier highlight — warm shift */
.brisa .glacier-highlight {
    transition: color 1.8s ease, text-shadow 1.8s ease;
}

.brisa.dawn-active .glacier-highlight {
    color: rgba(255, 210, 150, 0.95);
    text-shadow: 0 0 28px rgba(255, 190, 100, 0.5);
}

/* Suppress shiver: storm has calmed */
.brisa.dawn-active.shiver-active {
    animation: none !important;
    transform: none !important;
}

/* DNA helix dims on dawn */
.brisa.dawn-active .dna-helix-bg {
    opacity: 0.05;
    transition: opacity 2s var(--ease-glacial);
}

.brisa .dna-helix-bg {
    transition: opacity 2s var(--ease-glacial);
}

/* ─── FIX: commitment-number flicker on mobile ───
   The global .reveal.active { animation-name: revealLite !important }
   from the 768px breakpoint crushes machineFlicker.
   This override restores it for touch/mobile devices. ─── */
@media (hover: none), (max-width: 768px) {
    .commitment-number.active {
        animation-name: machineFlicker !important;
        animation-duration: 1.8s !important;
        animation-timing-function: ease-in-out !important;
        animation-iteration-count: infinite !important;
        animation-fill-mode: none !important;
    }
}
