/* Quiet, image-led project archive. */
.work-page {
  --gallery-gutter: clamp(20px, 3.2vw, 48px);
  color-scheme: light;
  background: var(--black);
  color: var(--white);
}
.work-page .shell { width: 100%; }
.work-page .topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-inline: var(--gallery-gutter);
  border-color: var(--line);
}
.work-page .wordmark { grid-column: 2; }
.work-page .nav { grid-column: 3; justify-self: end; }
.work-page .work-tabs {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  padding: 24px var(--gallery-gutter) 0;
  border-bottom: 1px solid var(--line);
}
.work-page .work-tabs a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 0 16px;
  border-bottom: 1px solid transparent;
  color: #858585;
  font-size: 12px;
  letter-spacing: .08em;
}
.work-page .work-tabs a span { font-size: 9px; }
.work-page .work-tabs a:hover,
.work-page .work-tabs a[aria-current="page"] { color: var(--white); border-color: var(--white); }
.work-page .work { padding: 0; border: 0; }
.work-page .section-heading {
  min-height: 48px;
  margin: 0;
  padding: 16px var(--gallery-gutter);
  align-items: center;
  border-bottom: 1px solid var(--line);
  animation: none;
}
.work-page .gallery-title { font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.work-page .work-count { font-size: 10px; color: #777; }
.work-page .work-grid--gallery,
.work-page .work-grid--archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--black);
}
.work-page .work-archive { margin-top: clamp(64px, 8vw, 112px); }
.work-page .section-heading--archive { border-top: 1px solid var(--line); }
.work-page .work-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-page .project {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid #e8e8e5;
  border-bottom: 1px solid #e8e8e5;
  opacity: 1;
  animation: none;
}
.work-page .project--lead,
.work-page .project--wide { grid-column: auto; grid-row: auto; }
.work-page .project-cover {
  position: absolute;
  inset: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #fff;
  animation: none;
}
.work-page .project-cover::before { display: none; }
.work-page .work-grid--gallery .project-cover { aspect-ratio: auto; }
.work-page .project-cover::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: #d2d2ce;
  animation: none;
}
.work-page .project-cover:has(img)::after { display: none; }
.work-page .project-cover img,
.work-page .project-cover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.work-page .project--coway .project-cover { background: #fff; }
.work-page .project--coway .project-cover img { object-fit: cover; }
.work-page .project--lead .project-cover { background: #f8f8f6; }
.work-page .project--lead .project-cover img { object-fit: cover; }
.work-page .project--bentley .project-cover img { object-position: 38% center; }
.work-page .project-meta {
  position: absolute;
  z-index: 1;
  inset: auto 16px 0;
  height: 58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-top: 1px solid #ececea;
  color: #252525;
  animation: none;
}
.work-page .project-number,
.work-page .project-info { font-size: 9px; line-height: 1.3; letter-spacing: .04em; color: #858585; }
.work-page .project-number { position: static; min-width: 20px; }
.work-page .project-meta h2,
.work-page .project--coway .project-meta h2 {
  margin: 0;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .015em;
  overflow-wrap: normal;
}
.work-page .project-brand,
.work-page .project-name { display: inline; margin: 0; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.work-page .project-brand::after { content: " "; white-space: pre; }
.work-page .project-info { text-align: right; white-space: nowrap; }
.work-page .project--lead .project-meta,
.work-page .project--small .project-meta,
.work-page .project--coway .project-meta,
.work-page .project--bentley .project-meta { inset: auto 16px 0; gap: 10px; }
.work-page .project-link { position: absolute; inset: 0; display: block; }
.work-page .project-link:focus-visible { outline-offset: -5px; }
.work-page .project-link:hover .project-meta h2,
.work-page .project-link:focus-visible .project-meta h2 { text-decoration: underline; text-underline-offset: 3px; }
.work-page .project-open { display: none; }
.work-page .contact {
  margin: 0;
  padding: 26px var(--gallery-gutter) 32px;
  border-color: var(--line);
  animation: none;
}
.work-page .contact a { border-color: var(--white); }
@media (max-width: 900px) {
  .work-page .work-grid--gallery,
  .work-page .work-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .work-page .topbar { display: flex; justify-content: space-between; }
  .work-page .work-tabs { gap: 30px; }
  .work-page .work-tabs a { font-size: 10px; }
  .work-page .work-grid--gallery,
  .work-page .work-grid--archive { grid-template-columns: minmax(0, 1fr); }
  .work-page .project { aspect-ratio: 1.12 / 1; min-height: 0; }
  .work-page .project-meta h2,
  .work-page .project--coway .project-meta h2 { font-size: 12px; }
  .work-page .contact { flex-direction: row; align-items: center; }
}

/* Keep each selected-work caption on one line as the cards resize. */
.work-page .work-grid--gallery .project { container-type: inline-size; }
.work-page .work-grid--gallery .project-meta { grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(5px, 1.8cqw, 10px); }
.work-page .work-grid--gallery .project-meta h2 { font-size: clamp(9px, 3cqw, 14px); white-space: nowrap; }
.work-page .work-grid--gallery .project-number,
.work-page .work-grid--gallery .project-info { font-size: clamp(7px, 2.35cqw, 9px); white-space: nowrap; }
.work-page .work-grid--gallery .project-number { min-width: 0; }

.work-page .project--dyson .project-cover img { object-position: 22% center; }
.work-page .project--dyson { container-type: inline-size; }
.work-page .project--dyson .project-meta { grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; }
.work-page .project--dyson .project-meta h2 { font-size: clamp(9px,3.2cqw,14px); white-space: nowrap; }

.work-page .project--oakley .project-cover { background: #000; }
.work-page .project--oakley .project-cover img { object-fit: contain; }
