/* ==========================================================================
   Raptor — landing page institucional
   ========================================================================== */

:root {
  --bg: #060705;
  --bg-deep: #050604;
  --surface: #0b0d09;
  --surface-2: #0e110c;
  --line: rgba(241, 246, 235, 0.09);
  --line-mid: rgba(241, 246, 235, 0.15);
  --line-strong: rgba(241, 246, 235, 0.24);
  --text: #f2f5ed;
  --text-soft: #c9cec1;
  --muted: #9aa191;
  --muted-dim: #7d8576;
  --green: #8bda0a;
  --green-hover: #9bea1a;
  --green-soft: rgba(139, 218, 10, 0.1);
  --green-line: rgba(139, 218, 10, 0.38);

  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 78px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Base -------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

main {
  display: block;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--green);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--text);
}

/* Shared elements --------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--green);
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 128px);
}

.section--ruled {
  border-top: 1px solid var(--line);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.95rem, 3.5vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #070806;
}

.btn--primary svg {
  color: #070806;
}

.btn--primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-1px);
}

.btn--primary:hover svg {
  transform: translate(2px, -2px);
}

.btn--secondary,
.btn--ghost {
  background: rgba(241, 246, 235, 0.015);
  border-color: var(--line-mid);
  color: var(--text);
}

.btn--secondary:hover,
.btn--ghost:hover {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
  transform: translateY(-1px);
}

.btn--secondary:hover svg {
  transform: translateY(2px);
}

.btn--ghost:hover svg {
  transform: translate(1px, -1px);
}

.btn--large {
  min-height: 54px;
  padding-inline: 28px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 7, 5, 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  width: 50px;
  height: auto;
}

.brand__name {
  padding-top: 1px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 9px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--green);
  transition: right 0.3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link[aria-current="true"]::after {
  right: 0;
}

.nav__cta {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 13.5px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle span {
  grid-area: 1 / 1;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-3px);
}

.nav-toggle span:last-child {
  transform: translateY(3px);
}

.site-header.is-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 116px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(62% 66% at 84% 24%, rgba(139, 218, 10, 0.055), transparent 66%),
    linear-gradient(180deg, rgba(241, 246, 235, 0.018), transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -24vw;
  right: -16vw;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(241, 246, 235, 0.04);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(2.55rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__title .highlight {
  color: var(--green);
  white-space: nowrap;
}

.hero__title .period {
  color: var(--green);
}

.hero__lead {
  max-width: 47ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.075rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.02;
}

.hero__frame {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(139, 218, 10, 0.22);
  pointer-events: none;
}

.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  background:
    linear-gradient(152deg, #0c0f0a 0%, #090b07 52%, #060705 100%);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(241, 246, 235, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 246, 235, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 42%, #000 26%, transparent 76%);
  mask-image: radial-gradient(120% 100% at 50% 42%, #000 26%, transparent 76%);
  pointer-events: none;
}

.hero__panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 0 0 transparent;
}

.hero__corner {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.hero__corner--tr {
  top: 0;
  right: 0;
  border-top: 1px solid rgba(241, 246, 235, 0.35);
  border-right: 1px solid rgba(241, 246, 235, 0.35);
}

.hero__corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(139, 218, 10, 0.55);
  border-left: 1px solid rgba(139, 218, 10, 0.55);
}

.hero__panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__dot {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
}

.hero__stage {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 0;
  padding-block: 16px;
}

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

.hero__circuit {
  vector-effect: non-scaling-stroke;
}

.hero__moving-point {
  --node-opacity: 1;
  fill: var(--green);
}

.hero__moving-point--two {
  --node-opacity: 0.72;
}

.hero__moving-point--three {
  --node-opacity: 0.48;
}

.hero__anchor {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__mark {
  position: relative;
  z-index: 1;
  width: 78%;
  max-width: 390px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

.hero__mark img {
  width: 100%;
  height: auto;
}

.hero__panel-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__panel-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero__panel-bottom i {
  width: 3px;
  height: 3px;
  flex: none;
  background: var(--green);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: hero-in 0.75s var(--ease) both;
  }

  .hero__content > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero__content > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero__content > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero__visual {
    animation: hero-visual-in 1s 0.12s var(--ease) both;
  }

  .hero__circuit--signal,
  .hero__circuit--signal-secondary {
    animation: hero-circuit-flow 5.5s linear infinite;
    stroke-dasharray: 3 12 54 8;
  }

  .hero__circuit--signal-secondary {
    animation-duration: 7s;
    animation-direction: reverse;
  }

  .hero__moving-point {
    animation: hero-node-breathe 1.9s ease-in-out infinite;
  }

  .hero__moving-point--two {
    animation-delay: -0.7s;
  }

  .hero__moving-point--three {
    animation-delay: -1.2s;
  }

  .hero__anchor--active {
    animation: hero-anchor-pulse 2.8s ease-in-out infinite;
  }

  .hero__anchor--delayed {
    animation-delay: -1.4s;
  }
}

@keyframes hero-circuit-flow {
  to {
    stroke-dashoffset: -77;
  }
}

@keyframes hero-node-breathe {
  0%,
  100% {
    opacity: 0.22;
  }
  48% {
    opacity: var(--node-opacity);
  }
}

@keyframes hero-anchor-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.84);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.18);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Services ---------------------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(44px, 5.5vw, 64px);
}

.section-head h2 {
  max-width: 16ch;
}

.section-head__intro {
  max-width: 44ch;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/*
 * Com seis serviços, as linhas do grid passam a compartilhar a mesma altura.
 * Assim títulos longos ou descrições maiores não desalinham a seção.
 */
