/* ===== Exhibition rooms: the photography leads, the scrapbook steps back ===== */
body { background: var(--bg); color: var(--fg); }
body::after { opacity: .1; }
body[data-room="green-weather"]::after { mix-blend-mode: screen; opacity: .06; }
.chrome .wordmark small { color: var(--muted); }

/* ---------- entrance ---------- */
.entrance { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.ent-meta { position: absolute; left: var(--gutter); top: 96px; display: grid; gap: 2px; color: var(--muted); z-index: 2; }
.ent-img { position: absolute; margin: 0; right: var(--gutter); top: 0; width: 50vw; height: 86vh; overflow: hidden; }
.ent-img img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.12); } }
.ent-title {
  position: absolute; left: calc(var(--gutter) - .06em); bottom: 4vh; margin: 0; z-index: 3;
  font-size: clamp(64px, var(--fit, 19vw), 330px); font-style: italic;
  display: flex; overflow: hidden; padding: 0 .1em .06em 0;
}
.ent-title span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(.25s + var(--i) * .06s); }
.entrance.on .ent-title span { transform: none; }
.ent-kicker { position: absolute; left: var(--gutter); top: 34vh; width: min(30vw, 360px); margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; font-style: italic; z-index: 2; }
.ent-scroll { position: absolute; left: calc(52vw - 60px); bottom: 40vh; margin: 0; font-size: 28px; color: var(--accent); transform: rotate(-6deg); display: flex; align-items: center; gap: 6px; z-index: 3; }
.ent-scroll svg { width: 56px; transform: rotate(90deg); overflow: visible; }
.ent-scroll path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- statement ---------- */
.statement { position: relative; padding: 22vh var(--gutter) 18vh; display: grid; place-items: center; }
.lede { margin: 0; max-width: 24ch; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -.015em; font-variation-settings: "opsz" 72, "SOFT" 100; text-indent: 2.4em; }
.lede::first-letter { color: var(--accent); font-style: italic; }
.margin-note { position: absolute; right: 14vw; bottom: 14vh; font-size: 30px; color: var(--accent); transform: rotate(-4deg); }

