/* ============================================================
   VISTA VIRTUAL 360 — Redesign
   Aesthetic: Imersivo cinemagráfico × iridescente × técnico
   ============================================================ */

/* Fallback fonts com métricas ajustadas para minimizar CLS no font-swap */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman");
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 106%;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Helvetica Neue"), local("Arial");
  ascent-override: 92%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

:root {
  /* base */
  --bg: #131318;
  --bg-deep: #0c0c10;
  --ink: #f6f4ee;
  --ink-dim: rgba(246, 244, 238, 0.62);
  --ink-faint: rgba(246, 244, 238, 0.32);
  --rule: rgba(246, 244, 238, 0.12);

  /* iridescent — driven by scroll/cursor */
  --hue: 200;
  --hue2: 320;
  --hue3: 40;

  --iri-a: hsl(var(--hue), 88%, 68%);
  --iri-b: hsl(var(--hue2), 78%, 64%);
  --iri-c: hsl(var(--hue3), 92%, 70%);

  /* type */
  --font-display: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;
  --font-sans: "Geist", "Geist Fallback", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 720px) {
  html, body { cursor: auto; }
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
@media (max-width: 720px) { button { cursor: pointer; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease),
              border-color .35s, background .35s, opacity .25s;
}
body.cursor-hover .cursor-ring {
  width: 72px; height: 72px;
  border-color: transparent;
  background: radial-gradient(circle at 30% 30%, var(--iri-a), var(--iri-b) 60%, transparent 75%);
  opacity: .55;
}
body.cursor-hover .cursor-dot {
  width: 4px; height: 4px;
  background: var(--ink);
}
body.cursor-drag .cursor-ring {
  width: 96px; height: 96px;
  border: 1px dashed rgba(255,255,255,0.5);
  background: transparent;
}
body.cursor-drag .cursor-dot { opacity: 0; }

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell { position: relative; }

.frame {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
}
.frame::before, .frame::after,
.frame > span:nth-child(1), .frame > span:nth-child(2) {
  content: ""; position: absolute; background: var(--rule);
}
.frame::before { top: 24px; left: 24px; right: 24px; height: 1px; }
.frame::after  { bottom: 24px; left: 24px; right: 24px; height: 1px; }
.frame > span:nth-child(1) { left: 24px; top: 24px; bottom: 24px; width: 1px; }
.frame > span:nth-child(2) { right: 24px; top: 24px; bottom: 24px; width: 1px; }

/* top bar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  mix-blend-mode: difference;
}
/* mobile: mix-blend-mode em fixed causa ghost em iOS Safari — desativar */
@media (max-width: 960px) {
  .topbar {
    mix-blend-mode: normal;
    background: linear-gradient(180deg, rgba(5,5,7,0.85) 0%, transparent 100%);
    color: var(--ink);
  }
  .brand { color: var(--ink); }
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    hsl(var(--hue), 90%, 65%),
    hsl(var(--hue2), 85%, 65%),
    hsl(var(--hue3), 90%, 65%),
    hsl(var(--hue), 90%, 65%));
  position: relative;
  animation: spin 18s linear infinite;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--bg-deep);
}
.brand-name { font-weight: 500; letter-spacing: 0.16em; }
.brand-sub { color: var(--ink-faint); }

.topbar nav { display: flex; gap: 28px; }
.topbar nav a { position: relative; padding: 6px 0; }
.topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right .5s var(--ease-out);
}
.topbar nav a:hover::after { right: 0; }

.topbar .right {
  display: flex; align-items: center; gap: 24px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--iri-a);
  box-shadow: 0 0 12px var(--iri-a);
  animation: pulse 2s ease-in-out infinite;
}
.topbar .status { display: inline-flex; align-items: center; gap: 8px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ============================================================
   HERO — IMMERSIVE SLIDESHOW
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* iOS Safari 15.4+ — dynamic viewport height exclui barra URL */
  min-height: 620px;
  overflow: hidden;
  background: #0c0c10;
}

