/* Mayara Enciso v2 — styles.css (estático responsivo + motion opcional)
   Fonte: 09 > 08 > 07. Breakpoints de composição: <600 (390) · 600–999 (768) · 1000–1279 (1024) · ≥1280 (1440).
   Gaveta < 1100. Contrato runtime (script.js do DEV): [hidden], body.review-mode, .image-failed,
   .drawer.open/.is-open, body.locked, .site-header.scrolled, .phrase-ribbon.paused/.is-paused.
   Visibilidade nunca depende de JS. Opcionais futuros: html.js (coreografia), --read-progress (0–1). */

/* ---------- Fontes locais ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-roman-latin.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --papel: #F6F1EA; --papel-2: #EDE5DA; --tinta: #141414; --texto: #2e2e2e; --apoio: #555555; --apoio-claro: #C9C2B8;
  --vermelho: #db1011; --vermelho-forte: #a50d0e; --vermelho-fundo: #7f0a0b; --branco: #FFFFFF; --moldura: #767676;
  --ativo-claro: #E3D9CB; --filete: rgba(20,20,20,.12); --filete-claro: rgba(246,241,234,.2);
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-rapido: 120ms; --t-base: 240ms; --t-entrada: 360ms; --t-cortina: 600ms; --t-fio: 700ms;
  /* escala 390 (padrão mobile-first) */
  --margem: 20px; --gutter: 16px; --sec-y: 64px; --header-h: 64px; --logo-h: 32px;
  --h1: min(40px, calc((100vw - 40px) / 8.1));
  --h2: 40px; --h2-xl: 56px; --h3: 28px; --statement: 40px; --lead: 18px; --body-size: 16px;
  --rotulo: 12px; --num-secao: 88px; --num-orc: 120px; --num-tile: 32px; --fita: 20px; --cta-xl-h: 72px;
}
@media (min-width: 600px) {
  :root { --margem: 32px; --gutter: 24px; --sec-y: 96px; --header-h: 72px; --logo-h: 36px;
    --h1: min(84px, calc((100vw - 64px) / 8.1)); --h2: 56px; --h2-xl: 80px; --h3: 28px; --statement: 44px;
    --lead: 20px; --body-size: 17px; --rotulo: 13px; --num-secao: 112px; --num-orc: 160px; --num-tile: 36px; --fita: 22px; }
}
@media (min-width: 1000px) {
  :root { --margem: 40px; --h1: 64px; --h2: 64px; --h2-xl: 96px; --h3: 32px; --statement: 52px;
    --body-size: 18px; --num-secao: 128px; --num-orc: 200px; --num-tile: 40px; --fita: 24px; --cta-xl-h: 80px; }
}
@media (min-width: 1140px) { :root { --h1: 72px; } }
@media (min-width: 1280px) {
  :root { --sec-y: 128px; --header-h: 80px; --logo-h: 40px; --h1: 84px; --h2: 80px; --h2-xl: 120px; --h3: 36px;
    --statement: 60px; --lead: 22px; --num-secao: 160px; --num-orc: 240px; --cta-xl-h: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--papel); color: var(--texto); font-family: var(--body); font-size: var(--body-size); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--vermelho-forte); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--vermelho-fundo); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
[hidden] { display: none !important; }
.container { width: min(100% - 2 * var(--margem), 1200px); margin-inline: auto; }
.section-anchor { scroll-margin-top: calc(var(--header-h) + 16px); }
svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.icon-play path { fill: currentColor; }
/* Grão estático em azulejo (≈4%), sem filtro em tela cheia */
body::after { content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; }
/* Revisão: removível em um só lugar (fora do preview-mode, some) */
body:not(.preview-mode) .revisao { display: none !important; }

/* ---------- Foco visível ---------- */
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.work-section :focus-visible, .contact-section :focus-visible, .site-footer :focus-visible, .modal-layer :focus-visible { outline-color: var(--papel); }
.button.primary:focus-visible, .marquee-toggle:focus-visible { outline: 3px solid var(--branco); outline-offset: 0; box-shadow: 0 0 0 6px var(--tinta); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; background: var(--tinta); color: var(--papel); font-weight: 700; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--papel); }

