/* GH Fotografias — preview "Revelação" (Frontend, 05/11/2026). Spec: 03 > 02 > 01. Sem framework/CDN. */
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-roman-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --tinta: #0E0E0E; --grafite: #1A1A1A; --papel: #F3EFE8; --texto: #161616;
  --apoio-escuro: #B9B3AA; --apoio-claro: #5A5650;
  --marca: #FD0707;      /* medido no logo.png (pixel mais frequente) */
  --btn: #C4060A;        /* branco sobre #FD0707 = 4,03:1 (<4,5) → botão usa #C4060A (6,22:1) */
  --vermelho-texto: #B3070B;
  --display: "Bodoni Moda", "Playfair Display", Didot, Georgia, serif;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --m: 20px; --sec: 64px; --h1: 40px; --h2: 40px; --h2xl: 48px; --row-name: 30px;
  --header: 64px;
}
@media (min-width: 600px) { :root { --m: 32px; --sec: 96px; --h1: 60px; --h2: 56px; --h2xl: 72px; --row-name: 40px; --header: 72px; } }
@media (min-width: 1000px) { :root { --h1: 72px; --h2: 64px; --h2xl: 88px; --row-name: 48px; } }
@media (min-width: 1280px) { :root { --m: 80px; --sec: 128px; --h1: 88px; --h2: 80px; --h2xl: 104px; --row-name: 64px; --header: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header) + 8px); }
body { margin: 0; background: var(--tinta); color: var(--papel); font: 400 17px/1.6 var(--ui); overflow-x: clip; -webkit-font-smoothing: antialiased; }
@media (max-width: 599px) { body { font-size: 16px; } }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(100% - 2 * var(--m), 1280px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--papel); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--texto); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--papel); color: var(--texto); font-weight: 700; }
.skip:focus { top: 12px; }

/* Modos: .ref-only só em ?referencias=1; .default-only só no padrão. Fotos só com src (posto pelo JS em ref). */
.ref-only { display: none !important; }
.review .ref-only { display: revert !important; }
.review .default-only { display: none !important; }
.ref-img { display: none; }
.ref-img[src] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-ribbon { display: none; }
.review .review-ribbon { display: block !important; position: relative; z-index: 120; padding: 6px var(--m); background: var(--papel); color: var(--texto); font-size: 13px; line-height: 1.4; text-align: center; }
.ref-tag { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 2px 8px; background: var(--tinta); color: var(--papel); font: 600 11px/1.6 var(--ui); letter-spacing: .18em; }
.revisao { font-size: 13px; color: inherit; opacity: .85; }

/* Tipos */
.h2 { font: 400 var(--h2)/1.02 var(--display); letter-spacing: -.01em; }
.h2-xl { font-size: var(--h2xl); }
.sec { padding: var(--sec) 0; }
.paper { background: var(--papel); color: var(--texto); }
.ink { background: var(--tinta); color: var(--papel); }
.sec-lead { margin-top: 16px; font-size: 18px; color: var(--apoio-escuro); }
.paper .sec-lead { color: var(--apoio-claro); }
.note { margin-top: 12px; color: var(--apoio-escuro); }
.frame-no, .eyebrow, .lbl { font: 600 12px/1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase; }

