/* ==========================================================================
   Work, scroll-told (preview). Pairs with work-v2.html and work-v2.js.
   Loads after site.css. Uses only the site's own fonts and palette tokens.
   Everything below reads as a normal static page: the pinned and scrubbed
   behaviour only switches on when work-v2.js adds .wv-on (JS present, motion
   allowed). With reduced motion or no JS the chapters simply stack.
   ========================================================================== */

:root { --nav-h: 82px; --wv-ease: cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 900px) { :root { --nav-h: 100px; } }

/* ---------- Shared type ---------- */
.wv-eyebrow, .wv-meta, .wv-link, .wv-jump, .wv-open, .wv-piece__no, .wv-ways__index {
  font-family: var(--mono); font-size: 12px; letter-spacing: .045em; line-height: 1.5; text-transform: uppercase;
}
.wv h1, .wv h2, .wv h3, .wv blockquote { font-family: var(--serif); font-weight: 400; margin: 0; }
.wv em { font-weight: 400; }
.wv h1, .wv h2 { word-spacing: .1em; }
.wv-dark a:focus-visible, .wv-ways [data-tone='taupe'] a:focus-visible { outline-color: var(--paper); }
.wv-dark a:focus-visible { outline-color: var(--paper); }

/* ---------- Nav floats over the chapters so each one is a true full screen ---------- */
.wv-page .site-nav { left: 0; position: fixed; right: 0; top: 0; }
.wv-on .site-nav { transition: transform .45s var(--wv-ease); }
.wv-on .site-nav.is-tucked { transform: translateY(-101%); }
.wv-progress { height: 2px; left: 0; pointer-events: none; position: fixed; right: 0; top: 0; z-index: 30; }
.wv-progress span { background: var(--terracotta); display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; }

/* Chapters after the hero sit above it, so the hero can stay put underneath (curtain) */
.wv > :not(.wv-hero) { position: relative; z-index: 2; }

/* ==========================================================================
   1 · Reveal (hero)
   ========================================================================== */
.wv-hero { background: var(--paper); height: 100vh; height: 100svh; overflow: clip; position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) { .wv-hero { position: sticky; top: 0; } }
.wv-hero__stage { display: grid; grid-template-columns: repeat(12, 1fr); height: 100%; }
.wv-hero__copy { align-items: flex-start; align-self: stretch; display: flex; flex-direction: column; grid-column: 1 / 7; grid-row: 1; justify-content: flex-end; padding: calc(var(--nav-h) + 24px) 0 clamp(34px, 6svh, 70px) var(--pad); position: relative; z-index: 2; }
.wv-hero h1 { color: var(--terracotta); font-size: clamp(120px, 23vw, 390px); letter-spacing: -.085em; line-height: .66; margin: 26px 0 clamp(26px, 5svh, 54px); }
.wv-hero h1 em { color: inherit; }
.wv-lede { font-size: clamp(17px, 1.7vw, 25px); line-height: 1.4; margin: 0 0 clamp(26px, 5svh, 52px); max-width: 30ch; }
.wv-jump { align-items: center; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; min-height: 48px; width: min(260px, 100%); }
.wv-jump b { color: var(--terracotta); font-family: var(--serif); font-size: 26px; font-weight: 400; }
.wv-hero__photo { grid-column: 7 / -1; grid-row: 1; margin: 0; overflow: hidden; position: relative; }
.wv-hero__photo img { height: 100%; object-fit: cover; width: 100%; }
.wv-on .wv-hero__photo img { height: 114%; margin-top: -7%; will-change: transform; }
.wv-hero__photo figcaption { background: rgba(244, 230, 215, .94); bottom: 16px; display: flex; font-family: var(--mono); font-size: 12px; gap: 16px; left: 16px; letter-spacing: .045em; padding: 8px 12px; position: absolute; text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .has-js .wv-hero__photo { animation: wv-unveil 1.3s cubic-bezier(.7, 0, .2, 1) both; }
  .has-js .wv-hero__copy > * { animation: wv-rise 1s var(--wv-ease) both; }
  .has-js .wv-hero__copy > :nth-child(1) { animation-delay: .2s; }
  .has-js .wv-hero__copy > :nth-child(2) { animation-delay: .35s; }
  .has-js .wv-hero__copy > :nth-child(3) { animation-delay: .55s; }
  .has-js .wv-hero__copy > :nth-child(4) { animation-delay: .7s; }
}
@keyframes wv-unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wv-rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 900px) {
  .wv-hero { height: auto; min-height: 100svh; }
  .wv-hero__stage { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .wv-hero__photo { flex: 0 0 auto; height: 60svh; order: 0; }
  .wv-hero__copy { flex: 1; order: 1; padding: 22px var(--pad) 34px; }
  .wv-hero h1 { font-size: 34vw; margin: 18px 0 22px; }
  .wv-lede { font-size: 17px; margin-bottom: 24px; }
  .wv-on .wv-hero__photo img { height: 114%; margin-top: -7%; }
}

/* ==========================================================================
   2 · Manifesto
   ========================================================================== */
.wv-manifesto { background: var(--ink); color: var(--paper); }
.wv-manifesto__inner { display: grid; gap: 4svh; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 3svh) var(--pad) clamp(34px, 7svh, 80px); }
.wv-manifesto .wv-eyebrow { color: var(--coral); }
.wv-manifesto blockquote { align-self: center; font-size: clamp(50px, min(8.6vw, 15svh), 160px); letter-spacing: -.055em; line-height: .88; max-width: 16ch; }
.wv-manifesto blockquote em { color: var(--coral); }
.wv-manifesto__copy { justify-self: end; max-width: 520px; }
.wv-manifesto__copy p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; margin: 0; }
@media (max-width: 900px) {
  .wv-manifesto__inner { gap: 40px; min-height: 0; padding-bottom: 70px; padding-top: calc(var(--nav-h) + 36px); }
  .wv-manifesto blockquote { font-size: 15.5vw; max-width: none; }
  .wv-manifesto__copy { justify-self: start; }
}

