/* ================================================
   ZAZU. poster editorial system
   dark rooms + paper chapters, Anton x Fraunces
   ================================================ */

:root {
    --dark: #0d0b09;
    --dark-2: #14110d;
    --dark-3: #1b1712;
    --paper: #e9dfca;
    --paper-2: #e2d6bc;
    --ink: #17130e;
    --ink-soft: #4a4234;
    --cream: #f0e8d6;
    --cream-soft: #b9ad93;
    --cream-mute: #837763;
    --amber: #d99c50;
    --amber-soft: rgba(217, 156, 80, 0.14);
    --ember: #c05a2e;
    --line-dark: #2b241b;
    --line-paper: #c8b998;

    --anton: 'Anton', 'Arial Narrow', sans-serif;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Space Grotesk', sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.65, 0.05, 0, 1);
    --wrap: 1280px;
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
    font-family: var(--sans);
    background: var(--dark);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading { overflow: hidden; }

::selection { background: var(--amber); color: var(--ink); }

img { max-width: 100%; display: block; }

a { -webkit-tap-highlight-color: transparent; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.wrap--wide { max-width: 1520px; }

.mono-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.7;
}

/* ================================================
   PRELOADER
   ================================================ */

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s var(--ease);
}

.loader.done { transform: translateY(-100%); }
.loader.gone { display: none; }

.loader-inner { position: relative; text-align: center; }

.loader-word {
    font-family: var(--anton);
    font-size: clamp(4rem, 16vw, 12rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--cream-mute);
    display: block;
}

.loader-count {
    position: absolute;
    right: -0.2em;
    bottom: -0.55em;
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--amber);
}

.loader-count::after { content: "%"; opacity: 0.6; }

.loader-tag {
    display: block;
    margin-top: 2.2rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cream-mute);
}

/* ================================================
   CURSOR
   ================================================ */

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9500;
    transform: translate(-50%, -50%);
    /* invisible until the mouse first moves */
    opacity: 0;
}

body.cursor-live .cursor-dot,
body.cursor-live .cursor-ring { opacity: 1; }

.cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

.cursor-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(217, 156, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                background 0.3s ease, border-color 0.3s ease;
}

.cursor-ring span {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cursor-ring.is-view {
    width: 74px;
    height: 74px;
    background: var(--amber);
    border-color: var(--amber);
}

.cursor-ring.is-view span { opacity: 1; }

.cursor-ring.is-link {
    width: 56px;
    height: 56px;
    border-color: var(--amber);
}

@media (hover: none), (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ================================================
   GRAIN
   ================================================ */

.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9000;
    animation: grainShift 9s steps(10) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 3%); }
    50% { transform: translate(3%, -2%); }
    75% { transform: translate(-3%, -3%); }
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
    /* difference blend on the bar itself keeps every item readable
       over both the dark rooms and the paper chapters */
    mix-blend-mode: difference;
}

.nav-logo,
.nav-links a {
    color: #fff;
    text-decoration: none;
}

.nav-logo {
    font-family: var(--anton);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.nav-logo span { color: #fff; opacity: 0.55; }

.nav-links { display: flex; gap: 1.9rem; }

.nav-links a {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-chip {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #000;
    background: #fff;
    padding: 0.5rem 1.15rem;
    border-radius: 100px;
    transition: opacity 0.25s ease;
    display: inline-block;
}

.nav-chip:hover { opacity: 0.85; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    color: #fff;
    padding: 0.5rem 1.05rem;
    cursor: pointer;
    letter-spacing: 0.14em;
}

/* ================================================
   MOBILE MENU OVERLAY
   ================================================ */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(5.5rem + env(safe-area-inset-top)) 1.6rem calc(2.2rem + env(safe-area-inset-bottom));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }

.mobile-menu-links {
    display: flex;
    flex-direction: column;
}

.mobile-menu-links a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--anton);
    font-size: clamp(2rem, 9vw, 2.9rem);
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line-dark);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

body.menu-open .mobile-menu-links a { opacity: 1; transform: none; }

.mobile-menu-links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-links a:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu-links a:nth-child(3) { transition-delay: 0.13s; }
.mobile-menu-links a:nth-child(4) { transition-delay: 0.17s; }
.mobile-menu-links a:nth-child(5) { transition-delay: 0.21s; }
.mobile-menu-links a:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu-links a:nth-child(7) { transition-delay: 0.29s; }

.mm-num { color: var(--amber); }

.mobile-menu-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem 1.6rem;
}