@media (min-width: 721px) {
  .services {
    grid-auto-rows: 1fr;
  }
}

.service {
  position: relative;
  padding: clamp(28px, 3.4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(241, 246, 235, 0.008));
  transition: background-color 0.3s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.4s var(--ease);
}

.service:hover {
  background: var(--surface);
}

.service:hover::before {
  width: 100%;
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(36px, 4.5vw, 52px);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--green);
  background: rgba(139, 218, 10, 0.055);
  border: 1px solid rgba(139, 218, 10, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service:hover .service__icon {
  background: rgba(139, 218, 10, 0.11);
  border-color: rgba(139, 218, 10, 0.42);
}

.service__icon svg {
  width: 22px;
  height: 22px;
}

.service__index {
  padding-top: 3px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.service h3 {
  margin-bottom: 12px;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.service p {
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* About ------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(48px, 8vw, 120px);
}

.about__intro h2 {
  max-width: 14ch;
}

.about__body {
  padding-top: 4px;
}

.about__lead {
  margin-bottom: 40px;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.78;
}

.principles {
  border-top: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding-block: 21px;
  border-bottom: 1px solid var(--line);
}

.principles__num {
  padding-top: 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.principles h3 {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.principles p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Contact ----------------------------------------------------------------- */

.contact {
  padding-block: clamp(16px, 2vw, 24px) clamp(72px, 9vw, 112px);
}

.contact__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(40px, 6vw, 80px);
  overflow: hidden;
  padding: clamp(36px, 5.5vw, 68px);
  border: 1px solid var(--line-mid);
  background:
    linear-gradient(118deg, rgba(139, 218, 10, 0.06), transparent 44%),
    linear-gradient(180deg, #0d100b, #090b07);
}

.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(241, 246, 235, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 246, 235, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(110deg, #000 0%, transparent 62%);
  pointer-events: none;
}

.contact__panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 380px;
  height: 380px;
  background: repeating-linear-gradient(
    135deg,
    rgba(139, 218, 10, 0.12) 0 1px,
    transparent 1px 18px
  );
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.contact__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  border-top: 1px solid var(--green);
  border-right: 1px solid var(--green);
  pointer-events: none;
}

.contact__copy,
.contact__actions {
  position: relative;
  z-index: 1;
}

.contact__copy h2 {
  max-width: 15ch;
}

.contact__lead {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact__actions .btn {
  min-width: 224px;
}

.contact__note {
  max-width: 36ch;
  color: var(--green);
  font-size: 13px;
  line-height: 1.55;
}

.contact__note:focus {
  outline: none;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  padding-block: clamp(52px, 6vw, 76px) 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.62fr 0.88fr;
  gap: clamp(40px, 6vw, 80px);
}

.footer__brand img {
  width: 152px;
  margin-bottom: 22px;
}

.footer__brand p {
  max-width: 31ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer__heading {
  margin-bottom: 18px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__link {
  display: inline-block;
  color: var(--text-soft);
  font-size: 14px;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--green);
}

.footer__link--button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 68px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer__bottom p {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer__legal a,
.footer__legal button {
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s var(--ease);
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--green);
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.footer__top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.footer__top:hover {
  color: var(--green);
}

.footer__top:hover svg {
  transform: translateY(-2px);
}

/* Consentimento de cookies ----------------------------------------------- */

.cookie-consent {
  position: fixed;
  z-index: 400;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 920px;
  margin-inline: auto;
  padding: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(115deg, rgba(139, 218, 10, 0.18), var(--line));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.cookie-consent__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 54px);
  padding: clamp(22px, 3vw, 30px);
  background: rgba(8, 10, 7, 0.98);
}

.cookie-consent__eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.cookie-consent__copy > p:not(.cookie-consent__eyebrow) {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.cookie-consent__copy a {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-consent__actions .btn {
  min-width: 154px;
  min-height: 46px;
  padding-inline: 16px;
  font-size: 13px;
}

/* Política de privacidade ------------------------------------------------ */

.policy-page {
  padding-block: calc(var(--header-h) + 64px) clamp(84px, 10vw, 128px);
}

.policy-page__header {
  max-width: 780px;
  margin-bottom: 54px;
}

.policy-page__header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.98;
}

.policy-page__header > p:not(.eyebrow) {
  color: var(--muted);
}

.policy-page__content {
  display: grid;
  gap: 38px;
  max-width: 820px;
}

.policy-page__content section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.policy-page__content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.policy-page__content p,
.policy-page__content li {
  color: var(--text-soft);
  line-height: 1.75;
}

.policy-page__content p + p {
  margin-top: 12px;
}

.policy-page__content ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
}

.policy-page__content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__grid {
    gap: 44px;
  }

  .hero__visual {
    max-width: 460px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 5.6vw, 3.9rem);
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: grid;
    position: relative;
    z-index: 2;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 28px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0s linear 0.25s;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="true"] {
    color: var(--green);
  }

  .nav__cta {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 28px;
    font-size: 14.5px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero__content {
    max-width: 680px;
  }

  .hero__title {
    max-width: 16ch;
    font-size: clamp(2.55rem, 7vw, 4rem);
  }

  .hero__visual {
    justify-self: start;
    max-width: 500px;
    width: 100%;
    aspect-ratio: 1 / 0.94;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }

  .section-head__intro {
    max-width: 52ch;
    margin: 0;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about__intro h2 {
    max-width: 17ch;
  }

  .contact__panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }

  .contact__copy h2 {
    max-width: 18ch;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .service__top {
    margin-bottom: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-consent__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cookie-consent__actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-consent__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand__mark {
    width: 42px;
  }

  .brand__name {
    font-size: 16px;
    letter-spacing: 0.22em;
  }

  .hero {
    padding-block: 48px 78px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 10.2vw, 2.9rem);
    letter-spacing: -0.04em;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 15.5px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 30px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    aspect-ratio: 1 / 1.04;
  }

  .hero__frame {
    inset: 12px -12px -12px 12px;
  }

  .hero__panel {
    padding: 16px;
  }

  .hero__panel-top {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .hero__mark {
    width: 84%;
  }

  .hero__panel-bottom {
    gap: 4px;
    font-size: 7.5px;
    letter-spacing: 0.02em;
  }

  .hero__panel-bottom span {
    gap: 4px;
  }

  .section {
    padding-block: 72px;
  }

  .contact__panel {
    padding: 30px 22px 34px;
  }

  .contact__corner {
    width: 56px;
    height: 56px;
  }

  .contact__actions {
    align-items: stretch;
  }

  .contact__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand img {
    width: 138px;
  }
}

@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;
  }

  .hero__moving-points {
    display: none;
  }
}

/* ==========================================================================
   Projetos em destaque
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(139, 218, 10, 0.38);
  border-radius: 2px;
  background: rgba(6, 7, 5, 0.92);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  color: inherit;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.45s var(--ease);
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  width: 100%;
}

.project-card:focus-visible {
  outline-offset: 3px;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f1f1ee;
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(6, 7, 5, 0.06);
  pointer-events: none;
}

.project-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.015);
}

.project-card__status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
}

.project-card__cat {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: clamp(1.12rem, 1.3vw, 1.26rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.project-card__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-card__partner {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.project-card__partner strong {
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.07em;
}

.project-card__more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.project-card__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.project-card:hover .project-card__more {
  color: var(--green);
}

.project-card:hover .project-card__more svg {
  transform: translate(2px, -2px);
}

/* Parceiros --------------------------------------------------------------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.partners__label {
  max-width: 36ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(22px, 3.5vw, 44px);
}

.partner {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.partner img {
  width: auto;
  height: 28px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.25s var(--ease);
}

.partner:hover img {
  opacity: 1;
}

.partner__name {
  color: var(--muted-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.partner:hover .partner__name {
  color: var(--text-soft);
}

/* ==========================================================================
   Páginas de projeto
   ========================================================================== */

.case-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 3vw, 36px) clamp(52px, 6vw, 80px);
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 52% at 78% 6%, rgba(139, 218, 10, 0.05), transparent 68%),
    linear-gradient(180deg, rgba(241, 246, 235, 0.016), transparent 38%);
  pointer-events: none;
}

.breadcrumb {
  margin-bottom: clamp(28px, 3.2vw, 40px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(241, 246, 235, 0.2);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-soft);
}

.case-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: end;
  gap: clamp(28px, 4.5vw, 64px);
  margin-bottom: clamp(32px, 4vw, 52px);
}

.case-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.case-hero .eyebrow {
  margin-bottom: 18px;
}

.case-hero__subtitle {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.case-meta {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-mid);
}

.case-meta div {
  display: grid;
  gap: 3px;
}

.case-meta dt {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.case-meta .pill {
  justify-self: start;
}

.case-cover {
  position: relative;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--line-mid);
  background: linear-gradient(155deg, #0c0f0a, #080a06);
}

.case-cover::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  width: 48px;
  height: 1px;
  background: var(--green);
}

.case-cover figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 2px 0;
  color: var(--muted-dim);
  font-size: 12px;
  line-height: 1.6;
}

.case-cover figcaption::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  margin-bottom: 4px;
  background: var(--green);
}

