/* ==========================================================================
   prototype.bar -- Styles
   Sepia-Nostalgic Editorial Prototype Lounge
   Fonts: Inter" (Google Fonts), Merriweather" (Google Fonts)
   animations on entries. Spring reveal with bubble decorations.
   ========================================================================== */

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

:root {
    --aged-paper: #F5EFE0;
    --dark-sepia: #3A2E22;
    --warm-umber: #6B5A48;
    --copper: #B87333;
    --faded-olive: #8A8A68;
    --deep-brown: #2A1F16;

    --font-display: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--warm-umber);
    background-color: var(--aged-paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ---------- Floating Bubbles ---------- */
.bubbles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bubbleFloat 18s infinite ease-in-out;
}

.bubble-1 {
    width: 14px;
    height: 14px;
    background: var(--copper);
    left: 8%;
    bottom: -20px;
    animation-delay: 0s;
    animation-duration: 16s;
    opacity: 0.18;
}

.bubble-2 {
    width: 22px;
    height: 22px;
    background: var(--faded-olive);
    left: 20%;
    bottom: -30px;
    animation-delay: 2s;
    animation-duration: 20s;
    opacity: 0.12;
}

.bubble-3 {
    width: 10px;
    height: 10px;
    background: var(--copper);
    left: 35%;
    bottom: -15px;
    animation-delay: 4s;
    animation-duration: 14s;
    opacity: 0.2;
}

.bubble-4 {
    width: 18px;
    height: 18px;
    background: var(--faded-olive);
    left: 50%;
    bottom: -25px;
    animation-delay: 1s;
    animation-duration: 22s;
    opacity: 0.1;
}

.bubble-5 {
    width: 8px;
    height: 8px;
    background: var(--copper);
    left: 65%;
    bottom: -12px;
    animation-delay: 3s;
    animation-duration: 15s;
    opacity: 0.22;
}

.bubble-6 {
    width: 26px;
    height: 26px;
    background: var(--faded-olive);
    left: 78%;
    bottom: -35px;
    animation-delay: 5s;
    animation-duration: 19s;
    opacity: 0.08;
}

.bubble-7 {
    width: 12px;
    height: 12px;
    background: var(--copper);
    left: 90%;
    bottom: -18px;
    animation-delay: 0.5s;
    animation-duration: 17s;
    opacity: 0.15;
}

.bubble-8 {
    width: 16px;
    height: 16px;
    background: var(--faded-olive);
    left: 12%;
    bottom: -22px;
    animation-delay: 6s;
    animation-duration: 21s;
    opacity: 0.1;
}

.bubble-9 {
    width: 6px;
    height: 6px;
    background: var(--copper);
    left: 42%;
    bottom: -10px;
    animation-delay: 7s;
    animation-duration: 13s;
    opacity: 0.25;
}

.bubble-10 {
    width: 20px;
    height: 20px;
    background: var(--faded-olive);
    left: 55%;
    bottom: -28px;
    animation-delay: 3.5s;
    animation-duration: 18s;
    opacity: 0.09;
}

.bubble-11 {
    width: 9px;
    height: 9px;
    background: var(--copper);
    left: 72%;
    bottom: -14px;
    animation-delay: 8s;
    animation-duration: 16s;
    opacity: 0.17;
}

.bubble-12 {
    width: 24px;
    height: 24px;
    background: var(--faded-olive);
    left: 85%;
    bottom: -32px;
    animation-delay: 1.5s;
    animation-duration: 23s;
    opacity: 0.07;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: var(--bubble-opacity, 0.15);
    }
    50% {
        transform: translateY(-50vh) translateX(20px) scale(1);
    }
    90% {
        opacity: var(--bubble-opacity, 0.15);
    }
    100% {
        transform: translateY(-105vh) translateX(-10px) scale(0.8);
        opacity: 0;
    }
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    background: rgba(245, 239, 224, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 90, 72, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    font-size: 1.4rem;
    color: var(--copper);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-sepia);
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--copper);
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--warm-umber);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--copper);
    transition: width 0.3s var(--spring);
}

.nav-link:hover {
    color: var(--copper);
}

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2.5rem 6rem;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--copper);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-sepia);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-umber);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--aged-paper);
    background: var(--copper);
    padding: 0.85rem 2.2rem;
    border-radius: 100px;
    transition: transform 0.4s var(--spring), box-shadow 0.3s ease, background 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 0.25);
    background: #c47f3f;
}

/* ---------- Sections Common ---------- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--faded-olive);
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--copper);
}

/* ---------- Featured Section ---------- */
.section-featured {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2.5rem 6rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(58, 46, 34, 0.03);
    border: 1px solid rgba(107, 90, 72, 0.1);
    border-radius: 12px;
    padding: 3rem;
    transition: transform 0.5s var(--spring), box-shadow 0.4s ease;
    filter: sepia(0.08);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(42, 31, 22, 0.08);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--aged-paper);
    background: var(--copper);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.date {
    font-size: 0.8rem;
    color: var(--faded-olive);
}

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark-sepia);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-umber);
    margin-bottom: 2rem;
}

.featured-details {
    display: flex;
    gap: 2.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--faded-olive);
}

.detail-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-sepia);
}

.detail-value.accent {
    color: var(--copper);
}

.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 239, 224, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
}

.featured-svg {
    width: 100%;
    max-width: 400px;
}

/* ---------- Prototype Grid ---------- */
.section-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2.5rem 6rem;
}

.prototype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.prototype-card {
    position: relative;
    background: rgba(245, 239, 224, 0.6);
    border: 1px solid rgba(107, 90, 72, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    transition: transform 0.5s var(--spring), box-shadow 0.4s ease, border-color 0.3s ease;
    cursor: default;
}

.prototype-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(42, 31, 22, 0.07);
    border-color: rgba(184, 115, 51, 0.2);
}

.card-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(184, 115, 51, 0.12);
    line-height: 1;
    margin-bottom: 1rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faded-olive);
    border: 1px solid rgba(138, 138, 104, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-sepia);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--warm-umber);
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-stage {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 0.04em;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--copper);
    transition: transform 0.4s var(--spring);
}

.prototype-card:hover .card-arrow {
    transform: translateX(6px);
}

/* ---------- About Section ---------- */
.section-about {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2.5rem 8rem;
}

.about-inner {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark-sepia);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-umber);
    margin-bottom: 1.25rem;
}

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

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(107, 90, 72, 0.1);
    padding: 3rem 2.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-sepia);
    margin-bottom: 0.75rem;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--faded-olive);
    margin-bottom: 1.5rem;
}

.footer-divider {
    width: 40px;
    height: 1.5px;
    background: var(--copper);
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--faded-olive);
    opacity: 0.7;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.7s var(--spring);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

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

    .header-nav {
        gap: 1.25rem;
    }

    .site-header {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .section-featured,
    .section-grid,
    .section-about {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .featured-card {
        padding: 2rem;
    }

    .prototype-card {
        padding: 2rem;
    }

    .featured-details {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .header-nav {
        display: none;
    }
}
