/* ==========================================================================
   Agência CODIG — design system
   Mobile-first. Every size is fluid (clamp) so the layout adapts instead of
   shrinking. Colours come from the official CODIG palette.
   ========================================================================== */

:root {
  /* ---- brand palette (official CODIG tokens) ---- */
  --void: #050807;          /* near-black cinematic base */
  --ink: #0A130E;           /* lifted panel */
  --darkest: #0C2417;       /* brand DARKEST */
  --forest: #163521;        /* brand DEEP */
  --lime: #CBFC2E;          /* brand LIME */
  --mist: #DDF8EF;          /* brand MIST */

  --text: var(--mist);
  --text-dim: rgba(221, 248, 239, 0.62);
  --text-faint: rgba(221, 248, 239, 0.38);
  --line: rgba(221, 248, 239, 0.12);
  --line-strong: rgba(203, 252, 46, 0.34);
  --lime-soft: rgba(203, 252, 46, 0.09);

  /* ---- type ---- */
  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'DejaVu Sans Mono', ui-monospace, monospace;

  /* ---- rhythm ---- */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(76px, 11vw, 168px);
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- safe areas (notches, home indicator) ---- */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* height:auto keeps the HTML width/height attributes from forcing a stretched
   box — the attributes stay for aspect-ratio (no layout shift while loading) */
img { display: block; max-width: 100%; height: auto; }
svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-weight: 700;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--darkest); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--lime); color: var(--darkest);
  padding: 12px 18px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-l));
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.4vw, 11.5px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.eyebrow::before {
  content: '';
  width: clamp(18px, 4vw, 30px);
  height: 1px;
  background: var(--lime);
  flex: none;
}

.h-display {
  font-size: clamp(30px, 7.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.h-section {
  font-size: clamp(26px, 5.4vw, 46px);
  font-weight: 700;
}
.h-sub {
  font-size: clamp(19px, 3.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(16px, 2.3vw, 19px);
  color: var(--text-dim);
  max-width: 62ch;
}
.body-dim { color: var(--text-dim); }
.accent { color: var(--lime); }
.mono {
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 2.2vw, 12px);
  letter-spacing: 0.1em;
}

/* ---------- buttons (touch targets >= 44px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 2.6vw, 15px);
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--lime); color: var(--darkest); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(203, 252, 46, 0.22); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--lime); background: var(--lime-soft); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-top: var(--safe-t);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(5, 8, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px max(var(--gutter), var(--safe-l));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav__logo img { height: clamp(19px, 3.6vw, 24px); width: auto; }
.nav__links { display: none; }
.nav__cta { display: none; }

.nav__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-right: -6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__burger span {
  position: relative;
  width: 17px; height: 1.5px;
  background: var(--text);
  transition: background 0.2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: var(--text);
  transition: transform 0.32s var(--ease);
}
.nav__burger span::before { top: -5.5px; }
.nav__burger span::after { top: 5.5px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-5.5px) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(5, 8, 7, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--safe-t) + 84px) max(var(--gutter), var(--safe-l))
           calc(var(--safe-b) + 40px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease), visibility 0.36s;
}
.nav__panel[hidden] { display: none; }
.nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__panel a {
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.nav__panel a span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; }
.nav__panel .btn { margin-top: auto; }

@media (min-width: 900px) {
  .nav__burger { display: none; }
  .nav__panel { display: none; }
  .nav__links {
    display: flex;
    gap: clamp(18px, 2.4vw, 34px);
    font-size: 14px;
    color: var(--text-dim);
  }
  .nav__links a { position: relative; padding: 6px 0; transition: color 0.25s; }
  .nav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
  }
  .nav__links a:hover { color: var(--text); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 20px;
    font-size: 13.5px;
  }
}

/* ==========================================================================
   STORY — pinned scroll narrative (Marketing + Tecnologia = CODIG)
   ========================================================================== */
.story {
  position: relative;
  /* the scroll distance that drives the animation */
  height: 430vh;
}
.story__viewport {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(22, 53, 33, 0.5) 0%, transparent 62%),
    var(--void);
}
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.story__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(203, 252, 46, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 252, 46, 0.045) 1px, transparent 1px);
  background-size: clamp(38px, 8vw, 66px) clamp(38px, 8vw, 66px);
  mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 78%);
}

.story__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-t) + 72px) max(var(--gutter), var(--safe-l))
           calc(var(--safe-b) + 56px);
  pointer-events: none;
}

