:root {
  --ink: #0c1713;
  --ink-soft: #17271f;
  --paper: #f1eadb;
  --paper-deep: #e2d4bb;
  --lichen: #dfe98b;
  --moss: #648f55;
  --sky: #9bcfd0;
  --brick: #cf7655;
  --line: rgba(241, 234, 219, .18);
  --shadow: 0 22px 70px rgba(4, 12, 8, .22);
  --radius: 24px;
  --sans: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "PingFang SC", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 8px 12px; border-radius: 999px; background: var(--lichen); color: var(--ink); transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 40; top: 0; left: 0; width: 100%; height: 3px; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--lichen); box-shadow: 0 0 14px rgba(223,233,139,.8); }
.topbar { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(18px, 5vw, 72px); color: var(--paper); mix-blend-mode: screen; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 12px; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; font-weight: 700; }
.topbar-action { border: 0; border-bottom: 1px solid currentColor; padding: 3px 0; background: none; color: inherit; font-size: 12px; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: clamp(110px, 16vh, 180px) clamp(22px, 8vw, 128px) 70px; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; z-index: -2; inset: 0; background: #233e2d; overflow: hidden; }
.tree-strip { position: absolute; inset: 0; display: flex; filter: saturate(.92) contrast(1.04); transform: scale(1.04); }
.tree-strip img { width: 33.333%; height: 100%; object-fit: cover; min-width: 0; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 21, 15, .9) 0%, rgba(8, 21, 15, .56) 33%, rgba(8, 21, 15, .06) 74%), linear-gradient(0deg, rgba(8, 21, 15, .78), transparent 45%); }
.hero-ring { position: absolute; right: 9vw; border: 1px solid rgba(223,233,139,.4); border-radius: 50%; aspect-ratio: 1; }
.ring-one { width: 32vw; top: 16vh; }
.ring-two { width: 24vw; top: 24vh; right: 13vw; border-color: rgba(155,207,208,.5); }
.hero-copy { width: min(630px, 100%); }
.eyebrow { margin: 0 0 20px; color: var(--lichen); font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(38px, 6vw, 82px); line-height: 1.08; letter-spacing: -.06em; font-weight: 900; text-wrap: balance; }
.hero h1 em { display: block; margin-top: 12px; color: var(--lichen); font-size: .52em; font-style: normal; letter-spacing: .02em; font-weight: 500; }
.hero-lede { max-width: 460px; margin: 28px 0 0; color: rgba(241, 234, 219, .8); font-size: clamp(14px, 1.6vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .window-save:focus-visible, .timeline-image:focus-visible, .topbar-action:focus-visible { outline: 2px solid var(--lichen); outline-offset: 4px; }
.button-primary { background: var(--lichen); color: var(--ink); font-weight: 700; }
.button-primary:hover { background: #eef6ae; }
.button-ghost { border-color: rgba(241,234,219,.48); background: rgba(12,23,19,.24); color: var(--paper); }
.button-ghost:hover { border-color: var(--paper); background: rgba(12,23,19,.58); }
.hero-foot { position: absolute; right: clamp(22px, 8vw, 128px); bottom: 70px; display: flex; gap: 18px; color: rgba(241,234,219,.65); font: 10px var(--mono); letter-spacing: .06em; }

.section { padding: clamp(80px, 11vw, 150px) clamp(22px, 8vw, 128px); }
.intro { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.intro::before { content: ""; position: absolute; inset: 0; background: url('assets/texture.jpg') center / 680px auto; opacity: .055; mix-blend-mode: multiply; pointer-events: none; }
.intro::after { content: ""; position: absolute; right: -14vw; bottom: -20vw; width: 48vw; height: 48vw; border: 1px solid rgba(100,143,85,.24); border-radius: 50%; box-shadow: 0 0 0 45px rgba(100,143,85,.05), 0 0 0 90px rgba(100,143,85,.04); pointer-events: none; }
.section-heading { position: relative; z-index: 1; max-width: 700px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4.3vw, 60px); line-height: 1.16; letter-spacing: -.055em; text-wrap: balance; }
.section-heading > p:last-child { max-width: 580px; margin: 24px 0 0; color: rgba(12,23,19,.66); }
.intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: clamp(30px, 7vw, 110px); align-items: center; margin-top: 72px; }
.paper-card { margin: 0; background: #fffaf0; padding: 12px; box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.paper-card img { width: 100%; aspect-ratio: 1 / 1.42; object-fit: cover; }
.paper-card figcaption { padding: 12px 4px 2px; color: rgba(12,23,19,.6); font: 10px var(--mono); }
.fact-stack { border-top: 1px solid rgba(12,23,19,.2); }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 20px 0; border-bottom: 1px solid rgba(12,23,19,.2); }
.fact strong { font-size: clamp(20px, 2.5vw, 30px); line-height: 1.1; letter-spacing: -.04em; }
.fact span { color: rgba(12,23,19,.6); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: inherit; font-size: 13px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.intro-side .text-link { margin-top: 32px; }

.timeline { background: var(--ink); color: var(--paper); position: relative; }
.section-heading-dark > p:last-child { color: rgba(241,234,219,.62); }
.timeline-track { position: relative; max-width: 1120px; margin: 78px auto 0; }
.timeline-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; width: 1px; background: linear-gradient(var(--lichen), rgba(223,233,139,.08)); }
.chapter { position: relative; padding: 0 0 110px 52px; }
.chapter:last-child { padding-bottom: 0; }
.chapter-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 12px; color: var(--lichen); font: 10px var(--mono); writing-mode: vertical-rl; transform: rotate(180deg); }
.chapter-label i { display: block; width: 9px; height: 9px; border: 1px solid var(--lichen); border-radius: 50%; background: var(--ink); }
.chapter-copy { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.chapter-copy h3 { margin: 0; font-size: clamp(24px, 3.3vw, 40px); letter-spacing: -.05em; }
.chapter-copy p { margin: 0; color: rgba(241,234,219,.58); font-size: 13px; }
.chapter-images { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 14px; }
.timeline-image { display: block; width: 100%; padding: 0; border: 0; background: transparent; overflow: hidden; }
.timeline-image img { width: 100%; aspect-ratio: 1 / 1.42; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.timeline-image:hover img { transform: scale(1.035); filter: saturate(1.12); }
.timeline-image-large img { aspect-ratio: 1 / 1.26; }
.image-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.image-strip .timeline-image:last-child:nth-child(3) { grid-column: 1 / -1; }

.bridge { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(24px, 6vw, 90px); align-items: center; background: var(--paper); color: var(--ink); }
.bridge-image { position: relative; padding: 10px; background: var(--ink); transform: rotate(1.2deg); box-shadow: var(--shadow); }
.bridge-image img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.bridge-copy blockquote { margin: 0; font-size: clamp(27px, 4vw, 52px); line-height: 1.2; letter-spacing: -.06em; font-weight: 700; }
.bridge-copy > p:last-child { max-width: 360px; color: rgba(12,23,19,.64); font-size: 14px; }

.windows { background: #17271f; color: var(--paper); overflow: hidden; }
.windows-heading { max-width: 700px; }
.window-rail { display: flex; gap: 24px; overflow-x: auto; padding: 62px calc(8vw) 16px; margin: 0 calc(-8vw); scroll-snap-type: x mandatory; scrollbar-width: none; }
.window-rail::-webkit-scrollbar { display: none; }
.window-card { flex: 0 0 clamp(220px, 27vw, 345px); scroll-snap-align: start; }
.window-frame { position: relative; padding: 9px 9px 28px; background: #2d241c; box-shadow: 0 24px 30px rgba(0,0,0,.24); }
.window-frame::before, .window-frame::after { content: ""; position: absolute; z-index: 2; top: 7%; bottom: 5%; width: 9px; background: linear-gradient(90deg, #4c2e1c, #9c6339, #3f2416); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.window-frame::before { left: 4px; transform: skewY(-6deg); }
.window-frame::after { right: 4px; transform: skewY(6deg); }
.window-frame img { width: 100%; aspect-ratio: .71 / 1; object-fit: cover; }
.window-card-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px 0; }
.window-card-copy > span { color: var(--lichen); font-size: 16px; font-weight: 700; }
.window-save { padding: 0; border: 0; border-bottom: 1px solid rgba(241,234,219,.55); background: none; color: rgba(241,234,219,.76); font-size: 11px; }
.window-save:hover { color: var(--paper); border-color: var(--paper); }
.rail-hint { display: flex; align-items: center; gap: 14px; max-width: 1120px; margin: 26px auto 0; color: rgba(241,234,219,.5); font: 10px var(--mono); }
.rail-line { display: block; width: min(180px, 28vw); height: 1px; background: linear-gradient(90deg, var(--lichen), transparent); }

.takeaway { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(300px, .95fr); gap: clamp(30px, 8vw, 130px); align-items: center; background: var(--lichen); color: var(--ink); }
.takeaway-intro h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -.07em; }
.takeaway-intro > p:not(.eyebrow) { max-width: 400px; margin: 24px 0 0; color: rgba(12,23,19,.68); font-size: 14px; }
.poster-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; margin: 26px 0 22px; }
.picker-dot { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 50%; overflow: hidden; background: var(--ink); }
.picker-dot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.picker-dot.is-selected { border-color: var(--ink); transform: scale(1.12); }
.button-wide { width: 100%; max-width: 360px; }
.share-button { margin-top: 14px; }
.save-note { margin-top: 12px !important; color: rgba(12,23,19,.52) !important; font: 10px var(--mono); }
.poster-shell { position: relative; max-width: 480px; padding: 12px; background: #f7f2e6; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.poster-shell canvas { width: 100%; height: auto; background: var(--ink); }
.poster-caption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 0; color: rgba(12,23,19,.55); font: 10px var(--mono); }

.closing { display: grid; grid-template-columns: minmax(0, .9fr) minmax(250px, 1.1fr); gap: clamp(30px, 8vw, 120px); align-items: center; background: var(--paper); color: var(--ink); }
.closing-art { max-width: 580px; }
.closing-art img { width: 100%; aspect-ratio: .7 / 1; object-fit: cover; box-shadow: var(--shadow); }
.closing-copy h2 { margin: 0; max-width: 520px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.15; letter-spacing: -.06em; }
.closing-copy > p:not(.eyebrow) { color: rgba(12,23,19,.58); font-size: 13px; }
.closing-copy .text-link { margin-top: 28px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(22px, 8vw, 128px); background: var(--ink); color: rgba(241,234,219,.5); font: 10px var(--mono); }

.lightbox { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 32px; background: rgba(7, 14, 10, .94); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-inner { width: min(800px, 100%); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-inner img { max-width: 100%; max-height: 78vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.lightbox-inner p { margin: 0; color: var(--paper); font-size: 12px; }
.lightbox-close { position: absolute; top: 22px; right: 28px; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(241,234,219,.5); border-radius: 50%; background: transparent; color: var(--paper); font-size: 27px; line-height: 1; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); font-size: 12px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .topbar { padding: 16px 18px; }
  .brand { font-size: 10px; }
  .hero { min-height: 780px; padding: 116px 22px 44px; }
  .hero-art { inset: 0 0 25%; }
  .tree-strip { inset: 0 -28%; transform: scale(1.05); }
  .tree-strip img { width: 33.333%; }
  .hero-vignette { background: linear-gradient(0deg, var(--ink) 2%, rgba(12,23,19,.6) 40%, rgba(12,23,19,.05) 74%); }
  .hero-copy { margin-top: auto; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
  .hero-lede { margin-top: 20px; font-size: 13px; }
  .hero-actions { margin-top: 24px; }
  .button { min-height: 46px; padding: 10px 16px; font-size: 13px; }
  .hero-foot { right: 22px; bottom: 20px; gap: 9px; font-size: 8px; }
  .section { padding: 78px 22px; }
  .section-heading h2 { font-size: clamp(30px, 9vw, 44px); }
  .section-heading > p:last-child { font-size: 13px; }
  .intro-grid, .bridge, .takeaway, .closing { grid-template-columns: 1fr; gap: 42px; }
  .intro-grid { margin-top: 42px; }
  .intro-side { padding: 0 4px; }
  .timeline-track { margin-top: 54px; }
  .chapter { padding-left: 38px; padding-bottom: 76px; }
  .chapter-label { font-size: 8px; }
  .chapter-copy { display: block; margin-bottom: 18px; }
  .chapter-copy h3 { font-size: 27px; }
  .chapter-copy p { margin-top: 7px; font-size: 12px; }
  .chapter-images { display: block; }
  .timeline-image-large { margin-bottom: 9px; }
  .image-strip { gap: 9px; }
  .bridge-copy blockquote { font-size: 32px; }
  .window-rail { padding-top: 44px; margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; gap: 16px; }
  .window-card { flex-basis: 70vw; }
  .rail-hint { margin-top: 22px; }
  .takeaway { padding-bottom: 90px; }
  .poster-picker { max-width: 360px; }
  .poster-shell { order: -1; max-width: 100%; }
  .closing-art { max-width: 72vw; }
  .footer { padding: 18px 22px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