/* Slideshow stage — layers crossfade between each other */
.pano-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pano-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06) translate3d(0,0,0);
  transition: opacity 1.4s var(--ease-out);
  will-change: opacity, transform;
  filter: saturate(1) contrast(1.05) brightness(0.6);
}
.pano-layer.active {
  opacity: 1;
  /* Ken-burns slow drift; full duration matches slide hold + crossfade */
  animation: pano-kenburns 9s var(--ease-out) forwards;
}
@keyframes pano-kenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

/* dark veil on top of the photo for legibility + premium mood */
.pano-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, rgba(5,5,7,0.5) 65%, rgba(5,5,7,0.92) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.65) 0%, rgba(5,5,7,0.15) 30%, rgba(5,5,7,0.15) 55%, rgba(5,5,7,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

/* iridescent overlay still follows cursor — subtle, sits over the photo */
.iri-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at var(--mx,30%) var(--my,40%),
      hsla(var(--hue), 80%, 55%, 0.12) 0%,
      transparent 32%),
    radial-gradient(circle at calc(100% - var(--mx,30%)) calc(100% - var(--my,40%)),
      hsla(var(--hue2), 80%, 55%, 0.10) 0%,
      transparent 36%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  transition: background .3s linear;
}

/* Scene hotspots */
.hotspot-stage {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  width: 44px; height: 44px;
  margin-left: -22px; margin-top: -22px;
  pointer-events: auto;
  cursor: none;
}
.hotspot::before, .hotspot::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
}
.hotspot::before {
  border: 1px solid rgba(255,255,255,0.9);
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.95) 18%, transparent 22%);
  transition: transform .4s var(--ease-out);
}
.hotspot::after {
  border: 1px solid rgba(255,255,255,0.5);
  animation: hotspot-ring 2.4s ease-out infinite;
}
@keyframes hotspot-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.hotspot .hs-label {
  position: absolute;
  left: 60px; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform-origin: left center;
  transition: opacity .4s, transform .4s var(--ease-out);
  pointer-events: none;
}
.hotspot .hs-label::before {
  content: ""; position: absolute;
  left: -36px; top: 50%; width: 28px; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.hotspot:hover .hs-label { opacity: 1; }
.hotspot:hover .hs-label::before { transform: scaleX(1); }

/* Scene strip — bottom-right vertical index of all scenes */
.scene-strip {
  position: absolute;
  right: 64px;
  bottom: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 5;
  pointer-events: none;
}
.ss-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--ink-faint), transparent);
}
.ss-cells {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ss-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.45;
  transition: opacity .55s var(--ease-out), color .55s;
  pointer-events: auto;
  cursor: none;
}
.ss-cell .ss-num { color: var(--ink-dim); font-weight: 400; }
.ss-cell.active {
  opacity: 1;
  color: var(--ink);
}
.ss-cell.active .ss-num {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 960px) {
  .scene-strip { right: 24px; bottom: 200px; }
}

/* grain */
.grain {
  position: absolute; inset: -50%;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: overlay;
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  20% { transform: translate(-4%, 2%); }
  40% { transform: translate(3%, -3%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(4%, -1%); }
  100% { transform: translate(0,0); }
}

/* hero foreground UI */
.hero-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px 64px 56px;
  z-index: 10;
  pointer-events: none;
}
.hero-ui > * { pointer-events: auto; }

.hero-title {
  align-self: center;
  max-width: 1100px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  font-style: italic;
}
.hero-title .l1 { display: block; }
.hero-title .l2 {
  display: block;
  margin-top: 28px;
  padding-left: 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(12px, 0.95vw, 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.6;
}
.hero-title em {
  background: linear-gradient(110deg, var(--iri-a) 0%, var(--iri-b) 45%, var(--iri-c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

/* Hero CTA buttons */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 8px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 13px 26px;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.hero-cta:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.5);
}
.hero-cta.ghost {
  border-color: transparent;
  color: var(--ink-dim);
}
.hero-cta.ghost:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--ink);
  background: transparent;
}
@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-bottom .drag-hint {
  display: inline-flex; align-items: center; gap: 12px;
}
.drag-hint .dh-icon {
  width: 40px; height: 18px;
  border: 1px solid var(--ink-dim);
  border-radius: 999px;
  position: relative;
}
.drag-hint .dh-icon::after {
  content: ""; position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  top: 4px; left: 4px;
  animation: drag-glide 2.6s ease-in-out infinite;
}
@keyframes drag-glide {
  0%, 100% { left: 4px; }
  50% { left: 26px; }
}

