/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #f5f2ed;
  --bg-2:       #eae5dc;
  --bg-3:       #dfd9ce;
  --ink:        #1a1a1a;
  --ink-soft:   #3d3d3d;
  --ink-mute:   #7a7a7a;
  --accent:     #4A2A9A;
  --accent-2:   #7B3FAF;
  --accent-dark:#1A1060;
  --orchid:     #7B3FAF;
  --magenta:    #B050C0;
  --lila:       #C8A0E0;
  --gradient-1: #e8a838;
  --gradient-2: #f06030;
  --gradient-3: #c840e0;
  --gradient-4: #3880f0;
  --line:       rgba(26,26,26,0.1);
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif:      'EB Garamond', 'Georgia', serif;
  --hand:       'Caveat', cursive;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* =============================================================
   4. Typography
   ============================================================= */
.font-serif { font-family: var(--serif); }
.font-mono { font-family: var(--mono); }
.kicker {
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}
h2 em { font-style: italic; color: var(--accent); }
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.text-large {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --- Handwritten + struck device (brand kit) --- */
.t-struck {
  position: relative;
  display: inline;
  color: rgba(26,26,26,0.2);
}
.t-struck::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  top: 48%;
  height: 2.5px;
  background: var(--magenta);
  border-radius: 1px;
  transform: rotate(-.4deg);
}
.t-hand {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--magenta);
  display: inline;
  margin-left: 6px;
}
.t-hand-note {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--lila);
  display: block;
  margin-top: 0.4rem;
  margin-left: 4px;
}
h1 .t-hand {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
}
/* mundo grande */
.t-mundo {
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.85;
}
h2 .t-hand {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(245,242,237,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,242,237,0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 2rem;
  transition: color 0.3s var(--ease-out);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .btn.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  padding: 0.25rem 2rem;
  border-radius: 100px;
  width: auto;
  max-width: 80%;
  align-self: center;
}
.nav-mobile .btn.btn-primary.btn { width: auto; }
.nav-mobile .btn.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: none;
  box-shadow: 0 4px 20px rgba(74,42,154,0.2);
}

/* --- Buttons --- */
.btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 2.2rem;
  border-radius: 4px;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 #2a1560, 0 4px 12px rgba(74,42,154,0.2);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #2a1560, 0 8px 30px rgba(74,42,154,0.3);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #2a1560, 0 2px 6px rgba(74,42,154,0.2);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(26,26,26,0.08), 0 3px 8px rgba(0,0,0,0.04);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(74,42,154,0.1), 0 6px 16px rgba(74,42,154,0.08);
}
.btn-ghost:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(26,26,26,0.06);
}

/* --- Section --- */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-header {
  position: relative;
  z-index: 2;
  margin-bottom: 3.5rem;
}
.pulso-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent);
  margin-bottom: 1rem;
}
.pulso-sub {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0;
  border: none;
}