/* Botão de imagem / zoom -------------------------------------------------- */

.shot__button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
}

.shot__button img {
  display: block;
  width: 100%;
  height: auto;
}

.shot__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 5, 0);
  transition: background-color 0.25s var(--ease);
  pointer-events: none;
}

.shot__button:hover::after {
  background: rgba(6, 7, 5, 0.08);
}

.shot__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(241, 246, 235, 0.24);
  background: rgba(6, 7, 5, 0.78);
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.shot__zoom svg {
  width: 15px;
  height: 15px;
}

.shot__button:hover .shot__zoom,
.shot__button:focus-visible .shot__zoom {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(139, 218, 10, 0.5);
}

/* Seções ------------------------------------------------------------------ */

.case-section {
  padding-block: clamp(52px, 6.5vw, 84px);
  border-top: 1px solid var(--line);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

.case-grid__label .eyebrow {
  margin-bottom: 0;
}

.case-grid__body {
  max-width: 72ch;
}

.case-grid__body h2 {
  max-width: 26ch;
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.14;
}

.case-grid__body p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}

.case-grid__body p + p {
  margin-top: 14px;
}

.case-grid__body .case-lead {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.72;
}

.case-grid__body .case-lead + p {
  margin-top: 16px;
}

.case-head {
  max-width: 64ch;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.case-head h2 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.14;
}

