@font-face { font-family: Archivo; src: url('/assets/fonts/archivo-variable-italic.woff2') format('woff2'); font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
.work-page { max-width: 767px; margin-inline: auto; }
.work-display { height: 105px; display: flex; align-items: end; justify-content: center; }
.work-display h1 { color: var(--gray-display); font-size: clamp(54px,17.95vw,70px); font-weight: 800; font-style: italic; line-height: .8; position: relative; z-index: 1; transform: translateY(.066em); }
.category-band { padding: 44px 30px 48px; text-align: center; background: var(--yellow); }
.video .category-band { background: var(--magenta); }
.identidade .category-band { background: var(--cyan); }
.category-band h2 { display: table; margin-inline: auto; font-size: 24px; font-weight: 800; line-height: 30px; border-bottom: .75px solid; }
.tags { display: grid; gap: 8.4px; margin-top: 24px; }
.tag-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.tag-row li { border: .75px solid; border-radius: 7px; background: var(--gray-surface); padding: 6px 13px; font-size: 15px; line-height: 18px; max-width: 100%; }
.work-gallery { display: grid; gap: 0; grid-template-columns: minmax(0,1fr); }
.social .work-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
.media-tile { position: relative; overflow: hidden; margin: 0; background: var(--gray-surface); aspect-ratio: 16/9; }
.social .media-tile { aspect-ratio: 9/16; }
.media-tile img { position: absolute; display: block; max-width: none; }
.video-marker { position: absolute; display: grid; place-items: center; width: calc(30 * var(--u)); height: calc(30 * var(--u)); top: calc(22 * var(--u)); right: calc(22 * var(--u)); border: 1px solid rgb(255 255 255 / 90%); background: rgb(0 0 0 / 45%); color: white; border-radius: calc(6 * var(--u)); }
.video-marker svg { display: block; width: 72%; height: 72%; }
.video-marker { --u: clamp(.5px, .153846vw, .7px); }
.video .video-marker { --u: clamp(.65px, .205128vw, .9px); }
.other-work { margin-top: 46px; }
.other-work .section-heading { margin-bottom: 24px; }
.other-work .section-heading h2 { white-space: nowrap; }
.work-page .signature { margin-top: 52px; }
/* Reuse the approved dialog; put navigation below the media to preserve its width. */
.work-page .portfolio-lightbox[open] { grid-template-rows: 44px minmax(0,1fr) auto; }
.work-page .lightbox-stage { grid-template-columns: 44px minmax(0,1fr) 44px; grid-template-rows: minmax(0,1fr) 44px; gap: 8px; }
.work-page .lightbox-media { grid-column: 1 / -1 !important; grid-row: 1; }
.work-page .lightbox-prev, .work-page .lightbox-next { position: static !important; transform: none !important; grid-row: 2; }
.work-page .lightbox-prev { grid-column: 1; }
.work-page .lightbox-next { grid-column: 3; }
.work-page .lightbox-info { padding: 4px 0; height: var(--lightbox-caption-height, 40px); }
.work-page .lightbox-control { font: inherit; }
@media (max-width: 359px) {
 .category-band { padding-inline: 20px; }
 .tag-row li { padding-inline: 8px; }
 .tag-row { gap: 6px; }
 .other-work .section-heading { gap: 10px; }
 .other-work .section-heading h2 { font-size: 22px; }
}

/* Vertical coordinates measured on each 390px artboard. */
.social .category-band { padding-bottom: 49.02px; }
.video .category-band { padding-bottom: 49.72px; }
.identidade .category-band { padding-bottom: 50.08px; }
.work-page .signature { padding-bottom: 68px; }
.work-display h1 { font-stretch: 102%; }

/* Archivo Italic 800/102: 1000 UPM, ascender 878, descender -210;
   the rounded glyphs overshoot by 12 units. Align the alphabetic
   baseline; preserve the font's natural subpixel optical overshoot. */
@supports (text-box-trim: trim-end) {
  .work-display h1 {
    text-box-trim: trim-end;
    text-box-edge: cap alphabetic;
    transform: none;
  }
}

/* Center the ink, not the advance box: T left bearing 73.7384 and
   o right bearing 30.8513 (1000 UPM). Independent of vertical alignment. */
.work-display h1 { translate: -.021443568em 0; }
