:root {
  --charcoal: #0b0b0f;
  --charcoal-2: #111218;
  --bone: #f6f4ef;
  --blue: #0066ff;
  --slate: #6b7280;
  --line-dark: rgba(255,255,255,.12);
  --line-light: rgba(11,11,15,.12);
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--blue); color: white; }

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11,11,15,.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand { display: inline-flex; align-items: center; gap: 18px; }
.brand-word {
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.08em;
}
.brand-e { position: relative; color: var(--bone); }
.brand-e::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 4px;
  background: var(--blue);
  left: 24%;
  top: 49%;
  border-radius: 3px;
}
.brand-sub { font-size: 9px; letter-spacing: .32em; color: rgba(246,244,239,.66); }

.nav { display: flex; gap: 34px; align-items: center; font-size: 13px; }
.nav > a:not(.button) { color: rgba(246,244,239,.72); transition: color .2s; }
.nav > a:not(.button):hover { color: white; }

.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: white; margin: 6px auto; }

.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); background: #1b74ff; }
.button-small { min-height: 40px; padding: 0 17px; font-size: 12px; }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.1fr .72fr .28fr;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero-noise {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 28%),
                    radial-gradient(circle at 55% 75%, rgba(255,255,255,.05), transparent 22%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 80px 6vw;
  max-width: 760px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(246,244,239,.62);
  margin: 0 0 28px;
}
.hero h1, .form-intro h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7.4vw, 118px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.045em;
  margin: 0;
}
.hero h1 em, .form-intro h1 em { font-weight: 500; color: var(--blue); }
.hero-text {
  max-width: 540px;
  font-size: clamp(16px, 1.3vw, 20px);
  color: rgba(246,244,239,.70);
  margin: 34px 0;
}
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.text-link { color: rgba(246,244,239,.76); font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.hero-visual {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent 40%),
    linear-gradient(45deg, #07080b, #17191f);
}
.portal {
  width: 42%;
  height: 82%;
  background: linear-gradient(180deg, #2584ff, #0072ff 55%, #2a9dff);
  box-shadow: 0 0 80px rgba(0,102,255,.18);
  position: relative;
  overflow: visible;
}
.portal::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 35%, rgba(0,0,0,.14));
}
.human {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 110px;
  background: #07080b;
  border-radius: 10px 10px 2px 2px;
  z-index: 3;
}
.human::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  background: #07080b;
  border-radius: 50%;
  top: -16px; left: 2px;
}
.human-shadow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 58px; height: 94px; background: rgba(0,0,0,.5);
  filter: blur(9px); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}
.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  gap: 12px;
  border-left: 1px solid var(--line-dark);
}
.hero-side > span { font-size: 10px; letter-spacing: .35em; }
.hero-side p { margin: 0; font-size: 11px; letter-spacing: .24em; }
.hero-side small { color: rgba(246,244,239,.56); text-transform: uppercase; letter-spacing: .25em; line-height: 1.7; }
.rule { width: 1px; height: 28px; background: rgba(255,255,255,.35); margin: 10px 0; }

.section-light { background: var(--bone); color: var(--charcoal); }
.statement {
  display: grid;
  grid-template-columns: .35fr 1fr;
  gap: 60px;
  padding: 110px clamp(24px, 6vw, 92px);
}
.section-index {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin: 0;
  opacity: .56;
}
.statement h2, .section-heading h2, .conversion h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 28px;
  font-weight: 500;
}
.statement h2 em { font-weight: 500; color: var(--blue); }
.statement > div > p {
  max-width: 650px; color: #5d616a; font-size: 18px; margin: 0;
}

.pillars { padding: 110px clamp(24px, 6vw, 92px); }
.section-heading { display: grid; grid-template-columns: .35fr 1fr; gap: 60px; margin-bottom: 70px; }
.section-heading h2 { max-width: 900px; margin: 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.pillar-grid article { padding: 36px 28px 70px 0; border-right: 1px solid var(--line-dark); min-height: 300px; }
.pillar-grid article:not(:first-child) { padding-left: 28px; }
.pillar-grid article:last-child { border-right: 0; }
.pillar-number { color: var(--blue); font-size: 11px; }
.pillar-grid h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 50px 0 12px; }
.pillar-grid p { color: rgba(246,244,239,.58); font-size: 14px; max-width: 260px; }

.services { padding: 110px clamp(24px, 6vw, 92px); }
.section-heading.dark { color: var(--charcoal); }
.service-list { border-top: 1px solid var(--line-light); }
.service-list a {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: clamp(20px, 2.2vw, 32px);
  transition: padding .2s, color .2s;
}
.service-list a:hover { padding-left: 14px; color: var(--blue); }
.center-cta { display: flex; justify-content: flex-end; margin-top: 42px; }

.manifesto {
  min-height: 720px;
  padding: 110px clamp(24px, 6vw, 92px);
  display: grid;
  grid-template-columns: .35fr 1fr;
  gap: 60px;
}
.manifesto-copy p {
  margin: 0 0 7px; font-size: clamp(24px, 3vw, 44px); color: rgba(246,244,239,.76);
}
.manifesto-copy .muted { color: rgba(246,244,239,.28); margin-bottom: 70px; }
.manifesto-copy h2 {
  font-family: var(--serif); font-size: clamp(44px, 6vw, 88px); line-height: .98;
  margin: 0; font-weight: 500; letter-spacing: -.04em;
}
.manifesto-copy .blue { color: var(--blue); }

.conversion {
  background: var(--blue);
  padding: 80px clamp(24px, 6vw, 92px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.conversion .eyebrow { color: rgba(255,255,255,.68); }
.conversion h2 { max-width: 850px; margin-bottom: 0; color: white; }
.button-light { background: white; color: var(--charcoal); flex: 0 0 auto; }
.button-light:hover { background: var(--bone); }

footer {
  padding: 42px clamp(24px, 6vw, 92px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--line-dark);
}
footer p { margin: 0; font-size: 12px; color: rgba(246,244,239,.54); }
.footer-note { text-align: right; }

/* Form page */
.form-page { min-height: 100vh; background: var(--charcoal); }
.form-header { position: relative; }
.form-shell {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.form-intro {
  padding: 84px clamp(24px, 5vw, 74px);
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-intro h1 { font-size: clamp(48px, 5.2vw, 80px); max-width: 760px; }
.form-intro > p:not(.eyebrow) {
  max-width: 560px; color: rgba(246,244,239,.62); font-size: 16px; margin-top: 32px;
}
.form-note {
  margin-top: 46px; display: flex; gap: 12px; align-items: center;
  border-top: 1px solid var(--line-dark); padding-top: 20px; color: rgba(246,244,239,.48); font-size: 12px;
}
.form-note p { margin: 0; }
.status-dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 18px var(--blue); }

.form-card {
  background: var(--bone); color: var(--charcoal);
  padding: 72px clamp(24px, 6vw, 92px);
  display: flex; align-items: center;
}
#budget-form { width: 100%; max-width: 760px; margin: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px;
}
.field label span { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(11,11,15,.14);
  background: rgba(255,255,255,.60); color: var(--charcoal);
  border-radius: 3px; padding: 14px 15px; outline: none;
  transition: border .2s, box-shadow .2s, background .2s;
}
.field input, .field select { height: 52px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,.08); background: white;
}
.field.invalid input, .field.invalid select { border-color: #b42318; }
.error { display: block; min-height: 16px; margin-top: 5px; color: #b42318; font-size: 11px; }
.consent {
  display: flex; gap: 11px; align-items: flex-start; font-size: 12px; color: #52545c; margin: 4px 0 0;
}
.consent input { margin-top: 3px; accent-color: var(--blue); }
.consent-error { margin: 4px 0 14px 26px; }
.form-submit { width: 100%; height: 58px; font-size: 15px; }
.form-privacy { font-size: 11px; color: var(--slate); text-align: center; margin: 14px 0 0; }


/* =========================================================
   ETAPA 02 — HERO INTERATIVO
   ========================================================= */
.hero {
  --pointer-x: 50%;
  --pointer-y: 50%;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, .86fr) minmax(130px, .24fr);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  width: 48vw;
  height: 48vw;
  left: 18%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,102,255,.10), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: heroAmbient 9s ease-in-out infinite alternate;
}

@keyframes heroAmbient {
  from { transform: translate(-52%, -50%) scale(.94); opacity: .55; }
  to { transform: translate(-45%, -46%) scale(1.08); opacity: 1; }
}

.hero-copy { z-index: 3; }
.hero-copy h1 em {
  position: relative;
  display: inline-block;
}
.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(.2);
  opacity: .55;
  transform-origin: center;
  animation: chosenLine 3.6s ease-in-out infinite alternate;
}

@keyframes chosenLine {
  to { transform: scaleX(1); opacity: 1; }
}

.hero-microcopy {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 510px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(246,244,239,.46);
  font-size: 11px;
  letter-spacing: .02em;
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0,102,255,.08), 0 0 22px rgba(0,102,255,.7);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  50% { box-shadow: 0 0 0 9px rgba(0,102,255,0), 0 0 34px rgba(0,102,255,.9); }
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: center;
  gap: 18px;
  padding: clamp(38px, 4vw, 64px) clamp(20px, 2.8vw, 42px) 64px;
  overflow: hidden;
  perspective: 1200px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 38%),
    linear-gradient(45deg, #07080b, #15171d);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--pointer-x) var(--pointer-y), rgba(0,102,255,.13), transparent 70%);
  transition: opacity .25s ease;
}

.hero-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --image-x: 0px;
  --image-y: 0px;
  width: min(100%, 640px);
  height: min(69vh, 600px);
  min-height: 505px;
  margin: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 13px;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.hero-image-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 3px;
  background: #08090d;
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
  transform: translateZ(26px);
}

.hero-image {
  width: 108%;
  height: 108%;
  margin: -4%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translate3d(var(--image-x), var(--image-y), 0) scale(1.035);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
  filter: saturate(.96) contrast(1.02);
}

.hero-stage:hover .hero-image {
  filter: saturate(1.08) contrast(1.04);
}

.hero-image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.18)),
    linear-gradient(90deg, rgba(0,0,0,.20), transparent 50%, rgba(0,0,0,.18));
  pointer-events: none;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 185px at var(--spot-x, 60%) var(--spot-y, 44%), rgba(94,170,255,.22), transparent 70%);
  mix-blend-mode: screen;
  opacity: .9;
}

.hero-coordinate {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,9,13,.42);
  backdrop-filter: blur(10px);
  font-size: 9px;
  letter-spacing: .25em;
  color: rgba(255,255,255,.72);
}