.case-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.74;
}

.case-note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Capacidades ------------------------------------------------------------- */

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.capability {
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--bg);
  transition: background-color 0.3s var(--ease);
}

.capability:hover {
  background: var(--surface);
}

.capability__num {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.capability h3 {
  margin: 14px 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.capability p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.68;
}

/* Stack técnico ----------------------------------------------------------- */

.stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin-top: 26px;
}

.stack li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stack strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.stack span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Galeria ----------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.gallery .shot {
  margin: 0;
  padding: 1px;
  border: 1px solid var(--line);
  background: #080a06;
}

.gallery .shot--wide {
  grid-column: 1 / -1;
}

.gallery .shot__button img {
  border-bottom: 1px solid var(--line);
}

.gallery .shot figcaption {
  padding: 13px 14px 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.gallery .shot figcaption::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 9px;
  margin-bottom: 4px;
  background: var(--green);
}

/*
 * Galeria pareada: capturas da mesma linha dividem a altura da moldura.
 * A imagem é reduzida dentro do quadro (object-fit: contain), nunca cortada,
 * então telas de proporções diferentes alinham sem esconder a interface.
 * O fundo claro acompanha o fundo interno das capturas.
 */
.gallery--even .shot__button {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
}

.gallery--even .shot__button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-bottom: 0;
}

/* Destaque do editor ------------------------------------------------------ */

.editor-showcase {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 20% 0%, rgba(139, 218, 10, 0.05), transparent 62%),
    linear-gradient(180deg, #090b07, var(--bg));
}

.editor-showcase__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(28px, 4.5vw, 64px);
  margin-bottom: clamp(30px, 4vw, 46px);
}

.editor-showcase h2 {
  max-width: 21ch;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.08;
}

.editor-showcase__lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.editor-showcase__lead + .editor-showcase__lead {
  margin-top: 12px;
}

.editor-showcase__figure {
  margin: 0;
  padding: 1px;
  border: 1px solid rgba(139, 218, 10, 0.32);
  background: #070905;
}

.editor-showcase__figure figcaption {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 12px;
  line-height: 1.6;
}

