/* ============================================================
   Openflow Group — US Website
   Dark professional theme
   ============================================================ */

:root {
  --bg: #0c0b0a;           /* warm near-black — established, premium */
  --bg-soft: #14110f;
  --bg-card: #1a1613;
  --border: #2b2520;
  --text: #f5efe8;         /* warm white */
  --text-muted: #a89d91;   /* warm gray */
  --accent: #f06314;       /* Openflow brand orange, sampled from the logo */
  --accent-soft: #f7995a;
  --accent-glow: rgba(240, 99, 20, 0.22);
  --cream: #efe6d8;
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;   /* editorial serif — distinct from US site */
  --font-body: 'Hanken Grotesk', sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ============ Section heads ============ */
.section__head { max-width: 720px; margin-bottom: 56px; }

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.section__lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.logo__img { height: 34px; width: auto; }
.logo__img--footer { height: 28px; }

.nav { display: flex; align-items: center; gap: 32px; }

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text); }

.nav__link--cta {
  color: var(--text);
  background: var(--accent);
  padding: 9px 22px;
  border-radius: 999px;
  transition: background 0.2s;
}

.nav__link--cta:hover { background: var(--accent-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
}

.hero__content { position: relative; }

.hero__title {
  font-family: var(--font-display);
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero__open {
  display: block;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__flow {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 640px;
}

.hero__subtitle {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 34px;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

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

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-soft); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--accent); }

/* ============ Clients ============ */
.clients { padding-top: 40px; padding-bottom: 40px; }

.clients__label {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============ Logo marquee (infinite scrolling carousel) ============ */
.marquee {
  overflow: hidden;
  position: relative;
  /* fade the edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 8px 0;
  animation: marquee-scroll 38s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 32s;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  margin-right: 72px; /* margin (not flex gap) so each half of the track has identical width for a seamless loop */
  opacity: 0.75;
  filter: grayscale(35%);
  transition: opacity 0.2s, filter 0.2s;
}

.marquee__logo:hover { opacity: 1; filter: none; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ============ Metrics ============ */
.metrics { padding-top: 56px; padding-bottom: 56px; }

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

@media (max-width: 860px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

.metric__number,
.metric__plus {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--accent-soft);
}

.metric__label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============ Specialties ============ */
.specialties__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .specialties__grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card__index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 14px 0 10px;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============ Framework ============ */
.framework { background: var(--bg-soft); }

.framework__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.pillar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.pillar__text { color: var(--text-muted); }

/* ============ Testimonials ============ */
.testimonials { background: var(--bg-soft); }

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quote__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.quote__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.quote__meta { display: flex; flex-direction: column; }
.quote__meta strong { font-weight: 600; }
.quote__meta span { color: var(--text-muted); font-size: 0.9rem; }

/* ============ Our People ============ */
.people__group { margin-top: 56px; }
.people__group:first-of-type { margin-top: 0; }

.people__group-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.people__flag { font-size: 1.5rem; line-height: 1; }

.people__flag-img {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.people__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

/* A single, centered row (e.g. the managers tier) */
.people__grid--row {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto 24px;
}

/* Leadership row: fewer, larger cards */
.people__grid--lead {
  grid-template-columns: repeat(4, minmax(0, 200px));
  justify-content: start;
  gap: 28px;
}

.person {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.person:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.person__photo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), transparent 70%);
}

.people__grid--lead .person__photo-wrap {
  width: 120px;
  height: 120px;
}

.person__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-soft);
  /* Standardize the mixed team photos: grayscale by default, full color on hover */
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.person:hover .person__photo {
  filter: grayscale(0%);
}

.person__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent-soft);
  background: var(--bg-soft);
}

.person__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.person__role {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.person__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 12px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.person__linkedin:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.person__linkedin svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .people__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .people__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .people__grid--lead { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .people__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Latin America dot map ============ */
.latam { background: var(--bg-soft); }

.latam__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.latam__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 36px;
}

.latam__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s;
}

.latam__item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.latam__flag { font-size: 1.35rem; line-height: 1; }

.latam__flag-img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.latam__item strong { font-weight: 600; font-size: 0.95rem; }

.latam__badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: var(--accent-glow);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.latam__map { display: flex; justify-content: center; }

.latam__svg { width: 100%; max-width: 460px; height: auto; }

.map-dot { fill: #262633; }

.map-dot--active {
  fill: var(--accent);
  transition: opacity 0.25s;
}

/* When a country is hovered in the list, dim the others */
.latam__svg.is-focused .map-dot--active:not(.is-current) { opacity: 0.25; }

.map-pin {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}

.map-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 2.4s ease-out infinite;
}

@keyframes map-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.map-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  paint-order: stroke;
  stroke: var(--bg-soft);
  stroke-width: 6px;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .latam__grid { grid-template-columns: 1fr; gap: 40px; }
  .latam__map { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .map-pulse { animation: none; opacity: 0.5; }
}

