/* GuarÃ¡ Digital â€” Rebranding CanÃ´nico
   Paleta: Creme (#f7f4ee), Grafite (#1f2122), Vermelho GuarÃ¡ (#e63946)
   Tipografia: Sans contemporÃ¢nea (Plus Jakarta Sans / DM Sans)
   EstÃ©tica: Moderna, minimalista, ilustrativa com diorama 3D
*/

:root {
  --paper: #f7f4ee;
  --paper-card: #ffffff;
  --paper-subtle: #f2ece2;
  --paper-elevated: #ffffff;
  --ink: #1f2122;
  --ink-secondary: #4b5257;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --red: #e63946;
  --red-hover: #d9251d;
  --red-subtle: rgba(230, 57, 70, 0.08);
  --green: #2a9d8f;
  --green-subtle: rgba(42, 157, 143, 0.1);
  --line: rgba(31, 33, 34, 0.08);
  --line-strong: rgba(31, 33, 34, 0.14);

  --font-sans: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shell: min(1200px, calc(100% - 48px));
  --header-height: 68px;

  --shadow-sm: 0 2px 8px rgba(31, 33, 34, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 33, 34, 0.06);
  --shadow-lg: 0 16px 36px rgba(31, 33, 34, 0.09);
  --shadow-float: 0 14px 32px rgba(31, 33, 34, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-normal: 300ms var(--ease-out);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  padding: 10px 18px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Layout Container */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Base Section Spacing */
.editorial-section {
  padding: 56px 0;
  position: relative;
}
@media (max-width: 960px) {
  .editorial-section {
    padding: 38px 0;
  }
}
@media (max-width: 640px) {
  .editorial-section {
    padding: 28px 0;
  }
}

/* Section Headings */
.section-heading {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 768px) {
  .section-heading {
    margin-bottom: 20px;
    gap: 6px;
  }
}
@media (min-width: 900px) {
  .section-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 36px;
  }
  .section-heading > div {
    max-width: 600px;
  }
  .section-heading > p {
    max-width: 400px;
    font-size: 15px;
    color: var(--ink-secondary);
    margin-bottom: 4px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(26px, 4.8vw, 48px);
}

h2 {
  font-size: clamp(22px, 3.6vw, 44px);
  max-width: 780px;
}

h3 {
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: -0.02em;
}

em {
  font-style: normal;
  color: var(--red);
}

/* Header & Floating Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all var(--transition-normal);
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 60ms linear;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.brand img {
  border-radius: var(--radius-sm);
  display: block;
}

.primary-navigation {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 960px) {
  .primary-navigation {
    display: flex;
  }
}

.primary-navigation a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.primary-navigation a:hover {
  color: var(--ink);
  background: rgba(31, 33, 34, 0.04);
}
.primary-navigation a[aria-current="location"] {
  color: var(--ink);
  background: rgba(31, 33, 34, 0.06);
}
.primary-navigation .nav-contact {
  background: var(--ink);
  color: #ffffff;
  padding: 6px 16px;
  margin-left: 6px;
}
.primary-navigation .nav-contact:hover {
  background: var(--red);
  color: #ffffff;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 960px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}
.button--dark {
  background: var(--ink);
  color: #ffffff;
}
.button--dark:hover {
  background: #111213;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.button--red {
  background: var(--red);
  color: #ffffff;
}
.button--red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.25);
}
.button b {
  font-weight: 700;
  transition: transform var(--transition-fast);
}
.button:hover b {
  transform: translate(2px, -2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.text-link:hover {
  color: var(--red);
}

/* ==========================================================================
   HERO SECTION: 3D DIORAMA & CONTAINED RESPONSIVE STAGE
   ========================================================================== */
.hero {
  padding-top: 36px;
  padding-bottom: 44px;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 28px;
  }
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.hero-stage > * {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  min-width: 0;
}

.hero-line {
  display: block;
}
@media (max-width: 640px) {
  h1, .hero-copy h1 {
    font-size: clamp(23px, 6.2vw, 28px);
    line-height: 1.18;
  }
  .hero-line {
    display: block;
  }
  .hero-lede {
    font-size: 14px;
    line-height: 1.45;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.hero-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hero-motion-toggle:hover {
  background: var(--paper-subtle);
  color: var(--ink);
}
.hero-motion-toggle[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
}

/* 3D Diorama Container */
.hero-stage__art-wrapper {
  width: 100%;
  position: relative;
}

.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  max-height: 560px;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
  margin: 0;
}
@media (max-width: 768px) {
  .hero-art {
    min-height: 240px;
    max-height: 380px;
  }
}

/* Base Wan 2.7 Raster Illustration */
.hero-picture,
.scene-image--hero {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 88% 85% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.9) 72%, rgba(0, 0, 0, 0.25) 90%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 85% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.9) 72%, rgba(0, 0, 0, 0.25) 90%, transparent 100%);
  object-fit: cover;
  object-position: center;
}

.scene-image--hero {
  object-fit: cover;
  transition: opacity 400ms var(--ease-out);
  z-index: 1;
}

/* Three.js Canvas Overlay */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.hero-car {
  position: absolute;
  width: 34px;
  height: 20px;
  pointer-events: none;
  z-index: 4;
  will-change: transform, left, top;
  transition: filter var(--transition-fast);
}

.hero-car__shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-45%, -35%);
  width: 36px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(31, 33, 34, 0.35) 0%, rgba(31, 33, 34, 0.1) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-car__model {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.16));
}

/* Hero Microcards Layer: Absolute on Desktop, Flow Modules on Mobile */
.hero-microcards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hero-microcard {
  position: absolute;
  z-index: 10;
  width: auto;
  min-width: 210px;
  max-width: 245px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(31, 33, 34, 0.12), 0 2px 6px rgba(31, 33, 34, 0.04);
  border: 1px solid rgba(31, 33, 34, 0.08);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(0, -50%);
  transition: opacity 220ms var(--ease-out), visibility 220ms var(--ease-out);
  will-change: left, top;
}

.hero-microcard.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-card-connector {
  position: absolute;
  height: 2px;
  background: var(--red);
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 9;
  display: none;
  opacity: 0.9;
}

.hero-card-connector::before,
.hero-card-connector::after,
.hero-microcard::before,
.hero-microcard::after {
  display: none !important;
  content: none !important;
}

.hero-microcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.hero-microcard__badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(31, 33, 34, 0.06);
  color: var(--ink-secondary);
  border: 1px solid rgba(31, 33, 34, 0.08);
  text-transform: uppercase;
}

.hero-microcard__body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-microcard__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  background: #f0eae1;
}

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

.hero-microcard__info {
  min-width: 0;
  flex: 1;
}

