/* ===================================
   prototype.bar - Glassmorphism + Ma
   Fonts: "Barlow Condensed" (Google Fonts), "Source Sans 3" (Google Fonts), "Space Mono" (Google Fonts)
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: #3C2A1F;
    background: #8B6B4A;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.panel-label,
.panel-data,
.flow-sublabel,
.footer-year {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
}

/* --- Glassmorphic Panel Base --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Welcome Pour Section
   =================================== */
#welcome-pour {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #D4A574 0%, #8B6B4A 100%);
    z-index: 0;
}

/* Organic Blob Background Elements */
.blob {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
}

.blob path {
    fill: rgba(255, 255, 255, 0.12);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1px;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -80px;
    left: -100px;
    animation: blobFloat1 20s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    right: -50px;
    animation: blobFloat2 18s ease-in-out infinite;
}

.blob-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    animation: blobFloat3 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, 15px) rotate(5deg); }
    66% { transform: translate(-10px, 8px) rotate(-3deg); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, -10px) rotate(-4deg); }
    66% { transform: translate(10px, -5px) rotate(3deg); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translateY(-50%) translate(0, 0) rotate(0deg); }
    33% { transform: translateY(-50%) translate(12px, -8px) rotate(3deg); }
    66% { transform: translateY(-50%) translate(-8px, 12px) rotate(-2deg); }
}

/* Wordmark */
.welcome-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.wordmark {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(42px, 8vw, 120px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F5EDE0;
    opacity: 0;
    animation: wordmarkFadeIn 0.8s ease-out 0.4s forwards;
}

@keyframes wordmarkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Corner Panels */
.corner-panel {
    position: absolute;
    z-index: 4;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 180px;
}

.corner-panel-tr {
    top: 40px;
    right: 40px;
    opacity: 0;
    transform: translate(20px, -20px);
    animation: panelSlideInTR 0.5s ease-out 0.8s forwards;
}

.corner-panel-bl {
    bottom: 40px;
    left: 40px;
    opacity: 0;
    transform: translate(-20px, 20px);
    animation: panelSlideInBL 0.5s ease-out 0.8s forwards;
}

@keyframes panelSlideInTR {
    from { opacity: 0; transform: translate(20px, -20px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes panelSlideInBL {
    from { opacity: 0; transform: translate(-20px, 20px); }
    to { opacity: 1; transform: translate(0, 0); }
}

.panel-label {
    color: #3C2A1F;
    text-transform: uppercase;
    opacity: 0.7;
}

.panel-data {
    color: #3C2A1F;
    font-size: 14px;
    opacity: 0.85;
}

/* Micro Charts */
.micro-chart {
    width: 100%;
    height: auto;
}

.chart-bar {
    fill: rgba(196, 139, 74, 0.3);
    stroke: #3C2A1F;
    stroke-width: 1.5;
}

.chart-line {
    fill: none;
    stroke: #3C2A1F;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-dot {
    fill: #C48B4A;
    stroke: #3C2A1F;
    stroke-width: 1;
}

.chart-area {
    fill: rgba(196, 139, 74, 0.3);
    stroke: none;
}

.chart-line-path {
    fill: none;
    stroke: #3C2A1F;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-radial-bg {
    fill: none;
    stroke: rgba(60, 42, 31, 0.15);
    stroke-width: 6;
}

.chart-radial {
    fill: none;
    stroke: #C48B4A;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 175.93;
    stroke-dashoffset: 38.7;
    transform-origin: 80px 35px;
    transform: rotate(-90deg);
}

.chart-radial-text {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    fill: #3C2A1F;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* ===================================
   Concepts Section
   =================================== */
#concepts {
    position: relative;
    background: linear-gradient(180deg, #8B6B4A 0%, #D4A574 50%, #8B6B4A 100%);
    padding: 120px 60px;
}

.concepts-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.concept-panel {
    padding: 36px 40px;
    max-width: 480px;
}

.concept-left {
    margin-right: auto;
    margin-left: 0;
}

.concept-right {
    margin-left: auto;
    margin-right: 0;
}

.concept-title {
    font-size: clamp(28px, 4.5vw, 48px);
    color: #3C2A1F;
    margin-bottom: 12px;
    line-height: 1.1;
}

.concept-desc {
    color: #3C2A1F;
    margin-bottom: 20px;
    opacity: 0.85;
}

.concept-chart {
    margin-bottom: 12px;
    height: 70px;
}

/* ===================================
   Process Flow Section
   =================================== */
#process-flow {
    position: relative;
    background: linear-gradient(135deg, #8B6B4A 0%, #D4A574 100%);
    min-height: 80vh;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-heading {
    font-size: clamp(28px, 4.5vw, 64px);
    color: #F5EDE0;
    text-align: center;
    margin-bottom: 60px;
}

.flow-container {
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.flow-track {
    min-width: 900px;
}

.flow-svg {
    width: 100%;
    height: auto;
}

.flow-connector {
    stroke: rgba(255, 255, 255, 0.15);
    fill: none;
    stroke-width: 1.5px;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease-out;
}

.flow-connector.visible {
    stroke-dashoffset: 0;
}

.flow-blob {
    fill: rgba(255, 255, 255, 0.12);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1px;
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.flow-blob.visible {
    opacity: 1;
}

.flow-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    fill: #F5EDE0;
    text-anchor: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.6s ease-out 0.3s;
}

.flow-label.visible {
    opacity: 1;
}

.flow-sublabel {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    fill: #F5EDE0;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.6s ease-out 0.4s;
}

.flow-sublabel.visible {
    opacity: 0.7;
}

/* ===================================
   Menu Footer
   =================================== */
#menu-footer {
    position: relative;
    background: linear-gradient(180deg, #8B6B4A 0%, #D4A574 30%, #8B6B4A 100%);
    padding: 120px 60px;
}

.footer-panel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 56px;
}

.footer-heading {
    font-size: clamp(28px, 4.5vw, 56px);
    color: #3C2A1F;
    margin-bottom: 40px;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.menu-category {
    padding: 8px 0;
}

.menu-cat-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.5vw, 28px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #C48B4A;
    margin-bottom: 8px;
}

.menu-cat-desc {
    color: #3C2A1F;
    opacity: 0.8;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(60, 42, 31, 0.15);
    padding-top: 24px;
}

.footer-mark {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3C2A1F;
    opacity: 0.6;
}

.footer-year {
    color: #3C2A1F;
    opacity: 0.5;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    #concepts {
        padding: 80px 24px;
    }

    .concepts-container {
        gap: 48px;
    }

    .concept-panel {
        max-width: 100%;
    }

    .concept-left,
    .concept-right {
        margin-left: 0;
        margin-right: 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #menu-footer {
        padding: 80px 24px;
    }

    .footer-panel {
        padding: 32px 24px;
    }

    .corner-panel {
        width: 150px;
        padding: 12px 14px;
    }

    .corner-panel-tr {
        top: 20px;
        right: 20px;
    }

    .corner-panel-bl {
        bottom: 20px;
        left: 20px;
    }

    #process-flow {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .corner-panel {
        width: 130px;
    }

    .wordmark {
        font-size: clamp(32px, 10vw, 60px);
    }
}
