/* reiwa.bar — japanese-minimal, ma-negative-space, izakaya after hours */

:root {
    --charcoal-night: #0D0D0D;
    --rice-paper: #E8E0D4;
    --aged-bamboo: #A0937D;
    --warm-lacquer: #C17F59;
    --smoke-wood: #2A2520;
    --roasted-barley: #6B5E4F;
    --deep-ebony: #1A1612;
    --amber-pour: #D4A574;

    --font-heading: "Cormorant Garamond", "Cormorant", serif;
    --font-body: "Noto Sans JP", "Noto Sans", sans-serif;
    --font-accent: "Noto Serif JP", serif;
}

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

html {
    background: var(--charcoal-night);
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    background: var(--charcoal-night);
    color: var(--aged-bamboo);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 2.0;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ---------- ambient layer (warm glows + wood grain) ---------- */

.ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.85;
}

.glow-1 {
    width: 380px;
    height: 380px;
    top: 8vh;
    left: -120px;
    background: radial-gradient(circle at center, rgba(193, 127, 89, 0.05) 0%, rgba(193, 127, 89, 0) 70%);
}

.glow-2 {
    width: 300px;
    height: 300px;
    top: 38vh;
    right: -80px;
    background: radial-gradient(circle at center, rgba(193, 127, 89, 0.04) 0%, rgba(193, 127, 89, 0) 70%);
}

.glow-3 {
    width: 240px;
    height: 240px;
    top: 65vh;
    left: 18vw;
    background: radial-gradient(circle at center, rgba(212, 165, 116, 0.03) 0%, rgba(212, 165, 116, 0) 70%);
}

.glow-4 {
    width: 320px;
    height: 320px;
    top: 88vh;
    right: 14vw;
    background: radial-gradient(circle at center, rgba(193, 127, 89, 0.05) 0%, rgba(193, 127, 89, 0) 70%);
}

.grain {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--charcoal-night) 0,
        var(--charcoal-night) 9px,
        var(--smoke-wood) 9px,
        var(--smoke-wood) 10px
    );
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* ---------- counter / main ---------- */

.counter {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

/* ---------- emergence reveal animation ---------- */

.reveal {
    opacity: 0;
    transition: opacity 1200ms ease;
}

.reveal.is-visible {
    opacity: 1;
}

/* ---------- shared encounter ---------- */

.encounter {
    position: relative;
    width: 100%;
    padding: 160px 32px;
    scroll-snap-align: start;
}

.kanji-mark {
    display: block;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--warm-lacquer);
    margin-bottom: 28px;
}

.encounter-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 52px;
    letter-spacing: 0.06em;
    color: var(--rice-paper);
    line-height: 1.15;
    margin-bottom: 36px;
}

.encounter-subheading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 0.06em;
    color: var(--rice-paper);
    line-height: 1.2;
    margin-bottom: 22px;
}

.meta {
    display: block;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--roasted-barley);
    margin-top: 26px;
}

/* ---------- Encounter 1 — Entrance ---------- */

.encounter-entrance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px;
}

.entrance-inner {
    max-width: 640px;
}

.brand-mark {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.4em;
    color: var(--warm-lacquer);
    margin-bottom: 56px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 56px;
    letter-spacing: 0.12em;
    color: var(--rice-paper);
    line-height: 1;
    margin-bottom: 28px;
}

.brand-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--aged-bamboo);
    text-transform: lowercase;
    margin-bottom: 96px;
}

.threshold-line {
    width: 220px;
    height: 0.5px;
    background: var(--aged-bamboo);
    margin: 0 auto;
    opacity: 0.7;
}

/* ---------- noren divider ---------- */

.noren-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 40px 0;
    pointer-events: none;
}

.noren-panel {
    display: block;
    width: 2px;
    height: 60px;
    background: var(--aged-bamboo);
    opacity: 0.4;
}

/* ---------- Encounter 2 — Menu ---------- */

.encounter-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 8vw;
    gap: 0;
}

.menu-block {
    max-width: 520px;
    width: 100%;
    text-align: right;
    margin-bottom: 160px;
    padding-right: 8px;
}

.menu-block:last-of-type {
    margin-bottom: 0;
}

.menu-block .kanji-mark {
    text-align: right;
}

.menu-text {
    color: var(--aged-bamboo);
    font-size: 15px;
    line-height: 2.0;
    font-weight: 300;
}

/* ma marker — small square between blocks */

.ma-marker {
    display: block;
    width: 4px;
    height: 4px;
    background: var(--smoke-wood);
    margin: 80px 0 80px auto;
}

.ma-marker.centered {
    margin: 80px auto;
}

/* ---------- Encounter 3 — Conversation ---------- */

.encounter-conversation {
    display: flex;
    justify-content: center;
}