/* ---------- Tipos ---------- */
h1, h2, h3, .display-xl, .about-statement { font-family: var(--display); color: var(--texto); font-weight: 500; letter-spacing: 0; font-variant-numeric: lining-nums; }
h2 { font-size: var(--h2); line-height: .98; }
h2.display-xl { font-size: var(--h2-xl); line-height: .9; }
h3 { font-size: var(--h3); line-height: 1.25; font-weight: 600; }
.eyebrow, .section-kicker, .channel-label { font-family: var(--body); font-size: var(--rotulo); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.section-kicker { color: var(--apoio); }
.section-number { font-family: var(--display); font-style: italic; font-weight: 500; font-size: var(--num-secao); line-height: .8; color: var(--vermelho); font-variant-numeric: lining-nums; user-select: none; }

/* ---------- Fita de revisão ---------- */
.review-ribbon { display: flex; align-items: center; justify-content: center; min-height: 28px; padding: 6px var(--margem); background: var(--tinta); color: var(--branco); font-size: 12px; line-height: 1.35; text-align: center; }
@media (max-width: 600px) { .review-ribbon { min-height: 44px; } }

/* ---------- Botões ---------- */
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 8px 32px; border-radius: 999px; font-family: var(--body); font-size: 18px; font-weight: 700; line-height: 1.25; text-decoration: none; text-align: center; transition: transform var(--t-rapido) var(--ease), background-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.button svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-base) var(--ease); }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.button.primary { background: var(--vermelho); color: var(--branco); }
.button.primary::before { background: var(--vermelho-forte); }
.button.outline { border: 2px solid var(--tinta); color: var(--tinta); background: transparent; }
.button.outline::before { background: var(--tinta); }
.button:hover::before, .button:focus-visible::before { transform: scaleX(1); }
.button:hover svg, .button:focus-visible svg { transform: translateX(4px); }
.button.primary:hover, .button.primary:focus-visible { color: var(--branco); }
.button.outline:hover, .button.outline:focus-visible { color: var(--papel); }
.button.primary:active { background: var(--vermelho-fundo); transform: scale(.98); }
.button.primary:active::before { opacity: 0; }
.button.outline:active { transform: scale(.98); color: var(--papel); }
.button.outline:active::before { transform: scaleX(1); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinta); font-size: 18px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--vermelho-forte); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-link:hover { color: var(--vermelho-fundo); text-decoration-color: var(--vermelho-fundo); }
.text-link:active { color: var(--vermelho-fundo); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--papel); border-bottom: 1px solid transparent; transition: border-color var(--t-base) var(--ease); }
.site-header.is-scrolled, .site-header.scrolled { border-bottom-color: var(--filete); }
.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: var(--logo-h); width: auto; }
.desktop-nav { display: none; }
.header-cta { margin-left: auto; min-height: 44px; padding: 6px 18px; font-size: 15px; gap: 8px; white-space: nowrap; }
.header-cta svg { width: 18px; height: 18px; }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px; color: var(--tinta); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle:hover { background: var(--papel-2); }
.menu-toggle:active { background: var(--ativo-claro); }
@media (max-width: 379px) { .header-cta { display: none; } .menu-toggle { margin-left: auto; } }
@media (min-width: 1100px) {
  .desktop-nav { display: flex; gap: 32px; margin-left: auto; }
  .desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinta); font-size: 15px; font-weight: 600; text-decoration: none; background: linear-gradient(var(--vermelho-forte), var(--vermelho-forte)) left calc(50% + 14px) / 0 2px no-repeat; transition: background-size var(--t-base) var(--ease); }
  .desktop-nav a:hover, .desktop-nav a[aria-current] { background-size: 100% 2px; color: var(--tinta); }
  .header-cta { margin-left: 16px; padding: 6px 24px; }
  .menu-toggle { display: none; }
}

/* ---------- Gaveta (< 1100) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,20,.55); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(88vw, 360px); padding: 12px 20px 24px; background: var(--papel); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
.drawer.is-open, .drawer.open, .drawer[aria-hidden="false"] { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease), visibility 0s; }
.drawer-close { align-self: flex-end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--tinta); }
.drawer-close svg { width: 24px; height: 24px; }
.drawer-close:hover { background: var(--papel-2); }
.drawer-links { display: flex; flex-direction: column; margin: 16px 0 24px; }
.drawer-links a { display: flex; align-items: center; min-height: 56px; padding: 4px 12px; border-bottom: 1px solid var(--filete); color: var(--tinta); font-family: var(--display); font-style: italic; font-size: 32px; font-weight: 500; line-height: 1.1; text-decoration: none; }
.drawer-links a:hover { background: var(--papel-2); color: var(--tinta); }
.drawer-links a:active { background: var(--ativo-claro); }
.drawer-links a[aria-current] { box-shadow: inset 4px 0 0 var(--vermelho); font-weight: 600; }
.drawer > .button { width: 100%; margin-top: auto; }
@media (min-width: 1100px) { .drawer, .drawer-scrim { display: none !important; } }

/* ---------- Fio de leitura ---------- */
.reading-thread { position: fixed; z-index: 55; pointer-events: none; top: 0; left: 0; right: 0; height: 3px; }
.reading-thread span { display: block; width: 100%; height: 100%; background: var(--vermelho); transform: scaleX(var(--read-progress, 0)); transform-origin: left; }
@media (min-width: 1000px) {
  .reading-thread { top: 0; bottom: 0; left: 24px; right: auto; width: 2px; height: auto; }
  .reading-thread span { transform: scaleY(var(--read-progress, 0)); transform-origin: top; }
}
html:not(.js) .reading-thread { display: none; }