/* ============ Global / Brazil card ============ */
.brazil-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card) 40%, rgba(240, 99, 20, 0.12));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  transition: border-color 0.3s, transform 0.3s;
}

.brazil-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.brazil-card__glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
}

.brazil-card__content { position: relative; }

.brazil-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.brazil-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.brazil-card__text {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}

.brazil-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-soft);
  transition: gap 0.25s;
}

.brazil-card:hover .brazil-card__cta { gap: 16px; }

/* Concentric rings visual with BR mark */
.brazil-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.brazil-card__flag {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 60px var(--accent-glow);
}

.brazil-card__ring {
  position: absolute;
  border: 1px solid rgba(240, 99, 20, 0.35);
  border-radius: 50%;
  width: 160px;
  height: 160px;
  animation: ring-pulse 3.2s ease-out infinite;
}

.brazil-card__ring--2 { width: 230px; height: 230px; animation-delay: 0.5s; }
.brazil-card__ring--3 { width: 300px; height: 300px; animation-delay: 1s; }

@keyframes ring-pulse {
  0%   { transform: scale(0.92); opacity: 0.2; }
  50%  { opacity: 0.7; }
  100% { transform: scale(1.06); opacity: 0.1; }
}

@media (max-width: 900px) {
  .brazil-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .brazil-card__visual { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .brazil-card__ring { animation: none; opacity: 0.4; }
}

/* ============ Contact ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.contact__value {
  font-size: 1.1rem;
  font-weight: 500;
  font-style: normal;
  transition: color 0.2s;
}

a.contact__value:hover { color: var(--accent-soft); }

.contact__address { color: var(--text-muted); line-height: 1.7; }

.contact__social { display: flex; gap: 20px; }

.contact__social a {
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.contact__social a:hover { color: var(--text); border-color: var(--accent); }

/* Map placeholder — replaced later by the Google Maps iframe */
.contact__map {
  min-height: 380px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

.map-placeholder {
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px;
  color: var(--text-muted);
}

.map-placeholder__icon { color: var(--accent-soft); }

.map-placeholder__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.map-placeholder__text { font-size: 0.95rem; max-width: 320px; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo--footer { font-size: 1.15rem; }

.footer__copy { color: var(--text-muted); font-size: 0.9rem; }

.footer__social { display: flex; gap: 20px; }

.footer__social a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__social a:hover { color: var(--text); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .specialties__grid { grid-template-columns: repeat(2, 1fr); }
  .framework__grid,
  .testimonials__grid,
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.is-open { max-height: 360px; }

  .nav__link {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .nav__link--cta {
    background: none;
    color: var(--accent-soft);
    border-radius: 0;
  }

  .nav-toggle { display: flex; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .specialties__grid { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ Language switcher ============ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
}

.lang-switch__link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__link:hover { color: var(--text); }

.lang-switch__link.is-active {
  color: var(--accent-soft);
  background: var(--bg-card);
}

@media (max-width: 680px) {
  .lang-switch { margin-left: auto; margin-right: 14px; }
}

/* ============ Contact CTA panel ============ */
.contact__cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.contact__cta-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact__cta-text { color: var(--text-muted); }

.contact__cta .btn { align-self: flex-start; margin-top: 8px; }

/* ============================================================
   Motion layer — entrance, ambient movement & micro-interactions
   Honors prefers-reduced-motion (see bottom of this block).
   ============================================================ */

/* Scroll progress bar (created by main.js) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* Hero entrance — staggered rise */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.hero__flow,
.hero__subtitle,
.hero__actions {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__flow     { animation-delay: 0.18s; }
.hero__subtitle { animation-delay: 0.32s; }
.hero__actions  { animation-delay: 0.46s; }

/* OPEN — rise + slow gradient sheen */
.hero__open {
  background: linear-gradient(110deg, var(--text) 18%, var(--accent-soft) 44%, var(--accent) 54%, var(--text) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both,
             openSheen 7s ease-in-out 1.2s infinite;
}
@keyframes openSheen {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

/* Ambient floating glows in the hero */
.hero__glow {
  animation: glowFloat 15s ease-in-out infinite;
  will-change: transform;
}
@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50%      { transform: translate(-44px, 34px) scale(1.12); opacity: 0.78; }
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -160px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 99, 20, 0.13), transparent 65%);
  pointer-events: none;
  animation: glowFloat2 19s ease-in-out infinite;
}
@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(54px, -32px) scale(1.16); }
}

/* Primary button — shine sweep on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn--primary:hover::after { left: 150%; }

/* Nav links — animated underline */
.nav__link:not(.nav__link--cta) { position: relative; }
.nav__link:not(.nav__link--cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:not(.nav__link--cta):hover::after { transform: scaleX(1); }

/* Cards — glow + index accent on hover */
.card {
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { box-shadow: 0 22px 48px -24px var(--accent-glow); }
.card:hover .card__index { color: var(--accent); }

/* People — photo zoom on hover */
.person__photo { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.person:hover .person__photo { transform: scale(1.07); }

/* Pillars — subtle glow on hover */
.pillar { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -24px var(--accent-glow);
}

/* Reduced motion — calm everything down */
@media (prefers-reduced-motion: reduce) {
  .hero__open,
  .hero__flow,
  .hero__subtitle,
  .hero__actions { opacity: 1; animation: none; }
  .hero__glow,
  .hero::after { animation: none; }
  .marquee__track { animation: none; }
  .scroll-progress { display: none; }
  .btn--primary::after { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   BR visual identity — editorial / established
   Distinct from the US site: serif display, warm palette,
   film grain, editorial kickers and an italic hero deck.
   ============================================================ */

/* Subtle film grain for depth & craft */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Display serif tuning */
.hero__open { letter-spacing: -0.01em; }

/* Italic editorial deck under OPEN */
.hero__flow {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.92;
}

.hero__subtitle { font-family: var(--font-body); line-height: 1.7; }

/* Confident, tightly-tracked section titles */
.section__title { letter-spacing: -0.015em; font-weight: 500; }

/* Editorial kicker — replaces the pill chip with a ruled label */
.section__tag {
  border: none;
  border-radius: 0;
  padding: 0 0 0 46px;
  position: relative;
  background: none;
  color: var(--accent-soft);
}
.section__tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* Numbered cards feel more editorial in serif */
.card__index { font-family: var(--font-display); font-style: italic; }

/* Pillar badges & metric numbers in the serif voice */
.metric__number,
.metric__plus { font-family: var(--font-display); }

/* ============ CX ∞ BX — continuous feedback loop ============ */
.infinity {
  display: flex;
  justify-content: center;
  margin: 4px 0 52px;
}

.infinity__svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
}

.infinity__track {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.4;
}

.infinity__flow {
  fill: none;
  stroke: url(#infGrad);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 5 15;
  animation: infFlow 1.1s linear infinite;
  filter: drop-shadow(0 0 5px var(--accent-glow));
}
@keyframes infFlow { to { stroke-dashoffset: -20; } }

.infinity__dot {
  fill: var(--accent-soft);
  filter: drop-shadow(0 0 6px var(--accent));
}
.infinity__dot--2 { fill: var(--cream); }
.infinity__dot--3 { fill: var(--accent); }

.infinity__core {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}

.infinity__label {
  fill: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

@media (prefers-reduced-motion: reduce) {
  .infinity__flow { animation: none; }
  .infinity__dot,
  .infinity__core { display: none; }
}

/* ============ Specialties — living connection web ============ */
.specialties { position: relative; }
.specialties > .container { position: relative; z-index: 1; }

.specialties__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.specialties__web-line {
  fill: none;
  stroke: url(#webGrad);
  stroke-width: 1.2;
  stroke-dasharray: 4 12;
  animation: webFlow 1.5s linear infinite;
}
@keyframes webFlow { to { stroke-dashoffset: -16; } }

.specialties__web-node {
  fill: var(--accent-soft);
  animation: webPulse 3.2s ease-in-out infinite;
}
.specialties__web-node:nth-child(2n) { animation-delay: 0.6s; }
.specialties__web-node:nth-child(3n) { animation-delay: 1.2s; }
.specialties__web-node:nth-child(4n) { animation-delay: 1.8s; }
@keyframes webPulse {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .specialties__web-line { animation: none; }
  .specialties__web-node { animation: none; opacity: 0.4; }
}

/* Infinity axes — Tecnologia (topo) / Dados (base) */
.infinity__axis {
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
  animation: infFlow 1.1s linear infinite;
  opacity: 0.85;
}
.infinity__axis-label {
  fill: var(--text-muted);
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-anchor: middle;
}

/* ============ Specialty icons — representative + living color ============ */
.card__icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 14px;
  animation: hueWave 7s ease-in-out infinite;
}
.card__icon svg { width: 30px; height: 30px; }
.specialties__grid .card:nth-child(2) .card__icon { animation-delay: 0.5s; }
.specialties__grid .card:nth-child(3) .card__icon { animation-delay: 1.0s; }
.specialties__grid .card:nth-child(4) .card__icon { animation-delay: 1.5s; }
.specialties__grid .card:nth-child(5) .card__icon { animation-delay: 2.0s; }
.specialties__grid .card:nth-child(6) .card__icon { animation-delay: 2.5s; }
.specialties__grid .card:nth-child(7) .card__icon { animation-delay: 3.0s; }
@keyframes hueWave {
  0%, 100% { color: #f06314; }
  33%      { color: #ffb15a; }
  66%      { color: #e23528; }
}

/* ============ Livelier hover — grow + buzz ============ */
.card:hover { transform: translateY(-6px) scale(1.035); }
.card:hover .card__icon {
  color: var(--accent-soft);
  animation: iconBuzz 0.55s ease-in-out;
}
@keyframes iconBuzz {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-2px) rotate(-6deg); }
  40% { transform: translateX(2px) rotate(6deg); }
  60% { transform: translateX(-1.5px) rotate(-3deg); }
  80% { transform: translateX(1.5px) rotate(3deg); }
}

.person { transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s; }
.person:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 22px 44px -26px var(--accent-glow);
}

@media (prefers-reduced-motion: reduce) {
  .infinity__axis { animation: none; }
  .card__icon { animation: none !important; }
  .card:hover { transform: none; }
}

/* Infinity solid fill — CX and BX as one connected ribbon (like the proposal) */
.infinity__fill { fill: rgba(240, 99, 20, 0.12); stroke: none; }

/* ============ Specialties — gear wheel + side labels (faithful to the proposal) ============ */
.specialties { overflow: hidden; }

.spec-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
}

.spec-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  gap: 22px;
}
.spec-col--left { text-align: left; }
.spec-col--right { text-align: right; }

.spec-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 5px;
}
.spec-item span { color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; }

/* Gear wheel (SVG — scales cleanly) */
.wheel { width: 440px; height: 440px; flex-shrink: 0; }
.wheel__svg { width: 100%; height: 100%; overflow: visible; display: block; }

.wheel__cell {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease;
}
.wheel__cell:hover { transform: scale(1.06); }

.wheel__petal {
  fill: var(--bg-card);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 0.3s;
}
.wheel__cell:hover .wheel__petal { fill: #241b13; }

.wheel__ico { color: var(--cream); transition: color 0.3s; }
.wheel__cell:hover .wheel__ico { color: var(--accent-soft); }

.wheel__num { fill: var(--accent); }
.wheel__numtxt {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Stack on smaller screens */
@media (max-width: 880px) {
  .spec-layout { grid-template-columns: 1fr; gap: 10px; }
  .wheel { order: -1; margin: 0 auto 24px; }
  .spec-col { min-height: auto; }
  .spec-col--right { text-align: left; }
}
@media (max-width: 520px) {
  .wheel { width: 320px; height: 320px; }
}

/* ============ CX / BX framework diagram ============ */
.cxbx-layout .spec-col { min-height: 300px; justify-content: space-around; }
.cxbx { width: 460px; max-width: 100%; flex-shrink: 0; }
.cxbx__svg { width: 100%; height: auto; display: block; overflow: visible; }
.cxbx__band {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.cxbx__sub {
  fill: var(--text-muted);
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 2px;
}
.cxbx__big {
  fill: var(--cream);
  font-family: var(--font-body);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
}
/* Data + technology circulating around CX and BX */
.cxbx__flow {
  stroke: rgba(245, 239, 232, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 4 9;
  animation: cxbxFlow 0.9s linear infinite;
}
@keyframes cxbxFlow { to { stroke-dashoffset: -13; } }
.cxbx__pkt { fill: #fff; filter: drop-shadow(0 0 5px var(--accent)); }
.cxbx__pkt--2 { fill: var(--accent); }
.cxbx__pkt--3 { fill: #d2d2d8; }
@media (prefers-reduced-motion: reduce) {
  .cxbx__flow { animation: none; }
  .cxbx__pkt { display: none; }
}
@media (max-width: 880px) {
  .cxbx { order: -1; margin: 0 auto 24px; }
  .cxbx-layout .spec-col { min-height: auto; }
}

/* ============ Hover-connect: icon <-> its text ============ */
.spec-item { position: relative; transition: transform 0.25s ease; }
.spec-item.is-linked strong { color: var(--accent-soft); }
.spec-item::after {
  content: "";
  position: absolute;
  top: 0.7em;
  width: 0;
  height: 2px;
  transition: width 0.25s ease;
  pointer-events: none;
}
.spec-col--left .spec-item::after { left: 100%; background: linear-gradient(90deg, var(--accent), transparent); }
.spec-col--right .spec-item::after { right: 100%; background: linear-gradient(270deg, var(--accent), transparent); }
.spec-item.is-linked::after { width: 32px; }
.spec-col--left .spec-item.is-linked { transform: translateX(10px); }
.spec-col--right .spec-item.is-linked { transform: translateX(-10px); }

.wheel__cell.is-linked { transform: scale(1.09); }
.wheel__cell.is-linked .wheel__petal { fill: #2c2014; stroke-width: 3; }
.wheel__cell.is-linked .wheel__ico { color: var(--accent-soft); }

@media (max-width: 880px) {
  .spec-item::after { display: none; }
  .spec-item.is-linked { transform: none; }
}
