/* ============================================
   InDuo — Arte que Conecta
   Paleta: verde-oliva profundo, off-white areia,
   terracota, dourado envelhecido (detalhe).
   ============================================ */

:root {
  --bg: oklch(20% 0.02 140);            /* verde-oliva quase preto */
  --bg-raise: oklch(24% 0.025 140);
  --ink: oklch(92% 0.015 85);           /* off-white areia */
  --ink-soft: oklch(78% 0.02 100);
  --ink-faint: oklch(62% 0.02 120);
  --gold: oklch(72% 0.09 85);           /* dourado envelhecido */
  --gold-deep: oklch(60% 0.09 75);
  --terra: oklch(62% 0.11 45);          /* terracota */
  --olive: oklch(52% 0.07 130);
  --line: oklch(38% 0.025 130);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", sans-serif;

  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(1rem, 2vw, 1.5rem);
  --space-3: clamp(2rem, 4vw, 3.5rem);
  --space-4: clamp(4rem, 8vw, 7rem);
  --space-5: clamp(6rem, 12vw, 11rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id], footer[id], header[id] { scroll-margin-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-deep); color: var(--bg); }

img, video { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.32em;
  text-transform: uppercase; text-decoration: none; color: var(--gold);
}
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); list-style: none; }
.nav__links a {
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--gold); }
.nav__wa {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--bg);
  background: var(--gold); padding: 0.55rem 1.1rem; border-radius: 2rem;
  transition: background 0.25s;
}
.nav__wa:hover { background: var(--terra); }
@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) clamp(1.2rem, 4vw, 3rem) var(--space-3);
  position: relative;
}
.hero__text { max-width: 34rem; }
.hero__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--space-2);
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__eyebrow::before {
  content: ""; width: 2.4rem; height: 1px; background: var(--gold-deep);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic; color: var(--gold);
}
.hero__sub {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 28rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-3); }
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.9rem; border-radius: 3rem; border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--gold); color: var(--bg); }
.btn--solid:hover { background: var(--terra); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__art canvas {
  width: min(560px, 78vw); aspect-ratio: 1;
}
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 3rem;
  background: linear-gradient(var(--gold-deep), transparent);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 6.5rem; }
  .hero__art { order: -1; }
  .hero__art canvas { width: min(340px, 72vw); }
  .hero__scroll { display: none; }
}

/* ---------- Divisor de pontos ---------- */
.dots-divider {
  display: flex; justify-content: center; align-items: center; gap: 0.55rem;
  padding: var(--space-4) 0 0;
}
.dots-divider span {
  border-radius: 50%; background: var(--gold-deep); opacity: 0.85;
}
.dots-divider span:nth-child(1), .dots-divider span:nth-child(7) { width: 3px; height: 3px; opacity: 0.4; }
.dots-divider span:nth-child(2), .dots-divider span:nth-child(6) { width: 5px; height: 5px; opacity: 0.55; }
.dots-divider span:nth-child(3), .dots-divider span:nth-child(5) { width: 8px; height: 8px; opacity: 0.75; }
.dots-divider span:nth-child(4) { width: 12px; height: 12px; background: var(--terra); }

/* ---------- Manifesto ---------- */
.manifesto {
  padding: var(--space-5) 0;
  text-align: center;
}
.manifesto blockquote {
  font-family: var(--serif); font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.3; max-width: 22ch; margin-inline: auto;
}
.manifesto blockquote em { font-style: italic; color: var(--terra); }
.manifesto figcaption {
  margin-top: var(--space-2); font-size: 0.8rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- Section chrome ---------- */
.section { padding: var(--space-5) 0 0; }
.section__head {
  display: flex; align-items: baseline; gap: 1.4rem;
  margin-bottom: var(--space-3);
}
.section__num {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-deep); font-size: 1rem; letter-spacing: 0.1em;
  white-space: nowrap;
}
.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.section__head::after {
  content: ""; flex: 1; height: 1px; background: var(--line); align-self: center;
}