/* ---------- Quadro pendente (comum) ---------- */
.pending-art { position: absolute; inset: 0; background: var(--papel-2); color: var(--tinta); }
.frame-inner { position: absolute; inset: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; border: 1px solid var(--moldura); }
.frame-thread { position: absolute; left: 0; right: 0; top: 62%; width: 100%; height: 20px; color: var(--vermelho); transform: translateY(-50%); overflow: visible; }
.pending-number { position: absolute; top: 12px; left: 16px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 64px; line-height: 1; color: var(--tinta); font-variant-numeric: lining-nums; }
.pending-label, .frame-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); line-height: 1.3; }
.pending-copy { font-size: 14px; font-weight: 600; color: var(--apoio); line-height: 1.35; }
.review-photo { display: none; }
body.review-mode .portrait > .pending-art, body.review-mode .tile-visual > .pending-art { display: none; }
body.review-mode .image-failed > .pending-art { display: block; }
.review-photo[hidden] ~ .reference-tag { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.review-photo[src] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.reference-tag { display: none; }
.review-photo[src] ~ .reference-tag { position: absolute; top: 8px; left: 8px; z-index: 3; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--tinta); color: var(--papel); font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1; pointer-events: none; }
.portrait-curtain, .tile-curtain { display: none; }
.portrait { container-type: inline-size; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; background: var(--papel); padding: 24px 0 48px; }
.hero-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-side-label { display: none; }
.hero-copy { position: relative; }
.mobile-place { display: block; margin-bottom: 16px; color: var(--apoio); }
.hero h1 { font-size: var(--h1); line-height: .95; font-weight: 600; color: var(--texto); }
.hero-line { display: block; }
.hero h1 em { color: var(--vermelho-forte); font-weight: 500; }
/* Fio do hero: desenhado a partir da linha 2 real do H1 (acompanha o tamanho ajustado pelo script);
   o SVG .hero-thread fica oculto para não depender de medida fixa. */
.hero-thread { display: none; }
.hero-line { position: relative; white-space: nowrap; }
.hero-line:nth-child(2)::after { content: ""; position: absolute; z-index: 0; left: 0; top: calc(.794em + 13px); width: 200vw; height: 2px; background: var(--vermelho); pointer-events: none; transform-origin: left center; }
.hero-lead { max-width: 520px; margin-top: 24px; font-size: var(--lead); line-height: 1.55; color: var(--texto); }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
.hero-actions .text-link { align-self: flex-start; }
.hero-portrait { position: relative; z-index: 1; width: min(300px, 100%); aspect-ratio: 5 / 7; margin-top: 48px; justify-self: start; }
.hero-portrait > .pending-art, .hero-portrait > .review-photo[src], .portrait-curtain { border-radius: 999px 999px 0 0; overflow: hidden; }
.hero-portrait > .pending-art { z-index: 1; }
.hero-portrait > .review-photo[src] { z-index: 2; }
.hero-portrait .frame-inner { border-radius: 999px 999px 0 0; justify-content: flex-end; }
.portrait-offset { position: absolute; inset: 0; z-index: 0; background: var(--vermelho); transform: translate(24px, 24px); }
@media (min-width: 600px) {
  .header-inner { gap: 16px; }
  .hero { padding: 64px 0 64px; }
  .hero h1 em { color: var(--vermelho); }
  .hero-lead { margin-top: 32px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
  .hero-actions .text-link { align-self: auto; }
  .hero-portrait { width: min(340px, 100%); justify-self: end; }
  .portrait-offset { transform: translate(28px, 28px); }
}
@media (min-width: 1000px) {
  .hero { padding: 80px 0 64px; min-height: clamp(600px, calc(100svh - var(--header-h) - 48px), 760px); }
  .hero-shell { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .hero-copy { grid-column: 1 / 8; }
  .mobile-place { display: none; }
  .hero-side-label { display: block; position: absolute; left: -8px; top: 0; transform: translateX(-100%); writing-mode: vertical-rl; rotate: 180deg; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apoio); }
  .hero-actions { margin-top: 32px; }
  .hero-portrait { grid-column: 9 / 13; width: 100%; aspect-ratio: 12 / 17; margin-top: -24px; justify-self: stretch; }
}
@media (min-width: 1280px) {
  .hero { padding-top: 96px; min-height: clamp(680px, calc(100svh - var(--header-h) - 48px), 820px); }
  .hero-side-label { left: -64px; transform: none; }
  .hero-portrait { margin-top: -24px; }
  .portrait-offset { transform: translate(32px, 32px); }
}
@media (max-width: 999px) { .hero-portrait .frame-inner { inset: 12px; } }
.hero-portrait .frame-label { margin-bottom: 2px; }

/* ---------- Fita de frases ---------- */
.phrase-ribbon { position: relative; display: flex; align-items: center; min-height: 44px; background: var(--vermelho); color: var(--branco); }
.marquee-track { display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.marquee-copy { flex: none; display: flex; align-items: center; justify-content: space-around; gap: 24px; min-width: 100%; padding: 8px 12px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: var(--fita); line-height: 1.2; white-space: nowrap; }
.marquee-copy i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--branco); font-size: 0; vertical-align: middle; }
.marquee-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: 2px; border-radius: 999px; color: var(--branco); }
.marquee-toggle svg { width: 20px; height: 20px; }
.marquee-toggle:hover { background: rgba(255,255,255,.14); }
.marquee-toggle .icon-play { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }
@media (min-width: 600px) { .phrase-ribbon { min-height: 48px; } }
/* Estático (padrão sem JS e reduced-motion): uma linha centralizada, sem duplicata */
.marquee-copy[aria-hidden="true"] { display: none; }
.marquee-copy { justify-content: center; white-space: normal; flex-wrap: wrap; text-align: center; }

