/* ============================================================
   LJA Partners — Hoja de estilos principal
   Diseño: Minimalista · Elegante · Consultora boutique
   Referencias: Teneo · Brunswick Group · Roland Berger
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --dark:         #1E1C2C;
  --dark-2:       #2C2A3C;
  --dark-3:       #3A3848;
  --beige:        #F2E6D2;
  --beige-light:  #FAF6F0;
  --beige-mid:    #EAD9C0;
  --white:        #FFFFFF;
  --text-primary: #1A1824;
  --text-mid:     #5A5768;
  --text-muted:   #9896A2;
  --warm-accent:  #8B7355;
  --border:       rgba(30, 28, 44, 0.10);
  --border-dark:  rgba(255, 255, 255, 0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --t-fast:     0.25s;
  --t-mid:      0.45s;
  --t-slow:     0.7s;

  --max-w:      1280px;
  --max-w-text: 720px;
  --nav-h:      76px;
  --section-py: clamp(72px, 10vw, 120px);
  --section-px: clamp(24px, 5vw, 80px);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

/* ── Typography scale ── */
.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.t-label--light { color: rgba(255,255,255,0.5); }
.t-label--warm  { color: var(--warm-accent); }

h1, .h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.25;
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.body-lg { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--text-mid); }
.body-md { font-size: 15px; line-height: 1.7; color: var(--text-mid); }
.body-sm { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.section { padding: var(--section-py) 0; }
.section--beige { background: var(--beige-light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--beige-mid { background: var(--beige); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn--dark:hover { background: var(--dark-2); border-color: var(--dark-2); }

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline:hover { background: var(--dark); color: var(--white); }

.btn--light {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn--light:hover { background: var(--beige); border-color: var(--beige); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-light:hover { border-color: var(--white); }

.btn--warm {
  background: var(--warm-accent);
  color: var(--white);
  border-color: var(--warm-accent);
}
.btn--warm:hover { background: #7a6247; }

.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.nav--hero    { background: transparent; border-bottom: 1px solid transparent; }
.nav--scrolled { background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.nav--dark-page { background: var(--dark); border-bottom: 1px solid var(--border-dark); }

.nav__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 58px;
  width: auto;
  display: block;
  transition: opacity var(--t-mid) var(--ease);
  opacity: 1;
}

/* Sobre fondo oscuro: mostrar SVG blanco, ocultar el oscuro */
.nav__logo-img--dark  { display: block; }
.nav__logo-img--light { display: none;  }

.nav--scrolled .nav__logo-img--dark  { display: none;  }
.nav--scrolled .nav__logo-img--light { display: block; }

/* Páginas dark sin scroll: logo blanco visible */
.nav--dark-page:not(.nav--scrolled) .nav__logo-img--dark  { display: block; }
.nav--dark-page:not(.nav--scrolled) .nav__logo-img--light { display: none;  }

/* Links en páginas dark sin scroll */
.nav--dark-page:not(.nav--scrolled) .nav__link {
  color: rgba(255, 255, 255, 0.8);
}
.nav--dark-page:not(.nav--scrolled) .nav__link:hover {
  color: var(--white);
}
.nav--dark-page:not(.nav--scrolled) .nav__link.active {
  color: var(--white);
}
.nav--dark-page:not(.nav--scrolled) .nav__cta-btn {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}
.nav--dark-page:not(.nav--scrolled) .nav__cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.nav--dark-page:not(.nav--scrolled) .nav__hamburger span {
  background: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--t-fast) var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--white); }
.nav__link.active::after { width: 100%; }

.nav--scrolled .nav__link { color: var(--text-mid); }
.nav--scrolled .nav__link:hover { color: var(--dark); }
.nav--scrolled .nav__link.active { color: var(--dark); }

.nav__cta-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 9px 22px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.nav__cta-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.nav--scrolled .nav__cta-btn {
  color: var(--dark);
  border-color: var(--dark);
}
.nav--scrolled .nav__cta-btn:hover { background: var(--dark); color: var(--white); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), width var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
  transform-origin: center;
}

.nav--scrolled .nav__hamburger span { background: var(--dark); }

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

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease);
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast) var(--ease);
}

.nav__mobile-link:hover { color: var(--white); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
  padding: var(--nav-h) 0 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
}

.hero__label {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  color: var(--white);
  max-width: 900px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--beige);
}

.hero__subtitle {
  max-width: 540px;
  color: rgba(255,255,255,0.6);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.8s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: var(--section-px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.4s forwards;
}

.hero__scroll-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  animation: lineSweep 2s var(--ease) 1.8s infinite;
}

/* ── Services section ── */
.services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-card {
  padding: 48px 36px 48px 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background var(--t-fast) var(--ease);
  cursor: default;
}

.service-card:nth-child(3n) { border-right: none; padding-right: 0; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }

.service-card:hover { background: var(--beige-light); }

.service-card__number {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--warm-accent);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ── About teaser ── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.about-teaser__image {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
}

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

