/* VALUE — final interaction and brand polish
   Geometry-safe enhancements layered over the approved visual system. */

:root {
  --touch-target: 44px;
  --polish-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection {
  background: #FFFFFF;
  color: var(--value-blue);
}

body {
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}

main > section {
  isolation: isolate;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  main > section { overflow-x: hidden; }
}

:where(a, button, input, select, textarea) {
  touch-action: manipulation;
}

/* Existing top line becomes a transform-only reading progress indicator. */
.top-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  opacity: 0.92;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  will-change: transform;
}

/* The official isolated V is the primary header signature. */
.navbar .nav-logo {
  position: relative;
  display: grid;
  width: 64px;
  min-width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  transition:
    transform 260ms var(--polish-ease),
    background-color 260ms ease,
    border-color 260ms ease;
}

.navbar .nav-logo::before {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    transform 320ms var(--polish-ease);
}

.navbar .nav-logo .brand-logo.brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  max-width: none;
  object-fit: contain;
  filter: none;
  transform: translate(-50%, -50%);
  transition: transform 340ms var(--polish-ease);
}

@media (hover: hover) and (pointer: fine) {
  .navbar .nav-logo:hover {
    transform: translate3d(0, -1px, 0);
  }

  .navbar .nav-logo:hover::before {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.035);
  }

  .navbar .nav-logo:hover .brand-mark {
    transform: translate(-50%, -50%) scale(1.045);
  }
}

.navbar .nav-logo:active { transform: scale(0.97); }

/* A restrained V signature introduces the Home without changing its copy. */
.hero-premium .hero-content::before {
  content: '';
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  background-image: url('../assets/brand/value-mark-white.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 122px 122px;
  opacity: 0.96;
  filter: drop-shadow(0 10px 24px rgba(0, 20, 130, 0.16));
}

/* The final conversion section carries a quiet branded watermark. */
.section-cta {
  overflow: hidden;
}

.section-cta::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: clamp(-90px, -4vw, -42px);
  bottom: -96px;
  width: 340px;
  height: 340px;
  background-image: url('../assets/brand/value-mark-white.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 690px 690px;
  opacity: 0.055;
  pointer-events: none;
}

.section-cta > .container {
  position: relative;
  z-index: 1;
}

/* Microinteractions remain transform/opacity-only where possible. */
.btn {
  transition:
    transform 240ms var(--polish-ease),
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    box-shadow 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate3d(0, -2px, 0); }
  .testimonial-card:hover .testimonial-media {
    box-shadow: 0 18px 42px rgba(0, 22, 150, 0.2);
  }
}

.btn:active { transform: translate3d(0, 1px, 0) scale(0.985); }

.testimonial-card:focus-visible {
  outline: none;
}

.testimonial-card:focus-visible .testimonial-media {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
}

.client-proof-section .testimonial-card:focus-visible .testimonial-media {
  outline-color: var(--value-blue);
}

/* The menu keeps the V visible while navigation remains the focus. */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10px;
  width: 188px;
  height: 188px;
  background-image: url('../assets/brand/value-mark-white.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 380px 380px;
  opacity: 0.075;
  pointer-events: none;
}

