/* ============================================================
   Álvaro Pereira Fotógrafo — Leiria
   Galeria clara / editorial · linguagem fotográfica subtil
   (folha de contacto, metadados mono, marcas de visor)
   ============================================================ */

:root {
  --paper:    #f4f5f6;
  --paper-2:  #eaecee;
  --frame:    #dde0e3;
  --ink:      #191b1e;
  --ink-2:    #33373c;
  --muted:    #636971;
  --faint:    #8b9199;
  --line:     rgba(20,22,26,.16);
  --line-soft:rgba(20,22,26,.08);
  --accent:   #191b1e;   /* = tinta: monocromático por defeito */
  --on-accent:#f4f5f6;   /* texto sobre o acento */
  --edge:     #dfe1e3;   /* bordo/espessura do livro */

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1440px;
  --pad: clamp(1.25rem, 4vw, 3.25rem);
  --sp-section: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --flip: cubic-bezier(.645, .045, .355, 1);
}

/* ===== dark mode (frio, a condizer com a base) ===== */
:root[data-theme="dark"] {
  --paper: #16181b; --paper-2: #1e2125; --frame: #2c3035;
  --ink: #eef0f2; --ink-2: #cfd3d8; --muted: #969ca4; --faint: #6b7079;
  --line: rgba(255,255,255,.15); --line-soft: rgba(255,255,255,.07);
  --accent: #eef0f2; --on-accent: #16181b;
  --edge: #313640;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.mono {
  font-family: var(--mono); font-weight: 400;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1.2rem; font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

/* ---------- placeholders de imagem (ponto de foco central) ---------- */
.ph {
  position: relative;
  background:
    linear-gradient(var(--line-soft), var(--line-soft)) center / 1px 20px no-repeat,
    linear-gradient(var(--line-soft), var(--line-soft)) center / 20px 1px no-repeat,
    linear-gradient(150deg, var(--paper-2) 0%, var(--frame) 100%);
}

/* marcas de visor (cantos) */
.vf { position: absolute; width: 15px; height: 15px; z-index: 3; pointer-events: none; }
.vf.tl { top: 8px; left: 8px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.vf.tr { top: 8px; right: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.vf.bl { bottom: 8px; left: 8px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.vf.br { bottom: 8px; right: 8px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line-soft);
}
/* barra de navegação à largura total do ecrã */
.site-header .wrap { max-width: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-tag { color: var(--muted); margin-top: .25rem; font-size: .62rem; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav a:not(.nav-cta):hover { color: var(--muted); }
.nav-cta {
  border: 1px solid var(--ink); padding: .5rem 1.1rem; border-radius: 999px;
  transition: all .3s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column;
  padding: .5rem var(--pad) 1.75rem;
  background: color-mix(in srgb, var(--paper) 97%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a { padding: .9rem 0; font-size: 1.35rem; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a:last-child { color: var(--muted); border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 118px; padding-bottom: var(--sp-section); }
.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); padding-bottom: 1.4rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.kicker { color: var(--muted); margin-bottom: 1.4rem; }
.hero-title {
  font-weight: 300; letter-spacing: -.03em; line-height: 1.03;
  font-size: clamp(2.15rem, 1rem + 6vw, 5.4rem);
}
.hero-sub-h {
  display: block; margin-top: 1.6rem;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 400;
  letter-spacing: -.01em; color: var(--ink-2); max-width: 24ch; line-height: 1.35;
}
.hero-lead { color: var(--muted); max-width: 42ch; margin-top: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.hero-frame { position: relative; }
.slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(150deg, var(--paper-2), var(--frame)); }
.slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1s var(--ease);
}
.slide.is-active { opacity: 1; animation: kenburns 6s var(--ease) forwards; }

.slide-dots { display: flex; gap: .5rem; margin-top: .9rem; }
.slide-dots button {
  width: 26px; height: 3px; padding: 0; border: 0; background: var(--line);
  transition: background .3s;
}
.slide-dots button.is-active { background: var(--ink); }

.hero-frame figcaption,
.about-media figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); margin-top: .85rem;
}
.hero-frame figcaption span { transition: opacity .3s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.7rem; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  border-radius: 2px; border: 1px solid var(--ink); transition: all .3s var(--ease);
}
.btn-solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-solid:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; margin-top: .4rem; }

.link-underline {
  position: relative; display: inline-block; font-weight: 500; font-size: .95rem;
  padding-bottom: 3px; margin-top: 1.6rem; color: var(--accent);
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--sp-section); border-top: 1px solid var(--line-soft); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.index { display: inline-block; color: var(--muted); margin-bottom: 1.3rem; }
.section-title {
  font-weight: 300; letter-spacing: -.025em; line-height: 1.05;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
}
.section-lead { color: var(--muted); max-width: 48ch; margin-top: 1.2rem; }

/* ---------- serviços (cartões 3 colunas) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.card {
  background: var(--paper); padding: clamp(1.6rem, 2.6vw, 2.2rem);
  display: flex; flex-direction: column; min-height: 200px;
  transition: background .35s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card .c-icon { margin-bottom: auto; color: var(--accent); line-height: 0; }
.card .c-icon svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-weight: 400; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); letter-spacing: -.02em; margin-top: 1.6rem; }
.card p { color: var(--muted); font-size: .92rem; margin-top: .5rem; line-height: 1.55; }

/* ---------- portefólio (livro / álbum) ---------- */
.portfolio-book { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.book {
  position: relative; width: min(92vw, 900px); aspect-ratio: 16 / 10;
  perspective: 2200px; perspective-origin: 50% 42%; outline: none;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  /* fore-edge (espessura de páginas) nos dois bordos + sombra ambiente */
  box-shadow:
    2px 0 0 var(--edge), 4px 0 0 var(--paper-2), 7px 0 3px rgba(0,0,0,.08),
    -2px 0 0 var(--edge), -4px 0 0 var(--paper-2), -7px 0 3px rgba(0,0,0,.08),
    0 36px 70px -34px rgba(0,0,0,.42);
}
.book.grabbing { cursor: grabbing; }
/* página de encosto (metade esquerda) + vinco central */
.book::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: var(--paper); border: 1px solid var(--frame);
  box-shadow: inset -18px 0 30px -24px rgba(28,27,23,.5);
}
.book::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 90px;
  transform: translateX(-50%); z-index: 40; pointer-events: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(28,27,23,.16) 42%,
    rgba(28,27,23,.24) 50%,
    rgba(28,27,23,.16) 58%,
    transparent);
}
.book-hint {
  position: absolute; top: -1.8rem; right: 0; color: var(--faint);
  opacity: 1; transition: opacity .4s;
}
.book.at-end .book-hint { opacity: 0; }
.book:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.paper {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1s var(--flip);
  will-change: transform; pointer-events: none;
}
.paper.flipped { transform: rotateY(-180deg); }
.paper.dragging { transition: none; }
.book-hint { pointer-events: none; }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); border: 1px solid var(--frame);
  padding: clamp(.6rem, 1.2vw, 1rem);
  display: flex; flex-direction: column; gap: .55rem;
}
.face.back { transform: rotateY(180deg); }
/* sombra de vinco estática (curvatura junto à lombada) */
.face::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(28,27,23,.12), transparent 15%);
}
.face.back::before { background: linear-gradient(270deg, rgba(28,27,23,.12), transparent 15%); }
/* sombreado dinâmico durante a rotação (escurece ao dobrar) */
.face::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: var(--shade, 0);
  background: linear-gradient(90deg, rgba(14,12,9,.62), rgba(14,12,9,0) 62%);
}
.face.back::after { background: linear-gradient(270deg, rgba(14,12,9,.62), rgba(14,12,9,0) 62%); }
.paper.flipping .face::after { animation: pageShade 1s var(--flip); }
@keyframes pageShade { 0%, 100% { opacity: 0; } 48% { opacity: .72; } }
.face .shot {
  flex: 1; width: 100%; min-height: 0; object-fit: cover;
  border: 1px solid var(--frame);
  background:
    linear-gradient(var(--line-soft),var(--line-soft)) center/1px 18px no-repeat,
    linear-gradient(var(--line-soft),var(--line-soft)) center/18px 1px no-repeat,
    linear-gradient(150deg, var(--paper-2), var(--frame));
  opacity: 0; transition: opacity .6s var(--ease);
}
.face .shot.loaded { opacity: 1; }
.face .pg { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .62rem; }
.face .pg span:last-child { color: var(--faint); }
.face-end { align-items: center; justify-content: center; text-align: center; }
.end-card { display: flex; flex-direction: column; gap: .8rem; color: var(--muted); }
.end-card a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* navegação por capítulos */
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 2.2rem; }
.chapter {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: .42rem .9rem; border-radius: 999px; font-size: .66rem;
  letter-spacing: .04em; text-transform: uppercase; transition: all .3s var(--ease);
}
.chapter:hover { color: var(--ink); border-color: var(--ink); }
.chapter.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.book-nav { display: flex; align-items: center; gap: 1.4rem; }
.book-btn {
  width: 46px; height: 46px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); border-radius: 50%; font-size: 1.1rem; line-height: 1;
  transition: all .3s var(--ease);
}
.book-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.book-btn:disabled { opacity: .3; cursor: default; }
.book-count { color: var(--muted); min-width: 5.5rem; text-align: center; }