/* ---------- História ---------- */
.historia { display: grid; grid-template-columns: 5fr 4fr; gap: var(--space-3); align-items: start; }
.historia__text p + p { margin-top: 1.2em; }
.historia__text .lead {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45; color: var(--ink);
}
.historia__text p { color: var(--ink-soft); }
.historia__names {
  margin-top: var(--space-3); display: flex; align-items: center; gap: 1.2rem;
}
.historia__names .amp {
  font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--terra);
}
.historia__names .name {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.06em;
}
.historia__names .name small {
  display: block; font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.3rem;
}
.historia__media { position: relative; }
.historia__media img {
  border-radius: 0.4rem; height: auto;
  box-shadow: 0 30px 60px -20px oklch(10% 0.02 140 / 0.7);
}
.historia__media > img:first-child {
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.historia__media img.offset {
  position: absolute; width: 52%; right: -6%; bottom: -14%;
  border: 6px solid var(--bg);
}
@media (max-width: 900px) {
  .historia { grid-template-columns: 1fr; }
  .historia__media { margin-top: var(--space-2); padding-bottom: 14%; }
}

/* ---------- Criações ---------- */
.galeria {
  columns: 3 280px; column-gap: 1.1rem;
}
.galeria figure {
  break-inside: avoid; margin-bottom: 1.1rem; position: relative;
  border-radius: 0.35rem; overflow: hidden; cursor: zoom-in;
}
.galeria img {
  width: 100%; height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}
.galeria figure:hover img { transform: scale(1.035); }
.galeria figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.85rem;
  background: linear-gradient(transparent, oklch(15% 0.02 140 / 0.85));
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity 0.35s;
}
.galeria figure:hover figcaption { opacity: 1; }

.linguagens {
  margin-top: var(--space-3);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}
.linguagens div {
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.linguagens h3 {
  font-size: 1.15rem; font-style: italic; color: var(--gold); margin-bottom: 0.4rem;
}
.linguagens p { font-size: 0.92rem; color: var(--ink-faint); }

/* Lightbox */
dialog.lightbox {
  border: none; background: oklch(12% 0.015 140 / 0.94); backdrop-filter: blur(10px);
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
}
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox img {
  max-height: 86vh; max-width: 92vw; width: auto; border-radius: 0.3rem;
  box-shadow: 0 40px 90px oklch(0% 0 0 / 0.6);
}
dialog.lightbox button {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: 1px solid var(--line); color: var(--ink);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
}

/* ---------- Processo ---------- */
.processo { display: grid; grid-template-columns: 4fr 5fr; gap: var(--space-3); align-items: center; }
.processo__video video {
  border-radius: 0.4rem; width: 100%;
  box-shadow: 0 30px 60px -20px oklch(10% 0.02 140 / 0.7);
}
.processo__steps { list-style: none; counter-reset: passo; }
.processo__steps li {
  counter-increment: passo;
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.processo__steps li::before {
  content: counter(passo, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 1.1rem;
}
.processo__steps h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.processo__steps p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 900px) {
  .processo { grid-template-columns: 1fr; }
}

/* ---------- Filosofia ---------- */
.filosofia {
  background: var(--bg-raise);
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  border-block: 1px solid var(--line);
}
.filosofia__intro {
  max-width: 46rem; color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.filosofia__intro strong { color: var(--gold); font-weight: 600; }
.pares {
  margin-top: var(--space-3);
  display: grid; gap: 0.4rem;
}
.par {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}
.par span:first-child { text-align: right; color: var(--ink); }
.par span:last-child { text-align: left; font-style: italic; color: var(--gold); }
.par .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--terra);
}
.filosofia__dna {
  margin-top: var(--space-4);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 1rem;
}
.filosofia__dna span {
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; align-items: center; gap: 1rem;
}
.filosofia__dna span:not(:last-child)::after {
  content: "·"; color: var(--gold-deep);
}

/* ---------- Personalizações ---------- */
.encomenda {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: center;
}
.encomenda__text h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: var(--space-2);
}
.encomenda__text h3 em { font-style: italic; color: var(--terra); }
.encomenda__text p { color: var(--ink-soft); max-width: 30rem; }
.encomenda__text p + p { margin-top: 1em; }
.encomenda__media img { border-radius: 0.4rem; }
@media (max-width: 900px) {
  .encomenda { grid-template-columns: 1fr; }
}

/* ---------- Contato / Footer ---------- */
.contato {
  margin-top: var(--space-5);
  padding: var(--space-4) 0 var(--space-3);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contato h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}
.contato h2 em { font-style: italic; color: var(--gold); }
.contato__sub { color: var(--ink-soft); margin-top: 1rem; }
.contato .btn { margin-top: var(--space-3); }
.contato__links {
  margin-top: var(--space-3);
  display: flex; justify-content: center; gap: 2rem;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.contato__links a { color: var(--ink-faint); text-decoration: none; transition: color 0.25s; }
.contato__links a:hover { color: var(--gold); }
.footer {
  padding: var(--space-2) 0 2.2rem;
  text-align: center; font-size: 0.75rem; letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.footer .mark { font-family: var(--serif); letter-spacing: 0.3em; color: var(--gold-deep); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