/* Botões e links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px; font: 600 16px/1.2 var(--ui); text-decoration: none; transition: background-color .24s var(--ease), transform .12s var(--ease); }
.btn-red { background: var(--btn); color: #fff; }
.btn-red:hover { background: #A30508; }
.btn-red:active { transform: scale(.98); }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 17px; }
.btn-xl { min-height: 64px; padding-inline: 32px; font-size: 18px; }
.link-u { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--marca); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.paper .link-u { text-decoration-color: var(--vermelho-texto); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--tinta); transition: background-color .3s var(--ease); }
.site-header.at-top { background: transparent; }
.header-in { display: flex; align-items: center; gap: 16px; height: var(--header); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 32px; width: auto; }
.nav { display: none; }
.header-cta { margin-left: auto; min-height: 44px; padding: 8px 16px; font-size: 14px; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; }
@media (max-width: 599px) {
  .header-cta { width: 44px; padding: 0; }
  .header-cta .cta-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1100px) {
  .brand img { height: 40px; }
  .nav { display: flex; gap: 32px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px var(--ui); text-decoration: none; background: linear-gradient(var(--marca), var(--marca)) left calc(50% + 13px) / 0 2px no-repeat; transition: background-size .24s var(--ease); }
  .nav a:hover, .nav a:focus-visible { background-size: 100% 2px; }
  .header-cta { margin-left: 16px; }
  .menu-btn { display: none; }
}
.drawer-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(14,14,14,.6); }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 150; display: flex; flex-direction: column; width: min(86vw, 360px); padding: 12px 24px 24px; background: var(--grafite); overflow-y: auto; }
.drawer a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(243,239,232,.14); font: 400 28px var(--display); text-decoration: none; }
.drawer .btn { margin-top: auto; }
.drawer-close { align-self: flex-end; display: grid; place-items: center; width: 44px; height: 44px; }
@media (min-width: 1100px) { .drawer, .drawer-scrim { display: none !important; } }

/* Quadro "prova sem revelar" */
.frame-box { position: relative; display: block; overflow: hidden; background: var(--grafite); }
.pending { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: radial-gradient(120% 90% at 50% 40%, #222 0%, #141414 70%); color: var(--apoio-escuro); }
.pending::before, .pending::after { content: ""; position: absolute; inset: 8px; pointer-events: none;
  background: linear-gradient(var(--marca), var(--marca)) top left / 12px 1.5px, linear-gradient(var(--marca), var(--marca)) top left / 1.5px 12px,
    linear-gradient(var(--marca), var(--marca)) top right / 12px 1.5px, linear-gradient(var(--marca), var(--marca)) top right / 1.5px 12px,
    linear-gradient(var(--marca), var(--marca)) bottom left / 12px 1.5px, linear-gradient(var(--marca), var(--marca)) bottom left / 1.5px 12px,
    linear-gradient(var(--marca), var(--marca)) bottom right / 12px 1.5px, linear-gradient(var(--marca), var(--marca)) bottom right / 1.5px 12px;
  background-repeat: no-repeat; opacity: .8; }
.pending::after { inset: 0; background: repeating-linear-gradient(0deg, rgba(243,239,232,.025) 0 2px, transparent 2px 5px); opacity: 1; }
.pending-num { font: 600 12px/1 var(--ui); letter-spacing: .18em; color: var(--apoio-escuro); }
.pending-txt { font: 500 13px/1.35 var(--ui); color: var(--apoio-escuro); max-width: 16ch; }
.veil, .cover { position: absolute; inset: 0; pointer-events: none; opacity: 0; }

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; padding: 16px 0 48px; overflow: hidden; }
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100% - 2 * var(--m), 1280px); margin: 0 auto 24px; }
.sheet-frame:nth-child(n+4) { display: none; }
.sheet-frame .frame-box { aspect-ratio: 3 / 4; }
.sheet-frame .frame-no { margin-top: 6px; color: var(--apoio-escuro); }
.sheet-frame .pending-txt { font-size: 12px; }
.hero-scrim { display: none; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; flex-direction: column; gap: 10px; color: var(--apoio-escuro); }
.filete { width: 100%; height: 4px; color: var(--marca); }
.filete path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero h1 { margin-top: 18px; font: 400 var(--h1)/1.04 var(--display); letter-spacing: -.015em; }
/* ≤599 (decisão Site refactor 05/11): 40px, texto em fluxo com text-wrap: balance; "melhores momentos" inteiro. ≥600: 3 linhas fixas com máscara. */
.hero h1 { text-wrap: balance; }
.hl, .hl > span { display: inline; }
.hl:nth-child(3) > span { white-space: nowrap; }
@media (max-width: 370px) { .hl:nth-child(3) > span { white-space: normal; } } /* "melhores momentos" a 40px mede ~330px: abaixo de 371px de tela quebraria cortado */
@media (min-width: 600px) {
  .hero h1 { text-wrap: wrap; }
  .hl { display: block; overflow-y: clip; padding-bottom: .12em; margin-bottom: -.12em; }
  .hl > span { display: block; white-space: nowrap; }
}
.hero h1 em { font-style: italic; }
.lead { max-width: 560px; margin-top: 20px; color: #D9D3CA; font-size: 17px; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
.actions .link-u { align-self: flex-start; }
@media (min-width: 600px) {
  .actions { flex-direction: row; align-items: center; gap: 24px; }
  .sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sheet-frame:nth-child(n+4) { display: block; }
  .sheet-frame:nth-child(even) { margin-top: 32px; }
  .lead { font-size: 18px; }
}
@media (min-width: 1000px) {
  .hero { justify-content: flex-end; padding: 0 0 72px; min-height: max(640px, calc(100svh - var(--header))); }
  .sheet { position: absolute; inset: 0 0 auto auto; width: 70%; height: 100%; margin: 0; gap: 12px; padding: 24px 24px 0 0; align-items: start; }
  .sheet-frame:nth-child(1) { margin-top: 40px; } .sheet-frame:nth-child(2) { margin-top: 0; } .sheet-frame:nth-child(3) { margin-top: 120px; }
  .sheet-frame:nth-child(4) { margin-top: 24px; } .sheet-frame:nth-child(5) { margin-top: 88px; }
  .sheet-frame:nth-child(2) .frame-box { aspect-ratio: 3 / 4.6; } .sheet-frame:nth-child(4) .frame-box { aspect-ratio: 3 / 4.4; }
  .hero-scrim { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14,14,14,.97) 0%, rgba(14,14,14,.9) 40%, rgba(14,14,14,.55) 62%, rgba(14,14,14,.1) 82%), linear-gradient(0deg, rgba(14,14,14,.95) 0%, rgba(14,14,14,.7) 35%, rgba(14,14,14,0) 62%); }
  .hero-copy { max-width: none; }
  .hero-copy > * { max-width: 720px; }
  .hero-copy > h1 { max-width: 960px; }
}

