@charset "UTF-8";
/* Cases de modelo (Cursino, LBX, N•GROUP): o estilo inteiro, igual nas três páginas. */
:root {
  --bg: #FAFAF7;
  --ink: #0A0A0A;
  --ink-60: rgba(10,10,10,0.55);
  --ink-30: rgba(10,10,10,0.25);
  --ink-10: rgba(10,10,10,0.08);
  --line: rgba(10,10,10,0.12);
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --hand: 'Mynerve', cursive;
  --pad: clamp(24px, 4vw, 64px);
  --max-w: 1280px;
  --ease-organic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
/* ============================================================
   HEADER + MENU (mesmo padrão)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 24px var(--pad);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand-logo {
  grid-column: 2; justify-self: center;
  color: var(--ink); transition: color 0.4s var(--ease-organic);
}
.brand-logo svg { display: block; height: 28px; width: auto; fill: currentColor; }
.brand-logo.inverse { color: var(--bg); }
.menu-toggle {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 8px 0; transition: color 0.4s;
}
.menu-toggle.inverse { color: var(--bg); }
.menu-toggle .icon { display: inline-flex; flex-direction: column; gap: 5px; width: 24px; }
.menu-toggle .icon span {
  display: block; height: 1.5px; background: currentColor;
  transition: transform 0.4s; width: 100%;
}
.menu-toggle .icon span:nth-child(2) { width: 70%; align-self: flex-end; }
.menu-toggle:hover .icon span:nth-child(2) { width: 100%; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-organic), visibility 0.6s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay .close {
  position: absolute; top: 24px; right: var(--pad);
  font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.menu-overlay .close .icon { position: relative; width: 24px; height: 24px; }
.menu-overlay .close .icon::before,
.menu-overlay .close .icon::after {
  content: ''; position: absolute; inset: 0; top: 50%; height: 1.5px; background: currentColor;
}
.menu-overlay .close .icon::before { transform: rotate(45deg); }
.menu-overlay .close .icon::after { transform: rotate(-45deg); }
.menu-overlay .brand-mini {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: var(--bg);
}
.menu-overlay .brand-mini svg { height: 28px; fill: currentColor; }
.menu-nav { list-style: none; text-align: center; }
.menu-nav li { overflow: hidden; margin: 4px 0; }
.menu-nav a {
  display: inline-block; font-weight: 300;
  font-size: clamp(48px, 9vw, 120px);
  letter-spacing: -0.04em; line-height: 1.1;
  color: var(--bg);
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out), color 0.4s;
  padding: 0 8px;
}
.menu-overlay.open .menu-nav a { transform: translateY(0); }
.menu-overlay.open .menu-nav li:nth-child(1) a { transition-delay: 0.05s; }
.menu-overlay.open .menu-nav li:nth-child(2) a { transition-delay: 0.12s; }
.menu-overlay.open .menu-nav li:nth-child(3) a { transition-delay: 0.19s; }
.menu-overlay.open .menu-nav li:nth-child(4) a { transition-delay: 0.26s; }
.menu-overlay.open .menu-nav li:nth-child(5) a { transition-delay: 0.33s; }
.menu-nav a:hover { font-style: italic; color: #999; }
.menu-foot {
  position: absolute; bottom: 24px;
  left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between;
  font-size: 14px; color: rgba(255,255,255,0.5);
  opacity: 0; transition: opacity 0.6s 0.4s;
}
.menu-overlay.open .menu-foot { opacity: 1; }
/* ============================================================
   HERO DO CASE
   ============================================================ */
.case-hero {
  position: relative;
  padding: 140px var(--pad) 80px;
  background: var(--bg);
}
.case-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.case-hero .back {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--ink-60);
  margin-bottom: 56px;
  transition: gap 0.5s var(--ease-organic);
}
.case-hero .back:hover { gap: 22px; color: var(--ink); }
.case-hero h1 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(64px, 12vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin-bottom: 64px;
}
.case-hero h1 em {
  font-family: var(--hand);
  font-style: normal;
  font-size: 1.04em;
  display: inline-block;
  transform: rotate(-2deg) translateY(0.04em);
}
.case-hero .meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.case-hero dt {
  font-size: 13px; color: var(--ink-60);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.case-hero dd {
  font-size: 16px; color: var(--ink);
  line-height: 1.4;
}
.case-hero-image {
  margin-top: 64px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}
.case-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
/* ============================================================
   SEÇÃO BASE — texto editorial
   ============================================================ */
.section {
  padding: clamp(100px, 14vw, 180px) var(--pad);
  position: relative;
}
.section-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.section-eyebrow {
  display: block;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 28px;
}
.section h2 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  max-width: 18ch;
}
.section h2 em {
  font-family: var(--hand);
  font-style: normal;
  font-size: 1.04em;
  display: inline-block;
  transform: rotate(-1deg) translateY(0.04em);
}
.section .body p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 60ch;
}
.section .body p.lead { font-weight: 500; }
/* ============================================================
   LOGO REVEAL — SVG stroke draw
   ============================================================ */