.mobile-menu > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  html { scroll-padding-top: 82px; }

  main > section,
  .section-cta,
  .cta-panel,
  .cta-panel > * {
    min-width: 0;
    max-width: 100%;
  }

  .navbar,
  .wa-fab,
  .video-modal {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    transform: none;
  }

  .navbar {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .navbar.scrolled {
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .navbar .nav-logo {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .navbar .nav-logo::before {
    inset: 5px;
    border-radius: 13px;
  }

  .navbar .nav-logo .brand-logo.brand-mark {
    width: 112px;
    height: 112px;
  }

  .mobile-toggle {
    width: 48px;
    height: 48px;
  }

  .mobile-menu {
    transform: none;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
  }

  .mobile-menu.open {
    transition-delay: 0s;
  }

  .hero-premium .hero-content::before {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    background-size: 94px 94px;
  }

  .section-cta::after {
    right: -104px;
    bottom: -62px;
    width: 240px;
    height: 240px;
    background-size: 490px 490px;
    opacity: 0.05;
  }

  /* Flatten old 3D layers that could tear while rails were composited. */
  .mobile-rail,
  .mobile-rail > *,
  .service-grid .service-card,
  .pocket-card,
  .diff-item,
  .val-card,
  .client-case,
  .channel,
  .form-card,
  .testimonial-media {
    transform-style: flat !important;
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
  }

  .mobile-rail {
    /* pan-x alone locked the gesture to horizontal-only, so a touch that
       started on a card inside the rail couldn't scroll the page down —
       only worked if you grabbed empty space outside the rail. Allow both
       axes and let the browser resolve direction from the actual gesture. */
    touch-action: pan-x pan-y;
    contain: layout style;
  }

  .mobile-rail > * {
    scroll-snap-stop: always;
  }

  .service-grid .service-card,
  .pocket-card,
  .diff-item,
  .val-card,
  .client-case,
  .channel,
  .form-card {
    box-shadow:
      0 14px 34px rgba(0, 22, 150, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.11),
      inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  }

  .testimonial-media {
    box-shadow:
      0 14px 34px rgba(0, 22, 150, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .mobile-rail-progress {
    width: 82px;
    margin-top: 12px;
  }

  .footer-col a {
    min-height: var(--touch-target);
    align-items: center;
    margin-bottom: 0;
  }

  .footer-socials a,
  .video-modal-close {
    width: var(--touch-target);
    height: var(--touch-target);
  }

  .cta-actions,
  .cta-actions .btn,
  .form-card .btn {
    min-width: 0;
    max-width: 100%;
  }

  .cta-actions p,
  .footer-col a,
  .footer-col p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 379px) {
  .navbar .nav-logo {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .navbar .nav-logo .brand-logo.brand-mark {
    width: 104px;
    height: 104px;
  }

  .hero-premium .hero-content::before {
    width: 40px;
    height: 40px;
    background-size: 86px 86px;
  }
}

@media (max-width: 767px) and (max-height: 720px) {
  .hero-premium .hero-content::before {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    background-size: 74px 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-line,
  .navbar .nav-logo,
  .navbar .nav-logo::before,
  .navbar .brand-mark,
  .btn,
  .testimonial-media {
    transition: none !important;
  }
}

/* ============================================================
   Final brand details — official white mark, client-logo focus
   and direct-contact clarity.
   ============================================================ */

/* The downloaded brand reference confirms an entirely white V.
   Neutralize legacy accent pixels without changing its silhouette. */
.navbar .nav-logo .brand-logo.brand-mark {
  filter: brightness(0) invert(1);
}

.hero-premium .hero-content::before {
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 10px 24px rgba(0, 20, 130, 0.16));
}

.section-cta::after,
.mobile-menu::before {
  filter: brightness(0) invert(1);
}

.footer .brand-logo {
  filter: brightness(0) invert(1);
}

/* Footer used a hand-drawn placeholder silhouette that never matched the
   real mark; use the actual brand asset (flattened to white for contrast
   against the navy footer, same treatment as the nav). */
.footer-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Quiet V watermarks extend the visual signature through blue sections. */
.page-hero {
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: auto;
  right: clamp(28px, 7vw, 120px);
  bottom: clamp(-126px, -7vw, -66px);
  width: clamp(260px, 28vw, 460px);
  aspect-ratio: 1;
  background: url('../assets/brand/value-mark-white.png') center / 205% no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.032;
  pointer-events: none;
}

main > :is(
  .value-framework,
  .services-editorial,
  .testimonial-section,
  .section-trust,
  .section.bg-deep,
  .section.bg-primary,
  .section.bg-secondary
):not(.section-cta) {
  position: relative;
}

main > :is(
  .value-framework,
  .services-editorial,
  .testimonial-section,
  .section-trust,
  .section.bg-deep,
  .section.bg-primary,
  .section.bg-secondary
):not(.section-cta)::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: clamp(-132px, -7vw, -60px);
  bottom: clamp(-150px, -9vw, -84px);
  width: clamp(300px, 31vw, 520px);
  aspect-ratio: 1;
  background: url('../assets/brand/value-mark-white.png') center / 205% no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.024;
  transform: rotate(-7deg);
  pointer-events: none;
}

main > :is(
  .value-framework,
  .services-editorial,
  .testimonial-section,
  .section-trust,
  .section.bg-deep,
  .section.bg-primary,
  .section.bg-secondary
):not(.section-cta):nth-of-type(even)::after {
  right: auto;
  left: clamp(-146px, -8vw, -72px);
  transform: rotate(8deg);
}

main > :is(
  .value-framework,
  .services-editorial,
  .testimonial-section,
  .section-trust,
  .section.bg-deep,
  .section.bg-primary,
  .section.bg-secondary
):not(.section-cta) > .container {
  position: relative;
  z-index: 1;
}

/* Client marks remain calm in monochrome and take turns in their real color. */
.client-logo-cell {
  position: relative;
  overflow: hidden;
}

.client-logo-cell::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: var(--value-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 360ms var(--polish-ease);
}

.client-logo-cell img {
  opacity: 0.92;
  filter: none;
  transition:
    opacity 360ms ease,
    transform 360ms var(--polish-ease);
}

.client-logo-cell:is(.is-logo-active, .is-logo-selected) {
  background: #FFFFFF;
}

.client-logo-cell:is(.is-logo-active, .is-logo-selected)::after {
  transform: scaleX(1);
}

.client-logo-cell:is(.is-logo-active, .is-logo-selected) img {
  opacity: 1;
  transform: scale(1.035);
}

@media (hover: hover) and (pointer: fine) {
  .client-logo-cell:hover {
    background: #FFFFFF;
  }

  .client-logo-cell:hover::after {
    transform: scaleX(1);
  }

  .client-logo-cell:hover img {
    opacity: 1;
    transform: scale(1.035);
  }
}

/* Contact methods read as direct, platform-specific actions. */
.channels {
  position: relative;
}

.channel {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  isolation: isolate;
}

.channel::after {
  content: '↗';
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 0.92rem;
  line-height: 1;
  transition:
    transform 260ms var(--polish-ease),
    background-color 260ms ease,
    color 260ms ease,
    border-color 260ms ease;
}

.channel .ch-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: #FFFFFF !important;
  color: var(--value-blue);
  box-shadow: 0 12px 26px rgba(0, 20, 140, 0.18);
}

.channel .ch-icon svg {
  width: 23px;
  height: 23px;
}

.channel h4 {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

.channel p {
  line-height: 1.45;
}

.channel:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .channel:hover::after {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: var(--value-blue);
    transform: translate3d(2px, -2px, 0);
  }
}

.contact-submit-icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
}

.contact-submit-icon svg {
  width: 100%;
  height: 100%;
}

#diagForm button[type='submit'] {
  min-height: 54px;
  gap: 10px;
}

.footer-col a:is([href^='tel:'], [href^='mailto:'])::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  opacity: 0.72;
  -webkit-mask: var(--contact-icon) center / contain no-repeat;
  mask: var(--contact-icon) center / contain no-repeat;
}