/* ---------- Galeria ---------- */
.work-section { background: var(--tinta); color: var(--papel); padding: var(--sec-y) 0; }
.work-section h2 { color: var(--papel); }
.editorial-heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 16px; margin-bottom: 48px; }
.work-heading .gallery-state { flex-basis: 100%; max-width: 282px; color: var(--apoio-claro); font-size: 14px; line-height: 1.5; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: start; }
.work-item { display: block; width: 100%; text-align: left; color: var(--papel); }
.work-a { grid-column: 1 / 5; grid-row: 1; }
.work-b { grid-column: 1 / 3; grid-row: 2; }
.work-c { grid-column: 3 / 5; grid-row: 2; margin-top: 48px; }
.work-d { grid-column: 2 / 5; grid-row: 3; }
.tile-visual { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--papel-2); container-type: inline-size; }
.tile-visual .review-photo[src] { transition: transform var(--t-base) var(--ease); }
.tile-visual .frame-inner { justify-content: flex-end; }
@container (max-width: 260px) {
  .frame-inner { inset: 8px; padding: 10px; }
  .pending-number { top: 6px; left: 10px; font-size: 40px; }
  .pending-label { font-size: 12px; letter-spacing: .1em; }
  .pending-copy { font-size: 12px; }
}
.tile-caption { display: flex; align-items: center; gap: 12px; height: 56px; }
.caption-number { display: none; font-family: var(--display); font-style: italic; font-weight: 500; font-size: var(--num-tile); line-height: 1; color: var(--papel); font-variant-numeric: lining-nums; transition: color var(--t-base) var(--ease); }
.review-mode .caption-number, .is-referencias .caption-number { display: block; }
.work-item:has(.review-photo[src]:not([hidden])) .caption-number { display: block; }
.work-item:has(.image-failed) .caption-number { display: none; }
.caption-copy { display: flex; flex-direction: column; min-width: 0; }
.caption-title { position: relative; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apoio-claro); line-height: 1.3; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--t-base) var(--ease); }
.caption-state { font-size: 13px; color: var(--apoio-claro); line-height: 1.3; }
@media (min-width: 1280px) { .tile-caption { height: 72px; } }
/* hover (ponteiro fino) e foco = mesmo estado */
@media (hover: hover) and (pointer: fine) {
  .work-item:hover .review-photo[src] { transform: scale(1.04); }
  .work-item:hover .caption-number { color: var(--vermelho); }
  .work-item:hover .caption-title { background-size: 100% 1px; }
}
.work-item:focus-visible { outline: none; }
.work-item:focus-visible .tile-visual { outline: 3px solid var(--papel); outline-offset: 3px; }
.work-item:focus-visible .review-photo[src] { transform: scale(1.04); }
.work-item:focus-visible .caption-number { color: var(--vermelho); }
.work-item:focus-visible .caption-title { background-size: 100% 1px; }
.work-item:active .tile-visual { transform: scale(.98); opacity: .92; transition: transform var(--t-rapido) var(--ease); }
@media (min-width: 600px) {
  .editorial-heading { margin-bottom: 64px; }
  .work-heading .gallery-state { flex-basis: auto; margin-left: auto; }
  .work-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 48px; }
  .work-a { grid-column: 1 / 6; grid-row: 1; }
  .work-b { grid-column: 6 / 9; grid-row: 1; margin-top: 48px; }
  .work-c { grid-column: 1 / 5; grid-row: 2; margin-top: 0; }
  /* 09 §4: D ≥ 200px em 768 → 3 colunas (249), subindo 39 sem tocar B */
  .work-d { grid-column: 6 / 9; grid-row: 2; margin-top: -39px; }
}
@media (min-width: 1000px) {
  .work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work-a { grid-column: 1 / 6; grid-row: 1 / 3; }
  .work-b { grid-column: 7 / 10; grid-row: 1; margin-top: 48px; }
  /* 09 §4: D ≥ 200px em 1024 → C cols 6–9 (299), D cols 10–12 (218) */
  .work-c { grid-column: 6 / 10; grid-row: 2; }
  .work-d { grid-column: 10 / 13; grid-row: 2; margin-top: -40px; }
}
@media (min-width: 1280px) {
  .work-heading .gallery-state { max-width: 282px; }
  .work-b { margin-top: 64px; }
  .work-c { grid-column: 7 / 11; }
  .work-d { grid-column: 11 / 13; margin-top: -48px; }
}