/* --- Cards --- */
.service-card {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74,42,154,0.08);
}
.service-card-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.service-card h3 {
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Stats --- */
.section-stats {
  background: linear-gradient(135deg, var(--accent) 0%, var(--orchid) 50%, var(--magenta) 100%);
  border-radius: 24px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.section-stats .stat-value {
  color: #fff;
}
.section-stats .stat-label {
  color: rgba(255,255,255,0.7);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}
.stat-item {
  padding: 2rem 1rem;
  position: relative;
}
.stat-value {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Values --- */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.value-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.3rem;
}
.value-item h3 { margin-bottom: 0.75rem; }
.value-item p {
  color: var(--ink-soft);
  max-width: 55ch;
  font-size: 0.95rem;
}

/* --- Case study --- */
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--orchid) 50%, var(--magenta) 100%);
  border-radius: 20px;
  text-align: center;
}
.case-stat .stat-value {
  color: #fff;
}
.case-stat .stat-label {
  color: rgba(255,255,255,0.7);
}
.case-embeds {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Testimonials --- */
/* --- PULSO video --- */
.pulso-video-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
}
.pulso-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.testimonial-author {
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.testimonial-author strong {
  color: var(--ink-soft);
}
.testimonial-ig {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.testimonial-ig:hover {
  color: var(--magenta);
}

/* --- Gradient CTA section --- */
.section-gradient {
  position: relative;
  overflow: hidden;
}
.section-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 500px at 30% 50%, rgba(74,42,154,0.06) 0%, transparent 60%),
    radial-gradient(circle 400px at 70% 40%, rgba(176,80,192,0.05) 0%, transparent 60%),
    radial-gradient(circle 300px at 50% 80%, rgba(200,160,224,0.04) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* --- Contact form --- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease-out);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  margin-bottom: 1rem;
}
.footer-brand img {
  height: 50px;
  width: auto;
}
.footer-desc {
  color: var(--ink-mute);
  font-size: 0.9rem;
  max-width: 35ch;
  line-height: 1.7;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.footer-credits a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credits a:hover { color: var(--accent); }

/* =============================================================
   6. Page-specific
   ============================================================= */

/* --- Hero --- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 10rem 0 5rem;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle 600px at var(--mx, 50%) var(--my, 50%),
      rgba(232,168,56,0.2) 0%, transparent 50%),
    radial-gradient(circle 800px at calc(var(--mx, 50%) + 15%) calc(var(--my, 50%) - 10%),
      rgba(240,96,48,0.12) 0%, transparent 50%),
    radial-gradient(circle 500px at calc(100% - var(--mx, 50%)) calc(100% - var(--my, 50%)),
      rgba(200,64,224,0.08) 0%, transparent 50%),
    var(--bg);
  filter: blur(60px) saturate(130%);
  transition: background 0.15s linear;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  margin-top: 1.5rem;
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* --- Hero inner page --- */
.page-hero {
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero .hero-gradient {
  opacity: 0.5;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
.page-hero .text-large {
  margin-top: 1.5rem;
}

/* --- Services grid --- */
.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  border-radius: 8px;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.about-img:hover img { transform: scale(1.04); }

/* --- Team cards --- */
.team-section { overflow: visible; }

/* Team intro — header + group photo */
.team-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.team-intro-text .kicker { margin-bottom: 0.75rem; }
.team-intro-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.team-intro-photo--clean {
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
  background: none;
}
.team-intro-photo > img:first-child {
  width: 80%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.team-intro-photo--clean > img {
  object-fit: contain;
  height: auto;
}
.team-intro-watermark {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  width: 80px;
  height: auto;
  opacity: 0.2;
  pointer-events: none;
}
.team-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.team-card {
  background: linear-gradient(165deg, rgba(74,42,154,0.03) 0%, rgba(176,80,192,0.04) 100%);
  border: 1px solid rgba(74,42,154,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(74,42,154,0.1), 0 4px 16px rgba(0,0,0,0.04);
}
.team-card-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.7s var(--ease-out);
}
.team-card:hover .team-card-photo img {
  transform: scale(1.05);
}
.team-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--orchid) 50%, var(--magenta) 100%);
}
.team-card-body {
  padding: 2rem 2rem 2.5rem;
}
.team-card-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.team-card-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.team-card-edu {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.team-card-bio {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.team-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-card-highlights li {
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  position: relative;
}
.team-card-highlights li:last-child {
  border-bottom: 1px solid var(--line);
}
.team-card-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.team-card-highlights strong {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 960px) {
  .team-intro { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; }
  .team-duo { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .team-card-body { padding: 1.5rem 1.25rem 2rem; }
  .team-card-name { font-size: 1.35rem; }
}

/* --- Clients --- */
.clients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  align-items: center;
  justify-content: center;
}
.client-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logos-strip {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* --- Geometric rain --- */
.geo-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.geo {
  position: absolute;
  top: -60px;
  opacity: 0;
  z-index: 0;
  animation: eyeFall linear infinite;
}
.geo-eye {
  height: auto;
  object-fit: contain;
  filter: opacity(1);
}
.geo-rain ~ section { position: relative; z-index: 2; }
.geo-rain ~ section .container { position: relative; z-index: 2; }
.geo-rain ~ hr { position: relative; z-index: 2; }
@keyframes eyeFall {
  0%   { transform: translateY(-60px) rotate(-6deg);  opacity: 0; }
  5%   { opacity: 0.24; }
  50%  { opacity: 0.16; }
  90%  { opacity: 0.20; }
  100% { transform: translateY(1800px) rotate(6deg);   opacity: 0; }
}
@keyframes eyeFall2 {
  0%   { transform: translateY(-60px) rotate(15deg);  opacity: 0; }
  5%   { opacity: 0.22; }
  50%  { opacity: 0.14; }
  90%  { opacity: 0.18; }
  100% { transform: translateY(1800px) rotate(-25deg); opacity: 0; }
}
@keyframes eyeFall3 {
  0%   { transform: translateY(-60px) rotate(-20deg); opacity: 0; }
  5%   { opacity: 0.20; }
  50%  { opacity: 0.18; }
  90%  { opacity: 0.22; }
  100% { transform: translateY(1800px) rotate(30deg);  opacity: 0; }
}
@keyframes eyeFall4 {
  0%   { transform: translateY(-60px) rotate(8deg);   opacity: 0; }
  5%   { opacity: 0.24; }
  50%  { opacity: 0.12; }
  90%  { opacity: 0.16; }
  100% { transform: translateY(1800px) rotate(-15deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .geo { animation: none; display: none; }
}

/* --- Reel sound toggle --- */
.reel-wrap { position: relative; }
.reel-sound {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.reel-sound:hover { background: rgba(0,0,0,0.7); }

/* --- Marquee --- */
.marquee-duo {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-duo .marquee-track { padding: 0; }
.marquee-track-reverse {
  animation: marquee-reverse 28s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-duo:hover .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --- Contact page layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-block {
  margin-bottom: 2rem;
}
.contact-info-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.contact-info-value {
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.contact-info-value a {
  transition: color 0.3s var(--ease-out);
}
.contact-info-value a:hover { color: var(--accent); }

/* --- Page about content --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-story-text p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-story-text .drop-cap {
  font-family: var(--serif);
  font-size: 1.6em;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}
.about-story-text strong {
  font-weight: 500;
  color: var(--ink);
}

/* =============================================================
   7. Effects & animations
   ============================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  transform: translate(-50%, -50%);
  mix-blend-mode: darken;
}
.cursor.is-ready .cursor-dot,
.cursor.is-ready .cursor-ring { opacity: 1; }

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.splash-logo { color: var(--ink); }
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash-logo {
  font-family: var(--serif);
  font-size: 2rem;
  animation: pulse 1.5s ease-in-out infinite;
}
.splash-logo span { color: var(--accent); }

/* View transitions (multi-page) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .value-item {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 4rem 0; }
  .page-hero { padding: 8rem 0 3rem; }
}

/* =============================================================
   9. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* =============================================================
   10. Bernardo Dashboard
   ============================================================= */
.bernardo-dashboard { width: 100%; }
.bd-card {
  background: linear-gradient(180deg, #f8f6f3 0%, #efe9e0 100%);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink);
}
.bd-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.3rem; }
.bd-tag { font-size:0.6rem; font-weight:500; letter-spacing:0.1em; color:var(--ink-mute); }
.bd-badge {
  font-size:0.6rem; font-weight:600; color:var(--accent);
  background:rgba(74,42,154,0.1); padding:0.25rem 0.7rem; border-radius:12px;
}
.bd-profile { display:flex; align-items:center; gap:0.7rem; }
.bd-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; object-position:center top; border:2px solid var(--accent); }
.bd-handle { font-size:1.05rem; font-weight:700; margin:0; }
.bd-sub { font-size:0.7rem; color:var(--ink-mute); margin:0.1rem 0 0; }
.bd-divider { height:1px; background:#e0dbd4; margin:0.9rem 0; }

/* KPIs */
.bd-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:0.5rem; }
.bd-kpi-label { font-size:0.55rem; font-weight:500; letter-spacing:0.06em; color:var(--ink-mute); }
.bd-kpi-val { font-size:1.5rem; font-weight:700; display:block; line-height:1.2; }
.bd-kpi-delta { font-size:0.68rem; font-weight:600; color:#22c55e; }

/* Bars */
.bd-section-label { font-size:0.55rem; font-weight:500; letter-spacing:0.06em; color:var(--ink-mute); display:block; margin-bottom:0.6rem; }
.bd-bars { display:flex; flex-direction:column; gap:0.45rem; }
.bd-bar-row { display:grid; grid-template-columns:3.2rem 1fr auto auto; align-items:center; gap:0.5rem; }
.bd-bar-name { font-size:0.72rem; color:var(--ink-soft); }
.bd-bar-track { height:10px; border-radius:5px; background:rgba(74,42,154,0.12); overflow:hidden; }
.bd-bar-fill {
  height:100%; border-radius:5px; background:var(--accent);
  width:0; transition: width 1.2s var(--ease-out);
}
.bd-bar-fill--2 { background:var(--orchid); }
.bd-bar-fill--3 { background:var(--magenta); }
.bd-bar-fill.is-active { /* width set by JS */ }
.bd-bar-pct { font-size:0.68rem; font-weight:600; color:var(--ink-soft); min-width:2.8rem; }
.bd-bar-note { font-size:0.65rem; color:var(--ink-mute); }

/* Audience + Cards */
.bd-bottom { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:0.3rem; }
.bd-audience {}
.bd-donut-wrap { display:flex; align-items:center; gap:0.8rem; margin-top:0.5rem; }
.bd-donut { width:80px; height:80px; flex-shrink:0; }
.bd-donut-seg { transition: stroke-dasharray 1.4s var(--ease-out); }
.bd-legend { display:flex; flex-direction:column; gap:0.2rem; font-size:0.68rem; font-weight:600; }

.bd-cards { display:grid; grid-template-columns:1fr 1fr; gap:0.5rem; }
.bd-mini {
  background:rgba(255,255,255,0.7); border-radius:10px; padding:0.6rem 0.75rem;
  display:flex; flex-direction:column;
}
.bd-mini-label { font-size:0.5rem; font-weight:500; letter-spacing:0.06em; color:var(--ink-mute); }
.bd-mini-val { font-size:1.15rem; font-weight:700; margin-top:0.15rem; }

@media (max-width: 540px) {
  .bd-kpis { grid-template-columns: repeat(2, 1fr); }
  .bd-bar-row { grid-template-columns: 3rem 1fr auto; }
  .bd-bar-note { display: none; }
  .bd-bottom { grid-template-columns: 1fr; }
  .bd-cards { grid-template-columns: 1fr 1fr; }
}
