/* ============================================================
   Tatá Pereira | Design & IA — folha de estilos
   Paleta: preto/grafite, branco quente, âmbar, lilás, bordô, navy
   ============================================================ */

/* ---------- fontes auto-hospedadas ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #050506;
  --graphite: #131317;
  --graphite-2: #1b1b21;
  --line: rgba(245, 239, 230, 0.12);
  --warm-white: #f5efe6;
  --warm-dim: rgba(245, 239, 230, 0.78);   /* +contraste p/ leitura */
  --warm-faint: rgba(245, 239, 230, 0.55);  /* metadados / notas */
  --amber: #e0a458;
  --amber-soft: rgba(224, 164, 88, 0.14);
  --lilac: #b9a3e3;
  --bordeaux: #8a3049;
  --navy: #2e4a78;
  --matrix: #58e07c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);

  /* escala de espaçamento (base 8px) — todo ritmo deriva daqui */
  --s-1: 0.5rem;    /* 8  */
  --s-2: 1rem;      /* 16 */
  --s-3: 1.5rem;    /* 24 */
  --s-4: 2.5rem;    /* 40 */
  --s-5: 4rem;      /* 64 */
  --s-6: 6rem;      /* 96 */
  --s-7: 10rem;     /* 160 */
  --section-y: clamp(var(--s-5), 12vh, var(--s-7));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--warm-white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

em { font-style: italic; color: var(--amber); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; width: min(420px, 80vw); }
.loader-brand {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}
.loader-brand span { color: var(--amber); font-size: 1rem; }
.loader-bar {
  height: 1px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--bordeaux), var(--amber), var(--lilac));
  transition: width 0.25s ease;
}
.loader-hint {
  margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--warm-dim);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.82), transparent);
  backdrop-filter: blur(2px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.nav.is-hidden { transform: translateY(-110%); opacity: 0; }
.nav-brand {
  font-family: var(--serif); font-size: 1.05rem; text-decoration: none; letter-spacing: 0.02em;
}
.nav-brand span { color: var(--amber); font-size: 0.85rem; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: rgba(245, 239, 230, 0.82); transition: color 0.3s;
}
.nav-links a:hover { color: var(--warm-white); }
.nav-cta {
  padding: 0.55em 1.2em; border: 1px solid var(--amber);
  border-radius: 100px; color: var(--amber) !important;
}
.nav-cta:hover { background: var(--amber-soft); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-pin {
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--bg);
}
#heroCanvas, #matrixCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
/* desloca o objeto 3D p/ direita e p/ cima — tira o ruído de trás do texto */
#heroCanvas { transform: translate(2.5%, -3.5%); }
#matrixCanvas { opacity: 0; mix-blend-mode: screen; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(5, 5, 6, 0.55) 100%),
    linear-gradient(to top, rgba(5, 5, 6, 0.65), transparent 30%);
  pointer-events: none;
}

.hero-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad) 7vh;   /* padding-bottom sobe o bloco */
  opacity: 0; pointer-events: none;
}
/* nome como assinatura acima do herói */
.hero-name {
  display: block;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  letter-spacing: 0.02em; color: var(--warm-white);
  margin-bottom: var(--s-2); opacity: 0.9;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3.1rem, 10vw, 7rem);   /* Design & IA vira o herói */
  line-height: 0.98; letter-spacing: -0.015em;
}
.hero-title em { font-weight: 400; }
.hero-sub {
  margin-top: var(--s-4); max-width: 42rem;
  color: var(--warm-dim); font-size: clamp(1rem, 1.6vw, 1.12rem);
}
/* categorias — antes pareciam marca-d'água; agora legíveis */
.hero-cats {
  margin-top: var(--s-3);
  font-size: clamp(0.72rem, 1.1vw, 0.82rem); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 239, 230, 0.72);
}
.hero-cats b { color: var(--amber); font-weight: 500; }
.hero-scrollhint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(245, 239, 230, 0.7);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
}
.hero-scrollhint span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.stage-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 4.2rem); line-height: 1.1;
}
.stage-sub {
  margin-top: 1.2rem; max-width: 38rem; color: var(--warm-dim);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}
.stage-3 .stage-title em { color: var(--matrix); }
.stage-4 .stage-title {
  font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 600;
}

/* espaçador que dá o comprimento da rolagem da hero */
/* (criado via JS pelo ScrollTrigger pin) */

/* ---------- seções gerais ---------- */
.section { position: relative; padding: var(--section-y) var(--pad); }
.section-head { max-width: 60rem; margin: 0 auto var(--s-6); text-align: center; }
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12;
}
.section-lede {
  margin: 1.4rem auto 0; max-width: 40rem; color: var(--warm-dim);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
}