/* ---------- Sobre ---------- */
.about-section { position: relative; overflow: clip; background: var(--papel); padding: var(--sec-y) 0; }
.about-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.about-number { grid-column: 1 / -1; grid-row: 1; }
.about-inner .section-kicker { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }
.about-statement { grid-column: 1 / -1; grid-row: 3; margin-top: 24px; font-size: var(--statement); line-height: 1.15; }
.about-statement em { color: var(--vermelho-forte); }
.about-portrait { grid-column: 1 / -1; grid-row: 4; justify-self: end; position: relative; width: min(200px, 100%); aspect-ratio: 3 / 4; margin-top: 32px; }
.about-copy { grid-column: 1 / -1; grid-row: 5; margin-top: 32px; max-width: 390px; color: var(--texto); }
.about-portrait > .pending-art, .about-portrait > .review-photo[src] { rotate: 2deg; }
.about-thread { position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: 2400px; margin-left: -.75px; background: var(--vermelho); }
.about-thread::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--vermelho); }
@media (min-width: 600px) {
  .about-inner { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .about-statement em { color: var(--vermelho); }
  .about-portrait { grid-column: 6 / 9; grid-row: 4 / 6; width: 100%; margin-top: 48px; }
  .about-copy { grid-column: 1 / 5; grid-row: 4; margin-top: 48px; }
}
@media (min-width: 1000px) {
  .about-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about-number, .about-inner .section-kicker { grid-column: 1 / 9; }
  .about-statement { grid-column: 1 / 9; }
  .about-copy { grid-column: 3 / 8; grid-row: 4; }
  .about-portrait { grid-column: 10 / 13; grid-row: 2 / 6; margin-top: 64px; }
}
@media (min-width: 1280px) {
  .about-copy { grid-column: 4 / 8; }
  .about-portrait { margin-top: 96px; }
}

/* ---------- Orçamento ---------- */
.budget-section { position: relative; background: var(--papel); padding: var(--sec-y) 0; }
.budget-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.budget-heading { grid-row: 1; }
.budget-thread { display: none; }
.budget-steps { position: relative; grid-row: 2; display: flex; flex-direction: column; gap: 48px; }
.budget-steps::before { content: ""; position: absolute; left: 39px; top: calc(var(--num-orc) * .4); bottom: calc(100% - var(--num-orc) * .4); width: 2px; background: var(--vermelho); }
.budget-steps li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.outline-number { position: relative; z-index: 1; display: block; justify-self: center; padding: 0 4px; background: var(--papel); font-family: var(--display); font-style: italic; font-weight: 500; font-size: var(--num-orc); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--vermelho); font-variant-numeric: lining-nums; }
.budget-steps h3 { color: var(--texto); }
.budget-steps p { margin-top: 4px; color: var(--texto); }
.budget-cta { grid-row: 3; justify-self: stretch; margin-top: 64px; min-height: var(--cta-xl-h); padding: 8px 32px; }
@media (min-width: 600px) {
  .budget-steps::before { display: none; }
  .budget-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); gap: 24px var(--gutter); }
  .budget-steps li { display: block; }
  .budget-steps li:nth-child(1) { grid-column: 1 / 7; }
  .budget-steps li:nth-child(2) { grid-column: 3 / 9; }
  .budget-steps li:nth-child(3) { grid-column: 1 / 7; }
  .outline-number { justify-self: auto; padding: 0; background: none; margin-bottom: 8px; }
  .budget-cta { justify-self: start; margin-top: 96px; padding: 8px 40px; }
}
@media (min-width: 1000px) {
  .budget-thread { display: block; grid-row: 2; grid-column: 1; align-self: stretch; width: 100%; height: 100%; color: var(--vermelho); pointer-events: none; }
  .budget-steps { grid-column: 1; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 0; }
  .budget-steps li:nth-child(1) { grid-column: 1 / 5; }
  .budget-steps li:nth-child(2) { grid-column: 5 / 9; grid-row: 1; margin-top: 64px; }
  .budget-steps li:nth-child(3) { grid-column: 9 / 13; grid-row: 1; margin-top: 128px; }
  .budget-steps li div { max-width: 300px; }
  .budget-cta { font-size: 24px; padding: 8px 48px; }
  .budget-cta svg { width: 24px; height: 24px; }
}
@media (min-width: 1280px) {
  .budget-steps li:nth-child(2) { margin-top: 96px; }
  .budget-steps li:nth-child(3) { margin-top: 192px; }
}