.hero-microcard__name {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.hero-microcard__dish {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.3;
  margin-top: 1px;
}

.hero-microcard__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.hero-microcard__rating {
  font-weight: 700;
  color: #d97706;
}

.hero-microcard__dot {
  opacity: 0.6;
}

.hero-microcard__distance {
  font-weight: 500;
}

.hero-microcard__disclaimer {
  font-size: 8.5px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .hero-microcards {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
  }
  .hero-microcard {
    position: absolute !important;
    left: var(--card-left, 12px) !important;
    top: var(--card-top, 12px) !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    min-width: 148px !important;
    max-width: 178px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
  }
  .hero-microcard.is-active {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .hero-microcard::after,
  .hero-microcard::before {
    display: none !important;
    content: none !important;
  }
  .hero-car {
    width: 28px;
    height: 16px;
  }
}

/* Responsive fixes for hero image masking at different screen sizes */
@media (max-width: 1440px) {
  .hero-picture,
  .scene-image--hero {
    -webkit-mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, #000 55%, rgba(0, 0, 0, 0.92) 70%, rgba(0, 0, 0, 0.3) 88%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, #000 55%, rgba(0, 0, 0, 0.92) 70%, rgba(0, 0, 0, 0.3) 88%, transparent 100%);
  }
}

@media (max-width: 768px) {
  .hero-picture,
  .scene-image--hero {
    -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 52%, rgba(0, 0, 0, 0.94) 68%, rgba(0, 0, 0, 0.35) 85%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 52%, rgba(0, 0, 0, 0.94) 68%, rgba(0, 0, 0, 0.35) 85%, transparent 100%);
  }
}

@media (max-width: 390px) {
  .hero-picture,
  .scene-image--hero {
    -webkit-mask-image: radial-gradient(ellipse 94% 92% at 50% 50%, #000 50%, rgba(0, 0, 0, 0.95) 65%, rgba(0, 0, 0, 0.4) 82%, transparent 100%);
    mask-image: radial-gradient(ellipse 94% 92% at 50% 50%, #000 50%, rgba(0, 0, 0, 0.95) 65%, rgba(0, 0, 0, 0.4) 82%, transparent 100%);
  }
}

@media (max-width: 320px) {
  .hero-picture,
  .scene-image--hero {
    -webkit-mask-image: radial-gradient(ellipse 96% 94% at 50% 50%, #000 48%, rgba(0, 0, 0, 0.96) 62%, rgba(0, 0, 0, 0.45) 80%, transparent 100%);
    mask-image: radial-gradient(ellipse 96% 94% at 50% 50%, #000 48%, rgba(0, 0, 0, 0.96) 62%, rgba(0, 0, 0, 0.45) 80%, transparent 100%);
    object-fit: contain; /* Ensure full illustration is preserved at 320px */
  }
  .hero-art {
    aspect-ratio: 16 / 11 !important; /* Adjust aspect ratio for better landscape preservation at 320px */
  }
}

/* Hero Diorama Topnote Caption */
.hero-art-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  pointer-events: none;
}
.hero-art-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}
.hero-art-note i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* 3 Quick Step Pills Under Hero */
.hero-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .hero-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
.hero-steps article {
  background: var(--paper-card);
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-steps article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-steps small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.hero-steps p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* ==========================================================================
   PARA QUEM (AUDIENCE SECTION - COHERENT ISOMETRIC/ILLUSTRATED SCENES)
   ========================================================================== */
.audience-stories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 960px) {
  .audience-stories {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.audience-story {
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.audience-story:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.audience-story figure {
  width: 100%;
  aspect-ratio: 1200 / 896;
  background: #f4efe4;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  border: 1px solid rgba(31, 33, 34, 0.06);
  box-shadow: inset 0 1px 2px rgba(31, 33, 34, 0.04);
}
.audience-story figure::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.audience-story figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 500ms var(--ease-out);
}
.audience-story:hover figure img {
  transform: scale(1.025);
}

@media (min-width: 640px) and (max-width: 959px) {
  .audience-story {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px;
  }
  .audience-story.audience-story--flip {
    flex-direction: row-reverse;
  }
  .audience-story figure {
    width: 46%;
    max-width: 320px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .story-copy {
    padding: 0;
  }
}

.story-copy {
  padding: 4px 8px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.story-copy small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.story-copy small::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
}
.story-copy h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.story-copy p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   SOLUÃ‡Ã•ES / CAPABILITIES & INTERACTIVE SYSTEM FLOW
   ========================================================================== */
.capability-system {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .capability-system {
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
  }
}

.system-flow {
  background: var(--paper-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.system-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.system-topline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.system-topline span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.system-topline b {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
}

.flow-canvas {
  position: relative;
  width: 100%;
  height: 300px;
  background: radial-gradient(circle at center, #ffffff, #fbf9f5);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 640px) {
  .flow-canvas {
    height: 240px;
  }
}

.flow-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wire--base {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2.5;
}
.wire--live {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
}
.flow-packet {
  fill: var(--red);
}

/* Interactive Flow Nodes */
.flow-node {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all var(--transition-fast);
  z-index: 5;
}
.flow-node:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.flow-node__badge {
  font-size: 7px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
}
.flow-node__body {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-node__icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-node__title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.flow-node__meta {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.flow-node--input { top: 38%; left: 4%; }
.flow-node--capture { top: 8%; left: 48%; }
.flow-node--route { bottom: 10%; left: 14%; }
.flow-node--done { top: 38%; right: 4%; }

.flow-status {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.flow-status__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Capability List */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.capability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.capability:first-child {
  border-top: 1px solid var(--line);
}
.capability:hover,
.capability.is-active {
  border-bottom-color: var(--red);
  background: transparent;
  transform: translateX(4px);
  box-shadow: none;
}
.capability > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
}
.capability > div {
  flex-grow: 1;
}
.capability h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.capability p {
  font-size: 12px;
  color: var(--ink-secondary);
}
.capability > b {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   TERRITÃ“RIO / LITORAL SECTION
   ========================================================================== */
.territory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
@media (min-width: 960px) {
  .territory-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 36px;
  }
}

.territory-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.territory-copy h2 {
  line-height: 1.15;
}
.territory-copy p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.territory-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 300px;
  border-radius: var(--radius-xl);
  background: var(--paper-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.territory-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Verified Fact Cards */
.territory-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .territory-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
.territory-facts article {
  background: transparent;
  padding: 16px 0;
  border: none;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.territory-facts article header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.territory-facts article header span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.territory-facts article strong {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.territory-facts article p {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.fact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}
.fact-link:hover {
  opacity: 0.8;
}

.fact-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   PROJETOS & DEMOS INTERATIVAS
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 960px) {
  .projects-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.demo-stack {
  background: var(--paper-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.demo-tabs button {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.demo-tabs button:hover {
  background: var(--paper-subtle);
  color: var(--ink);
}
.demo-tabs button.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.demo-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-screen[hidden] {
  display: none;
}

.demo-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.booking-ui {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
  background: var(--paper-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  align-items: center;
}
.booking-ui small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
}
.booking-ui b {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.booking-ui button {
  padding: 6px 12px;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 11px;
}

.demo-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.demo-confirm i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.demo-confirm span {
  flex-grow: 1;
  margin-left: 10px;
}
.demo-confirm small {
  display: block;
  font-size: 8px;
  color: var(--muted);
}
.demo-confirm b {
  font-size: 11px;
  color: var(--ink);
}
.demo-confirm em {
  font-size: 9px;
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}

.order-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
}
.order-ui span {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
}
.order-ui div {
  flex-grow: 1;
  margin-left: 12px;
}
.order-ui b {
  display: block;
  font-size: 12px;
}
.order-ui small {
  font-size: 10px;
  color: var(--muted);
}
.order-ui em {
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
}

.order-track {
  display: flex;
  gap: 6px;
}
.order-track i {
  height: 3px;
  flex-grow: 1;
  border-radius: 2px;
  background: var(--line-strong);
}
.order-track i:first-child,
.order-track i:nth-child(2) {
  background: var(--red);
}

.automation-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 11px;
}
.automation-ui div {
  text-align: center;
}
.automation-ui span {
  display: block;
  font-size: 8px;
  color: var(--muted);
}
.automation-ui b {
  font-size: 11px;
}
.automation-ui i {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
}
.automation-log {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.automation-log i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Feedback Side Panel */
.feedback-carousel {
  background: var(--paper-card);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.feedback-head span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.feedback-head button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.feedback-slide small {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.feedback-slide strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.feedback-slide p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}
.feedback-slide span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
}
.feedback-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.feedback-dots button {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
}
.feedback-dots button.is-active {
  background: var(--red);
  width: 26px;
}
.feedback-disclosure {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}

/* ==========================================================================
   RESULTADOS & CENÃRIOS DEMONSTRATIVOS (ALINHADOS AO GRID)
   ========================================================================== */
.testimonials-wrap {
  width: var(--shell);
  max-width: 900px;
  margin-inline: auto;
}
.testimonials-carousel {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.testimonial-card[hidden] {
  display: none;
}
.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.metric-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--red-subtle);
  color: var(--red);
  letter-spacing: 0.02em;
}
.testimonial-verified {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.testimonial-quote {
  font-size: clamp(15px, 1.4vw, 17.5px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 860px;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.testimonial-author {
  display: block;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  color: var(--ink);
}
.testimonial-business {
  font-size: 11.5px;
  color: var(--ink-secondary);
}
.service-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--paper-subtle);
  border-radius: var(--radius-full);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.carousel-btn:hover {
  background: var(--ink);
  color: #ffffff;
}
.testimonials-dots {
  display: flex;
  gap: 6px;
}
.testimonials-dots button {
  width: 16px;
  height: 5px;
  border-radius: 2px;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
}
.testimonials-dots button.is-active {
  background: var(--red);
  width: 28px;
}

@media (max-width: 480px) {
  .testimonials-carousel {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .testimonial-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
  }
  .testimonial-verified {
    order: 1;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .metric-badge {
    order: 2;
    font-size: 11px;
    padding: 3px 8px;
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .testimonial-quote {
    font-size: 14.5px;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
  }
  .testimonial-author-box {
    width: 100%;
  }
  .testimonial-author {
    font-size: 12.5px;
  }
  .testimonial-business {
    font-size: 11px;
    display: block;
    margin-top: 2px;
  }
  .service-badge {
    align-self: flex-start;
    font-size: 10px;
    padding: 3px 8px;
    max-width: 100%;
    white-space: normal;
  }
  .testimonials-controls {
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  .testimonials-carousel {
    padding: 16px 12px;
  }
  .metric-badge {
    font-size: 10px;
    letter-spacing: -0.01em;
    padding: 2.5px 6px;
    line-height: 1.3;
  }
  .testimonial-quote {
    font-size: 13.5px;
    line-height: 1.45;
  }
}

/* ==========================================================================
   PROCESSO
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 960px) {
  .process-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
  }
}

.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.process-steps li button {
  width: 100%;
  text-align: left;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.process-steps li.is-active button,
.process-steps li button:hover {
  border-color: var(--red);
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}
.process-steps small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.process-steps h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.process-steps p {
  font-size: 12px;
  color: var(--ink-secondary);
}

.process-machine {
  background: var(--paper-card);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.machine-head span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}
.machine-head b {
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
}
.machine-stage {
  position: relative;
  background: var(--paper-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-rail {
  stroke: var(--line-strong);
  stroke-width: 4;
}
.machine-progress {
  stroke: var(--red);
  stroke-width: 4;
}
.artifact {
  background: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.artifact small {
  font-size: 9px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
}
.artifact b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 3px;
}
.process-machine figcaption {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   INVESTIMENTO / PLANOS
   ========================================================================== */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
@media (min-width: 960px) {
  .pricing {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
}

.price-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured {
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.12);
}
.price-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: var(--red);
  color: #ffffff;
  border-radius: var(--radius-full);
}
.price-card small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.price-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.price-card > p {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  flex-grow: 1;
}
.price-card li {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-card li::before {
  content: 'âœ“';
  color: var(--red);
  font-weight: 800;
}

/* Inline FAQ */
.inline-faq {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.inline-faq details {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.inline-faq details:last-child {
  border-bottom: none;
}
.inline-faq summary {
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inline-faq summary::-webkit-details-marker {
  display: none;
}
.inline-faq summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}
.inline-faq details[open] summary::after {
  content: 'âˆ’';
}
.inline-faq details p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 8px;
  line-height: 1.45;
}

/* ==========================================================================
   CONTATO & RODAPÃ‰
   ========================================================================== */
.contact {
  background: #191b1c;
  color: #ffffff;
  border-radius: 0;
  padding: 52px 0 40px;
}
@media (max-width: 640px) {
  .contact {
    padding: 36px 0 28px;
  }
}
.contact h2, .contact h3, .contact .eyebrow {
  color: #ffffff;
}
.contact .eyebrow {
  color: #ff6b6b;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: center;
  }
}
.contact-copy p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}
.contact-note {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-left: 3px solid var(--red);
}
.contact-note b {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.contact-note span {
  font-size: 11px;
  color: #94a3b8;
}

.contact-form {
  background: #232629;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.form-heading strong {
  font-size: 15px;
  font-weight: 800;
}
.form-heading span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6b6b;
}
.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .field-wide {
    grid-column: span 2;
  }
}
.fields label span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.fields input, .fields textarea {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid rgba(31, 33, 34, 0.22);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.fields input::placeholder, .fields textarea::placeholder {
  color: rgba(31, 33, 34, 0.45);
}
.fields input:focus, .fields textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(200, 75, 64, 0.22);
}
.fields input[aria-invalid="true"], .fields textarea[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.form-status {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 10px;
  min-height: 16px;
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 600px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.form-actions small {
  font-size: 10px;
  color: #94a3b8;
}

/* Site Footer */
.site-footer {
  background: #141617;
  color: #94a3b8;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-top p {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.footer-top p em {
  color: var(--red);
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-top nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.footer-top nav a:hover {
  color: #ffffff;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   MOTION REVEAL HOOKS, AMBIENT & GSAP INTEGRATION
   ========================================================================== */
html.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-red-path] {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Idle probes: no autonomous continuous pulse/breathe/scale/glow animation */
[data-idle-probe] {
  animation: none !important;
}

/* Mobile Nav Drawer */
@media (max-width: 959px) {
  .site-header.nav-open .primary-navigation {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--paper-card);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }
  .site-header.nav-open .primary-navigation a {
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
  }
}

/* ==========================================================================
   VISUAL JOURNEY REDESIGN
   One open trip: Serra, search, bridge, then a compact practical handoff.
   ========================================================================== */
:root {
  --font-sans: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --shell: min(1280px, calc(100% - 64px));
  --paper: #f7f4ee;
  --paper-card: #fbfaf7;
  --ink: #1f2122;
  --ink-secondary: #4f5554;
  --line: rgba(31, 33, 34, 0.16);
  --line-strong: rgba(31, 33, 34, 0.28);
  --red: #d83a43;
  --green: #477f73;
}

body {
  background: var(--paper);
}

.scroll-progress {
  display: none;
}

.site-header {
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid rgba(31, 33, 34, 0.12);
  box-shadow: none;
}

.nav-bar {
  min-height: 72px;
}

.primary-navigation a,
.brand,
.button,
.text-link {
  transition: color 260ms var(--ease-out), background-color 260ms var(--ease-out), transform 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.primary-navigation a[aria-current="location"] {
  color: var(--red);
  background: transparent;
}

.editorial-section {
  padding: clamp(32px, 4.4vw, 68px) 0;
}

.editorial-section + .editorial-section {
  border-top: 1px solid rgba(31, 33, 34, 0.11);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5.9rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  max-width: 780px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h3 {
  letter-spacing: -0.045em;
}

em {
  color: var(--red);
}

.hero {
  min-height: min(880px, 100dvh);
  padding: 74px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}

@media (min-width: 961px) {
  .hero-stage {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.55fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
  }
}

.hero-copy {
  max-width: 540px;
  gap: 22px;
}

.hero-copy h1 {
  max-width: 8.5ch;
}

.hero-lede {
  max-width: 42ch;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.button {
  border-radius: 8px;
  box-shadow: none;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-motion-toggle {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 9px 0;
  background: transparent;
}

.hero-stage__art-wrapper {
  min-width: 0;
}

.hero-art {
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 10;
  overflow: visible;
}

.hero-picture,
.scene-image--hero {
  -webkit-mask-image: none;
  mask-image: none;
  object-fit: contain;
  object-position: center;
}

.hero-canvas {
  opacity: 1 !important;
}

.hero-microcards {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hero-microcard {
  min-width: 190px;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.96);
  box-shadow: 0 14px 30px rgba(31, 33, 34, 0.1);
  backdrop-filter: none;
}

.hero-steps {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 78px;
  border-top: 1px solid var(--line);
}

.hero-steps article {
  min-height: 108px;
  padding: 20px 24px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.hero-steps article + article {
  padding-left: 24px;
}

.hero-steps article:last-child {
  border-right: 0;
}

.hero-steps small,
.hero-steps p {
  max-width: 24ch;
}

.hero-steps small {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-steps p {
  margin-top: 7px;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.45;
}

/* Search scene: a real landscape carries the place; the phone carries the action. */
.journey-search {
  padding-top: 140px;
}

.journey-search__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(28px, 8vw, 140px);
  align-items: end;
  margin-bottom: 56px;
}

.journey-search__intro .eyebrow {
  grid-column: 1 / -1;
}

.journey-search__intro h2 {
  grid-column: 1;
}

.journey-search__intro > p:last-child {
  grid-column: 2;
  max-width: 34ch;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.journey-search__scene {
  position: relative;
  min-height: clamp(420px, 56vw, 700px);
  overflow: hidden;
  background: #d5d2c5;
}

.journey-search__landscape,
.journey-search__landscape img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.journey-search__landscape img {
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.72) contrast(0.98);
}

.journey-search__landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 238, 0.84) 0%, rgba(247, 244, 238, 0.2) 46%, rgba(31, 33, 34, 0.08) 100%);
}

.search-phone {
  position: absolute;
  right: clamp(22px, 9vw, 132px);
  bottom: clamp(24px, 5vw, 72px);
  width: min(330px, calc(100% - 40px));
  padding: 16px;
  border: 1px solid rgba(31, 33, 34, 0.28);
  border-radius: 22px;
  background: #fbfaf7;
  box-shadow: 0 24px 50px rgba(31, 33, 34, 0.2);
}

.search-phone__topbar,
.search-phone__search,
.search-result,
.search-phone__action {
  display: flex;
  align-items: center;
}

.search-phone__topbar {
  justify-content: space-between;
  padding: 0 2px 12px;
  color: var(--muted);
  font-size: 9px;
}

.search-phone__search {
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 11px;
}

.search-phone__search span:first-child {
  color: var(--red);
  font-size: 18px;
  line-height: 0.7;
}

.search-phone__caption {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result {
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.search-result img,
.search-result__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 7px;
  object-fit: cover;
}

.search-result__mark {
  display: grid;
  place-items: center;
  background: #e6e3d8;
  color: var(--red);
  font-weight: 800;
}

.search-result > span:last-child {
  min-width: 0;
}

.search-result strong,
.search-result small,
.search-result em {
  display: block;
}

.search-result strong {
  font-size: 12px;
}

.search-result small,
.search-result em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.search-result em {
  color: var(--red);
}

.search-phone__action {
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.search-phone__action b {
  font-size: 16px;
}

/* Practical flow: one line of work, not a diagram or a card wall. */
.practical-flow__heading {
  margin-bottom: 54px;
}

.practical-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.practical-flow__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-width: 0;
  padding: 28px 28px 32px 0;
  background: transparent;
}

.practical-flow__step + .practical-flow__step {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.practical-flow__number {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.practical-flow__step small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practical-flow__step h3 {
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.practical-flow__step p {
  max-width: 27ch;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.practical-flow__line {
  display: none;
}

/* Bridge chapter: side-weighted image, factual strip, one upward cue. */
.territory-bridge {
  padding-top: 136px;
}

.bridge-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 10vw;
  align-items: end;
  margin-bottom: 48px;
}

.bridge-intro .eyebrow {
  grid-column: 1 / -1;
}

.bridge-intro h2 {
  grid-column: 1;
}

.bridge-intro > p:last-child {
  grid-column: 2;
  max-width: 34ch;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.bridge-scene {
  position: relative;
  overflow: hidden;
  min-height: min(60vw, 670px);
  background: #d4dedb;
}

.bridge-scene .territory-art {
  position: absolute;
  inset: -9% -7% -18% 16%;
  margin: 0;
}

.bridge-scene .territory-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bridge-caption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.bridge-caption span + span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}


.territory-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.territory-facts article {
  min-width: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.territory-facts article header,
.territory-facts article header span,
.territory-facts article strong,
.territory-facts article p,
.fact-link,
.fact-note {
  display: block;
}

.territory-facts article header {
  color: var(--muted);
  font-size: 10px;
}

.territory-facts article header i,
.territory-facts article header::after {
  display: none;
}

.territory-facts article strong {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.07em;
}

.territory-facts article p {
  max-width: 30ch;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.fact-link {
  margin-top: 14px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.fact-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* Keep the later demos and proof useful without a card wall.
   Plans, FAQ and contact keep the 27set baseline card treatment. */
.projects-grid,
.process-strip {
  gap: clamp(28px, 6vw, 88px);
}

.demo-stack,
.feedback-carousel,
.testimonials-carousel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.demo-stack,
.feedback-carousel {
  padding: 0;
}

.demo-tabs {
  border-bottom: 1px solid var(--line-strong);
}

.demo-tabs button {
  border-radius: 0;
  background: transparent;
}

.feedback-carousel {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.feedback-head,
.feedback-slide,
.testimonial-top,
.testimonial-footer {
  padding-inline: 0;
}

.testimonials-carousel {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.testimonial-card {
  padding: 34px 0;
}

.testimonial-quote {
  max-width: 900px;
}

.process-intro {
  margin-bottom: 54px;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.process-strip article {
  padding: 28px 28px 32px 0;
}

.process-strip article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.process-strip small {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.process-strip h3 {
  margin: 18px 0 8px;
}

.process-strip p {
  max-width: 28ch;
  color: var(--ink-secondary);
  font-size: 13px;
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 40px, 720px); }
  .editorial-section { padding: 32px 0 38px; }
  .hero { min-height: auto; padding: 44px 0 52px; }
  .hero-stage { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 620px; }
  .hero-copy h1 { max-width: 12ch; }
  .hero-stage__art-wrapper { order: 2; }
  .journey-search__intro,
  .bridge-intro { grid-template-columns: 1fr; gap: 18px; }
  .journey-search__intro h2,
  .journey-search__intro > p:last-child,
  .bridge-intro h2,
  .bridge-intro > p:last-child { grid-column: 1; }
  .journey-search__intro > p:last-child,
  .bridge-intro > p:last-child { max-width: 48ch; }
  .practical-flow,
  .territory-facts,
  .process-strip { grid-template-columns: 1fr; }
  .practical-flow__step,
  .process-strip article,
  .practical-flow__step + .practical-flow__step,
  .process-strip article + article { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .practical-flow__step:first-child,
  .process-strip article:first-child { border-top: 0; }
  .bridge-scene { min-height: 540px; }
  .bridge-scene .territory-art { inset: -2% -18% -12% 2%; }
  .projects-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  .editorial-section { padding: 30px 0 34px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.75rem); max-width: 780px; }
  .hero { padding: 36px 0 48px; }
  .hero-copy { gap: 18px; }
  .hero-art { aspect-ratio: 1 / 0.84; }
  .hero-steps { grid-template-columns: 1fr; margin-top: 54px; }
  .hero-steps article,
  .hero-steps article + article { min-height: auto; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-steps article:last-child { border-bottom: 0; }
  .journey-search { padding-top: 88px; }
  .journey-search__scene { min-height: 620px; margin-inline: -16px; }
  .journey-search__landscape img { object-position: 60% center; }
  .search-phone { right: 16px; bottom: 18px; width: min(330px, calc(100% - 32px)); }
  .bridge-scene { min-height: 430px; margin-inline: -16px; }
  .bridge-scene .territory-art { inset: 2% -34% -12% -10%; }
  .bridge-caption { left: 16px; bottom: 16px; }

  .territory-facts { gap: 0; }
  .territory-facts article { padding-block: 22px; }
  .projects-grid { gap: 40px; }
  .process-strip article { padding-block: 22px; }
}

/* ========================================================================
   QA PASS: aligned editorial grid, dominant dioramas, explicit mobile stack
   ======================================================================== */
.hero-stage__copy-wrapper,
.hero-stage__art-wrapper {
  min-width: 0;
  width: 100%;
}

.hero-copy h1 {
  max-width: 18ch;
  text-wrap: balance;
}

.hero-line {
  display: inline;
}

.hero-art {
  min-height: clamp(430px, 39vw, 620px);
  aspect-ratio: 16 / 10;
}

.hero-picture,
.scene-image--hero {
  object-fit: cover;
}

.hero-car {
  left: 0;
  top: 0;
  width: 42px;
  height: 24px;
  transform: translate(var(--road-x, 50%), var(--road-y, 50%)) translate(-50%, -50%) rotate(var(--road-angle, 0deg)) scale(var(--road-scale, 1));
  transition: filter 300ms var(--ease-out);
}

.hero-car__model {
  position: absolute;
  inset: 4px 3px 5px;
  display: block;
  border-radius: 7px 9px 8px 6px;
  background: var(--red);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 2px 5px rgba(31, 33, 34, 0.26);
}

.hero-car__model::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 16px;
  height: 9px;
  border-radius: 5px 6px 3px 3px;
  background: rgba(247, 244, 238, 0.74);
}

.hero-car__model::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 4px;
  bottom: 2px;
  height: 3px;
  border-radius: 99px;
  background: rgba(31, 33, 34, 0.66);
}

.hero-car--2 .hero-car__model {
  background: var(--ink);
}

.hero-microcard__thumb--route {
  display: grid;
  place-items: center;
  background: var(--paper-subtle);
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
}

.hero-steps {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-top: 68px;
}

.journey-search__intro,
.bridge-intro {
  display: block;
  max-width: 760px;
}

.journey-search__intro h2,
.bridge-intro h2 {
  max-width: 18ch;
}

.journey-search__scene {
  min-height: clamp(420px, 52vw, 650px);
  border-radius: 0;
}

.bridge-scene {
  min-height: clamp(410px, 44vw, 620px);
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: transparent;
}

.bridge-scene .territory-art {
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.territory-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;
}

.scene-image--territory {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  z-index: 0;
}

.bridge-caption {
  z-index: 3;
}

@media (min-width: 961px) {
  .hero {
    min-height: min(900px, calc(100dvh - var(--header-height)));
    padding: 52px 0 60px;
  }

  .hero-stage {
    grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.55fr);
    gap: clamp(38px, 5vw, 88px);
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 4.4vw, 5.2rem);
  }

  .hero-steps {
    margin-top: 64px;
  }
}

@media (max-width: 960px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-stage__art-wrapper {
    order: 2;
  }

  .hero-art {
    min-height: clamp(300px, 68vw, 500px);
  }

  .hero-copy h1 {
    max-width: 19ch;
  }

  .bridge-scene {
    min-height: 470px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 42px 0 60px;
  }

  .hero-copy h1 {
    max-width: 17ch;
    font-size: clamp(2.55rem, 11.4vw, 3.65rem);
    line-height: 1;
  }

  .hero-art {
    min-height: 270px;
    aspect-ratio: 1 / 0.84;
  }

  .hero-car {
    width: 32px;
    height: 19px;
  }

  .hero-steps {
    width: var(--shell);
    margin-top: 42px;
  }

  .journey-search__scene {
    min-height: 560px;
    margin-inline: 0;
    border-radius: 0;
  }

  .bridge-scene {
    min-height: 360px;
    margin-inline: 0;
    border-radius: 0;
  }

  .bridge-scene .territory-art {
    inset: 0;
  }

  .bridge-caption {
    left: 16px;
    bottom: 16px;
  }


}

/* ========================================================================
   HERO FINAL LAYOUT CORRECTION
   Keep the stage and benefit rail in the header-aligned shell. The Hero is
   a vertical flex stack; its two-column stage is only the copy/art pair.
   ======================================================================== */
#inicio.hero {
  flex-direction: column;
}

#inicio .hero-stage {
  flex: 0 0 auto;
  width: var(--shell);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 72px);
}

#inicio .hero-stage__copy-wrapper,
#inicio .hero-stage__art-wrapper {
  width: 100%;
  min-width: 0;
}

#inicio .hero-copy h1 {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
  font-size: clamp(3rem, 4vw, 4.6rem);
}

#inicio .hero-line {
  display: inline;
}

#inicio .hero-art {
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 2;
}

#inicio .hero-picture,
#inicio .scene-image--hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


#inicio .hero-steps {
  flex: 0 0 auto;
  width: var(--shell);
}

@media (max-width: 960px) {
  #inicio .hero-stage {
    grid-template-columns: 1fr;
    gap: clamp(32px, 8vw, 46px);
  }

  #inicio .hero-copy h1 {
    max-width: 100%;
  }

  #inicio .hero-art {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 640px) {
  /* The squarer artwork frame below is ~48px taller than the 3/2 frame it
     replaces, so the hero's own vertical rhythm is tightened to pay for it and
     the page stays inside the mobile page-height budget. */
  #inicio .hero-stage {
    gap: 20px;
  }

  #inicio .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10.2vw, 3.2rem);
    line-height: 1.04;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* A 3/2 frame letterboxes the diorama badly on a phone: the relief is much
     taller than it is wide once projected, so a wide frame leaves the board at
     ~77% of the available width and grazes the top edge. A squarer frame lets the
     board fill the width without cropping any corner. */
  #inicio .hero-art {
    aspect-ratio: 5 / 4;
  }

  #inicio .hero-steps {
    margin-top: 12px;
  }
}

/* Keep the animated vehicles and their active discovery card on the artwork. */
#inicio .hero-car {
  left: var(--road-x, 50%);
  top: var(--road-y, 50%);
  transform: translate(-50%, -50%) rotate(var(--road-angle, 0deg)) scale(var(--road-scale, 1));
  transform-origin: center;
}

#inicio .hero-microcards {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  pointer-events: none !important;
  overflow: visible !important;
  z-index: 10 !important;
}

#inicio .hero-microcard,
#inicio .hero-microcard--2 {
  position: absolute !important;
  left: var(--card-left, 12px) !important;
  top: var(--card-top, 12px) !important;
  right: auto !important;
  bottom: auto !important;
  width: min(190px, calc(100% - 16px)) !important;
  min-width: 0 !important;
  max-width: 190px !important;
  margin: 0 !important;
  padding: 6px 8px;
  transform: none !important;
  transition: opacity 220ms var(--ease-out), visibility 220ms var(--ease-out) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Card typography: the name wraps to at most two lines and the dish stays on a
   single line, so the card keeps a predictable footprint over the artwork. */
#inicio .hero-microcard__thumb {
  width: 40px;
  height: 40px;
}

#inicio .hero-microcard__name {
  font-size: 11px;
  line-height: 1.16;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#inicio .hero-microcard__dish {
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#inicio .hero-microcard.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

#inicio .hero-microcard::before,
#inicio .hero-microcard::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 640px) {
  #inicio .hero-microcard,
  #inicio .hero-microcard--2 {
    width: min(170px, calc(100% - 16px)) !important;
    max-width: 170px !important;
    padding: 4px 5px;
  }

  #inicio .hero-microcard__thumb {
    width: 30px;
    height: 40px;
  }

  #inicio .hero-microcard__body {
    gap: 3px;
  }

  #inicio .hero-microcard__top {
    margin-bottom: 2px;
  }

  #inicio .hero-microcard__meta {
    font-size: 9px;
    gap: 4px;
  }

  #inicio .hero-microcard__badge {
    font-size: 7px;
    padding: 2px 5px;
  }
}

/* One clear handoff from traveler search to the services and into the bay. */
.journey-search__intro {
  display: block;
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.journey-search__intro h2 {
  max-width: 16ch;
  text-wrap: balance;
}

.journey-search__scene {
  width: var(--shell);
  margin-inline: auto;
  min-height: clamp(300px, 37vw, 480px);
  border-radius: 2px;
  background: var(--paper-subtle);
}

.journey-search__landscape img {
  object-position: center 58%;
  filter: saturate(.68) contrast(.98);
}

.journey-search__landscape::after {
  background: linear-gradient(90deg, rgba(247,244,238,.58), rgba(247,244,238,.06) 57%, rgba(31,33,34,.12));
}

.search-phone {
  right: clamp(20px, 7vw, 92px);
  bottom: clamp(20px, 4vw, 52px);
  width: min(300px, calc(100% - 40px));
  padding: 14px;
  border: 1px solid rgba(31,33,34,.14);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(31,33,34,.16);
}

.search-result {
  padding-block: 7px;
  border-bottom: 1px solid rgba(31,33,34,.08);
}

.practical-flow {
  grid-template-columns: minmax(0,1fr) minmax(28px,.24fr) minmax(0,1fr) minmax(28px,.24fr) minmax(0,1fr);
  align-items: start;
  border: 0;
  position: relative;
}

.practical-flow__step,
.practical-flow__step + .practical-flow__step {
  display: block;
  padding: 0 18px 0 0;
  border: 0;
}

.practical-flow__number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  position: relative;
  z-index: 1;
}

.practical-flow__step small {
  margin-bottom: 8px;
  letter-spacing: .08em;
}

.practical-flow__step h3 {
  margin-bottom: 7px;
}

.practical-flow__step p {
  max-width: 30ch;
}

.practical-flow__line {
  display: block;
  height: 1px;
  margin-top: 17px;
  background: linear-gradient(90deg, var(--red), rgba(71,127,115,.42));
}

.territory-bridge {
  padding-top: clamp(88px, 11vw, 136px);
}

.bridge-intro {
  display: block;
  max-width: 800px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.bridge-intro h2 {
  max-width: 17ch;
  text-wrap: balance;
}

.bridge-scene {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #d7e0d9;
}

.bridge-scene .territory-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
}

.bridge-scene .territory-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bridge-scene::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(247,244,238,.62), transparent 68%);
}

.bridge-caption {
  z-index: 2;
}

.bridge-caption {
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 30px);
}


.projects-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.demo-stack {
  width: 100%;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.demo-tabs {
  gap: clamp(14px, 4vw, 42px);
  margin-bottom: clamp(22px, 4vw, 38px);
}

.demo-tabs button {
  padding: 9px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-secondary);
}

.demo-tabs button.is-active {
  color: var(--ink);
  background: transparent;
  border-color: var(--red);
}

.demo-tabs button:focus-visible,
.hero-motion-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.demo-screen {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px clamp(24px, 5vw, 64px);
  align-items: start;
}

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

.demo-label {
  grid-column: 1 / -1;
}

.demo-outcome {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: center;
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 1px solid var(--line-strong);
}

.demo-outcome small {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.demo-outcome p {
  max-width: 44ch;
  color: var(--ink-secondary);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.65;
}

.demo-outcome span {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.demo-outcome__byline strong,
.demo-outcome__byline small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}

.demo-outcome__byline strong {
  color: var(--ink);
}

.demo-outcome__byline small {
  color: var(--muted);
}

.demo-outcome em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.feedback-disclosure {
  grid-column: 1 / -1;
  margin-top: 26px;
  color: var(--muted);
  font-size: 11px;
}

.process-strip {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
}

.process-strip::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.process-strip article,
.process-strip article + article {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 36px) 0 0;
  border: 0;
}

.process-strip small {
  display: inline-block;
  padding: 0 10px 0 0;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.process-strip h3 {
  margin-top: 10px;
}

@media (max-width: 700px) {
  .journey-search__scene {
    width: var(--shell);
    margin-inline: auto;
    min-height: 350px;
  }

  .search-phone {
    right: 16px;
    bottom: 16px;
    width: min(290px, calc(100% - 32px));
  }

  .practical-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .practical-flow__step,
  .practical-flow__step + .practical-flow__step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 28px;
  }

  .practical-flow__number {
    margin: 0;
  }

  .practical-flow__line {
    width: 1px;
    height: 24px;
    margin: -24px 0 0 16px;
    background: linear-gradient(var(--red), rgba(71,127,115,.42));
  }

  .practical-flow__step p {
    max-width: 40ch;
  }

  .bridge-scene {
    aspect-ratio: 4 / 3;
  }

  .bridge-scene .territory-art img {
    object-position: 50% center;
  }

  .bridge-scene::after {
    inset-block-start: 45%;
  }

  .demo-screen {
    grid-template-columns: 1fr;
  }

  .demo-label,
  .demo-outcome {
    grid-column: 1;
  }

  .demo-outcome {
    grid-row: auto;
    margin-top: 10px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

  .process-strip::before {
    inset: 0 auto 0 5px;
    width: 1px;
    height: auto;
  }

  .process-strip article,
  .process-strip article + article {
    padding: 0 0 28px 22px;
  }

  .process-strip small {
    margin-left: -22px;
    padding: 0 8px 0 0;
  }
}

/* Targeted visual corrections: bridge, hero benefits, contact contrast, and local landscape crop. */
#inicio .hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  width: var(--shell);
  margin-inline: auto;
}

#inicio .hero-steps article {
  min-width: 0;
}

#inicio .hero-steps small {
  width: 100%;
  max-width: none;
  min-height: 2.8em;
}

#territorio .bridge-scene .territory-art img {
  opacity: 1;
  filter: grayscale(.62) sepia(.12) saturate(.86) contrast(.94) brightness(1.06);
}

/* Contact keeps the 27set baseline: dark section, dark form card, dark fields. */
#contato.contact {
  background: #191b1c;
  color: #ffffff;
}

