/* ============================================================
   HHASSL.com - Art Deco Brutalist Horizontal Scroll Experience
   ============================================================ */

/* CSS Custom Properties */
:root {
    --color-dark: #0B0E17;
    --color-gold: #C49A2A;
    --color-blue: #1A3A6B;
    --color-slab: #8C8578;
    --color-light: #EDE8D9;
    --color-amber: #E8B830;
    --color-red: #8B2500;
    --color-leather: #2A1F14;
    --font-display: 'Poiret One', cursive;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-body);
    font-weight: 300;
}

/* ============================================================
   Progress Bar
   ============================================================ */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--color-gold);
    z-index: 1000;
    transition: none;
}

/* ============================================================
   Scroll Container
   ============================================================ */
#scroll-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

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

.panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   Bounce-Enter Animation
   ============================================================ */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-animate] {
    opacity: 0;
    transform: scale(0.3);
}

[data-animate].animated {
    animation: bounceIn 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* ============================================================
   Deco Border Patterns (Stepped/Ziggurat)
   ============================================================ */
.deco-border-top,
.deco-border-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 3;
    background: repeating-linear-gradient(
        90deg,
        var(--color-gold) 0px,
        var(--color-gold) 20px,
        var(--color-dark) 20px,
        var(--color-dark) 28px,
        var(--color-gold) 28px,
        var(--color-gold) 36px,
        var(--color-dark) 36px,
        var(--color-dark) 40px
    );
}

.deco-border-top {
    top: 0;
}

.deco-border-bottom {
    bottom: 0;
}

.deco-border-top--inverted,
.deco-border-bottom--inverted {
    background: repeating-linear-gradient(
        90deg,
        var(--color-dark) 0px,
        var(--color-dark) 20px,
        var(--color-gold) 20px,
        var(--color-gold) 28px,
        var(--color-dark) 28px,
        var(--color-dark) 36px,
        var(--color-gold) 36px,
        var(--color-gold) 40px
    );
}

/* ============================================================
   Angled Line Dividers
   ============================================================ */
.angled-lines {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.angled-lines span {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
}

/* ============================================================
   Panel 1: Entry Slab
   ============================================================ */
.panel-entry {
    background-color: var(--color-dark);
}

/* Concrete Texture */
.concrete-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--color-dark);
    background-image:
        linear-gradient(27deg, rgba(140,133,120,0.04) 0%, transparent 50%),
        linear-gradient(127deg, rgba(140,133,120,0.06) 0%, transparent 40%),
        linear-gradient(217deg, rgba(140,133,120,0.03) 0%, transparent 60%),
        linear-gradient(317deg, rgba(140,133,120,0.05) 0%, transparent 45%),
        linear-gradient(72deg, rgba(237,232,217,0.02) 0%, transparent 30%),
        linear-gradient(192deg, rgba(237,232,217,0.03) 0%, transparent 35%);
    filter: contrast(1.05) brightness(0.95);
}

.title-block {
    text-align: center;
    position: relative;
}

.title-main {
    font-family: var(--font-display);
    font-size: 20vw;
    letter-spacing: 0.15em;
    color: var(--color-light);
    line-height: 0.85;
    white-space: nowrap;
    text-transform: uppercase;
}

.title-sub {
    font-family: var(--font-heading);
    font-size: 4vw;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-top: 24px;
    text-transform: uppercase;
}

/* Gold Rule with Shimmer */
.gold-rule {
    width: 80vw;
    height: 4px;
    background: var(--color-gold);
    margin: 24px auto;
    position: relative;
    overflow: hidden;
}

.gold-rule-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(232, 184, 48, 0.8) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(232, 184, 48, 0.8) 60%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.gold-rule--inverted {
    background: var(--color-dark);
}

.gold-rule--inverted .gold-rule-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(11, 14, 23, 0.6) 40%,
        rgba(26, 58, 107, 0.9) 50%,
        rgba(11, 14, 23, 0.6) 60%,
        transparent 100%
    );
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-gold);
    opacity: 0.7;
}

.chevron-arrow {
    animation: pulseChevron 2s ease-in-out infinite;
}

.chevron-arrow--delayed {
    animation-delay: 0.3s;
}

@keyframes pulseChevron {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* ============================================================
   Panel 2: Manifesto Wall
   ============================================================ */
.panel-manifesto {
    background-color: var(--color-leather);
}

/* Leather Texture */
.leather-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--color-leather);
    background-image:
        repeating-radial-gradient(circle at 20% 30%, rgba(196,154,42,0.03) 0px, transparent 2px),
        repeating-radial-gradient(circle at 60% 70%, rgba(0,0,0,0.08) 0px, transparent 3px),
        repeating-radial-gradient(circle at 80% 20%, rgba(196,154,42,0.02) 0px, transparent 4px),
        repeating-radial-gradient(circle at 40% 90%, rgba(0,0,0,0.06) 0px, transparent 2px),
        radial-gradient(ellipse at center, rgba(42,31,20,0) 0%, rgba(0,0,0,0.4) 100%);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.manifesto-content {
    justify-content: center;
    align-items: flex-start;
    padding: 10vh 10vw;
    gap: 0;
}