.story__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 12vw, 118px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  will-change: transform, opacity, filter;
}
.story__word--tech { color: var(--lime); }

.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: center;
  max-width: min(420px, 88vw);
  margin-top: clamp(14px, 3vw, 22px);
}
.story__tag {
  font-family: var(--font-mono);
  font-size: clamp(9px, 2.2vw, 11px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  will-change: transform, opacity;
}
.story__tag--tech { border-color: var(--line-strong); color: var(--lime); }

.story__stage { text-align: center; }

.story__equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.4vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.story__equation b { color: var(--lime); font-weight: 700; }

.story__logo {
  width: clamp(180px, 42vw, 340px);
  will-change: opacity, transform;
}

/* ---------- a lâmpada oficial acendendo com o logo ----------
   --lit vai de 0 (apagada) a 1 (acesa) e é escrito pelo scroll em story.js.
   Só opacidade e transform são animados; o brilho é um gradiente, não um
   box-shadow gigante, para não pesar no celular. */
.story__mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vw, 14px);
  --lit: 0;
}
.story__mark-halo {
  position: absolute;
  left: 50%; top: 34%;
  width: clamp(230px, 46vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(203, 252, 46, 0.15) 0%, rgba(203, 252, 46, 0.05) 34%, transparent 66%);
  opacity: var(--lit);
  pointer-events: none;
  z-index: 0;
}
.story__bulb {
  position: relative;
  z-index: 1;
  width: clamp(42px, 8.5vw, 74px);
  display: block;
  filter: brightness(calc(0.34 + 0.66 * var(--lit)))
          saturate(calc(0.22 + 0.78 * var(--lit)));
}
.story__bulb img { width: 100%; position: relative; z-index: 1; }

/* halo próprio da lâmpada — raio contido para nunca vazar da tela */
.story__bulb-glow {
  position: absolute;
  left: 50%; top: 62%;
  width: clamp(150px, 26vw, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: var(--lit);
  pointer-events: none;
  z-index: 0;
}
.story__bulb-glow i {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 252, 46, 0.42) 0%, rgba(203, 252, 46, 0.16) 38%, transparent 70%);
  transform: scale(0.82);
  transition: transform 0.6s var(--ease);
}
/* respiração suave, só depois de acesa */
.story__mark.is-lit .story__bulb-glow i {
  animation: bulbBreath 4.2s var(--ease) infinite;
}
@keyframes bulbBreath {
  0%, 100% { transform: scale(0.94); opacity: 0.88; }
  50%      { transform: scale(1.04); opacity: 1; }
}
.story__mark .story__logo { position: relative; z-index: 1; }

.story__hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 22px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: opacity 0.5s var(--ease);
}
.story__hint i {
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: hintPulse 2.1s var(--ease) infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* progress rail for the pinned story */
.story__progress {
  position: absolute;
  right: max(14px, var(--safe-r));
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: min(190px, 26vh);
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: none;
}
.story__progress i {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(203, 252, 46, 0.6);
}
@media (min-width: 900px) { .story__progress { display: block; } }

/* ==========================================================================
   BRAND MESSAGE (stage 6)
   ========================================================================== */
.manifesto { text-align: center; }
.manifesto .h-display { max-width: 20ch; margin-inline: auto; }
.manifesto .lead { margin: clamp(18px, 3vw, 26px) auto 0; }
.manifesto .btn-row { justify-content: center; margin-top: clamp(28px, 4vw, 40px); }

/* ==========================================================================
   GENERIC BLOCKS
   ========================================================================== */
.block-head { max-width: 74ch; }
.block-head .h-section + .lead { margin-top: clamp(14px, 2.4vw, 20px); }

.grid-2 { display: grid; gap: clamp(28px, 5vw, 56px); }
.grid-3 { display: grid; gap: clamp(16px, 2.6vw, 22px); }
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3.4vw, 30px);
  background: linear-gradient(180deg, rgba(22, 53, 33, 0.22), rgba(10, 19, 14, 0.5));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.card h3 { font-size: clamp(17px, 2.6vw, 20px); margin: 12px 0 8px; font-weight: 600; }
.card p { color: var(--text-dim); font-size: clamp(14px, 2.2vw, 15px); }

/* ==========================================================================
   QUEM SOMOS
   ========================================================================== */
