/* ============================================
   Ritmo Inova — Design System
   Navy + Cyan from brand logo
   ============================================ */

:root {
  --navy: #0a1f3d;
  --navy-deep: #061528;
  --navy-mid: #123057;
  --cyan: #00c2cb;
  --cyan-bright: #2de2ea;
  --cyan-soft: #7ef0f5;
  --blue: #1a6bb5;
  --blue-mid: #2b8fd9;
  --ink: #0e1a2b;
  --muted: #5a6b7d;
  --line: rgba(10, 31, 61, 0.12);
  --surface: #f4f8fb;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #00c2cb 0%, #1a6bb5 55%, #0a1f3d 100%);
  --grad-soft: linear-gradient(120deg, rgba(0, 194, 203, 0.18), rgba(26, 107, 181, 0.12));
  --shadow: 0 24px 60px rgba(6, 21, 40, 0.14);
  --radius: 18px;
  --header-h: 76px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  background: var(--navy-deep);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-icon {
  width: 72px;
  margin-inline: auto;
  animation: pulse-logo 1.4s ease-in-out infinite;
}

.loader-bar {
  width: 140px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad);
  animation: loader-slide 1.1s var(--ease) infinite;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 194, 203, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s;
  mix-blend-mode: multiply;
}

body.is-ready .cursor-glow {
  opacity: 1;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}

.header:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(6, 21, 40, 0.72), rgba(6, 21, 40, 0));
}

.header:not(.is-scrolled) .logo__text {
  color: var(--white);
}

.header:not(.is-scrolled) .logo__icon {
  box-shadow: 0 8px 22px rgba(0, 194, 203, 0.28);
}

.header:not(.is-scrolled) .nav__link {
  color: rgba(255, 255, 255, 0.88);
}

.header:not(.is-scrolled) .nav__link:hover,
.header:not(.is-scrolled) .nav__link.is-active {
  color: var(--cyan-soft);
}

.header:not(.is-scrolled) .nav-toggle span {
  background: var(--white);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-scrolled .logo__text {
  color: var(--navy);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.35s var(--ease);
}

.logo__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 0.28rem;
  box-shadow: 0 6px 18px rgba(6, 21, 40, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  transition: color 0.3s;
}

.logo:hover {
  transform: scale(1.03);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--cyan);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
}

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--grad);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.nav__cta .icon-whatsapp {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 194, 203, 0.35);
}

.icon-whatsapp {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.whatsapp-float .icon-whatsapp {
  width: 1.7rem;
  height: 1.7rem;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn--primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(26, 107, 181, 0.28);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 194, 203, 0.35);
}

.btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-ken 20s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1%, -0.8%); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 21, 40, 0.78) 0%, rgba(6, 21, 40, 0.45) 38%, rgba(6, 21, 40, 0.18) 68%, rgba(6, 21, 40, 0.4) 100%),
    linear-gradient(to top, rgba(6, 21, 40, 0.88) 0%, rgba(6, 21, 40, 0.35) 42%, transparent 70%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: max(calc((100% - 1120px) / 2), 1.25rem);
  margin-right: auto;
  width: min(680px, calc(100% - 2.5rem));
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.96);
  max-width: 18ch;
}

.hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--cyan-bright);
}

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cyan-bright);
  animation: scroll-dot 1.6s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(18px); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  position: relative;
}

.section__head {
  margin-bottom: 2.75rem;
  max-width: 640px;
}

.section__head h2,
.section__head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.section__head h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.section__head h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section__head p:not(.eyebrow) {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section__head--light h2,
.section__head--light h3 {
  color: var(--white);
}

.section__head--light p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}

.section__head--light .eyebrow {
  color: var(--cyan-soft);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---------- Sobre ---------- */
.sobre {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 194, 203, 0.08), transparent),
    var(--surface);
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.sobre__main .section__head {
  margin-bottom: 1.5rem;
}

.sobre__copy p {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.sobre__copy p:last-child {
  margin-bottom: 0;
}

.sobre__copy strong {
  color: var(--navy);
  font-weight: 600;
}

.sobre__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.sobre__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.sobre__visual:hover .sobre__frame img {
  transform: scale(1.05);
}

.sobre__quote {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--cyan);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Essência */
.essencia {
  margin-bottom: 4rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.essencia h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.essencia__intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.essencia__panels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.essencia__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy-mid);
  transition: 0.3s var(--ease);
}

.essencia__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: 0.3s;
}

.essencia__tab:hover {
  border-color: var(--cyan);
}

.essencia__tab.is-active {
  background: var(--grad);
  color: var(--white);
  border-color: transparent;
}

.essencia__tab.is-active .essencia__dot {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.essencia__body {
  min-height: 110px;
  position: relative;
}

.essencia__panel {
  animation: panel-in 0.45s var(--ease);
}

.essencia__panel[hidden] {
  display: none;
}

.essencia__panel h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.essencia__panel p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Missão / Visão */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 4.5rem;
}

