/* ==========================================================================
   DMT12 — papel de prancheta, grafite e um azul só
   ========================================================================== */

:root {
  --paper: #E9E8E3;
  --paper-2: #E0DED7;
  --paper-3: #F3F2EE;
  --ink: #14171C;
  --ink-2: #3B4049;
  --ink-3: #5B606A;
  --line: rgba(20, 23, 28, 0.15);
  --line-2: rgba(20, 23, 28, 0.07);

  --blue: #1F5FE0;
  --blue-deep: #1748B3;
  --blue-night: #7AA3FF;

  --night: #121418;
  --night-2: #1B1E24;
  --night-ink: #ECEBE6;
  --night-ink-2: #A9ADB5;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(18px, 4.2vw, 68px);
  --nav-h: 68px;
  --section-y: clamp(96px, 15vh, 200px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --t-hero: clamp(2.3rem, 1.15rem + 4.1vw, 5.5rem);
  --t-h2: clamp(2rem, 1.15rem + 2.6vw, 3.9rem);
  --t-h3: clamp(1.45rem, 1.1rem + 1vw, 2.05rem);

  /* valores dirigidos pela rolagem (main.js) */
  --hero-out: 0;
  --inter: 0;
  --panel: 0;
  --tags: 0;
  --outro: 0;
}

/* --- base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.mono {
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kicker { color: var(--blue); margin-bottom: 22px; }

.h2 {
  font-size: var(--t-h2);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.muted { color: var(--ink-3); max-width: 46ch; text-wrap: pretty; }

/* --- botões ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px;
  border-radius: 3px;
  font: 600 15px/1 var(--f-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); color: #fff; }
.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* --- navegação ------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { height: 33px; width: auto; }
.brand__word { height: 19px; width: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  position: relative;
  font-size: 14.5px; font-weight: 520; text-decoration: none; color: var(--ink-2);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* --- palco: herói + vista explodida --------------------------------------- */

.stage { position: relative; height: 560vh; }

.stage__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

.stage__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px),
    linear-gradient(rgba(20, 23, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, 0.055) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 66% 52%, #000 10%, rgba(0, 0, 0, .35) 55%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 80% at 66% 52%, #000 10%, rgba(0, 0, 0, .35) 55%, transparent 85%);
}

.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.stage__fallback {
  display: none;
  position: absolute; right: 8vw; top: 50%;
  width: min(38vw, 460px); height: auto;
  transform: translateY(-50%);
}
.no-webgl .stage__fallback { display: block; }
.no-webgl .stage__canvas, .no-webgl .tags, .no-webgl .leaders { display: none; }

/* marcas de corte nos cantos do palco */
.marks i {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--ink-3); border-style: solid; border-width: 0;
  opacity: .55;
}
.marks i:nth-child(1) { left: calc(var(--gutter) - 10px); top: calc(var(--nav-h) + 14px); border-left-width: 1px; border-top-width: 1px; }
.marks i:nth-child(2) { right: calc(var(--gutter) + 10px); top: calc(var(--nav-h) + 14px); border-right-width: 1px; border-top-width: 1px; }
.marks i:nth-child(3) { left: calc(var(--gutter) - 10px); bottom: 14px; border-left-width: 1px; border-bottom-width: 1px; }
.marks i:nth-child(4) { right: calc(var(--gutter) + 10px); bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }

/* herói */
.hero {
  position: absolute; inset: 0;
  padding: var(--nav-h) var(--gutter) 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: calc(1 - var(--hero-out));
  transform: translateY(calc(var(--hero-out) * -56px));
  visibility: visible;
  pointer-events: none;
}
.hero > * { pointer-events: auto; }
.stage.is-past-hero .hero { visibility: hidden; }

.hero__inner { max-width: min(47vw, 720px); margin-top: -2vh; }

.hero__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.dot {
  width: 7px; height: 7px; background: var(--blue); border-radius: 1px;
  box-shadow: 0 0 0 4px rgba(31, 95, 224, .14);
}

.hero__title {
  margin: 26px 0 28px;
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 0.04em 0.08em 0; margin-bottom: -0.08em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d) * 90ms + 150ms);
}
.is-ready .hero__title .line > span { transform: none; }

.ghost {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
  transition: color .5s var(--ease), -webkit-text-stroke-color .5s, transform 1.1s var(--ease) !important;
}
.hero__title:hover .ghost { color: var(--blue); -webkit-text-stroke-color: var(--blue); }