.about__statement {
  font-size: clamp(21px, 4.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 24ch;
}
.about__statement em { font-style: normal; color: var(--lime); }
.about__list { display: grid; gap: 0; margin-top: clamp(8px, 2vw, 14px); }
.about__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(14px, 2.3vw, 15.5px);
  color: var(--text-dim);
}
.about__list li b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--lime);
  flex: none;
  width: 26px;
}

/* ==========================================================================
   POSICIONAMENTO — "Marketing mudou."
   ========================================================================== */
.shift { position: relative; overflow: hidden; }
.shift__grid { display: grid; gap: 0; margin-top: clamp(30px, 5vw, 54px); }
.shift__side { padding: clamp(24px, 4vw, 40px) 0; border-top: 1px solid var(--line); }
.shift__side:last-child { border-bottom: 1px solid var(--line); }
.shift__side .mono { color: var(--text-faint); text-transform: uppercase; display: block; margin-bottom: 12px; }
.shift__side p {
  font-size: clamp(18px, 3.4vw, 25px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.shift__side p b { color: var(--text-faint); font-weight: 500; }
.shift__answer {
  margin-top: clamp(30px, 5vw, 52px);
  font-size: clamp(21px, 4.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 22ch;
}
.shift__answer span { color: var(--lime); }

@media (min-width: 820px) {
  .shift__grid { grid-template-columns: 1fr 1px 1fr; gap: clamp(30px, 4vw, 58px); }
  .shift__side { border-top: 0; border-bottom: 0 !important; padding-block: 0; }
  .shift__divider { background: var(--line); width: 1px; }
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.svc__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.svc__tabs::-webkit-scrollbar { display: none; }
.svc__tab {
  flex: none;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.svc__tab[aria-selected="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--darkest);
  font-weight: 700;
}

.svc__panel { display: none; }
.svc__panel.is-active { display: block; animation: fadeUp 0.5s var(--ease-out) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

.svc__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.svc__panel-head h3 { font-size: clamp(22px, 4.4vw, 32px); }
.svc__panel-head p { color: var(--text-dim); font-size: clamp(14px, 2.3vw, 16px); max-width: 52ch; }

.svc__items { display: grid; gap: 0; }
.svc__item { border-top: 1px solid var(--line); }
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 15px 2px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(15.5px, 2.7vw, 18px);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.svc__trigger:hover { padding-left: 8px; }
.svc__item.is-open .svc__trigger { color: var(--lime); }
.svc__sign {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}
.svc__sign::before,
.svc__sign::after {
  content: '';
  position: absolute;
  inset: 50% 5px auto;
  height: 1px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease);
}
.svc__sign::after { transform: translateY(-50%) rotate(90deg); }
.svc__item.is-open .svc__sign::after { transform: translateY(-50%) rotate(0deg); }
.svc__detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease);
}
.svc__detail p {
  color: var(--text-dim);
  font-size: clamp(14px, 2.2vw, 15.5px);
  padding: 0 2px 18px;
  max-width: 62ch;
}

/* ==========================================================================
   ECOSSISTEMA (interactive diagram)
   ========================================================================== */
.eco { position: relative; }
@media (min-width: 980px) {
  /* editorial split: the argument on the left, the system on the right */
  .eco__inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
  }
  .eco__inner .block-head { max-width: none; }
  .eco__stage { margin-top: 0; }
}
.eco__stage {
  position: relative;
  margin-top: clamp(26px, 4vw, 44px);
  aspect-ratio: 620 / 560;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}
.eco__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco__link {
  stroke: rgba(203, 252, 46, 0.34);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 5;
  animation: dashFlow 2.6s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -18; }
}
.eco__node-c { fill: rgba(5, 8, 7, 0.9); stroke: var(--line-strong); stroke-width: 1; }
.eco__node-c.is-core { stroke: var(--lime); stroke-width: 1.6; }
.eco__node-t {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  fill: var(--text-dim);
  text-anchor: middle;
  text-transform: uppercase;
}
.eco__node-t.is-core { fill: var(--lime); font-weight: 700; }
.eco__pulse { fill: var(--lime); }

/* ==========================================================================
   PROCESSO
   ========================================================================== */
.proc { display: grid; gap: 0; margin-top: clamp(26px, 4vw, 46px); position: relative; }
.proc__rail {
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.proc__rail i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(203, 252, 46, 0.55);
}
.proc__step {
  position: relative;
  padding: clamp(16px, 2.6vw, 22px) 0 clamp(16px, 2.6vw, 22px) 44px;
  opacity: 0.42;
  transition: opacity 0.5s var(--ease);
}
.proc__step.is-on { opacity: 1; }
.proc__step::before {
  content: '';
  position: absolute;
  left: 6px; top: calc(clamp(16px, 2.6vw, 22px) + 8px);
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--void);
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.proc__step.is-on::before { background: var(--lime); border-color: var(--lime); }
.proc__step .mono { color: var(--lime); display: block; margin-bottom: 6px; }
.proc__step h3 { font-size: clamp(17px, 2.9vw, 21px); font-weight: 600; margin-bottom: 6px; }
.proc__step p { color: var(--text-dim); font-size: clamp(14px, 2.2vw, 15.5px); max-width: 58ch; }
@media (min-width: 900px) {
  .proc { grid-template-columns: repeat(2, 1fr); column-gap: clamp(30px, 4vw, 60px); }
  .proc__rail { left: 11px; }
  .proc__step:nth-child(even) { padding-left: 44px; }
}

/* ==========================================================================
   OPERAÇÃO INTEGRADA (flow)
   ========================================================================== */
.flow {
  margin-top: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3.4vw, 34px);
  background: linear-gradient(180deg, rgba(22, 53, 33, 0.2), rgba(5, 8, 7, 0.4));
  overflow: hidden;
}
.flow__track {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow__node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}
.flow__node .dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
.flow__node.is-lit .dot { background: var(--lime); box-shadow: 0 0 12px rgba(203, 252, 46, 0.7); }
.flow__node span {
  font-family: var(--font-mono);
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.4s;
}
.flow__node.is-lit span { color: var(--text); }
.flow__connector { width: 1px; height: 16px; background: var(--line); margin-left: 4px; }
.flow__caption { margin-top: 18px; color: var(--text-faint); font-size: clamp(13px, 2.1vw, 14.5px); }

