/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* brand palette */
  --carbon:    #0B0B0B;
  --ivory:     #FBF6EC;
  --bone:      #EDE8DE;
  --smoke:     #9A9A9A;
  --terra:     #C75A3E;
  --terra-dim: rgba(199, 90, 62, 0.14);
  --terra-mid: rgba(199, 90, 62, 0.35);

  /* on-dark tokens */
  --d-fg:      #FBF6EC;
  --d-muted:   rgba(251,246,236,0.52);
  --d-border:  rgba(251,246,236,0.10);
  --d-card:    rgba(251,246,236,0.05);
  --d-card-h:  rgba(251,246,236,0.09);

  /* on-light tokens */
  --l-fg:      #0B0B0B;
  --l-muted:   rgba(11,11,11,0.50);
  --l-border:  rgba(11,11,11,0.10);
  --l-card:    #FFFFFF;
  --l-card-h:  #F5F1E7;

  /* type */
  --display: 'Big Shoulders Display', sans-serif;
  --body:    'Inter', sans-serif;

  /* scale */
  --hero:   clamp(3.8rem, 10vw, 8.5rem);
  --h1:     clamp(2.5rem, 6vw,  5rem);
  --h2:     clamp(1.8rem, 3.5vw, 3rem);
  --h3:     clamp(1.2rem, 2vw,  1.6rem);
  --base:   1rem;
  --sm:     0.875rem;
  --xs:     0.75rem;

  /* spacing */
  --sec:    clamp(5rem, 10vw, 8rem);
  --g6:     1.5rem;
  --g12:    3rem;

  color-scheme: dark;
}

/* ─── RESET + BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html {
  scroll-behavior: smooth;
  background: var(--carbon);
}
body {
  font-family: var(--body);
  font-size: var(--base);
  line-height: 1.6;
  background: var(--carbon);
  color: var(--d-fg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { cursor: pointer; font-family: inherit; border: none; background: none }

/* ─── SAFE-AREA HEADER BAND ─────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--carbon);
  z-index: 100;
}

/* ─── CONTAINER ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.wrap--wide { max-width: 1380px }

/* ─── HEADER ────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 90;
  background: rgba(11,11,11,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--d-border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
  padding-left:  max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  max-width: 1380px;
  margin: 0 auto;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1;
}
.logo__mark { width: 36px; height: 34px; flex-shrink: 0 }
.logo__text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--ivory);
}
.logo__text span { display: block; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--smoke) }

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  list-style: none;
}
.nav a {
  font-size: var(--sm);
  font-weight: 500;
  color: var(--d-muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--d-fg) }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--body);
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55em 1.3em;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--terra);
  color: var(--ivory);
}
.btn--primary:hover { background: #B84F36; transform: translateY(-1px) }
.btn--ghost {
  background: transparent;
  color: var(--d-fg);
  border: 1px solid var(--d-border);
}
.btn--ghost:hover { border-color: rgba(251,246,236,0.30); background: var(--d-card) }
.btn--ghost-l {
  background: transparent;
  color: var(--l-fg);
  border: 1px solid var(--l-border);
}
.btn--ghost-l:hover { background: rgba(11,11,11,0.06) }

/* nav toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--d-fg); border-radius: 2px }

/* ─── HERO VARIANT SWITCHER ─────────────────────────────────── */
.hero-switcher {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--carbon);
  border-bottom: 1px solid var(--d-border);
}
.hero-tab {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-muted);
  padding: 0.35em 1em;
  border-radius: 2px;
  border: 1px solid var(--d-border);
  transition: all 0.2s;
}
.hero-tab.active {
  background: var(--terra);
  color: var(--ivory);
  border-color: var(--terra);
}
.hero-section:not(.active) { display: none !important }