.mobile-menu-foot a {
    color: var(--cream-soft);
    text-decoration: none;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 3rem;
}

.hero-meta {
    position: absolute;
    top: 6.2rem;
    color: var(--cream-mute);
}

.hero-meta--tl { left: clamp(1.2rem, 4vw, 3rem); }
.hero-meta--tr { right: clamp(1.2rem, 4vw, 3rem); text-align: right; }

.hero-word {
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(7rem, 26vw, 24rem);
    line-height: 0.85;
    letter-spacing: 0.01em;
    color: var(--cream);
    user-select: none;
    position: relative;
    z-index: 1;
}

.hero-word-line { display: inline-block; }

.hero-portrait {
    position: relative;
    z-index: 2;
    width: clamp(190px, 24vw, 330px);
    margin-top: clamp(-4rem, -7vw, -7rem);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.hero-portrait img {
    width: 100%;
    aspect-ratio: 4 / 4.7;
    object-fit: cover;
    filter: saturate(0.85) sepia(0.08) contrast(1.02);
    border: 1px solid var(--line-dark);
}

.hero-foot {
    position: relative;
    z-index: 3;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    text-align: center;
}

.hero-lede {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    color: var(--cream-soft);
    line-height: 1.45;
}

.hero-tags {
    color: var(--cream-mute);
    letter-spacing: 0.12em;
    text-align: center;
    max-width: 90vw;
}

.hero-tags i {
    font-style: normal;
    color: var(--amber);
    padding: 0 0.35rem;
}

.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

.hero-scrollcue {
    position: absolute;
    bottom: 1.6rem;
    right: clamp(1.2rem, 4vw, 3rem);
    color: var(--cream-mute);
    writing-mode: vertical-rl;
    animation: cueDrift 2.4s ease-in-out infinite;
}

@keyframes cueDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 1.9rem;
    border-radius: 100px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.btn--fill { background: var(--amber); color: var(--ink); }
.btn--fill:hover { background: var(--cream); }

.btn--line {
    color: var(--cream);
    border: 1px solid var(--line-dark);
    background: transparent;
}
.btn--line:hover { border-color: var(--amber); color: var(--amber); }

.btn--ember { background: var(--ember); color: var(--cream); }
.btn--ember:hover { background: var(--amber); color: var(--ink); }

/* Contract chip */
.ca-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: transparent;
    border: 1px dashed var(--line-dark);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    max-width: 100%;
}

.ca-chip:hover { border-color: var(--amber); }

.ca-chip-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
}

.ca-chip code {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--cream-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-chip-toast {
    position: absolute;
    top: -2.2rem;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--amber);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
}

.ca-chip-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.ca-chip--big { margin-top: 4rem; }
.ca-chip--big code { font-size: 0.85rem; }

/* ================================================
   TICKER
   ================================================ */

.ticker {
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: var(--dark-2);
    padding: 1rem 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
}

.ticker-track span {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream-soft);
    white-space: nowrap;
}

.ticker-track .tick-sep { color: var(--amber); }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ================================================
   CHAPTERS, PLATES, DISPLAY TYPE
   ================================================ */

.chapter { padding: clamp(6rem, 11vw, 11rem) 0; }

.paper {
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.05'/%3E%3C/svg%3E"),
        var(--paper);
    color: var(--ink);
}

.plate {
    display: inline-block;
    color: var(--ink-soft);
    border: 1px solid var(--line-paper);
    padding: 0.45rem 0.9rem;
    margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.plate i { font-style: normal; color: var(--amber); padding: 0 0.3rem; }

.plate--light { color: var(--cream-mute); border-color: var(--line-dark); }
.plate--ember { color: var(--ember); border-color: rgba(192, 90, 46, 0.4); }

.display {
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(2.9rem, 7.4vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 18ch;
}

.display em {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.005em;
    font-size: 1.04em;
    line-height: 1.05;
    color: var(--ember);
}

.display--light { color: var(--cream); }
.display--light em { color: var(--amber); }

/* split text lines */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; will-change: transform; }

/* generic reveal targets start hidden only when js runs */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js .reveal-done[data-reveal] { opacity: 1; transform: none; }

/* ================================================
   CHAPTER 01, STORY
   ================================================ */

.story-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
}

.story-col p {
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.85;
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
}

.story-first::first-letter {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 3.9em;
    float: left;
    line-height: 0.8;
    padding: 0.1em 0.12em 0 0;
    color: var(--ember);
}