@media (min-width: 860px) {
  .flow__track { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
  .flow__node { flex-direction: column; gap: 10px; text-align: center; padding: 0; }
  .flow__connector { width: auto; flex: 1; height: 1px; margin: 0 8px; align-self: flex-start; margin-top: 4px; }
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.diff { display: grid; gap: 0; margin-top: clamp(24px, 4vw, 40px); }
.diff__item {
  display: flex;
  gap: 16px;
  padding: clamp(15px, 2.4vw, 20px) 0;
  border-top: 1px solid var(--line);
}
.diff__item:last-child { border-bottom: 1px solid var(--line); }
.diff__item b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--lime);
  flex: none;
  width: 28px;
  padding-top: 4px;
}
.diff__item h3 { font-size: clamp(15.5px, 2.5vw, 17.5px); font-weight: 600; margin-bottom: 4px; }
.diff__item p { color: var(--text-dim); font-size: clamp(13.5px, 2.1vw, 15px); }
@media (min-width: 820px) {
  .diff { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 4vw, 64px); }
  .diff__item:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   PILLAR BLOCKS (tecnologia / criativo / dados)
   ========================================================================== */
.pillar { position: relative; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 3vw, 26px); }
.pillar__tags span {
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.2vw, 11.5px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
}

/* abstract, deliberately unlabelled data visual — no invented metrics */
.viz {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.6vw, 12px);
  height: clamp(120px, 22vw, 190px);
  padding: clamp(18px, 3vw, 26px);
}
.viz i {
  flex: 1;
  background: linear-gradient(180deg, var(--lime), rgba(203, 252, 46, 0.18));
  border-radius: 3px 3px 0 0;
  height: 8%;
  transition: height 1.15s var(--ease-out);
}
.viz.is-in i:nth-child(1) { height: 32%; }
.viz.is-in i:nth-child(2) { height: 54%; }
.viz.is-in i:nth-child(3) { height: 41%; }
.viz.is-in i:nth-child(4) { height: 68%; }
.viz.is-in i:nth-child(5) { height: 57%; }
.viz.is-in i:nth-child(6) { height: 86%; }
.viz.is-in i:nth-child(7) { height: 74%; }

.node-visual { padding: clamp(18px, 3vw, 28px); }
.node-visual svg { width: 100%; height: auto; overflow: visible; }

/* ==========================================================================
   CREDIBILIDADE
   ========================================================================== */
.proof {
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(22, 53, 33, 0.14);
  margin-top: clamp(24px, 4vw, 38px);
}
.proof .mono { color: var(--lime); display: block; margin-bottom: 14px; }
.proof p { color: var(--text-dim); max-width: 66ch; }

