/* =========================================================================
   Micaela Nauane — link na bio
   Base estrutural: réplica aprovada na Fase 1.
   Direção visual: preto profundo + off-white quente. UI monocromática —
   nenhum acento cromático em texto, botão ou estado. O dourado da Mind
   (#B08A5A) aparece só nos arcos elípticos de fundo. Calor vem da foto.
   Tipografia Cormorant Garamond + Inter, herdada do IDV.
   ========================================================================= */

:root {
  /* Monocromático. Preto e off-white quente, sem acento cromático.
     Todo o calor da página vem da fotografia — madeira e luz — nunca da UI. */
  --ink: #060505;            /* preto profundo — fundo */
  --ink-deep: #0B0A09;       /* superfície elevada */
  --surface: #121110;
  --paper: #F2EDE7;          /* branco levemente quente — texto */
  --muted: rgba(242, 237, 231, 0.58);
  --faint: rgba(242, 237, 231, 0.26);
  --line: rgba(242, 237, 231, 0.14);
  --grey: #A29A92;           /* texto secundário */
  --ghost: #5C554F;          /* texto apagado */
  --bronze: #5C554F;         /* numeração e divisores (era bronze) */
  --accent: #F2EDE7;         /* acento = o próprio off-white */

  /* dourado da Mind — só nos arcos decorativos de fundo, nunca em texto,
     botão ou estado de interação. A UI continua monocromática. */
  --gold: #B08A5A;
  --gold-arc: rgba(176, 138, 90, 0.42);
  --gold-arc-soft: rgba(176, 138, 90, 0.28);

  --container: 1180px;
  --card-radius: 20px;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;

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

  --curva: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 148 C 300 36 900 188 1200 66' fill='none' stroke='%23F2EDE7' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E");
  --organica: radial-gradient(ellipse 58% 44% at 88% 42%, rgba(242, 237, 231, 0.03), transparent 68%);
}

/* reveal no scroll — IntersectionObserver aplica .is-in */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* título que acende palavra a palavra */
.reveal-words .w { color: var(--ghost); transition: color 0.35s linear; }
.reveal-words .w.on { color: var(--paper); }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  background: var(--organica), var(--ink);
}

.page-width {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.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;
}

/* ---------------------------------------------------------------- HERO */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 940px);
  padding-bottom: clamp(48px, 11vh, 118px);
  background: var(--ink-deep);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* nome em Inter caps espaçado — contraponto seco ao serif da linha grande */
.hero-title span {
  display: block;
  margin-bottom: clamp(14px, 2vh, 22px);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(0.82rem, 1.9vw, 1.02rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(242, 237, 231, 0.7);
}

.hero-title strong {
  display: block;
  font-weight: 500;
  font-size: clamp(2.7rem, 8.4vw, 5.2rem);
}

.hero-sub {
  max-width: 46ch;
  margin: clamp(18px, 2.6vh, 26px) auto 0;
  font-size: clamp(0.86rem, 1.5vw, 0.98rem);
  line-height: 1.62;
  color: rgba(242, 237, 231, 0.72);
}

.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  animation: hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* a foto de estúdio é clara na base (luminância ~155), então o
     escurecido precisa ser bem mais forte que o da foto anterior */
  background: linear-gradient(to bottom,
    rgba(6, 5, 5, 0.30) 0%,
    rgba(6, 5, 5, 0) 24%,
    rgba(6, 5, 5, 0.42) 50%,
    rgba(6, 5, 5, 0.86) 76%,
    var(--ink) 97%);
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.025); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ------------------------------------------------------------- ATALHOS */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-block: 28px 22px;
}

.quick-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border-radius: var(--card-radius);
  background: var(--ink-deep);
  outline: 1px solid var(--line);
}

.quick-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.quick-card:hover img,
.quick-card:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.1);
}

.quick-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --------------------------------------------------------------- SOBRE */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 710px;
  margin-top: 48px;
  background: var(--organica), var(--ink-deep);
}

.about::after,
.services-section::after,
.footer::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  background: var(--curva) no-repeat center / 100% 100%;
}

.about::after { bottom: 40px; z-index: 1; }
.services-section::after, .footer::after { z-index: 1; }

/* ---------------------------------------------------- ARCOS DECORATIVOS
   Anéis elípticos em dourado, girados, muito abertos. Vazam da seção de
   propósito — o overflow: clip do .site-shell corta. Sempre atrás do
   conteúdo (z-index 0) e sem captura de ponteiro. */