#contato h2,
#contato h3 {
  color: #ffffff;
}

#contato .contact-copy .eyebrow,
#contato .eyebrow,
#contato .form-heading span,
#contato .form-status {
  color: #ff6b6b;
}

#contato .contact-copy p {
  color: #cbd5e1;
}

#contato .contact-note {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--red);
}

#contato .contact-note b,
#contato .form-heading strong {
  color: #ffffff;
}

#contato .contact-note span,
#contato .fields label span {
  color: #94a3b8;
}

#contato .form-actions small {
  color: #64748b;
}

#contato .contact-form {
  background: #232629;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#contato .fields input,
#contato .fields textarea {
  background: #141617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

#contato .fields input::placeholder,
#contato .fields textarea::placeholder {
  color: rgba(226, 232, 240, 0.42);
}

#contato .fields input:focus,
#contato .fields textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(200, 75, 64, 0.22);
}

@media (max-width: 640px) {
  #inicio .hero-steps {
    grid-template-columns: 1fr;
  }

  #inicio .hero-steps small {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  #para-quem .journey-search__landscape img {
    object-position: 78% center;
  }
}

#inicio .hero-steps p {
  width: 100%;
  max-width: none;
}

/* The search scene brings the journey into the passenger seat. */
.journey-search__intro {
  display: block;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.journey-search__intro h2 {
  max-width: 18ch;
  text-wrap: balance;
}

.journey-search__scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.39fr);
  min-height: clamp(440px, 43vw, 610px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.journey-search__art {
  min-width: 0;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.journey-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.passenger-fallback {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.search-phone {
  position: relative;
  right: auto;
  bottom: auto;
  align-self: center;
  width: auto;
  margin: 0 clamp(20px, 3.4vw, 50px) 0 0;
  padding: 14px 0 14px clamp(22px, 2.5vw, 36px);
  border: 0;
  border-left: 1px solid rgba(31, 33, 34, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search-phone__eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-phone__topbar {
  border-bottom: 1px solid var(--line-strong);
}

.search-phone__search {
  border-color: rgba(31, 33, 34, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.search-result {
  gap: 8px;
  padding-block: 9px;
}

.search-result strong {
  font-size: 11px;
}

.search-result small,
.search-result em {
  font-size: 8px;
}

.search-phone__action {
  margin-top: 4px;
}

.territory-bridge {
  padding-top: clamp(86px, 10vw, 132px);
}

.bridge-intro {
  display: block;
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.bridge-intro h2 {
  max-width: 18ch;
  text-wrap: balance;
}

.bridge-scene {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.bridge-scene .territory-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.territory-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.bridge-fallback {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.has-webgl-scene .bridge-fallback,
.has-webgl-scene .passenger-fallback {
  display: none;
}

.bridge-scene .territory-art.scene-fallback .bridge-fallback,
.journey-search__art.scene-fallback .passenger-fallback {
  display: block;
}

.bridge-caption {
  z-index: 3;
}

.bridge-caption {
  left: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.bridge-caption span:first-child {
  display: block;
  font-weight: 700;
  color: var(--ink);
}


.demo-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
}

.demo-flow-steps span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(31, 33, 34, 0.06);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
}

.demo-flow-steps span.is-active,
.demo-flow-steps span.is-complete {
  background: rgba(200, 75, 64, 0.08);
  color: var(--ink);
}

.demo-flow-steps span b {
  color: var(--red);
  font-weight: 700;
  font-size: 10px;
}

.form-message-preview {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.form-message-preview[hidden] {
  display: none;
}

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

  .search-phone {
    margin-right: 22px;
    padding-left: 20px;
  }
}

@media (max-width: 700px) {
  .journey-search__scene {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .journey-search__art {
    min-height: clamp(290px, 78vw, 370px);
  }

  .search-phone {
    margin: 0 20px 24px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .search-phone__eyebrow {
    margin-bottom: 12px;
  }

  .territory-bridge {
    padding-top: 84px;
  }

  .bridge-scene {
    aspect-ratio: 1.18;
    min-height: 290px;
  }


  .bridge-caption {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .search-phone {
    margin-inline: 16px;
  }

  .search-result small,
  .search-result em {
    font-size: 7px;
  }

  .bridge-scene {
    aspect-ratio: 1.08;
  }
}

/* Capabilities section wrapper */
.capabilities {
  background: var(--paper);
}

/* Three.js Hero Diorama active state */
.hero-art.has-three-diorama .scene-image--hero {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hero raster fallback (no WebGL / no JS) must sit on the same layout as the
   live scene: full-bleed box with `contain`, never `cover`, so the exported
   canvas poster is never cropped by a container ratio change. */
#inicio .scene-image--hero,
#inicio .scene-image--nojs {
  object-fit: contain;
  object-position: center;
}

#inicio .scene-image--nojs {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 27set baseline: the plan and contact calls to action are full pills. Scoped by
   id because a later bare `.button` rule otherwise forces a 8px radius. */
#investimento .button--red,
#contato .button--red {
  border-radius: 999px;
}

/* Mobile service flow: cards occupy their own rows instead of absolute coordinates. */
@media (max-width: 640px) {
  #servicos .flow-canvas {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: auto;
    padding: 12px;
    overflow: visible;
  }
  #servicos .flow-wires { display: none; }
  #servicos .flow-node {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }
  #servicos .flow-node:hover { transform: none; }
  #servicos .flow-node:not(.flow-node--done)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    height: 18px;
    border-left: 2px solid var(--red);
  }
  #servicos .flow-node__badge { font-size: 9px; }
  #servicos .flow-node__title { font-size: 13px; }
  #servicos .flow-node__meta { font-size: 11px; }
  #servicos .flow-node__icon-box { flex: 0 0 24px; }
  #servicos .flow-node__text { min-width: 0; }
  #servicos .flow-status {
    position: relative;
    inset: auto;
    align-self: center;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 10px;
  }
  #servicos .system-topline { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 640px) {
  #servicos .flow-canvas { gap: 12px; padding: 8px; }
  #servicos .flow-node { padding: 8px 12px; }
  #servicos .flow-node:not(.flow-node--done)::after { height: 12px; }
  #servicos .flow-node__header { line-height: 1.2; }
  #servicos .flow-node__badge { line-height: 1.2; }
  #servicos .flow-node__title { line-height: 1.25; }
  #servicos .flow-node__meta { line-height: 1.4; }
  #servicos .flow-status { gap: 4px; line-height: 1.4; }
  #servicos .system-flow { padding: 16px; }
}

/* Two readable pairs fit wider phones; narrow phones keep the vertical flow. */
@media (min-width: 360px) and (max-width: 640px) {
  #servicos .flow-canvas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
  }
  #servicos .flow-node { height: 100%; padding: 8px; }
  #servicos .flow-node__body { gap: 6px; }
  #servicos .flow-node__icon-box { flex-basis: 20px; width: 20px; }
  #servicos .flow-node__title { overflow-wrap: normal; }
  #servicos .flow-node::after { display: none; }
  #servicos .flow-node.flow-node--input::after,
  #servicos .flow-node.flow-node--route::after {
    display: block;
    top: 50%;
    left: 100%;
    width: 14px;
    height: 0;
    border-left: 0;
    border-top: 2px solid var(--red);
  }
  #servicos .flow-status { grid-column: 1 / -1; justify-self: center; }
  #servicos .system-flow { padding: 12px; }
}

/* A shared hero stage: the landscape occupies the central/right background,
   with a separate safe reading area for the heading and actions. */
@media (min-width: 961px) {
  #inicio .hero-stage {
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    min-height: clamp(500px, 41vw, 650px);
    gap: 0;
  }
  #inicio .hero-stage__copy-wrapper {
    position: relative;
    z-index: 2;
    width: 43%;
    padding-block: 28px;
  }
  #inicio .hero-stage__art-wrapper {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    right: calc((var(--shell) - 100vw) / 2);
    width: 72%;
    pointer-events: none;
  }
  #inicio .hero-art {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
  }
  #inicio .hero-steps { margin-top: 24px; position: relative; z-index: 2; }
}

/* Journey art: rear-seat view and lateral bridge drawing share one graphic grammar. */
#para-quem .journey-search__scene {
  display: block;
  min-height: clamp(560px, 57vw, 760px);
  overflow: visible;
}
#para-quem .journey-search__art {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
}
#para-quem .journey-canvas,
#territorio .territory-canvas { display: none !important; }
#para-quem .passenger-fallback,
#para-quem .passenger-motion,
#territorio .bridge-fallback,
#territorio .bridge-motion {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#para-quem .passenger-motion,
#territorio .bridge-motion { z-index: 1; }
#para-quem .search-phone {
  position: absolute;
  z-index: 3;
  top: 17%;
  left: 25%;
  right: auto;
  width: min(305px, 27%);
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(31,33,34,.18);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(31,33,34,.12);
}
#para-quem .search-phone::after {
  content: '';
  position: absolute;
  left: calc(100% + 1px);
  top: 74%;
  width: clamp(46px, 5.6vw, 95px);
  height: 2px;
  background: #e63946;
  transform: rotate(25deg);
  transform-origin: left center;
  pointer-events: none;
}
#para-quem .search-result strong { font-size: 12px; }
#para-quem .search-result small,
#para-quem .search-result em { font-size: 9px; }
#territorio .bridge-scene {
  aspect-ratio: 1440 / 600;
  min-height: 390px;
  overflow: hidden;
}
#territorio .bridge-scene .territory-art { inset: 0; }
#territorio .bridge-fallback { filter: saturate(.55) contrast(1.025); }
#territorio .territory-facts article { will-change: transform; }
@media (min-width: 961px) {
  #inicio .hero-stage::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 4% -8% 0 27%;
    pointer-events: none;
    background: radial-gradient(ellipse 68% 58% at 72% 48%, rgba(200, 203, 181, .24), transparent 100%);
  }
  #inicio .hero-canvas,
  #inicio .hero-picture {
    -webkit-mask-image: radial-gradient(ellipse 64% 82% at 63% 42%, #000 28%, transparent 96%);
    mask-image: radial-gradient(ellipse 64% 82% at 63% 42%, #000 28%, transparent 96%);
  }
}
@media (max-width: 700px) {
  #para-quem .journey-search__scene { min-height: 720px; margin-bottom: 32px; }
  #para-quem .journey-search__art { height: 390px; bottom: auto; }
  #para-quem .passenger-fallback,
  #para-quem .passenger-motion { object-position: 67% center; }
  #para-quem .search-phone {
    top: 390px;
    left: 4%;
    right: 4%;
    width: auto;
    padding: 16px;
  }
  #para-quem .search-phone::after { display: none; }
  #territorio .bridge-scene { aspect-ratio: 1.45; min-height: 290px; }
  #territorio .bridge-fallback,
  #territorio .bridge-motion { object-position: center; }
}

