/* kaigenrei.com - Brutalist Documentary Archive */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: #D8D8D8;
    background: #1A1A1A;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: overlay;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Emergency Banner */
#emergency-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: #C0302A;
    z-index: 200;
    overflow: hidden;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

#emergency-banner.visible {
    transform: translateY(0);
}

.banner-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-banner 30s linear infinite;
}

.banner-scroll span {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #E8E8E8;
    letter-spacing: 0.08em;
    padding-right: 2rem;
}

@keyframes scroll-banner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Timeline Navigation */
#timeline-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-square {
    width: 10px;
    height: 10px;
    border: 1px solid #C0302A;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-square.active {
    background: #C0302A;
}

/* Document Meta */
.doc-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #808080;
    letter-spacing: 0.04em;
    border-left: 2px solid #E8C830;
    padding-left: 0.5rem;
}

/* =============================================
   HERO: The Proclamation
   ============================================= */

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #2A2A2A;
    margin-top: 36px;
    overflow: hidden;
}

.hero-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    background: #1A1A1A;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.kanji-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #E8E8E8;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

#diagonal-line {
    width: 0;
    height: 2px;
    background: #C0302A;
    margin: 1rem auto;
    transform: rotate(-5deg);
    transition: width 1s ease;
}

#diagonal-line.drawn {
    width: 200px;
}

.hero-domain {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    color: #C0302A;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-domain.visible {
    opacity: 1;
}

/* =============================================
   Archive Sections
   ============================================= */

.archive-section {
    position: relative;
    padding: 6rem 3rem;
    min-height: 80vh;
}

.archive-section.dark {
    background: #1A1A1A;
}

.archive-section.mid {
    background: #2A2A2A;
}

.diagonal-cut.top {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    color: #E8E8E8;
    margin-bottom: 1.2rem;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block p {
    margin-bottom: 0.8rem;
}

/* Redaction Bars */
.redact-bar {
    height: 6px;
    background: #0A0A0A;
    margin: 8px 0;
    transition: opacity 0.3s;
}

.redact-bar:hover {
    opacity: 0.3;
}

/* Emergency Stripe */
.emergency-stripe {
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #C0302A,
        #C0302A 20px,
        #1A1A1A 20px,
        #1A1A1A 40px
    );
    opacity: 0.2;
    margin: 1rem 0;
}

/* Slide In Animation */
.slide-in {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   Footer
   ============================================= */

#site-footer {
    padding: 3rem;
    text-align: center;
    background: #1A1A1A;
}

.footer-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: #C0302A;
    margin: 1rem 0 0.5rem;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    #timeline-nav { display: none; }
    .archive-section { padding: 4rem 1.5rem; }
}