/* elementos revelados por rolagem */
.rv { opacity: 0; transform: translateY(46px); }

/* ---------- portfólio ---------- */
.portfolio {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 74, 120, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(138, 48, 73, 0.1), transparent 60%),
    var(--bg);
}
.port-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; max-width: 72rem; margin: 0 auto var(--s-6);
}
.port-feature-fig { border-radius: 18px; overflow: hidden; position: relative; }
.port-feature-fig img { width: 100%; height: 100%; object-fit: cover; }
.diaphragm { clip-path: circle(0% at 50% 50%); }
.port-feature-txt h3 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600; margin-bottom: 1rem;
}
.port-feature-txt p { color: var(--warm-dim); }
.port-tags { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.port-tags span {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.45em 1em; border: 1px solid var(--line); border-radius: 100px;
  color: var(--lilac);
}

/* mosaico editorial: 6 colunas, larguras/proporções alternadas (grande–pequena / meia–meia / pequena–grande) */
.port-grid {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1.2rem, 2.6vw, 2.2rem);
}
.port-card { position: relative; }
.port-card:nth-child(1) { grid-column: span 4; }
.port-card:nth-child(2) { grid-column: span 2; }
.port-card:nth-child(3) { grid-column: span 3; }
.port-card:nth-child(4) { grid-column: span 3; }
.port-card:nth-child(5) { grid-column: span 2; }
.port-card:nth-child(6) { grid-column: span 4; }
.port-card-img {
  border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.2;
  background: var(--graphite);
  box-shadow: 0 0 0 rgba(224, 164, 88, 0);
  transition: box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
/* cards largos = panorâmicos; estreitos = retrato — cria ritmo de revista */
.port-card:nth-child(1) .port-card-img,
.port-card:nth-child(6) .port-card-img { aspect-ratio: 16 / 9; }
.port-card:nth-child(2) .port-card-img,
.port-card:nth-child(5) .port-card-img { aspect-ratio: 3 / 4; }
.port-card-img img {
  width: 100%; height: 106%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}
.port-card:hover .port-card-img { box-shadow: 0 18px 60px -20px rgba(224, 164, 88, 0.32); }
.port-card:hover .port-card-img img { transform: scale(1.02); }
.port-card figcaption { margin-top: var(--s-2); display: flex; flex-direction: column; gap: 0.15rem; }
.port-card figcaption strong {
  font-weight: 500; font-size: 0.98rem; color: var(--warm-dim);
  transition: color 0.4s ease;
}
.port-card:hover figcaption strong { color: var(--warm-white); }
.port-card figcaption span { color: var(--warm-faint); font-size: 0.8rem; letter-spacing: 0.04em; }

.ai-note {
  margin: var(--s-5) auto 0; text-align: center; max-width: 40rem;
  color: var(--warm-faint); font-size: 0.78rem; letter-spacing: 0.06em;
}
.ai-note-small {
  position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245, 239, 230, 0.55); background: rgba(5, 5, 6, 0.55);
  padding: 0.35em 0.9em; border-radius: 100px; backdrop-filter: blur(4px);
}

/* ---------- histórias de amor ---------- */
.stories { background: linear-gradient(to bottom, var(--bg), var(--graphite) 140%); }
.stories-grid {
  max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem);
}
.story-card {
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, rgba(245, 239, 230, 0.03), transparent 55%);
  position: relative; overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.story-card:hover { border-color: rgba(224, 164, 88, 0.35); transform: translateY(-4px); }
.story-num {
  font-family: var(--serif); font-style: italic; font-size: 2.2rem;
  color: var(--bordeaux); display: block; margin-bottom: 1rem;
}
.story-card:nth-child(2) .story-num { color: var(--amber); }
.story-card:nth-child(3) .story-num { color: var(--lilac); }
.story-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.7rem;
}
.story-card p { color: var(--warm-dim); font-size: 0.92rem; }

/* ---------- sobre ---------- */
.about-grid {
  max-width: 70rem; margin: 0 auto;
  display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: center;
}
.about-fig { border-radius: 20px; overflow: hidden; position: relative; max-width: 24rem; }
.about-txt .section-title { margin-bottom: var(--s-4); }
.about-txt p { color: var(--warm-dim); margin-bottom: var(--s-2); max-width: 36rem; }
.about-txt strong { color: var(--warm-white); font-weight: 500; }
/* etiquetas editoriais (não botões): filete inferior + versalete */
.about-badges {
  list-style: none; margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
}
.about-badges li {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35em 0.1em 0.3em; border: 0; border-bottom: 1px solid var(--line);
  color: var(--warm-dim);
}