/* Cinematic journey: preserve a quiet margin for live search content. */
#para-quem .journey-search__scene { background: var(--paper, #f7f4ee); }
#para-quem .passenger-fallback,
#para-quem .passenger-motion {
  -webkit-mask-image: url('assets/rebrand/passenger-soft-mask-desktop.png');
  mask-image: url('assets/rebrand/passenger-soft-mask-desktop.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: saturate(.48) contrast(1.025);
}
#para-quem .search-phone {
  top: 20%;
  left: 2.5%;
  width: min(290px, 27%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#para-quem .search-phone::after,
#para-quem .search-phone__topbar,
#para-quem .search-result img { display: none; }
#para-quem .search-phone__search {
  padding: 6px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(31,33,34,.38);
  border-radius: 0;
  background: transparent;
  font-size: clamp(17px, 1.8vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}
#para-quem .search-phone__search span:first-child { font-size: 24px; }
#para-quem .search-result {
  padding: 13px 0;
  border-bottom: 1px solid rgba(31,33,34,.18);
  background: transparent;
}
#para-quem .search-result strong { font-size: 13px; }
#para-quem .search-result small,
#para-quem .search-result em { font-size: 10px; }
#para-quem .search-phone__action { padding: 18px 0 0; }
#territorio .bridge-fallback,
#territorio .bridge-motion {
  -webkit-mask-image: url('assets/rebrand/bridge-soft-mask-desktop.png');
  mask-image: url('assets/rebrand/bridge-soft-mask-desktop.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: saturate(.55) contrast(1.025);
}
#territorio .bridge-caption {
  bottom: 12px;
  color: var(--ink-secondary);
  text-shadow: 0 1px 2px #f7f4ee, 0 0 8px #f7f4ee;
}
@media (max-width: 700px) {
  #para-quem .journey-search__scene { min-height: 710px; }
  #para-quem .passenger-fallback,
  #para-quem .passenger-motion {
    -webkit-mask-image: url('assets/rebrand/passenger-soft-mask-mobile.png');
    mask-image: url('assets/rebrand/passenger-soft-mask-mobile.png');
    object-position: 73% center;
  }
  #para-quem .search-phone {
    top: 402px;
    left: 4%;
    right: 4%;
    width: auto;
  }
  #territorio .bridge-caption {
    left: 12px;
    right: 12px;
    bottom: 8px;
    font-size: 10px;
  }
  #territorio .bridge-fallback,
  #territorio .bridge-motion {
    -webkit-mask-image: url('assets/rebrand/bridge-soft-mask-mobile.png');
    mask-image: url('assets/rebrand/bridge-soft-mask-mobile.png');
  }
}