.sheet-more { text-align: center; color: var(--muted); margin-top: 3rem; font-size: .95rem; }
.sheet-more a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.sheet-more a:hover { border-color: var(--ink); }

/* ---------- sobre ---------- */
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; }
.am-media { position: relative; }
.ph-about { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--frame); display: block; }
.about-text p { color: var(--muted); margin-top: 1.2rem; max-width: 54ch; }
.about-text .index { margin-bottom: 1rem; }
.about-text .section-title { margin-top: .2rem; }
.about-stats {
  list-style: none; padding: 1.8rem 0 0; margin: 2.2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 2.6rem; border-top: 1px solid var(--line-soft);
}
.about-stats li { display: flex; flex-direction: column; gap: .5rem; }
.about-stats strong { font-weight: 300; font-size: 2rem; letter-spacing: -.02em; }
.about-stats span { color: var(--faint); font-size: .64rem; }

/* ---------- clientes (nome + link para a galeria) ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.client {
  background: var(--paper); min-height: 132px; padding: 1.6rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; transition: background .35s var(--ease);
}
.client:hover { background: var(--paper-2); }
.client-name {
  font-weight: 500; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); letter-spacing: .01em;
  color: var(--ink-2); transition: color .3s var(--ease);
}
.client:hover .client-name { color: var(--accent); }
.client-desc { color: var(--muted); font-size: .6rem; text-transform: none; letter-spacing: .04em; }
.client-desc .arr { display: inline-block; color: var(--faint); transition: transform .3s var(--ease), color .3s var(--ease); }
.client:hover .client-desc .arr { transform: translate(2px, -2px); color: var(--accent); }
.clients-more {
  text-align: center; margin-top: 1.9rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
}
.clients-more a { color: var(--faint); transition: color .3s var(--ease); }
.clients-more a:hover { color: var(--accent); }
.clients-more::before, .clients-more::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--line); vertical-align: middle; margin: 0 .8rem;
}

/* ---------- contacto ---------- */
.section-contact { background: var(--paper-2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-areas: "intro form" "direct form";
  column-gap: clamp(2.5rem, 6vw, 5.5rem); row-gap: 0; align-items: start;
}
.contact-intro { grid-area: intro; }
.contact-form { grid-area: form; }
.contact-direct { grid-area: direct; }
.contact-intro .index { margin-bottom: 1rem; }
.contact-intro p { color: var(--muted); margin-top: 1.2rem; max-width: 40ch; }
.contact-direct { margin-top: 2.6rem; }
.contact-line { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 0; border-top: 1px solid var(--line-soft); transition: padding-left .3s var(--ease); }
.contact-line:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-line:hover { padding-left: .5rem; }
.cl-label { color: var(--faint); }
.cl-value { font-weight: 300; font-size: 1.5rem; letter-spacing: -.02em; }

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .55rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); padding: .6rem 0; font-family: var(--sans); font-size: 1.02rem;
  transition: border-color .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c1b17' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 1.2em; text-transform: none; letter-spacing: 0; }
