/* Rangel Tattoo · Gravura de Origem
   Paleta aprovada: _referencias/marca.md */
:root {
  --ink-0: #111111;
  --ink-1: #181918;
  --ink-2: #222322;
  --bone: #f1efe9;
  --bone-2: #e4e1d8;
  --green: #2e4a3a;
  --green-2: #263e30;
  --graphite: #777777;
  --silver: #bfc1c2;
  --on-bone-soft: #3d3d3b;

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-text: "Spectral", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-s: clamp(1rem, 2.5vw, 1.5rem);
  --space-m: clamp(2rem, 5vw, 3.5rem);
  --space-l: clamp(4rem, 10vw, 8rem);
  --max: 76rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-sticky: 20;
  --z-float: 30;
  --z-modal: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { line-height: 1.08; }
.caps {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 em, h2 em {
  font-family: var(--f-text);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  display: block;
}
h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
h2 em { font-size: 0.82em; color: var(--silver); }

:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: var(--z-modal);
  background: var(--bone); color: var(--ink-0); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  background: var(--bone); color: var(--ink-0);
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--bone); border-radius: 999px;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--bone); }
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn--claro { background: var(--bone); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.link-seta {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem;
  font-style: italic; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--bone) 40%, transparent);
}
.link-seta::after { content: "↓"; font-style: normal; transition: transform 0.35s var(--ease-out); }
.link-seta:hover::after { transform: translateY(3px); }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem var(--gutter);
  padding-top: max(0.65rem, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgb(17 17 17 / 0.75), rgb(17 17 17 / 0));
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.topo.is-solid { background: rgb(17 17 17 / 0.96); box-shadow: 0 1px 0 rgb(241 239 233 / 0.08); }
.marca { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.marca img { width: 2.6rem; height: 2.6rem; }
.marca span { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; white-space: nowrap; }
.menu { display: none; }
@media (min-width: 60rem) {
  .menu { display: flex; gap: 2rem; }
  .menu a {
    text-decoration: none; font-size: 0.95rem; color: var(--silver);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color 0.3s, background-size 0.4s var(--ease-out);
  }
  .menu a:hover { color: var(--bone); background-size: 100% 1px; }
}
@media (max-width: 27rem) { .marca span { display: none; } }

/* ---------- Hero ---------- */
/* A arte "Conheça Victor Rangel" é o gancho: aparece inteira, sem texto por cima */
.hero { position: relative; display: grid; isolation: isolate; }
.hero__foto { position: relative; }
.hero__foto img { width: 100%; aspect-ratio: 1080 / 1350; object-fit: cover; object-position: 50% 60%; }
.hero__foto::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%;
  background: linear-gradient(to top, var(--ink-0), rgb(17 17 17 / 0));
}
.hero__texto {
  padding: 1.5rem var(--gutter) clamp(3rem, 8vw, 4.5rem);
  max-width: 40rem;
}
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 4.25rem); }
.hero h1 .caps { display: block; }
.hero h1 em { font-size: 0.9em; margin-top: 0.1em; }
.hero__lead { margin-top: 1.25rem; max-width: 34ch; color: var(--bone-2); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.hero__nota { margin-top: 1.5rem; font-size: 0.9rem; color: var(--silver); font-style: italic; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
  .hero__foto { grid-column: 2; grid-row: 1; }
  .hero__foto img { height: 100%; aspect-ratio: auto; min-height: 100vh; }
  .hero__foto::after { inset: 0 auto 0 0; width: 12%; height: auto; background: linear-gradient(to right, var(--ink-0), rgb(17 17 17 / 0)); }
  .hero__texto { grid-column: 1; grid-row: 1; align-self: center; justify-self: end; padding: 8rem 3rem 5rem var(--gutter); }
}

/* entrada do hero */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .caps, .hero h1 em, .hero__lead, .acoes, .hero__nota {
    animation: subir 1s var(--ease-out) both;
  }
  .hero h1 .caps { animation-delay: 0.15s; }
  .hero h1 em { animation-delay: 0.3s; }
  .hero__lead { animation-delay: 0.45s; }
  .acoes { animation-delay: 0.6s; }
  .hero__nota { animation-delay: 0.75s; }
  .hero__foto img { animation: foco 1.8s var(--ease-out) both; }
}
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes foco { from { transform: scale(1.06); filter: blur(6px) brightness(0.7); } to { transform: none; filter: none; } }