.hero-focus-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(13,14,19,.82);
  backdrop-filter: blur(16px);
  border-radius: 3px;
  transform: translateZ(38px);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.hero-focus-index {
  min-width: 28px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .15em;
  padding-top: 3px;
}

.hero-focus-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 5px;
}

.hero-focus-card p {
  margin: 0;
  max-width: 520px;
  color: rgba(246,244,239,.52);
  font-size: 11px;
  line-height: 1.55;
}

.hero-focus-card.is-changing {
  animation: focusChange .35s ease;
}

@keyframes focusChange {
  0% { opacity: .45; transform: translateZ(38px) translateY(5px); }
  100% { opacity: 1; transform: translateZ(38px) translateY(0); }
}

.hero-chips {
  width: min(100%, 640px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  position: relative;
  z-index: 3;
}

.hero-chip {
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: rgba(246,244,239,.50);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  font-size: 10px;
  text-align: left;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.hero-chip span {
  color: rgba(246,244,239,.28);
  font-size: 9px;
}

.hero-chip:hover,
.hero-chip:focus-visible {
  color: white;
  border-color: rgba(0,102,255,.55);
  background: rgba(0,102,255,.08);
  transform: translateY(-2px);
  outline: none;
}

.hero-chip.is-active {
  color: white;
  border-color: var(--blue);
  background: rgba(0,102,255,.14);
}
.hero-chip.is-active span { color: #69a7ff; }

.hero-scroll {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 6vw, 92px);
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(246,244,239,.35);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.hero-scroll:hover { color: rgba(246,244,239,.8); }
.hero-scroll span:last-child { color: var(--blue); animation: scrollArrow 1.4s ease-in-out infinite; }

@keyframes scrollArrow {
  50% { transform: translateY(5px); }
}

@media (hover: hover) and (pointer: fine) {
  .magnetic-button { will-change: transform; transition: transform .18s ease, background .2s ease; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-copy h1 em::after,
  .hero-status-dot,
  .hero-scroll span:last-child { animation: none !important; }
  .hero-stage,
  .hero-image,
  .magnetic-button { transform: none !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
  .nav > a:not(.button) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); }
  .hero-side { display: none; }
  .hero-stage { min-height: 470px; height: min(66vh, 560px); }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
  .statement, .section-heading, .manifesto { grid-template-columns: 1fr; gap: 34px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid article:nth-child(2) { border-right: 0; }
  .pillar-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .form-shell { grid-template-columns: 1fr; }
  .form-intro { border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 700px) {
  .site-header { height: 72px; padding-inline: 20px; }
  .brand-sub { display: none; }
  .nav .button { display: none; }
  .menu-toggle { display: block; }
  .hero { display: block; min-height: auto; }
  .hero-copy { padding: 72px 24px 48px; }
  .hero-microcopy { margin-top: 28px; }
  .hero-visual { min-height: 0; padding: 34px 20px 70px; }
  .hero-stage { width: 100%; height: 510px; min-height: 0; }
  .hero-image-frame { min-height: 330px; }
  .hero-focus-card { padding: 14px; }
  .hero-focus-card p { font-size: 10.5px; }
  .hero-chips { width: 100%; grid-template-columns: 1fr 1fr; }
  .hero-scroll { left: 24px; bottom: 18px; }
  .portal { width: 42%; height: 88%; }
  .statement, .pillars, .services, .manifesto { padding: 78px 24px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-grid article { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 30px 0 48px !important; min-height: 0; }
  .pillar-grid article:last-child { border-bottom: 0; }
  .pillar-grid h3 { margin-top: 25px; }
  .conversion { align-items: flex-start; flex-direction: column; padding: 68px 24px; }
  footer { grid-template-columns: 1fr; padding: 36px 24px; gap: 14px; }
  .footer-note { text-align: left; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-intro, .form-card { padding: 58px 24px; }
  .form-header .text-link { font-size: 12px; }
}

/* =========================================================
   ETAPA 03 — PILARES VISUAIS E INTERATIVOS
   ========================================================= */
.pillar-grid-interactive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.pillar-grid-interactive .pillar-card {
  --card-x: 50%;
  --card-y: 50%;
  position: relative;
  min-height: 560px;
  padding: 0 !important;
  border: 0 !important;
  background: #0d0e13;
  overflow: hidden;
  outline: none;
  cursor: pointer;
  isolation: isolate;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle 260px at var(--card-x) var(--card-y), rgba(0,102,255,.14), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 36%);
  pointer-events: none;
}

.pillar-card:hover::before,
.pillar-card:focus-visible::before,
.pillar-card.is-active::before { opacity: 1; }

.pillar-visual {
  position: relative;
  z-index: 1;
  height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(0,102,255,.08), transparent 48%);
  background-size: 34px 34px, 34px 34px, auto;
}

.pillar-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  transform: scale(.76);
  opacity: .7;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}

.pillar-card:hover .pillar-visual::before,
.pillar-card.is-active .pillar-visual::before { transform: scale(1); opacity: 1; }

.pillar-svg {
  width: min(86%, 430px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,.18));
  transform: translateZ(0) scale(.96);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

.pillar-card:hover .pillar-svg,
.pillar-card:focus-visible .pillar-svg,
.pillar-card.is-active .pillar-svg {
  transform: translateZ(0) scale(1.035);
  filter: drop-shadow(0 34px 48px rgba(0,0,0,.26));
}

.visual-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(246,244,239,.38);
  font-size: 9px;
  letter-spacing: .22em;
  transition: color .25s ease, transform .25s ease;
}

.pillar-card:hover .visual-caption,
.pillar-card.is-active .visual-caption { color: #77afff; transform: translateX(4px); }

.pillar-content {
  position: relative;
  z-index: 2;
  min-height: 228px;
  padding: 28px 30px 30px;
}

.pillar-grid-interactive .pillar-number {
  display: block;
  color: var(--blue);
  margin-bottom: 14px;
  font-size: 10px;
  letter-spacing: .12em;
}

.pillar-grid-interactive h3 {
  margin: 0 0 12px;
  font-size: clamp(31px, 3vw, 47px);
  transition: transform .3s ease, color .3s ease;
}

.pillar-card:hover h3,
.pillar-card.is-active h3 { color: white; transform: translateX(4px); }

.pillar-grid-interactive .pillar-content p {
  max-width: 460px;
  margin: 0;
  color: rgba(246,244,239,.53);
  font-size: 13px;
  line-height: 1.6;
}

.pillar-expand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(246,244,239,.24);
  background: transparent;
  color: rgba(246,244,239,.66);
  font-size: 11px;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}

.pillar-expand span { color: var(--blue); }
.pillar-card:hover .pillar-expand,
.pillar-card.is-active .pillar-expand {
  gap: 14px;
  color: white;
  border-color: var(--blue);
}

/* Presença */
.orbit,
.signal-line {
  fill: none;
  stroke: rgba(246,244,239,.24);
  stroke-width: 1.2;
}
.orbit { stroke-dasharray: 3 8; transform-origin: 210px 150px; }
.orbit-a { animation: presenceOrbit 18s linear infinite; }
.orbit-b { animation: presenceOrbitReverse 13s linear infinite; }
.orbit-c { stroke: rgba(0,102,255,.72); stroke-dasharray: 5 6; animation: presenceOrbit 8s linear infinite; }
.signal-line { stroke: rgba(0,102,255,.34); stroke-dasharray: 4 5; }
.signal-node { fill: #0d0e13; stroke: rgba(246,244,239,.66); stroke-width: 2; }
.signal-node.node-core { fill: var(--blue); stroke: #8bbcff; }
.presence-glow { transform-origin: 210px 150px; animation: presencePulse 3.5s ease-in-out infinite; }

@keyframes presenceOrbit { to { transform: rotate(360deg); } }
@keyframes presenceOrbitReverse { to { transform: rotate(-360deg); } }
@keyframes presencePulse { 50% { transform: scale(1.1); opacity: .68; } }

/* Estrutura */
.structure-frame,
.structure-block {
  fill: rgba(255,255,255,.018);
  stroke: rgba(246,244,239,.18);
  stroke-width: 1.2;
}
.structure-block { transition: fill .35s ease, stroke .35s ease, transform .35s ease; transform-box: fill-box; transform-origin: center; }
.structure-path { fill: none; stroke: rgba(0,102,255,.42); stroke-width: 1.4; stroke-dasharray: 5 5; }
.structure-dot { fill: var(--blue); filter: drop-shadow(0 0 8px rgba(0,102,255,.65)); }
.pillar-card:hover .block-a,
.pillar-card.is-active .block-a { transform: translate(-4px,-4px); fill: rgba(0,102,255,.12); stroke: rgba(0,102,255,.72); }
.pillar-card:hover .block-b,
.pillar-card.is-active .block-b { transform: translate(4px,-4px); fill: rgba(0,102,255,.08); stroke: rgba(0,102,255,.48); }
.pillar-card:hover .block-c,
.pillar-card.is-active .block-c { transform: scaleX(.97); fill: rgba(255,255,255,.04); }
.pillar-card:hover .block-d,
.pillar-card.is-active .block-d { transform: translate(-4px,4px); }
.pillar-card:hover .block-e,
.pillar-card.is-active .block-e { transform: translate(4px,4px); fill: rgba(0,102,255,.08); }

/* Conversão */
.funnel-outline { fill: rgba(255,255,255,.018); stroke: rgba(246,244,239,.22); stroke-width: 1.2; }
.funnel-flow { fill: none; stroke: rgba(0,102,255,.30); stroke-width: 1; stroke-dasharray: 5 6; }
.conversion-dot { fill: #8abaff; filter: drop-shadow(0 0 8px rgba(0,102,255,.55)); }
.dot-1 { animation: conversionMoveA 3.6s ease-in-out infinite; }
.dot-2 { animation: conversionMoveB 3.6s .55s ease-in-out infinite; }
.dot-3 { animation: conversionMoveC 3.6s 1.1s ease-in-out infinite; }
.dot-4 { fill: var(--blue); animation: conversionPulse 2.2s ease-in-out infinite; }
@keyframes conversionMoveA { 50% { transform: translate(198px, 58px); opacity: .45; } }
@keyframes conversionMoveB { 50% { transform: translate(51px, 31px); opacity: .5; } }
@keyframes conversionMoveC { 50% { transform: translate(-16px, 70px); opacity: .55; } }
@keyframes conversionPulse { 50% { r: 13px; opacity: .62; } }

/* Dados */
.chart-axis { stroke: rgba(246,244,239,.20); stroke-width: 1; }
.data-bar { fill: rgba(246,244,239,.10); stroke: rgba(246,244,239,.16); stroke-width: 1; transform-box: fill-box; transform-origin: center bottom; transition: transform .5s cubic-bezier(.2,.8,.2,1), fill .35s ease; }
.data-trend { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 450; stroke-dashoffset: 450; transition: stroke-dashoffset 1.1s ease; }
.trend-dot { fill: var(--blue); filter: drop-shadow(0 0 9px rgba(0,102,255,.72)); opacity: .35; transition: opacity .35s .7s ease; }
.pillar-card:hover .data-bar,
.pillar-card.is-active .data-bar { fill: rgba(0,102,255,.28); }
.pillar-card:hover .bar-a,
.pillar-card.is-active .bar-a { transform: scaleY(1.12); }
.pillar-card:hover .bar-b,
.pillar-card.is-active .bar-b { transform: scaleY(1.18); }
.pillar-card:hover .bar-c,
.pillar-card.is-active .bar-c { transform: scaleY(1.08); }
.pillar-card:hover .bar-d,
.pillar-card.is-active .bar-d { transform: scaleY(1.14); }
.pillar-card:hover .data-trend,
.pillar-card.is-active .data-trend { stroke-dashoffset: 0; }
.pillar-card:hover .trend-dot,
.pillar-card.is-active .trend-dot { opacity: 1; }

.pillar-detail {
  margin-top: 1px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(150px,.35fr) minmax(300px,1fr) auto;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line-dark);
  background: linear-gradient(90deg, rgba(0,102,255,.10), rgba(255,255,255,.018));
  transition: background .35s ease, transform .35s ease;
}

.pillar-detail.is-changing { animation: pillarDetailChange .38s ease; }
@keyframes pillarDetailChange {
  0% { opacity: .45; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pillar-detail-index {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .15em;
}
.pillar-detail-kicker { margin: 0; font-family: var(--serif); font-size: 22px; }
.pillar-detail > p { margin: 0; max-width: 720px; color: rgba(246,244,239,.58); font-size: 13px; line-height: 1.6; }
.pillar-detail .text-link { white-space: nowrap; }

@media (max-width: 980px) {
  .pillar-grid-interactive { grid-template-columns: 1fr 1fr; }
  .pillar-grid-interactive .pillar-card { min-height: 520px; }
  .pillar-visual { height: 290px; }
  .pillar-detail { grid-template-columns: 140px 1fr; }
  .pillar-detail .text-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .pillar-grid-interactive { grid-template-columns: 1fr; }
  .pillar-grid-interactive .pillar-card { min-height: 0; }
  .pillar-visual { height: 270px; }
  .pillar-content { min-height: 0; padding: 26px 22px 30px; }
  .pillar-grid-interactive h3 { margin: 0 0 10px; }
  .pillar-detail { padding: 24px 22px; grid-template-columns: 1fr; gap: 15px; }
  .pillar-detail .text-link { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-a,
  .orbit-b,
  .orbit-c,
  .presence-glow,
  .conversion-dot { animation: none !important; }
  .pillar-svg,
  .pillar-visual::before,
  .pillar-card::before,
  .data-bar,
  .data-trend { transition-duration: .01ms !important; }
}


/* =========================================================
   ETAPA 04 — PORTFÓLIO
   Estrutura editorial e imagens. Interações avançadas ficam
   reservadas para a Etapa 05.
   ========================================================= */
.portfolio-section {
  padding: 110px clamp(24px, 6vw, 92px);
  background: var(--charcoal);
  color: var(--bone);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.portfolio-section .section-heading {
  margin-bottom: 54px;
}

.portfolio-section .section-heading > div {
  max-width: 960px;
}

.portfolio-intro {
  max-width: 710px;
  margin: 22px 0 0;
  color: rgba(246,244,239,.54);
  font-size: 15px;
  line-height: 1.7;
}

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

.portfolio-card {
  min-width: 0;
  background: var(--charcoal);
}

.portfolio-card-wide {
  grid-column: span 2;
}

.portfolio-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #101116;
}

.portfolio-card-wide .portfolio-image {
  aspect-ratio: 21 / 8.8;
}

.portfolio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portfolio-meta {
  min-height: 150px;
  padding: 25px 26px 27px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-dark);
}

.portfolio-type {
  display: block;
  margin-bottom: 10px;
  color: rgba(246,244,239,.42);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portfolio-meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.035em;
}

.portfolio-objectives {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 330px;
}

.portfolio-objectives span {
  padding: 7px 10px;
  border: 1px solid rgba(246,244,239,.13);
  border-radius: 999px;
  color: rgba(246,244,239,.55);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 34px;
  padding-top: 30px;
}

.portfolio-foot p {
  max-width: 720px;
  margin: 0;
  color: rgba(246,244,239,.46);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .portfolio-card-wide {
    grid-column: span 2;
  }

  .portfolio-card-wide .portfolio-image {
    aspect-ratio: 16 / 9;
  }

  .portfolio-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-objectives {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .portfolio-section {
    padding: 78px 24px;
  }

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

  .portfolio-card-wide {
    grid-column: span 1;
  }

  .portfolio-card .portfolio-image,
  .portfolio-card-wide .portfolio-image {
    aspect-ratio: 4 / 3;
  }

  .portfolio-meta {
    min-height: 0;
    padding: 22px;
  }

  .portfolio-foot {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   ETAPA 05 — INTERATIVIDADE DO PORTFÓLIO
   Filtros, cursor contextual, profundidade e visualização
   expandida dos estudos de aplicação.
   ========================================================= */

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-filter {
  appearance: none;
  border: 1px solid rgba(246,244,239,.14);
  background: transparent;
  color: rgba(246,244,239,.58);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 10px;
  letter-spacing: .08em;
  transition:
    border-color .25s ease,
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.portfolio-filter:hover,
.portfolio-filter:focus-visible {
  border-color: rgba(246,244,239,.42);
  color: var(--bone);
  transform: translateY(-1px);
}

.portfolio-filter.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.portfolio-filter:focus-visible,
.portfolio-open:focus-visible,
.portfolio-dialog-close:focus-visible,
.portfolio-dialog-nav button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.portfolio-count {
  margin: 0;
  color: rgba(246,244,239,.38);
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  transform-origin: 50% 50%;
  transition:
    opacity .34s ease,
    transform .42s cubic-bezier(.2,.8,.2,1),
    filter .34s ease;
}

.portfolio-card.is-hiding {
  opacity: 0;
  transform: scale(.97);
  filter: blur(5px);
}

.portfolio-card[hidden] {
  display: none !important;
}

.portfolio-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: block;
}

.portfolio-image {
  --portfolio-x: 50%;
  --portfolio-y: 50%;
  isolation: isolate;
}

.portfolio-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--portfolio-x) var(--portfolio-y),
      rgba(0,102,255,.24),
      rgba(0,102,255,.07) 22%,
      transparent 46%
    );
  transition: opacity .3s ease;
}

.portfolio-image img {
  transform: scale(1.001) translate3d(var(--portfolio-img-x, 0), var(--portfolio-img-y, 0), 0);
  transition:
    transform .65s cubic-bezier(.16,1,.3,1),
    filter .45s ease;
  will-change: transform;
}

.portfolio-card:hover .portfolio-image::before,
.portfolio-card:focus-within .portfolio-image::before {
  opacity: 1;
}

.portfolio-card:hover .portfolio-image img,
.portfolio-card:focus-within .portfolio-image img {
  transform: scale(1.045) translate3d(var(--portfolio-img-x, 0), var(--portfolio-img-y, 0), 0);
  filter: saturate(1.04) contrast(1.03);
}

.portfolio-number {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246,244,239,.24);
  border-radius: 999px;
  background: rgba(11,11,15,.42);
  backdrop-filter: blur(10px);
  color: rgba(246,244,239,.82);
  font-size: 10px;
  letter-spacing: .08em;
}

.portfolio-view-label {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(246,244,239,.18);
  border-radius: 4px;
  background: rgba(11,11,15,.62);
  backdrop-filter: blur(12px);
  color: var(--bone);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}

.portfolio-card:hover .portfolio-view-label,
.portfolio-card:focus-within .portfolio-view-label {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(0,102,255,.72);
}

.portfolio-meta {
  transition: background .3s ease;
}

.portfolio-card:hover .portfolio-meta,
.portfolio-card:focus-within .portfolio-meta {
  background: #101116;
}

.portfolio-card:hover .portfolio-meta h3,
.portfolio-card:focus-within .portfolio-meta h3 {
  color: #fff;
}

.portfolio-objectives span {
  transition:
    border-color .28s ease,
    color .28s ease,
    background .28s ease;
}

.portfolio-card:hover .portfolio-objectives span,
.portfolio-card:focus-within .portfolio-objectives span {
  border-color: rgba(0,102,255,.36);
  color: rgba(246,244,239,.76);
  background: rgba(0,102,255,.055);
}

/* Cursor contextual exclusivo do portfólio */
.portfolio-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 250;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px,-100px,0) scale(.72);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  transition: opacity .18s ease, transform .12s linear;
}

.portfolio-cursor span {
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portfolio-cursor.is-visible {
  opacity: 1;
}

/* Janela expandida */
.portfolio-dialog {
  width: min(1380px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid rgba(246,244,239,.16);
  border-radius: 8px;
  background: #0b0b0f;
  color: var(--bone);
  box-shadow: 0 40px 120px rgba(0,0,0,.58);
  overflow: hidden;
}

.portfolio-dialog::backdrop {
  background: rgba(2,3,5,.78);
  backdrop-filter: blur(12px);
}

.portfolio-dialog[open] {
  animation: portfolioDialogIn .42s cubic-bezier(.16,1,.3,1) both;
}

.portfolio-dialog.is-closing {
  animation: portfolioDialogOut .22s ease both;
}

@keyframes portfolioDialogIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes portfolioDialogOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.992); }
}

.portfolio-dialog-shell {
  max-height: calc(100vh - 38px);
  overflow: auto;
  overscroll-behavior: contain;
}

.portfolio-dialog-header {
  min-height: 84px;
  padding: 20px clamp(22px, 3vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11,11,15,.91);
  backdrop-filter: blur(18px);
}

.portfolio-dialog-index,
.portfolio-dialog-category {
  display: block;
  margin: 0;
}

.portfolio-dialog-index {
  color: rgba(246,244,239,.34);
  font-size: 9px;
  letter-spacing: .16em;
}

.portfolio-dialog-category {
  margin-top: 4px;
  color: rgba(246,244,239,.72);
  font-size: 12px;
}

.portfolio-dialog-close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid rgba(246,244,239,.16);
  background: transparent;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.portfolio-dialog-close:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: rotate(4deg);
}

.portfolio-dialog-close span {
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 1px;
  background: var(--bone);
}

.portfolio-dialog-close span:first-child { transform: rotate(45deg); }
.portfolio-dialog-close span:last-child { transform: rotate(-45deg); }

.portfolio-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  min-height: 620px;
}

.portfolio-dialog-visual {
  margin: 0;
  min-width: 0;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 40%),
    #08090c;
  border-right: 1px solid var(--line-dark);
}