.hero__lead {
  max-width: 40ch;
  font-size: clamp(1.02rem, 0.92rem + 0.35vw, 1.24rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.hero__services { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero__services li::before { content: "/ "; color: var(--blue); }
.hero__cue span { display: inline-block; animation: nudge 2.2s var(--ease) infinite; color: var(--blue); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* entrada orquestrada */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d) * 90ms + 150ms);
}
.is-ready .reveal { opacity: 1; transform: none; }

/* intertítulo */
.inter {
  position: absolute; left: var(--gutter); top: 50%;
  max-width: min(42vw, 640px);
  font-size: var(--t-h2); font-weight: 760; letter-spacing: -0.035em; line-height: 1.03;
  text-wrap: balance;
  opacity: var(--inter);
  transform: translateY(calc(-50% + (1 - var(--inter)) * 26px));
  pointer-events: none;
}
.inter em { font-style: normal; color: var(--blue); }

/* painel das camadas */
.explain {
  position: absolute; left: var(--gutter); top: 50%;
  width: min(36vw, 500px); height: min(440px, 62vh);
  transform: translateY(-46%);
  opacity: var(--panel);
  pointer-events: none;
  scroll-margin-top: 0;
}
.stage.is-explaining .explain { pointer-events: auto; }

.explain__meter { display: flex; gap: 6px; margin-bottom: 30px; }
.explain__meter i {
  height: 3px; flex: 1; background: var(--line);
  position: relative; overflow: hidden;
}
.explain__meter i::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  transform: scaleX(var(--fill, 0)); transform-origin: left;
}

.layer-panel {
  position: absolute; left: 0; right: 0; top: 33px;
  opacity: 0; visibility: hidden;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s;
}
.layer-panel.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .55s var(--ease) .08s, transform .7s var(--ease) .08s, visibility 0s;
}
.layer-panel__kicker { color: var(--blue); }
.layer-panel__title {
  margin: 14px 0 10px;
  font-size: clamp(2.4rem, 1.4rem + 3vw, 4.4rem);
  font-weight: 820; font-stretch: 112%;
  letter-spacing: -0.045em; line-height: .95;
}
.layer-panel__lead {
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  font-weight: 620; letter-spacing: -0.015em; line-height: 1.25;
  margin-bottom: 14px;
}
.layer-panel__body { color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.layer-panel__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.layer-panel__list li {
  padding: 6px 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-3) 70%, transparent);
  color: var(--ink-2);
}

/* fechamento do palco */
.outro {
  position: absolute; left: var(--gutter); top: 50%;
  opacity: var(--outro);
  transform: translateY(calc(-50% + (1 - var(--outro)) * 26px));
  pointer-events: none;
}
.outro__title {
  font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.045em; line-height: .95;
}
.outro__sub { margin-top: 22px; color: var(--ink-3); }

/* etiquetas presas às camadas */
.leaders, .tags { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--tags); }
.leaders line { stroke: var(--ink-3); stroke-width: 1; }
.leaders circle { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.2; }
.leaders .is-active line, .leaders line.is-active { stroke: var(--blue); }
.leaders circle.is-active { fill: var(--blue); stroke: var(--blue); }