/* ==========================================================================
   3 · Catalogue: four ways
   ========================================================================== */
.wv-ways { background: var(--ivory); }
.wv-ways__stage { position: relative; }
.wv-ways__index { display: none; }

.wv-intro { background: var(--ivory); display: flex; min-height: 60svh; padding: 18vw var(--pad) 8vw; }
.wv-intro__text { align-self: flex-end; }
.wv-intro h2 { font-size: clamp(76px, 15vw, 270px); letter-spacing: -.075em; line-height: .74; margin: 28px 0 0; }

.wv-way { align-items: center; display: flex; flex-direction: column; gap: 26px; overflow: hidden; padding: 64px var(--pad) 72px; position: relative; }
.wv-way[data-tone='ivory'] { background: var(--ivory); border-top: 1px solid var(--ink); }
.wv-way[data-tone='apricot'] { background: var(--apricot); }
.wv-way[data-tone='soft'] { background: var(--soft); }
.wv-way[data-tone='taupe'] { background: var(--taupe); }
.wv-way__img { aspect-ratio: var(--ar, 1.5); margin: 0; overflow: hidden; width: 100%; }
.wv-way__img img { height: 100%; object-fit: cover; width: 100%; }
.wv-way__text { position: relative; width: 100%; z-index: 1; }
.wv-meta { display: block; }
.wv-way h3 { font-size: clamp(54px, 15vw, 90px); letter-spacing: -.055em; line-height: .86; margin: 12px 0 18px; }
.wv-way h3 a { display: inline-block; }
.wv-way h3 a:hover { color: var(--terracotta); }
.wv-way[data-tone='apricot'] h3 a:hover, .wv-way[data-tone='taupe'] h3 a:hover { color: var(--ivory); }
.wv-way p { font-size: 17px; line-height: 1.65; margin: 0; max-width: 46ch; }
.wv-way__tags { border-top: 1px solid currentColor; display: flex; font-family: var(--mono); font-size: 12px; justify-content: space-between; letter-spacing: .045em; margin-top: 28px; max-width: 46ch; padding-top: 12px; text-transform: uppercase; }
.wv-way__num { color: var(--coral); display: none; font-family: var(--serif); line-height: .6; pointer-events: none; }

