/* hinagiku.stream — Neubrutalist Luxury × Japanese Botanical
   Palette: #0A0A0A (Obsidian), #C9A84C (Raw Gold), #A67C3A (Burnished Brass),
            #F4EDD8 (Parchment), #1A1208 (Sable), #000000 (True Black),
            #FDF6E3 (Rich Cream), #D4C9A8 (Aged Linen)
   Fonts: Cormorant Garamond, EB Garamond, Space Mono
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    font-size: 16px;
}

body {
    background: #0A0A0A;
    color: #FDF6E3;
    font-family: 'EB Garamond', 'Georgia', serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    background: #C9A84C;
    z-index: 1000;
    width: 0%;
    transition: none;
    pointer-events: none;
}

/* ============================================================
   SCROLL CONTAINER
   ============================================================ */

#scroll-container {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    height: 100vh;
    width: 100vw;
    cursor: default;
}

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

#scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================
   PANELS — BASE
   ============================================================ */

.panel {
    flex-shrink: 0;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   PANEL TYPES
   ============================================================ */

/* Dark / Obsidian panels */
.panel-dark {
    background: #0A0A0A;
}

/* Anchor panels — Gold fill */
.panel-anchor {
    background: #C9A84C;
    border-right: 3px solid #000000;
    box-shadow: 6px 0px 0px #000000;
    flex-direction: column;
    gap: 24px;
}

.panel-anchor-dark {
    background: #1A1208;
    border-right: 3px solid #000000;
    box-shadow: 6px 0px 0px #000000;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
}

/* Ripple panels */
.panel-ripple {
    background: #0A0A0A;
    align-items: center;
    justify-content: center;
}

/* Text corridor panels */
.panel-text-corridor {
    background: #0A0A0A;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8vw;
}

/* Parchment panel */
.panel-parchment {
    background: #F4EDD8;
    border-left: 3px solid #000000;
    border-right: 3px solid #000000;
    align-items: center;
    justify-content: center;
}

/* Final anchor panel */
.panel-final {
    background: #C9A84C;
    border-left: 3px solid #000000;
}

/* ============================================================
   NOISE OVERLAY
   ============================================================ */

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/noise.svg");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   BUBBLES
   ============================================================ */

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.08);
    background: transparent;
    pointer-events: all;
    transition: border-color 600ms ease;
    z-index: 2;
}

.bubble:hover {
    border-color: rgba(201, 168, 76, 0.4);
}

.panel-parchment .bubble {
    border-color: rgba(10, 10, 10, 0.06);
}

.panel-parchment .bubble:hover {
    border-color: rgba(10, 10, 10, 0.2);
}

/* ============================================================
   ANCHOR PANEL — IDENTITY (Panel 1)
   ============================================================ */

.anchor-icon {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iso-daisy {
    filter: drop-shadow(4px 4px 0px #000000);
}

.site-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 56px);
    color: #0A0A0A;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 3;
    text-align: center;
    line-height: 1;
}

.title-dot {
    color: #000000;
}

.site-sub {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #1A1208;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 3;
    text-align: center;
    line-height: 1.6;
}

/* ============================================================
   DISPLAY WORD PANELS
   ============================================================ */

.display-word {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(80px, 12vw, 160px);
    color: #C9A84C;
    letter-spacing: -0.02em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 3;
    white-space: nowrap;
    line-height: 1;
}

.display-word-sub {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #D4C9A8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: absolute;
    bottom: calc(50% - 80px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    white-space: nowrap;
}

/* ============================================================
   TEXT CORRIDOR (Panel 3)
   ============================================================ */

.text-corridor-inner {
    display: flex;
    flex-direction: row;
    gap: 8vw;
    max-width: 100%;
    position: relative;
    z-index: 3;
    padding: 0 4vw;
    align-items: flex-start;
}

.text-column {
    flex: 1;
    min-width: 0;
    max-width: 40vw;
    border-top: 2px solid #C9A84C;
    padding-top: 32px;
}

.drop-cap {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 96px;
    line-height: 0.8;
    float: left;
    margin-right: 12px;
    margin-bottom: 4px;
    color: #C9A84C;
}

.body-text {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 18px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    color: #D4C9A8;
    margin-bottom: 24px;
}

.body-text em {
    color: #C9A84C;
    font-style: italic;
}

.meta-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #A67C3A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.6;
    display: block;
    margin-top: 16px;
}

