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

:root {
  /* base */
  --bg: #0a0a0c;
  --bg-deep: #050507;
  --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", "Times New Roman", serif;
  --font-sans: "Geist", "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: 720px) {
  .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;
}
.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 — TOUR 360 SIMULADO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #000;
}

.panorama {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 320vw;       /* extra wide for 360 panning */
  background-image: url("https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2400&q=85");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform, filter;
  transform: translate3d(0,0,0);
  filter: saturate(1.05) contrast(1.05) brightness(0.55);
}
.panorama::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, rgba(5,5,7,0.55) 70%, rgba(5,5,7,0.9) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.6) 0%, transparent 30%, transparent 60%, rgba(5,5,7,0.9) 100%);
}

/* iridescent overlay on hero */
.iri-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at var(--mx,30%) var(--my,40%),
      hsla(var(--hue), 80%, 55%, 0.25) 0%,
      transparent 35%),
    radial-gradient(circle at calc(100% - var(--mx,30%)) calc(100% - var(--my,40%)),
      hsla(var(--hue2), 80%, 55%, 0.22) 0%,
      transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background .3s linear;
}

/* 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); }
}

/* hotspots */
.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); }

/* 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-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);
}

/* ============================================================
   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 · CASO EM DESTAQUE
   ============================================================ */
.works { padding-bottom: 140px; }
.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: 280px;
  justify-content: center;
}
.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);
  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 — em produção */
.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-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 .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;
  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);
}

/* ============================================================
   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, #0a0a0c 0%, #161618 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 {
  /* iridescent edge — visible on hover */
  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;       /* sits over the icon center when collapsed */
  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; }
  /* on mobile: always show the number compactly */
  .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, .diff-head { grid-template-columns: 1fr; gap: 40px; }
  .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; }
  .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; }
}