.compass {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.compass-track {
  width: 220px; height: 32px;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.compass-ticks {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink-faint) 0 1px,
    transparent 1px 22px
  );
  background-size: 220px 32px;
  background-position: var(--cpos, 0px) 0px;
}
.compass-needle {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--iri-a);
  box-shadow: 0 0 10px var(--iri-a);
}
.compass-readout { color: var(--ink); font-size: 10px; }

.scene-meta {
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
}
.scene-meta .sm-row { color: var(--ink-dim); }
.scene-meta .sm-val { color: var(--ink); }

/* ============================================================
   COMMON SECTION
   ============================================================ */
section {
  position: relative;
  padding: 160px 64px;
  border-top: 1px solid var(--rule);
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 48px;
}
.eyebrow .idx { color: var(--ink); }
.eyebrow .bar {
  display: inline-block;
  width: 56px; height: 1px;
  background: var(--ink-dim);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.018em;
}
.h-display em {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: 180px 64px 180px;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
  align-items: start;
}
.manifesto-grid .col-left { position: sticky; top: 120px; }
.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.05vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.005em;
  max-width: 720px;
}
.manifesto-quote p + p { margin-top: 1.2em; color: var(--ink-dim); }
.manifesto-quote .word {
  opacity: 0.22;
  transition: opacity .8s var(--ease-out), color .6s;
}
.manifesto-quote .word.lit { opacity: 1; }
.manifesto-quote .word.iri.lit {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 2;
}
.manifesto-meta strong { color: var(--ink); font-weight: 400; }
.manifesto-meta .sep { display: block; width: 36px; height: 1px; background: var(--rule); margin: 16px 0; }

/* ============================================================
   SOBRE / FILOSOFIA
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 96px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.about-visual .av-img {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1620207418302-439b387441b0?auto=format&fit=crop&w=1400&q=85");
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.06);
  transform: scale(1.05);
  transition: transform 1.4s var(--ease-out);
}
.about-visual:hover .av-img { transform: scale(1.12); }
.about-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(5,5,7,0.7) 100%),
    radial-gradient(circle at 70% 80%, hsla(var(--hue2), 80%, 50%, 0.25), transparent 60%);
  mix-blend-mode: screen;
}
.about-visual .av-tag {
  position: absolute;
  left: 24px; bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.about-visual .av-tag span { display: block; color: var(--ink-faint); }
.about-visual .corners {
  position: absolute; inset: 12px;
  pointer-events: none;
}
.about-visual .corners::before,
.about-visual .corners::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border-color: var(--ink); border-style: solid;
}
.about-visual .corners::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.about-visual .corners::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.about-copy h2 {
  margin-bottom: 36px;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 520px;
}
.about-copy p + p { margin-top: 22px; }
.about-copy p strong { color: var(--ink); font-weight: 500; }

.about-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   ANTES × AGORA — transição visual entre manifesto e soluções
   ============================================================ */
.before-after {
  padding: 0 64px 120px;
}
.ba-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 80px;
  align-items: start;
}
.ba-rule {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}
.ba-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ba-prev {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 48px);
  font-style: italic;
  line-height: 1.05;
  color: var(--ink-faint);
}
.ba-now {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 48px);
  font-style: italic;
  line-height: 1.05;
  color: var(--ink);
}
.ba-now em {
  font-style: italic;
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 960px) {
  .before-after { padding: 0 24px 80px; }
  .ba-row { grid-template-columns: 1fr; gap: 40px; }
  .ba-rule { display: none; }
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { padding-bottom: 120px; }
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 96px;
}
.services-head .lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 440px;
}