.editor-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  background: var(--line);
}

.editor-feature {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--bg);
}

.editor-feature__num {
  padding-top: 2px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.editor-feature h3 {
  margin-bottom: 7px;
  font-size: 0.99rem;
  font-weight: 600;
  line-height: 1.4;
}

.editor-feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

/* Pipeline ---------------------------------------------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: var(--line);
}

.pipeline__step {
  position: relative;
  padding: 26px 22px;
  background: var(--bg);
}

.pipeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--green);
  border-right: 1px solid var(--green);
  background: var(--bg);
  transform: translateY(-50%) rotate(45deg);
}

.pipeline__num {
  display: block;
  margin-bottom: 32px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.pipeline h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.pipeline p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Callout ----------------------------------------------------------------- */

.callout {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--line-mid);
  border-left: 2px solid var(--green);
  background: rgba(139, 218, 10, 0.035);
}

.callout p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.callout strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* Outros projetos --------------------------------------------------------- */

.next-projects {
  padding-block: clamp(52px, 6.5vw, 84px);
  border-top: 1px solid var(--line);
}

.next-projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 28px;
}

.next-projects__head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.next-projects__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-mid);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.next-projects__all svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.next-projects__all:hover {
  color: var(--green);
  border-color: var(--green-line);
}

.next-projects__all:hover svg {
  transform: translate(2px, -2px);
}

.next-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.next-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.next-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.next-card__media {
  position: relative;
  flex: none;
  width: 140px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f1ee;
}

.next-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.next-card__cat {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.next-card__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.next-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
}

.next-card__more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.next-card:hover .next-card__more svg {
  transform: translate(2px, -2px);
}

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(14px, 3vw, 32px);
  border: 0;
  background: rgba(5, 6, 4, 0.97);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgba(5, 6, 4, 0.86);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(241, 246, 235, 0.12);
}

.lightbox__counter {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.lightbox__close,
.lightbox__nav {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(241, 246, 235, 0.2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--green-line);
  background: rgba(139, 218, 10, 0.08);
  color: var(--green);
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 16px;
  height: 16px;
}

.lightbox__figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  min-height: 0;
}

.lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 240px);
  max-height: calc(100dvh - 240px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__figure figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__controls {
  display: none;
}

/* ==========================================================================
   Ajustes responsivos — projetos
   ========================================================================== */

@media (max-width: 1180px) and (min-width: 921px) {
  .nav {
    gap: 22px;
  }

  .nav__list {
    gap: 20px;
  }

  .nav__link {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .partners {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .case-hero__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 26px;
  }

  .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    max-width: 620px;
  }

  .case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .case-grid__label .eyebrow {
    margin-bottom: 0;
  }

  .editor-showcase__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline__step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery .shot--wide {
    grid-column: auto;
  }

  /* Em coluna única, cada captura volta à proporção original. */
  .gallery--even .shot__button {
    display: block;
    aspect-ratio: auto;
    border-bottom: 0;
    background: none;
  }

  .gallery--even .shot__button img {
    height: auto;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .next-projects__grid,
  .capabilities,
  .editor-features,
  .stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-card__media {
    width: 112px;
  }

  .case-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline__step:not(:last-child)::after {
    display: none;
  }

  .pipeline__num {
    margin-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .project-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .partner__name {
    font-size: 13px;
  }

  .case-hero {
    padding-block: 20px 52px;
  }

  .case-cover figcaption {
    font-size: 11.5px;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox__bar {
    padding-bottom: 8px;
  }

  .lightbox__close,
  .lightbox__nav {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .case-hero__intro > *,
  .case-meta {
    animation: hero-in 0.7s var(--ease) both;
  }

  .case-hero__intro > :nth-child(2) {
    animation-delay: 0.05s;
  }

  .case-hero__intro > :nth-child(3) {
    animation-delay: 0.1s;
  }

  .case-meta {
    animation-delay: 0.14s;
  }
}

/* Hero com imagem lateral (cases com menos capturas) ---------------------- */

.case-hero__head--media {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.case-hero__head--media .case-meta--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: clamp(24px, 3vw, 34px);
}

.case-hero__head--media .case-cover--side {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.case-meta--row .pill {
  justify-self: start;
}

@media (max-width: 1024px) {
  .case-hero__head--media {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-hero__head--media .case-cover--side {
    max-width: 100%;
    justify-self: stretch;
  }

  .case-hero__head--media .case-meta--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .case-hero__head--media .case-meta--row {
    grid-template-columns: minmax(0, 1fr);
  }
}
