/* mechanic.party - McBling meets Machine Shop */
/* Palette: #2a1f14, #3d2e1f, #c77d3c, #e8a84c, #8a6d4a, #c9a87c, #e8d5bf, #f2e6d4, #6b7a8a, #9e5a2a */
/* Fonts: Bebas Neue (display), Work Sans (body), Space Grotesk (accent) */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #f2e6d4;
    color: #3d2e1f;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ============================================
   DEPTH CONTAINER
   ============================================ */

.depth-container {
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    position: relative;
    overflow: hidden;
}

/* ============================================
   SECTION 1: THE HOOD
   ============================================ */

.section--hood {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: #f2e6d4;
    position: relative;
}

.hood-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hood-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.hood-layer--far {
    transform: translateZ(-200px) scale(1.167);
}

.hood-layer--mid {
    transform: translateZ(-80px) scale(1.067);
}

.gear-large {
    position: absolute;
    top: 10%;
    right: 15%;
    animation: slow-rotate 60s linear infinite;
}

.piston-outline {
    position: absolute;
    bottom: 15%;
    left: 10%;
}

.gasket-ring {
    position: absolute;
    top: 30%;
    left: 55%;
    animation: slow-rotate 45s linear infinite reverse;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hood-content {
    position: relative;
    z-index: 10;
    padding: 0 5vw 15vh;
}

.domain-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 160px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 0.9;
}

.domain-mechanic {
    display: block;
    color: #3d2e1f;
}

.domain-party {
    display: inline-block;
    background: linear-gradient(135deg, #c77d3c, #e8a84c, #c77d3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chrome Strip Navigation */

.chrome-strip {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6b7a8a, #e8a84c, #f2e6d4, #e8a84c, #6b7a8a);
    z-index: 20;
}

.chrome-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3vw;
}

.chrome-nav-link {
    text-decoration: none;
    color: #8a6d4a;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 16px;
    background: rgba(242, 230, 212, 0.85);
    backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease, background 0.3s ease;
}

.chrome-nav-link:hover {
    color: #e8a84c;
    background: rgba(42, 31, 20, 0.9);
    transform: perspective(600px) rotateX(2deg) rotateY(-3deg);
}

.nav-label {
    display: block;
}

/* ============================================
   SECTION 2: THE ENGINE BAY
   ============================================ */

.section--engine-bay {
    min-height: 200vh;
    position: relative;
    padding: 10vh 0;
}

.engine-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f2e6d4 0%, #e8d5bf 30%, #c9a87c 60%, #c77d3c 85%, #8a6d4a 100%);
    z-index: 0;
}

