/* ============================================
   showa.boo — Showa-era Brutalist Design
   ============================================ */

/* --- Custom Properties --- */
:root {
    --raw-concrete: #b8b0a4;
    --night-concrete: #4a4440;
    --neon-amber: #e8a84c;
    --fluorescent-pink: #e87878;
    --overcast-cream: #d4ccc0;
    --shadow-black: #2a2624;
    --rain-glass: #c4beb4;

    --glow-rest: 0 0 5px rgba(232, 168, 76, 0.2);
    --glow-active: 0 0 10px #e8a84c, 0 0 30px rgba(232, 168, 76, 0.3);
    --glow-intense: 0 0 10px #e8a84c, 0 0 30px #e8a84c, 0 0 60px rgba(232, 168, 76, 0.4);
    --glow-pink: 0 0 10px #e87878, 0 0 30px rgba(232, 120, 120, 0.3);

    --font-headline: 'Archivo', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.75;
    color: var(--shadow-black);
    background-color: var(--raw-concrete);
    overflow-x: hidden;
}

/* --- SVG Noise (hidden, used as texture source) --- */
.noise-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--raw-concrete);
    overflow: hidden;
}

.hero-grain {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(42, 38, 36, 0.015) 2px,
            rgba(42, 38, 36, 0.015) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(42, 38, 36, 0.01) 3px,
            rgba(42, 38, 36, 0.01) 6px
        );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeInHero 600ms ease forwards;
}

.hero-kanji {
    font-family: var(--font-japanese);
    font-weight: 700;
    font-size: clamp(72px, 15vw, 200px);
    color: var(--neon-amber);
    text-shadow: var(--glow-intense);
    letter-spacing: 0.05em;
    line-height: 1;
    opacity: 0;
    animation: neonReveal 1200ms 600ms ease forwards;
}

.hero-boo {
    display: block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(36px, 8vw, 100px);
    color: var(--fluorescent-pink);
    text-shadow: var(--glow-pink);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    opacity: 0;
    animation: booAppear 600ms 1800ms ease forwards, flicker 4s 2400ms infinite;
}

.neon-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 700ms 2800ms ease forwards;
}

.neon-line-left,
.neon-line-right {
    display: block;
    height: 2px;
    width: 0;
    background: var(--neon-amber);
    box-shadow: 0 0 8px var(--neon-amber), 0 0 20px rgba(232, 168, 76, 0.3);
}

.neon-line-left {
    animation: lineExtendLeft 700ms 2800ms ease forwards;
}

.neon-line-right {
    animation: lineExtendRight 700ms 2800ms ease forwards;
}

.hero-tagline {
    font-family: var(--font-japanese);
    font-weight: 500;
    font-size: clamp(14px, 2vw, 20px);
    color: rgba(232, 168, 76, 0.6);
    letter-spacing: 0.2em;
    margin-top: 24px;
    opacity: 0;
    animation: fadeIn 800ms 3200ms ease forwards;
}

/* --- Corridor Sections --- */
.corridor-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
}

.corridor-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(42, 38, 36, 0.02) 2px,
            rgba(42, 38, 36, 0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.corridor-dark {
    background-color: var(--night-concrete);
    color: var(--overcast-cream);
}

.corridor-light {
    background-color: var(--overcast-cream);
    color: var(--shadow-black);
}

.corridor-inner {
    position: relative;
    width: 85%;
    max-width: 900px;
    margin: 0 auto;
    border-left: 4px solid var(--neon-amber);
    padding-left: 40px;
    z-index: 1;
}

/* --- Depth Panels --- */
.depth-panel {
    position: relative;
    padding: 50px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.depth-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(196, 190, 180, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 0;
    border: 1px solid rgba(196, 190, 180, 0.3);
}

.corridor-dark .glass-overlay {
    background: rgba(74, 68, 64, 0.7);
    border-color: rgba(74, 68, 64, 0.4);
}

.panel-content {
    position: relative;
    z-index: 1;
}

/* --- Tin Sign --- */
.tin-sign {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--night-concrete);
    transform: rotate(-0.5deg);
    margin-bottom: 24px;
    background: rgba(42, 38, 36, 0.05);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.tin-sign:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: var(--glow-active);
}

.corridor-dark .tin-sign {
    border-color: var(--overcast-cream);
    background: rgba(212, 204, 192, 0.05);
}

.tin-sign-alt {
    transform: rotate(0.5deg);
}

.tin-sign-alt:hover {
    transform: rotate(0deg) translateY(-2px);
}

.tin-sign-text {
    font-family: var(--font-japanese);
    font-weight: 700;
    font-size: clamp(18px, 3vw, 28px);
    color: var(--neon-amber);
    text-shadow: var(--glow-rest);
    transition: text-shadow 300ms ease;
}

.tin-sign:hover .tin-sign-text {
    text-shadow: var(--glow-active);
}

/* --- Section Typography --- */
.section-heading {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(32px, 6vw, 64px);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    line-height: 1.1;
}

.corridor-dark .section-heading {
    color: var(--overcast-cream);
}

.corridor-light .section-heading {
    color: var(--shadow-black);
}

.section-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 680px;
}