.portfolio-dialog-visual img {
  width: min(94%, 1040px);
  height: auto;
  display: block;
  filter: drop-shadow(0 34px 70px rgba(0,0,0,.34));
}

.portfolio-dialog-content {
  padding: clamp(42px, 5vw, 74px);
  align-self: center;
}

.portfolio-dialog-content h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 500;
}

.portfolio-dialog-lead {
  margin: 0 0 42px;
  max-width: 590px;
  color: rgba(246,244,239,.62);
  font-size: 15px;
  line-height: 1.7;
}

.portfolio-dialog-block {
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}

.portfolio-dialog-label {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portfolio-dialog-block p {
  margin: 0;
  color: rgba(246,244,239,.66);
  font-size: 13px;
  line-height: 1.65;
}

.portfolio-dialog-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-dialog-list li {
  padding: 8px 10px;
  border: 1px solid rgba(246,244,239,.14);
  border-radius: 999px;
  color: rgba(246,244,239,.68);
  font-size: 10px;
}

.portfolio-dialog-cta {
  margin-top: 28px;
}

.portfolio-dialog-nav {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line-dark);
}

.portfolio-dialog-nav button {
  flex: 1;
  min-height: 74px;
  padding: 0 32px;
  border: 0;
  background: transparent;
  color: rgba(246,244,239,.58);
  font-size: 11px;
  letter-spacing: .05em;
  transition: background .22s ease, color .22s ease;
}