.engine-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.engine-layer--bg {
    transform: translateZ(-180px) scale(1.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-layer--mid {
    transform: translateZ(-60px) scale(1.05);
    pointer-events: none;
}

.engine-layer--fg {
    position: relative;
    transform: translateZ(40px) scale(0.967);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 15vh;
    padding: 15vh 8vw;
}

.chain-links {
    opacity: 0.6;
}

/* Texture Blocks */

.texture-block {
    position: absolute;
    border-radius: 4px;
}

.texture-block--metal {
    width: 280px;
    height: 200px;
    top: 20%;
    right: 8%;
    background: repeating-linear-gradient(
        90deg,
        rgba(107, 122, 138, 0.06) 0px,
        rgba(107, 122, 138, 0.02) 2px,
        transparent 2px,
        transparent 8px
    );
    mix-blend-mode: multiply;
}

.texture-block--oil {
    width: 220px;
    height: 160px;
    bottom: 30%;
    left: 5%;
    background: radial-gradient(ellipse at 30% 40%, rgba(61, 46, 31, 0.08) 0%, transparent 70%);
    mix-blend-mode: multiply;
}

/* Component Cards */

.component-card {
    max-width: 560px;
    padding: 40px;
    background: rgba(242, 230, 212, 0.92);
    backdrop-filter: blur(6px);
    border-left: 3px solid #c77d3c;
    opacity: 0;
    transform: translateY(40px) translateZ(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.component-card.is-visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.component-card--offset {
    margin-left: 15vw;
    border-left-color: #e8a84c;
}

.component-card--right {
    margin-left: auto;
    border-left: none;
    border-right: 3px solid #8a6d4a;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 80px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d2e1f;
    line-height: 1;
    margin-bottom: 24px;
}

.card-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 48px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d2e1f;
    line-height: 1.1;
    margin-bottom: 16px;
}

.body-text {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(15px, 1.1vw, 20px);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #3d2e1f;
}

.body-text--light {
    color: #e8d5bf;
}

/* Chrome Divider */

.chrome-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6b7a8a, #e8a84c, #f2e6d4, #e8a84c, #6b7a8a);
    z-index: 10;
}

.chrome-divider--dark {
    background: linear-gradient(90deg, #3d2e1f, #c77d3c, #e8a84c, #c77d3c, #3d2e1f);
}

/* ============================================
   SECTION 3: THE PIT
   ============================================ */

.section--pit {
    min-height: 150vh;
    background: #2a1f14;
    position: relative;
    padding: 15vh 8vw;
    overflow: hidden;
}

.iridescent-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 20%;
    right: -5%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
        rgba(232, 168, 76, 0.15) 0%,
        rgba(199, 125, 60, 0.1) 25%,
        rgba(107, 122, 138, 0.08) 50%,
        rgba(158, 90, 42, 0.05) 75%,
        transparent 100%
    );
    filter: blur(40px);
    animation: iridescent-shift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes iridescent-shift {
    0%, 100% { filter: blur(40px) hue-rotate(0deg); opacity: 0.7; }
    25% { filter: blur(45px) hue-rotate(90deg); opacity: 0.8; }
    50% { filter: blur(35px) hue-rotate(180deg); opacity: 0.6; }
    75% { filter: blur(42px) hue-rotate(270deg); opacity: 0.75; }
}

.pit-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12vh;
}

.pit-panel {
    max-width: 600px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pit-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pit-panel--side {
    margin-left: 20vw;
}

.pit-panel--accent {
    margin-left: 10vw;
}

.chrome-text {
    background: linear-gradient(135deg, #6b7a8a 0%, #e8a84c 25%, #f2e6d4 50%, #e8a84c 75%, #6b7a8a 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shift 6s ease-in-out infinite;
}

@keyframes chrome-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Sparkles */

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, #e8a84c 0%, transparent 70%);
}

.sparkle::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.sparkle::after {
    width: 200%;
    height: 2px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
}

.sparkle--1 {
    top: 15%;
    left: 70%;
    animation: sparkle-pulse 3s ease-in-out infinite;
}

.sparkle--2 {
    top: 40%;
    left: 85%;
    animation: sparkle-pulse 4s ease-in-out infinite 0.5s;
    width: 4px;
    height: 4px;
}

.sparkle--3 {
    top: 60%;
    left: 75%;
    animation: sparkle-pulse 3.5s ease-in-out infinite 1s;
    width: 5px;
    height: 5px;
}

.sparkle--4 {
    top: 25%;
    left: 90%;
    animation: sparkle-pulse 4.5s ease-in-out infinite 1.5s;
    width: 3px;
    height: 3px;
}

.sparkle--5 {
    top: 75%;
    left: 80%;
    animation: sparkle-pulse 3.2s ease-in-out infinite 2s;
    width: 4px;
    height: 4px;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ============================================
   SECTION 4: THE PARTS COUNTER
   ============================================ */

.section--parts {
    min-height: 100vh;
    position: relative;
    padding: 12vh 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parts-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #8a6d4a 0%, #c9a87c 40%, #e8d5bf 70%, #f2e6d4 100%);
    z-index: 0;
}

.parts-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
    max-width: 1200px;
    width: 100%;
}

.part-card {
    background: rgba(242, 230, 212, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(199, 125, 60, 0.2);
    padding: 36px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    will-change: transform;
    animation: float-card var(--float-duration, 5s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.part-card:nth-child(1) { --float-duration: 5s; --float-delay: 0s; }
.part-card:nth-child(2) { --float-duration: 6s; --float-delay: 0.5s; }
.part-card:nth-child(3) { --float-duration: 4.5s; --float-delay: 1s; }
.part-card:nth-child(4) { --float-duration: 5.5s; --float-delay: 1.5s; }
.part-card:nth-child(5) { --float-duration: 4s; --float-delay: 2s; }
.part-card:nth-child(6) { --float-duration: 6.5s; --float-delay: 0.8s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.part-card:hover {
    box-shadow: 0 20px 60px rgba(42, 31, 20, 0.15);
}

.part-card-inner {
    pointer-events: none;
}

.part-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a6d4a;
    display: block;
    margin-bottom: 12px;
}

.part-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 2.5vw, 44px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d2e1f;
    line-height: 1;
    margin-bottom: 12px;
}

.part-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #3d2e1f;
    opacity: 0.85;
}

/* ============================================
   SECTION 5: THE LOCKUP
   ============================================ */

.section--lockup {
    min-height: 100vh;
    background: #2a1f14;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lockup-content {
    position: relative;
    z-index: 5;
}

.lockup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(64px, 12vw, 220px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 0.85;
}

.lockup-mechanic {
    display: block;
}

.lockup-party {
    display: block;
    background: linear-gradient(135deg, #c77d3c, #e8a84c, #c77d3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.7em;
}

.chrome-text-animated {
    background: linear-gradient(135deg, #6b7a8a 0%, #e8a84c 20%, #f2e6d4 40%, #e8a84c 60%, #c77d3c 80%, #6b7a8a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shimmer 8s ease-in-out infinite;
}

@keyframes chrome-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lockup-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(12px, 1.2vw, 18px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a87c;
    margin-top: 3vh;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.float-el {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.float-el.is-active {
    opacity: var(--float-opacity, 0.25);
}

.float-el--bolt-1 { top: 8%; left: 5%; --float-opacity: 0.2; animation: float-1 5.2s ease-in-out infinite; }
.float-el--bolt-2 { top: 22%; left: 88%; --float-opacity: 0.25; animation: float-2 6.1s ease-in-out infinite 0.3s; }
.float-el--bolt-3 { top: 45%; left: 3%; --float-opacity: 0.15; animation: float-3 7s ease-in-out infinite 0.7s; }
.float-el--spring-1 { top: 15%; left: 72%; --float-opacity: 0.2; animation: float-4 5.8s ease-in-out infinite 1s; }
.float-el--spring-2 { top: 65%; left: 92%; --float-opacity: 0.18; animation: float-5 6.5s ease-in-out infinite 0.5s; }
.float-el--gasket-1 { top: 35%; left: 90%; --float-opacity: 0.22; animation: float-6 4.8s ease-in-out infinite 1.2s; }
.float-el--gasket-2 { top: 78%; left: 8%; --float-opacity: 0.2; animation: float-7 5.5s ease-in-out infinite 0.8s; }
.float-el--star-1 { top: 12%; left: 42%; --float-opacity: 0.3; animation: float-8 4.2s ease-in-out infinite 0.2s; }
.float-el--star-2 { top: 55%; left: 15%; --float-opacity: 0.35; animation: float-9 5s ease-in-out infinite 1.5s; }
.float-el--star-3 { top: 82%; left: 60%; --float-opacity: 0.4; animation: float-10 4.5s ease-in-out infinite 0.6s; }
.float-el--nut-1 { top: 30%; left: 78%; --float-opacity: 0.18; animation: float-1 6.8s ease-in-out infinite 2s; }
.float-el--nut-2 { top: 68%; left: 35%; --float-opacity: 0.2; animation: float-3 5.3s ease-in-out infinite 1.3s; }
.float-el--ring-1 { top: 50%; left: 65%; --float-opacity: 0.15; animation: float-5 7.2s ease-in-out infinite 0.9s; }
.float-el--ring-2 { top: 88%; left: 45%; --float-opacity: 0.2; animation: float-7 5.7s ease-in-out infinite 2.2s; }
.float-el--coil-1 { top: 40%; left: 50%; --float-opacity: 0.15; animation: float-9 6.3s ease-in-out infinite 1.8s; }
.float-el--washer-1 { top: 20%; left: 25%; --float-opacity: 0.18; animation: float-2 5.9s ease-in-out infinite 0.4s; }
.float-el--washer-2 { top: 72%; left: 82%; --float-opacity: 0.22; animation: float-6 4.6s ease-in-out infinite 1.1s; }
.float-el--spark-1 { top: 58%; left: 48%; --float-opacity: 0.35; animation: float-8 4s ease-in-out infinite 2.5s; }
.float-el--spark-2 { top: 5%; left: 58%; --float-opacity: 0.3; animation: float-10 5.4s ease-in-out infinite 0.1s; }

@keyframes float-1 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes float-2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes float-3 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes float-4 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-11px) rotate(-2deg); } }
@keyframes float-5 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(2.5deg); } }
@keyframes float-6 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes float-7 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes float-8 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-2.5deg); } }
@keyframes float-9 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-11px) rotate(1.5deg); } }
@keyframes float-10 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .parts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .chrome-nav {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }

    .chrome-nav-link {
        font-size: 10px;
        padding: 8px 10px;
    }

    .component-card--offset {
        margin-left: 5vw;
    }

    .component-card--right {
        margin-left: 5vw;
    }

    .pit-panel--side {
        margin-left: 5vw;
    }

    .pit-panel--accent {
        margin-left: 0;
    }

    .engine-layer--fg {
        padding: 10vh 5vw;
    }

    .iridescent-blob {
        width: 300px;
        height: 300px;
    }

    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .domain-title {
        font-size: clamp(36px, 12vw, 64px);
    }

    .lockup-title {
        font-size: clamp(48px, 15vw, 80px);
    }
}
