/* Our Work gallery page. Builds on style.css / project.css tokens. */

/* ---- Hero + featured mosaic ---- */
.gp-hero {
  background: var(--stage); color: var(--white);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 12px clamp(40px, 5vw, 64px);
}
.gp-hero-head { max-width: 1560px; margin: 0 auto clamp(32px, 4vw, 56px); padding: 0 clamp(4px, 2vw, 28px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.gp-hero-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; color: var(--bronze-light); }
.gp-hero-head h1 { font-size: clamp(46px, 6.4vw, 104px); line-height: .98; }
.gp-hero-head h1 em { font-style: italic; font-weight: 500; color: var(--bronze-light); }
.gp-hero-lede { font-size: 19px; color: rgba(255,255,255,.75); max-width: 38ch; margin: 0; }

/* Statement pieces: edge-to-edge and tall */
.gp-featured {
  max-width: 2000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(260px, 27vw, 500px);
  grid-auto-flow: dense; gap: 12px;
}
.gp-featured .gp-big { grid-column: span 2; grid-row: span 2; }
.gp-featured .gp-tall { grid-row: span 2; }

.gp-tile, .gp-item {
  all: unset; box-sizing: border-box; position: relative; display: block; overflow: hidden; cursor: zoom-in;
  background: var(--ink-soft);
}
.gp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.gp-tile:hover img, .gp-item:hover img { transform: scale(1.04); }
.gp-tile:focus-visible, .gp-item:focus-visible { outline: 3px solid var(--bronze-light); outline-offset: 2px; }

.gp-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px 18px;
  background: linear-gradient(to top, rgba(8,7,6,.82), rgba(8,7,6,0));
  color: var(--white); pointer-events: none;
}
.gp-cap strong { display: block; font: 600 clamp(20px, 1.7vw, 26px)/1.15 var(--serif); }
.gp-cap em { display: block; margin-top: 4px; font: 500 13px/1.4 var(--sans); font-style: normal; color: rgba(255,255,255,.75); letter-spacing: .02em; }
.gp-big .gp-cap { padding: 120px 30px 28px; }
.gp-big .gp-cap strong { font-size: clamp(28px, 2.6vw, 42px); }
.gp-big .gp-cap em { font-size: 15px; }
.gp-tile:not(.gp-big) .gp-cap { transform: translateY(12px); opacity: .92; transition: transform .5s var(--ease), opacity .5s; }
.gp-tile:hover .gp-cap { transform: none; opacity: 1; }

.gp-scroll {
  display: block; width: max-content; margin: clamp(28px, 3vw, 44px) auto 0;
  font: 600 13px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); text-decoration: none;
}
.gp-scroll:hover { color: var(--bronze-light); }

/* ---- Browse: filters + masonry ---- */
.gp-browse { background: var(--paper); padding: clamp(64px, 8vw, 110px) clamp(16px, 3vw, 40px); }
.gp-browse-inner { max-width: 1560px; margin: 0 auto; }
.gp-browse-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.gp-browse-head h2 { font-size: clamp(36px, 4vw, 58px); }
.gp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 42px;
  font: 600 13px var(--sans); letter-spacing: .04em; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.gp-chip span { font-size: 11px; color: var(--muted); }
.gp-chip:hover { border-color: var(--ink); }
.gp-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gp-chip[aria-pressed="true"] span { color: var(--bronze-light); }

.gp-grid { columns: 3 340px; column-gap: 14px; }
.gp-item { width: 100%; margin-bottom: 14px; break-inside: avoid; animation: gp-in .6s var(--ease) both; animation-delay: var(--d); }
.gp-item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gp-item .gp-cap { opacity: 0; transition: opacity .35s; }
.gp-item:hover .gp-cap, .gp-item:focus-visible .gp-cap { opacity: 1; }
.gp-item.is-progress .gp-cap em { color: var(--bronze-light); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
@keyframes gp-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gp-item { animation: none; } }
@media (hover: none) { .gp-item .gp-cap { opacity: 1; } }

@media (max-width: 1000px) {
  .gp-hero-head { grid-template-columns: 1fr; }
  .gp-featured { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .gp-featured .gp-big { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 600px) {
  .gp-featured { grid-auto-rows: 52vw; gap: 8px; }
  .gp-grid { columns: 2 150px; column-gap: 8px; }
  .gp-item { margin-bottom: 8px; }
  .gp-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .gp-chip { flex: none; }
}