.logo-section {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(120px, 16vw, 200px) var(--pad);
  text-align: center;
}
.logo-section .section-eyebrow { color: rgba(255,255,255,0.55); }
.logo-section h2 { color: var(--bg); margin: 0 auto 80px; }
.logo-section h2 em { color: var(--bg); }
.logo-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: clamp(280px, 50vw, 560px);
}
.logo-stage svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.logo-stage svg path,
.logo-stage svg line,
.logo-stage svg circle,
.logo-stage svg polyline {
  fill: none;
  stroke: var(--bg);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.4s var(--ease-out);
}
.logo-stage.is-drawn svg path,
.logo-stage.is-drawn svg line,
.logo-stage.is-drawn svg circle,
.logo-stage.is-drawn svg polyline {
  stroke-dashoffset: 0;
}
.logo-stage.is-drawn svg path:nth-child(2) { transition-delay: 0.2s; }
.logo-stage.is-drawn svg path:nth-child(3) { transition-delay: 0.4s; }
/* ============================================================
   PALETA DE CORES — hover reveal
   ============================================================ */
.palette-section {
  background: var(--bg);
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.color-card {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.6s var(--ease-organic), box-shadow 0.6s;
  border: 1px solid var(--line);
}
.color-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 50px -16px rgba(10,10,10,0.3);
}
.color-card .info {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: opacity 0.5s;
}
.color-card.dark .info { color: var(--bg); }
.color-card.light .info { color: var(--ink); }
.color-card .info .name { font-weight: 500; }
.color-card .info .hex {
  font-weight: 400;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.color-card .pct {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.5;
}
.color-card.dark .pct { color: var(--bg); }
.color-card.light .pct { color: var(--ink); }
/* ============================================================
   TYPOGRAPHY SHOWCASE
   ============================================================ */
.typography-section {
  background: var(--bg);
}
.typography-section .specimen {
  border-top: 1px solid var(--line);
  padding-top: 64px;
  margin-top: 64px;
}
.typography-section .specimen-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.typography-section .specimen-row .meta {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.4;
}
.typography-section .specimen-row .meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}
.typography-section .specimen-row .sample {
  font-family: var(--sans);
  color: var(--ink);
}
.typography-section .specimen-row .sample.large {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
}
.typography-section .specimen-row .sample.body {
  font-size: 18px;
  line-height: 1.5;
}
/* ============================================================
   APLICAÇÕES — stack vertical com parallax
   ============================================================ */
.applications {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(120px, 16vw, 200px) var(--pad);
}
.applications .section-eyebrow { color: rgba(255,255,255,0.55); }
.applications h2 { color: var(--bg); }
.applications h2 em { color: var(--bg); }
.app-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 80px;
}
.app-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.app-card:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.app-card .app-text h3 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 18px;
}
.app-card .app-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 36ch;
}
.app-card .app-visual {
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.app-card .app-visual::after {
  content: 'aplicação';
  position: absolute;
  bottom: 18px; left: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.app-card .app-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* ============================================================
   CTA / PRÓXIMO CASE
   ============================================================ */
.case-cta {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(140px, 18vw, 220px) var(--pad);
  text-align: center;
}
.case-cta .section-eyebrow { color: rgba(255,255,255,0.55); justify-content: center; }
.case-cta h2 {
  color: var(--bg);
  margin: 0 auto 48px;
  font-size: clamp(48px, 8vw, 144px);
}
.case-cta h2 em { color: var(--bg); }
.case-cta .actions {
  display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center;
}
.case-cta .btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 40px;
  border-radius: 100px;
  font-weight: 500; font-size: 17px;
  transition: gap 0.5s var(--ease-organic), transform 0.5s, background 0.4s, color 0.4s, border-color 0.4s;
}
.case-cta .btn-solid {
  background: var(--bg); color: var(--ink);
}
.case-cta .btn-solid:hover { gap: 22px; transform: translateY(-2px); }
.case-cta .btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255,255,255,0.5);
}
.case-cta .btn-ghost:hover {
  background: var(--bg); color: var(--ink); border-color: var(--bg);
}
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 80px var(--pad) 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand { color: var(--bg); }
.footer-brand svg { height: 36px; fill: currentColor; }
.footer-brand p {
  margin-top: 18px; font-size: 15px;
  color: rgba(255,255,255,0.55); line-height: 1.55; max-width: 32ch;
}
.footer-col h4 {
  font-weight: 500; font-size: 14px;
  color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 15px; color: var(--bg);
  transition: color 0.3s;
}
.footer-col a:hover { color: rgba(255,255,255,0.6); }
.footer-bottom {
  max-width: var(--max-w); margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom .bicho-link:hover { color: var(--bg); }
/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .case-hero h1 { font-size: clamp(56px, 14vw, 96px); }
  .case-hero .meta-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .palette-grid { grid-template-columns: repeat(2, 1fr); }
  .typography-section .specimen-row { grid-template-columns: 1fr; gap: 12px; }
  .app-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
