.work .work-showcase { width: min(1180px, 100%); margin: var(--s7) auto 0; text-align: left; }
.work .work-display { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s3); height: clamp(440px, 46vw, 620px); padding: var(--s3) 0; overflow: hidden; perspective: 1400px; }
.work .work-mount { position: relative; min-width: 0; min-height: 0; }
.work .work-identity { grid-row: 1 / 3; }
.work .work-plane { position: absolute; inset: 0; padding: var(--s4); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transform-origin: center; backface-visibility: hidden; }
.work .work-identity .work-plane { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work .work-symbol .work-plane { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.work .work-meta, .work .work-plane-footer { position: relative; z-index: 1; font: 300 12px/1.6 var(--font-display); letter-spacing: .16em; text-transform: uppercase; }
.work .work-wordmark { position: absolute; top: 50%; left: 12%; width: 76%; height: auto; transform: translateY(-50%); }
.work .work-plane-footer { position: absolute; inset: auto var(--s4) var(--s4); display: flex; justify-content: space-between; gap: var(--s2); padding-top: var(--s2); border-top: 1px solid currentColor; }
.work .work-type-lines { position: absolute; top: 50%; left: var(--s4); right: var(--s4); transform: translateY(-40%); font: 200 clamp(26px, 3.3vw, 44px)/1.12 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.work .work-type-lines span { display: block; }
.work .work-symbol-mark { position: absolute; top: 50%; left: 50%; width: auto; height: 55%; transform: translate(-50%, -40%); }
.work .work-showcase figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) 0 0; border-top: 1px solid var(--line); font: 300 12px/1.6 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) {
  .work .work-showcase { margin-top: var(--s6); }
  .work .work-display { display: flex; flex-direction: column; height: auto; gap: var(--s2); perspective: none; }
  .work .work-mount { flex: none; height: 260px; }
  .work .work-identity { height: 330px; }
  .work .work-plane { padding: var(--s3); }
  .work .work-meta, .work .work-plane-footer { letter-spacing: .1em; }
  .work .work-plane-footer { inset: auto var(--s3) var(--s3); flex-direction: column; gap: var(--s1); }
  .work .work-type-lines { left: var(--s3); right: var(--s3); font-size: clamp(30px, 9vw, 42px); }
  .work .work-showcase figcaption { letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .work .work-plane, .work .work-type-lines span { transform: none !important; }
  .work .work-wordmark { transform: translateY(-50%) !important; }
  .work .work-symbol-mark { transform: translate(-50%, -40%) !important; }
}

.work .work-project { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: var(--s1); }
.work .work-type .work-project, .work .work-symbol .work-project { padding: var(--s2); }
.work .work-project-head { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.work .work-project-head h3 { min-width: 0; font: 300 12px/1.4 var(--font-display); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.work .work-client-logo { display: block; flex: none; width: auto; height: 18px; max-width: 100px; object-fit: contain; filter: brightness(0) invert(1); }
.work .work-identity .work-client-logo, .work .work-symbol .work-client-logo { filter: brightness(0); }
.work .work-client-logos { display: flex; flex: none; align-items: center; gap: var(--s1); }
.work .work-client-logos .work-client-logo { height: 16px; max-width: 36px; }
.work .work-client-logo--boxed { filter: grayscale(1) brightness(1.15); }
.work .work-project-copy { font: 400 12px/1.45 var(--font-body); overflow-wrap: anywhere; }
.work .work-screen-window { position: relative; min-width: 0; min-height: 0; }
.work .work-screen-row { display: flex; align-items: center; justify-content: center; gap: var(--s1); }
.work .work-screen-row > img, .work .work-screen-row > span { flex: 1 1 0; min-width: 0; width: 0; height: 100%; }
.work .work-screen-row img { object-fit: contain; }
.work .work-screen-row > span img { display: block; width: 100%; height: 100%; }
.work .work-screen-window .work-wordmark { left: 8%; width: 84%; height: 88%; }
.work .work-screen-window .work-type-lines { top: 40%; left: 0; right: 0; height: 100%; font-size: inherit; letter-spacing: normal; }
.work .work-screen-window .work-symbol-mark { top: 44%; width: 88%; height: 84%; }
.work .work-showcase figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--t-ctl) var(--ease), border-color var(--t-ctl) var(--ease); }
.work .work-showcase figcaption a:hover, .work .work-showcase figcaption a:focus-visible { color: var(--ink); border-color: currentColor; }
.work .work-showcase figcaption a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.work .work-showcase figcaption a:active { color: var(--soft); }
.work .work-other { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .work .work-project-head { gap: var(--s1); }
  .work .work-showcase figcaption a { display: inline-flex; align-items: center; min-height: 48px; max-width: 100%; }
}

/* a website next to the app screens: a slim browser frame, wider than a phone */
.work .work-screen-row > .work-web { flex: 2.4 1 0; display: flex; flex-direction: column; justify-content: center; }
.work .work-screen-row > .work-web img, .work .work-web img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: top; border-radius: 0 0 4px 4px; }
.work .work-web::before { content: ""; display: block; height: 14px; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.14) radial-gradient(circle at 8px 50%, rgba(255,255,255,.45) 2.5px, transparent 3px) no-repeat, radial-gradient(circle at 18px 50%, rgba(255,255,255,.45) 2.5px, transparent 3px) no-repeat; }
.work .work-identity .work-web::before { background-color: rgba(0,0,0,.12); }

/* device compositions inside the panels (css/devices.css): the wrappers keep their old names for the scroll choreography */
.work .work-screen-window .work-wordmark, .work .work-screen-window .work-type-lines, .work .work-screen-window .work-symbol-mark { position: absolute; left: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.work .work-screen-window .work-wordmark { top: 50%; }
.work .work-screen-window .work-type-lines { top: 0; transform: none; }
.work .work-screen-window .work-symbol-mark { top: 40%; left: 50%; }
@media (max-width: 760px) {
  .work .work-mount { height: 300px; }
  .work .work-identity { height: 360px; }
}

/* the logo is the project title: the name stays for screen readers only */
.work .work-project-head h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