.service-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-row.flip { grid-template-columns: 1fr 1.25fr; }
.service-row.flip .service-visual { order: 2; }

.service-visual {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.service-visual .sv-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.6s var(--ease-out);
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05) brightness(0.85);
}
.service-row:hover .sv-img { transform: scale(1.12); }
.service-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,7,0.55));
}
.service-visual .iri-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 0%, transparent 40%,
    hsla(var(--hue), 90%, 70%, 0.18) 50%,
    hsla(var(--hue2), 90%, 70%, 0.16) 55%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s, transform 1.2s var(--ease-out);
  transform: translateX(-20%);
}
.service-row:hover .iri-shimmer {
  opacity: 1;
  transform: translateX(20%);
}

.service-copy .s-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.service-copy h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
}
.service-copy h3 em {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 440px;
  margin-bottom: 28px;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.specs dt { color: var(--ink-faint); }
.specs dd { color: var(--ink); }

/* ============================================================
   TRABALHOS · PORTFÓLIO
   ============================================================ */
.works { padding-bottom: 140px; }

/* Sub-header individual de cada case */
.case-intro {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

/* O eyebrow global tem margin-bottom: 48px — ideal para cabeçalhos
   de seção. Dentro de case-intro (sub-header) a proporção é menor. */
.case-intro .eyebrow {
  margin-bottom: 28px;
}

/* Divisória entre cases — espaçamento de respiro generoso */
.testimonial + .case-intro {
  margin-top: 140px;
  padding-top: 96px;
  border-top: 1px solid var(--rule);
}

.case-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-style: italic;
  margin-bottom: 24px;
}
.case-h em {
  font-style: italic;
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ci-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 700px;
}
.works-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
}
.works-head .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 440px;
}