/* ---------- Parcerias ---------- */
.partnership-section { background: var(--papel); border-top: 1px solid var(--filete); padding: 48px 0; }
.partnership-inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; row-gap: 16px; }
.partnership-inner .section-number { font-size: 88px; }
@media (min-width: 600px) { .partnership-inner .section-number { font-size: 112px; } }
.partnership-copy { max-width: 486px; color: var(--texto); }
.partnership-inner .button { justify-self: stretch; margin-top: 8px; }
@media (min-width: 600px) {
  .partnership-section { padding: 64px 0; }
  .partnership-inner { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); }
  .partnership-inner > * { grid-column: 1 / -1; }
  .partnership-copy { grid-column: 1 / 7; }
  .partnership-inner .button { grid-column: 1 / 6; justify-self: start; }
}
@media (min-width: 1000px) {
  .partnership-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .partnership-inner .section-number, .partnership-inner .section-kicker { grid-column: 1 / -1; }
  .partnership-inner h2 { grid-column: 1 / 5; grid-row: 3; }
  .partnership-copy { grid-column: 5 / 10; grid-row: 3; }
  .partnership-inner .button { grid-column: 5 / 13; grid-row: 4; margin-top: 16px; }
}
@media (min-width: 1280px) {
  .partnership-section { padding: 96px 0; }
  .partnership-inner .button { grid-column: 10 / 13; grid-row: 3; justify-self: stretch; margin-top: 0; padding: 8px 24px; }
}

/* ---------- Contato ---------- */
.contact-section { background: var(--tinta); color: var(--papel); padding: var(--sec-y) 0 64px; }
.contact-section h2 { color: var(--papel); margin-top: 8px; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact-list { margin-top: 48px; border-top: 1px solid var(--filete-claro); }
.contact-list li { border-bottom: 1px solid var(--filete-claro); }
.contact-list a, .city-row { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "label arrow" "value arrow"; align-items: center; column-gap: 16px; min-height: 64px; padding: 12px 8px; color: var(--papel); text-decoration: none; }
.channel-label { grid-area: label; color: var(--apoio-claro); }
.channel-value { grid-area: value; min-width: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }
.contact-list svg { grid-area: arrow; width: 24px; height: 24px; transition: transform var(--t-base) var(--ease); }
.contact-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--papel); transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-base) var(--ease); }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--tinta); }
.contact-list a:hover .channel-label, .contact-list a:focus-visible .channel-label { color: var(--apoio); }
.contact-list a:hover::before, .contact-list a:focus-visible::before { transform: scaleY(1); }
.contact-list a:hover svg, .contact-list a:focus-visible svg { transform: translateX(8px); }
.contact-list a:focus-visible { outline-offset: -3px; outline-color: var(--tinta); }
.contact-list a:active { background: rgba(246,241,234,.08); }
.address-note { margin-top: 24px; color: var(--apoio-claro); font-size: 14px; }
@media (min-width: 600px) {
  .contact-list a, .city-row { grid-template-columns: 160px minmax(0, 1fr) 24px; grid-template-areas: "label value arrow"; min-height: 72px; padding: 8px 12px; }
  .channel-value { font-size: 28px; }
  .contact-list { margin-top: 64px; }
}
@media (min-width: 1000px) {
  .contact-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .contact-inner .section-number, .contact-inner h2 { grid-column: 1 / 6; }
  .contact-inner h2 { grid-row: 2; }
  .contact-list { grid-column: 6 / 13; grid-row: 1 / 4; margin-top: 0; align-self: end; }
  .address-note { grid-column: 6 / 13; grid-row: 4; }
  .contact-list a, .city-row { min-height: 80px; grid-template-columns: 150px minmax(0, 1fr) 24px; }
  .channel-value { font-size: 32px; }
}
@media (min-width: 1280px) {
  .contact-list a, .city-row { min-height: 88px; }
  .channel-value { font-size: 36px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--tinta); color: var(--apoio-claro); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 32px; border-top: 1px solid var(--filete-claro); font-size: 13px; }
.footer-brand img { height: 32px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--papel); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; color: var(--papel); }
@media (min-width: 600px) { .footer-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; } .site-footer nav { order: 3; flex-basis: 100%; } }
@media (min-width: 1000px) { .footer-inner { flex-wrap: nowrap; } .site-footer nav { order: 0; flex-basis: auto; } .site-footer p { text-align: right; } }

/* ---------- Modal ---------- */
.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal-scrim { position: absolute; inset: 0; background: rgba(20,20,20,.92); }
.dialog { position: relative; display: flex; flex-direction: column; width: 100vw; height: 100svh; color: var(--papel); background: var(--tinta); outline: none; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 12px 0 20px; flex: none; }
#dialog-title { font-size: 16px; font-weight: 600; }
.dialog-close, .modal-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(246,241,234,.12); color: var(--papel); font-size: 24px; line-height: 1; transition: background-color var(--t-base) var(--ease), transform var(--t-rapido) var(--ease); }
.dialog-close span { display: none; font-size: 15px; font-weight: 600; }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-close:hover, .modal-arrow:hover { background: rgba(246,241,234,.22); }
.dialog-close:active, .modal-arrow:active { transform: scale(.96); }
.dialog-content { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 0; padding: 0 20px; }
.dialog-content > .modal-arrow { display: none; }
.dialog-image { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.dialog-image img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.dialog-image .pending-art, .dialog-image .tile-visual { position: relative; inset: auto; width: min(100%, 520px, (100svh - 260px) * .75); aspect-ratio: 3 / 4; }
.dialog-caption { flex: none; padding: 12px 20px 16px; }
#dialog-description { font-size: 16px; color: var(--papel); }
.modal-review-note { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--apoio-claro); }
.mobile-modal-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: 8px; }
.modal-caption-short { font-size: 14px; color: var(--apoio-claro); text-align: center; }
@media (min-width: 768px) {
  .dialog { width: min(1100px, 100vw - 64px); height: auto; max-height: calc(100svh - 64px); background: transparent; }
  .dialog-header { height: 64px; padding: 0; }
  .dialog-close span { display: inline; }
  .dialog-content { gap: 24px; padding: 0; }
  .dialog-content > .modal-arrow { display: inline-flex; flex: none; }
  .dialog-image { height: min(70svh, 693px); }
  .dialog-caption { padding: 16px 68px 0; }
  .mobile-modal-controls { display: none; }
}

