/* Selected work: a new case rises over the previous case as the page scrolls. */
.works .work-heading { position: relative; z-index: 20; padding: 24px 0; background: var(--bg); }
.works .section-top { display: block; text-align: center; margin-bottom: 22px; }
.works .section-top .eyebrow { margin-bottom: 12px; }
.works .section-note { max-width: none; margin: 14px auto 0; font-size: 12px; }
.works .section-note br { display: none; }
.works .work-toolbar { width: min(1120px, 100%); margin: 0 auto; padding-top: 18px; }
.works .project-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; width: min(1120px, 100%); margin: 12px auto 0; }
.works .project { --card-image-scale: 1; --card-cta-bg: #285cff; --card-cta-border: transparent; display: block; align-self: start; min-width: 0; border-radius: 20px; }
.works .project[hidden] { display: none; }
.project-surface { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); min-height: clamp(355px, 32vw, 420px); overflow: hidden; border: 1px solid #ffffff1a; border-radius: 20px; background: #191919; box-shadow: 0 -12px 45px #0002; transform-origin: 50% 0; }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: 30px; }
.project-kicker { display: flex; align-items: center; gap: 14px; font-size: 10px; line-height: 1.4; color: #a5a5a0; letter-spacing: .05em; }
.project-kicker span:first-child { color: #e6e6df; font-variant-numeric: tabular-nums; }
.project-copy h3 { font-size: clamp(22px, 2.1vw, 29px); font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.project-description { font-size: 12px; line-height: 1.85; color: #bcbcb6; }
.project-meta { display: grid; gap: 12px; width: 100%; padding-top: 15px; border-top: 1px solid #ffffff20; margin: 0; }
.project-meta div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
.project-meta dt { color: #91918b; font-size: 10px; line-height: 1.7; }
.project-meta dd { margin: 0; font-size: 11px; line-height: 1.6; color: #e0e0d9; }
.project-cta { display: inline-flex; align-self: flex-start; align-items: center; justify-content: center; gap: 12px; padding: 10px 24px; margin-top: auto; border: 1px solid var(--card-cta-border); border-radius: 99px; background: var(--card-cta-bg); font-size: 11px; line-height: 1.3; color: #fff; transition: background-color .25s, border-color .25s; }
.project-cta span { font-size: 16px; line-height: 1; }
.works .project-image { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: auto; min-width: 0; background: #080808; }
.works .project-image > img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: contain; transform: scale(var(--card-image-scale)); transform-origin: center; filter: none; transition: transform .65s cubic-bezier(.22, 1, .36, 1); }
.works .project:hover .project-image > img { transform: scale(var(--card-image-scale)); filter: none; }
.works .project:focus-visible { --card-image-scale: 1.04; --card-cta-bg: transparent; --card-cta-border: #f3f2ee; }
@media (hover: hover) and (pointer: fine) {
  .works .project:hover { --card-image-scale: 1.04; --card-cta-bg: transparent; --card-cta-border: #f3f2ee; }
}
.works.is-stack-ready .work-heading { position: sticky; top: var(--header-height); }
.works.is-stack-ready .work-heading::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 18px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.works.is-stack-ready .project { position: sticky; top: var(--work-card-top); }
.works.is-stack-ready .project-surface { transform: scale(var(--stack-scale, 1)); filter: brightness(var(--stack-brightness, 1)); }
.works.is-stack-ready.is-short-stack .work-heading { position: relative; top: auto; }
.works.is-stack-ready.is-short-stack .work-heading::after { display: none; }
@media (max-width: 1000px) {
  .project-copy { padding: 24px; gap: 13px; }
  .project-surface { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
@media (max-height: 700px) and (min-width: 768px) {
  .works .work-heading { padding: 14px 0 18px; }
  .works .section-top { margin-bottom: 14px; }
  .works .section-top .eyebrow, .works .section-note { display: none; }
  .works .section-top h2 { font-size: 32px; }
  .works .work-toolbar { padding-top: 12px; }
  .project-surface { min-height: 340px; }
  .project-copy { padding: 22px; gap: 12px; }
  .project-copy h3 { font-size: 23px; }
  .project-description { line-height: 1.7; }
}
@media (max-width: 767px) {
  .works .work-heading { padding: 16px 0 20px; }
  .works .section-top { margin-bottom: 16px; }
  .works .section-top h2 { font-size: 34px; }
  .works .section-note { margin-top: 8px; font-size: 11px; }
  .works .work-toolbar { padding-top: 14px; }
  .works .filters { flex-wrap: wrap; gap: 12px 18px; }
  .works .filters button { font-size: 10px; }
  .works .project-grid { max-width: 560px; gap: 24px; margin-top: 4px; }
  .project-surface { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 16px; }
  .works .project-image { order: -1; height: auto; aspect-ratio: 16 / 9; }
  .project-copy { padding: 22px; gap: 12px; }
  .project-copy h3 { font-size: 23px; }
  .project-description { font-size: 12px; line-height: 1.75; }
  .project-meta { gap: 8px; padding-top: 12px; }
  .project-cta { margin-top: 2px; }
}
html[data-motion="reduce"] .works .project-surface { transform: none !important; filter: none !important; }
html[data-motion="reduce"] .works .project-image > img { transform: none !important; }