/* ---------- the walk ---------- */
.walk { position: relative; }
.walk-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--wallc); }
/* a picture rail */
.walk-sticky::before { content: ""; position: absolute; left: 0; right: 0; top: 8vh; height: 1px; background: color-mix(in srgb, var(--fg) 18%, transparent); }
.walk-track { display: flex; align-items: flex-start; gap: 9vw; height: 100%; padding: 13vh 12vw 0 10vw; width: max-content; will-change: transform; }
.work { position: relative; flex: none; display: block; text-decoration: none; margin-top: calc(var(--y) * .5vh); width: calc(var(--w) * 1vw); }
/* each piece gets its own gallery light */
.work::before { content: ""; position: absolute; left: -30%; right: -30%; top: -14vh; height: 70vh; background: radial-gradient(50% 50% at 50% 0%, rgba(255,250,235,.28), transparent 70%); pointer-events: none; }
body[data-room="green-weather"] .work::before { background: radial-gradient(50% 50% at 50% 0%, rgba(240,255,200,.08), transparent 70%); }
.frame { display: block; overflow: hidden; max-height: 64vh; box-shadow: 0 30px 40px -30px rgba(0,0,0,.45); }
.frame img { width: 100%; height: auto; transform: scale(1.18); transition: filter .6s; }
.work:hover .frame img { filter: brightness(1.04) contrast(1.04); }
.wlabel { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; margin-top: 16px; max-width: 360px; color: var(--muted); }
.wlabel .mono:first-child { grid-row: span 2; padding-top: 6px; }
.wtitle { font-size: 22px; line-height: 1.2; color: var(--fg); }
.work:hover .wtitle em { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wnote { position: absolute; right: -2vw; top: -36px; font-size: 26px; color: var(--accent); transform: rotate(-3deg); white-space: nowrap; }
.walltext { flex: none; width: 30vw; align-self: center; margin-top: -8vh; }
.walltext p { margin: 0; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.22; font-style: italic; font-variation-settings: "opsz" 72, "SOFT" 100; }
.walltext .hand { display: block; margin-top: 18px; font-size: 32px; color: var(--accent); }
.walk-end { flex: none; align-self: center; display: grid; gap: 6px; padding-right: 6vw; }
.walk-end .hand { font-size: 44px; }
.walk-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; align-items: center; gap: 18px; color: var(--muted); }
.walk-bar { flex: 1; height: 1px; background: color-mix(in srgb, var(--fg) 20%, transparent); }
.walk-bar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- coda ---------- */
.coda { position: relative; padding: 0; }
.coda-img { position: relative; margin: 0; height: 100vh; overflow: hidden; background: #1b1714 center / cover no-repeat; }
.coda-img::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(24px); z-index: 0; }
.coda-img img { position: relative; z-index: 1; }
.coda-label { position: absolute; left: var(--gutter); bottom: 26px; margin: 0; color: #fbf7ee; opacity: .85; text-shadow: 0 1px 10px rgba(0,0,0,.45); z-index: 2; }
.coda-img img { width: 100%; height: 100%; object-fit: cover; }
.coda-note { z-index: 2; position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%) rotate(-2deg); margin: 0; font-size: clamp(40px, 6vw, 84px); color: #fbf7ee; text-shadow: 0 2px 30px rgba(0,0,0,.35); white-space: nowrap; }

/* ---------- exit ---------- */
.exit { padding: 14vh var(--gutter) 40px; }
.exit-next { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 40px; padding: 40px; text-decoration: none; background: var(--nbg); color: var(--nfg); overflow: hidden; transition: padding .6s var(--ease-out); }
.exit-next .mono { grid-column: 1 / -1; opacity: .7; }
.exit-title { font-size: clamp(64px, 12vw, 200px); font-style: italic; position: relative; z-index: 2; }
.exit-next img { position: absolute; right: 40px; top: 50%; width: 240px; aspect-ratio: 4/5; object-fit: cover; transform: translateY(-50%) rotate(4deg) scale(.6); opacity: 0; transition: transform .8s var(--ease-out), opacity .5s; }
.exit-next:hover img { opacity: 1; transform: translateY(-50%) rotate(4deg) scale(1); }
.exit-kicker { font-style: italic; font-size: 20px; opacity: .8; position: relative; z-index: 2; }
.exit-next:hover { padding-left: 64px; }
.exit-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 40px 0 26px; }
.exit-links a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- small screens: the walk becomes a vertical hang ---------- */
@media (max-width: 760px) {
  .entrance { height: auto; min-height: 0; padding: 86px 16px 40px; display: grid; gap: 18px; }
  .ent-meta, .ent-img, .ent-title, .ent-kicker, .ent-scroll { position: static; }
  .ent-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; order: 1; }
  .ent-title { order: 2; font-size: var(--fit-m, 22vw); }
  .ent-img { order: 3; width: 100%; height: 62vh; }
  .ent-kicker { order: 4; width: auto; }
  .ent-scroll { display: none; }
  .statement { padding: 12vh 16px; }
  .margin-note { position: static; display: block; margin-top: 20px; justify-self: end; }
  .walk-sticky { position: static; height: auto; overflow: visible; }
  .walk-sticky::before, .walk-progress, .walk-end { display: none; }
  .walk-track { display: grid; width: auto; gap: 72px; padding: 72px 16px; transform: none !important; }
  .work { width: 86%; margin: 0; }
  .work:nth-child(even) { justify-self: end; }
  .frame { max-height: none; }
  .frame img { transform: none !important; }
  .wnote { position: static; display: block; margin-top: 8px; white-space: normal; }
  .walltext { width: auto; margin: 0; }
  .coda-img { height: 70vh; }
  .coda-note { white-space: normal; width: 90%; text-align: center; }
  .exit { padding: 10vh 16px 32px; }
  .exit-next { padding: 24px; grid-template-columns: 1fr; }
  .exit-next img { display: none; }
  .exit-next:hover { padding-left: 24px; }
}
@media (max-width: 760px) { .work::before { display: none; } }

/* story thread marker */
.jmark { position: absolute; left: 0; top: -26px; color: var(--accent); font-size: 10px; opacity: .85; }
@media (max-width: 760px) { .jmark { position: static; display: block; margin-bottom: 6px; } }
