.work-showcase {
  padding-block: clamp(52px, 7vw, 104px);
  scroll-margin-top: 20px;
}
.work-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding-bottom: clamp(19px, 2.5vw, 33px);
  margin-bottom: clamp(20px, 2.5vw, 34px);
  border-bottom: 1px solid #6a5a3e;
}
.work-heading h2 {
  font-size: clamp(52px, 6vw, 90px);
  line-height: .96;
}
.work-all {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-size: 15px;
}
.work-all svg { width: 21px; }
.work-all:hover { color: var(--amber); }
.work-room {
  display: grid;
  grid-template-columns: minmax(0, 2.36fr) minmax(240px, 1fr);
  grid-template-areas: 'viewer projects';
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.work-view { grid-area: viewer; min-width: 0; }
.work-index {
  grid-area: projects;
  display: grid;
  align-content: start;
}
.work-project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  padding: clamp(15px, 1.65vw, 28px) 2px;
  border-bottom: 1px solid #44453d;
}
.work-project-name {
  font-weight: 450;
  font-size: clamp(21px, 2.15vw, 34px);
  letter-spacing: -.042em;
  line-height: 1.16;
}
.work-project-type {
  grid-column: 1;
  color: #b7b7ab;
  font-size: clamp(12px, .95vw, 15px);
}
.work-project > svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 21px;
  height: 21px;
  color: var(--amber);
  opacity: 0;
  transform: translateX(-6px);
}
.work-project[data-current] .work-project-name,
.work-project:hover .work-project-name { color: #e8ba6e; }
.work-project[data-current] > svg,
.work-project:hover > svg { opacity: 1; transform: none; }
.work-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #070807;
  border-radius: 4px;
}
.work-cover, .work-photo, .work-screen video {
  display: block;
  width: 100%;
  height: 100%;
}
.work-cover { position: relative; }
.work-cover:focus-visible { outline-offset: -5px; z-index: 1; }
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-screen-vertical .work-cover img,
.work-photo, .work-screen video { object-fit: contain; }
.work-cover::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, #0009, transparent);
}
.work-play {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  left: clamp(14px, 2.1vw, 30px);
  bottom: clamp(14px, 2.1vw, 30px);
  color: #fffaf1;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  text-shadow: 0 1px 5px #000b;
}
.work-play-disc {
  display: grid;
  place-items: center;
  width: clamp(44px, 4.4vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #23231e;
  background: #f3eadc;
}
.work-play svg { width: 36%; height: auto; }
.work-play small {
  margin-left: .55em;
  font-size: .79em;
  font-variant-numeric: tabular-nums;
  opacity: .9;
  font-weight: 450;
}
.work-below {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 15px;
}
.work-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.work-thumb {
  position: relative;
  display: block;
  width: clamp(49px, 5vw, 75px);
  height: clamp(44px, 3.36vw, 51px);
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.work-thumb-video::before { content: ''; position: absolute; inset: 3px; background: #0004; }
.work-thumb-video svg { position: absolute; inset: 50% auto auto 50%; width: 14px; height: 14px; color: white; transform: translate(-50%, -50%); }
.work-thumb[aria-current="true"] { border-color: var(--amber); }
.work-thumb:hover { border-color: var(--cream); }
.work-caption { flex: 1 1 220px; max-width: 52ch; }
.work-caption p { font-size: clamp(14px, 1.03vw, 17px); line-height: 1.55; color: #d3cfc5; }
.work-caption .work-credit { margin-top: 5px; color: #b5b4a9; font-size: .81rem; }
.work-credit a { text-decoration: underline; text-underline-offset: .2em; }
.work-credit a:hover { color: var(--cream); }

@media (max-width: 800px) {
  .work-room { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'projects' 'viewer'; gap: 15px; }
  .work-index { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .work-project { display: flex; align-items: center; padding: 7px 0 9px; min-height: 44px; }
  .work-project-name { font-family: DM, Arial, sans-serif; font-size: clamp(14px, 2.2vw, 18px); line-height: 1.15; font-weight: 550; letter-spacing: -.035em; }
  .work-project-type, .work-project > svg { display: none; }
  .work-project[data-current] { border-color: var(--amber); }
  .work-heading { margin-bottom: 9px; padding-bottom: 16px; }
  .work-caption { flex-basis: 210px; }
}
@media (max-width: 520px) {
  .work-heading { display: block; position: relative; margin-bottom: 0; }
  .work-heading h2 { font-size: clamp(42px, 10.1vw, 53px); }
  .work-all { min-height: 44px; margin-bottom: -8px; font-size: 14px; }
  .work-project:first-child .work-project-name { max-width: 11ch; }
  .work-play { gap: 8px; }
  .work-below { gap: 8px; margin-top: 9px; }
  .work-caption { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .work-screen-vertical {
    width: min(100%, 41vh);
    aspect-ratio: 9 / 16;
    margin-inline: auto;
  }
  .work-screen-vertical .work-play { bottom: 13px; left: 12px; }
}
.work-play-error {
  margin-top: 12px;
  color: var(--cream);
  font-size: .94rem;
}
.work-play-error a { text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) {
  .work-project svg { transition: transform 230ms var(--ease), opacity 160ms ease; }
  .work-play-disc { transition: transform 260ms var(--ease), background 160ms ease; }
  .work-cover:is(:hover, :focus-visible) .work-play-disc { transform: scale(1.09); background: #f7c878; }
  .work-panel[role="tabpanel"]:not([hidden]) .work-screen { animation: work-cut 330ms cubic-bezier(.16,.76,.26,1) both; }
  @keyframes work-cut { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