/* ---------- Motion (sem reduced-motion). Fita roda só com CSS; coreografia do hero só se html.js existir ----------
   Conteúdo visível por padrão. JS adiciona .js no <html>; .reveal entra quando ganha .is-in
   (o script deve forçar .is-in em tudo após 2,5s). Fita só rola com JS (botão de pausa funcional). */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-lead.reveal { animation: sobe var(--t-entrada) var(--ease) 800ms both; }
  html.js .hero-actions.reveal { animation: sobe var(--t-entrada) var(--ease) 900ms both; }
  html.js .hero-side-label, html.js .mobile-place { animation: aparece var(--t-entrada) var(--ease) 1000ms both; }
  html.js .hero-portrait.reveal > .pending-art, html.js .hero-portrait.reveal > .review-photo[src] { animation: aparece var(--t-cortina) var(--ease) 500ms both; }
  html.js .phrase-ribbon { animation: aparece var(--t-entrada) var(--ease) 1000ms both; }
  .marquee-copy[aria-hidden="true"] { display: flex; }
  .marquee-copy { justify-content: space-around; flex-wrap: nowrap; white-space: nowrap; animation: fita 20s linear infinite; }
  .phrase-ribbon:hover .marquee-copy, .phrase-ribbon:focus-within .marquee-copy,
  .phrase-ribbon.paused .marquee-copy, .phrase-ribbon.is-paused .marquee-copy { animation-play-state: paused; }
  .phrase-ribbon:has(.marquee-toggle[aria-pressed="true"]) .marquee-copy { animation-play-state: paused; }
  @media (min-width: 600px) { .marquee-copy { animation-duration: 19s; } }
  @media (min-width: 1000px) { .marquee-copy { animation-duration: 25s; } }
  @media (min-width: 1280px) { .marquee-copy { animation-duration: 32s; } }
  html.js .hero-line:nth-child(2)::after { animation: desenha var(--t-fio) var(--ease) both; }
  html.js .hero-line { animation: linha 600ms var(--ease) both; }
  html.js .hero-line:nth-child(1) { animation-delay: 300ms; }
  html.js .hero-line:nth-child(2) { animation-delay: 380ms; }
  html.js .hero-line:nth-child(3) { animation-delay: 460ms; }
  html.js .portrait-offset { animation: aparece var(--t-entrada) var(--ease) 500ms both; }
}
@keyframes fita { to { transform: translateX(-100%); } }
@keyframes desenha { from { transform: scaleX(0); } to { transform: none; } }
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes linha { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reading-thread { display: none; }
  .work-item:hover .review-photo[src], .work-item:focus-visible .review-photo[src] { transform: none; }
  .button:active, .work-item:active .tile-visual { transform: none; }
}

/* Conferência DEV: preservar três linhas sem quebra interna. */
.hero-line { white-space: nowrap; }