.portfolio-dialog-nav button:first-child { text-align: left; }
.portfolio-dialog-nav button:last-child { text-align: right; border-left: 1px solid var(--line-dark); }

.portfolio-dialog-nav button:hover {
  color: #fff;
  background: rgba(255,255,255,.035);
}

@media (pointer: coarse), (max-width: 980px) {
  .portfolio-cursor { display: none; }
  .portfolio-view-label {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .portfolio-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .portfolio-count { white-space: normal; }

  .portfolio-dialog-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-dialog-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .portfolio-dialog-visual img {
    width: 92%;
  }
}

@media (max-width: 700px) {
  .portfolio-filters {
    flex-wrap: nowrap;
    width: calc(100vw - 48px);
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar { display: none; }

  .portfolio-filter {
    flex: 0 0 auto;
  }

  .portfolio-view-label {
    right: 12px;
    bottom: 12px;
    padding: 8px 9px;
  }

  .portfolio-number {
    top: 12px;
    left: 12px;
  }

  .portfolio-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .portfolio-dialog-shell {
    max-height: 100dvh;
  }

  .portfolio-dialog-header {
    min-height: 70px;
    padding: 14px 18px;
  }

  .portfolio-dialog-visual {
    aspect-ratio: 4 / 3;
  }

  .portfolio-dialog-content {
    padding: 38px 22px 48px;
  }

  .portfolio-dialog-content h3 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .portfolio-dialog-nav {
    position: sticky;
    bottom: 0;
    background: rgba(11,11,15,.94);
    backdrop-filter: blur(16px);
  }

  .portfolio-dialog-nav button {
    min-height: 64px;
    padding: 0 18px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-image img,
  .portfolio-view-label,
  .portfolio-filter,
  .portfolio-dialog[open],
  .portfolio-dialog.is-closing {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .portfolio-cursor { display: none !important; }
}


/* =========================================================
   ETAPA 06 — QUEM SOMOS
   Narrativa institucional + sistema visual interativo.
   ========================================================= */

.about-section {
  position: relative;
  overflow: hidden;
  padding: 118px clamp(24px, 6vw, 92px);
  background: var(--bone);
  color: var(--charcoal);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.about-section::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -280px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,.10), transparent 68%);
  pointer-events: none;
}

.about-heading {
  display: grid;
  grid-template-columns: .35fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 78px;
}

.about-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.about-heading h2 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.5vw, 82px);
  line-height: 1.01;
  letter-spacing: -.042em;
  font-weight: 500;
}

.about-heading h2 em {
  display: block;
  color: var(--blue);
  font-weight: 500;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
}

.about-copy {
  padding-top: 20px;
}

.about-copy > p {
  max-width: 650px;
  margin: 0;
  color: #62666f;
  font-size: 15px;
  line-height: 1.78;
}

.about-copy .about-lead {
  margin-bottom: 24px;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 37px);
  line-height: 1.22;
  letter-spacing: -.025em;
}

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

.about-principle {
  width: 100%;
  min-height: 74px;
  padding: 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  color: #787c84;
  text-align: left;
  transition:
    color .25s ease,
    padding-left .3s cubic-bezier(.16,1,.3,1),
    background .25s ease;
}

.about-principle > span {
  font-size: 10px;
  color: #a4a7ad;
  letter-spacing: .12em;
}

.about-principle strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.about-principle:hover,
.about-principle:focus-visible {
  color: var(--charcoal);
  padding-left: 10px;
}

.about-principle.is-active {
  color: var(--charcoal);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(0,102,255,.07), transparent 60%);
}

.about-principle.is-active > span {
  color: var(--blue);
}

.about-principle:focus-visible,
.about-node:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.about-visual-column {
  min-width: 0;
}

.about-system {
  --about-x: 50%;
  --about-y: 50%;
  --about-tilt-x: 0deg;
  --about-tilt-y: 0deg;
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(11,11,15,.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--about-x) var(--about-y), rgba(0,102,255,.11), transparent 31%),
    linear-gradient(145deg, #121319, #08090c 72%);
  box-shadow: 0 32px 80px rgba(11,11,15,.13);
  transform:
    perspective(1100px)
    rotateX(var(--about-tilt-x))
    rotateY(var(--about-tilt-y));
  transform-style: preserve-3d;
  transition: transform .22s ease-out;
}

.about-grid-lines {
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 84%, transparent);
}

.about-grid-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 47%, transparent 0 22%, #000 76%);
  opacity: .48;
}

.about-glow {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  left: var(--about-x);
  top: var(--about-y);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,.28), rgba(0,102,255,.07) 34%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.about-orbit {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(246,244,239,.11);
  border-radius: 50%;
  pointer-events: none;
}

.about-orbit-one {
  width: 420px;
  height: 420px;
}

.about-orbit-two {
  width: 560px;
  height: 560px;
  border-style: dashed;
  opacity: .62;
  animation: aboutOrbitSpin 34s linear infinite;
}

@keyframes aboutOrbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 43%;
  width: 158px;
  height: 158px;
  transform: translate(-50%, -50%) translateZ(36px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background:
    radial-gradient(circle at 32% 25%, #2582ff, var(--blue) 42%, #0048af 100%);
  color: white;
  box-shadow:
    0 0 0 14px rgba(0,102,255,.06),
    0 0 70px rgba(0,102,255,.25);
}

.about-core span {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.08em;
}

.about-core small {
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.about-node {
  position: absolute;
  z-index: 6;
  width: 118px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(246,244,239,.16);
  border-radius: 999px;
  background: rgba(11,11,15,.72);
  backdrop-filter: blur(12px);
  color: rgba(246,244,239,.62);
  transform: translate(-50%, -50%) translateZ(28px);
  transition:
    border-color .24s ease,
    color .24s ease,
    background .24s ease,
    transform .32s cubic-bezier(.16,1,.3,1);
}

.about-node:hover {
  color: white;
  border-color: rgba(246,244,239,.36);
  transform: translate(-50%, -50%) translateZ(28px) scale(1.04);
}

.about-node.is-active {
  color: white;
  border-color: rgba(0,102,255,.82);
  background: rgba(0,102,255,.18);
}

.about-node-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #777c86;
  transition: background .2s ease, box-shadow .2s ease;
}

.about-node.is-active .about-node-dot {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(0,102,255,.9);
}

.about-node-label {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-node-strategy { left: 50%; top: 11%; }
.about-node-design { left: 84%; top: 43%; }
.about-node-tech { left: 50%; top: 75%; }
.about-node-data { left: 16%; top: 43%; }

.about-connection {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 43%;
  width: 1px;
  height: 150px;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(0,102,255,.72), rgba(246,244,239,.10));
  opacity: .55;
}

.about-connection-a { transform: translate(-50%, -100%) rotate(0deg); }
.about-connection-b { transform: translate(-50%, -100%) rotate(90deg); }
.about-connection-c { transform: translate(-50%, -100%) rotate(180deg); }
.about-connection-d { transform: translate(-50%, -100%) rotate(270deg); }

.about-system-caption {
  position: absolute;
  z-index: 8;
  left: 26px;
  right: 26px;
  bottom: 26px;
  min-height: 108px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  background: rgba(7,8,11,.78);
  border: 1px solid rgba(246,244,239,.12);
  border-radius: 6px;
  backdrop-filter: blur(18px);
  color: white;
}

.about-system-caption > span {
  padding-top: 3px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .12em;
}

.about-system-caption strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.about-system-caption p {
  margin: 0;
  color: rgba(246,244,239,.52);
  font-size: 11px;
  line-height: 1.6;
}

.about-signature {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-light);
}

.about-signature-mark {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.07em;
}

.about-signature-mark span {
  color: var(--blue);
}

.about-signature p {
  margin: 0;
  max-width: 340px;
  color: #777b84;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.about-difference {
  margin-top: 112px;
  padding-top: 54px;
  border-top: 1px solid var(--line-light);
}

.about-difference-intro {
  display: grid;
  grid-template-columns: .35fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.about-difference-intro h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
}

.about-difference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.about-difference-grid article {
  min-height: 260px;
  padding: 28px 26px 38px;
  border-right: 1px solid var(--line-light);
  transition: background .26s ease, transform .26s ease;
}

.about-difference-grid article:first-child {
  padding-left: 0;
}

.about-difference-grid article:last-child {
  border-right: 0;
}

.about-difference-grid article:hover {
  background: rgba(0,102,255,.045);
  transform: translateY(-4px);
}

.about-difference-grid article > span {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .12em;
}