.about::before,
.manifesto::before,
.services-section::before,
.testimonials::before,
.footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-style: solid;
  border-color: var(--gold-arc);
  border-radius: 50%;
}

.about::before {
  width: 900px; height: 190px;
  right: -290px; top: 130px;
  border-width: 3px;
  transform: rotate(-12deg);
}

.manifesto::before {
  width: 1100px; height: 200px;
  left: -320px; top: 26%;
  border-width: 5px;
  border-color: var(--gold-arc-soft);
  transform: rotate(-8deg);
}

.services-section::before {
  width: 1250px; height: 210px;
  right: -500px; top: 480px;
  border-width: 8px;
  transform: rotate(6deg);
}

.testimonials::before {
  width: 1200px; height: 160px;
  left: -460px; top: 220px;
  border-width: 11px;
  border-color: var(--gold-arc-soft);
}

.footer::before {
  width: 1450px; height: 220px;
  left: -180px; top: 180px;
  border-width: 8px;
  transform: rotate(3deg);
}

.about-photo {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  z-index: 1;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 60%, var(--ink-deep) 100%),
    linear-gradient(to top, var(--ink-deep), transparent 28%);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px clamp(36px, 6vw, 92px) 54px 38px;
}

.eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 16, 0.8);
  color: var(--grey);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.eyebrow i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.about h2,
.services-heading h2,
.testimonials h2,
.footer-copy h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about h2 {
  margin: 26px 0 20px;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.0;
}

.about h2 span,
.services-heading h2 span { color: var(--grey); font-style: italic; }