/* Tira de perfurações */
.perf { height: 24px; overflow: hidden; background: var(--tinta); border-block: 1px solid var(--grafite); }
.perf-track { display: block; height: 100%; margin-inline: -48px; background: repeating-linear-gradient(90deg, transparent 0 14px, #2A2A2A 14px 26px) 0 50% / 100% 10px no-repeat; }

/* Ensaios */
.ensaios { margin-top: 40px; border-top: 1px solid rgba(22,22,22,.18); }
.ensaio-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px; grid-template-areas: "num name prev" "num desc prev"; column-gap: 12px; align-items: center; min-height: 88px; padding: 16px 0; border-bottom: 1px solid rgba(22,22,22,.18); text-decoration: none; }
.ensaio-num { grid-area: num; align-self: start; padding-top: 6px; font: italic 400 20px/1 var(--display); color: var(--vermelho-texto); }
.ensaio-name { grid-area: name; font: 400 var(--row-name)/1.08 var(--display); transition: transform .24s var(--ease); }
.ensaio-desc { grid-area: desc; margin-top: 4px; color: var(--apoio-claro); font-size: 16px; line-height: 1.45; }
.ensaio-preview { grid-area: prev; position: relative; width: 72px; aspect-ratio: 1; overflow: hidden; background: var(--grafite); }
.ensaio-preview .pending { padding: 6px; } .ensaio-preview .pending-txt { display: none; }
.ensaio-row > .ic { display: none; }
.ensaio-row:hover .ensaio-name, .ensaio-row:focus-visible .ensaio-name { transform: translateX(12px); }
@media (min-width: 768px) {
  .ensaio-row { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 32px; grid-template-areas: "num name desc arr"; column-gap: 24px; min-height: 112px; }
  .ensaio-num { align-self: center; padding: 0; font-size: 28px; }
  .ensaio-desc { margin: 0; }
  .ensaio-row > .ic { display: block; grid-area: arr; color: var(--vermelho-texto); }
  .ensaio-preview { position: absolute; left: 0; top: 0; z-index: 4; width: 220px; aspect-ratio: 4 / 5; opacity: 0; transition: opacity .24s var(--ease), scale .24s var(--ease); pointer-events: none; scale: .9; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
  .ensaio-row:hover .ensaio-preview, .ensaio-row:focus-visible .ensaio-preview { opacity: 1; scale: 1; }
}
@media (min-width: 768px) and (hover: none), (min-width: 768px) and (pointer: coarse) {
  .ensaio-row { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 96px; grid-template-areas: "num name desc prev"; }
  .ensaio-row > .ic { display: none; }
  .ensaio-preview { position: relative; grid-area: prev; width: 96px; aspect-ratio: 1; opacity: 1; scale: 1; transform: none; }
}

/* Portfólio */
.pf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 18px; border: 1px solid rgba(243,239,232,.35); border-radius: 999px; font: 500 16px var(--ui); transition: background-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--papel); }
.chip[aria-pressed="true"] { background: var(--papel); color: var(--texto); border-color: var(--papel); }
.pf-grid { columns: 2; column-gap: 12px; }
.pf-item { break-inside: avoid; margin-bottom: 12px; }
.pf-item.is-out { display: none; }
.pf-btn { position: relative; display: block; width: 100%; text-align: left; }
.pf-cap { display: flex; gap: 10px; align-items: baseline; min-height: 36px; padding-top: 8px; font: 500 14px var(--ui); color: var(--apoio-escuro); }
.pf-cap .frame-no { font-size: 11px; color: var(--apoio-escuro); }
.marks { position: absolute; inset: -6px -6px auto -6px; height: calc(100% - 30px); pointer-events: none; opacity: 0; transition: opacity .2s var(--ease);
  background: linear-gradient(var(--marca), var(--marca)) top left / 12px 2px, linear-gradient(var(--marca), var(--marca)) top left / 2px 12px,
    linear-gradient(var(--marca), var(--marca)) top right / 12px 2px, linear-gradient(var(--marca), var(--marca)) top right / 2px 12px,
    linear-gradient(var(--marca), var(--marca)) bottom left / 12px 2px, linear-gradient(var(--marca), var(--marca)) bottom left / 2px 12px,
    linear-gradient(var(--marca), var(--marca)) bottom right / 12px 2px, linear-gradient(var(--marca), var(--marca)) bottom right / 2px 12px; background-repeat: no-repeat; }
