@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f1;
  --ink: #111315;
  --muted: #33383b;
  --dark: #111315;
  --dark-2: #23272b;
  --on-dark: #f4f4f1;
  --on-dark-muted: #b4b9bd;
  --accent: #f6e016;

  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-display: clamp(2rem, 1rem + 4.4vw, 5rem);

  --m: clamp(20px, 2.4vw, 36px);
  --gap: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2 { font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
main :focus-visible { outline-color: var(--ink); }
::selection { background: var(--accent); color: var(--ink); }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 var(--m);
  background: var(--dark);
  color: var(--on-dark);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.wordmark {
  font-size: var(--step-lead);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.links { display: flex; gap: clamp(20px, 3vw, 40px); }
.links a {
  display: inline-block;
  padding: 10px 0;
  text-decoration: none;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}
.links a:hover { color: var(--accent); transform: translateY(-2px); }

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  padding: 48px 0 72px;
}
.hero-text { grid-column: 1 / span 7; }
.hero h1 { max-width: 11em; text-wrap: balance; }
.hero-years {
  max-width: 30em;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
}
.hero-years + .hero-sub { margin-top: 14px; }
.hero-sub {
  max-width: 34em;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--step-lead);
  line-height: 1.4;
  color: var(--on-dark-muted);
}

.map { grid-column: 8 / -1; display: block; width: 100%; height: auto; font-family: inherit; }
.map-ring { fill: none; stroke: var(--accent); stroke-width: 6; }
.map-tag { fill: var(--accent); }
.map-tag-text { fill: var(--ink); font-size: 22px; font-weight: 600; }
.map-link { fill: none; stroke: #4a5056; stroke-width: 5; }
.map-node { fill: var(--dark-2); }
.map-core { fill: var(--on-dark); }
.map-text { fill: var(--on-dark); font-size: 24px; font-weight: 500; }
.map-core + .map-text { fill: var(--ink); }

/* Shared section head: title left, one sentence right */
section { padding: var(--gap) var(--m); }

/* Film: continues the dark hero, edge to edge inside the page margins */
.film { padding-top: 0; padding-bottom: var(--m); background: var(--dark); }
.film-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--dark); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
}
.head h2 { grid-column: 1 / span 5; }
.head p { grid-column: 7 / -1; max-width: 30em; font-size: var(--step-lead); line-height: 1.4; }

/* Desarrollo: three columns */
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 88px);
}
.cols li { padding: 32px; background: #e7e7e3; transition: transform 220ms var(--ease); }
.cols li:hover { transform: translateY(-6px); }
.cols p { margin-top: 12px; color: var(--muted); }

/* Cuidado: dark field, rows */
.care { background: var(--dark); color: var(--on-dark); }
.care-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.care .head { grid-column: 1 / span 5; display: block; }
.care .head p { margin-top: 24px; color: var(--on-dark-muted); }
.rows { grid-column: 7 / -1; display: grid; gap: 12px; }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 24px;
  align-items: baseline;
  padding: 24px 28px;
  background: var(--dark-2);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.rows li:hover { background: var(--accent); color: var(--ink); }
.rows p { color: var(--on-dark-muted); transition: color 200ms var(--ease); }
.rows li:hover p { color: var(--ink); }

/* Método: five steps in order */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: clamp(48px, 6vw, 88px);
}
.steps li { padding-top: 20px; border-top: 6px solid var(--ink); }
.steps li:first-child { border-top-color: var(--accent); }
.steps p { margin-top: 10px; color: var(--muted); }

/* Footer */
.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(56px, 7vw, 104px) var(--m) var(--m);
  background: var(--dark);
  color: var(--on-dark);
}
.foot-mark {
  font-size: clamp(4rem, 17vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.8;
}
.foot-top { padding: 10px 0; white-space: nowrap; text-underline-offset: 5px; }
.foot-top:hover { color: var(--accent); }

/* Entrances. Content stays visible when the script does not run. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .cols li.in:hover { transform: translateY(-6px); transition-delay: 0ms; }

@media (max-width: 1023px) {
  .hero-text { grid-column: 1 / -1; }
  .map { grid-column: 1 / -1; max-width: 520px; margin-top: 48px; }
  .care .head, .rows { grid-column: 1 / -1; }
  .rows { margin-top: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 759px) {
  .links { gap: 16px; }
  .hero-grid { padding: 32px 0 56px; }
  .head { display: block; }
  .head p { margin-top: 20px; }
  .cols { grid-template-columns: 1fr; gap: 12px; }
  .cols li { padding: 24px; }
  .rows li { display: block; padding: 22px 20px; }
  .rows p { margin-top: 8px; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .foot { display: block; }
  .foot-mark { font-size: 22vw; }
  .foot-top { display: inline-block; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .links a, .cols li, .rows li, .rows p { transition: none; }
}

/* Actions */
.btn {
  display: inline-block;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3.4vw, 44px);
}
.quote { font-weight: 600; }
.links .book { color: var(--accent); }

/* Inner pages: a short dark head instead of the full-height hero */
.hero-page { min-height: 0; }
.page-title { padding: clamp(56px, 9vw, 136px) 0 clamp(56px, 7vw, 104px); }
.page-title h1 { max-width: 14em; text-wrap: balance; }
.page-title .hero-sub { max-width: 36em; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols a { text-underline-offset: 5px; }
.role { margin-top: 6px; font-weight: 600; color: var(--ink); }
.note {
  max-width: 44em;
  margin-top: clamp(40px, 5vw, 72px);
  padding: 28px 32px;
  background: var(--accent);
  font-size: var(--step-lead);
  line-height: 1.4;
}

/* Book a call */
.cta { background: var(--accent); }
.cta .mail, .contact-alt a { text-underline-offset: 5px; }
.cal { min-height: 720px; margin-top: clamp(40px, 5vw, 72px); background: #e7e7e3; }
.contact-alt { margin-top: 24px; }

/* Footer links */
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
.foot-nav a { display: inline-block; padding: 10px 0; text-underline-offset: 5px; }
.foot-nav a:hover { color: var(--accent); }

@media (max-width: 759px) {
  .topbar { flex-wrap: wrap; row-gap: 0; padding: 16px 0; }
  .cols.two { grid-template-columns: 1fr; }
  .note { padding: 22px 20px; }
  .foot-side { align-items: flex-start; margin-top: 28px; }
  .foot-nav { justify-content: flex-start; }
  .foot-side .foot-top { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Why now: dark cards on the light ground, so it does not read as Build */
.era .cols li { background: var(--dark); color: var(--on-dark); }
.era .cols p { color: var(--on-dark-muted); }
.era .head h2 { grid-column: 1 / span 6; }
.actions .more { font-weight: 600; text-underline-offset: 5px; }

/* Footer: what we do, who we are, what we work on, then the mark */
.foot { display: block; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
  padding-bottom: clamp(56px, 7vw, 104px);
}
.foot-h { font-size: var(--step-body); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--accent); }
.foot-grid ul { display: grid; gap: 6px; margin-top: 14px; color: var(--on-dark-muted); }
.foot-grid a { display: inline-block; padding: 4px 0; color: var(--on-dark); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-base {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}
.foot-base p { max-width: 52em; }
.foot-base .foot-top { color: var(--on-dark); }

@media (max-width: 1023px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-base { display: block; }
  .foot-base .foot-top { margin-top: 20px; }
}
