/* ============================================
   prototype.moe - Swiss Design Prototype Showcase
   aesthetic: swiss-design, path-draw connectors
   Fonts: Inter" (Google Fonts), Space Grotesk" (Google Fonts)
   Space Grotesk bold titles. Sunset coral accent system.
   Mixed-media decorative layers. SVG path-draw connector lines.
   Palette: Sunset-Warm
   #FFF8F0 - Warm White (background)
   #1A1A1A - Deep Charcoal (headings)
   #5A5550 - Warm Gray (body text)
   #E8734A - Sunset Coral (primary accent)
   #F4A940 - Golden Hour (secondary accent)
   #2A2018 - Dark Earth (footer)
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: #5A5550;
    background-color: #FFF8F0;
    overflow-x: hidden;
    position: relative;
}

/* ---- Background Decorative Layer ---- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.bg-svg {
    width: 100%;
    height: 100%;
}

/* ---- SVG Connector Paths ---- */
.connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connector-path {
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    transition: stroke-dashoffset 0s;
}

.connector-path.drawn {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.8s ease-out;
}

/* ---- Header ---- */
.site-header {
    position: relative;
    z-index: 10;
    padding: 2rem 5vw 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.title-accent {
    color: #E8734A;
}

.header-right {
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.header-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #5A5550;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #E8734A;
}

.header-rule {
    max-width: 1200px;
    margin: 1rem auto 0;
    height: 1px;
    background: linear-gradient(to right, #E8734A, #F4A940, transparent);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 4vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8vh 5vw 6vh;
}

.hero-main {
    flex: 0 0 60%;
}

.hero-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-accent {
    color: #E8734A;
    position: relative;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    width: 100%;
    height: 0.12em;
    background: #F4A940;
    opacity: 0.4;
    transform: skewX(-6deg);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5A5550;
    max-width: 540px;
}

.hero-annotation {
    flex: 0 0 30%;
    padding-top: 2rem;
    border-left: 2px solid #E8734A;
    padding-left: 1.5rem;
}

.annotation-label {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #E8734A;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    background: rgba(232, 115, 74, 0.08);
    padding: 0.15em 0.6em;
    border-radius: 2px;
}

.annotation-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #5A5550;
}

/* ---- Section Headers ---- */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #F4A940;
    opacity: 0.5;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.section-rule {
    flex: 1;
    height: 1px;
    background: #E8734A;
    opacity: 0.25;
    align-self: center;
}

/* ---- Prototypes Section ---- */
.prototypes {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4vh 5vw 6vh;
}

/* ---- Prototype Cards ---- */
.prototype-card {
    display: flex;
    gap: 3vw;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(232, 115, 74, 0.1);
}

.prototype-card:last-child {
    border-bottom: none;
}

.card-main {
    flex: 0 0 65%;
    display: flex;
    gap: 2rem;
}

.card-visual {
    flex: 0 0 120px;
    height: 120px;
    background: rgba(255, 248, 240, 0.6);
    border: 1px solid rgba(232, 115, 74, 0.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 80px;
    height: 80px;
}

.card-content {
    flex: 1;
}

.card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #F4A940;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.02em;
    margin: 0.25rem 0 0.5rem;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5A5550;
    margin-bottom: 0.75rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2em 0.7em;
    border: 1px solid rgba(232, 115, 74, 0.25);
    color: #E8734A;
    border-radius: 2px;
}

.card-annotation {
    flex: 0 0 28%;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(244, 169, 64, 0.3);
    align-self: center;
}

/* ---- Fade-in Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Process Section ---- */
.process {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6vh 5vw;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    padding: 1.5rem;
    border-top: 2px solid #E8734A;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #F4A940;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.5rem;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #5A5550;
}

/* ---- About Section ---- */
.about {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 4vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6vh 5vw 8vh;
}

.about-main {
    flex: 0 0 60%;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5A5550;
    margin-bottom: 1rem;
}

.about-annotation {
    flex: 0 0 30%;
    padding-left: 1.5rem;
    border-left: 2px solid #F4A940;
    align-self: flex-start;
    padding-top: 4rem;
}

.about-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #E8734A;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5A5550;
    margin-top: 0.25rem;
    display: block;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    z-index: 10;
    background-color: #2A2018;
    color: #FFF8F0;
    padding: 3rem 5vw 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFF8F0;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 248, 240, 0.6);
    margin-top: 0.25rem;
}

.footer-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 248, 240, 0.5);
}

.footer-rule {
    max-width: 1200px;
    margin: 1.5rem auto;
    height: 1px;
    background: rgba(255, 248, 240, 0.1);
}

.footer-note {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.75rem;
    color: rgba(255, 248, 240, 0.35);
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 5vh 5vw 4vh;
    }

    .hero-main {
        flex: 1;
    }

    .hero-annotation {
        flex: 1;
        border-left: none;
        border-top: 2px solid #E8734A;
        padding-left: 0;
        padding-top: 1rem;
    }

    .prototype-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .card-main {
        flex: 1;
        flex-direction: column;
    }

    .card-visual {
        flex: none;
        width: 100px;
        height: 100px;
    }

    .card-annotation {
        flex: 1;
        border-left: none;
        border-top: 1px solid rgba(244, 169, 64, 0.3);
        padding-left: 0;
        padding-top: 1rem;
    }

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

    .about {
        flex-direction: column;
    }

    .about-main {
        flex: 1;
    }

    .about-annotation {
        flex: 1;
        border-left: none;
        border-top: 2px solid #F4A940;
        padding-left: 0;
        padding-top: 1rem;
    }

    .connector-svg {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-right {
        gap: 1rem;
    }

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

    .card-main {
        flex-direction: column;
    }

    .about-stats {
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}