.section-body.emphasis {
    font-weight: 600;
    font-style: italic;
    color: var(--neon-amber);
    text-shadow: var(--glow-rest);
    border-left: 2px solid var(--neon-amber);
    padding-left: 16px;
    margin-top: 8px;
}

.corridor-light .section-body {
    color: var(--shadow-black);
}

.corridor-dark .section-body {
    color: rgba(212, 204, 192, 0.9);
}

/* --- Footer --- */
.site-footer {
    position: relative;
    background-color: var(--shadow-black);
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(184, 176, 164, 0.02) 2px,
            rgba(184, 176, 164, 0.02) 4px
        );
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-neon {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
}

.footer-kanji {
    font-family: var(--font-japanese);
    font-weight: 700;
    color: var(--neon-amber);
    text-shadow: var(--glow-active);
}

.footer-dot {
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--overcast-cream);
    opacity: 0.5;
}

.footer-boo {
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--fluorescent-pink);
    text-shadow: var(--glow-pink);
    animation: flicker 4s infinite;
}

.footer-text {
    font-family: var(--font-japanese);
    font-weight: 500;
    font-size: clamp(13px, 1.4vw, 16px);
    color: rgba(212, 204, 192, 0.5);
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.footer-line {
    width: 120px;
    height: 2px;
    background: var(--neon-amber);
    box-shadow: 0 0 8px var(--neon-amber);
    margin: 0 auto;
    opacity: 0.5;
}

/* --- Keyframe Animations --- */
@keyframes fadeInHero {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes neonReveal {
    0% {
        opacity: 0;
        text-shadow: 0 0 0 transparent;
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(232, 168, 76, 0.2);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 10px #e8a84c, 0 0 30px #e8a84c, 0 0 60px rgba(232, 168, 76, 0.4);
    }
}

@keyframes booAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flicker {
    0% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.4; }
    94% { opacity: 1; }
    96% { opacity: 0.6; }
    97% { opacity: 1; }
    98% { opacity: 0.4; }
    99% { opacity: 1; }
    100% { opacity: 1; }
}

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

@keyframes lineExtendLeft {
    from { width: 0; }
    to { width: clamp(60px, 15vw, 180px); }
}

@keyframes lineExtendRight {
    from { width: 0; }
    to { width: clamp(60px, 15vw, 180px); }
}

/* --- Link/Interactive Styles --- */
a {
    color: var(--neon-amber);
    text-decoration: none;
    position: relative;
    transition: color 200ms ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-amber);
    box-shadow: 0 0 6px var(--neon-amber);
    transition: width 300ms ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: var(--fluorescent-pink);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .corridor-inner {
        width: 92%;
        padding-left: 24px;
    }

    .depth-panel {
        padding: 30px 24px;
    }

    .hero-kanji {
        font-size: clamp(56px, 20vw, 120px);
    }

    .hero-boo {
        font-size: clamp(28px, 10vw, 60px);
    }
}

@media (max-width: 480px) {
    .corridor-inner {
        width: 95%;
        padding-left: 16px;
        border-left-width: 3px;
    }

    .depth-panel {
        padding: 24px 16px;
    }

    .tin-sign {
        padding: 4px 12px;
    }
}