.story-stamp {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--ember);
    border-radius: 4px;
    color: var(--ember);
    transform: rotate(-6deg);
    letter-spacing: 0.22em;
    opacity: 0.85;
}

/* ================================================
   INTERLUDE
   ================================================ */

.interlude {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.interlude-img-wrap {
    height: clamp(380px, 72vh, 700px);
    overflow: hidden;
}

.interlude-img-wrap img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(0.8) sepia(0.12) brightness(0.72);
    will-change: transform;
}

.interlude::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--dark) 0%, transparent 18%, transparent 72%, var(--dark) 100%);
    pointer-events: none;
}

.interlude-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: min(92%, 900px);
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.25;
    color: var(--cream);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9);
}

.interlude-line em {
    color: var(--amber);
    display: block;
    margin-top: 0.6em;
    text-shadow: 0 0 34px rgba(217, 156, 80, 0.55), 0 2px 30px rgba(0, 0, 0, 0.9);
}

/* keep the breathing room once the split wraps each line */
.interlude-line .split-line + .split-line { margin-top: 0.6em; }
.interlude-line .split-line em { margin-top: 0; }

/* ================================================
   CHAPTER 02, JOURNEY SCROLLY
   ================================================ */

.journey {
    background: var(--dark);
    padding-top: clamp(6rem, 11vw, 11rem);
}

.scrolly { position: relative; }

.scrolly-pin {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.scrolly-years {
    position: absolute;
    left: clamp(1.2rem, 6vw, 8rem);
    top: 50%;
    transform: translateY(-50%);
}

.scrolly-year {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    font-family: var(--anton);
    font-size: clamp(6rem, 17vw, 15rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-dark);
    white-space: nowrap;
    opacity: 0;
}

.scrolly-year.on {
    color: var(--amber);
    -webkit-text-stroke: 0;
    opacity: 1;
}

.scrolly-beats {
    position: absolute;
    right: clamp(1.2rem, 7vw, 9rem);
    top: 50%;
    transform: translateY(-50%);
    width: min(46ch, 44vw);
}

.beat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
}

.beat-index { color: var(--amber); display: block; margin-bottom: 1rem; }

.beat-title {
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
    color: var(--cream);
}

.beat p {
    color: var(--cream-soft);
    font-size: 1.04rem;
    line-height: 1.8;
}

.scrolly-progress {
    position: absolute;
    bottom: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
}

.sp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-dark);
    transition: background 0.3s ease, transform 0.3s ease;
}

.sp-dot.on { background: var(--amber); transform: scale(1.3); }

/* mobile journey fallback: plain stacked chapters */
@media (max-width: 900px) {
    .scrolly-pin { height: auto; display: block; overflow: visible; }
    .scrolly-years, .scrolly-progress { display: none; }
    .scrolly-beats {
        position: static;
        transform: none;
        width: auto;
        padding: 0 1.4rem 3rem;
    }
    .beat {
        position: static;
        transform: none;
        opacity: 1;
        padding: 2.6rem 0;
        border-top: 1px solid var(--line-dark);
    }
}

/* ================================================
   STATS
   ================================================ */

.stats {
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: var(--dark-2);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: clamp(2.2rem, 4vw, 3.6rem) clamp(1.4rem, 3vw, 2.8rem);
    border-left: 1px solid var(--line-dark);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.stat:first-child { border-left: none; }

.stat-kicker { color: var(--cream-mute); }

.stat-num {
    font-family: var(--anton);
    font-size: clamp(3rem, 6.6vw, 5.6rem);
    line-height: 1;
    color: var(--cream);
    letter-spacing: 0.01em;
}

.stat--accent .stat-num { color: var(--amber); }

.stat-unit { font-size: 0.9rem; color: var(--cream-soft); }

@media (max-width: 900px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; }
    .stat { border-left: none !important; border-top: 1px solid var(--line-dark); }
    .stat:first-child { border-top: none; }
}

/* ================================================
   COMMUNITY JOURNEY, MILESTONES
   ================================================ */

.milestones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-paper);
    border-left: 1px solid var(--line-paper);
}

.milestone {
    padding: 1.9rem 1.7rem 2.1rem;
    border-right: 1px solid var(--line-paper);
    border-bottom: 1px solid var(--line-paper);
    transition: background 0.3s ease;
}

.milestone:hover { background: rgba(255, 255, 255, 0.3); }

.milestone--accent { background: rgba(192, 90, 46, 0.08); }

.milestone-tag {
    display: block;
    color: var(--ember);
    margin-bottom: 0.9rem;
}