.about-difference-grid h4 {
  margin: 62px 0 10px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.about-difference-grid p {
  margin: 0;
  max-width: 260px;
  color: #6b6f77;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .about-layout {
    grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr);
    gap: 54px;
  }

  .about-system {
    min-height: 560px;
  }

  .about-orbit-one { width: 350px; height: 350px; }
  .about-orbit-two { width: 460px; height: 460px; }
}

@media (max-width: 980px) {
  .about-heading,
  .about-difference-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 760px;
  }

  .about-system {
    max-width: 780px;
    margin: 0 auto;
  }

  .about-difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-difference-grid article:nth-child(2) {
    border-right: 0;
  }

  .about-difference-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-light);
  }
}

@media (max-width: 700px) {
  .about-section {
    padding: 78px 24px;
  }

  .about-heading {
    margin-bottom: 52px;
  }

  .about-heading h2 em {
    display: inline;
  }

  .about-principle {
    min-height: 68px;
  }

  .about-system {
    min-height: 530px;
  }

  .about-orbit-one {
    width: 280px;
    height: 280px;
  }

  .about-orbit-two {
    width: 370px;
    height: 370px;
  }

  .about-core {
    width: 126px;
    height: 126px;
  }

  .about-node {
    width: auto;
    min-width: 94px;
    height: 38px;
    padding: 0 10px;
  }

  .about-node-strategy { top: 13%; }
  .about-node-tech { top: 70%; }
  .about-node-design { left: 80%; }
  .about-node-data { left: 20%; }

  .about-system-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .about-signature {
    flex-direction: column;
  }

  .about-signature p {
    text-align: left;
  }

  .about-difference {
    margin-top: 76px;
  }

  .about-difference-grid {
    grid-template-columns: 1fr;
  }

  .about-difference-grid article,
  .about-difference-grid article:first-child {
    min-height: 0;
    padding: 25px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .about-difference-grid article:last-child {
    border-bottom: 0;
  }

  .about-difference-grid h4 {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-orbit-two {
    animation: none !important;
  }

  .about-system,
  .about-principle,
  .about-node,
  .about-difference-grid article {
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   ETAPA 07 — PÁGINA DE DIAGNÓSTICO
   O fluxo deixa de ser "pedir orçamento" e passa a iniciar
   uma conversa consultiva a partir de um diagnóstico.
   ========================================================= */

.diagnostic-intro {
  justify-content: flex-start;
  padding-top: clamp(72px, 8vw, 118px);
}

.diagnostic-intro .eyebrow {
  color: rgba(246,244,239,.54);
}

.diagnostic-intro h1 {
  max-width: 760px;
}

.diagnostic-intro-copy {
  max-width: 620px !important;
  margin-top: 30px !important;
}

.diagnostic-promise {
  width: 100%;
  max-width: 680px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.diagnostic-promise-title {
  margin: 0 0 20px;
  color: rgba(246,244,239,.44);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

.diagnostic-promise-grid article {
  min-height: 165px;
  padding: 20px;
  background: var(--charcoal);
}

.diagnostic-promise-grid article > span {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .1em;
}

.diagnostic-promise-grid strong {
  display: block;
  margin: 34px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.diagnostic-promise-grid p {
  margin: 0;
  color: rgba(246,244,239,.46);
  font-size: 11px;
  line-height: 1.55;
}

.diagnostic-card {
  align-items: flex-start;
  padding-top: clamp(72px, 8vw, 118px);
}

.diagnostic-form-heading {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 38px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-light);
}

.diagnostic-step {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}

.diagnostic-form-heading h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.032em;
}

.diagnostic-form-heading p {
  margin: 0;
  max-width: 590px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.6;
}

.diagnostic-page .form-submit {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .diagnostic-intro,
  .diagnostic-card {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 700px) {
  .diagnostic-promise {
    margin-top: 38px;
  }

  .diagnostic-promise-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-promise-grid article {
    min-height: 0;
  }

  .diagnostic-promise-grid strong {
    margin-top: 18px;
  }
}


/* =========================================================
   ETAPA 08 — INSTAGRAM E SITE NO DIAGNÓSTICO
   ========================================================= */

.input-prefix-wrap {
  position: relative;
}

.input-prefix-wrap .input-prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--slate);
  font-size: 14px;
  pointer-events: none;
}

.input-prefix-wrap input {
  padding-left: 34px;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #8a8e96;
  font-size: 10px;
  line-height: 1.45;
}

.field.invalid .field-help {
  color: #8a8e96;
}

@media (max-width: 700px) {
  .field-help {
    font-size: 10px;
  }
}


/* =========================================================
   ETAPA 09 — MICROINTERAÇÕES GERAIS E NAVEGAÇÃO
   ========================================================= */

html {
  scroll-padding-top: 104px;
}

body {
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Acessibilidade: atalho para teclado */
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 18px;
  top: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Progresso de leitura */
.scroll-progress {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Header passa a responder à rolagem */
.site-header {
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    height .28s ease;
}

.site-header.is-scrolled {
  background: rgba(11,11,15,.94);
  border-bottom-color: rgba(255,255,255,.16);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
}

.nav > a[data-nav-link] {
  position: relative;
}

.nav > a[data-nav-link]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}

.nav > a[data-nav-link]:hover::after,
.nav > a[data-nav-link].is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nav > a[data-nav-link].is-active {
  color: white;
}

/* Botões: resposta visual sem transformar tudo em fliperama */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0 36%,
    rgba(255,255,255,.16) 48%,
    transparent 60% 100%
  );
  transform: translateX(-115%);
  transition: transform .52s cubic-bezier(.16,1,.3,1);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(115%);
}

.button > span:last-child {
  transition: transform .25s ease;
}

.button:hover > span:last-child,
.button:focus-visible > span:last-child {
  transform: translate(3px, -2px);
}

.text-link {
  transition: color .22s ease, border-color .22s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: white;
  border-color: var(--blue);
}

/* Scroll reveal progressivo. Só é oculto se JS estiver ativo. */
.js-motion .reveal-item {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .72s cubic-bezier(.16,1,.3,1),
    transform .72s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-motion .reveal-item.reveal-soft {
  transform: translate3d(0, 16px, 0);
}

.js-motion .reveal-item.reveal-left {
  transform: translate3d(-28px, 0, 0);
}

.js-motion .reveal-item.reveal-right {
  transform: translate3d(28px, 0, 0);
}

.js-motion .reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  border: 1px solid rgba(246,244,239,.16);
  border-radius: 50%;
  background: rgba(11,11,15,.82);
  color: white;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.92);
  transition:
    opacity .24s ease,
    visibility .24s ease,
    transform .28s cubic-bezier(.16,1,.3,1),
    background .22s ease,
    border-color .22s ease;
}

.back-to-top span {
  font-size: 18px;
  line-height: 1;
}

.back-to-top small {
  margin-top: 1px;
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(246,244,239,.56);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.back-to-top:hover small,
.back-to-top:focus-visible small {
  color: white;
}

/* Campos respondem ao foco e ao preenchimento */
.field {
  position: relative;
}

.field label {
  transition: color .2s ease;
}

.field:focus-within label {
  color: var(--blue);
}

.field.has-value input,
.field.has-value select,
.field.has-value textarea {
  background: rgba(255,255,255,.9);
}

.form-submit.is-sending {
  pointer-events: none;
}

.form-submit.is-sending::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 4px;
  border: 1px solid rgba(255,255,255,.45);
  border-top-color: white;
  border-radius: 50%;
  animation: oneSpin .72s linear infinite;
}

@keyframes oneSpin {
  to { transform: rotate(360deg); }
}

/* Navegação móvel refeita como painel, sem estilos inline */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    z-index: 300;
  }

  .menu-toggle {
    position: relative;
    z-index: 305;
    display: grid;
    place-items: center;
  }

  .menu-toggle span {
    position: absolute;
    left: 10px;
    width: 22px;
    margin: 0;
    transition: transform .28s cubic-bezier(.16,1,.3,1), top .28s ease;
  }

  .menu-toggle span:first-child {
    top: 16px;
  }

  .menu-toggle span:last-child {
    top: 24px;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    top: 20px;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    top: 20px;
    transform: rotate(-45deg);
  }

  .nav {
    position: fixed;
    z-index: 295;
    inset: 72px 0 0;
    height: calc(100dvh - 72px);
    padding: 34px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background:
      radial-gradient(circle at 85% 8%, rgba(0,102,255,.14), transparent 30%),
      rgba(11,11,15,.985);
    backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateX(102%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform .42s cubic-bezier(.16,1,.3,1),
      opacity .28s ease,
      visibility .42s;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav > a:not(.button),
  .nav .button {
    display: flex;
  }

  .nav > a[data-nav-link] {
    min-height: 68px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: rgba(246,244,239,.78);
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: -.025em;
  }

  .nav > a[data-nav-link]::after {
    left: auto;
    right: 0;
    bottom: 50%;
    width: 28px;
    transform-origin: 100% 50%;
  }

  .nav > a[data-nav-link].is-active {
    color: white;
  }

  .nav .button {
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    justify-content: space-between;
    padding: 0 18px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Sem animações para quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-progress span,
  .site-header,
  .nav,
  .menu-toggle span,
  .button::before,
  .button > span:last-child,
  .back-to-top,
  .field label,
  .reveal-item {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .js-motion .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* =========================================================
   ETAPA 10 — REVISÃO FINAL DE PRODUÇÃO
   ========================================================= */

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

img {
  max-width: 100%;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links p {
  white-space: nowrap;
}

.footer-links a {
  color: rgba(246,244,239,.68);
  font-size: 12px;
  border-bottom: 1px solid rgba(246,244,239,.26);
  transition: color .2s ease, border-color .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: white;
  border-color: var(--blue);
}

/* Estado de erro acessível nos campos */
.field [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180,35,24,.08);
}

.error[role="alert"]:empty {
  display: block;
}

/* Página 404 */
.error-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 20%, rgba(0,102,255,.16), transparent 30%),
    var(--charcoal);
}

.error-shell {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.error-copy {
  max-width: 980px;
  padding: 90px 0 8vh;
}

.error-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 122px);
  line-height: .93;
  letter-spacing: -.05em;
  font-weight: 500;
}

.error-copy h1 em {
  color: var(--blue);
  font-weight: 500;
}

.error-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 36px;
  color: rgba(246,244,239,.58);
}

@media (max-width: 980px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-note {
    grid-column: auto;
  }

  .error-copy {
    padding-top: 70px;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .back-to-top,
  .menu-toggle,
  .hero-scroll,
  .portfolio-cursor {
    display: none !important;
  }

  body,
  .section-light,
  .about-section,
  .services {
    background: white !important;
    color: black !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}


/* =========================================================
   PORTFÓLIO REAL — ETAPA 01/04
   Curadoria visual e entrada dos três trabalhos reais.
   Cases expandidos e interações avançadas ficam bloqueados
   para as próximas etapas.
   ========================================================= */

.selected-work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  align-items: end;
  gap: clamp(36px, 6vw, 90px);
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--line-dark);
}

.selected-work-kicker {
  display: block;
  margin-bottom: 17px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}

.selected-work-heading h3 {
  max-width: 830px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 500;
}

.selected-work-heading > p {
  margin: 0 0 5px;
  max-width: 490px;
  color: rgba(246,244,239,.48);
  font-size: 12px;
  line-height: 1.65;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 72px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.selected-work-card {
  min-width: 0;
  background: var(--charcoal);
}

.selected-work-card-costa {
  grid-column: 1 / -1;
}

.selected-work-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 9.2;
  background: #101116;
}

.selected-work-card-costa .selected-work-media {
  aspect-ratio: 21 / 8.7;
}

.selected-work-media figure {
  margin: 0;
}

.selected-work-media > figure,
.selected-work-main-shot {
  position: absolute;
  inset: 0;
}

.selected-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.selected-work-main-shot img {
  object-position: center top;
}

.selected-work-media-dual .selected-work-main-shot {
  right: 25%;
}

.selected-work-secondary-shot {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  width: min(35%, 520px);
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  border: 1px solid rgba(246,244,239,.18);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0,0,0,.38);
}

