/* drehmer.art only (live copy). Markup (.hov) is added by tornar-publico.py; live.js handles the click.
   Louie 09/11: hover on Work = page's saturated header colour, series name big, its works small below, coloured tag;
   covers the whole card (title + tags too); no shadow; fade in; on click a smooth fade out, then the artwork grows into
   its page (the site's own animation in app.js). Only for a real mouse; touch keeps the plain grid. */
.hov { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hov {
    --hov-e: cubic-bezier(.22, 1, .36, 1);
    position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(14px, 1.5vw, 22px); background: var(--accent); color: var(--ink); text-align: left;
    opacity: 0; visibility: hidden;
    transition: opacity .42s var(--hov-e), visibility 0s linear .42s;
  }
  .masonry.works .card:hover .hov, .masonry.works .card:focus-within .hov {
    opacity: 1; visibility: visible; transition: opacity .42s var(--hov-e), visibility 0s;
  }
  /* no shadow while the colour is on: the card reads as one flat block */
  .masonry.works .card:hover .media img, .masonry.works .card:hover .media img.shaped { box-shadow: none !important; filter: none !important; }
  .hov-bg { position: absolute; inset: 0; }
  .hov-tag, .hov-s, .hov-n { position: relative; opacity: 0; transform: translateY(6px);
    transition: opacity .42s var(--hov-e), transform .6s var(--hov-e); }
  .masonry.works .card:hover :is(.hov-tag, .hov-s, .hov-n) { opacity: 1; transform: none; }
  .masonry.works .card:hover .hov-tag { transition-delay: .05s; }
  .masonry.works .card:hover .hov-s { transition-delay: .09s; }
  .masonry.works .card:hover .hov-n { transition-delay: .14s; }
  /* click: everything fades out smoothly, then app.js grows the artwork */
  .masonry.works .card.hov-out .hov, .masonry.works .card.hov-out :is(.hov-tag, .hov-s, .hov-n) {
    opacity: 0 !important; transform: none !important; transition: opacity .3s cubic-bezier(.4, 0, .2, 1) !important; }
  .hov-tag { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
  .hov-tag .pill { color: var(--ink); border-color: var(--ink); }
  .hov-s { display: block; font-family: var(--round); font-weight: 700; font-size: clamp(24px, 2.3vw, 40px); line-height: 1.02;
    letter-spacing: -.012em; color: var(--ink); text-decoration: none; text-wrap: balance; }
  a.hov-s:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
  .hov-n { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; overflow: hidden; }
  .hov-n > * + *::before { content: "·"; margin: 0 .42em; opacity: .55; }
  .hov-n a { color: inherit; text-decoration: none; } .hov-n a:hover { text-decoration: underline; text-underline-offset: 3px; }
  html[lang^="zh"] .hov-s { font-family: var(--cjk); font-weight: 700; letter-spacing: 0; }
}
/* Louie 09/11: thumbnails in the press and exhibitions lists always visible (not only as the mouse-over preview) */
@media (hover: hover) and (min-width: 861px) { .ex-list .ex-th { visibility: visible !important; } }
@media (prefers-reduced-motion: reduce) {
  .hov, .hov-tag, .hov-s, .hov-n { transition: opacity .2s linear !important; transform: none !important; }
}
/* colour zones inside long blocks (tornar-publico.py step 7): invisible, only for app.js's mid-screen colour observer */
.grid-all, .wrap.cv { position: relative; }
.hue-zones { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.hue-zones i { position: absolute; left: 0; width: 1px; height: 25%; }
/* while the page scrolls under a still mouse, no hover colour flashing over the cards that pass under the cursor */
html.rolando .masonry.works { pointer-events: none; }
html.rolando .masonry.works .card .hov { opacity: 0 !important; visibility: hidden !important; transition: none !important; }
/* opening a series grows the clicked group into the series page's grid (cross-document view transition) */
::view-transition-group(serie) { animation-duration: 600ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); z-index: 2; }
::view-transition-old(serie), ::view-transition-new(serie) { animation-duration: 600ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); height: 100%; object-fit: cover; }
/* press article pages (tornar-publico.py step 9) */
.pr-h { font-family: var(--round); font-weight: 700; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.015em; margin: .5em 0 .25em; max-width: 24ch; text-wrap: balance; }
html[lang^="zh"] .pr-h { font-family: var(--cjk); letter-spacing: 0; }
.pr-meta { margin: 0; color: var(--muted); font-size: 15px; } .pr-meta b { color: var(--ink); font-weight: 600; }
.pr-body { max-width: 1440px; } .pr-body > * { max-width: 860px; } /* left-aligned with the title, like every page */
.pr-fig { margin: 0 0 clamp(24px, 4vw, 44px); } .pr-fig img, .pr-fig video { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 2px; }
.pr-body .quote { margin: 0 0 28px; }
.pr-src { margin: 0; }
/* Louie 09/11 "clicar em links no site e navegacao interna fora de work tambem tem que ter animacao de transicao suave":
   the site had the page cross-fade switched off (style.css ::view-transition-*(root) none). The header (named "top")
   stays put and the new page opens in the previous page's colour, so only the content fades. */