.milestone-title {
    font-family: var(--anton);
    font-weight: 400;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.milestone p {
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.65;
}

@media (max-width: 1024px) { .milestones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .milestones { grid-template-columns: 1fr; } }

/* ================================================
   ACHIEVEMENTS BAND
   ================================================ */

.achievements {
    background: var(--dark);
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    border-bottom: 1px solid var(--line-dark);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.achievement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px dashed var(--line-dark);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.achievement:hover { border-color: var(--amber); }

.achievement-name {
    font-family: var(--anton);
    font-weight: 400;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--cream);
}

.achievement-status {
    color: var(--amber);
    white-space: nowrap;
}

.achievement-status::before { content: "[ "; opacity: 0.6; }
.achievement-status::after { content: " ]"; opacity: 0.6; }

@media (max-width: 900px) { .achievement-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .achievement-grid { grid-template-columns: 1fr; } }

/* ================================================
   CHAPTER 04, LEDGER
   ================================================ */

.ledger { border-top: 1px solid var(--line-paper); }

.ledger-row {
    display: grid;
    grid-template-columns: 5rem 1fr 1.4fr 110px;
    gap: clamp(1.2rem, 3vw, 3rem);
    align-items: center;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--line-paper);
    transition: background 0.3s ease;
}

.ledger-row:hover { background: rgba(255, 255, 255, 0.25); }

.ledger-num {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--ember);
}

.ledger-title {
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
    color: var(--ink);
}

.ledger-copy {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.ledger-thumb {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 1px solid var(--line-paper);
    filter: saturate(0.9);
    transform: rotate(2deg);
    transition: transform 0.4s var(--ease);
}

.ledger-row:hover .ledger-thumb { transform: rotate(0deg) scale(1.06); }

@media (max-width: 768px) {
    .ledger-row { grid-template-columns: 2.6rem 1fr 84px; }
    .ledger-copy { grid-column: 2 / -1; }
}

/* ================================================
   CHAPTER 04, CULTURE STRIP
   ================================================ */

.culture {
    background: var(--dark);
    padding: clamp(6rem, 11vw, 11rem) 0 0;
    overflow: hidden;
}

.culture-sub {
    color: var(--cream-soft);
    max-width: 46ch;
    margin-bottom: 3.5rem;
    font-size: 1.02rem;
}

.strip-outer { overflow: hidden; padding-bottom: clamp(6rem, 11vw, 11rem); }

.strip {
    display: flex;
    gap: clamp(1.2rem, 2.4vw, 2.2rem);
    padding: 0 clamp(1.2rem, 4vw, 3rem);
    width: max-content;
    will-change: transform;
}

.strip-card {
    width: clamp(280px, 30vw, 420px);
    flex-shrink: 0;
}

.strip-card-img {
    aspect-ratio: 4 / 4.6;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    margin-bottom: 1.3rem;
}

.strip-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88);
    transition: transform 0.6s var(--ease), filter 0.4s ease;
}

.strip-card:hover .strip-card-img img { transform: scale(1.05); filter: saturate(1.02); }

.strip-card-idx {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--amber);
    display: block;
    margin-bottom: 0.5rem;
}

.strip-card-title {
    font-family: var(--anton);
    font-weight: 400;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 0.45rem;
}

.strip-card-desc {
    color: var(--cream-soft);
    font-size: 0.93rem;
    line-height: 1.65;
    max-width: 34ch;
}

@media (max-width: 900px) {
    .strip-outer { overflow-x: auto; scrollbar-width: none; }
    .strip-outer::-webkit-scrollbar { display: none; }
}

/* ================================================
   THE WALL
   ================================================ */

.wall {
    position: relative;
    background: #0a0806;
    padding: clamp(6rem, 11vw, 11rem) 0;
    overflow: hidden;
}

.wall-texture {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 900px 420px at 15% 8%, rgba(192, 90, 46, 0.06), transparent),
        radial-gradient(ellipse 700px 380px at 90% 85%, rgba(217, 156, 80, 0.04), transparent),
        repeating-linear-gradient(0deg, transparent 0 64px, rgba(255, 255, 255, 0.015) 64px 66px),
        repeating-linear-gradient(90deg, transparent 0 128px, rgba(255, 255, 255, 0.015) 128px 130px);
    pointer-events: none;
}

.wall-sub {
    color: var(--cream-soft);
    max-width: 52ch;
    margin-bottom: 4rem;
    font-size: 1.02rem;
    position: relative;
}