.tag {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 7px;
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
  background: var(--paper-3); color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
  will-change: transform;
  transition: background .3s, color .3s, border-color .3s;
}
.tag b {
  font-weight: 600; padding: 2px 5px;
  background: var(--ink); color: var(--paper);
}
.tag.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag.is-active b { background: #fff; color: var(--blue); }

.figcap {
  position: absolute; right: calc(var(--gutter) + 12px); bottom: 30px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  color: var(--ink-3);
  opacity: var(--tags);
}
.figcap b { color: var(--blue); font-weight: 600; }

/* --- manifesto ------------------------------------------------------------- */

.manifesto {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  padding: var(--section-y) var(--gutter);
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.manifesto .kicker { color: var(--blue-night); }
.manifesto__text {
  max-width: 21ch;
  font-size: clamp(2rem, 0.9rem + 4.1vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.manifesto__text em { font-style: normal; color: var(--blue-night); }
.manifesto__text .w { opacity: .17; transition: opacity .45s var(--ease); }
.manifesto__text .w.on { opacity: 1; }
.manifesto__foot {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 64px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--night-ink-2);
}
.manifesto__foot span::before { content: "— "; color: var(--blue-night); }

/* --- projetos (trilho lateral) --------------------------------------------- */

.cases { position: relative; background: var(--paper); }
.cases__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
}
.rail {
  display: flex; align-items: stretch; gap: 22px;
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}
.rail__intro {
  flex: none; width: min(34vw, 470px);
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 3vw;
}
.rail__intro .muted { margin-top: 22px; }

.sheet {
  position: relative; flex: none;
  width: clamp(330px, 29vw, 430px);
  min-height: min(60vh, 520px);
  display: flex; flex-direction: column;
  padding: 24px 26px 26px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 0 solid var(--blue);
}
.sheet::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.sheet::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.sheet:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(20, 23, 28, .35); }

.sheet__head {
  display: flex; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.sheet__head span:last-child { color: var(--blue); }
.sheet__title {
  margin: 26px 0 0;
  font-size: var(--t-h3); font-weight: 760; letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance;
}
.sheet__body { color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.sheet__tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: auto; padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
}
.sheet__body { margin-bottom: 22px; }

/* esquema do fluxo: cubo — linha — cubo — linha — cubo */
.flow {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr;
  align-items: start;
  margin: 30px 0 26px;
  padding: 20px 6px 16px;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--line-2);
}
.flow__node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.flow__node svg { width: 38px; height: 38px; --cube-top: #D4D3CE; --cube-left: #9EA2A9; --cube-right: #6F747C; }
.flow__node.is-core svg { width: 46px; height: 46px; margin-top: -4px; --cube-top: #4F86F0; --cube-left: #1F5FE0; --cube-right: #1748B3; }
.flow__node span {
  font-family: var(--f-mono); font-stretch: 75%; font-size: 9.5px; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .01em; color: var(--ink-2);
  max-width: 11ch;
}
.flow__node.is-core span { color: var(--blue); font-weight: 600; }
.flow__link {
  position: relative; height: 1px; margin-top: 19px;
  background-image: linear-gradient(90deg, var(--ink-3) 50%, transparent 0);
  background-size: 6px 1px;
}
.flow__link::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  border: 3.5px solid transparent; border-left: 5px solid var(--ink-3); border-right: 0;
}
.flow__link i {
  position: absolute; left: 0; top: -2.5px; width: 6px; height: 6px;
  background: var(--blue);
  animation: travel 2.4s linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

.cases__bar {
  display: flex; align-items: center; gap: 18px;
  margin: 34px var(--gutter) 0;
  color: var(--ink-3);
}
.cases__track { flex: 1; max-width: 320px; height: 1px; background: var(--line); position: relative; }
.cases__track i {
  position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--blue);
  transform: scaleX(var(--q, 0)); transform-origin: left;
}

/* --- método ---------------------------------------------------------------- */

.method {
  display: grid; grid-template-columns: 5fr 7fr; gap: 7vw;
  padding: var(--section-y) var(--gutter);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.method__head { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
.method__head .muted { margin-top: 24px; }

.steps { position: relative; padding-left: 64px; }
.steps::before {
  content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px;
  background: var(--line);
}
.steps__fill {
  position: absolute; left: 10px; top: 10px; bottom: 10px; width: 3px;
  background: var(--blue);
  transform: scaleY(var(--fill, 0)); transform-origin: top;
}
.step { position: relative; padding-bottom: clamp(56px, 9vh, 96px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -64px; top: 3px;
  width: 23px; height: 23px;
  background: var(--paper-2); border: 1px solid var(--ink-3);
  transform: rotate(45deg) scale(.62);
  transition: background .35s, border-color .35s, transform .5s var(--ease);
}
.step.is-on::before { background: var(--blue); border-color: var(--blue); transform: rotate(45deg) scale(.78); }
.step__n { color: var(--ink-3); transition: color .35s; }
.step.is-on .step__n { color: var(--blue); }
.step__title {
  margin: 12px 0 12px;
  font-size: var(--t-h3); font-weight: 740; letter-spacing: -0.03em; line-height: 1.08;
}
.step p:last-child { color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }

/* --- ficha técnica ---------------------------------------------------------- */

.spec {
  display: grid; grid-template-columns: 5fr 7fr; gap: 7vw;
  padding: var(--section-y) var(--gutter);
}
.spec__head .muted { margin-top: 24px; }
.spec__table { border-bottom: 1px solid var(--line); }
.spec__row {
  display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.spec__row dt { color: var(--blue); }
.spec__row dd { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 520; letter-spacing: -0.012em; }

[data-in] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-in].is-in { opacity: 1; transform: none; }
.no-js [data-in], .reduced [data-in] { opacity: 1; transform: none; }

/* --- contato ---------------------------------------------------------------- */

.contact {
  position: relative; overflow: hidden;
  background: var(--blue);
  color: #fff;
  padding: var(--section-y) var(--gutter) clamp(90px, 13vh, 150px);
}
.contact .kicker { color: rgba(255, 255, 255, .78); }
.contact__iso {
  position: absolute; right: -6vw; top: -10%; bottom: -10%; width: 62vw;
  background-image:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 29.44px);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}
.contact__title {
  position: relative;
  max-width: 17ch;
  font-size: clamp(2.3rem, 1.1rem + 4.3vw, 5.6rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: .97;
  text-wrap: balance;
}
.contact__lead {
  position: relative;
  max-width: 44ch; margin-top: 28px;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  color: rgba(255, 255, 255, .86);
}
.contact__actions {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 36px 64px;
  margin-top: 64px;
}

/* a tecla: um pedaço do logo virou botão */
.magnet { padding: 18px; margin: -18px; }
.key {
  --lift: 10px;
  position: relative; display: block;
  text-decoration: none;
  border-radius: 14px;
  background: #0E2F7A;
  padding-bottom: var(--lift);
  transition: transform .45s var(--ease);
  will-change: transform;
}
.key__cap {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  width: min(420px, 84vw); height: 150px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(160deg, #FFFFFF 0%, #EEF2FB 100%);
  color: var(--blue);
  box-shadow: inset 0 -2px 0 rgba(23, 72, 179, .18), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transform: translateY(0);
  transition: transform .14s ease-out;
}
.key::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -16px; height: 22px;
  background: radial-gradient(ellipse at center, rgba(5, 20, 60, .35), transparent 70%);
  filter: blur(4px); z-index: -1;
}
.key__label { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.key__hint { align-self: flex-end; color: var(--blue); opacity: .7; }
.key:hover .key__cap { transform: translateY(2px); }
.key:active .key__cap { transform: translateY(calc(var(--lift) - 2px)); }

.contact__alt .mono { color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.contact__mail {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size .4s var(--ease);
}
.contact__mail:hover { background-size: 0% 1px; background-position: right bottom; }
.contact__chat {
  display: block; margin-top: 22px; padding: 0;
  border: 0; background: none; color: #fff; cursor: pointer;
  font: 600 15px/1.4 var(--f-sans); text-align: left;
  opacity: .88; transition: opacity .2s;
}
.contact__chat:hover { opacity: 1; text-decoration: underline; }
.contact__chat[hidden] { display: none; }
.contact :focus-visible { outline-color: #fff; }

/* --- rodapé ------------------------------------------------------------------ */

.footer { position: relative; overflow: hidden; padding: 72px var(--gutter) 26px; }
.footer__top { display: grid; grid-template-columns: auto 1fr 1fr; gap: 40px 8vw; align-items: start; }
.footer__logo { width: 168px; height: auto; margin: -18px 0 0 -14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col .mono { color: var(--ink-3); margin-bottom: 6px; }
.footer__col a { text-decoration: none; font-weight: 520; width: fit-content; }
.footer__col a:hover { color: var(--blue); }
.footer__giant {
  margin: 40px 0 -2.3vw;
  font-size: 21.4vw; font-weight: 820; font-stretch: 125%;
  letter-spacing: -0.06em; line-height: .78;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}
.footer__giant span { color: var(--blue); }
.footer__bar {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--paper);
}

/* --- régua lateral ------------------------------------------------------------ */

.ruler {
  position: fixed; right: 0; top: var(--nav-h); bottom: 0; z-index: 40;
  width: 20px;
  pointer-events: none;
}
.ruler::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px 8px) right top / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px 40px) right top / 12px 100% no-repeat;
  mix-blend-mode: difference;
  opacity: .5;
}
.ruler__marker {
  position: absolute; right: 0; top: 0;
  display: flex; align-items: center;
  transform: translateY(var(--y, 0px));
}
.ruler__marker::after {
  content: ""; width: 18px; height: 2px; background: var(--blue);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
}
.ruler__marker span {
  font-family: var(--f-mono); font-size: 9.5px; font-stretch: 75%;
  padding: 2px 4px; margin-right: 4px;
  background: var(--blue); color: #fff;
}

/* --- textura de papel ------------------------------------------------------------ */

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* =================================================================================
   Responsivo
   ================================================================================= */

@media (max-width: 1100px) {
  .ruler { display: none; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__links { display: none; }
  .brand__mark { height: 28px; }
  .brand__word { height: 16px; }

  .stage { height: 520vh; }
  .stage__grid {
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 10%, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 10%, transparent 80%);
  }
  .marks { display: none; }

  .hero { justify-content: flex-start; padding-top: calc(var(--nav-h) + 4vh); }
  .hero__inner { max-width: none; margin-top: 0; }
  .hero__title { font-size: clamp(2.1rem, 9.6vw, 3.4rem); margin: 18px 0 18px; }
  .hero__lead { font-size: 1rem; max-width: 34ch; }
  .hero__ctas { margin-top: 22px; }
  .hero__ctas .btn--line { display: none; }
  .hero__foot { bottom: 18px; }
  .hero__services { display: none; }
  .hero__cue { margin-left: auto; }

  .inter { top: auto; bottom: 8svh; right: var(--gutter); max-width: none; transform: translateY(calc((1 - var(--inter)) * 20px)); font-size: clamp(1.7rem, 7vw, 2.4rem); }

  .explain {
    left: var(--gutter); right: var(--gutter); width: auto;
    top: auto; bottom: 18px; height: 44svh;
    transform: none;
  }
  .explain__meter { margin-bottom: 18px; }
  .layer-panel { top: 21px; }
  .layer-panel__title { font-size: clamp(2rem, 9vw, 2.8rem); margin: 8px 0 8px; }
  .layer-panel__lead { font-size: 1.08rem; margin-bottom: 8px; }
  .layer-panel__body { font-size: 15px; line-height: 1.45; }
  .layer-panel__list { margin-top: 14px; gap: 6px; }
  .layer-panel__list li { padding: 4px 8px; font-size: 10px; }

  .outro { top: auto; bottom: 9svh; transform: translateY(calc((1 - var(--outro)) * 20px)); }
  .outro__title { font-size: clamp(2.1rem, 9.6vw, 3.2rem); }

  .tag { padding: 4px; gap: 0; }
  .tag span { display: none; }
  .tag.is-active span { display: inline; margin-left: 6px; }
  .figcap { display: none; }

  .manifesto { min-height: 0; }
  .manifesto__foot { margin-top: 44px; }

  .cases__sticky { position: relative; height: auto; padding: var(--section-y) 0 calc(var(--section-y) * .7); }
  .rail { flex-direction: column; width: auto; transform: none !important; gap: 16px; }
  .rail__intro { width: auto; padding: 0 0 22px; }
  .sheet { width: auto; min-height: 0; }
  .sheet:hover { transform: none; box-shadow: none; }
  .cases__bar { display: none; }

  .method, .spec { grid-template-columns: 1fr; gap: 48px; }
  .method__head { position: static; }
  .steps { padding-left: 48px; }
  .step::before { left: -48px; }
  .spec__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }

  .contact__actions { margin-top: 44px; }
  .key__cap { height: 128px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; width: 132px; }
  .footer__giant { margin-top: 32px; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .hero__lead { display: none; }
  .layer-panel__list { display: none; }
}

/* "reduzir movimento": a vista explodida segue a rolagem (controlada por quem lê),
   mas some tudo o que se mexe sozinho ou desliza na lateral */
.reduced { scroll-behavior: auto; }
.reduced .reveal, .reduced .hero__title .line > span { opacity: 1; transform: none; transition: none; }
.reduced .hero { transform: none; }
.reduced .inter { transform: translateY(-50%); }
.reduced .outro { transform: translateY(-50%); }
.reduced .layer-panel, .reduced .layer-panel.is-active { transform: none; }
.reduced .hero__cue span { animation: none; }
.reduced .flow__link i { display: none; }
.reduced .cases { height: auto !important; }
.reduced .cases__sticky { position: relative; height: auto; padding: var(--section-y) 0; }
.reduced .rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  width: auto; transform: none !important;
}
.reduced .rail__intro { width: auto; grid-column: 1 / -1; padding-bottom: 24px; }
.reduced .sheet { width: auto; min-height: 0; }
.reduced .sheet:hover { transform: none; }
.reduced .cases__bar { display: none; }
@media (max-width: 860px) {
  .reduced .inter, .reduced .outro { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

.footer__bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__bar a:hover { color: var(--blue); }