.footer-col a[href^='tel:'] {
  --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.46 15.46 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
}

.footer-col a[href^='mailto:'] {
  --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  .page-hero::before {
    right: -78px;
    bottom: -54px;
    width: 250px;
    opacity: 0.04;
  }

  main > :is(
    .value-framework,
    .services-editorial,
    .testimonial-section,
    .section-trust,
    .section.bg-deep,
    .section.bg-primary,
    .section.bg-secondary
  ):not(.section-cta)::after {
    right: -88px;
    bottom: -72px;
    left: auto;
    width: 250px;
    opacity: 0.03;
    transform: rotate(-7deg);
  }

  .channel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 14px;
  }

  .channel .ch-icon {
    width: 48px;
    height: 48px;
  }

  .channel::after {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-logo-cell,
  .client-logo-cell::after,
  .client-logo-cell img,
  .channel::after {
    transition: none !important;
  }
}

/* ============================================================
   Mobile testimonial rhythm and guided form answers.
   ============================================================ */

.testimonial-mobile-guide {
  display: none;
}

.form-answer-progress {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.form-answer-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.form-answer-progress-copy span:first-child {
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-answer-progress-track {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.form-answer-progress-track > span {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  transform: scaleX(var(--form-answer-progress, 0));
  transform-origin: left center;
  transition: transform 460ms var(--polish-ease);
}

.form-field {
  position: relative;
}

.form-field label {
  transform-origin: left center;
  transition:
    color 260ms ease,
    transform 320ms var(--polish-ease);
}

.form-field.is-active label {
  color: #FFFFFF;
  transform: translate3d(2px, 0, 0);
}

.form-field:has(select) label::after {
  content: '✓';
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-left: 7px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  color: var(--value-blue);
  background: #FFFFFF;
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.68);
  transition:
    opacity 240ms ease,
    transform 360ms var(--polish-ease);
}

.form-field.has-value:has(select) label::after {
  opacity: 1;
  transform: scale(1);
}

.form-field.has-value select {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background-color: rgba(255, 255, 255, 0.075) !important;
  color: #FFFFFF;
}

.form-field.just-answered select {
  animation: valueAnswerConfirmed 520ms var(--polish-ease);
}

@keyframes valueAnswerConfirmed {
  0% { transform: translate3d(0, -1px, 0) scale(1); }
  45% { transform: translate3d(0, -1px, 0) scale(1.012); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 767px) {
  .testimonial-section {
    padding-top: 60px;
    padding-bottom: 76px;
  }

  [data-content-panel='depoimentos'] .testimonial-section {
    padding-top: 46px;
  }

  .testimonial-head {
    gap: 16px;
    margin-bottom: 26px;
  }

  .testimonial-head::after {
    content: none;
  }

  .testimonial-mobile-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 8px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  .testimonial-mobile-guide span:last-child {
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
  }

  .testimonial-grid {
    margin-inline: calc(var(--mobile-gutter) * -1);
    padding-inline: 28px;
    scroll-padding-inline: 28px;
  }

  .testimonial-card {
    flex-basis: min(calc(100vw - 56px), 360px);
    scroll-snap-align: center;
  }

  #allTestimonials {
    grid-template-columns: none !important;
    grid-auto-columns: min(calc(100vw - 56px), 360px);
    row-gap: 18px !important;
    padding-inline: 28px;
  }

  .testimonial-media,
  .testimonial-grid--featured .testimonial-card:first-child .testimonial-media {
    margin-bottom: 12px;
  }

  .testimonial-grid + .mobile-rail-progress {
    margin: 16px auto 0;
  }

  .contact-split {
    align-items: stretch;
  }

  .contact-info {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  .info-block {
    display: block;
    width: 100%;
    padding: 26px 0 !important;
    text-align: left;
  }

  .info-block::before {
    position: static;
    display: grid;
    width: 32px;
    height: 24px;
    margin-bottom: 13px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
  }

  .info-block h3,
  .info-block p {
    width: 100%;
    max-width: 36ch;
  }

  .form-answer-progress {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .form-answer-progress-copy {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-answer-progress-track > span,
  .form-field label,
  .form-field:has(select) label::after {
    transition: none !important;
  }

  .form-field.just-answered select,
  .glow-card.is-glowing {
    animation: none !important;
  }
}

/* ============================================================
   Cursor-tracking card glow (vanilla adaptation of a mouse-follow
   border-glow effect) — injected onto .pocket-card/.client-case/
   .diff-item/.val-card/.testimonial-card by js/card-glow.js.
   Skipped entirely on touch devices and prefers-reduced-motion.
   ============================================================ */
.glow-card {
  position: relative;
}

.card-glow-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    220px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    color-mix(in srgb, var(--brand-accent, #0032FF) 75%, transparent),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: opacity 260ms ease;
}

.glow-card.is-glowing .card-glow-fx {
  opacity: 1;
}

/* On touch devices the pulse also gives the card itself a brief, springy
   pop — the same register as a feed's native like/story micro-interaction,
   so the effect reads as a deliberate flourish rather than a CSS glitch. */
@media (hover: none) {
  .glow-card.is-glowing {
    animation: valueCardPulse 620ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@keyframes valueCardPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* ============================================================
   Nebula section divider (canvas ASCII-art transition) — one
   deliberate placement between major color changes, not on every
   section boundary. Lightweight: low-res char grid, pauses off-
   screen via IntersectionObserver, static single frame when
   prefers-reduced-motion is set. See js/section-divider.js.
   ============================================================ */
.nebula-divider {
  position: relative;
  height: clamp(64px, 9vw, 120px);
  overflow: hidden;
  pointer-events: none;
}

.nebula-divider canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   CLIENT MARKS — everything on screen, no rail, no click.
   ------------------------------------------------------------
   Feedback Fillipe 23/07 (áudio): "se der pra colocar tudo na
   página inicial, sem eu clicar em saber mais e ficar arrastando
   pro lado, pra o pessoal já ver os clientes de uma vez sem
   precisar clicar."

   mobile.css turns .client-logo-grid into a two-row horizontal
   rail (grid-auto-flow: column + overflow-x: auto, with
   !important on the display/columns), which is exactly the
   "arrastar pro lado" the client rejected. These rules load
   after it and put every mark back into a wrapping grid.

   The marks themselves were re-cut onto one 660x260 canvas with
   area-normalised scale, so a single max-height finally gives
   every logo the same optical weight — the "hospital dos olhos
   ficou pequeno" complaint was baked-in padding, not CSS.
   ============================================================ */
.client-logo-grid {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  grid-template-rows: none !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  touch-action: auto !important;
}

.client-logo-cell {
  scroll-snap-align: none !important;
}

.client-logo-grid img {
  width: auto;
  max-width: 190px;
  max-height: 78px;
  object-fit: contain;
}

/* Column counts tuned for the full 20-mark set. */
@media (min-width: 1200px) {
  .client-logo-grid,
  .client-logo-grid--compact,
  .client-logo-grid--all {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .client-logo-grid,
  .client-logo-grid--compact,
  .client-logo-grid--all {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .client-logo-grid,
  .client-logo-grid--compact,
  .client-logo-grid--all {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .client-logo-grid,
  .client-logo-grid--compact,
  .client-logo-grid--all {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(6, 17, 31, 0.1) !important;
    background: rgba(6, 17, 31, 0.1) !important;
  }

  .client-logo-cell {
    min-height: 92px !important;
    padding: 12px !important;
  }

  .client-logo-grid img {
    max-width: 128px;
    max-height: 52px;
  }
}

/* The rail progress bar described a scroll that no longer happens. */
.client-proof-section .mobile-rail-progress {
  display: none !important;
}