.about-copy > p {
  max-width: 570px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.about-copy ul {
  display: grid;
  gap: 16px;
  margin: 46px 0 30px;
  padding: 0;
  list-style: none;
  color: rgba(242, 237, 231, 0.78);
  font-size: 14px;
}

.about-copy li { display: flex; align-items: center; gap: 12px; }

.about-copy li svg {
  width: 19px; height: 19px;
  padding: 4px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.stars { display: flex; gap: 4px; margin-bottom: 46px; }
.stars svg { width: 18px; color: var(--accent); }

.line-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

.line-link svg {
  width: 34px; height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}

.line-link:hover svg { background: var(--accent); }

/* ------------------------------------------------------------ MANIFESTO
   Substitui o orbe com contador da referência. Sem círculo, sem brilho:
   só tipografia editorial acendendo palavra a palavra. */
.manifesto {
  position: relative;
  display: grid;
  place-items: center;
  gap: clamp(28px, 4vw, 44px);
  padding: clamp(96px, 15vw, 200px) 0;
  text-align: center;
}

.manifesto-frase {
  position: relative;
  z-index: 2;
  max-width: 17ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.manifesto-nota {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.manifesto-nota .stars { display: flex; gap: 3px; margin: 0; }
.manifesto-nota .stars svg { width: 13px; height: 13px; color: var(--gold); }

/* ---------------------------------------------------------- O QUE FAÇO */
.services-section { position: relative; padding: 110px 0 90px; }
.services-section::after { top: 300px; opacity: 0.7; }

.services-heading {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 72px;
}

.services-heading h2 {
  margin: 24px 0 20px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.0;
}

.services-heading > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.services-list {
  position: relative;
  z-index: 3;
  width: min(900px, 100%);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.service-item { border-bottom: 1px solid var(--line); }

.service-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 46px;
  align-items: baseline;
  width: 100%;
  min-height: 112px;
  padding: 24px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.service-number {
  align-self: start;
  padding-top: 18px;
  color: var(--bronze);
  font-family: var(--body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.service-trigger strong {
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  transition: color 0.35s ease;
}

.service-trigger small {
  margin-left: 10px;
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-plus {
  align-self: center;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--grey);
  font-size: 24px;
  font-weight: 200;
  transition: transform 0.45s ease, color 0.35s ease, border-color 0.35s ease;
}

.service-trigger:hover strong,
.service-item.is-open .service-trigger strong { color: var(--accent); }

.service-item.is-open .service-plus {
  transform: rotate(45deg);
  color: var(--accent);
  border-color: rgba(242, 237, 231, 0.55);
}

.service-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 42px;
  padding: 0 54px 38px 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-panel p, .service-panel ul { margin: 0; }
.service-panel[hidden] { display: none; }
.service-panel ul { display: grid; gap: 11px; padding: 0; list-style: none; }

/* ------------------------------------------------------------ PROJETOS */
.projects-section { padding-top: 70px; }

.project-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink-deep);
}

.project-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.6s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image.is-active { opacity: 1; transform: scale(1); }

.project-controls {
  position: absolute;
  z-index: 4;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 5, 5, 0.5);
  backdrop-filter: blur(10px);
}

.project-controls button {
  display: grid;
  place-items: center;
  width: 52px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.project-controls button:hover,
.project-controls button:focus-visible { color: var(--accent); }

.project-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-controls svg { width: 34px; stroke-width: 1; }

.project-controls span {
  min-width: 62px;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ---------------------------------------------------------- AVALIAÇÕES */
.testimonials {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
  min-height: 700px;
}

.testimonials-intro { position: relative; z-index: 2; align-self: center; }

.testimonials h2 {
  margin: 24px 0 30px;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.05;
}

.testimonials-intro > p {
  max-width: 530px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.testimonials-intro .line-link { max-width: 320px; margin-top: 22px; }

.testimonial-window {
  position: relative;
  z-index: 2;
  height: 700px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.testimonial-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: testimonial-up 24s linear infinite;
  will-change: transform;
}

.testimonial-cycle { display: grid; flex: none; gap: 16px; padding-bottom: 16px; }

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(472px, 100%);
  min-height: 225px;
  margin-left: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242, 237, 231, 0.05), rgba(242, 237, 231, 0.018));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-card > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.testimonial-card footer { display: flex; align-items: center; gap: 12px; }

/* avatar de monograma — não usamos a foto de perfil do Google */
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(242, 237, 231, 0.22);
  border-radius: 50%;
  background: rgba(242, 237, 231, 0.06);
  color: var(--paper);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.testimonial-card footer > span:last-child { display: grid; gap: 3px; }
.testimonial-card strong { font-size: 13px; font-weight: 500; }
.testimonial-card small { color: var(--grey); font-size: 10px; letter-spacing: 0.06em; }

@keyframes testimonial-up { to { transform: translateY(-50%); } }

/* --------------------------------------------------------------- MOSAICO
   A imagem já vem inclinada e recortada. O CSS só faz o enquadramento:
   apaga as bordas, escurece as pontas e liga um zoom leve ao scroll. */
.mosaic {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 28px) 0 clamp(48px, 7vw, 92px);
  overflow: hidden;
}

.mosaic-img {
  width: min(1780px, 126%);
  max-width: none;
  height: auto;
  transform: scale(var(--z, 1));
  transform-origin: 50% 48%;
  transition: transform 0.1s linear;
  /* esfumado só na vertical: a grade sangra nas laterais e dissolve
     em cima e embaixo, sem escurecer o miolo onde estão os projetos */
  mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 86%, transparent 100%);
}

/* vinheta por cima: escurece as pontas e acende o centro */
/* reforço do esfumado: fecha em preto no topo e na base, e puxa
   levemente as laterais. O centro fica limpo. */
.mosaic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--ink) 0%, transparent 16%, transparent 78%, var(--ink) 99%),
    linear-gradient(to right, rgba(6,5,5,.75) 0%, transparent 12%, transparent 88%, rgba(6,5,5,.75) 100%);
}

/* ----------------------------------------------------------- MONOGRAMA */
.monogram {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(14px, 3vw, 40px);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: clamp(58px, 6.4vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* bola escura: o dourado do símbolo lava sobre prateado claro */
  background: radial-gradient(circle at 34% 26%, #3A342E, #1A1714 55%, #0A0908);
  border: 1px solid rgba(242, 237, 231, 0.16);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(242, 237, 231, 0.12);
}

.monogram img {
  width: 58%;
  height: auto;
}

/* -------------------------------------------------------------- RODAPÉ */
.footer {
  position: relative;
  padding: 100px 0 30px;
  background: radial-gradient(ellipse at 50% 5%, rgba(242, 237, 231, 0.035), transparent 30%), var(--ink);
}

.footer::after { top: 120px; opacity: 0.55; }

.footer-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-copy h2 { margin: 0; font-size: clamp(40px, 4.4vw, 66px); }

.footer-copy > p {
  max-width: 640px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(242, 237, 231, 0.35);
  border-radius: 9px;
  background: rgba(18, 17, 16, 0.7);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.footer-button:hover,
.footer-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--paper);
  background: rgba(242, 237, 231, 0.08);
}

.social-links { display: flex; align-items: center; gap: 0; margin-top: 36px; }

.social-links a {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px; height: 44px;
  color: rgba(242, 237, 231, 0.78);
}

.social-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: 0;
  width: 1px; height: 34px;
  transform: translateY(-50%);
  background: var(--line);
}

