/* Home-only project gallery. Detail-page typography and layout stay untouched. */
.work-gallery { margin: 0; border-top: 1px solid var(--rule); scroll-margin-top: -36px; }
.work-stage { padding: 0 32px 32px; background: var(--paper); }
.work-heading { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.work-heading h2, .work-heading > span { font: 400 14px "Bitcount Grid Single", monospace; margin: 0; letter-spacing: .03em; }
.work-heading > span { color: var(--muted); }
.work-layout, .work-panels { min-width: 0; }
.project-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 60px)); gap: 12px; padding-bottom: 24px; }
.work-thumb { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; aspect-ratio: 1; color: #242623; background: var(--cover); text-decoration: none; flex: 0 0 auto; }
.work-thumb span { font: 400 26px "BBH Hegarty", sans-serif; }
.work-thumb::before { content: ""; position: absolute; inset: auto 0 -7px; height: 5px; background: #eaff00; opacity: 0; }
.work-thumb[aria-current="true"]::before { opacity: 1; }
.work-thumb:hover { color: #242623; outline: 1px solid var(--ink); outline-offset: 3px; }
.work-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 3.2vw, 64px); margin-bottom: 64px; scroll-margin-top: 24px; }
.tone-accessfit { --cover: #e4d39f; }
.tone-semi { --cover: #cbd99f; }
.tone-astra { --cover: #d3c5e5; }
.tone-hydra { --cover: #bacfdf; }
.tone-oyster { --cover: #e4b9a9; }
.tone-memogo { --cover: #e2c6c9; }
.tone-ruins { --cover: #b6d2cc; }
.tone-commute { --cover: #cbd0ba; }
.project-placeholder { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; padding: clamp(24px, 2.5vw, 48px); overflow: hidden; background: var(--cover); color: #242623; }
.project-placeholder h3 { margin: 0; font-size: clamp(26px, 2.8vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; z-index: 1; }
.placeholder-number { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 clamp(140px, 24vw, 460px)/1 "BBH Hegarty", sans-serif; letter-spacing: -.035em; opacity: .65; }
.placeholder-caption { font: 400 11px "Bitcount Grid Single", "PingFang SC", sans-serif; letter-spacing: .05em; z-index: 1; }
.project-placeholder.project-cover { padding: 0; }
.project-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #d2dadd; transform: scale(1.005); transition: transform 700ms cubic-bezier(.22, 1.35, .4, 1); }
@media (hover: hover) and (pointer: fine) {
  .project-cover:hover > img { transform: scale(1.075); }
}
@media (prefers-reduced-motion: reduce) {
  .project-cover > img { transition: none; }
  .project-cover:hover > img { transform: scale(1.005); }
}
.project-cover > .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; padding: 0 0 12px; }
.project-copy .project-title { margin: 0 0 clamp(18px, 2vw, 30px); font-size: clamp(22px, 2vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; color: var(--ink); overflow-wrap: anywhere; }
.project-copy .project-statement { font-size: clamp(26px, 2.55vw, 48px); line-height: 1.48; letter-spacing: -.045em; color: var(--ink); margin: 0; }
.project-statement mark { color: #242623; font-weight: 500; padding: 0 .06em; }
.project-open, .project-pending { display: inline-flex; align-items: center; gap: 20px; margin-top: 40px; min-height: 44px; font-size: 15px; text-decoration: none; }
.project-open span { color: var(--ink); }
.project-open:hover { color: var(--ink); text-decoration: underline; }
.project-pending { color: var(--muted); }
.project-award { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
a.project-award { text-decoration: none; }
a.project-award:hover p { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.project-award img { display: block; width: 132px; height: 44px; background: transparent; object-fit: contain; object-position: left center; filter: grayscale(1) invert(1); mix-blend-mode: multiply; opacity: .75; flex-shrink: 0; }
.project-award p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.6; }
.project-award span { display: block; color: var(--muted); font: 400 12px/1.5 "Bitcount Grid Single", monospace; }
[data-theme="dark"] .project-award img { filter: grayscale(1); mix-blend-mode: screen; opacity: .8; }
@media (min-width: 900px) and (max-height: 760px) { .project-award { margin-top: 14px; padding-top: 14px; } .project-award img { width: 108px; height: 34px; } }
.project-footnote p { font-size: 14px; line-height: 1.65; margin: 0; color: var(--muted); }
.project-footnote p:first-child { font-weight: 500; color: var(--body); margin-bottom: 4px; }
/* A single sticky stage; normal page scrolling controls the five panels. */
.work-gallery.is-enhanced { height: calc(var(--project-count) * 150svh + 55svh + 1px); --thumb-size: min(7vw, 92px, calc((100svh - 100px - 84px) / var(--project-count))); }
.is-enhanced .work-stage { height: 100svh; position: sticky; top: 0; display: flex; flex-direction: column; }
.is-enhanced .work-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-size); gap: 32px; }
.is-enhanced .work-panels { position: relative; grid-column: 1; grid-row: 1; }
.is-enhanced .work-panel { position: absolute; inset: 0; margin: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
.is-enhanced .work-panel.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.is-enhanced .project-placeholder { min-height: 0; }
.is-enhanced .project-rail { position: relative; grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.is-enhanced .project-rail::before { content: ""; position: absolute; left: -14px; top: 0; width: 6px; height: var(--indicator-height, var(--thumb-size)); background: #eaff00; transform: translateY(var(--indicator-y, 0px)); pointer-events: none; }
.is-enhanced .work-thumb { width: var(--thumb-size); height: var(--thumb-size); aspect-ratio: 1; }
.is-enhanced .work-thumb::before { display: none; }
@media (max-width: 899px) {
  .work-stage { padding: 0 22px 22px; }
  .work-panel { grid-template-columns: 1fr; gap: 0; margin-bottom: 64px; }
  .project-placeholder { min-height: 0; aspect-ratio: 1.15; }
  .placeholder-number { font-size: clamp(160px, 47vw, 360px); }
  .project-placeholder h3 { font-size: 32px; }
  .project-copy { padding-top: 24px; gap: 24px; }
  .project-copy .project-statement { font-size: clamp(25px, 4.5vw, 34px); letter-spacing: -.03em; }
  .project-open, .project-pending { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .work-panel { transition: none !important; } }
@media (max-width: 600px) { .project-rail { grid-template-columns: repeat(4, minmax(0, 60px)); } }