.pf-btn:hover .marks, .pf-btn:focus-visible .marks { opacity: 1; }
.pf-btn:focus-visible { outline-offset: 8px; }
.pf-btn .ref-img[src] { transition: transform .4s var(--ease); }
.pf-btn:hover .ref-img[src] { transform: scale(1.03); }
@media (min-width: 600px) { .pf-grid { column-gap: 16px; } .pf-item { margin-bottom: 16px; } }
@media (min-width: 1000px) { .pf-grid { columns: 3; column-gap: 24px; } .pf-item { margin-bottom: 24px; } }

/* Estúdio */
.studio { display: grid; gap: 32px; }
.studio-photo { position: relative; }
.studio-photo .frame-box { aspect-ratio: 1400 / 907; }
.studio-photo .marks { inset: -6px; height: auto; opacity: 1; }
.studio-text .big { margin-top: 24px; font: 400 26px/1.3 var(--display); }
.studio-text .big em { font-style: italic; }
.studio-text > p:not(.big) { margin-top: 20px; color: var(--apoio-claro); }
.facts { margin-top: 28px; border-top: 1px solid rgba(22,22,22,.18); }
.facts li { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(22,22,22,.18); font: 500 16px var(--ui); }
.facts li::before { content: ""; width: 16px; height: 2px; margin-right: 14px; background: var(--vermelho-texto); }
.studio-text .phrase { margin-top: 24px; font: italic 400 22px/1.35 var(--display); color: var(--texto); }
.phrase .revisao { font-style: normal; font-family: var(--ui); color: var(--apoio-claro); }
@media (min-width: 1000px) {
  .studio { grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
  .studio-photo { margin-left: calc(-1 * var(--m)); }
  .studio-photo .frame-box { aspect-ratio: 4 / 5; }
  .studio-photo .ref-img[src] { object-position: 80% 50%; }
  .studio-text .big { font-size: 34px; }
}

/* Depoimentos */
.testimonials { padding-top: 0; }
.dep-pending { margin-top: 20px; padding: 20px; font-size: 16px; border: 1px dashed rgba(243,239,232,.3); color: var(--apoio-escuro); max-width: 560px; }
.dep-list { margin-top: 24px; }
.dep-list blockquote { margin-top: 24px; padding-left: 20px; border-left: 2px solid var(--marca); max-width: 760px; }
.dep-list blockquote p { font: italic 400 22px/1.45 var(--display); }
.dep-list footer { margin-top: 8px; color: var(--apoio-escuro); }

/* Contato */
.contact { border-top: 1px solid var(--grafite); }
.contact-in { display: grid; gap: 40px; }
.contact-cta .btn { margin-top: 28px; width: 100%; }
.channels { border-top: 1px solid rgba(243,239,232,.16); }
.channels li { border-bottom: 1px solid rgba(243,239,232,.16); }
.channels a:not(.link-u), .channels .row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 2px 16px; align-items: center; min-height: 64px; padding: 10px 0; text-decoration: none; }
.channels .row { grid-template-columns: minmax(0, 1fr); }
.channels .lbl { grid-column: 1; color: var(--apoio-escuro); }
.channels .val { grid-column: 1; font: 400 18px/1.4 var(--ui); overflow-wrap: anywhere; }
.channels a .ic { grid-column: 2; grid-row: 1 / 3; color: var(--marca); transition: transform .24s var(--ease); }
.channels a:hover .ic, .channels a:focus-visible .ic { transform: translateX(6px); }
.channels .addr .link-u { margin: -6px 0 8px; }
@media (min-width: 600px) { .contact-cta .btn { width: auto; } }
@media (min-width: 1000px) {
  .contact-in { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .channels a:not(.link-u), .channels .row { grid-template-columns: 140px minmax(0, 1fr) 24px; min-height: 76px; }
  .channels .row { grid-template-columns: 140px minmax(0, 1fr); }
  .channels .lbl, .channels .val { grid-column: auto; }
  .channels a .ic { grid-column: 3; grid-row: 1; }
  .channels .val { font-size: 19px; }
  .channels .addr .link-u { margin: -10px 0 10px 156px; }
}

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--grafite); color: var(--apoio-escuro); font-size: 16px; }
.footer-in { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--papel); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .footer-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } .site-footer nav { justify-content: center; } }