/* ─── HERO A — TYPOGRAPHIC ──────────────────────────────────── */
.hero-a {
  background: var(--carbon);
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-a__left {
  padding: var(--sec) max(24px, env(safe-area-inset-left, 0px)) var(--sec) max(48px, env(safe-area-inset-left, 0px));
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.hero-a__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 2rem;
}
.hero-a__eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terra);
}
.hero-a__h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--hero);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-wrap: balance;
  margin-bottom: 1.8rem;
}
.hero-a__h1 em {
  font-style: italic;
  color: var(--terra);
}
.hero-a__sub {
  font-size: var(--text-lg, 1.125rem);
  color: var(--d-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero-a__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-a__meta {
  margin-top: 4rem;
  display: flex;
  gap: 2.5rem;
}
.hero-a__stat { }
.hero-a__stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ivory);
  line-height: 1;
}
.hero-a__stat span {
  font-size: var(--xs);
  color: var(--d-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* right column: node graph */
.hero-a__right {
  position: relative;
  height: 100%;
  min-height: 92vh;
  overflow: hidden;
}
.hero-a__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* decorative line across full hero */
.hero-a__rule {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--d-border);
}

/* ─── HERO B — SPLIT ────────────────────────────────────────── */
.hero-b {
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 92vh;
  overflow: hidden;
  background: var(--carbon);
}
.hero-b__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
    rgba(11,11,11,0.88) 0%,
    rgba(11,11,11,0.78) 30%,
    rgba(11,11,11,0.40) 55%,
    transparent 70%);
  pointer-events: none;
}
.hero-b__left {
  background: transparent;
  padding: var(--sec) clamp(2rem, 5vw, 5rem) var(--sec) max(48px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-b__h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--h1);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 1.8rem;
  text-wrap: balance;
}
.hero-b__h1 strong {
  display: block;
  font-size: calc(var(--h1) * 1.3);
}
.hero-b__sub {
  font-size: var(--sm);
  color: var(--d-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-b__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.hero-b__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--sm);
  color: var(--d-muted);
}
.hero-b__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}
.hero-b__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ─── HERO NODES ────────────────────────────────────────────── */
.hero-node {
  cursor: pointer;
}
.hero-node__dot {
  transition: fill 0.25s ease, filter 0.25s ease;
}
.hero-node:hover .hero-node__dot {
  fill: #C75A3E;
  filter: drop-shadow(0 0 14px rgba(199,90,62,0.70));
}
.node-tooltip {
  position: absolute;
  background: var(--carbon);
  color: var(--ivory);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.38em 0.9em;
  border: 1px solid var(--terra);
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.node-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TICKER ────────────────────────────────────────────────── */
.ticker {
  background: var(--ivory);
  padding: 1.2rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--l-border);
}
.ticker__track {
  display: flex;
  gap: 4rem;
  animation: ticker-scroll 22s linear infinite;
  width: max-content;
}
.ticker__track:hover { animation-play-state: paused }
.ticker__item {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.ticker__item::after {
  content: "·";
  color: var(--terra);
  font-size: 1.2rem;
}
@keyframes ticker-scroll {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* ─── SECTION BASE ──────────────────────────────────────────── */
.section { padding-block: var(--sec) }
.section--light {
  background: var(--ivory);
  color: var(--l-fg);
}
.section--dark { background: var(--carbon) }
.section--bone { background: var(--bone) }

/* section label */
.sec-label {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.sec-label::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--terra);
  display: block;
}

/* section header */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.sec-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.sec-head--center .sec-label { justify-content: center }
.sec-head--center .sec-label::before { display: none }
.sec-h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--h2);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sec-h2--dark  { color: rgba(251,246,236,0.78) }
.sec-h2--light { color: var(--l-fg) }
.sec-desc { font-size: var(--sm); line-height: 1.75; max-width: 440px }
.sec-desc--dark  { color: var(--d-muted) }
.sec-desc--light { color: var(--l-muted) }

/* ─── PROPUESTA DE VALOR ─────────────────────────────────────── */
.valor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.valor__problem {
  padding: 2.5rem;
  background: var(--bone);
  border-radius: 4px;
  border-left: 3px solid var(--terra);
}
.valor__problem h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--l-fg);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.valor__problem p { font-size: var(--sm); color: var(--l-muted); line-height: 1.75 }
.valor__solution { }
.valor__solution h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  color: var(--l-fg);
  margin-bottom: 1.2rem;
}
.valor__solution p { font-size: var(--sm); color: var(--l-muted); line-height: 1.75; margin-bottom: 1.5rem }
.valor__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 2px;
  background: var(--terra-dim);
  color: var(--terra);
  border: 1px solid var(--terra-mid);
}