/* Wide screens: the four ways become one pinned screen that changes chapter */
@media (min-width: 1000px) {
  .wv-way { align-items: center; display: grid; gap: 0 clamp(20px, 3vw, 52px); grid-template-columns: repeat(12, 1fr); min-height: 100svh; padding: 9svh var(--pad); }
  .wv-way__text { align-self: center; }
  .wv-way h3 { font-size: clamp(54px, min(7.2vw, 12svh), 130px); margin: 16px 0 22px; }
  .wv-way p { font-size: clamp(16px, 1.25vw, 19px); }
  .wv-way__img { align-self: center; max-height: 72svh; }
  .wv-way[data-side='img-left'] .wv-way__img { grid-column: 1 / 8; grid-row: 1; }
  .wv-way[data-side='img-left'] .wv-way__text { grid-column: 9 / 13; grid-row: 1; }
  .wv-way[data-side='img-right'] .wv-way__img { grid-column: 7 / 13; grid-row: 1; }
  .wv-way[data-side='img-right'] .wv-way__text { grid-column: 1 / 6; grid-row: 1; }
  #hand-built .wv-way__img { grid-column: 2 / 7; }
  #hand-built .wv-way__text { grid-column: 8 / 13; }
  #commissions .wv-way__img { grid-column: 7 / 12; }
  .wv-way__num { bottom: -7svh; display: block; font-size: clamp(150px, 24vw, 380px); opacity: .5; position: absolute; z-index: 0; }
  .wv-way[data-side='img-left'] .wv-way__num { right: 1vw; }
  .wv-way[data-side='img-right'] .wv-way__num { left: 1vw; }
  .wv-intro { align-items: flex-end; min-height: 100svh; padding: calc(var(--nav-h) + 6svh) var(--pad) 9svh; }
  .wv-intro h2 { font-size: clamp(76px, min(15vw, 28svh), 280px); }

  .wv-pinned .wv-ways__stage { height: 100vh; height: 100svh; overflow: hidden; }
  .wv-pinned .wv-intro, .wv-pinned .wv-way { inset: 0; min-height: 0; position: absolute; }
  .wv-pinned .wv-way { padding-top: calc(var(--nav-h) + 3svh); }
  .wv-pinned .wv-ways__index { color: var(--ink); display: block; opacity: 0; position: absolute; right: var(--pad); top: calc(var(--nav-h) + 14px); transition: opacity .3s ease; z-index: 20; }
  .wv-pinned .wv-ways__index.is-on { opacity: 1; }
}

/* ==========================================================================
   4 · Band
   ========================================================================== */
.wv-band { background: var(--ink); border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); color: var(--paper); overflow: hidden; padding: clamp(14px, 2vw, 28px) 0; user-select: none; }
.wv-band__track { display: flex; gap: .45em; white-space: nowrap; width: max-content; will-change: transform; }
.wv-band__track span { font-family: var(--serif); font-size: clamp(64px, 11vw, 190px); letter-spacing: -.05em; line-height: .9; }
.wv-band__track span:nth-child(even) { color: transparent; font-style: italic; -webkit-text-stroke: 1px var(--coral); }
.wv-band__track span::after { color: var(--terracotta); content: '·'; font-style: normal; margin-left: .45em; -webkit-text-stroke: 0; }

/* ==========================================================================
   5 · Dossier: firings
   ========================================================================== */
.wv-firings { align-items: start; background: var(--apricot); column-gap: 4vw; display: grid; grid-template-columns: 5fr 7fr; overflow-x: clip; padding: clamp(90px, 12vw, 180px) var(--pad) clamp(80px, 10vw, 150px); }
.wv-firings__head { align-self: start; position: sticky; top: calc(var(--nav-h) + 8svh); }
.wv-firings h2 { font-size: clamp(76px, 11.5vw, 200px); letter-spacing: -.075em; line-height: .74; margin: 26px 0 0; }
.wv-firings h2 em { font-style: italic; }
.wv-firings__terms { font-family: var(--serif); font-size: clamp(54px, 8.6vw, 156px); letter-spacing: -.055em; line-height: .9; margin: 0; }
.wv-term { display: block; margin: clamp(26px, 9svh, 100px) 0; }
.wv-term:first-child { margin-top: 0; }
.wv-term:nth-child(even) { font-style: italic; text-align: right; }
.wv-term--tail { font-family: var(--sans); font-size: clamp(17px, 1.7vw, 24px); font-style: normal !important; letter-spacing: 0; line-height: 1.4; margin-bottom: 0; text-align: left !important; }
.wv-firings__link { align-items: center; border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); display: flex; font-family: var(--mono); font-size: 12px; grid-column: 2; justify-content: space-between; letter-spacing: .045em; margin-top: clamp(50px, 8vw, 110px); min-height: 64px; text-transform: uppercase; }
.wv-firings__link b { font-family: var(--serif); font-size: 30px; font-weight: 400; transition: translate .3s var(--wv-ease); }
.wv-firings__link:hover b { translate: 4px -4px; }
@media (max-width: 900px) {
  .wv-firings { display: block; padding: 90px var(--pad) 80px; }
  .wv-firings__head { margin-bottom: 56px; position: static; }
  .wv-firings h2 { font-size: 24vw; }
  .wv-firings__terms { font-size: 17vw; }
  .wv-term { margin: 22px 0; }
  .wv-firings__link { margin-top: 56px; }
}

/* ==========================================================================
   6 · Gallery: the work, up close
   ========================================================================== */