.about-teaser:hover .about-teaser__image img { transform: scale(1.03); }

.about-teaser__content {
  background: var(--beige-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px);
}

.about-teaser__eyebrow { margin-bottom: 24px; }

.about-teaser__title { margin-bottom: 24px; color: var(--dark); }

.about-teaser__body { margin-bottom: 36px; }

.about-teaser__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ── Approach section ── */
.approach__header { text-align: center; max-width: 640px; margin: 0 auto 72px; }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.approach-item { text-align: left; }

.approach-item__step {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 300;
  color: var(--beige);
  line-height: 1;
  margin-bottom: 20px;
}

.approach-item__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.approach-item__desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ── Cases section ── */
.cases__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.case-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background var(--t-fast) var(--ease);
}

.case-card:hover { background: var(--beige-light); }

.case-card__sector {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-accent);
  margin-bottom: 16px;
}

.case-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.case-card__country {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CTA Banner ── */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: clamp(56px, 7vw, 96px) var(--section-px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta-banner__title { color: var(--dark); }
.cta-banner__subtitle { color: var(--text-mid); margin-top: 12px; font-size: 16px; }
.cta-banner__actions { display: flex; gap: 16px; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: clamp(56px, 6vw, 80px) 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__tagline { font-size: 14px; line-height: 1.6; max-width: 260px; }

.footer__heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast) var(--ease);
}

.footer__link:hover { color: var(--white); }

.footer__address {
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
}

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy { font-size: 12px; }

.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color var(--t-fast) var(--ease); }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--dark);
  padding-top: calc(var(--nav-h) + clamp(60px, 8vw, 100px));
  padding-bottom: clamp(60px, 8vw, 100px);
}

.page-hero__label { margin-bottom: 20px; }
.page-hero__title { color: var(--white); max-width: 760px; }
.page-hero__subtitle {
  color: rgba(255,255,255,0.55);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  max-width: 540px;
  margin-top: 20px;
}

/* ── Values section ── */
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.value-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
}

.value-card:last-child { border-right: none; }

.value-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--warm-accent);
}

.value-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}

.value-card__desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ── Team grid ── */
.team__header { margin-bottom: 64px; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.team-card { position: relative; }

.team-card__photo {
  aspect-ratio: 3/4;
  background: var(--beige);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  position: relative;
}

.team-card__initials {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-accent);
  line-height: 1.4;
}

/* ── Methodology steps ── */
.method__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.method-item {
  background: var(--white);
  padding: 48px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  transition: background var(--t-fast) var(--ease);
}

.method-item:hover { background: var(--beige-light); }

.method-item__num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--beige-mid);
  line-height: 1;
  padding-top: 4px;
}

.method-item__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}

.method-item__desc { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--warm-accent);
}

.contact-info__label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-info__value { font-size: 15px; color: var(--dark); line-height: 1.6; }

.form-field { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--dark); }

.form-textarea { resize: none; height: 100px; }

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

.form-submit { margin-top: 12px; }

/* ── Expertise grid (equipo sin nombres) ── */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.expertise-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast) var(--ease);
}

.expertise-card:hover { background: var(--beige-light); }

.expertise-card__icon {
  color: var(--warm-accent);
  margin-bottom: 20px;
}

.expertise-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.expertise-card__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-mid);
}

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

@media (max-width: 640px) {
  .expertise__grid { grid-template-columns: 1fr; }
}

/* ── Animations ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes lineSweep {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

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

.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* Divider line */
.divider {
  width: 40px;
  height: 1px;
  background: var(--warm-accent);
  margin: 24px 0;
}

.divider--white { background: rgba(255,255,255,0.3); }
.divider--centered { margin: 24px auto; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services__header { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--border); padding-right: 36px; }
  .service-card:nth-child(2n) { border-right: none; padding-right: 0; }
  .service-card:nth-last-child(-n+2) { border-bottom: none; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }

  .approach__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value-card:nth-child(2) { border-right: none; }
  .value-card:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .value-card:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-px: 24px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }

  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser__image { min-height: 320px; }
  .about-teaser__stats { grid-template-columns: repeat(3, 1fr); }

  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; padding-right: 0 !important; }
  .service-card { border-bottom: 1px solid var(--border) !important; }
  .service-card:last-child { border-bottom: none !important; }

  .cases__header { flex-direction: column; align-items: flex-start; }
  .cases__grid { grid-template-columns: 1fr; }

  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner__actions { flex-direction: column; }

  .approach__grid { grid-template-columns: 1fr; gap: 32px; }

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

  .values__grid { grid-template-columns: 1fr; }
  .value-card { border-right: none !important; border-top: 1px solid var(--border) !important; }
  .value-card:first-child { border-top: none !important; }

  .method__grid { grid-template-columns: 1fr; }
  .method-item { padding: 36px 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; }
  .about-teaser__stats { grid-template-columns: 1fr; gap: 20px; }
}