/* ==========================================================================
   CTA FINAL + CONTATO
   ========================================================================== */
.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(22, 53, 33, 0.6) 0%, transparent 64%),
    var(--void);
}
.cta__mark {
  position: absolute;
  left: 50%; top: 50%;
  width: min(560px, 76vw);
  transform: translate(-50%, -50%);
  opacity: 0.045;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta__inner .h-display { max-width: 18ch; margin-inline: auto; }
.cta__answer {
  margin-top: clamp(16px, 2.6vw, 22px);
  font-size: clamp(19px, 3.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.contact {
  display: grid;
  gap: 10px;
  margin-top: clamp(30px, 5vw, 46px);
  max-width: 520px;
  margin-inline: auto;
  text-align: left;
}
.contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 19, 14, 0.6);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s;
}
.contact a:hover { border-color: var(--lime); transform: translateY(-2px); background: rgba(22, 53, 33, 0.4); }
.contact .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
}
.contact .value { font-weight: 600; font-size: clamp(14.5px, 2.4vw, 16px); }
.contact .arrow { color: var(--lime); font-family: var(--font-mono); }

/* persistent mobile whatsapp CTA */
.float-cta {
  position: fixed;
  left: max(var(--gutter), var(--safe-l));
  right: max(var(--gutter), var(--safe-r));
  bottom: calc(var(--safe-b) + 14px);
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.float-cta.is-on { opacity: 1; transform: none; }
.float-cta .btn {
  pointer-events: auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 380px;
}
@media (min-width: 900px) { .float-cta { display: none; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px) calc(var(--safe-b) + clamp(90px, 14vw, 40px));
  background: #000;
}
@media (min-width: 900px) { .footer { padding-bottom: clamp(30px, 4vw, 44px); } }
.footer__top { display: grid; gap: clamp(28px, 4vw, 40px); }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: var(--text-dim); font-size: 14px; max-width: 32ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer__col a {
  display: block;
  padding: 7px 0;
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.22s;
}
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  margin-top: clamp(30px, 5vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12.5px;
}

/* ==========================================================================
   REDUCED MOTION — keep the narrative, drop the movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .story { height: auto; }
  .story__viewport {
    position: relative; height: auto; min-height: 0;
    padding: calc(var(--safe-t) + 96px) var(--gutter) var(--section-y);
    display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 4vw, 34px);
  }
  .story__layer { position: relative; inset: auto; padding: 0; display: block; width: 100%; }
  /* the offsets that separate the layers while pinned would leave large gaps
     in the static flow — the flex gap handles the rhythm instead */
  .story__stage { margin-top: 0 !important; }
  .story__word { font-size: clamp(30px, 9vw, 64px); display: block; text-align: center; }
  .story__logo { margin-inline: auto; width: min(320px, 78%) !important; }
  .story__canvas, .story__hint, .story__progress { display: none; }
  .proc__step { opacity: 1; }
  .flow__node .dot { background: var(--lime); }
  .viz i { transition: none; }
}

/* ==========================================================================
   ENTREGA DE RELATÓRIO — dados → relatório → entrega → cliente
   Dirigida pelo scroll (mesma arquitetura da abertura). Só transform e
   opacity são animados, para rodar leve no celular.
   ========================================================================== */
.report { position: relative; height: 250vh; }
.report__viewport {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(62px, 9vh, 118px);
  overflow-x: clip;
}

.report__scene {
  position: relative;
  margin-top: clamp(14px, 3vw, 38px);
  display: grid;
  gap: clamp(10px, 2.4vw, 26px);
  align-items: center;
  justify-items: center;
  perspective: 1100px;
  /* telefone: percurso vertical, acompanhando o polegar */
  grid-template-rows: auto auto auto;
}
@media (min-width: 860px) {
  /* desktop: agência à esquerda, cliente à direita */
  .report__scene { grid-template-columns: 1fr auto 1fr; grid-template-rows: none; gap: clamp(20px, 3vw, 44px); }
}