/* ---------- processo ---------- */
.process { background: linear-gradient(to bottom, var(--graphite) -40%, var(--bg) 40%); }
.process-steps {
  list-style: none; max-width: 62rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem);
  counter-reset: none;
}
.process-step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.step-num {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--amber);
  display: block; margin-bottom: 0.8rem;
}
.process-step h3 { font-weight: 500; font-size: 1.02rem; margin-bottom: 0.6rem; }
.process-step p { color: var(--warm-dim); font-size: 0.86rem; }

/* ---------- depoimentos ---------- */
.testi-grid {
  max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem);
}
.testi-card {
  border: 1px dashed rgba(245, 239, 230, 0.18); border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.55;
}
.testi-card p { color: var(--warm-dim); font-style: italic; }
.testi-card footer {
  margin-top: 1.4rem; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.08em; color: rgba(245, 239, 230, 0.45);
}
.is-placeholder { opacity: 0.75; }

/* ---------- certificados ---------- */
.certs-grid {
  max-width: 62rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem);
}
.cert-card {
  border: 1px dashed rgba(245, 239, 230, 0.18); border-radius: 14px;
  aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem; text-align: center;
  padding: 1rem;
}
.cert-card span { color: var(--amber); font-size: 1.2rem; }
.cert-card p { color: rgba(245, 239, 230, 0.45); font-size: 0.78rem; letter-spacing: 0.06em; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(900px 480px at 50% 120%, rgba(224, 164, 88, 0.14), transparent 65%),
    radial-gradient(700px 400px at 15% -10%, rgba(185, 163, 227, 0.08), transparent 60%),
    var(--bg);
  text-align: center;
}
.cta-inner { max-width: 56rem; margin: 0 auto; }
.cta-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1.12;
}
.cta-sub { margin: var(--s-3) auto var(--s-4); color: var(--warm-dim); max-width: 40rem; font-size: clamp(0.98rem, 1.4vw, 1.08rem); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  color: #0b0b0c; background: linear-gradient(120deg, var(--amber), #f0c184);
  padding: 1.05em 2.2em; border-radius: 100px;
  box-shadow: 0 10px 40px rgba(224, 164, 88, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(224, 164, 88, 0.35); }
.cta-alt { margin-top: 1.6rem; font-size: 0.85rem; color: var(--warm-dim); }
.cta-alt a { color: var(--lilac); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad) 3.4rem; text-align: center;
}
.footer-brand { font-family: var(--serif); font-size: 1.1rem; }
.footer-brand span { color: var(--amber); font-size: 0.85rem; }
.footer-links { margin: 1.2rem 0; display: flex; justify-content: center; gap: 1.8rem; }
.footer-links a {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--warm-dim); text-decoration: none;
}
.footer-links a:hover { color: var(--amber); }
.footer-note { color: rgba(245, 239, 230, 0.35); font-size: 0.72rem; line-height: 1.8; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  /* mosaico -> 2 colunas; cards 1 e 6 ocupam a linha inteira (destaque) */
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .port-card { grid-column: span 1 !important; }
  .port-card:nth-child(1), .port-card:nth-child(6) { grid-column: span 2 !important; }
  .port-card:nth-child(1) .port-card-img,
  .port-card:nth-child(6) .port-card-img { aspect-ratio: 16 / 9; }
  .port-card:nth-child(2) .port-card-img,
  .port-card:nth-child(5) .port-card-img,
  .port-card:nth-child(3) .port-card-img,
  .port-card:nth-child(4) .port-card-img { aspect-ratio: 4 / 3.4; }
  .stories-grid { grid-template-columns: 1fr; max-width: 34rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; max-width: 34rem; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .port-feature { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-fig { max-width: 22rem; margin: 0 auto; }
}
@media (max-width: 560px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-card, .port-card:nth-child(1), .port-card:nth-child(6) { grid-column: span 1 !important; }
  .port-card .port-card-img,
  .port-card:nth-child(1) .port-card-img,
  .port-card:nth-child(6) .port-card-img { aspect-ratio: 4 / 3.4; }
  .process-steps { grid-template-columns: 1fr; }
  .br-desk { display: none; }
  /* subtítulo do hero um pouco maior no mobile */
  .hero-sub { font-size: 1.02rem; }
  .hero-cats { font-size: 0.7rem; letter-spacing: 0.18em; }
}

/* ---------- acessibilidade: reduz movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-scrollhint span { animation: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .diaphragm { clip-path: none !important; }
}