.case {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.case-browser {
  position: relative;
  border: 1px solid var(--rule);
  background: #0c0c10;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.cb-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.cb-dots { display: flex; gap: 6px; }
.cb-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.cb-dots span:nth-child(1) { background: #ff5f57; }
.cb-dots span:nth-child(2) { background: #febc2e; }
.cb-dots span:nth-child(3) { background: #28c840; }
.cb-url {
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: center;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  min-width: min(280px, 100%);
  justify-content: center;
  overflow: hidden;
}
.cb-url svg { color: var(--iri-a); }
.cb-actions { display: flex; gap: 6px; }
.cb-actions span {
  width: 16px; height: 2px;
  background: rgba(255,255,255,0.25);
}

.cb-frame {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: none;
}
.cb-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.08) contrast(1.05) brightness(0.78);
  transform: scale(1.04);
  transition: transform 2s var(--ease-out);
}
.case-browser:hover .cb-img { transform: scale(1.10); }
.cb-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,26,16,0.35) 0%, rgba(14,26,16,0.7) 100%),
    radial-gradient(circle at 80% 20%, hsla(var(--hue3), 80%, 55%, 0.18), transparent 50%);
}
.cb-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  color: #f4f6f3;
}
.cb-brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(14,26,16,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.06em;
  align-self: flex-start;
  font-family: var(--font-sans);
}
.cb-paw { font-size: 14px; }
.cb-hero {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 80%;
  margin-top: auto;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.cb-hero em {
  font-style: italic;
  background: linear-gradient(110deg, #cfe9c0, #f6e3a8 60%, #ffd1b3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cb-cta {
  display: flex; gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}
.cb-btn {
  padding: 12px 20px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.cb-btn.primary {
  background: #f4f1ea;
  color: #0E1A10;
}
.cb-btn.ghost {
  border: 1px solid rgba(244,241,234,0.5);
  color: #f4f1ea;
}

.cb-hover {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.case-browser:hover .cb-hover {
  opacity: 1; transform: translateY(0);
}

/* meta sidebar */
.case-meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cm-block { display: flex; flex-direction: column; gap: 8px; }
.cm-k { color: var(--ink-faint); }
.cm-v {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}
.case-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.case-link svg {
  margin-left: auto;
  transition: transform .4s var(--ease-out);
}
.case-link:hover svg { transform: translate(4px, -4px); }
.case-link::before {
  content: ""; position: absolute;
  bottom: -1px; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--iri-a), var(--iri-b));
  transition: width .6s var(--ease-out);
}
.case-link:hover::before { width: 100%; }

/* results row */
.case-results {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cr-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cr-cell:last-child { border-right: 0; }
.cr-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.cr-sup {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--ink-faint);
  background: none;
}
.cr-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* tease */
.case-tease {
  margin-top: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.ct-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ct-item {
  padding: 18px 20px;
  background: var(--bg-deep);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ct-item span:first-child { color: var(--ink); }
.ct-item span:last-child { color: var(--ink-faint); }

@media (max-width: 960px) {
  .works-head { grid-template-columns: 1fr; gap: 40px; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case-meta { padding: 0; }
  .case-results { grid-template-columns: 1fr 1fr; }
  .cr-cell:nth-child(2) { border-right: 0; }
  .cr-cell:nth-child(1), .cr-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .cr-num { font-size: 48px; }
  .case-tease { grid-template-columns: 1fr; gap: 16px; }
  .ct-rail { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diff { padding-bottom: 200px; }
.diff-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 64px;
  margin-bottom: 80px;
}
.diff-head .lead {
  max-width: 380px;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.5;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.diff-card {
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .5s;
}
.diff-card:nth-child(odd) { border-right: 1px solid var(--rule); }
.diff-card:hover { background: rgba(246,244,238,0.025); }
.diff-card .dc-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  display: flex; justify-content: space-between;
  margin-bottom: 80px;
}
.diff-card .dc-idx .iri {
  color: var(--iri-a);
}
.diff-card h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.012em;
}
.diff-card p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
}
.diff-card .dc-line {
  position: absolute;
  left: 48px; bottom: 32px;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--iri-a), var(--iri-b));
  transition: width .8s var(--ease-out);
}
.diff-card:hover .dc-line { width: calc(100% - 96px); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta {
  padding: 200px 64px 80px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, hsla(var(--hue), 80%, 45%, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, hsla(var(--hue2), 80%, 50%, 0.16), transparent 55%),
    radial-gradient(ellipse at 50% 100%, hsla(var(--hue3), 80%, 50%, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta > * { position: relative; z-index: 1; }
.cta-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 6vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 1100px;
  margin: 0 auto 80px;
  text-align: center;
}
.cta-headline em {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-sub {
  max-width: 52ch;
  margin: -48px auto 3rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.65;
}

.cta-form {
  max-width: 720px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.cta-form-desc {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.cta-form .field { display: flex; flex-direction: column; gap: 10px; }
.cta-form label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cta-form input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font: 400 18px var(--font-sans);
  padding: 6px 0;
  outline: none;
  cursor: none;
}
.cta-form input::placeholder { color: var(--ink-faint); }
@media (max-width: 720px) { .cta-form input { cursor: text; } }

.btn-iri {
  position: relative;
  padding: 18px 32px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  transition: color .4s;
}
.btn-iri::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn-iri:hover { color: var(--bg-deep); }
.btn-iri:hover::before { transform: translateY(0); }

.contact-block {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.contact-block > div { display: flex; flex-direction: column; align-items: center; }
.contact-block .cb-label { color: var(--ink-faint); display: block; margin-bottom: 10px; }
.contact-block .cb-val { color: var(--ink); font-size: 13px; font-family: var(--font-sans); letter-spacing: 0; text-transform: none; line-height: 1.4; }

footer.bottom {
  padding: 48px 64px 36px;
  max-width: 1600px;
  margin: 56px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
.footer-cidades {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.18);
  padding-bottom: 4px;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: none;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  will-change: transform;
}
.wa-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-core {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 0 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #131318 0%, #1c1c22 100%);
  border: 1px solid rgba(246, 244, 238, 0.14);
  color: var(--ink);
  box-shadow:
    0 18px 40px -16px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.4) inset,
    0 0 0 0 hsla(var(--hue), 80%, 60%, 0);
  transition: padding .55s var(--ease-out), border-color .55s, box-shadow .6s;
  overflow: hidden;
}
.wa-core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(135deg,
    hsl(var(--hue), 85%, 65%) 0%,
    hsl(var(--hue2), 80%, 65%) 50%,
    hsl(var(--hue3), 85%, 65%) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .55s var(--ease-out);
  pointer-events: none;
}
.wa-icon {
  flex-shrink: 0;
  color: var(--ink);
  transition: color .4s, transform .55s var(--ease-out);
  z-index: 1;
}
.wa-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  margin-left: 0;
  padding-right: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .55s var(--ease-out), opacity .4s var(--ease-out), padding-right .55s var(--ease-out), margin-left .55s var(--ease-out);
  font-family: var(--font-sans);
  z-index: 1;
}
.wa-label-top {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
  margin-bottom: 4px;
}
.wa-label-num {
  font-size: 14px;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.wa-float:hover .wa-core {
  padding: 0 26px 0 20px;
  border-color: transparent;
}
.wa-float:hover .wa-core::before { opacity: 1; }
.wa-float:hover .wa-label {
  max-width: 240px;
  opacity: 1;
  margin-left: 14px;
  padding-right: 6px;
}
.wa-float:hover .wa-icon { transform: scale(1.08) rotate(-4deg); }

/* pulse rings */
.wa-pulse {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  margin-right: -30px;
  margin-bottom: -30px;
  border-radius: 50%;
  border: 1px solid hsla(var(--hue), 85%, 65%, 0.5);
  pointer-events: none;
  animation: wa-pulse 3s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.wa-pulse.wa-pulse-2 { animation-delay: 1.5s; }
@keyframes wa-pulse {
  0% { transform: scale(0.7); opacity: 0.9; border-color: hsla(var(--hue), 85%, 65%, 0.5); }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 720px) {
  .wa-float { right: 16px; bottom: 16px; cursor: pointer; }
  .wa-core { height: 54px; padding: 0 0 0 16px; }
  .wa-pulse { right: 27px; bottom: 27px; width: 54px; height: 54px; margin-right: -27px; margin-bottom: -27px; }
  .wa-label { max-width: 160px; opacity: 1; margin-left: 12px; padding-right: 12px; }
  .wa-label-top { display: none; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .topbar { padding: 20px 24px; }
  .topbar nav { display: none; }
  section { padding: 100px 24px; }
  .hero-ui { padding: 100px 24px 32px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; }
  .scene-meta, .compass { text-align: left; align-items: flex-start; }
  .manifesto-grid, .about, .services-head { grid-template-columns: 1fr; gap: 40px; }
  /* diff-head é display:flex, não grid — precisa de flex-direction */
  .diff-head { flex-direction: column; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
  .diff-head .lead { max-width: 100%; }
  .manifesto-grid .col-left { position: static; }
  .service-row, .service-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .service-row.flip .service-visual { order: 0; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-card:nth-child(odd) { border-right: 0; }
  .diff-card { padding: 40px 28px 36px; }
  .contact-block { grid-template-columns: 1fr 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  footer.bottom { padding: 32px 24px; flex-direction: column; gap: 12px; }
  .frame { display: none; }
}

/* ============================================================
   MOBILE HERO — área segura para copy (< 768px)
   Os hotspots são posicionados por JS em percentual do hero.
   Em mobile, top: 58% cai exatamente sobre o hero-title.
   Solução: ocultar o hotspot-stage e garantir z-index da copy.
   ============================================================ */
@media (max-width: 768px) {
  /* Remove os círculos interativos — decorativos no desktop, problema no mobile */
  .hotspot-stage { display: none; }

  /* Garante que o título e subtítulo ficam acima de qualquer elemento residual */
  .hero-title {
    position: relative;
    z-index: 15;
  }

  /* Compensa a ausência do drag-hint para manter hierarquia visual clara */
  .hero-bottom {
    padding-bottom: 8px;
  }
}

/* ============================================================
   TELAS MUITO PEQUENAS (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 42px; }
  /* compass pode ter largura fixa — esconder em telas muito estreitas */
  .compass { display: none; }
  /* hero-bottom em 2 colunas sem compass */
  .hero-bottom { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-block { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-headline { font-size: 38px; }
  .scene-strip { right: 12px; bottom: 160px; }
  .ss-name { display: none; } /* mostrar só os números no strip */
  .cb-chrome { grid-template-columns: auto 1fr; } /* esconder cb-actions no mobile */
  .cb-actions { display: none; }
}

/* ============================================================
   SITE LOADER
   ============================================================ */
.site-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .7s var(--ease-out), visibility .7s;
}
.site-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sl-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sl-brand em {
  font-style: normal;
  color: var(--ink-faint);
}
.sl-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sl-bar {
  width: 180px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.sl-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--iri-a), var(--iri-b));
  transition: width .9s var(--ease-out);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 101;
  pointer-events: none;
}
.sp-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--iri-a), var(--iri-b), var(--iri-c));
  transition: width .1s linear;
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}
.hb-line {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink-dim);
  transition: transform .4s var(--ease-out), opacity .3s, background .3s;
  transform-origin: center;
}
.hamburger.open .hb-line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
  background: var(--ink);
}
.hamburger.open .hb-line:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
  background: var(--ink);
}
@media (max-width: 960px) {
  .hamburger { display: flex; }
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.no-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.no-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 9vw, 64px);
  color: var(--ink-faint);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color .35s, transform .5s var(--ease-out);
  transform: translateX(-16px);
  display: block;
  opacity: 0;
}
.nav-overlay.open .no-link {
  color: var(--ink);
  transform: translateX(0);
  opacity: 1;
}
.nav-overlay.open .no-link:nth-child(1) { transition-delay: .05s; }
.nav-overlay.open .no-link:nth-child(2) { transition-delay: .10s; }
.nav-overlay.open .no-link:nth-child(3) { transition-delay: .15s; }
.nav-overlay.open .no-link:nth-child(4) { transition-delay: .20s; }
.nav-overlay.open .no-link:nth-child(5) { transition-delay: .25s; }
.no-link:hover {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.no-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   MANIFESTO — iridescent strong words
   ============================================================ */
.manifesto-quote .iri-word {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
  font-style: inherit;
}
.manifesto-quote .word.iri {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   DIFF CARD h4 em — gradient
   ============================================================ */
.diff-card h4 em {
  background: linear-gradient(110deg, var(--iri-a), var(--iri-b), var(--iri-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  margin-top: 72px;
  padding: 52px 56px;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, hsla(var(--hue), 80%, 50%, 0.07), transparent 55%),
    radial-gradient(ellipse at 90% 50%, hsla(var(--hue2), 80%, 50%, 0.06), transparent 55%);
  pointer-events: none;
}
.test-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 780px;
  margin-bottom: 32px;
  position: relative;
  padding-left: 28px;
}
.test-quote::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -12px;
  font-size: 4.5em;
  line-height: 1;
  color: var(--rule);
  font-family: var(--font-display);
  pointer-events: none;
}
.test-cite {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
  padding-left: 28px;
}
.test-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.test-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 720px) {
  .testimonial { padding: 32px 24px; }
  .test-quote { padding-left: 0; font-size: 18px; }
  .test-quote::before { display: none; }
  .test-cite { padding-left: 0; }
}

/* Deliverables block */
.deliverables {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.del-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 32px;
}
.del-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.del-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 18px;
  border: 1px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
}
.del-tags span:hover {
  border-color: rgba(255,255,255,0.22);
  color: var(--ink);
}

/* ============================================================
   CTA — WhatsApp primary button
   ============================================================ */
.cta-primary {
  max-width: 720px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.btn-wa-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--iri-a), var(--iri-b));
  color: var(--bg-deep);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease-out), box-shadow .4s;
  cursor: none;
  text-decoration: none;
}
.btn-wa-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 48px -12px hsla(var(--hue), 80%, 60%, 0.4);
}
@media (max-width: 720px) { .btn-wa-primary { cursor: pointer; } }

.cta-or {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