.report__pole { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.report__tag { color: var(--text-faint); text-transform: uppercase; }

/* --- estágio 1: os dados de performance --- */
.report__data {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 7px;
  max-width: min(340px, 94%);
  min-height: clamp(64px, 13vw, 150px);
}
.report__bit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--text-dim);
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.9);
  will-change: transform, opacity;
}
.report__bit svg { width: clamp(30px, 6vw, 42px); height: auto; }
.report__bit--chip {
  font-family: var(--font-mono);
  font-size: clamp(9px, 2.1vw, 10.5px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.report__bit--chip.is-done { color: var(--lime); border-color: var(--line-strong); }

/* --- o caminho entre agência e cliente --- */
.report__link {
  position: relative;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  width: 2px;
  height: clamp(34px, 6vh, 84px);
  justify-self: center;
}
@media (min-width: 860px) { .report__link { width: clamp(70px, 12vw, 190px); height: 2px; } }
.report__link i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: linear-gradient(to bottom, transparent, var(--lime));
  box-shadow: 0 0 10px rgba(203, 252, 46, 0.5);
}
@media (min-width: 860px) {
  .report__link i { inset: 0 auto 0 0; width: 0%; height: 100%;
    background: linear-gradient(to right, transparent, var(--lime)); }
}

/* --- estágio 4: o dispositivo do cliente --- */
.report__device { display: flex; flex-direction: column; align-items: center; }
.report__screen {
  position: relative;
  width: clamp(114px, 21vw, 240px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 53, 33, 0.28), rgba(5, 8, 7, 0.6));
  overflow: hidden;
  transition: border-color 0.5s var(--ease);
}
@media (min-width: 860px) { .report__screen { aspect-ratio: 16 / 10; border-radius: 12px; width: clamp(190px, 24vw, 300px); } }
.report__device.is-on .report__screen { border-color: var(--line-strong); }
.report__screen-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(203, 252, 46, 0.16), transparent 68%);
  opacity: 0;
}
.report__base {
  width: clamp(150px, 20vw, 240px);
  height: 6px;
  margin-top: 5px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(221, 248, 239, 0.16), rgba(221, 248, 239, 0.04));
  display: none;
}
@media (min-width: 860px) { .report__base { display: block; } }

/* --- estágio 2/3: o relatório que se forma e viaja --- */
.report__doc {
  position: absolute;
  left: 0; top: 0;
  width: clamp(88px, 13vw, 168px);
  padding: 9px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(16, 34, 24, 0.96), rgba(8, 16, 12, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: none;
}
.report__doc header { display: flex; align-items: center; gap: 5px; }
.report__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; }
.report__bar { height: 4px; border-radius: 3px; background: rgba(221, 248, 239, 0.5); display: block; }
.report__bar--soft { background: rgba(221, 248, 239, 0.2); }
.report__chart { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.report__chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--lime), rgba(203, 252, 46, 0.25)); }
.report__lines { display: flex; flex-direction: column; gap: 4px; }
.report__chip {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 7px;
  display: inline-block;
}

.report__note {
  margin-top: clamp(10px, 2vw, 22px);
  color: var(--text-faint);
  text-align: center;
}

/* --- as três frases: a conclusão, logo depois da cena --- */
.section--payoff { padding-block: clamp(30px, 5vw, 56px) clamp(50px, 8vw, 96px); }
.report__phrases {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
}
@media (min-width: 820px) { .report__phrases { grid-template-columns: repeat(3, 1fr); } }
.report__phrases li {
  border-top: 1px solid var(--line);
  padding-top: clamp(10px, 1.8vw, 14px);
}
.report__phrases b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.report__phrases span { color: var(--text-dim); font-size: clamp(13px, 2.1vw, 14.5px); }

/* --- movimento reduzido: estado final, sem viagem --- */
@media (prefers-reduced-motion: reduce) {
  .report { height: auto; }
  .report__viewport { position: relative; min-height: 0; padding-block: var(--section-y); overflow: visible; }
  .report__bit { opacity: 1; transform: none; }
  .report__doc { position: relative; opacity: 1; transform: none; margin: 20px auto 0; }
  .report__link i { height: 100%; width: 100%; }
  .report__screen-glow { opacity: 1; }
}

/* telas muito baixas (ex.: 320x568): a cena encolhe para caber inteira */
@media (max-height: 640px) and (max-width: 859px) {
  .report__viewport { padding-block: 56px 14px; }
  .report .h-section { font-size: 21px; }
  .report .eyebrow { margin-bottom: 10px; }
  .report__note { display: none; }
  .report__scene { margin-top: 10px; gap: 8px; }
  .report__data { min-height: 52px; gap: 5px; }
  .report__link { height: 24px; }
  .report__screen { width: 92px; }
  .report__doc { width: 74px; padding: 7px; }
  .report__chart { height: 30px; }
}
