/* ==========================================================
   addrproxy.com — Brutalist Greenhouse
   Horizontal-scroll, earth tones, botanical line art
   ========================================================== */

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

html {
    overflow: hidden;
    height: 100vh;
}

body {
    background-color: #f4efe6;
    color: #2d2016;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- Progress Bar --- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 2px;
    background-color: #4a3728;
    z-index: 1000;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background-color: #5c7a4b;
    transition: width 100ms linear;
}

/* --- Panel Indicator --- */
#panel-indicator {
    position: fixed;
    top: 24px;
    right: 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #c4b89a;
    z-index: 1000;
}

/* --- Lichen Gold highlight for active states --- */
#panel-indicator:hover {
    color: #b8a04c;
}

/* --- Scroll Hint --- */
#scroll-hint {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 600ms ease;
}

#scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

#scroll-hint-arrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 24px;
    color: #8a7a65;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Scroll Container --- */
#scroll-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- Panel Base --- */
.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.panel-content {
    width: 100%;
    height: 100%;
    padding: 80px 64px;
    position: relative;
}

/* --- Typography --- */
.section-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d2016;
    margin-bottom: 24px;
}

.block-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d2016;
    margin-bottom: 16px;
}

.body-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: #3b3025;
    margin-bottom: 16px;
}

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

.caption-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7a65;
}

.botanical-label {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: #5c7a4b;
    display: block;
}

/* --- Scale-Hover Pattern --- */
.hoverable {
    transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.hoverable:hover {
    transform: scale(1.04);
    border-color: #b8a04c;
}

/* ==========================================================
   PANEL 1 — Entry
   ========================================================== */
#panel-1 .panel-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.terminal-prompt {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: #2d2016;
    margin-bottom: 24px;
}

.entry-rule {
    border: none;
    border-top: 2px solid #2d2016;
    width: 60%;
    margin-bottom: 48px;
}

.fern-illustration {
    width: 200px;
    height: 500px;
    position: absolute;
    bottom: 80px;
    left: 64px;
}

.botanical-label-fern {
    position: absolute;
    bottom: 56px;
    left: 80px;
    font-size: 14px;
}

/* ==========================================================
   PANEL 2 — Concept
   ========================================================== */
.panel-2-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.concept-block {
    width: 40%;
    border: 3px solid #2d2016;
    padding: 40px;
    margin-top: 40px;
}

.root-illustration {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.root-svg {
    width: 80%;
    max-height: 70vh;
}

.botanical-label-root {
    position: absolute;
    bottom: -40px;
    text-align: center;
}

/* ==========================================================
   PANEL 3 — Mechanism
   ========================================================== */
#panel-3 {
    position: relative;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        to right,
        transparent,
        transparent calc((100% - 11 * 24px) / 12 - 0.5px),
        rgba(196, 184, 154, 0.3) calc((100% - 11 * 24px) / 12 - 0.5px),
        rgba(196, 184, 154, 0.3) calc((100% - 11 * 24px) / 12 + 0.5px),
        transparent calc((100% - 11 * 24px) / 12 + 0.5px),
        transparent calc((100% - 11 * 24px) / 12 + 24px)
    );
    background-size: calc((100% - 11 * 24px) / 12 + 24px) 100%;
}

.panel-3-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.mechanism-block {
    padding: 32px 40px;
    background-color: #f4efe6;
    max-width: 50%;
}

.mechanism-block-1 {
    border-left: 8px solid #2d2016;
    align-self: flex-start;
    margin-left: 5%;
}

.mechanism-block-2 {
    border-left: 8px solid #4a3728;
    align-self: center;
}

.mechanism-block-3 {
    border-left: 8px solid #a0876e;
    align-self: flex-end;
    margin-right: 5%;
}

.tendril-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================
   PANEL 4 — Architecture
   ========================================================== */
#panel-4 {
    position: relative;
}

.stem-cross-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    opacity: 0.4;
    pointer-events: none;
}

.panel-4-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 120px;
}

.architecture-block {
    background-color: rgba(244, 239, 230, 0.95);
    border: 3px solid #2d2016;
    padding: 32px;
    max-width: 320px;
}

.botanical-label-stem {
    position: absolute;
    bottom: 32px;
    right: 64px;
    font-size: 16px;
}

/* ==========================================================
   PANEL 5 — Contact / End
   ========================================================== */
.panel-5-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-right: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 64px;
}

.contact-line {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    color: #2d2016;
    letter-spacing: 0.02em;
}

.contact-line.caption-text {
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7a65;
}

.pressed-flower {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flower-svg {
    width: 200px;
    height: 260px;
}

.botanical-label-flower {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.end-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background-color: #2d2016;
}

/* ==========================================================
   Responsive (keep horizontal, adjust padding)
   ========================================================== */
@media (max-width: 768px) {
    .panel-content {
        padding: 48px 32px;
    }

    .panel-2-layout {
        flex-direction: column;
    }

    .concept-block {
        width: 90%;
    }

    .root-illustration {
        width: 100%;
        height: auto;
        margin-top: 32px;
    }

    .mechanism-block {
        max-width: 85%;
    }

    .panel-4-layout {
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
    }

    .architecture-block {
        max-width: 90%;
    }

    .section-heading {
        font-size: 22px;
    }

    .block-heading {
        font-size: 16px;
    }

    .fern-illustration {
        width: 150px;
        height: 380px;
    }
}