.wall-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.4rem, 3vw, 2.4rem);
    margin-bottom: 4rem;
}

.wall-piece {
    position: relative;
    background: #15100b;
    border: 1px solid var(--line-dark);
    padding: 0.75rem 0.75rem 0.95rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s var(--ease);
}

.wall-piece:nth-child(4n+1) { transform: rotate(-1.7deg); }
.wall-piece:nth-child(4n+2) { transform: rotate(1.3deg) translateY(12px); }
.wall-piece:nth-child(4n+3) { transform: rotate(-0.9deg) translateY(4px); }
.wall-piece:nth-child(4n+4) { transform: rotate(1.9deg) translateY(8px); }

.wall-piece:hover { transform: rotate(0deg) translateY(-6px); z-index: 3; }

.wall-piece::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%) rotate(-2.5deg);
    width: 78px;
    height: 22px;
    background: rgba(217, 156, 80, 0.16);
    border-left: 1px dashed rgba(217, 156, 80, 0.35);
    border-right: 1px dashed rgba(217, 156, 80, 0.35);
    z-index: 2;
}

.wall-piece-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.06);
}

.wall-piece-tag {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-mute);
}

.wall-piece--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: 1px dashed var(--line-dark);
    background: transparent;
    box-shadow: none;
    color: var(--cream-mute);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    min-height: 220px;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}

.wall-piece--empty::before { display: none; }

.wall-piece--empty:hover { border-color: var(--ember); color: var(--ember); }

.wall-piece--empty .plus {
    font-size: 1.8rem;
    line-height: 1;
    font-family: var(--sans);
}

.wall-caption {
    position: relative;
    text-align: center;
    color: var(--cream-mute);
    margin-bottom: 2.2rem;
}

.wall-caption::before { content: "* "; color: var(--ember); }

.wall-cta { display: flex; justify-content: center; position: relative; }

@media (max-width: 900px) {
    .wall-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   CHAPTER 05, ARCHIVE
   ================================================ */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 3rem;
}

.filter-chip {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.15rem;
    background: transparent;
    border: 1px solid var(--line-paper);
    border-radius: 100px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-chip:hover { border-color: var(--ink-soft); color: var(--ink); }

.filter-chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.filter-chip .chip-count { opacity: 0.55; margin-left: 0.45rem; }

.masonry {
    columns: 4 260px;
    column-gap: 1.1rem;
}

.masonry-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 1.1rem;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--line-paper);
    background: var(--paper-2);
    animation: itemIn 0.5s var(--ease) backwards;
}

@keyframes itemIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.masonry-item img {
    width: 100%;
    transition: transform 0.55s var(--ease);
    filter: saturate(0.92);
}

.masonry-item:hover img { transform: scale(1.045); }

.masonry-tag {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    padding: 0.22rem 0.65rem;
    background: rgba(23, 19, 14, 0.85);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease);
}

.masonry-item:hover .masonry-tag { opacity: 1; transform: translateY(0); }

/* ================================================
   LIGHTBOX
   ================================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-stage { max-width: min(88vw, 940px); }

.lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    border: 1px solid var(--line-dark);
    box-shadow: 0 50px 140px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
}

.lightbox-cap {
    text-align: center;
    color: var(--cream-mute);
    padding-top: 1.1rem;
}

.lightbox-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--line-dark);
    color: var(--cream);
    font-size: 1.2rem;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.25s ease;
}

.lightbox-btn:hover { border-color: var(--amber); color: var(--amber); }

.lightbox-close { top: 1.6rem; right: 1.6rem; }
.lightbox-prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.6rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next { display: none; }
}

/* ================================================
   COMMUNITY ROWS
   ================================================ */

.community {
    background: var(--dark);
    padding: clamp(6rem, 11vw, 11rem) 0;
}

.rows { border-top: 1px solid var(--line-dark); }

.row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line-dark);
    text-decoration: none;
    overflow: hidden;
}

.row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--amber);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s var(--ease);
    z-index: 0;
}

.row:hover::before { transform: scaleY(1); }

.row > * { position: relative; z-index: 1; }

.row-name {
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(2rem, 5.4vw, 4.4rem);
    text-transform: uppercase;
    line-height: 1;
    color: var(--cream);
    transition: color 0.3s ease, transform 0.45s var(--ease);
}

.row-desc { color: var(--cream-mute); transition: color 0.3s ease; }

.row-arrow {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    color: var(--cream-mute);
    transition: color 0.3s ease, transform 0.45s var(--ease);
    line-height: 1;
}

