/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --obsidian: #0B0B0F;
    --charcoal: #161619;
    --marble: #E8E4DF;
    --blood: #6B1C23;
    --steel: #4A5568;
    --ash: #7A7670;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'EB Garamond', serif;
    --font-mono: 'Inconsolata', monospace;
}

html {
    scroll-behavior: smooth;
    background: var(--obsidian);
    color: var(--marble);
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    background: var(--obsidian);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--blood);
    color: var(--marble);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== GRAIN OVERLAY ===== */
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}

/* ===== VERTICAL COLUMN LINES ===== */
.column-line {
    position: fixed;
    top: 0;
    width: 1px;
    height: 100vh;
    background: rgba(74, 85, 104, 0.06);
    z-index: 100;
    pointer-events: none;
}
.column-line--left { left: 33.333%; }
.column-line--right { left: 66.666%; }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: var(--ash);
    background: var(--charcoal);
    border: 1px solid rgba(74, 85, 104, 0.2);
    padding: 10px 24px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}
.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 52px;
    background: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 85, 104, 0.12);
}

.nav__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--blood);
    letter-spacing: 1px;
}

.nav__links {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ash);
    transition: color 0.3s;
}
.nav__link:hover { color: var(--marble); }

.nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__ca {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--steel);
    cursor: pointer;
    transition: color 0.3s;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav__ca:hover { color: var(--marble); }

.nav__community {
    color: var(--steel);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.nav__community:hover { color: var(--marble); }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 11, 15, 0.7);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(81px, 15vw, 181px);
    color: var(--marble);
    letter-spacing: -3px;
    line-height: 0.9;
    margin-bottom: 24px;
}

.hero__definition {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 23px;
    color: var(--ash);
    max-width: 560px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.hero__source {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--steel);
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--steel);
    letter-spacing: 3px;
    z-index: 2;
    animation: pulse-down 3s ease-in-out infinite;
}

@keyframes pulse-down {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 10px 28px;
    border: 1px solid var(--steel);
    background: transparent;
    color: var(--marble);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    display: inline-block;
}
.btn--primary {
    border-color: var(--blood);
}
.btn--primary:hover {
    background: rgba(107, 28, 35, 0.15);
}
.btn--secondary:hover {
    background: rgba(74, 85, 104, 0.1);
}

/* ===== SOUND BUTTON ===== */
.sound-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--steel);
    border-radius: 999px;
    background: rgba(22, 22, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    color: var(--ash);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 16px;
    transition: border-color 0.3s;
}
.sound-btn:hover { border-color: var(--marble); }
.sound-btn__icon { font-size: 18px; line-height: 1; }

/* ===== TICKER ===== */
.ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    overflow: hidden;
    background: var(--blood);
    padding: 22px 0;
    white-space: nowrap;
}

.ticker__track {
    display: inline-block;
    animation: ticker-scroll 60s linear infinite;
}

.ticker__item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--marble);
    letter-spacing: 3px;
}

.ticker__sep {
    font-size: 18px;
    color: rgba(232, 228, 223, 0.4);
    margin: 0 32px;
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}
.section--obsidian { background: var(--obsidian); }
.section--charcoal { background: var(--charcoal); }

.section__container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.section__label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--blood);
    letter-spacing: 6px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 37px;
    color: var(--marble);
    margin-bottom: 16px;
}

.section__subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 17px;
    color: var(--ash);
    max-width: 680px;
    margin-bottom: 48px;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.philosophy__text {
    font-size: 18px;
    line-height: 1.75;
    color: var(--marble);
}
.philosophy__text p { margin-bottom: 20px; }

.philosophy__branches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branch-card {
    background: var(--charcoal);
    border-left: 2px solid var(--blood);
    padding: 20px 24px;
}

.branch-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--marble);
    margin-bottom: 6px;
}

.branch-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ash);
}

/* ===== THINKERS ===== */
.thinker {
    display: flex;
    gap: 40px;
    padding: 48px 0;
    border-top: 1px solid rgba(74, 85, 104, 0.12);
}

.thinker__image-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 240px;
    overflow: hidden;
}

.thinker__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8);
    transition: filter 0.6s;
}
.thinker:hover .thinker__image { filter: grayscale(0); }

.thinker__content {
    flex: 1;
    min-width: 0;
}

.thinker__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    color: var(--marble);
    margin-bottom: 2px;
}

.thinker__meta {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ash);
    display: block;
    margin-bottom: 16px;
}

.thinker__quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 21px;
    color: var(--blood);
    border-left: 2px solid var(--blood);
    padding-left: 20px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.thinker__bio {
    font-size: 17px;
    line-height: 1.7;
    color: var(--marble);
    margin-bottom: 16px;
}

.thinker__works {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--steel);
}

/* ===== QUOTES GRID ===== */
.quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.quote-card {
    background: var(--charcoal);
    padding: 28px;
    border-left: 2px solid var(--blood);
}

.quote-card__text {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 19px;
    color: var(--marble);
    line-height: 1.6;
    margin-bottom: 12px;
}

.quote-card__author {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ash);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 32px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(0.7) brightness(0.9);
    transition: filter 0.5s;
}
.gallery-img:hover {
    filter: grayscale(0) brightness(1);
}

/* ===== BUY ===== */
.buy__intro {
    font-family: var(--font-body);
    font-size: 19px;
    color: var(--marble);
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
    line-height: 1.7;
}

.buy-steps {
    max-width: 640px;
    margin: 0 auto;
}

.buy-step {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(74, 85, 104, 0.12);
}

.buy-step__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 33px;
    color: var(--blood);
    flex-shrink: 0;
    width: 40px;
}

.buy-step__text {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--marble);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(74, 85, 104, 0.12);
    padding: 48px 0;
    background: var(--obsidian);
    text-align: center;
}

.footer__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ash);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer__quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--steel);
    margin-bottom: 12px;
}

.footer__ca {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--steel);
}

.footer__ca-text {
    cursor: pointer;
    transition: color 0.3s;
}
.footer__ca-text:hover { color: var(--marble); }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { padding: 0 16px; }
    .nav__links { display: none; }
    .nav__ca { max-width: 80px; }

    .section__container { padding: 0 20px; }
    .section__title { font-size: 29px; }

    .hero__definition { font-size: 17px; }
    .hero__title { letter-spacing: -1px; }

    .philosophy {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .thinker {
        flex-direction: column;
        gap: 20px;
    }
    .thinker__image-wrap {
        width: 100%;
        height: 200px;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .column-line { display: none; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; align-items: center; }
    .btn { width: 200px; text-align: center; }
    .section { padding: 60px 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}