.mv {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.mv:hover {
  border-color: rgba(0, 194, 203, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.mv__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.mv p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Valores */
.valores__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.valor {
  text-align: left;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  transition: 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.valor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s;
}

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

.valor:hover,
.valor.is-active {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.valor:hover::before,
.valor.is-active::before {
  opacity: 1;
}

.valor__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.valor__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.valor__desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.35s, margin 0.35s;
}

.valor.is-active .valor__desc,
.valor:focus-visible .valor__desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.25rem;
}

@media (hover: hover) {
  .valor:hover .valor__desc {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.25rem;
  }
}

/* ---------- Projetos ---------- */
.projetos {
  background: var(--navy-deep);
  overflow: hidden;
}

.projetos__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
}

.projetos__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* altura fixa maior que a seção — evita o crop “pular” ao filtrar */
  height: 200vh;
  object-fit: cover;
  object-position: center top;
}

.projetos .container {
  position: relative;
  z-index: 1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.3s var(--ease);
}

.filter:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.filter.is-active {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}

.projetos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.projeto {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.35s, opacity 0.4s, box-shadow 0.35s;
  text-align: left;
}

.projeto:hover,
.projeto:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(0, 194, 203, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  outline: none;
}

.projeto.is-hidden {
  display: none;
}

.projeto__media {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.projeto__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.projeto:hover .projeto__media img {
  transform: scale(1.08);
}

.projeto__info {
  padding: 1.25rem 1.35rem 1.5rem;
}

.projeto__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.55rem;
}

.projeto__info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.projeto__info p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Modal */
.projeto-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.projeto-modal[hidden] {
  display: none;
}

.projeto-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 40, 0.72);
  backdrop-filter: blur(6px);
}

.projeto-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: panel-in 0.4s var(--ease);
}

.projeto-modal__dialog img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.projeto-modal__dialog .projeto__tag {
  color: var(--cyan);
}

.projeto-modal__dialog h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0.35rem 0 0.6rem;
}

.projeto-modal__dialog p {
  color: var(--muted);
}

.projeto-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy);
  z-index: 2;
}

/* ---------- Clientes ---------- */
.clientes {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 194, 203, 0.07), transparent),
    var(--white);
}

.clientes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cliente {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  place-items: center;
  padding: 1.5rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  transition: 0.35s var(--ease);
  min-height: 190px;
}

.cliente:hover {
  border-color: rgba(0, 194, 203, 0.45);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cliente__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 0.55rem;
  overflow: hidden;
  transition: 0.35s var(--ease);
}

.cliente__logo--dark {
  background: var(--navy-deep);
  border-color: transparent;
}

.cliente__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cliente:hover .cliente__logo {
  border-color: rgba(0, 194, 203, 0.35);
  box-shadow: 0 8px 20px rgba(0, 194, 203, 0.12);
}

.cliente__name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  max-width: 16ch;
}

.cliente__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
  transition: opacity 0.25s;
}

.cliente:hover .cliente__link {
  opacity: 1;
}

/* ---------- Tecnologias ---------- */
.tecnologias {
  background:
    radial-gradient(ellipse 50% 50% at 50% 40%, rgba(0, 194, 203, 0.1), transparent),
    var(--surface);
}

.tech-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.tech-cat {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-mid);
  transition: 0.3s var(--ease);
}

.tech-cat:hover {
  border-color: var(--cyan);
  color: var(--navy);
}

.tech-cat.is-active {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.tech-chip {
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  transition: 0.3s var(--ease);
}

.tech-chip:hover {
  border-color: rgba(0, 194, 203, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 21, 40, 0.08);
}

.tech-chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(26, 107, 181, 0.28);
}

.tech-chip.is-hidden {
  display: none;
}

.tech-detail {
  max-width: 640px;
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  min-height: 120px;
  transition: opacity 0.3s, transform 0.3s;
}

.tech-detail__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}

.tech-detail h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.tech-detail p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.tech-detail.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer__nav a:hover {
  color: var(--cyan-soft);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sobre__grid,
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .valores__list,
  .projetos__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero__content {
    margin-left: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s var(--ease);
    gap: 0.25rem;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.85rem 1rem;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .header:not(.is-scrolled) .nav {
    background: rgba(255, 255, 255, 0.97);
  }

  .header:not(.is-scrolled) .nav.is-open .nav__link {
    color: var(--navy);
  }

  .valores__list,
  .projetos__grid,
  .clientes__grid {
    grid-template-columns: 1fr;
  }

  .essencia {
    padding: 1.35rem;
  }

  .hero {
    align-items: end;
    padding-bottom: 3.5rem;
  }

  .hero__title {
    max-width: none;
  }

  .hero__bg {
    object-position: center 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