.selected-work-secondary-shot img {
  object-position: center top;
}

.selected-work-secondary-shot > span {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(11,11,15,.82);
  color: #fff;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.selected-work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.selected-work-copy {
  min-height: 240px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(260px, 1.05fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line-dark);
}

.selected-work-card-costa .selected-work-copy {
  grid-template-columns: minmax(300px, .78fr) minmax(380px, 1.15fr) auto;
}

.selected-work-type {
  display: block;
  margin-bottom: 10px;
  color: rgba(246,244,239,.38);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.selected-work-title h4 {
  max-width: 560px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 500;
}

.selected-work-copy > p {
  margin: 2px 0 0;
  max-width: 620px;
  color: rgba(246,244,239,.56);
  font-size: 13px;
  line-height: 1.72;
}

.selected-work-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}

.selected-work-card-costa .selected-work-tags {
  grid-column: 3;
  align-content: flex-start;
  justify-content: flex-end;
}

.selected-work-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(246,244,239,.13);
  border-radius: 999px;
  color: rgba(246,244,239,.54);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-study-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.portfolio-study-divider > span {
  color: rgba(246,244,239,.72);
  font-size: 9px;
  letter-spacing: .18em;
}

.portfolio-study-divider p {
  margin: 0;
  color: rgba(246,244,239,.36);
  font-size: 11px;
}

@media (max-width: 1050px) {
  .selected-work-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .selected-work-grid {
    grid-template-columns: 1fr;
  }

  .selected-work-card-costa {
    grid-column: auto;
  }

  .selected-work-card-costa .selected-work-media,
  .selected-work-media {
    aspect-ratio: 16 / 9;
  }

  .selected-work-media-dual .selected-work-main-shot {
    right: 0;
  }

  .selected-work-secondary-shot {
    width: 38%;
  }

  .selected-work-copy,
  .selected-work-card-costa .selected-work-copy {
    grid-template-columns: 1fr;
  }

  .selected-work-card-costa .selected-work-tags {
    grid-column: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .selected-work-heading {
    padding-top: 0;
  }

  .selected-work-grid {
    margin-bottom: 52px;
  }

  .selected-work-card-costa .selected-work-media,
  .selected-work-media {
    aspect-ratio: 4 / 3;
  }

  .selected-work-secondary-shot {
    right: 12px;
    bottom: 12px;
    width: 48%;
  }

  .selected-work-copy {
    min-height: 0;
    padding: 22px;
  }

  .portfolio-study-divider {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}


/* =========================================================
   PORTFÓLIO REAL — ETAPA 02/04
   Case expandido: Costa Sul Materiais para Construção
   ========================================================= */

.selected-work-open {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.selected-work-card-costa .selected-work-media {
  cursor: pointer;
}

.selected-work-case-cta {
  position: absolute;
  z-index: 7;
  left: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 4px;
  background: rgba(11,11,15,.76);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
}

.selected-work-open:hover .selected-work-case-cta,
.selected-work-open:focus-visible .selected-work-case-cta {
  transform: translateY(0);
  opacity: 1;
  border-color: rgba(0,102,255,.72);
}

.selected-work-open:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* Dialog principal */
.real-case-dialog {
  width: min(1520px, calc(100vw - 28px));
  max-width: none;
  height: min(94dvh, 1040px);
  max-height: 94dvh;
  padding: 0;
  border: 1px solid rgba(246,244,239,.14);
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--bone);
  overflow: hidden;
  box-shadow: 0 46px 150px rgba(0,0,0,.64);
}

.real-case-dialog::backdrop {
  background: rgba(2,3,5,.84);
  backdrop-filter: blur(14px);
}

.real-case-dialog[open] {
  animation: realCaseIn .42s cubic-bezier(.16,1,.3,1) both;
}

.real-case-dialog.is-closing {
  animation: realCaseOut .22s ease both;
}

@keyframes realCaseIn {
  from { opacity: 0; transform: translateY(24px) scale(.986); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes realCaseOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.992); }
}

.real-case-shell {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

.real-case-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 82px;
  padding: 17px clamp(20px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11,11,15,.92);
  backdrop-filter: blur(18px);
}

.real-case-header-copy span {
  display: block;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .17em;
}

.real-case-header-copy p {
  margin: 5px 0 0;
  color: rgba(246,244,239,.72);
  font-size: 12px;
}

.real-case-close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(246,244,239,.16);
  border-radius: 50%;
  background: transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.real-case-close:hover,
.real-case-close:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  transform: rotate(4deg);
}

.real-case-close span {
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 1px;
  background: white;
}

.real-case-close span:first-child { transform: rotate(45deg); }
.real-case-close span:last-child { transform: rotate(-45deg); }

.real-case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr);
  gap: clamp(54px, 7vw, 110px);
  padding: clamp(58px, 7vw, 104px) clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 82% 16%, rgba(0,102,255,.12), transparent 31%),
    linear-gradient(145deg, #101117, #090a0d 65%);
}

.real-case-eyebrow,
.real-case-label {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.real-case-title-block h3 {
  max-width: 850px;
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.1vw, 94px);
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 500;
}

.real-case-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(246,244,239,.56);
  font-size: 15px;
  line-height: 1.75;
}

.real-case-summary {
  align-self: end;
  border-top: 1px solid var(--line-dark);
}

.real-case-summary > div {
  min-height: 116px;
  padding: 19px 0;
  display: grid;
  grid-template-columns: 42px 118px 1fr;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line-dark);
}

.real-case-summary span {
  color: var(--blue);
  font-size: 9px;
}

.real-case-summary strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.real-case-summary p {
  margin: 0;
  color: rgba(246,244,239,.48);
  font-size: 11px;
  line-height: 1.6;
}

/* Viewer das duas telas */
.real-case-viewer {
  padding: clamp(42px, 5vw, 72px) clamp(24px, 5vw, 76px);
  background: #f1f1ef;
  color: var(--charcoal);
}

.real-case-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 24px;
}

.real-case-viewer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.real-case-tab {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(11,11,15,.15);
  border-radius: 999px;
  background: transparent;
  color: #686c74;
  font-size: 10px;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.real-case-tab > span {
  color: #9b9ea5;
}

.real-case-tab:hover,
.real-case-tab:focus-visible {
  color: var(--charcoal);
  border-color: rgba(11,11,15,.38);
}

.real-case-tab.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
}

.real-case-tab.is-active > span {
  color: #72aaff;
}

.real-case-viewer-hint {
  margin: 0;
  color: #858991;
  font-size: 10px;
}

.real-case-screen-stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(11,11,15,.12);
  border-radius: 8px;
  background: #dfe1e5;
  box-shadow: 0 24px 70px rgba(11,11,15,.10);
}

.real-case-screen {
  margin: 0;
  aspect-ratio: 1600 / 826;
  animation: realScreenIn .34s cubic-bezier(.16,1,.3,1) both;
}

.real-case-screen[hidden] {
  display: none;
}

.real-case-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@keyframes realScreenIn {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}

.real-case-screen-copy {
  display: grid;
  grid-template-columns: 180px minmax(0, 730px);
  gap: 30px;
  padding: 25px 2px 0;
}

.real-case-screen-copy > span {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .14em;
}

.real-case-screen-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.real-case-screen-copy p {
  margin: 0;
  color: #696d75;
  font-size: 12px;
  line-height: 1.65;
}

/* Análise */
.real-case-analysis {
  padding: clamp(64px, 7vw, 106px) clamp(24px, 5vw, 76px);
}

.real-case-section-heading {
  display: grid;
  grid-template-columns: .32fr 1fr;
  gap: 54px;
  margin-bottom: 48px;
}

.real-case-section-heading > span {
  color: rgba(246,244,239,.38);
  font-size: 9px;
  letter-spacing: .17em;
}

.real-case-section-heading h4 {
  max-width: 920px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 500;
}

.real-case-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.real-case-quality-grid article {
  min-height: 295px;
  padding: 28px 25px 38px;
  border-right: 1px solid var(--line-dark);
}

.real-case-quality-grid article:first-child {
  padding-left: 0;
}

.real-case-quality-grid article:last-child {
  border-right: 0;
}

.real-case-quality-grid article > span {
  color: var(--blue);
  font-size: 9px;
}

.real-case-quality-grid h5 {
  margin: 72px 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.real-case-quality-grid p {
  margin: 0;
  color: rgba(246,244,239,.48);
  font-size: 11px;
  line-height: 1.68;
}

/* Fluxo */
.real-case-flow {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) 1.38fr;
  gap: clamp(50px, 7vw, 110px);
  padding: 70px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: #0f1015;
}

.real-case-flow-copy h4 {
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 57px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
}

.real-case-flow-copy p {
  margin: 0;
  max-width: 520px;
  color: rgba(246,244,239,.50);
  font-size: 12px;
  line-height: 1.7;
}

.real-case-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: end;
}

.real-case-flow-steps > div {
  min-height: 210px;
  padding: 22px;
  border-left: 1px solid var(--line-dark);
}