/* ─── SOLUCIONES ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--d-border);
  border: 1px solid var(--d-border);
}
.service-card {
  background: var(--carbon);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card:hover { background: var(--d-card-h) }
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--terra-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--terra-mid);
}
.service-card__icon svg { width: 22px; height: 22px }
.service-card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: rgba(251,246,236,0.04);
  user-select: none;
}
.service-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: rgba(251,246,236,0.78);
  line-height: 1.1;
}
.service-card__desc {
  font-size: var(--sm);
  color: var(--d-muted);
  line-height: 1.7;
  flex: 1;
}
.service-card__link {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.5rem;
  transition: gap 0.2s;
}
.service-card:hover .service-card__link { gap: 0.7em }

/* ─── PROCESO ────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--l-border);
  z-index: 0;
}
.process-step {
  padding: 0 1.5rem 0 0;
  position: relative;
  z-index: 1;
}
.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--terra);
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--terra);
  margin-bottom: 1.5rem;
}
.process-step__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--l-fg);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.process-step__desc {
  font-size: var(--sm);
  color: var(--l-muted);
  line-height: 1.7;
}

/* ─── PROYECTOS ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.project-card:hover {
  border-color: rgba(251,246,236,0.22);
  transform: translateY(-3px);
}
.project-card__thumb {
  aspect-ratio: 16/9;
  background: var(--d-card);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--d-border);
}
.project-card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1 }
.project-card__cat {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
}
.project-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  color: rgba(251,246,236,0.78);
  line-height: 1.1;
}
.project-card__desc {
  font-size: var(--sm);
  color: var(--d-muted);
  line-height: 1.7;
  flex: 1;
}
.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--d-border);
}
.project-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--d-card);
  border: 1px solid var(--d-border);
  color: var(--d-muted);
  padding: 0.2em 0.7em;
  border-radius: 2px;
}
.project-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--d-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--d-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.project-card:hover .project-card__arrow {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--ivory);
}

/* ─── EQUIPO ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.team-card {
  background: var(--l-card);
  border: 1px solid var(--l-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s;
}
.team-card:hover { transform: translateY(-3px) }
.team-card__avatar {
  aspect-ratio: 1;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--l-border);
  position: relative;
  overflow: hidden;
}
.team-card__body { padding: 1.25rem }
.team-card__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--l-fg);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.team-card__role {
  font-size: var(--xs);
  color: var(--terra);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.team-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--bone);
  border-radius: 4px;
  border: 1px solid var(--l-border);
}
.team-cta p { font-size: var(--sm); color: var(--l-muted); max-width: 420px; margin: 0 auto 1.5rem; line-height: 1.7 }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--d-border);
  border: 1px solid var(--d-border);
}
.faq-item {
  background: var(--carbon);
  padding: 0;
  border: none;
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--sm);
  color: var(--ivory);
  transition: background 0.2s;
  user-select: none;
}
.faq-item summary:hover { background: var(--d-card) }
.faq-item summary::-webkit-details-marker { display: none }
.faq-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--d-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--terra);
  transition: transform 0.3s;
}
details[open] .faq-icon { transform: rotate(45deg) }
.faq-answer {
  padding: 0 2rem 1.5rem;
  font-size: var(--sm);
  color: var(--d-muted);
  line-height: 1.75;
}

/* ─── CTA FINAL ──────────────────────────────────────────────── */
.cta-final {
  background: var(--carbon);
  padding-block: var(--sec);
  border-top: 1px solid var(--d-border);
  position: relative;
  overflow: hidden;
}
.cta-final__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terra);
}
.cta-final__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cta-final__copy h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  color: rgba(251,246,236,0.78);
  margin-bottom: 1.2rem;
}
.cta-final__copy p { font-size: var(--sm); color: var(--d-muted); line-height: 1.75; max-width: 400px }
/* form */
.contact-form { display: flex; flex-direction: column; gap: 1rem }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
.form-group { display: flex; flex-direction: column; gap: 0.4rem }
label {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-muted);
}
input, select, textarea {
  font-family: var(--body);
  font-size: var(--sm);
  padding: 0.75em 1em;
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 2px;
  color: var(--ivory);
  transition: border-color 0.2s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(251,246,236,0.28) }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terra);
}
select { appearance: none; cursor: pointer }
select option { background: var(--carbon); color: var(--ivory) }
textarea { resize: vertical; min-height: 100px }
.form-submit { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem }
.form-legal {
  font-size: 0.7rem;
  color: rgba(251,246,236,0.32);
  line-height: 1.6;
}
.form-success {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--terra-mid);
  border-radius: 4px;
  background: var(--terra-dim);
  color: var(--ivory);
  font-size: var(--sm);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: #060606;
  border-top: 1px solid var(--d-border);
  padding-block: 3rem 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--d-border);
  margin-bottom: 2rem;
}
.footer__brand p {
  font-size: var(--sm);
  color: var(--d-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 1rem;
}
.footer__col h4 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none }
.footer__col li { margin-bottom: 0.6rem }
.footer__col a {
  font-size: var(--sm);
  color: var(--d-muted);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--ivory) }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--xs);
  color: rgba(251,246,236,0.30);
}
.footer__copy a { color: rgba(251,246,236,0.30); transition: color 0.2s }
.footer__copy a:hover { color: var(--terra) }
.footer__made {
  font-size: var(--xs);
  color: rgba(251,246,236,0.22);
}