.social-links a:hover { color: var(--accent); }
.social-links svg { width: 17px; height: 17px; }

.footer-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 88px;
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer-bottom > span:last-child { text-align: right; }

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -15px;
  padding-block: 15px;
  color: rgba(242, 237, 231, 0.72);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--accent); }

/* --------------------------------------------------------------- FOCO */
.line-link:focus-visible,
.service-trigger:focus-visible,
.social-links a:focus-visible,
.footer-bottom a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

/* -------------------------------------------------------- RESPONSIVO */
@media (max-width: 900px) {
  .hero { min-height: 86svh; align-items: end; padding-bottom: clamp(40px, 7vh, 72px); }
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: 600px; }
  .about-photo::after { background: linear-gradient(to top, var(--ink-deep), transparent 38%); }
  .about-copy { padding: 44px 30px 60px; }
  .about::after, .services-section::after, .footer::after { opacity: 0.4; }
  .about::before, .manifesto::before, .services-section::before,
  .testimonials::before, .footer::before { opacity: 0.6; border-width: 3px; }
  .service-trigger { grid-template-columns: 35px minmax(0, 1fr) 40px; }
  .service-trigger small { display: none; }
  .service-panel { grid-template-columns: 1fr 1fr; }
  .service-panel p { grid-column: 1 / -1; }
  .testimonials { grid-template-columns: 1fr; gap: 45px; padding-block: 90px; }
  .testimonial-window { height: 560px; }
  .testimonial-card { width: 100%; }
  .testimonials-intro .line-link { max-width: 100%; }
  .project-stage { min-height: 480px; }
  .mosaic { padding: 0 0 clamp(40px, 11vw, 68px); }
  .mosaic-img { width: 178%; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .footer-bottom > span:last-child { text-align: center; }
}

@media (max-width: 640px) {
  .page-width { width: min(100% - 24px, var(--container)); }
  .hero { min-height: 84svh; padding-bottom: clamp(32px, 6vh, 56px); }
  .hero-title strong { font-size: clamp(2.5rem, 12.5vw, 3.6rem); }
  .hero-title span { letter-spacing: 0.2em; }
  /* com o texto na base, o escurecido de baixo precisa subir um pouco */
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(6, 5, 5, 0.28) 0%,
      rgba(6, 5, 5, 0) 22%,
      rgba(6, 5, 5, 0.50) 46%,
      rgba(6, 5, 5, 0.90) 72%,
      var(--ink) 96%);
  }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; }
  .quick-card { border-radius: 14px; }
  .about { margin-top: 30px; }
  .about-photo { min-height: 440px; }
  .about h2 { font-size: 44px; }
  .about-copy { padding-inline: 18px; }
  .services-section { padding-top: 80px; }
  .services-heading h2 { font-size: 42px; }
  .service-trigger { grid-template-columns: 26px minmax(0, 1fr) 38px; min-height: 82px; }
  .service-number { padding-top: 12px; }
  .service-trigger strong { font-size: clamp(30px, 8.4vw, 42px); }
  .service-plus { width: 34px; height: 34px; font-size: 20px; }
  .service-panel { grid-template-columns: 1fr; gap: 22px; padding: 0 28px 28px 26px; }
  .projects-section { padding-top: 30px; }
  .project-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .project-controls { bottom: 10px; gap: 2px; transform: translateX(-50%) scale(0.78); transform-origin: bottom center; }
  .testimonials { padding-block: 90px; }
  .testimonials h2 { font-size: 42px; }
  .testimonial-card { padding: 22px; }
  .footer { padding-top: 84px; }
  .footer-copy h2 { font-size: 38px; }
  .footer-bottom { margin-top: 70px; }
}

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


/* ------------------------------------------------- TEMPLATES INTERNOS
   page.php, single.php, archive.php e 404.php. A home nao usa nada disto. */
.pagina { padding: clamp(120px, 16vh, 200px) 0 clamp(80px, 12vh, 140px); }
.pagina-titulo {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.pagina-titulo a { color: inherit; text-decoration: none; }
.pagina-titulo a:hover { color: var(--gold); }
.pagina-conteudo { max-width: 68ch; color: var(--muted); font-size: 1rem; line-height: 1.72; }
.pagina-conteudo a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.pagina-item { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.pagina-item:last-of-type { border-bottom: 0; }
