:root {
  --navy: #27348B;
  --peri: #7d8be0;
  --gray: #c9cbd6;
  --white: #fff;
  --bar: 56px;
  --pad: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
ol, ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo fixo */
.brand { position: fixed; top: 26px; left: 34px; z-index: 50; }
.brand a { display: block; }
.brand img { display: block; width: clamp(120px, 14vw, 200px); height: auto; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.brand .w { display: none; }
body.scrolled .brand img { width: clamp(80px, 7.5vw, 112px); }
body.on-dark .brand .b { display: none; }
body.on-dark .brand .w { display: block; }
.brand { transition: opacity .3s; }
body.on-dark .brand { opacity: 0; pointer-events: none; }

/* barra inferior */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; padding: 0 34px;
  background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.bar a { text-decoration: none; }
.bar img { height: 30px; width: auto; }
body.bar-off .bar { transform: translateY(100%); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-word {
  position: absolute; left: 0; right: 0; bottom: calc(var(--bar) + 7vh);
  text-align: center; font-weight: 700; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(48px, 10.5vw, 168px); pointer-events: none;
}
.hero-hint {
  position: absolute; right: 34px; bottom: calc(var(--bar) + 22px);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-decoration: none;
}
/* texto gooey com dithering (porte do componente DitheredGooeyText do framer) */
.goo-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
.morph { position: relative; display: flex; justify-content: center; align-items: center; height: 1.15em; filter: url(#dither-goo); }
.morph span { position: absolute; display: inline-block; white-space: nowrap; text-align: center; user-select: none; font-weight: 600; letter-spacing: -7px; color: #27348B; }
.morph .m2 { opacity: 0; }
.hero::after { content: ""; position: absolute; left: 34px; right: 34px; bottom: 0; height: 1px; background: var(--navy); opacity: .3; }

/* manifesto */
/* altura = 1 tela fixa + 1.25 telas de scroll fill (pin length do componente) */
.manifesto { position: relative; height: 225vh; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 clamp(20px, 11vw, 190px); cursor: crosshair; }
/* tipografia magnética (porte do MagneticTypography do framer) */
.mag { font-size: clamp(30px, 4.7vw, 76px); font-weight: 200; letter-spacing: -.04em; line-height: 1.1; max-width: 15.5em; text-align: left; }
.mag-inner { max-width: 100%; white-space: pre-wrap; word-break: break-word; contain: layout style; }
.mag .w { display: inline-block; white-space: nowrap; }
.mag .s { display: inline-block; white-space: pre; }
.mag .c {
  display: inline-block; transform-origin: center bottom;
  font-variation-settings: "wght" 200, "wdth" 70;
  color: color-mix(in oklch, #27348B calc(var(--intensity, 0) * 100%), #B3B3B3);
}

/* blobs */
.goo { position: relative; height: 320vh; }
.goo-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.goo-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.goo-title {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: clamp(34px, 6vw, 96px); letter-spacing: -.05em; line-height: .98;
  pointer-events: none;
}
.goo-title span { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
.goo-title span.on { opacity: 1; transform: none; }

/* especialidades */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); padding: 10vh var(--pad) 16vh; }
.spec-visual { position: sticky; top: 14vh; height: 70vh; align-self: start; }
.spec-canvas { width: 100%; height: 100%; display: block; border: 1px solid rgba(39,52,139,.22); }
.spec-caption { position: absolute; left: 0; bottom: -30px; font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.spec-item {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid rgba(39,52,139,.22); opacity: .25; transition: opacity .5s;
}
.spec-item.active { opacity: 1; }
.spec-item .n { font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.spec-item h3 { font-size: clamp(40px, 5.4vw, 92px); font-weight: 700; letter-spacing: -.05em; line-height: .95; margin: 16px 0 24px; }
.spec-item p { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; font-weight: 500; max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }

/* processo */
.process { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6vw; padding: 14vh clamp(20px, 8vw, 140px) 22vh; }
.process h2 { position: sticky; top: 32vh; align-self: start; font-size: clamp(44px, 5.4vw, 88px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.step { max-width: 520px; padding: 7vh 0; opacity: 0; transform: translateY(32px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1); }
.step:nth-child(2) { margin-left: 4%; }
.step:nth-child(3) { margin-left: 12%; }
.step.in { opacity: 1; transform: none; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--navy); padding-bottom: 8px; transform: rotate(var(--r, 0deg)); transform-origin: left center; }
.step h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.step .n { font-size: 13px; font-weight: 600; }
.step p { margin-top: 16px; font-size: 16px; line-height: 1.65; font-weight: 500; }

/* contato */
.contact {
  position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 3vh 6vw; padding: 20vh clamp(20px, 8vw, 140px) 0;
}
.contact > * { position: relative; z-index: 1; }
.contact-bg { position: absolute !important; inset: 0; z-index: 0; filter: blur(60px); opacity: .22; }
.contact-bg i { position: absolute; display: block; border-radius: 50%; background: var(--peri); animation: drift 18s ease-in-out infinite alternate; }
.contact-bg i:nth-child(1) { width: 44vw; height: 44vw; left: -8vw; top: 6vh; }
.contact-bg i:nth-child(2) { width: 30vw; height: 30vw; right: 6vw; top: -6vh; animation-duration: 23s; }
.contact-bg i:nth-child(3) { width: 26vw; height: 26vw; left: 38vw; bottom: 10vh; animation-duration: 15s; background: #fff; }
.contact-bg i:nth-child(4) { width: 18vw; height: 18vw; right: -4vw; bottom: 30vh; animation-duration: 27s; }
@keyframes drift { to { transform: translate(6vw, 8vh) scale(1.15); } }

.contact h2 { font-size: clamp(30px, 2.8vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.contact-links { margin-top: 44px; display: grid; gap: 22px; font-size: 18px; font-weight: 500; }
.contact-links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-links a:hover, .contact-links a:focus-visible { border-color: currentColor; }

.field { margin-bottom: 28px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.field input, .field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); border-radius: 0;
  color: var(--white); font: 500 17px/1.4 "Montserrat", sans-serif; padding: 10px 0; outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--white); }
.hp { position: absolute; left: -9999px; }
.contact-form button {
  display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; color: var(--white); cursor: pointer;
  font: 600 14px "Montserrat", sans-serif; letter-spacing: .1em; text-transform: lowercase; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.contact-form button:hover, .contact-form button:focus-visible { border-color: var(--white); }
.contact-form button[disabled] { opacity: .5; cursor: wait; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 1.4em; }

.contact-logo { grid-column: 1 / -1; justify-self: end; width: min(48vw, 580px); height: auto; margin: 6vh 0 2vh; }
.contact-foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.3); font-size: 12px; font-weight: 600; letter-spacing: .1em;
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--peri); outline-offset: 4px; }

@media (max-width: 860px) {
  :root { --bar: 48px; }
  .brand { top: 16px; left: 18px; }
  .bar { padding: 0 18px; font-size: 12px; }
  .bar img { height: 24px; }
  .hero-hint { right: 18px; }
  .hero::after { left: 18px; right: 18px; }
  .spec { grid-template-columns: 1fr; padding-top: 4vh; }
  .spec-visual { top: 72px; height: calc(34vh + 34px); padding-bottom: 34px; z-index: 2; background: var(--white); }
  .spec-caption { bottom: 10px; }
  .spec-item { min-height: 58vh; }
  .process { grid-template-columns: 1fr; }
  .process h2 { position: static; }
  .step, .step:nth-child(2), .step:nth-child(3) { margin-left: 0; padding: 4vh 0; }
  .contact { grid-template-columns: 1fr; padding-top: 16vh; }
  .contact-logo { width: 70vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step { opacity: 1; transform: none; }
  .contact-bg i { animation: none; }
}
