:root {
    --moss: #8A9A4B;
    --moss-shadow: #4A5526;
    --bark: #2A2620;
    --slate: #5A5751;
    --stone: #A8A39B;
    --linen: #F4F1EA;
    --paper: #FBF9F4;
    --rule: #E5E1D7;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
    font-weight: 400;
    color: var(--linen);
    background: var(--bark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain — calm depth, never flashy */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.display {
    font-family: 'Mulish', sans-serif;
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.015em;
}

.display em {
    font-style: italic;
    font-weight: 400;
}

.label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ═══════════ DECK ═══════════ */
.deck {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform .9s cubic-bezier(.66,0,.2,1);
    will-change: transform;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.slide.active .slide-bg { transform: scale(1); }

/* base darkening so any photo carries light text */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* background:
        linear-gradient(180deg, rgba(26,23,18,0.65) 0%, rgba(26,23,18,0.42) 28%, rgba(26,23,18,0.48) 62%, rgba(26,23,18,0.78) 100%); */
}

.slide-inner {
    position: absolute;
    top: 50%;
    left: 8vw;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 52px 60px;
    color: var(--linen);
    background: rgba(0,0,0,0.5);
    text-shadow: 0 1px 2px rgba(20,17,12,0.95), 0 2px 8px rgba(20,17,12,0.75);
}

/* gentle entrance per slide */
.reveal > * {
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .reveal > * {
    opacity: 1;
    transform: none;
    transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.slide.active .reveal > *:nth-child(1) { transition-delay: .25s; }
.slide.active .reveal > *:nth-child(2) { transition-delay: .42s; }
.slide.active .reveal > *:nth-child(3) { transition-delay: .60s; }

/* ── HERO slide content ── */
.eyebrow {
    margin-bottom: 26px;
    display: block;
}

.hero-title {
    font-size: clamp(46px, 7.5vw, 96px);
}

.hero-lede {
    margin-top: 34px;
    max-width: 460px;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.55;
}

/* ── PASSAGE slide content ── */
.idx {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--slate);
    margin-bottom: 16px;
    display: block;
}

.passage-title {
    font-size: clamp(40px, 6vw, 76px);
}

.passage-body {
    margin-top: 26px;
    max-width: 420px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.55;
}

.enter {
    margin-top: 30px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--linen);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(42,38,32,0.28);
    transition: border-color .5s ease;
}

.enter .arr { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.enter:hover { border-color: var(--bark); }
.enter:hover .arr { transform: translateX(6px); }

/* ═══════════ FIXED CHROME (nav, dots, counter) ═══════════ */
/* dark wash behind the top bar so nav stays legible over any frame */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 34px 8vw;
    background: linear-gradient(180deg, rgba(20,17,12,0.55) 0%, rgba(20,17,12,0.22) 55%, transparent 100%);
    pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.wordmark {
    height: 50px;
    filter: brightness(0) invert(1) drop-shadow(0 1px 10px rgba(20,17,12,0.5));
}

nav {
    display: flex;
    gap: 44px;
}

nav a {
    color: var(--linen);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 1px 6px rgba(20,17,12,0.8), 0 2px 18px rgba(20,17,12,0.6);
    cursor: pointer;
    background: none;
    border: 0;
    font-family: inherit;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--linen);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

nav a:hover::after,
nav a.current::after { transform: scaleX(1); }
nav a.current { opacity: 1; }

/* dots */
.dots {
    position: fixed;
    left: 8vw;
    bottom: 42px;
    z-index: 40;
    display: flex;
    gap: 14px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(244,241,234,0.75);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .4s ease, transform .4s ease;
}

.dot.active {
    background: var(--linen);
    transform: scale(1.25);
}

/* counter + swipe hint */
.counter {
    position: fixed;
    right: 8vw;
    bottom: 40px;
    z-index: 40;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: rgba(244,241,234,0.85);
    text-shadow: 0 1px 10px rgba(20,17,12,0.6);
    font-family: 'Mulish', sans-serif;
}

.swipe-hint {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 40;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(244,241,234,0.7);
    text-shadow: 0 1px 10px rgba(20,17,12,0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity .6s ease;
}

.swipe-hint .glide {
    width: 30px;
    height: 1px;
    background: rgba(244,241,234,0.6);
    position: relative;
    overflow: hidden;
}

.swipe-hint .glide::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 100%;
    background: var(--linen);
    animation: glide 2s ease-in-out infinite;
}

@keyframes glide {
    0% { transform: translateX(-12px); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translateX(30px); opacity: 0; }
}

/* arrow affordances on desktop */
.arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(244,241,234,0.4);
    background: rgba(20,17,12,0.18);
    backdrop-filter: blur(2px);
    color: var(--linen);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity .4s ease, background .4s ease, border-color .4s ease;
}

.arrow:hover { opacity: 1; background: rgba(74,85,38,0.6); border-color: var(--linen); }
.arrow.prev { left: 26px; }
.arrow.next { right: 26px; }
.arrow:disabled { opacity: 0.18; cursor: default; }

@media (max-width: 860px) {
    .topbar { padding: 22px 7vw; }
    .wordmark { height: 38px; }
    nav { gap: 18px; }
    nav a { font-size: 10px; letter-spacing: 0.14em; }
    .slide-inner { left: 7vw; padding: 40px 36px; }
    .arrow { display: none; }
    .counter, .dots { bottom: 30px; }
    .swipe-hint { bottom: 30px; }
}

@media (max-width: 560px) {
    .topbar { flex-direction: column; gap: 16px; align-items: flex-start; }
    .dots, .counter, .swipe-hint { display: none; }
    .slide-inner { left: 5vw; right: 5vw; padding: 32px 24px; }
}