/* 09/11 (2nd pass, "fica fazendo flash"): the old page stays fully opaque underneath and the new one fades in on top —
   fading both at once let the backdrop show through between them (the flash). */
/* 3rd pass ("pisca em todos os browsers"): filmed frames showed a double exposure — the new page fading in over the old
   one. Now in sequence: old content out (180 ms) → the page's own wall colour (not white) → new content in (300 ms). */
::view-transition { background-color: var(--wall); }
::view-transition-old(root) { animation: 180ms cubic-bezier(.4, 0, 1, 1) both lv-out !important; }
::view-transition-new(root) { animation: 300ms cubic-bezier(0, 0, .2, 1) 150ms both lv-vt-in !important; }
@keyframes lv-vt-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes lv-out { to { opacity: 0; } }
@keyframes lv-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; } }
/* Louie 09/11 "alinhe os filtros no work ... apenas o grid das imagens é diferente, o resto tem que ser igual as outras
   paginas": the filter/view bar follows the same 1440px column as every page's .wrap; only the image grid runs wide. */
.grid-bar { margin-inline: max(0px, calc((100% + 2 * var(--g) - 1440px) / 2)); }
/* press rows reuse the Exhibitions page rows; the title is a link to the article page */
.cv-t a { color: inherit; text-decoration: none; } .cv-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sk-stage > .cv { width: 100%; }
/* fallback page fade for browsers without cross-document view transitions (live.js + head script) */
html.lv-in main, html.lv-in .foot { animation: lv-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
/* press article pages: summary + gallery of every picked photo (zoomable, like the Exhibitions strips) */
.pr-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 0 0 26px; max-width: 62ch; }
.pr-body .strip { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 clamp(26px, 4vw, 44px); }
.pr-body .strip.um { grid-template-columns: minmax(0, 560px); } .pr-body .strip.um img { aspect-ratio: auto; }
/* Louie 09/11 "poe o logo drehmer maior": header wordmark 24px → up to 36px (header is 64px tall) */
.top .wordmark { font-size: clamp(26px, 2.5vw, 36px); }
/* Louie 09/11 "os line dividers que tem no site pode deixar mais uniformes e mais grossos": every divider the same — 2px,
   one colour (the ink at 42%, plain rgba so old Safari gets it too). Was 1px in three tones (light line, ink, ink 25%). */
:root { --div: 5px solid rgb(43, 36, 39); }  /* Louie 09/11: "dividers 5px" + "line dividers tem que ser pretos" (site ink, solid) */
.sk-datum, .ex-list, .press, .tl, .work-info dl, .contact dl, .cv-year, .cv-year li + li, .qa, .pn, .foot nav, .foot-in nav { border-top: var(--div) !important; }
.ex-list a, .press a, .tl li, .work-info dl div, .contact dl div, .cat-list th, .cat-list td { border-bottom: var(--div) !important; }
/* ===== Louie 09/11 "ok aprovado": missing animations (live.js does the moving parts) ===== */
/* (4) images arriving for the first time */
.lv-img { opacity: 0 !important; }
.lv-img.lv-on { opacity: 1 !important; transition: opacity .45s cubic-bezier(.2, .8, .2, 1), transform .35s cubic-bezier(.22, 1, .36, 1) !important; }
/* (11) zoom */
dialog.zoom[open] { animation: lv-zoom-in .3s cubic-bezier(.2, .8, .2, 1); }
dialog.zoom[open]::backdrop { animation: lv-fade .3s ease; }
dialog.zoom.lv-saindo { opacity: 0; transform: scale(.97); transition: opacity .22s ease, transform .22s ease; }
dialog.zoom.lv-saindo::backdrop { opacity: 0; transition: opacity .22s ease; }
@keyframes lv-zoom-in { from { opacity: 0; transform: scale(.96); } }
@keyframes lv-fade { from { opacity: 0; } }
/* (6) photos in the strips lean in a little on hover */
.strip figure { overflow: hidden; margin: 0; }
.strip img { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .strip figure:hover img { transform: scale(1.03); } }
/* (13)(14) footer links, list titles and text links: the same growing underline as the header menu */
.foot nav a, .foot-row a, .cv-t a, .cv-v a.art, .pr-src a, a.more { text-decoration: none !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--t2) var(--ease); }
.foot nav a:hover, .foot-row a:hover, .cv-t a:hover, .cv-v a.art:hover, .pr-src a:hover, a.more:hover { background-size: 100% 1.5px; }
@media (prefers-reduced-motion: reduce) { .lv-img { opacity: 1 !important; } dialog.zoom[open], dialog.zoom[open]::backdrop { animation: none; } }
/* Louie 09/11 "assinatura minha no footer deixe bem maior": 26px → up to 120px (about 4×) */
.foot .sig { height: clamp(72px, 8.5vw, 120px); }
.foot-row a.brand { background: none !important; }