/* Design r1: polimento local, preservando a composição intermediária. */
.site-header { --logo-h: 40px; }
@media (max-width: 599px) { .header-cta { padding-inline: 12px; } }
@media (min-width: 1100px) { .site-header { --logo-h: 54px; } }
.site-footer nav a { min-width: 44px; padding-inline: 4px; justify-content: center; }
.about-heading { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; font-size: var(--rotulo); font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.partnership-label { white-space: nowrap; }
.partnership-inner .button { width: max-content; max-width: 100%; padding-inline: 20px; gap: 10px; }
@media (max-width: 599px) { .partnership-inner .button { font-size: 15px; padding-inline: 16px; gap: 8px; } }
@media (min-width: 1280px) {
 .work-a { grid-row: 1; }
 .work-c { grid-column: 2 / 7; grid-row: 2; margin-top: 48px; }
 .work-d { grid-column: 8 / 11; grid-row: 2; margin-top: 176px; } /* Site refactor 05/11 ~19:55: D maior e mais próximo de C (reduz o vazio entre C e D) */
 .partnership-inner .button { grid-column: 5 / 13; grid-row: 4; justify-self: start; margin-top: 16px; }
}
/* O fio fica atrás de uma reserva opaca de cada glifo, sem atravessá-lo. */
@media (min-width: 1000px) {
 .budget-thread { z-index: 0; }
 .budget-steps { z-index: 1; }
 .outline-number { isolation: isolate; width: max-content; max-width: 100%; }
 .outline-number::before { content: ''; position: absolute; inset: -8px -12px; background: var(--papel); z-index: -1; }
}

/* ---------- Motion v2 (Frontend, 05/11): cortinas da galeria, FLIP do modal, parallax ----------
   Ativado só pelo script (html.motion-curtains) e nunca em reduced-motion; sem JS tudo fica visível. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-curtains .tile-curtain { display: block; position: absolute; inset: 0; z-index: 4; background: var(--vermelho); transform-origin: top; transform: scaleY(1); transition: transform 700ms var(--ease); pointer-events: none; }
  html.motion-curtains .work-item.is-revealed .tile-curtain { transform: scaleY(0); }
  html.motion-curtains .tile-visual > .pending-art, html.motion-curtains .tile-visual > .review-photo[src] { scale: 1.08; transition: scale 700ms var(--ease), transform var(--t-base) var(--ease); }
  html.motion-curtains .work-item.is-revealed .tile-visual > .pending-art, html.motion-curtains .work-item.is-revealed .tile-visual > .review-photo[src] { scale: 1; }
  html.motion-curtains .tile-visual .frame-thread { transform: translateY(-50%) scaleX(0); transform-origin: left center; transition: transform var(--t-fio) var(--ease) 1100ms; }
  html.motion-curtains .work-item.is-revealed .tile-visual .frame-thread { transform: translateY(-50%) scaleX(1); }
  @media (max-width: 767px) {
    html.motion-curtains .tile-curtain, html.motion-curtains .tile-visual > .pending-art, html.motion-curtains .tile-visual > .review-photo[src] { transition-duration: 600ms; }
    html.motion-curtains .tile-visual .frame-thread { transition-duration: 500ms; transition-delay: 1000ms; }
  }
  .hero-line:nth-child(2)::after { translate: 0 var(--fio-y, 0px); }
  .work-item.is-flipping .tile-visual { opacity: 0; }
}

/* Correção (Frontend, 05/11): a imagem do modal transbordava a área (height:100% sem base na grade); fica contida na caixa da área. Necessário para o FLIP. */
.dialog-image > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }

/* ---------- Motion v2 (DEV, 05/11): abertura 1×/sessão (08 §4.1), máscara do H1, cortina do retrato, header, títulos linha a linha ----------
   Só transform/opacity; sem JS ou reduced-motion nada fica oculto. html.intro-done = abertura já vista nesta sessão. */
.hl-in { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-line { animation: none; overflow-y: clip; padding-bottom: calc(.22em + 4px); margin-bottom: calc(-.22em - 4px); /* +4px: fio da linha 2 com folga também abaixo de 40px */ }
  html.js .hl-in { animation: mascara 600ms var(--ease) both; }
  html.js .hero-line:nth-child(1) .hl-in { animation-delay: 300ms; }
  html.js .hero-line:nth-child(2) .hl-in { animation-delay: 380ms; }
  html.js .hero-line:nth-child(3) .hl-in { animation-delay: 460ms; }
  html.js .site-header { animation: aparece 300ms var(--ease) 700ms both; }
  html.js .portrait-curtain { display: block; position: absolute; inset: 0; z-index: 3; background: var(--vermelho); transform-origin: right center; pointer-events: none; animation: cortina 600ms var(--ease) 500ms both; }
  html.js .hero-portrait.reveal > .pending-art, html.js .hero-portrait.reveal > .review-photo[src] { animation: zoom 600ms var(--ease) 500ms both; }
  @media (max-width: 767px) {
    html.js .hl-in { animation-duration: 480ms; }
    html.js .hero-line:nth-child(1) .hl-in { animation-delay: 240ms; }
    html.js .hero-line:nth-child(2) .hl-in { animation-delay: 300ms; }
    html.js .hero-line:nth-child(3) .hl-in { animation-delay: 360ms; }
    html.js .hero-line:nth-child(2)::after { animation-duration: 500ms; }
    html.js .portrait-curtain, html.js .hero-portrait.reveal > .pending-art, html.js .hero-portrait.reveal > .review-photo[src] { animation-duration: 500ms; }
  }
  html.intro-done .hero *, html.intro-done .hero *::after, html.intro-done .site-header, html.intro-done .phrase-ribbon { animation: none !important; }
  html.intro-done .portrait-curtain { display: none; }
  html.motion-rise .w { display: inline-block; opacity: 0; transform: translateY(.45em); }
  html.motion-rise .is-in .w { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  html.motion-rise :is(.section-number, .outline-number) { opacity: 0; translate: 0 24px; }
  html.motion-rise :is(.section-number, .outline-number).is-in { opacity: 1; translate: none; transition: opacity 600ms var(--ease), translate 600ms var(--ease); }
}
@keyframes mascara { from { transform: translateY(105%); } to { transform: none; } }
@keyframes cortina { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes zoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