/* ─── SHARED UTILS ───────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0 }

/* ─── MOBILE NAV ─────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.97);
  z-index: 80;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.mobile-nav.open { display: flex }
.mobile-nav a {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--ivory);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--terra) }
.mobile-nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--d-muted);
  padding: 0.5rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-a { grid-template-columns: 1fr; min-height: auto }
  .hero-a__left { padding: 4rem max(24px, env(safe-area-inset-left, 0px)); max-width: 100% }
  .hero-a__right { display: none }
  .hero-b { grid-template-columns: 1fr }
  .hero-b__fade { background: linear-gradient(to right, rgba(11,11,11,0.97) 0%, rgba(11,11,11,0.90) 60%, rgba(11,11,11,0.65) 100%) }
  .services-grid { grid-template-columns: repeat(2, 1fr) }
  .projects-grid { grid-template-columns: repeat(2, 1fr) }
  .team-grid { grid-template-columns: repeat(2, 1fr) }
  .footer__top { grid-template-columns: 1fr 1fr }
  .cta-final__inner { grid-template-columns: 1fr }
}
@media (max-width: 768px) {
  .nav { display: none }
  .btn--header { display: none }
  .nav-toggle { display: flex }
  .hero-a__meta { gap: 1.5rem }
  .valor { grid-template-columns: 1fr }
  .sec-head { grid-template-columns: 1fr }
  .process-steps { grid-template-columns: 1fr; gap: 2rem }
  .process-steps::before { display: none }
  .services-grid { grid-template-columns: 1fr }
  .projects-grid { grid-template-columns: 1fr }
  .faq-grid { grid-template-columns: 1fr }
  .team-grid { grid-template-columns: 1fr 1fr }
  .footer__top { grid-template-columns: 1fr }
  .form-row { grid-template-columns: 1fr }
  .hero-a__actions { flex-direction: column; align-items: flex-start }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important }
}

/* ─── LEGAL PAGES ────────────────────────────────────────────── */
.legal-hero {
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--d-border);
  position: relative;
  overflow: hidden;
}
.legal-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terra-dim) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--h1);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.legal-hero h1 em { font-style: normal; color: var(--terra) }
.legal-hero__lead {
  font-size: var(--base);
  color: var(--d-muted);
  max-width: 620px;
  line-height: 1.75;
}
.legal-hero__date {
  margin-top: 2rem;
  font-size: var(--xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  font-size: var(--sm);
}
.legal-toc h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-muted);
  margin-bottom: 1rem;
}
.legal-toc ol { list-style: none; counter-reset: toc; border-left: 1px solid var(--l-border) }
.legal-toc li { counter-increment: toc }
.legal-toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--l-muted);
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--terra); font-weight: 600 }
.legal-toc a:hover { color: var(--l-fg); border-left-color: var(--terra) }

.legal-body { max-width: 760px; color: rgba(11,11,11,0.78); font-size: 0.95rem; line-height: 1.8 }
.legal-body section { scroll-margin-top: 100px; padding-bottom: 2.75rem; margin-bottom: 2.75rem; border-bottom: 1px solid var(--l-border) }
.legal-body section:last-child { border-bottom: 0; margin-bottom: 0 }
.legal-body h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--h3);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--l-fg);
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.6em;
}
.legal-body h2 span { color: var(--terra) }
.legal-body h3 { font-size: var(--base); font-weight: 600; color: var(--l-fg); margin: 1.5rem 0 0.5rem }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 0.9rem }
.legal-body ul { padding-left: 1.2rem }
.legal-body li { margin-bottom: 0.4rem }
.legal-body li::marker { color: var(--terra) }
.legal-card + p, .legal-table-wrap + p { margin-top: 1.25rem }
.legal-body strong { color: var(--l-fg); font-weight: 600 }
.legal-body a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px }

.legal-card {
  background: var(--l-card);
  border: 1px solid var(--l-border);
  border-left: 3px solid var(--terra);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}
.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem }
.legal-card dt { font-size: var(--xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--l-muted); padding-top: 0.2em }
.legal-card dd { color: var(--l-fg) }

.legal-table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--l-border); background: var(--l-card) }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--sm); line-height: 1.55; min-width: 560px }
.legal-table th {
  text-align: left;
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-muted);
  background: var(--l-card-h);
  padding: 0.8rem 1rem;
}
.legal-table td { padding: 0.9rem 1rem; border-top: 1px solid var(--l-border); vertical-align: top }
.legal-table td:first-child { color: var(--l-fg); font-weight: 500 }

.legal-pending {
  background: rgba(199, 90, 62, 0.16);
  color: #9E3F27;
  font-weight: 600;
  padding: 0 0.3em;
  border-radius: 2px;
}

/* form consent checkbox */
.form-check { display: flex; align-items: flex-start; gap: 0.7rem }
.form-check input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15rem; padding: 0; accent-color: var(--terra); cursor: pointer }
.form-check label {
  font-size: var(--xs);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--d-muted);
  cursor: pointer;
}
.form-check a { color: var(--ivory); text-decoration: underline; text-underline-offset: 2px }
.form-check.is-error label { color: var(--terra) }

@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem }
  .legal-toc { position: static }
}
@media (max-width: 768px) {
  .legal-card dl { grid-template-columns: 1fr; gap: 0.1rem }
  .legal-card dd { margin-bottom: 0.6rem }
}
