/* Large, open project presentations in Roxane's peach, cream and prune. */
body.page-project-detail { background: var(--cream); }
.project-page { --project-rule: #5b045029; width: 100%; padding: 10px 0 0; overflow: clip; background: var(--cream); }
.project-shell { width: calc(100% - clamp(32px,5vw,120px)); max-width: 2200px; margin-inline: auto; }
.project-page :is(h2,p,li) { text-align: start; }
.project-page :is(h1,.project-lead,.project-section-intro,.project-rich-text p,blockquote p) { text-align: var(--copy-alignment,justify); text-align-last: start; }
.project-page :is(p,li) { hyphens: var(--copy-hyphens,auto); word-spacing: normal; }
.project-page h2 { margin: 0 0 24px; font: 400 clamp(30px,3vw,46px)/1.12 Retro,Georgia,serif; letter-spacing: -.035em; }
.project-topbar { min-height: 44px; }
.project-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.project-back svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.project-back:hover svg { transform: translateX(-5px); }
.project-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-hero { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 30px 54px; }
.project-identity { grid-column: 1/-1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.project-client { font-size: 19px; font-weight: 600; line-height: 1.5; }
.project-type { flex: none; margin: 0; font-size: 17px; font-weight: 400; line-height: 1.6; }
.project-page[data-project-page='03'] .project-client { font: 600 clamp(24px,2.3vw,38px)/1.3 var(--font-copy); letter-spacing: -.025em; text-wrap: balance; hyphens: none; }
.project-hero h1 { margin: 0; font: 400 var(--project-title-size,clamp(44px,4.4vw,84px))/1.15 Retro,Georgia,serif; letter-spacing: -.02em; text-wrap: wrap; hyphens: none; }
.project-title-line { display: block; font: inherit; }
.project-title-word { display: inline-block; font: inherit; white-space: nowrap; }
.project-title-line+.project-title-line { margin-top: .12em; }
.project-hero h1 em { display: block; font-family: Groovy,Georgia,serif; }
.project-page[data-project-page='03'] .project-hero h1 { line-height: 1.1; }
.project-page[data-project-page='03'] .project-title-line { text-align: start; text-wrap: balance; }
.project-status { justify-self: start; max-width: 100%; box-sizing: border-box; margin: -8px 0 0; padding: 9px 17px; border-radius: 24px; background: var(--peach); color: var(--prune); font-size: 15px; line-height: 1.55; hyphens: none; }
.project-lead { max-width: 59ch; font-size: 18px; line-height: 1.85; }

/* Images are the work itself: no padded card, border or shared enclosing box. */
.project-overview { margin-bottom: clamp(42px,5vw,80px); scroll-margin-top: calc(var(--header-offset) + 24px); }
.project-intro { margin-bottom: 38px; }
.project-intro .project-lead { margin: 0; }
.project-visual-intro { margin-bottom: 72px; }
.project-hero-media { min-width: 0; margin: 0; }
.project-cover-sheet { display: grid; grid-template-columns: minmax(0,1fr); gap: 26px; transform: translateY(var(--project-frame-shift,0px)); }
.has-publications .project-cover-sheet { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-cover { display: block; min-width: 0; cursor: zoom-in; }
.project-cover img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; translate: var(--art-pixel-x,0px) var(--art-pixel-y,0px); }
.project-cover:hover { outline: 2px solid var(--prune); outline-offset: 5px; }
.project-brief { min-width: 0; }
.project-rich-text p { font-size: 17px; line-height: 1.9; text-wrap: pretty; }
.project-rich-text p+p { margin-top: 28px; }
.project-rich-text ul { margin: 22px 0; padding-left: 20px; font-size: 16px; line-height: 1.85; }
.project-rich-text li+li { margin-top: 12px; }

.project-results { padding-block: 44px; margin-bottom: 0; background: var(--cream); }
.project-results,.project-feedback { scroll-margin-top: calc(var(--header-offset) + 24px); }
.project-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.project-metrics li { min-width: 0; }
.project-metrics strong { display: block; font: 400 clamp(38px,4.5vw,72px)/1 Retro,Georgia,serif; letter-spacing: -.04em; margin-bottom: 18px; white-space: nowrap; }
.project-metrics li>span,.project-metrics small { display: block; font-size: 15px; line-height: 1.75; }
.project-metrics small { font-size: 14px; margin-top: 8px; }
.project-results-note { max-width: 100ch; margin-top: 24px; font-size: 14px; line-height: 1.8; }
.project-shell.project-comparison-wrap { width: calc(100% - clamp(16px,2vw,48px)); max-width: none; }
.project-comparison-wrap { padding-block: 15px 55px; }
.project-section-intro { max-width: 74ch; font-size: 17px; line-height: 1.8; margin-bottom: 22px; }

/* Open, full-width work boards with a small labelled navigation rail. */
.project-gallery { padding-block: clamp(40px,5vw,80px); margin: 0; background: var(--prune); color: var(--cream); }
.project-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.project-section-heading h2 { margin: 0; max-width: 1100px; }
.project-gallery-exhibit { display: grid; grid-template-columns: minmax(0,1fr) clamp(280px,17vw,360px); gap: clamp(30px,4vw,70px); align-items: start; }
.project-gallery-works { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,3vw,52px); min-width: 0; align-items: start; }
.project-gallery-item { min-width: 0; outline-offset: 8px; scroll-margin-top: calc(var(--header-offset) + 24px); }
.project-gallery-item:focus-visible { outline: 2px solid var(--peach); }
.project-gallery-piece { min-width: 0; margin: 0; }
.project-gallery-media { min-width: 0; transform: translateY(var(--project-frame-shift,0px)); }
.project-gallery-media>a { display: block; cursor: zoom-in; }
.project-gallery-media img,.project-gallery-media video { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.project-gallery-media img { translate: var(--art-pixel-x,0px) var(--art-pixel-y,0px); }
.project-gallery-media video { max-height: min(850px,80svh); object-fit: contain; background: #36022f; }
.project-gallery-piece[data-playing=true] .project-gallery-media { transform: none; transition: none; }
.project-gallery[data-project-gallery='01'] .project-gallery-works { grid-template-columns: repeat(3,minmax(0,1fr)); }
.project-gallery[data-project-gallery='02'] .project-gallery-item:first-child,.project-gallery[data-project-gallery='02'] .project-gallery-item:nth-child(n+4) { grid-column: 1/-1; }
.project-gallery[data-project-gallery='03'] .project-gallery-works { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
.project-gallery[data-project-gallery='03'] .project-gallery-item:first-child { position: sticky; top: calc(var(--header-offset) + 45px); }
.project-gallery-previews { position: sticky; top: calc(var(--header-offset) + 26px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; min-width: 0; }
.project-gallery-preview { position: relative; display: block; min-width: 0; padding: 0; text-align: left; border: 0; border-radius: 0; color: var(--cream); background: transparent; }
.project-preview-image { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .3s; }
.project-preview-image img { width: 100%; height: 100%; object-fit: contain; }
.project-gallery-preview:hover .project-preview-image,.project-gallery-preview[aria-pressed=true] .project-preview-image { opacity: 1; outline-color: var(--peach); }
.project-preview-caption { display: block; margin-top: 11px; font: 600 14px/1.65 var(--font-copy); text-align: start; hyphens: var(--copy-hyphens,auto); overflow-wrap: anywhere; }
.project-gallery-preview[aria-pressed=true] .project-preview-caption { color: var(--peach); }
.project-preview-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 27px; height: 27px; fill: var(--cream); filter: drop-shadow(0 1px 4px #0008); }

.project-feedback { padding-block: clamp(22px,2.7vw,34px); background: var(--peach); color: var(--prune); }
.project-feedback-inner { display: grid; grid-template-columns: fit-content(15rem) minmax(0,1fr); align-items: baseline; gap: 10px clamp(28px,5vw,72px); max-width: 1020px; }
.project-page .project-feedback h2 { margin: 0; font-size: clamp(20px,1.65vw,24px); line-height: 1.2; text-wrap: balance; }
.project-feedback figure,.project-feedback blockquote { margin: 0; }
.project-page .project-feedback blockquote p { margin: 0; font-size: clamp(16px,1.15vw,17px); line-height: 1.55; text-align: start; text-wrap: pretty; hyphens: none; }
.project-feedback figcaption { display: grid; justify-items: start; gap: 6px; margin-top: 10px; }
.project-client-logo { display: grid; place-items: center; width: 42px; height: 42px; padding: 6px; border-radius: 50%; background: var(--cream); }
.project-client-logo img { width: 100%; height: 100%; object-fit: contain; }
.project-page .project-feedback figcaption p { margin: 0; font-size: 14px; line-height: 1.5; hyphens: none; }
.project-feedback-author { font-weight: 600; }

.project-process-grid { --project-column-gap: clamp(32px,3.5vw,72px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.1fr); gap: var(--project-column-gap); align-items: stretch; scroll-margin-top: calc(var(--header-offset) + 24px); }
.project-process-grid>section { position: relative; }
.project-process-grid>section+section::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--project-column-gap) / -2); width: 1px; background: #5b045066; pointer-events: none; }
.project-narrative,.project-implementation-section { min-width: 0; }
.project-process-grid h2 { position: static; margin: 0 0 26px; font-size: clamp(28px,2.3vw,40px); }
.project-narrative .project-rich-text { columns: auto; }
.project-implementation { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; padding: 0; margin: 0; }
.project-implementation li { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 12px; min-width: 0; font-size: 17px; line-height: 1.85; }
.project-action-check { width: 22px; height: 22px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-implementation .is-upcoming .project-action-check { opacity: .65; }
.project-implementation .is-upcoming { font-style: italic; }
.project-notes { margin-top: 28px; font-size: 14px; line-height: 1.75; }
.project-notes p { text-align: start; }
.project-notes p+p { margin-top: 10px; }

/* Reveals use clipping and whole-pixel translation, keeping artwork sharp. */
.project-page[data-motion-ready=true]:not([data-reduced-motion=true]) [data-project-reveal] { opacity: 0; translate: 0 80px; transition: opacity .9s ease,translate 1.25s cubic-bezier(.16,1,.3,1); }
.project-page[data-motion-ready=true]:not([data-reduced-motion=true]) [data-project-visible=true] { opacity: 1; translate: 0 0; }
.project-page[data-motion-ready=true]:not([data-reduced-motion=true]) :is(.project-gallery-piece,.project-hero-media)[data-project-reveal] { translate: none; transition: opacity .9s ease; }
.project-page[data-motion-ready=true]:not([data-reduced-motion=true]) .project-hero-media[data-project-visible=true] .project-cover-sheet { animation: project-cover-open 1.6s cubic-bezier(.45,0,.3,1) .2s both; }
.project-page[data-motion-ready=true]:not([data-reduced-motion=true]) .project-gallery-piece[data-project-visible=true] { animation: project-work-unfold 1.4s cubic-bezier(.16,1,.3,1) both; }
.project-page[data-motion-ready=true]:not([data-reduced-motion=true]) .project-gallery-item:nth-child(even)>.project-gallery-piece[data-project-visible=true] { animation-name: project-work-unfold-right; }
.project-page[data-document-hidden=true] *,.project-gallery[data-gallery-paused=true] * { animation-play-state: paused !important; }
@keyframes project-cover-open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes project-work-unfold { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes project-work-unfold-right { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

@media(max-width:1150px) {
 .project-hero { gap: 25px 35px; }
 .project-hero h1 { font-size: var(--project-title-size,clamp(38px,5vw,58px)); }
 .project-gallery-exhibit { grid-template-columns: minmax(0,1fr) 200px; gap: 30px; }
 .project-gallery[data-project-gallery='01'] .project-gallery-works { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .project-gallery-previews { grid-template-columns: 1fr; max-height: calc(100svh - var(--header-offset) - 60px); overflow-y: auto; padding: 4px 7px; }
 .project-preview-image { aspect-ratio: 1.35; }
 .project-process-grid { --project-column-gap: 36px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 44px var(--project-column-gap); }
 .project-process-grid>.project-brief { grid-column: 1/-1; max-width: 76ch; }
 .project-process-grid>.project-narrative::before { display: none; }
}
@media(max-width:760px) {
 .project-page { padding-top: 4px; }
 .project-shell { width: calc(100% - 36px); }
 .project-hero { grid-template-columns: 1fr; gap: 20px; padding-block: 20px 30px; }
 .project-identity { gap: 10px; }
 .project-client { font-size: 16px; }
 .project-type { font-size: 16px; }
 .project-page[data-project-page='03'] .project-client { font-size: clamp(23px,6vw,30px); }
 .project-page[data-project-page='03'] .project-cover-sheet { transform: none; }
 .project-hero h1 { font-size: var(--project-title-size,clamp(36px,8vw,54px)); }
 .project-page[data-project-page='01'] .project-hero h1 {
  font-size: clamp(32px,8.5vw,54px);
  line-height: 1.1;
  text-align: start;
  text-wrap: balance;
 }
 .project-page[data-project-page='01'] .project-hero h1 .project-title-line { display: inline; margin: 0; }
 .project-page[data-project-page='03'] .project-hero h1 { font-size: var(--project-title-size,clamp(26px,8vw,54px)); }
 .project-lead { font-size: 16px; line-height: 1.85; }
 .project-overview,.project-visual-intro { margin-bottom: 40px; }
 .project-intro { margin-bottom: 30px; }
 .project-cover-sheet { gap: 15px; }
 .project-brief { padding: 0; }
 .project-rich-text p { font-size: 16px; line-height: 1.85; }
 .project-page h2 { font-size: 30px; }
 .project-results { padding-block: 35px; }
 .project-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
 .project-metrics strong { font-size: clamp(36px,9vw,52px); }
 .project-metrics li>span { font-size: 14px; }
 .project-comparison-wrap { padding-block: 5px 35px; }
 .project-section-intro { font-size: 16px; }
 .project-gallery { padding-block: 35px; }
 .project-section-heading { align-items: center; gap: 16px; margin-bottom: 25px; }
 .project-section-heading h2 { font-size: 28px; }
 .project-gallery-exhibit { display: flex; flex-direction: column; gap: 28px; }
 .project-gallery-works { width: 100%; gap: 28px; }
 .project-gallery-previews { order: -1; position: static; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; max-height: none; overflow: visible; padding: 0; }
 .project-preview-image { aspect-ratio: 1; }
 .project-preview-caption { font-size: 14px; }
 .project-gallery[data-project-gallery='03'] .project-gallery-item:first-child { position: static; }
 .project-process-grid { grid-template-columns: 1fr; gap: 38px; }
 .project-process-grid>section+section::before { display: none; }
 .project-process-grid>.project-brief { grid-column: auto; }
 .project-process-grid h2 { margin-bottom: 22px; }
 .project-narrative .project-rich-text p,.project-narrative .project-rich-text ul { font-size: 16px; }
 .project-implementation { gap: 22px; }
 .project-implementation li { font-size: 16px; }
}
@media(max-width:600px) {
 .project-feedback-inner { grid-template-columns: minmax(0,1fr); }
 .has-publications .project-cover-sheet { grid-template-columns: 1fr; }
 .project-gallery-works,.project-gallery[data-project-gallery='01'] .project-gallery-works,.project-gallery[data-project-gallery='03'] .project-gallery-works { grid-template-columns: 1fr; }
 .project-gallery-item:nth-child(n) { grid-column: 1/-1; }
 .project-implementation { grid-template-columns: 1fr; }
}
@media(max-width:400px) {
 .project-shell { width: calc(100% - 32px); }
 .project-section-heading h2 { font-size: 26px; }
}
@media(prefers-reduced-motion:reduce) {
 .project-page *, .project-page *::before,.project-page *::after { animation: none !important; transition: none !important; }
 .project-cover-sheet,.project-gallery-media { transform: none; }
}
