/* =============================================
   mechanic.party — Chrome Meditation Chamber
   Zen contemplation + Art Deco precision
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
    color: #404058;
    background: #E0E0E8;
    overflow-x: hidden;
}

/* --- Typography --- */
.logotype {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 56px);
    color: #404058;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.section-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 44px);
    color: #404058;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.card-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(20px, 2vw, 30px);
    color: #404058;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.body-text {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
    color: #404058;
    margin-bottom: 1rem;
}

.body-text:last-child {
    margin-bottom: 0;
}

.tech-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #606070;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Keyframes --- */
@keyframes waveShift {
    to {
        transform: translateX(-200px);
    }
}

@keyframes pulseChrome {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 192, 208, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(192, 192, 208, 0.4);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logotypeFadeIn {
    from {
        opacity: 0;
        letter-spacing: 0.25em;
    }
    to {
        opacity: 1;
        letter-spacing: 0.08em;
    }
}

@keyframes specBarFill {
    from {
        width: 0%;
    }
}

/* --- Hero Viewport --- */
.hero-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #E0E0E8;
}

.hero-chrome-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E0E0E8 0%, #D0D0D8 30%, #E0E0E8 50%, #D0D0D8 70%, #E0E0E8 100%);
    z-index: 0;
}

/* Waveform container (hero) */
.waveform-container {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.waveform-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-path {
    stroke: #B0B0C0;
    stroke-width: 1.5px;
    fill: none;
    animation: waveShift 8s linear infinite;
}

.wave-path-2 {
    stroke: #B0B0C0;
    stroke-width: 1px;
    opacity: 0.5;
    animation-duration: 12s;
    animation-direction: reverse;
}

.wave-path-3 {
    stroke: #B0B0C0;
    stroke-width: 0.8px;
    opacity: 0.3;
    animation-duration: 16s;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: logotypeFadeIn 1.2s ease-out 0.8s forwards;
}

.hero-tagline {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #606070;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.6s forwards;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.2s forwards;
    cursor: pointer;
}

/* --- Pulse Attention Markers --- */
.pulse-marker {
    animation: pulseChrome 3s ease-in-out infinite;
}

/* --- Diagonal Sections --- */
.diagonal-section {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #E0E0E8 0%, #D0D0D8 50%, #E0E0E8 100%);
    overflow: hidden;
}

.diagonal-section-alt {
    background: linear-gradient(135deg, #D0D0D8 0%, #E0E0E8 50%, #D0D0D8 100%);
}

.diagonal-inner {
    transform: skewY(-2deg);
}

.section-content {
    transform: skewY(2deg);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Wave Dividers --- */
.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 3;
    pointer-events: none;
}

.divider-wave {
    width: 100%;
    height: 100%;
}

.wave-path-divider-1,
.wave-path-divider-2,
.wave-path-divider-3 {
    stroke: #B0B0C0;
    stroke-width: 1.5px;
    fill: none;
    animation: waveShift 8s linear infinite;
}

.wave-path-divider-2 {
    animation-direction: reverse;
}

/* --- Marble Panels --- */
.marble-panel {
    background: linear-gradient(135deg, #F0ECE8 0%, #E8E0D8 25%, #F0ECE8 50%, #DDD8D0 75%, #F0ECE8 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #B0B0C0;
    border-radius: 2px;
    padding: 3rem;
}

/* --- Chrome Card Grid --- */
.chrome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.chrome-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chrome-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.chrome-card .tech-label {
    display: block;
    margin-bottom: 1rem;
    color: #C8B080;
    font-size: 14px;
    letter-spacing: 0.15em;
}

/* --- Specification Bars --- */
.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.spec-item {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    align-items: center;
    gap: 1.5rem;
}

.spec-value {
    font-family: 'Poiret One', cursive;
    font-size: clamp(16px, 1.5vw, 22px);
    color: #404058;
    letter-spacing: 0.04em;
}

.spec-bar {
    height: 4px;
    background: #B0B0C0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.spec-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C8B080, #404058);
    border-radius: 2px;
    width: 0%;
    transition: width 1.5s ease-out;
}

.spec-bar-fill.animated {
    animation: specBarFill 1.5s ease-out forwards;
}

/* --- Workshop Panel --- */
.workshop-panel {
    padding: 4rem 3rem;
}

.workshop-specs {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #B0B0C0;
}

.workshop-spec-item {
    text-align: center;
    padding: 1rem 1.5rem;
    border: 1px solid #B0B0C0;
    border-radius: 2px;
    background: rgba(224, 224, 232, 0.5);
}

.workshop-spec-item .spec-value {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(20px, 2vw, 30px);
}

/* --- Footer --- */
.site-footer {
    position: relative;
    padding: 80px 0 40px;
    background: #404058;
    text-align: center;
    overflow: hidden;
}

.footer-wave-container {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

.footer-wave {
    width: 100%;
    height: 100%;
}

.wave-path-footer {
    stroke: rgba(176, 176, 192, 0.3);
    stroke-width: 1.5px;
    fill: none;
    animation: waveShift 8s linear infinite;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logotype {
    font-size: clamp(18px, 2vw, 28px);
    color: #B0B0C0;
}

.footer-label {
    color: #B0B0C0;
    opacity: 0.6;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Brass Accent Line --- */
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #C8B080;
    margin-top: 0.75rem;
}

/* Center the accent line for centered headings */
.chrome-card .card-heading::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #C8B080;
    margin: 0.5rem auto 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .chrome-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .spec-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .spec-bar {
        grid-column: 1 / -1;
    }

    .workshop-specs {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .marble-panel {
        padding: 2rem 1.5rem;
    }

    .workshop-panel {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .diagonal-section {
        padding: 80px 0 60px;
    }

    .section-content {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .workshop-specs {
        gap: 1rem;
    }
}