/* ============================================================
   RIPPLE PANELS
   ============================================================ */

.ripple-container {
    width: 400px;
    height: 400px;
    position: relative;
    z-index: 3;
}

.ripple-svg {
    width: 100%;
    height: 100%;
}

@keyframes ripple-expand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.ring {
    transform-origin: 200px 200px;
    animation: ripple-expand 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 0.8s; }
.ring-3 { animation-delay: 1.6s; }
.ring-4 { animation-delay: 2.4s; }
.ring-5 { animation-delay: 3.2s; }
.ring-6 { animation-delay: 4.0s; }

/* ============================================================
   FLORA PANEL (Panel 5)
   ============================================================ */

.iso-cluster {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

.flora-text {
    position: relative;
    z-index: 3;
    max-width: 280px;
    border-left: 3px solid #C9A84C;
    padding-left: 24px;
}

.section-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(40px, 5vw, 64px);
    color: #C9A84C;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.heading-english {
    font-size: 0.5em;
    color: #D4C9A8;
    display: block;
    font-weight: 300;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================================
   BRUTAL CARDS (Panel 7)
   ============================================================ */

.cards-layout {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    padding: 0 5vw;
    position: relative;
    z-index: 3;
    height: auto;
    max-height: 70vh;
    flex-wrap: nowrap;
}

.brutal-card {
    background: #0A0A0A;
    border: 2px solid #000000;
    box-shadow: 6px 6px 0px #000000;
    padding: 32px 28px;
    min-width: 240px;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
    cursor: default;
    transition: box-shadow 200ms ease, transform 200ms ease;
    margin-right: 24px;
}

.brutal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #C9A84C;
    pointer-events: none;
}

.brutal-card:hover {
    box-shadow: 3px 3px 0px #000000;
    transform: translate(3px, 3px);
}

.brutal-card--gold {
    background: #C9A84C;
    border: 2px solid #000000;
    box-shadow: 6px 6px 0px #000000;
}

.brutal-card--gold::after {
    border-color: #000000;
}

.brutal-card--gold:hover {
    box-shadow: 3px 3px 0px #000000;
    transform: translate(3px, 3px);
}

.card-icon {
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 28px;
    color: #C9A84C;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.card-body {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #D4C9A8;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.card-meta {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #A67C3A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    border-top: 1px solid #1A1208;
    padding-top: 12px;
}

/* ============================================================
   ABOUT PANEL (Panel 9)
   ============================================================ */

.about-content {
    position: relative;
    z-index: 3;
    max-width: 68vw;
    padding: 0 4vw;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    margin: 32px 0;
    border-top: 2px solid #0A0A0A;
    padding-top: 32px;
}

.about-content .body-text {
    color: #0A0A0A;
}

.about-meta {
    display: flex;
    gap: 32px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(10, 10, 10, 0.3);
}

.about-meta .meta-label {
    color: #A67C3A;
    margin-top: 0;
}

/* ============================================================
   FINAL PANEL (Panel 11)
   ============================================================ */

.final-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.final-text-block {
    text-align: center;
    position: relative;
    z-index: 4;
}

.final-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(56px, 8vw, 112px);
    color: #0A0A0A;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.final-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #1A1208;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
}

.final-text-block .body-text {
    color: #1A1208;
    max-width: 400px;
    margin: 0 auto 40px;
    font-style: italic;
}

/* ============================================================
   BRUTAL LINK
   ============================================================ */

.brutal-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0A0A0A;
    color: #C9A84C;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    padding: 14px 28px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: box-shadow 200ms ease, transform 200ms ease;
    cursor: pointer;
}

.brutal-link:hover {
    box-shadow: 2px 2px 0px #000000;
    transform: translate(2px, 2px);
    color: #F4EDD8;
}

.link-arrow {
    font-size: 16px;
    transition: transform 200ms ease;
}

.brutal-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */

.panel-reveal {
    opacity: 0;
    transform: translateY(20px);
}

.panel-reveal.visible {
    animation: panel-float-in 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes panel-float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   ABOUT PANEL SECTION HEADING OVERRIDE
   ============================================================ */

.panel-parchment .section-heading {
    color: #0A0A0A;
}

/* ============================================================
   UTILITY
   ============================================================ */

.panel > * {
    position: relative;
    z-index: 3;
}

.panel-anchor .site-title,
.panel-anchor .site-sub,
.panel-anchor .anchor-icon {
    z-index: 4;
}