.manifesto-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.manifesto-text {
    font-family: var(--font-heading);
    font-size: 5vw;
    letter-spacing: 0.2em;
    color: var(--color-light);
    text-transform: uppercase;
    white-space: nowrap;
}

.diamond-bullet {
    flex-shrink: 0;
}

/* Staircase offset pattern */
.manifesto-line--1 { margin-left: 0; }
.manifesto-line--2 { margin-left: 5vw; }
.manifesto-line--3 { margin-left: 10vw; }
.manifesto-line--4 { margin-left: 15vw; }
.manifesto-line--5 { margin-left: 20vw; }
.manifesto-line--6 { margin-left: 25vw; }
.manifesto-line--7 { margin-left: 30vw; }
.manifesto-line--8 { margin-left: 35vw; }

/* ============================================================
   Panel 3: Grid Vault
   ============================================================ */
.panel-grid {
    background-color: var(--color-dark);
}

.grid-content {
    padding: 48px;
    gap: 48px;
}

.section-header {
    font-family: var(--font-display);
    font-size: 6vw;
    letter-spacing: 0.08em;
    color: var(--color-light);
    text-transform: uppercase;
}

.grid-vault {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    border: 8px solid var(--color-slab);
    width: 70vw;
    max-width: 900px;
}

.grid-cell {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--color-slab);
    background: var(--color-dark);
    padding: 20px;
    cursor: pointer;
    transition: none;
}

.grid-cell svg {
    width: 60%;
    height: 60%;
}

.grid-cell:hover {
    background: var(--color-gold);
}

.grid-cell:hover svg polygon,
.grid-cell:hover svg circle,
.grid-cell:hover svg polyline,
.grid-cell:hover svg rect,
.grid-cell:hover svg line {
    stroke: var(--color-dark);
}

/* ============================================================
   Panel 4: Corridor
   ============================================================ */
.panel-corridor {
    flex: 0 0 60vw;
    min-width: 60vw;
    background-color: var(--color-dark);
}

.corridor-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 100%;
}

.corridor-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 48px;
    align-items: center;
}

.corridor-column span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-slab);
}

.gold-stripe {
    width: 4px;
    height: 70vh;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--color-gold) 15%,
        var(--color-amber) 50%,
        var(--color-gold) 85%,
        transparent 100%
    );
    position: relative;
}

.gold-stripe::before,
.gold-stripe::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(232, 184, 48, 0.4) 30%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(232, 184, 48, 0.4) 70%,
        transparent 100%
    );
}

/* ============================================================
   Panel 5: Exit Slab
   ============================================================ */
.panel-exit {
    background: var(--color-gold);
    position: relative;
}

/* Concrete texture for exit text */
.title-main--exit {
    font-family: var(--font-display);
    font-size: 20vw;
    letter-spacing: 0.15em;
    color: var(--color-dark);
    line-height: 0.85;
    white-space: nowrap;
    text-transform: uppercase;
    background:
        linear-gradient(27deg, rgba(140,133,120,0.15) 0%, transparent 50%),
        linear-gradient(127deg, rgba(140,133,120,0.2) 0%, transparent 40%),
        linear-gradient(217deg, rgba(140,133,120,0.1) 0%, transparent 60%);
    background-color: var(--color-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--color-dark);
}

.title-block--exit {
    text-align: center;
}

.title-sub--exit {
    font-family: var(--font-heading);
    font-size: 4vw;
    letter-spacing: 0.2em;
    color: var(--color-dark);
    margin-top: 24px;
    text-transform: uppercase;
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 768px) {
    .title-main {
        font-size: 16vw;
    }

    .title-main--exit {
        font-size: 16vw;
    }

    .manifesto-text {
        font-size: 7vw;
    }

    .manifesto-line--1 { margin-left: 0; }
    .manifesto-line--2 { margin-left: 3vw; }
    .manifesto-line--3 { margin-left: 6vw; }
    .manifesto-line--4 { margin-left: 9vw; }
    .manifesto-line--5 { margin-left: 12vw; }
    .manifesto-line--6 { margin-left: 15vw; }
    .manifesto-line--7 { margin-left: 18vw; }
    .manifesto-line--8 { margin-left: 21vw; }

    .grid-vault {
        width: 85vw;
    }

    .section-header {
        font-size: 8vw;
    }

    .panel-corridor {
        flex: 0 0 80vw;
        min-width: 80vw;
    }

    .corridor-column {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .title-main,
    .title-main--exit {
        font-size: 14vw;
    }

    .manifesto-text {
        font-size: 8vw;
    }

    .grid-vault {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        width: 80vw;
    }

    .corridor-column span {
        font-size: 12px;
    }
}