.row:hover .row-name { color: var(--ink); transform: translateX(12px); }
.row:hover .row-desc { color: var(--ink); }
.row:hover .row-arrow { color: var(--ink); transform: translate(6px, -6px); }

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

.footer {
    background: var(--dark);
    border-top: 1px solid var(--line-dark);
    overflow: hidden;
}

.footer-marquee {
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 3rem);
    overflow: hidden;
}

.footer-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: tickerScroll 26s linear infinite;
}

.footer-marquee-track span {
    font-family: var(--anton);
    font-size: clamp(4.5rem, 13vw, 11rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(240, 232, 214, 0.28);
    white-space: nowrap;
    transition: color 0.4s ease;
}

.footer-marquee:hover .footer-marquee-track span { color: var(--amber); -webkit-text-stroke: 0; }

.footer-marquee-track .tick-sep {
    font-family: var(--mono);
    font-size: 2rem;
    color: var(--amber);
    -webkit-text-stroke: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
}

.footer-logo {
    font-family: var(--anton);
    font-size: 1.6rem;
    color: var(--cream);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-logo span { color: var(--amber); }

.footer-col p { color: var(--cream-mute); font-size: 0.92rem; line-height: 1.7; }

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-nav a {
    color: var(--cream-soft);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    width: fit-content;
}

.footer-nav a:hover { color: var(--amber); }

.footer-love-row {
    text-align: center;
    padding-bottom: 2.4rem;
}

.footer-love {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--cream-soft);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--line-dark);
}

.footer-legal p { font-size: 0.78rem; color: var(--cream-mute); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   RESPONSIVE, THE MOBILE PASS
   ================================================ */

@media (max-width: 900px) {
    /* solid readable nav bar; difference blending mangles
       over content in tight mobile layouts */
    .nav {
        mix-blend-mode: normal;
        background: rgba(13, 11, 9, 0.9);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line-dark);
        padding: calc(0.9rem + env(safe-area-inset-top)) 1.3rem 0.9rem;
    }
    .nav-links { display: none; }
    .nav-menu-btn { display: inline-block; }
    .nav-chip { background: var(--amber); color: var(--ink); }

    .story-cols { grid-template-columns: 1fr; }

    /* hero recomposition: corner metadata and the scroll cue
       collide with the wordmark and chip on small screens */
    .hero-meta { display: none; }
    .hero-scrollcue { display: none; }
    .hero { padding: 6.5rem 1.2rem 4rem; }
    .hero-portrait {
        width: min(240px, 62vw);
        margin-top: -2.2rem;
    }
    .hero-foot { margin-top: 2.4rem; gap: 1.3rem; }
    .hero-tags { line-height: 2.1; }

    /* align journey fallback text with the section gutter */
    .scrolly-beats { padding: 0 clamp(1.2rem, 4vw, 3rem) 3rem; }

    /* culture strip: comfortable native swipe */
    .strip-outer {
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .strip-card { scroll-snap-align: start; }
}

@media (max-width: 768px) {
    /* pin the thumb to the third column; auto-placement was dropping
       it into the narrow number column and squeezing it to a sliver */
    .ledger-row { align-items: start; }
    .ledger-thumb {
        width: 84px;
        height: 84px;
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: start;
    }
    .ledger-title { padding-top: 0.2rem; }
}

@media (max-width: 560px) {
    /* community rows: stack the description under the name
       instead of cramming three columns side by side */
    .row {
        grid-template-columns: 1fr auto;
        gap: 0.3rem 1.2rem;
    }
    .row-name { grid-column: 1; grid-row: 1; }
    .row-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .row-desc { grid-column: 1; grid-row: 2; }

    /* full contract address, wrapped, instead of an ellipsis */
    .ca-chip--big { align-items: flex-start; }
    .ca-chip--big code {
        white-space: normal;
        word-break: break-all;
        text-align: left;
        font-size: 0.72rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { justify-content: center; }
    .masonry { columns: 2 140px; column-gap: 0.7rem; }
    .masonry-item { margin-bottom: 0.7rem; }
    .wall-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem 1rem; }
    .wall-piece::before { width: 56px; height: 18px; top: -9px; }
    .wall-piece--empty { min-height: 170px; }
    .milestone { padding: 1.6rem 1.4rem 1.8rem; }
}

/* ================================================
   REDUCED MOTION
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .grain, .ticker-track, .footer-marquee-track, .hero-scrollcue { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .masonry-item { animation: none; }
    * { transition-duration: 0.01ms !important; }
}