.conversation-column {
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.conversation-header {
    text-align: center;
    margin-bottom: 120px;
}

.conversation-heading {
    font-size: 44px;
}

.conversation-header .kanji-mark {
    text-align: center;
}

.paragraph {
    font-size: 15px;
    line-height: 2.0;
    color: var(--aged-bamboo);
    margin-bottom: 120px;
    font-weight: 300;
}

.paragraph:last-child {
    margin-bottom: 0;
}

.paragraph-left {
    text-align: left;
}

.paragraph-right {
    text-align: right;
}

.ceramic-circle-wrap {
    display: flex;
    justify-content: flex-start;
    margin: -60px 0 60px -100px;
}

.ceramic-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 0.5px solid var(--roasted-barley);
}

/* ---------- Encounter 4 — Collection ---------- */

.encounter-collection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.collection-intro {
    margin-bottom: 120px;
    max-width: 520px;
}

.collection-subtext {
    color: var(--aged-bamboo);
    font-size: 14px;
    letter-spacing: 0.04em;
    margin-top: 12px;
}

.shelf {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 120px;
}

.bottle-card {
    width: 180px;
    min-height: 280px;
    border: 0.5px solid var(--smoke-wood);
    background: rgba(26, 22, 18, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 36px 18px 30px;
    transition: border-color 800ms ease, background-color 800ms ease;
    text-align: center;
}

.bottle-card:hover {
    border-color: var(--warm-lacquer);
}

.bottle-year {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--roasted-barley);
    margin-bottom: 36px;
}

.bottle-label {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.06em;
    color: var(--rice-paper);
    line-height: 1.2;
    margin-bottom: 12px;
}

.bottle-jp {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.18em;
    color: var(--warm-lacquer);
    margin-bottom: 28px;
}

.bottle-divider {
    display: block;
    width: 24px;
    height: 0.5px;
    background: var(--roasted-barley);
    margin-bottom: 28px;
}

.bottle-note {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--aged-bamboo);
    line-height: 1.7;
}

.collection-footnote {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--roasted-barley);
    max-width: 520px;
    text-align: center;
}

/* ---------- Encounter 5 — Closing ---------- */

.encounter-closing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40vh 32px;
}

.closing-inner {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-kanji {
    margin-bottom: 60px;
    font-size: 22px;
    letter-spacing: 0.4em;
}

.closing-line {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: 26px;
    letter-spacing: 0.06em;
    color: var(--rice-paper);
    line-height: 1.6;
    margin-bottom: 80px;
}

.closing-seal {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.4em;
    color: var(--warm-lacquer);
    padding: 14px 22px;
    border: 0.5px solid var(--smoke-wood);
}

/* ---------- footer ---------- */

.counter-foot {
    position: relative;
    z-index: 1;
    padding: 80px 32px 60px;
    text-align: center;
    border-top: 0.5px solid var(--smoke-wood);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foot-mark {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--warm-lacquer);
}

.foot-meta {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--roasted-barley);
}

/* ---------- breath indicator (slow opacity pulse) ---------- */

.breath-indicator {
    position: absolute;
    width: 16px;
    height: 0.5px;
    background: var(--roasted-barley);
    animation: breath 4s ease-in-out infinite;
    pointer-events: none;
}

.breath-right {
    right: 4vw;
    top: 50%;
}

@keyframes breath {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
    .encounter {
        padding: 120px 24px;
    }

    .encounter-menu {
        padding-right: 24px;
        align-items: stretch;
    }

    .menu-block {
        text-align: right;
        max-width: 100%;
        margin-bottom: 120px;
    }

    .brand-name {
        font-size: 42px;
    }

    .encounter-heading {
        font-size: 38px;
    }

    .encounter-subheading {
        font-size: 26px;
    }

    .conversation-heading {
        font-size: 34px;
    }

    .ceramic-circle-wrap {
        margin: -20px 0 40px -20px;
    }

    .shelf {
        gap: 32px;
    }

    .bottle-card {
        width: 150px;
        min-height: 240px;
        padding: 28px 14px 24px;
    }

    .breath-indicator {
        right: 16px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 34px;
        letter-spacing: 0.08em;
    }

    .brand-mark {
        font-size: 18px;
        letter-spacing: 0.3em;
    }

    .brand-sub {
        font-size: 12px;
        letter-spacing: 0.16em;
        margin-bottom: 64px;
    }

    .threshold-line {
        width: 160px;
    }

    .encounter-heading {
        font-size: 32px;
    }

    .conversation-heading {
        font-size: 28px;
    }

    .closing-line {
        font-size: 20px;
    }

    .shelf {
        gap: 24px;
    }

    .bottle-card {
        width: 140px;
        min-height: 220px;
    }
}