.wv-gallery { background: var(--ivory); padding: clamp(80px, 10vw, 150px) var(--pad) clamp(70px, 9vw, 140px); }
.wv-gallery__head { align-items: end; border-bottom: 1px solid var(--ink); display: grid; gap: 40px; grid-template-columns: 8fr 4fr; margin-bottom: clamp(30px, 5vw, 70px); padding-bottom: 34px; }
.wv-gallery__head h2 { font-size: clamp(72px, 11vw, 190px); letter-spacing: -.075em; line-height: .76; }
.wv-gallery__head h2 em { color: var(--terracotta); }
.wv-gallery__head p { font-size: 16px; line-height: 1.7; margin: 0 0 8px; max-width: 34ch; }

.wv-piece { display: block; margin-top: clamp(60px, 11vw, 120px); }
.wv-piece__fig { aspect-ratio: var(--ar, 1); background: var(--paper); border: 1px solid rgba(67, 40, 28, .28); margin: 0; overflow: hidden; width: 100%; }
.wv-piece__fig img { height: 100%; object-fit: cover; transition: filter .6s ease; width: 100%; }
.wv-piece:hover .wv-piece__fig img { filter: saturate(1.08); }
.wv-piece__cap { margin-top: 22px; }
.wv-piece__no { color: var(--terracotta); display: block; margin-bottom: 12px; }
.wv-piece__meta { border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .045em; padding-top: 10px; text-transform: uppercase; }
.wv-piece h3 { font-size: clamp(50px, 14vw, 84px); letter-spacing: -.055em; line-height: .88; margin: 16px 0 12px; }
.wv-piece p { font-size: 16px; line-height: 1.55; margin: 0; max-width: 34ch; }
.wv-open { border-bottom: 1px solid transparent; display: inline-block; margin-top: 22px; padding-bottom: 5px; transition: border-color .2s ease, color .2s ease; }
.wv-piece:hover .wv-open, .wv-piece:focus-visible .wv-open { border-color: currentColor; color: var(--terracotta); }

@media (min-width: 901px) {
  .wv-piece { column-gap: clamp(20px, 3vw, 52px); display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 0; min-height: 120svh; padding: 10svh 0; }
  .wv-piece__fig { align-self: start; grid-row: 1; width: min(100%, calc(80svh * var(--ar, 1))); }
  .wv-piece__cap { align-self: start; grid-row: 1; margin-top: 0; position: sticky; top: calc(var(--nav-h) + 14svh); z-index: 1; }
  .wv-piece h3 { font-size: clamp(50px, min(6.4vw, 11svh), 112px); }
  .wv-piece[data-side='right'] .wv-piece__fig { grid-column: 5 / 13; justify-self: end; }
  .wv-piece[data-side='right'] .wv-piece__cap { grid-column: 1 / 5; }
  .wv-piece[data-side='left'] .wv-piece__fig { grid-column: 1 / 9; justify-self: start; }
  .wv-piece[data-side='left'] .wv-piece__cap { grid-column: 9 / 13; }
}
@media (max-width: 900px) {
  .wv-gallery__head { grid-template-columns: 1fr; }
  .wv-gallery__head h2 { font-size: 23vw; }
  .wv-piece__fig { max-height: 78svh; }
}

/* ==========================================================================
   7 · Exhibitions and origins (rows come from site.css)
   ========================================================================== */
.wv-context { min-height: 100svh; }

/* ==========================================================================
   8 · Close
   ========================================================================== */
.wv-close { align-content: center; background: var(--terracotta); border-bottom: 1px solid rgba(255, 250, 244, .4); color: var(--ivory); display: grid; gap: clamp(28px, 6svh, 60px); min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 4svh) var(--pad) clamp(50px, 9svh, 100px); }
.wv-close blockquote { font-size: clamp(54px, min(9.8vw, 17svh), 180px); letter-spacing: -.055em; line-height: .86; max-width: 14ch; }
.wv-close blockquote em { color: var(--paper); }
.wv-close__copy { max-width: 560px; }
.wv-close__copy p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; margin: 0 0 26px; }
.wv-link { border-bottom: 1px solid currentColor; display: inline-flex; align-items: center; min-height: 44px; }
.wv-link:hover { color: var(--paper); }
@media (max-width: 900px) {
  .wv-close { gap: 36px; min-height: 0; padding-bottom: 80px; padding-top: 90px; }
  .wv-close blockquote { font-size: 15vw; max-width: none; }
}

/* ---------- Entrance helper: split headings sit in masks ---------- */
.wv-on .wv-mask { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Reduced motion: static, fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .wv-progress { display: none; }
  .wv-band__track { flex-wrap: wrap; white-space: normal; width: auto; }
  .wv-piece__fig img, .wv-open, .wv-firings__link b { transition: none; }
}