.real-case-flow-steps > div:first-child {
  border-left: 0;
}

.real-case-flow-steps span {
  color: var(--blue);
  font-size: 9px;
}

.real-case-flow-steps strong {
  display: block;
  margin-top: 70px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.real-case-flow-steps p {
  margin: 7px 0 0;
  color: rgba(246,244,239,.42);
  font-size: 10px;
  line-height: 1.55;
}

.real-case-footer {
  padding: 42px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.real-case-footer > div > p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(246,244,239,.40);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .real-case-hero {
    grid-template-columns: 1fr;
  }

  .real-case-summary {
    max-width: 760px;
  }

  .real-case-quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .real-case-quality-grid article:nth-child(2) {
    border-right: 0;
  }

  .real-case-quality-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .real-case-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .selected-work-case-cta {
    left: 12px;
    bottom: 12px;
    opacity: 1;
    transform: none;
  }

  .real-case-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .real-case-header {
    min-height: 70px;
    padding: 13px 18px;
  }

  .real-case-hero {
    padding-top: 52px;
  }

  .real-case-summary > div {
    grid-template-columns: 34px 104px 1fr;
  }

  .real-case-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .real-case-viewer-tabs {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .real-case-viewer-tabs::-webkit-scrollbar {
    display: none;
  }

  .real-case-tab {
    flex: 0 0 auto;
  }

  .real-case-screen-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .real-case-section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .real-case-quality-grid {
    grid-template-columns: 1fr;
  }

  .real-case-quality-grid article,
  .real-case-quality-grid article:first-child {
    min-height: 0;
    padding: 25px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .real-case-quality-grid article:last-child {
    border-bottom: 0;
  }

  .real-case-quality-grid h5 {
    margin-top: 28px;
  }

  .real-case-flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .real-case-flow-steps > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .real-case-flow-steps > div:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .real-case-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .real-case-footer .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .real-case-summary > div {
    grid-template-columns: 34px 1fr;
  }

  .real-case-summary p {
    grid-column: 2;
  }

  .real-case-flow-steps {
    grid-template-columns: 1fr;
  }

  .real-case-flow-steps > div,
  .real-case-flow-steps > div:nth-child(3) {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .real-case-flow-steps > div:first-child {
    border-top: 0;
  }

  .real-case-flow-steps strong {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .real-case-dialog[open],
  .real-case-dialog.is-closing,
  .real-case-screen,
  .selected-work-case-cta {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   PORTFÓLIO REAL — ETAPA 03/04
   Cases expandidos: Érica Menezes Advocacia + Lótus 73
   ========================================================= */

.real-case-dialog-editorial {
  --case-accent: #b98b72;
}

.real-case-dialog-local {
  --case-accent: #d4b06b;
}

.real-case-dialog-editorial .real-case-eyebrow,
.real-case-dialog-editorial .real-case-label,
.real-case-dialog-editorial .real-case-summary span,
.real-case-dialog-editorial .real-case-quality-grid article > span,
.real-case-dialog-editorial .real-case-screen-copy > span {
  color: var(--case-accent);
}

.real-case-dialog-local .real-case-eyebrow,
.real-case-dialog-local .real-case-label,
.real-case-dialog-local .real-case-summary span,
.real-case-dialog-local .real-case-quality-grid article > span,
.real-case-dialog-local .real-case-screen-copy > span {
  color: var(--case-accent);
}

.real-case-hero-editorial {
  background:
    radial-gradient(circle at 80% 15%, rgba(185,139,114,.11), transparent 31%),
    linear-gradient(145deg, #151619, #0b0c0f 66%);
}

.real-case-hero-local {
  background:
    radial-gradient(circle at 80% 15%, rgba(212,176,107,.12), transparent 31%),
    linear-gradient(145deg, #11120f, #090a08 68%);
}

.real-case-single-screen {
  padding: clamp(42px, 5vw, 72px) clamp(24px, 5vw, 76px);
  background: #f1f1ef;
  color: var(--charcoal);
}

.real-case-single-screen figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(11,11,15,.12);
  border-radius: 8px;
  background: #dfe1e5;
  box-shadow: 0 24px 70px rgba(11,11,15,.10);
}

.real-case-single-screen figure img {
  width: 100%;
  height: auto;
  display: block;
}

.real-case-single-screen-editorial {
  background: #eeeae3;
}

.real-case-single-screen-local {
  background: #e7e2d8;
}

.real-case-flow-editorial {
  background:
    radial-gradient(circle at 13% 25%, rgba(185,139,114,.07), transparent 22%),
    #0f1014;
}

.real-case-flow-local {
  background:
    radial-gradient(circle at 13% 25%, rgba(212,176,107,.07), transparent 22%),
    #0e100d;
}

.real-case-flow-steps-three {
  grid-template-columns: repeat(3, 1fr);
}

.real-case-flow-steps-three > div:first-child {
  border-left: 0;
}

@media (max-width: 760px) {
  .real-case-flow-steps-three {
    grid-template-columns: 1fr;
  }

  .real-case-flow-steps-three > div,
  .real-case-flow-steps-three > div:nth-child(3) {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .real-case-flow-steps-three > div:first-child {
    border-top: 0;
  }
}


/* =========================================================
   PORTFÓLIO REAL — ETAPA 04/04
   Integração final dos cases reais.
   ========================================================= */

.real-work-toolbar {
  margin: 28px 0 20px;
  padding: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line-dark);
}

.real-work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.real-work-filter {
  appearance: none;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(246,244,239,.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(246,244,239,.55);
  font-size: 9px;
  letter-spacing: .07em;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.real-work-filter:hover,
.real-work-filter:focus-visible {
  color: white;
  border-color: rgba(246,244,239,.42);
  transform: translateY(-1px);
}

.real-work-filter.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.real-work-count {
  margin: 0;
  color: rgba(246,244,239,.38);
  font-size: 10px;
  letter-spacing: .07em;
  white-space: nowrap;
}

.selected-work-card {
  transition: opacity .34s ease, transform .42s cubic-bezier(.16,1,.3,1), filter .34s ease;
}

.selected-work-card.is-filtering-out {
  opacity: 0;
  transform: scale(.975);
  filter: blur(4px);
}

.selected-work-card[hidden] {
  display: none !important;
}

.selected-work-project-index {
  position: absolute;
  z-index: 7;
  right: 18px;
  top: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(11,11,15,.67);
  color: rgba(255,255,255,.74);
  backdrop-filter: blur(12px);
  font-size: 8px;
  letter-spacing: .1em;
}

.selected-work-open .selected-work-media img {
  transition: transform .62s cubic-bezier(.16,1,.3,1), filter .42s ease;
}

.selected-work-open:hover .selected-work-media > figure > img,
.selected-work-open:focus-visible .selected-work-media > figure > img {
  transform: scale(1.025);
  filter: contrast(1.025) saturate(1.02);
}

.selected-work-card-costa .selected-work-open:hover .selected-work-secondary-shot img,
.selected-work-card-costa .selected-work-open:focus-visible .selected-work-secondary-shot img {
  transform: scale(1.035);
}

.selected-work-copy {
  transition: background .25s ease;
}

.selected-work-open:hover .selected-work-copy,
.selected-work-open:focus-visible .selected-work-copy {
  background: #101116;
}

.portfolio-study-disclosure {
  margin-top: 74px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.portfolio-study-summary {
  min-height: 108px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(260px, 1fr) 42px;
  align-items: center;
  gap: 34px;
  list-style: none;
  cursor: pointer;
  color: var(--bone);
}

.portfolio-study-summary::-webkit-details-marker {
  display: none;
}

.portfolio-study-summary > div > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(246,244,239,.36);
  font-size: 8px;
  letter-spacing: .17em;
}

.portfolio-study-summary strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
}

.portfolio-study-summary > p {
  margin: 0;
  max-width: 560px;
  color: rgba(246,244,239,.38);
  font-size: 11px;
  line-height: 1.6;
}

.portfolio-study-summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(246,244,239,.14);
  border-radius: 50%;
  color: rgba(246,244,239,.68);
  font-size: 19px;
  font-weight: 300;
  transition: transform .28s cubic-bezier(.16,1,.3,1), background .22s ease, border-color .22s ease;
}

.portfolio-study-summary:hover .portfolio-study-summary-icon,
.portfolio-study-summary:focus-visible .portfolio-study-summary-icon {
  background: rgba(0,102,255,.12);
  border-color: rgba(0,102,255,.45);
}

.portfolio-study-disclosure[open] .portfolio-study-summary-icon {
  transform: rotate(45deg);
}

.portfolio-study-content {
  padding: 20px 0 6px;
  animation: studyContentIn .34s cubic-bezier(.16,1,.3,1) both;
}

@keyframes studyContentIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.portfolio-study-content .portfolio-card {
  background: #0d0e12;
}

.portfolio-study-content .portfolio-image img {
  filter: saturate(.88);
}

.portfolio-study-content .portfolio-card:hover .portfolio-image img,
.portfolio-study-content .portfolio-card:focus-within .portfolio-image img {
  filter: saturate(1) contrast(1.03);
}

@media (max-width: 900px) {
  .real-work-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .real-work-count {
    white-space: normal;
  }

  .portfolio-study-summary {
    grid-template-columns: 1fr 42px;
    gap: 14px;
  }

  .portfolio-study-summary > p {
    grid-column: 1;
    grid-row: 2;
  }

  .portfolio-study-summary-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 700px) {
  .real-work-filters {
    width: calc(100vw - 48px);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .real-work-filters::-webkit-scrollbar {
    display: none;
  }

  .real-work-filter {
    flex: 0 0 auto;
  }

  .selected-work-project-index {
    top: 12px;
    right: 12px;
  }

  .portfolio-study-disclosure {
    margin-top: 52px;
  }

  .portfolio-study-summary {
    min-height: 0;
    padding: 22px 0;
  }

  .portfolio-study-summary strong {
    font-size: 23px;
    line-height: 1.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selected-work-card,
  .selected-work-open .selected-work-media img,
  .portfolio-study-summary-icon,
  .portfolio-study-content {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   HERO CINEMATOGRÁFICO — ETAPA 01 CORRIGIDA
   Substitui a interface antiga pela composição da segunda
   referência enviada pelo usuário.
   ========================================================= */

/* Header da home integrado ao hero */
body:not(.form-page) .site-header[data-site-header] {
  background: #08090d;
  border-bottom: 1px solid rgba(255,255,255,.075);
  backdrop-filter: none;
  box-shadow: none;
}

body:not(.form-page) .site-header[data-site-header].is-scrolled {
  background: rgba(8,9,13,.94);
  border-bottom-color: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0,0,0,.18);
}

/* Botão do header vira contorno, como na referência nova */
body:not(.form-page) .site-header .nav .button-small {
  background: transparent;
  border: 1px solid rgba(99,102,241,.9);
  border-radius: 999px;
  color: var(--bone);
  min-height: 42px;
  padding-inline: 22px;
  box-shadow: inset 0 0 0 1px rgba(0,102,255,.08);
}

body:not(.form-page) .site-header .nav .button-small::before {
  display: none;
}

body:not(.form-page) .site-header .nav .button-small:hover,
body:not(.form-page) .site-header .nav .button-small:focus-visible {
  background: rgba(0,102,255,.10);
  border-color: #7891ff;
  transform: translateY(-1px);
}

.hero-cinematic {
  position: relative;
  min-height: calc(100vh - 88px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 34%, rgba(15,65,190,.10), transparent 28%),
    #08090d;
  color: var(--bone);
  border-bottom: 1px solid var(--line-dark);
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,13,1) 0%, rgba(8,9,13,.98) 33%, rgba(8,9,13,.70) 55%, rgba(8,9,13,.05) 83%),
    linear-gradient(180deg, rgba(8,9,13,.10), rgba(8,9,13,.44));
}

.hero-cinematic-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 88px);
  width: min(1500px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  align-items: stretch;
}

.hero-cinematic-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  padding:
    clamp(62px, 8vh, 108px)
    clamp(30px, 5.2vw, 78px)
    clamp(58px, 7vh, 96px);
  max-width: 760px;
}

.hero-cinematic-eyebrow {
  margin: 0 0 28px;
  color: rgba(246,244,239,.42);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero-cinematic-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 7.7vw, 116px);
  line-height: .91;
  letter-spacing: -.052em;
  font-weight: 500;
  color: #f7f5ef;
}

.hero-cinematic-lead {
  max-width: 610px;
  margin: 32px 0 0;
  color: rgba(246,244,239,.80);
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.46;
}

.hero-cinematic-system {
  margin: 27px 0 0;
  color: rgba(246,244,239,.44);
  font-size: 9px;
  line-height: 1.75;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-cinematic-actions {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.hero-cinematic-primary {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f4f2ed;
  color: #111218;
  border: 1px solid rgba(255,255,255,.7);
}

.hero-cinematic-primary::before {
  display: none;
}

.hero-cinematic-primary:hover,
.hero-cinematic-primary:focus-visible {
  background: #fff;
  color: #111218;
  transform: translateY(-2px);
}

.hero-cinematic-method {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(246,244,239,.76);
  font-size: 13px;
  transition: color .22s ease;
}

.hero-cinematic-method:hover,
.hero-cinematic-method:focus-visible {
  color: white;
}

.hero-cinematic-play {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border: 1px solid rgba(246,244,239,.46);
  border-radius: 50%;
  font-size: 8px;
  transition: border-color .22s ease, background .22s ease;
}

.hero-cinematic-method:hover .hero-cinematic-play,
.hero-cinematic-method:focus-visible .hero-cinematic-play {
  border-color: #7891ff;
  background: rgba(0,102,255,.10);
}

/* Imagem cinematográfica ocupa toda a metade direita */
.hero-cinematic-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: 0;
  width: 58%;
  margin: 0;
  overflow: hidden;
  background: #07101f;
}

.hero-cinematic-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% 50%;
  filter: saturate(1.07) contrast(1.05) brightness(.93);
  transform: scale(1.015);
}

.hero-cinematic-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #08090d 0%, rgba(8,9,13,.94) 6%, rgba(8,9,13,.58) 25%, rgba(8,9,13,.08) 58%, rgba(8,9,13,.04) 100%),
    linear-gradient(180deg, rgba(8,9,13,.08) 0%, transparent 64%, rgba(8,9,13,.24) 100%);
}

/* Tela larga: dá mais espaço à imagem sem reduzir a mensagem */
@media (min-width: 1500px) {
  .hero-cinematic-shell {
    max-width: 1660px;
  }

  .hero-cinematic-visual {
    width: 60%;
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .hero-cinematic {
    min-height: 820px;
  }

  .hero-cinematic-shell {
    min-height: 820px;
    grid-template-columns: 1fr;
  }

  .hero-cinematic-copy {
    align-self: end;
    max-width: 680px;
    padding-bottom: 72px;
  }

  .hero-cinematic-visual {
    width: 100%;
    opacity: .72;
  }

  .hero-cinematic::before {
    background:
      linear-gradient(90deg, rgba(8,9,13,.98) 0%, rgba(8,9,13,.82) 56%, rgba(8,9,13,.25) 100%),
      linear-gradient(0deg, rgba(8,9,13,.92) 0%, rgba(8,9,13,.08) 56%);
  }
}

/* Mobile estrutural. O refinamento definitivo continua reservado à etapa mobile. */
@media (max-width: 700px) {
  body:not(.form-page) .site-header[data-site-header] {
    background: rgba(8,9,13,.96);
  }

  .hero-cinematic {
    min-height: calc(100svh - 72px);
  }

  .hero-cinematic-shell {
    min-height: calc(100svh - 72px);
  }

  .hero-cinematic-copy {
    align-self: end;
    padding: 88px 24px 54px;
  }

  .hero-cinematic-eyebrow {
    margin-bottom: 20px;
    font-size: 7px;
  }

  .hero-cinematic-copy h1 {
    font-size: clamp(51px, 16vw, 74px);
    line-height: .92;
  }

  .hero-cinematic-lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-cinematic-system {
    margin-top: 20px;
    font-size: 7px;
  }

  .hero-cinematic-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 29px;
  }

  .hero-cinematic-primary {
    width: 100%;
    justify-content: space-between;
  }

  .hero-cinematic-visual {
    width: 100%;
    opacity: .72;
  }

  .hero-cinematic-visual img {
    object-position: 59% center;
  }

  .hero-cinematic-fade {
    background:
      linear-gradient(0deg, #08090d 0%, rgba(8,9,13,.94) 33%, rgba(8,9,13,.28) 72%, rgba(8,9,13,.14) 100%),
      linear-gradient(90deg, rgba(8,9,13,.55), rgba(8,9,13,.08));
  }
}


/* =========================================================
   CORREÇÃO DA ETAPA 01
   Usa a nova imagem enviada pelo usuário como fundo
   cinematográfico dominante da primeira interface.
   ========================================================= */

.hero-cinematic {
  background:
    radial-gradient(circle at 72% 36%, rgba(29,86,255,.10), transparent 28%),
    #06070b;
}

.hero-cinematic::before {
  background:
    linear-gradient(90deg, rgba(6,7,11,1) 0%, rgba(6,7,11,.985) 22%, rgba(6,7,11,.92) 36%, rgba(6,7,11,.70) 48%, rgba(6,7,11,.26) 66%, rgba(6,7,11,.06) 100%),
    linear-gradient(180deg, rgba(6,7,11,.22), rgba(6,7,11,.48));
}

.hero-cinematic-shell {
  grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr);
}

.hero-cinematic-copy {
  max-width: 760px;
  padding:
    clamp(72px, 8vh, 118px)
    clamp(30px, 5.2vw, 78px)
    clamp(58px, 7vh, 96px);
}

.hero-cinematic-copy h1 {
  text-shadow: 0 10px 28px rgba(0,0,0,.20);
}

.hero-cinematic-lead,
.hero-cinematic-system,
.hero-cinematic-method {
  text-shadow: 0 8px 24px rgba(0,0,0,.24);
}

.hero-cinematic-visual {
  width: 100%;
  inset: 0;
  z-index: 0;
  background: #05060a;
}

.hero-cinematic-visual img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.03) contrast(1.03) brightness(.88);
  transform: scale(1.02);
}

.hero-cinematic-fade {
  background:
    linear-gradient(90deg, rgba(6,7,11,1) 0%, rgba(6,7,11,.98) 16%, rgba(6,7,11,.92) 30%, rgba(6,7,11,.76) 40%, rgba(6,7,11,.45) 52%, rgba(6,7,11,.18) 70%, rgba(6,7,11,.06) 100%),
    linear-gradient(180deg, rgba(6,7,11,.08) 0%, rgba(6,7,11,.02) 38%, rgba(6,7,11,.32) 100%);
}

/* Mantém a imagem como fundo também no tablet */
@media (max-width: 1000px) {
  .hero-cinematic {
    min-height: 860px;
  }

  .hero-cinematic-shell {
    min-height: 860px;
  }

  .hero-cinematic-copy {
    align-self: end;
    padding-bottom: 78px;
  }

  .hero-cinematic-visual {
    opacity: 1;
  }

  .hero-cinematic::before {
    background:
      linear-gradient(180deg, rgba(6,7,11,.86) 0%, rgba(6,7,11,.72) 44%, rgba(6,7,11,.32) 100%),
      linear-gradient(90deg, rgba(6,7,11,.85) 0%, rgba(6,7,11,.34) 55%, rgba(6,7,11,.08) 100%);
  }

  .hero-cinematic-fade {
    background:
      linear-gradient(180deg, rgba(6,7,11,.40) 0%, rgba(6,7,11,.06) 36%, rgba(6,7,11,.56) 100%),
      linear-gradient(90deg, rgba(6,7,11,.55) 0%, rgba(6,7,11,.14) 64%, rgba(6,7,11,.06) 100%);
  }
}

/* Mobile: preserva a leitura e mantém a arte como pano de fundo */
@media (max-width: 700px) {
  .hero-cinematic {
    min-height: calc(100svh - 72px);
  }

  .hero-cinematic-shell {
    min-height: calc(100svh - 72px);
  }

  .hero-cinematic-copy {
    max-width: 100%;
    padding: 92px 24px 54px;
  }

  .hero-cinematic-copy h1 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .hero-cinematic-lead {
    max-width: 100%;
  }

  .hero-cinematic-visual img {
    object-position: 64% center;
  }

  .hero-cinematic::before {
    background:
      linear-gradient(180deg, rgba(6,7,11,.74) 0%, rgba(6,7,11,.40) 38%, rgba(6,7,11,.80) 100%),
      linear-gradient(90deg, rgba(6,7,11,.44), rgba(6,7,11,.08));
  }

  .hero-cinematic-fade {
    background:
      linear-gradient(180deg, rgba(6,7,11,.18) 0%, rgba(6,7,11,.02) 24%, rgba(6,7,11,.76) 100%),
      linear-gradient(90deg, rgba(6,7,11,.30), rgba(6,7,11,.08));
  }
}