.form-note.ok { color: var(--ink); }
.form-note.err { color: #b04a3a; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: .3rem; }
.footer-brand .brand-name { font-weight: 600; font-size: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: var(--muted); transition: color .3s; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { width: 100%; color: var(--faint); }
.footer-credit { color: var(--muted); border-bottom: 1px solid var(--line-soft); padding-bottom: 1px; transition: color .3s var(--ease), border-color .3s var(--ease); }
.footer-credit:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   FAB WhatsApp
   ============================================================ */
.fab-whatsapp {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px rgba(28,27,23,.5);
  transition: transform .3s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

/* ===== interruptor claro/escuro ===== */
.theme-toggle {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 95;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.4);
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.theme-toggle:hover { transform: scale(1.08); border-color: var(--accent); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 560px) { .theme-toggle { left: .9rem; bottom: .9rem; width: 48px; height: 48px; } }

/* ============================================================
   DINÂMICO (ticker, marquees, keyframes)
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ticker de categorias */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line-soft);
  padding-block: 1rem;
}
.ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  color: var(--ink-2); animation: marq 42s linear infinite; will-change: transform;
}
.ticker-track span { padding-inline: 1.1rem; }
.ticker-track i { color: var(--faint); font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ============================================================
   REVEAL (motion subtil)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .05s; }
.reveal:nth-child(3) { transition-delay: .1s; }
.reveal:nth-child(4) { transition-delay: .15s; }
.reveal:nth-child(5) { transition-delay: .2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { max-width: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 400px; }
  .contact-grid { display: flex; flex-direction: column; align-items: stretch; }
  .contact-form { width: 100%; }
  .contact-direct { text-align: center; }
  .contact-line { align-items: center; }
  .contact-line:hover { padding-left: 0; }
}
@media (max-width: 560px) {
  .meta-row span:last-child { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 94px; }
  .section-contact .contact-line .cl-value { font-size: 1.3rem; }
  .book { aspect-ratio: 6 / 5; }
  .book-hint { display: none; }
  .about-stats { flex-direction: column; gap: 1.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; transform: none !important; }
  .slide.is-active { animation: none !important; }
  .paper { transition: none !important; }
}