/* ---------- Faixa de estilos ---------- */
.faixa {
  overflow: hidden; border-block: 1px solid rgb(241 239 233 / 0.12);
  padding: 1rem 0; background: var(--ink-0);
}
.faixa__trilho { display: flex; align-items: center; gap: 1.6rem; width: max-content; }
.faixa span {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.85rem; color: var(--silver); white-space: nowrap;
}
.faixa i { width: 0.45rem; height: 0.45rem; background: var(--green); outline: 1px solid var(--silver); transform: rotate(45deg); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .faixa__trilho { animation: correr 38s linear infinite; }
}
@keyframes correr { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.secao { padding: var(--space-l) var(--gutter); max-width: var(--max); margin-inline: auto; }
.cabeca { max-width: 40rem; margin-bottom: var(--space-m); }
.cabeca p { margin-top: 1rem; color: var(--silver); }

/* filete com losango, o divisor da marca */
.cabeca::after, .estudio__texto::after {
  content: ""; display: block; width: 7rem; height: 0.75rem; margin-top: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 12'%3E%3Cpath d='M0 6h46M66 6h46' stroke='%23777' stroke-width='1'/%3E%3Cpath d='M56 1l5 5-5 5-5-5z' fill='%23bfc1c2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Galeria ---------- */
.galeria { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 0.75rem; }
.galeria li { break-inside: avoid; margin-bottom: 0.75rem; }
@media (min-width: 48rem) { .galeria { columns: 3; column-gap: 1.25rem; } .galeria li { margin-bottom: 1.25rem; } }
.obra {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left;
}
.obra img {
  width: 100%; border-radius: 2px;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.obra span { display: block; padding: 0.55rem 0 0.2rem; font-size: 0.85rem; font-style: italic; color: var(--silver); }
.obra:hover img, .obra:focus-visible img { filter: none; transform: scale(1.015); }
.chamada-inline { margin-top: var(--space-m); font-size: 1.15rem; }
.chamada-inline a { font-style: italic; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .galeria li, .passos li, .estudio__fotos figure {
      animation: aparecer linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes aparecer { from { opacity: 0.15; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Estúdio ---------- */
.estudio { display: grid; gap: var(--space-m); padding-top: 0; }
.estudio__texto { max-width: 32rem; }
.estudio__texto p { margin-top: 1rem; color: var(--silver); }
.estudio__fotos {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.estudio__fotos::-webkit-scrollbar { display: none; }
.estudio__fotos figure { scroll-snap-align: start; }
.estudio__fotos img { width: 100%; aspect-ratio: 458 / 545; object-fit: cover; border-radius: 2px; }
@media (min-width: 60rem) {
  .estudio { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
  .estudio__fotos {
    overflow: visible; margin: 0; padding: 0;
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; gap: 1rem;
  }
  .f-a { grid-column: 1 / 4; grid-row: 1 / 3; }
  .f-b { grid-column: 4 / 7; grid-row: 1; transform: translateY(2.5rem); }
  .f-c { grid-column: 4 / 7; grid-row: 2; transform: translateY(2.5rem); }
  .f-b img, .f-c img { aspect-ratio: 4 / 3; }
  .f-a img { height: 100%; }
}

/* ---------- Sobre (faixa clara) ---------- */
.sobre { background: var(--bone); color: var(--ink-0); display: grid; }
.sobre h2 em { color: var(--on-bone-soft); }
.sobre__foto img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 22%; }
.sobre__texto { padding: var(--space-l) var(--gutter); max-width: 38rem; }
.sobre__nome { font-family: var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--green); margin-bottom: 1rem; font-weight: 600; }
.sobre__texto h2 { margin-bottom: 1.5rem; }
.sobre__texto > p { color: var(--on-bone-soft); max-width: 60ch; }
.lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.85rem; }
.lista li { display: grid; grid-template-columns: 0.55rem 1fr; gap: 0.9rem; align-items: baseline; }
.lista li::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--green); transform: rotate(45deg) translateY(-0.1rem); }
.assinatura { width: min(15rem, 60%); margin-top: 2.25rem; opacity: 0.9; }
@media (min-width: 60rem) {
  .sobre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .sobre__foto { height: 100%; }
  .sobre__foto img { height: 100%; aspect-ratio: auto; min-height: 40rem; }
  .sobre__texto { padding-left: clamp(2.5rem, 6vw, 6rem); }
}

/* ---------- Processo (faixa verde) ---------- */
.processo {
  background: var(--green); color: var(--bone);
  padding: var(--space-l) var(--gutter);
  display: grid; gap: var(--space-m);
}
.processo h2 em { color: var(--bone-2); }
.processo__topo { display: grid; gap: var(--space-m); }
.processo__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; border-radius: 2px; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; }
.passos li {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem;
  padding: 1.6rem 0; border-top: 1px solid rgb(241 239 233 / 0.22);
}
.passos li:last-child { border-bottom: 1px solid rgb(241 239 233 / 0.22); }
.num { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--silver); }
.passos h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; }
.passos p { color: var(--bone-2); }
@media (min-width: 60rem) {
  .processo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: start; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .processo__foto img { aspect-ratio: 4 / 5; }
  .passos { margin-top: 0.5rem; }
}

/* ---------- Dúvidas ---------- */
.faq { max-width: 48rem; border-top: 1px solid rgb(241 239 233 / 0.14); }
.faq details { border-bottom: 1px solid rgb(241 239 233 / 0.14); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 3.5rem; padding: 1.1rem 0; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 0.6rem; height: 0.6rem; flex: none;
  border: 1px solid var(--silver); transform: rotate(45deg);
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.faq details[open] summary::after { background: var(--silver); transform: rotate(225deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--silver); max-width: 60ch; }
.faq summary:hover { color: #fff; }

/* ---------- CTA final ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; padding: var(--space-l) var(--gutter) calc(var(--space-l) + 1rem);
  background: radial-gradient(ellipse at 50% 120%, rgb(46 74 58 / 0.55), transparent 65%), var(--ink-0);
  display: grid; justify-items: center;
}
.final__selo { position: absolute; z-index: -1; width: min(34rem, 110vw); top: 50%; left: 50%; translate: -50% -50%; opacity: 0.07; }
@media (prefers-reduced-motion: no-preference) {
  .final__selo { animation: girar 120s linear infinite; }
}
@keyframes girar { to { rotate: 360deg; } }
.final h2 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem); }
.final h2 .caps { display: block; }
.final p { margin: 1.25rem 0 2rem; color: var(--silver); max-width: 30ch; }

/* ---------- Rodapé ---------- */
.rodape {
  padding: var(--space-m) var(--gutter) calc(var(--space-m) + 5rem);
  border-top: 1px solid rgb(241 239 233 / 0.1);
  display: grid; gap: 1.75rem; font-size: 0.95rem; color: var(--silver);
}
.rodape__marca { display: flex; align-items: center; gap: 1rem; }
.rodape__marca img { width: 3.5rem; height: 3.5rem; }
.rodape__marca p { margin: 0; }
.rodape__nome { font-family: var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); }
.rodape__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rodape__links a { text-underline-offset: 0.25em; text-decoration-thickness: 1px; display: inline-block; padding: 0.3rem 0; }
.rodape__copy { font-size: 0.85rem; color: var(--graphite); }
@media (min-width: 60rem) {
  .rodape { grid-template-columns: 1fr auto auto; align-items: center; padding-bottom: var(--space-m); gap: 3rem; }
  .rodape__links { grid-auto-flow: column; gap: 2rem; }
}

/* ---------- Botão flutuante (celular) ---------- */
.flutuante {
  position: fixed; z-index: var(--z-float);
  left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.4rem; border-radius: 999px;
  background: var(--bone); color: var(--ink-0); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem;
  box-shadow: 0 6px 8px rgb(0 0 0 / 0.35);
  transform: translateY(160%); transition: transform 0.5s var(--ease-out);
}
.flutuante.is-on { transform: none; }
@media (min-width: 60rem) { .flutuante { display: none; } }
@media (prefers-reduced-motion: reduce) { .flutuante { transition: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: #0b0b0b; color: var(--bone);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto auto; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.8); }
.lightbox figure { display: grid; place-items: center; align-content: center; gap: 0.75rem; padding: 1rem; min-height: 0; }
.lightbox img { max-height: calc(100svh - 15rem); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-style: italic; color: var(--silver); text-align: center; }
.lightbox__quero { display: grid; justify-items: center; gap: 0.5rem; padding: 0.25rem 1rem 0; text-align: center; }
.lightbox__quero .btn { width: min(100%, 22rem); }
.lightbox__quero p { font-size: 0.85rem; color: var(--silver); font-style: italic; }
.lightbox__ctrl { display: flex; justify-content: center; gap: 0.75rem; padding: 0.75rem 1rem max(1rem, env(safe-area-inset-bottom)); }
.lightbox__ctrl button {
  min-width: 3.25rem; min-height: 3.25rem; padding: 0 1.1rem; border-radius: 999px;
  background: transparent; border: 1px solid rgb(241 239 233 / 0.35); cursor: pointer; font-size: 1.3rem;
}
.lightbox__ctrl [data-close] { font-family: var(--f-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox__ctrl button:hover { background: var(--bone); color: var(--ink-0); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: subir 0.45s var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Página de referência (ref/*.html) ---------- */
.ref__corpo { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 1.5rem; padding: 1.5rem var(--gutter) 2.5rem; text-align: center; }
.ref__corpo figure { display: grid; gap: 0.75rem; justify-items: center; }
.ref__corpo figure img { max-height: 70svh; width: auto; border-radius: 2px; }
.ref__corpo figcaption { font-style: italic; color: var(--silver); }
.ref__corpo .acoes { justify-content: center; margin-top: 0; }
.ref .marca span { display: inline; }
