:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f8f6f5;
  --muted: #cbc6c6;
  --red: #ff4245;
  --line: #292526;
  --panel: #101010;
  --red-shadow: #950007;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.5 "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: .7rem;
  left: .7rem;
  transform: translateY(calc(-100% - 1rem));
  padding: .65rem 1rem;
  border-radius: .4rem;
  background: #fff;
  color: #131313;
  font-weight: 700;
}
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -.026em; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.15rem, 3.9vw, 3.5rem); max-width: 18ch; }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
h1 span, h2 span, h3 span, h2 em { color: var(--red); }
h2 em { font-style: normal; }
p { color: var(--muted); }
img { display: block; max-width: 100%; }
.wrap { width: min(1110px, calc(100% - 7rem)); margin-inline: auto; }
.eyebrow { color: var(--red); font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section .eyebrow, .section h2, .section h3 { margin-bottom: .9rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7vw, 5rem); align-items: start; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .6rem 1.55rem;
  border: 1px solid #ff45453b;
  border-radius: 100px;
  background: linear-gradient(148deg, #d60008, #790007);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font: inherit;
  font-size: .93rem;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: linear-gradient(145deg, #ee141b, #9d0010); }
.button.outline { border-color: #ffffff4d; background: transparent; }
.button.outline:hover { background: #ffffff10; }

.top { position: absolute; inset: 13px 0 auto; z-index: 2; }
.top .wrap {
  width: min(1180px, 82%);
  min-height: 68px;
  padding: .65rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid #ffffff20;
  border-radius: 25px;
  background: #1c1e20bd;
  backdrop-filter: blur(11px);
}
.brand { flex: none; }
.brand img { width: 110px; height: auto; }
.top nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.55rem, 1.25vw, 1.1rem); }
.top nav a { text-decoration: none; font-size: .875rem; white-space: nowrap; }
.top nav a:not(.button):hover { color: var(--red); }
.top .nav-home { position: relative; color: var(--red); }
.top .nav-home::after { content: ""; position: absolute; inset: auto 0 -.65rem; height: 2px; background: currentColor; }
.top .nav-cta { min-height: 42px; padding-inline: 1rem; margin-left: .2rem; font-weight: 650; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(525px, 43vw, 650px);
  overflow: hidden;
  border: 1px solid #37151b;
  border-radius: 16px 16px 0 0;
  background: radial-gradient(ellipse at 7% 35%, #0f0f11 0, #09090b 43%, #07080b 100%);
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 43px 0 0 auto;
  width: 55%;
  mask-image: linear-gradient(90deg, transparent, #000 13%), linear-gradient(180deg, transparent, #000 10%);
  mask-composite: intersect;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-content { width: min(1240px, 76.5%); padding-block: 5.7rem 2.65rem; }
.hero h1 {
  max-width: 15.8ch;
  font-size: clamp(2.55rem, 3.32vw, 3.6rem);
  font-weight: 700;
  line-height: 1.075;
  text-wrap: balance;
}
.hero h1 span { color: #ff3437; }
.hero .button { margin-top: 1.45rem; min-width: 190px; min-height: 54px; }
.hero p { max-width: 39ch; margin-top: 1.05rem; font-size: 1.03rem; color: #eee9e9; }
.hero-clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .8rem;
  max-width: 28rem;
  margin-top: 1.25rem;
}
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-logos li {
  width: clamp(2.7rem, 4vw, 3.4rem);
  aspect-ratio: 1;
  perspective: 240px;
}
.client-logo-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.client-logo-side {
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  overflow: hidden;
  background: #121212;
  backface-visibility: hidden;
}
.client-logo-back { transform: rotateY(180deg); }
.client-mrv .client-logo-side { background: #006541; }
.client-logos img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.client-caption { flex: 1 1 7.6rem; max-width: 19ch; color: #eee9e9; font-size: .875rem; line-height: 1.28; font-weight: 650; }

.band {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: .65rem 0;
  border: 1px solid #82111a;
  border-top-color: #aa2631;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(90deg, #670004, #970009 49%, #530005);
}
.band p { flex: none; color: #fff4f4; text-transform: uppercase; letter-spacing: .27em; font-size: .875rem; white-space: nowrap; }
.band b { padding-inline: .22rem; }

.section-heading { max-width: 660px; margin: 0 auto clamp(2rem, 5vw, 4rem); text-align: center; }
.section-heading h2 { margin-inline: auto; }
.section-heading::after { content: ""; display: block; width: 115px; height: 1px; margin: .9rem auto 0; background: linear-gradient(90deg, transparent, #b81b24, transparent); }
.method {
  position: relative;
  border: 1px solid #26161a;
  border-radius: 20px;
  background: radial-gradient(ellipse at right, #11080a50, transparent 53%);
}
.method-list { display: grid; gap: 1rem; }
.section-cta { display: flex; width: fit-content; margin: 1.65rem auto 0; }
.method-card {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid #222;
  border-radius: 26px;
  background: #0d0d0ded;
}
.method-card h3 { color: var(--red); margin: 0; }
.method-card p { max-width: 48ch; }
.method-feature { padding-block: clamp(1.5rem, 4vw, 3rem); }
.method-feature h3 { max-width: 18ch; margin: 0 0 1rem; }
.method-feature img { width: 100%; aspect-ratio: 497 / 366; object-fit: cover; border-radius: 15px; }
.differences dl { margin: 0; }
.differences dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.differences dl div:first-child { padding-top: 0; }
.differences dt { font-size: 1.12rem; font-weight: 750; }
.differences dd { margin: .35rem 0 0; color: var(--muted); }

.differences .split { align-items: center; }
.architecture img { width: 100%; height: auto; max-height: 470px; object-fit: cover; border: 1px solid #282426; border-radius: 22px; }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* As linhas de ligação correm por baixo das cenas de cada seção. */
main {
  position: relative;
  isolation: isolate;
  --blueprint-track: url("assets/arquitetura-conexoes.svg");
  --blueprint-track-height: clamp(43rem, 106vw, 80rem);
}
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--blueprint-track) center top / 100% var(--blueprint-track-height) repeat-y;
  opacity: .19;
}
.section, .band, .footer { position: relative; isolation: isolate; }
.section::before, .band::before, .footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url("assets/arquitetura-conjunto.svg") right -4rem center / clamp(33rem, 83vw, 76rem) auto no-repeat;
  opacity: .22;
}
.contact::before, .results::before { background-position: left -7rem center; }
.services::before {
  background-image: url("assets/arquitetura-marca-dagua.svg");
  background-position: right -3rem center;
  background-size: clamp(26rem, 65vw, 58rem) auto;
}
.method::before { background-position: right -6rem top; opacity: .25; }
.results::before { opacity: .16; }
.band::before { background-position: right 4rem center; opacity: .13; }
.footer::before { background-position: right 2rem center; opacity: .17; }

@media (max-width: 760px) {
  main::before { opacity: .15; }
  .section::before { background-size: min(40rem, 135%) auto; }
  .contact::before { background-position: left -2rem top; }
  .method::before { background-position: right -2rem top 1rem; }
  .services::before, .results::before { background-position: left -2rem top 1rem; }
  .differences::before { background-position: right -2rem bottom 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @media (hover: none), (pointer: coarse) {
    .client-logos:not(.scroll-reveal-pending) .client-logo-face {
      animation: client-logo-turn .95s cubic-bezier(.38, .12, .34, .92) var(--logo-turn-delay, 180ms);
    }
    .client-logos li:nth-child(2) { --logo-turn-delay: 335ms; }
    .client-logos li:nth-child(3) { --logo-turn-delay: 490ms; }
    .client-logos li:nth-child(4) { --logo-turn-delay: 645ms; }
  }

  @media (hover: hover) and (pointer: fine) {
    .client-logo-turning .client-logo-face {
      animation: client-logo-turn .92s cubic-bezier(.38, .12, .34, .92);
    }
    .hero .button:hover { animation: hero-button-pulse .68s ease-out; }
  }

  @keyframes hero-button-pulse {
    from, to { transform: scale(1); box-shadow: 0 0 0 0 #ff454500; }
    46% { transform: scale(1.035); box-shadow: 0 0 0 5px #ff45451e; }
  }

  @keyframes client-logo-turn {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
  }

  [data-scroll-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: opacity .52s ease, translate .65s cubic-bezier(.2, .65, .28, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .scroll-reveal-pending:not(:focus-within) {
    opacity: 0;
    translate: var(--reveal-x, 0px) var(--reveal-y, 23px);
    transition: none;
  }
  .scroll-reveal-immediate, [data-scroll-reveal]:focus-within {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .contact-panel, .result-tracking, .method-card:nth-child(2) {
    --reveal-delay: 70ms;
  }
  .method-card:nth-child(3) { --reveal-delay: 130ms; }

  .blueprint-motion main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #ff343b;
    mask: var(--blueprint-track) center top / 100% var(--blueprint-track-height) repeat-y;
    clip-path: inset(0 0 calc(100% - var(--blueprint-progress, 0%)) 0);
    opacity: .65;
  }
  .blueprint-motion .section::before {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 900ms cubic-bezier(.2, .65, .28, 1);
  }
  .blueprint-motion :is(.method, .differences)::before {
    clip-path: inset(0 0 0 100%);
  }
  .blueprint-motion .section.blueprint-revealed::before {
    clip-path: inset(0);
  }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 4rem); }
  .top .wrap { width: calc(100% - 2.5rem); }
  .hero-content { width: calc(100% - 4rem); }
  .hero h1 { font-size: clamp(2.35rem, 4.2vw, 3.45rem); }
  .hero-art { width: 57%; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .top { position: relative; inset: auto; padding: .7rem .75rem; background: #090909; }
  .top .wrap { width: 100%; min-height: 0; padding: .8rem; flex-wrap: wrap; gap: .75rem; border-radius: 17px; }
  .top nav { justify-content: flex-start; flex-wrap: wrap; gap: .35rem .85rem; }
  .top nav a { white-space: normal; display: inline-flex; align-items: center; min-height: 36px; }
  .top .nav-home::after { inset: auto 0 .08rem; }
  .top .nav-cta { margin-left: 0; min-height: 36px; }
  .hero { min-height: auto; border-radius: 13px 13px 0 0; }
  .hero-content { width: calc(100% - 2rem); padding-block: 2.5rem 1.2rem; }
  .hero h1 { max-width: 15ch; font-size: clamp(2.1rem, 7.85vw, 3.8rem); text-wrap: initial; }
  .hero .button { margin-top: 1.2rem; }
  .hero p { margin-top: 1.1rem; }
  .hero-art { position: relative; inset: auto; order: 1; width: 100%; mask-image: linear-gradient(0deg, black 87%, transparent); }
  .hero-art img { height: auto; aspect-ratio: 672 / 415; object-fit: cover; }
  .band p { letter-spacing: .17em; }
  .split, .method-card { grid-template-columns: minmax(0, 1fr); }
  .method-card { gap: .75rem; }
  .method-feature figure { order: 1; margin-top: .4rem; }
  .architecture img { max-height: 390px; }
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  [data-scroll-reveal="left"] { --reveal-x: -19px; --reveal-y: 12px; }
  [data-scroll-reveal="right"] { --reveal-x: 19px; --reveal-y: 12px; }
}
