/* =========================================================
   patience — Japanese garden for the crypto trader
   ========================================================= */

:root {
    --tatami: #F7F3ED;
    --silk: #EDE8DF;
    --gold: #B8924A;
    --gold-soft: rgba(184, 146, 74, 0.08);
    --gold-glow: rgba(184, 146, 74, 0.25);
    --sage: #7A9B6D;
    --ink: #2C2820;
    --ink-soft: rgba(44, 40, 32, 0.06);
    --ink-line: rgba(44, 40, 32, 0.04);
    --stone: #9C9488;
    --white-soft: rgba(255, 255, 255, 0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--tatami);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Paper texture overlay */
.paper-texture {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.008;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Reusable gold-glow for the word patience */
.patience-glow {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    text-shadow:
        0 0 10px rgba(184, 146, 74, 0.3),
        0 0 30px rgba(184, 146, 74, 0.15),
        0 0 60px rgba(184, 146, 74, 0.08);
}

/* =========================================================
   NAV
   ========================================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 243, 237, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ink-soft);
    padding: 16px 32px;
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.nav__brand {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: var(--gold);
    text-shadow:
        0 0 10px rgba(184, 146, 74, 0.25),
        0 0 30px rgba(184, 146, 74, 0.1);
    letter-spacing: 0.5px;
}

.nav__ca {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 1px;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    justify-self: center;
}

.nav__ca:hover {
    color: var(--gold);
    border-color: rgba(184, 146, 74, 0.2);
    background: var(--gold-soft);
}

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

.nav__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
    transition: color 0.3s;
}

.nav__icon:hover { color: var(--ink); }
.nav__icon svg { width: 18px; height: 18px; }

.nav__buy {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: lowercase;
    padding: 6px 20px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: transparent;
    transition: background 0.3s, color 0.3s;
}

.nav__buy:hover {
    background: var(--gold-soft);
    color: var(--gold);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F3ED 0%, #EDE8DF 50%, #E5DFD2 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero__title {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    text-align: center;
}

.hero__title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(80px, 14vw, 180px);
    letter-spacing: 6px;
    color: #FFFFFF;
    text-shadow:
        0 2px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(184, 146, 74, 0.25),
        0 0 120px rgba(184, 146, 74, 0.12);
    line-height: 1;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 1px;
    height: 40px;
    background: var(--white-soft);
    animation: scroll-pulse 2.6s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: translateX(-50%) scaleY(0.6); opacity: 0.4; }
    50% { transform: translateX(-50%) scaleY(1); opacity: 1; }
}

/* =========================================================
   SECTIONS — common
   ========================================================= */

section {
    position: relative;
    z-index: 2;
}

.section {
    padding: 120px 32px;
}

.section--tight { padding: 80px 32px; }

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

.container--wide { max-width: 960px; }

.kicker {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
    color: var(--stone);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-align: center;
}

.section__heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--ink);
    letter-spacing: -0.3px;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.2;
}

/* THE WORD */
.word-block p {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--ink);
    line-height: 1.8;
    margin-top: 28px;
    text-align: center;
}

.word-block p:first-of-type {
    font-size: 19px;
}

.word-block .single-word {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 38px;
    color: var(--gold);
    text-shadow:
        0 0 10px rgba(184, 146, 74, 0.3),
        0 0 30px rgba(184, 146, 74, 0.15),
        0 0 60px rgba(184, 146, 74, 0.08);
    margin-top: 32px;
}

/* =========================================================
   TWEET CARDS — CT HAS SPOKEN
   ========================================================= */

.ct-section {
    background: var(--tatami);
    padding: 100px 32px;
}

.tweet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.tweet-card {
    background: var(--silk);
    border: 1px solid var(--ink-soft);
    border-radius: 16px;
    padding: 22px 24px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.tweet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(184, 146, 74, 0.08);
    border-color: rgba(184, 146, 74, 0.22);
}

.tweet-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tweet-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EDE8DF 0%, #DCD5C8 100%);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(184, 146, 74, 0.1);
}

.tweet-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tweet-card__id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tweet-card__name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.tweet-card__name {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tweet-card__verified {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tweet-card__handle {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--stone);
    margin-top: 2px;
}

.tweet-card__body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 16px;
    word-wrap: break-word;
    flex: 1;
}

.tweet-card__body .patience-glow {
    font-family: inherit;
    font-style: inherit;
    font-weight: inherit;
}

.tweet-card__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--stone);
}

.tweet-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tweet-card__stat svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: var(--tatami);
    padding: 100px 32px 80px;
    border-top: 1px solid var(--ink-line);
    text-align: center;
}

.footer__word {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(40px, 7vw, 64px);
    color: var(--gold);
    text-shadow:
        0 0 20px rgba(184, 146, 74, 0.35),
        0 0 60px rgba(184, 146, 74, 0.18),
        0 0 120px rgba(184, 146, 74, 0.1);
    animation: gentle-pulse 5s ease-in-out infinite;
    line-height: 1.2;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer__ca {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.5px;
    margin-top: 28px;
    cursor: pointer;
    transition: color 0.3s;
    display: inline-block;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.footer__ca:hover { color: var(--gold); }

/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
    background: var(--tatami);
    border: 1px solid rgba(184, 146, 74, 0.3);
    border-radius: 999px;
    padding: 14px 32px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: var(--gold);
    text-shadow:
        0 0 10px rgba(184, 146, 74, 0.3),
        0 0 30px rgba(184, 146, 74, 0.15);
    box-shadow: 0 8px 32px rgba(184, 146, 74, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: calc(var(--stagger-index, 0) * 100ms);
}

[data-reveal-stagger].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .nav { padding: 14px 20px; }
    .nav__inner { gap: 12px; grid-template-columns: auto 1fr auto; }
    .nav__brand { font-size: 18px; }
    .nav__ca { font-size: 10px; padding: 4px 10px; max-width: 140px; }
    .nav__right { gap: 10px; }
    .nav__icon { width: 28px; height: 28px; }
    .nav__icon svg { width: 16px; height: 16px; }
    .nav__buy { font-size: 11px; padding: 5px 14px; letter-spacing: 1.5px; }

    .section, .section--tight, .ct-section, .footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .section { padding-top: 80px; padding-bottom: 80px; }
    .ct-section { padding-top: 70px; padding-bottom: 70px; }

    .word-block p { font-size: 16px; }
    .word-block p:first-of-type { font-size: 17px; }
    .word-block .single-word { font-size: 32px; }

    .tweet-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }

    .toast { font-size: 16px; padding: 12px 26px; }
}

@media (max-width: 480px) {
    .nav__ca { display: none; }
    .nav__inner { grid-template-columns: 1fr auto; }
    .hero__title h1 { letter-spacing: 4px; }
}