/* WhatsApp flutuante (só mobile; JS mostra depois do hero e esconde no contato) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--btn); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: opacity .24s var(--ease), transform .24s var(--ease); }
.wa-float .ic { width: 26px; height: 26px; }
.wa-float.off { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }
@media (min-width: 768px) { .wa-float { display: none !important; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: 64px minmax(0, 1fr) auto; align-items: center; }
.lb-scrim { position: absolute; inset: 0; background: rgba(14,14,14,.95); }
.lb-bar { position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; }
#lb-count { font: 600 13px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--apoio-escuro); }
.lb-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(243,239,232,.1); }
.lb-btn:hover { background: rgba(243,239,232,.2); }
.lb-prev { grid-column: 1; justify-self: center; } .lb-next { grid-column: 3; justify-self: center; }
.lb-stage { position: relative; grid-column: 2; grid-row: 2; height: 100%; display: grid; place-items: center; min-height: 0; }
.lb-stage .frame-box { position: relative; max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.lb-stage .ref-img[src] { object-fit: contain; }
.lb-cap { position: relative; grid-column: 1 / -1; padding: 12px 20px 20px; text-align: center; color: var(--apoio-escuro); font-size: 15px; }
@media (min-width: 768px) { .lb { grid-template-columns: 96px minmax(0, 1fr) 96px; } }

/* ---------- Motion: só com html.motion (JS, sem reduced-motion). Sem JS nada fica oculto. ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion.intro .site-header { animation: fade .5s var(--ease) both; }
  html.motion.intro .sheet-frame .cover { opacity: 1; background: var(--tinta); transform-origin: top; animation: wipe .9s var(--ease) both; }
  html.motion.intro .sheet-frame .veil { background: var(--marca); mix-blend-mode: multiply; animation: veil 1s var(--ease) both; }
  html.motion.intro .sheet-frame:nth-child(1) :is(.cover, .veil) { animation-delay: .10s; }
  html.motion.intro .sheet-frame:nth-child(2) :is(.cover, .veil) { animation-delay: .19s; }
  html.motion.intro .sheet-frame:nth-child(3) :is(.cover, .veil) { animation-delay: .28s; }
  html.motion.intro .sheet-frame:nth-child(4) :is(.cover, .veil) { animation-delay: .37s; }
  html.motion.intro .sheet-frame:nth-child(5) :is(.cover, .veil) { animation-delay: .46s; }
  html.motion.intro .hero h1 { animation: up .8s var(--ease) .35s both; } /* mobile: H1 inteiro */
  @media (min-width: 600px) { html.motion.intro .hero h1 { animation: none; } html.motion.intro .hl > span { animation: rise .8s var(--ease) both; } }
  html.motion.intro .hl:nth-child(1) > span { animation-delay: .35s; } html.motion.intro .hl:nth-child(2) > span { animation-delay: .45s; } html.motion.intro .hl:nth-child(3) > span { animation-delay: .55s; }
  html.motion.intro .filete path { stroke-dasharray: 1; animation: draw .7s var(--ease) .3s both; }
  html.motion.intro .eyebrow > span, html.motion.intro .lead { animation: up .6s var(--ease) .7s both; }
  html.motion.intro .actions { animation: up .6s var(--ease) .85s both; }
  /* Entradas de seção */
  html.motion .rise:not(.in) { opacity: 0; transform: translateY(24px); }
  html.motion .rise { transition: opacity .6s var(--ease), transform .6s var(--ease); }
  html.motion .ensaio:not(.in) { opacity: 0; transform: translateY(12px); }
  html.motion .ensaio { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  /* Portfólio: véu vermelho e escala */
  html.motion .pf-item .veil { background: var(--marca); mix-blend-mode: multiply; opacity: 1; transition: opacity .7s var(--ease); transition-delay: var(--d, 0ms); }
  html.motion .pf-item .frame-box > :is(.pending, .ref-img) { transform: scale(1.06); transition: transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  html.motion .pf-item.in .veil { opacity: 0; }
  html.motion .pf-item.in .frame-box > :is(.pending, .ref-img) { transform: none; }
  html.motion .pf-item.in .pf-btn:hover .ref-img[src] { transform: scale(1.03); }
  html.motion .studio-photo .veil { background: var(--marca); mix-blend-mode: multiply; opacity: 1; transition: opacity .9s var(--ease); }
  html.motion .studio-photo.in .veil { opacity: 0; }
  .perf-track { transform: translateX(var(--perf, 0px)); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes wipe { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes veil { 0%, 30% { opacity: .9; } to { opacity: 0; } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
.sheet-frame .pending-num { display: none; } /* numeral já aparece na legenda do quadro */

/* ---------- Ajuste r1 (Site refactor, 05/11 ~23:05) ----------
   Hero ≥1000: a folha de contato fica numa coluna à direita do texto e não cruza H1, apoio nem CTAs.
   A largura do texto vem da linha mais longa do H1 ("Fotografia de família" ≈ 9,4em). Sem véu escuro fixo
   (o véu só existe na abertura, .cover). Estúdio: marca de corte esquerda dentro da página. */
@media (min-width: 1000px) {
  :root { --h1: 64px; }
  .hero-scrim { display: none; }
  .hero-copy > h1 { width: max-content; max-width: none; }
  .hero-copy .actions { width: max-content; }
  .hero-copy > :not(h1) { max-width: calc(9.4 * var(--h1)); } /* apoio e CTAs não passam da coluna do H1 */
  .sheet { --text-right: calc(max(var(--m), (100% - 1280px) / 2) + 9.4 * var(--h1) + 48px);
    left: var(--text-right); right: 0; width: auto; height: auto; inset-block: 24px 72px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 16px 12px; padding: 0 16px 0 0; align-content: start; }
  .sheet-frame:nth-child(n) { margin-top: 0; }
  .sheet-frame:nth-child(n) .frame-box { aspect-ratio: 3 / 4; }
  .sheet-frame:nth-child(even) { margin-top: 40px; }
  .sheet-frame:nth-child(5) { display: none; } /* 1000–1279: 2 colunas, 4 quadros para caber na altura */
  .studio-photo .marks { left: 8px; }
}
@media (min-width: 1280px) {
  :root { --h1: 76px; }
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-right: 24px; }
  .sheet-frame:nth-child(5) { display: block; }
  .sheet-frame:nth-child(even) { margin-top: 0; }
  .sheet-frame:nth-child(3n+2) { margin-top: 56px; }
  .sheet-frame:nth-child(3n) { margin-top: 24px; }
  .sheet-frame:nth-child(4) { grid-column: 1; } .sheet-frame:nth-child(5) { grid-column: 2; }
}
