/* =========================================================
   CódigoSpain — Home
   Brand: cream #FCF8F2 · navy #0A1E2B · terracotta #D06A46
   Type: Mona Sans (variable: wght 200–900, wdth 75–125)
   ========================================================= */

:root {
  --cream: #FCF8F2;
  --cream-2: #F5EEE4;
  --sand: #EADFD0;
  --navy: #0A1E2B;
  --navy-2: #102838;
  --navy-3: #1C3B4F;
  --terra: #D06A46;
  --terra-2: #B9542F;
  --terra-3: #E68B69;
  --steel: #8FA3B1;

  --ink: var(--navy);
  --ink-soft: rgba(10, 30, 43, .66);
  --ink-faint: rgba(10, 30, 43, .14);
  --paper-soft: rgba(252, 248, 242, .7);
  --paper-faint: rgba(252, 248, 242, .16);

  --pad: clamp(20px, 4.2vw, 72px);
  --maxw: 1680px;
  --nav-h: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --f: "Mona Sans", "Helvetica Neue", Arial, sans-serif;

  /* fluid type */
  --t-hero: clamp(3.1rem, 10.4vw, 11.6rem);
  --t-xl: clamp(2.4rem, 6.2vw, 6.9rem);
  --t-l: clamp(2rem, 4.4vw, 4.6rem);
  --t-m: clamp(1.6rem, 3vw, 3rem);
  --t-lead: clamp(1.15rem, 1.55vw, 1.55rem);
  --t-body: clamp(1rem, 1.05vw, 1.125rem);
  --t-small: .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--terra); color: var(--cream); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- headline system ---------- */
.h-xl, .h-l, .h-m, .hero__title, .index__title, .contact__title, .founder__name {
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -.035em;
  line-height: .95;
  text-wrap: balance;
}
.h-xl { font-size: var(--t-xl); }
.h-l  { font-size: var(--t-l); line-height: 1; }
.h-m  { font-size: var(--t-m); line-height: 1.02; }
.h-xl em, .h-l em, .index__title em, .contact__title em { color: var(--terra); }

/* line-mask helper produced by SplitText */
.split-line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* lead lines that sit above a headline: sentence-case, quiet, italic — never a tag */
.approach__kicker, .how__kicker, .perspective__kicker, .founder__role {
  font-size: var(--t-lead);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--terra);
  margin-bottom: 1.1rem;
}

/* ---------- buttons: one system — solid or outline, colour shift + arrow nudge on hover ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .85rem;
  padding: 1.05rem 1.35rem 1.05rem 1.45rem;
  font-size: 1rem; font-weight: 560; font-stretch: 108%; letter-spacing: -.005em; line-height: 1.1;
  color: var(--cream); background: var(--terra);
  border: 1px solid var(--terra);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn i {
  flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s ease;
}
.btn:hover { background: var(--terra-2); border-color: var(--terra-2); }
.btn:hover i { transform: translateX(3px); }
.btn--big { font-size: 1.1rem; padding: 1.3rem 1.6rem 1.3rem 1.75rem; }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(10, 30, 43, .35); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--light { color: var(--cream); border-color: rgba(252, 248, 242, .4); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 2.2rem;
  background: var(--navy);
  color: var(--cream);
}
.loader__mark { width: clamp(84px, 9vw, 120px); overflow: visible; }
/* growable mark (loader + bridge): solid revealed by a mask stroke drawn along its centre line */
.gm { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gf { fill: var(--terra); }
.ol { fill: none; stroke: rgba(252, 248, 242, .75); stroke-width: .3; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; }
.cx { fill: none; stroke: rgba(252, 248, 242, .34); stroke-width: .2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cx--c { stroke: var(--terra-3); }
.tip { stroke: var(--cream); stroke-width: .5; stroke-linecap: round; opacity: 0; }
.loader__line { display: flex; gap: .45em; font-size: 1rem; font-stretch: 110%; letter-spacing: -.01em; overflow: hidden; }
.loader__line span { display: block; opacity: 0; transform: translateY(40%); filter: blur(6px); }
.loader__line span:last-child { color: var(--terra-3); }
.no-js .loader, .reduced .loader { display: none; }

/* ---------- grain + progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 81; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--terra); transform: scaleX(0); transform-origin: left; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--pad);
  color: var(--cream);
  transition: color .5s var(--ease), background-color .5s var(--ease), transform .7s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 30, 43, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--paper-faint); }
.nav[data-theme="light"] { color: var(--navy); }
.nav[data-theme="light"].is-scrolled { background: rgba(252, 248, 242, .84); border-bottom-color: var(--ink-faint); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand { display: block; flex: none; }
.logo { display: block; height: 34px; width: auto; overflow: visible; }
.logo .w { fill: currentColor; }
.logo .m { fill: var(--terra); }

.nav__links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); margin-left: auto; }
.nav__links a {
  position: relative; font-size: .95rem; font-weight: 500; font-stretch: 106%;
  padding: .4rem 0; opacity: .82; transition: opacity .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--terra); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .95rem; font-weight: 560; font-stretch: 108%;
  padding: .75rem 1rem .75rem 1.15rem;
  border: 1px solid currentColor;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.nav__cta i { width: 8px; height: 8px; background: var(--terra); transition: background .25s ease; }
.nav__cta:hover { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.nav__cta:hover i { background: var(--cream); }

.nav__toggle { display: none; align-items: center; gap: .8rem; margin-left: auto; font-weight: 560; font-stretch: 108%; }
.nav__burger { position: relative; width: 26px; height: 12px; }
.nav__burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.nav__burger i:first-child { top: 0; }
.nav__burger i:last-child { top: 10px; }
.menu-open .nav__burger i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 5px; transform: rotate(-45deg); }
.menu-open .nav { color: var(--cream); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 79;
  background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 6vh) var(--pad) 2rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__inner { display: flex; flex-direction: column; }
.menu__inner a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(2.4rem, 11vw, 4.5rem); font-weight: 500; font-stretch: 115%;
  letter-spacing: -.04em; line-height: 1.08;
  border-bottom: 1px solid var(--paper-faint); padding: .6rem 0;
}
.menu__inner em { font-size: .9rem; letter-spacing: 0; color: var(--terra-3); font-stretch: 100%; transform: translateY(-1.6em); }
.menu__foot { color: var(--paper-soft); font-size: .95rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  color: var(--cream);
  background: var(--navy);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.12); transform-origin: 60% 40%; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 30, 43, .55) 0%, rgba(10, 30, 43, 0) 26%),
    linear-gradient(90deg, rgba(10, 30, 43, .82) 0%, rgba(10, 30, 43, .45) 48%, rgba(10, 30, 43, .1) 100%),
    linear-gradient(0deg, rgba(10, 30, 43, .92) 0%, rgba(10, 30, 43, 0) 46%);
}
.hero__content {
  position: relative; z-index: 2;
  align-self: end;
  padding: calc(var(--nav-h) + 4vh) var(--pad) clamp(1.6rem, 4vh, 3rem);
  max-width: var(--maxw); width: 100%; margin: 0 auto;
}
.hero__title { font-size: var(--t-hero); line-height: .9; letter-spacing: -.045em; font-weight: 520; }
.hl { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.hl__in { display: block; will-change: transform; }
.hl--terra { color: var(--terra); }
.stretch, [data-stretch] { --w: 112; font-stretch: calc(var(--w) * 1%); display: inline-block; }

.hero__bar {
  position: relative; z-index: 2;
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 0 var(--pad) clamp(1.6rem, 4.2vh, 2.8rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) auto; gap: clamp(1.2rem, 3vw, 3.5rem);
  align-items: end;
}
.hero__bar::before {
  content: ""; position: absolute; top: -1.6rem; left: var(--pad); right: var(--pad); height: 1px;
  background: var(--paper-faint); transform-origin: left; transform: scaleX(var(--line, 1));
}
.hero__for { font-size: var(--t-lead); font-weight: 500; font-stretch: 108%; line-height: 1.2; max-width: 16ch; letter-spacing: -.01em; }
.hero__lead { font-size: var(--t-lead); line-height: 1.38; color: var(--paper-soft); max-width: 42ch; }
.hero__scroll {
  position: absolute; z-index: 3; right: var(--pad); top: 50%;
  width: 1px; height: 84px; background: var(--paper-faint); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 36%; background: var(--terra); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(290%); } }

/* ---------- index / toc ---------- */
.index { position: relative; padding: clamp(6rem, 13vw, 12rem) 0 clamp(5rem, 10vw, 9rem); background: var(--cream); z-index: 2; }
.index__head { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
.index__title { font-size: var(--t-xl); max-width: 17ch; }

.toc { counter-reset: toc; border-top: 1px solid var(--ink-faint); }
.toc li { border-bottom: 1px solid var(--ink-faint); position: relative; }
.toc li::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.toc li:hover::before { transform: scaleX(1); }
.toc a {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1fr) 3rem;
  align-items: center; gap: 1.5rem;
  padding: clamp(1.1rem, 2.1vw, 2rem) 0;
}
.toc__n { font-size: .95rem; font-weight: 500; color: var(--terra); font-variant-numeric: tabular-nums; }
.toc__t {
  --w: 100;
  font-size: clamp(1.75rem, 4.2vw, 4.4rem);
  font-weight: 480; font-stretch: calc(var(--w) * 1%);
  letter-spacing: -.035em; line-height: 1;
  transition: font-stretch .8s var(--ease), color .4s, transform .8s var(--ease);
}
.toc__d { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; max-width: 38ch; transition: color .4s; }
.toc__a { justify-self: end; width: 2.6rem; height: 2.6rem; position: relative; border: 1px solid var(--ink-faint); transition: background-color .25s ease, border-color .25s ease; }
.toc__a::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: background .25s ease;
}
.toc a:hover .toc__t { font-stretch: 125%; color: var(--terra-2); transform: translateX(.6rem); }
.toc a:hover .toc__d { color: var(--ink); }
.toc a:hover .toc__a { background: var(--terra); border-color: var(--terra); }
.toc a:hover .toc__a::before { background: var(--cream); }

.peek {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(220px, 19vw, 320px); aspect-ratio: 4 / 5;
}
.peek__in { width: 100%; height: 100%; overflow: hidden; clip-path: inset(50% 50% 50% 50%); }
.peek__in img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }

/* ---------- approach ---------- */
.approach { background: var(--cream); padding: clamp(5rem, 10vw, 9rem) 0 0; position: relative; }
.approach__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.approach__head .approach__kicker { grid-column: 1 / -1; }
.approach__intro { font-size: var(--t-lead); line-height: 1.4; color: var(--ink-soft); max-width: 34ch; justify-self: end; }

.ways { display: grid; grid-template-columns: 1fr 1fr; }
.way { position: relative; display: flex; flex-direction: column; }
.way--nl { background: #E9EDEF; color: var(--navy); }
.way--es { background: var(--terra); color: var(--cream); }
.way__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3.2; }
.way__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.way--nl .way__img img { filter: saturate(.85); }
.way__body { padding: clamp(2rem, 4vw, 4.2rem) clamp(1.4rem, 4vw, 4.2rem) clamp(3rem, 6vw, 6rem); flex: 1; }
.way__country { font-size: var(--t-lead); font-weight: 500; font-stretch: 108%; letter-spacing: -.01em; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.way__country::before { content: ""; width: 26px; height: 26px; flex: none; background: currentColor; -webkit-mask: var(--half) center/contain no-repeat; mask: var(--half) center/contain no-repeat; }
.way--nl .way__country::before { --half: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 50'%3E%3Cpath d='M0 0a25 25 0 0 1 0 50V36a11 11 0 0 0 0-22z'/%3E%3C/svg%3E"); color: var(--navy); width: 13px; }
.way--es .way__country::before { --half: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 50'%3E%3Cpath d='M26 0a25 25 0 0 0 0 50V36a11 11 0 0 1 0-22z'/%3E%3C/svg%3E"); color: var(--cream); width: 13px; }
.way__claim { font-size: var(--t-l); font-weight: 500; font-stretch: 112%; letter-spacing: -.035em; line-height: .98; margin-bottom: 1.6rem; max-width: 12ch; }
.way__text { font-size: var(--t-lead); line-height: 1.42; max-width: 36ch; margin-bottom: 2.4rem; opacity: .86; }
.way__list li { display: flex; align-items: baseline; gap: 1rem; padding: .95rem 0; border-top: 1px solid currentColor; border-color: rgba(10, 30, 43, .16); font-size: 1.06rem; font-weight: 500; }
.way--es .way__list li { border-color: rgba(252, 248, 242, .3); }
.way__list li::before { content: counter(li, decimal-leading-zero); counter-increment: li; font-size: .8rem; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.way__list { counter-reset: li; }

/* ---------- bridge ---------- */
.bridge { position: relative; background: var(--navy); color: var(--cream); }
.bridge__stage {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem;
  max-width: var(--maxw); margin: 0 auto;
}
.bridge__mark { position: relative; width: min(100%, 78vh); justify-self: center; }
.bmark { display: block; width: 100%; overflow: visible; }
.bmark .cx { stroke-dashoffset: 0; }
.bridge__tag { position: absolute; font-size: clamp(.95rem, 1.2vw, 1.15rem); font-weight: 500; font-stretch: 108%; white-space: nowrap; }
.bridge__tag::before { content: ""; display: inline-block; width: 2.4rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .7rem; opacity: .5; }
.bridge__tag--nl { right: 76%; top: 18%; }
.bridge__tag--nl::before { display: none; }
.bridge__tag--nl::after { content: ""; display: inline-block; width: 2.4rem; height: 1px; background: currentColor; vertical-align: middle; margin-left: .7rem; opacity: .5; }
.bridge__tag--es { left: 76%; top: 76%; }
.bridge__statement {
  font-size: clamp(1.9rem, 3.5vw, 3.6rem); font-weight: 480; font-stretch: 110%;
  letter-spacing: -.03em; line-height: 1.08; margin-bottom: 2.6rem; text-wrap: balance;
}
.bridge__statement .w { color: rgba(252, 248, 242, .16); transition: none; }

/* ---------- ground ---------- */
.ground { background: var(--cream); padding: clamp(6rem, 12vw, 11rem) 0 0; overflow: hidden; }
.ground__title { max-width: 14ch; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.ground__window { position: relative; height: 100vh; height: 100svh; max-height: 980px; }
.ground__img { position: absolute; inset: 0; overflow: hidden; clip-path: inset(14% 22% 14% 22%); will-change: clip-path; }
.ground__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); will-change: transform; }
.ground__cap {
  position: absolute; left: var(--pad); bottom: 1.6rem; z-index: 2; color: var(--cream);
  display: flex; gap: 1rem; font-size: .95rem; font-weight: 500;
}
.ground__cap span { color: var(--paper-soft); font-weight: 400; }
.ground__foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: end; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.ground__text { font-size: clamp(1.4rem, 2.3vw, 2.25rem); font-weight: 450; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.22; max-width: 30ch; }
.ground__links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }

.pillars { border-top: 1px solid var(--ink-faint); padding: clamp(1rem, 2vw, 2rem) 0 clamp(4rem, 8vw, 8rem); }
.pillar {
  --w: 75;
  font-size: clamp(2.6rem, 7.6vw, 9.2rem);
  font-weight: 560; font-stretch: calc(var(--w) * 1%);
  letter-spacing: -.045em; line-height: .96;
  padding: 0 var(--pad);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--navy);
}
.pillar.is-on { color: var(--navy); -webkit-text-stroke: 0; }
.pillar:nth-child(2) { text-align: center; }
.pillar:nth-child(3) { text-align: right; }

/* ---------- services ---------- */
.services { background: var(--cream-2); padding: clamp(6rem, 12vw, 11rem) 0 0; position: relative; }
.services__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.services__head .h-xl { max-width: 20ch; grid-column: 1 / -1; }
.services__intro { font-size: var(--t-lead); color: var(--ink-soft); line-height: 1.42; max-width: 32ch; justify-self: end; grid-column: 2; }

.route { position: relative; }
.route__rail { position: relative; height: 1px; background: var(--ink-faint); margin: 0 var(--pad); }
.route__fill { position: absolute; inset: 0; background: var(--terra); transform: scaleX(0); transform-origin: left; height: 2px; top: -.5px; }
.route__rail i {
  position: absolute; top: 50%; left: calc(var(--p) * 33.333%);
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border: 1.5px solid var(--terra); background: var(--cream-2); border-radius: 50%;
  transition: background .4s;
}
.route__rail i:first-of-type { margin-left: 0; }
.route__rail i:last-of-type { margin-left: -13px; }
.route__rail i.is-on { background: var(--terra); }

.route__track { display: flex; gap: 0; padding: 0 var(--pad); will-change: transform; }
.step {
  flex: 0 0 min(76vw, 1080px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(2.6rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem) 0;
  margin-right: clamp(2rem, 5vw, 5rem);
  border-right: 1px solid var(--ink-faint);
  min-height: 62vh;
}
.step:last-child { border-right: 0; }
.step__n {
  grid-row: 1 / span 3;
  font-size: clamp(5rem, 12vw, 13rem); font-weight: 300; font-stretch: 75%;
  line-height: .78; letter-spacing: -.06em; color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.step__t { grid-column: 2 / 4; font-size: clamp(2rem, 3.9vw, 4.2rem); font-weight: 500; font-stretch: 114%; letter-spacing: -.035em; line-height: .98; margin-bottom: clamp(1.8rem, 3vw, 3rem); }
.step h4 { font-size: .9rem; font-weight: 600; font-stretch: 108%; margin-bottom: .7rem; color: var(--ink-soft); }
.step__q { grid-column: 2 / 4; margin-bottom: 2rem; }
.step__q p { font-size: clamp(1.25rem, 1.9vw, 1.85rem); font-style: italic; font-weight: 420; line-height: 1.25; letter-spacing: -.015em; max-width: 34ch; }
.step__w p { line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.step__o { align-self: start; background: var(--navy); color: var(--cream); padding: 1.5rem 1.6rem 1.7rem; }
.step__o h4 { color: var(--terra-3); }
.step__o p { font-size: 1.12rem; font-weight: 500; line-height: 1.38; }

.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.how__img { overflow: hidden; aspect-ratio: 4 / 5; }
.how__img img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.how__body .h-l { max-width: 15ch; margin-bottom: 2rem; }
.how__text { font-size: var(--t-lead); line-height: 1.42; color: var(--ink-soft); max-width: 36ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.how__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; padding-top: 2rem; border-top: 1px solid var(--ink-faint); }
.how__cta p { font-size: 1.2rem; font-weight: 500; font-stretch: 106%; }

/* ---------- strategies ---------- */
.strategies { background: var(--navy); color: var(--cream); padding: clamp(6rem, 12vw, 11rem) 0 clamp(5rem, 10vw, 9rem); position: relative; }
.strategies__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: end; margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.strategies__head .h-xl { max-width: 17ch; }
.strategies__side { max-width: 36ch; justify-self: end; }
.strategies__side p { font-size: var(--t-lead); line-height: 1.42; color: var(--paper-soft); }

/* ---------- S-line backgrounds (the curve of the mark, drawn on scroll) ---------- */
.sline { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0; color: rgba(208, 106, 70, .5); }
.sline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sline path { fill: none; stroke: currentColor; stroke-width: 1; }
.sline circle { fill: var(--terra); opacity: 0; }
.index > .sline, .services > .sline { top: clamp(1.6rem, 3.6vw, 3.4rem); height: clamp(2.6rem, 5.2vw, 5.4rem); }
.sline--static { position: relative; height: clamp(4rem, 8vw, 8.5rem); margin: clamp(3.5rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 6rem); }
.sline--light { top: calc(var(--nav-h) + 2vh); height: 16vh; z-index: 1; color: rgba(252, 248, 242, .32); }
.sline--light circle { fill: var(--terra-3); }
.index > .wrap, .services > .wrap, .services > .route, .services > .how { position: relative; z-index: 1; }

/* ---------- strategies: route selector ---------- */
.routes { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 6rem); border-top: 1px solid var(--paper-faint); padding-top: clamp(2rem, 3vw, 3rem); }
.routes__cap { font-size: .95rem; color: var(--steel); margin-bottom: 1rem; }
.routes__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--paper-faint); }
.rt {
  position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: start; gap: 1rem;
  text-align: left; padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--paper-faint);
  color: rgba(252, 248, 242, .46); transition: color .5s var(--ease);
}
.rt::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.rt__n { font-size: 1rem; font-weight: 500; padding-top: .35em; font-variant-numeric: tabular-nums; transition: color .5s; }
.rt__body { display: flex; flex-direction: column; gap: .45rem; }
.rt__type { font-size: .95rem; font-weight: 500; }
.rt__t { --w: 100; font-size: clamp(1.6rem, 2.7vw, 2.85rem); font-weight: 500; font-stretch: calc(var(--w) * 1%); letter-spacing: -.035em; line-height: 1; transition: font-stretch .8s var(--ease); }
.rt:hover { color: rgba(252, 248, 242, .8); }
.rt[aria-selected="true"] { color: var(--cream); }
.rt[aria-selected="true"]::before { transform: scaleX(1); }
.rt[aria-selected="true"] .rt__n, .rt[aria-selected="true"] .rt__type { color: var(--terra-3); }
.rt[aria-selected="true"] .rt__t { font-stretch: 118%; }
.routes__note { margin-top: 1.6rem; font-size: .88rem; font-style: italic; color: var(--steel); line-height: 1.5; max-width: 40ch; }

.routes__stage { position: relative; display: grid; }
.rp { grid-area: 1 / 1; display: grid; grid-template-rows: auto auto auto; align-content: start; }
.rp[hidden] { display: none; }
.rp__title { display: none; }
.rp__logic { justify-self: end; max-width: 30ch; text-align: right; }
.rp__logic h4 { font-size: .95rem; font-weight: 500; color: var(--terra-3); margin-bottom: .7rem; }
.rp__logic p { font-size: clamp(1.4rem, 2.25vw, 2.3rem); font-weight: 480; font-stretch: 108%; letter-spacing: -.025em; line-height: 1.14; }
.rp__route { height: clamp(9rem, 15vw, 15rem); margin: 1.4rem 0; }
.rp__route svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rp__route path { fill: none; stroke: var(--terra); stroke-width: 1.5; }
.rp__a { fill: var(--navy); stroke: var(--cream); stroke-width: 1.5; }
.rp__b { fill: var(--terra); }
.rp__foot { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; }
.rp__who { font-size: 1.05rem; color: var(--paper-soft); line-height: 1.4; }
.rp__who span { display: block; color: var(--cream); font-weight: 500; margin-bottom: .3rem; }
.rp__plan p:first-child { font-size: var(--t-lead); line-height: 1.42; }
.rp__draft { margin-top: 1rem; font-size: .85rem; font-style: italic; color: var(--steel); }

.strategies__end { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; margin-top: clamp(4rem, 8vw, 8rem); padding-top: clamp(2.5rem, 4vw, 4rem); border-top: 1px solid var(--paper-faint); }
.strategies__end .h-l { max-width: 14ch; }

/* ---------- founder ---------- */
.founder { background: var(--cream); padding: clamp(6rem, 12vw, 11rem) 0 clamp(5rem, 10vw, 9rem); position: relative; }
.founder__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.founder__photo { position: sticky; top: calc(var(--nav-h) + 2rem); }
.founder__frame { overflow: hidden; aspect-ratio: 4 / 5; clip-path: inset(0 0 0 0); background: var(--sand); }
.founder__frame img { width: 100%; height: 112%; object-fit: cover; object-position: 30% 20%; will-change: transform; }
.founder__photo figcaption { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); display: flex; align-items: center; gap: .8rem; }
.founder__photo figcaption::before { content: ""; width: 10px; height: 10px; background: var(--terra); }
.founder__name { font-size: clamp(3.4rem, 9.6vw, 10.4rem); line-height: .86; letter-spacing: -.05em; margin-bottom: clamp(2rem, 4vw, 3.5rem); font-weight: 540; }
.fn { --w: 100; display: block; font-stretch: calc(var(--w) * 1%); }
.fn:last-child { color: var(--terra); }
.founder__lead { font-size: clamp(1.35rem, 2.1vw, 2.05rem); font-weight: 450; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.24; margin-bottom: 2.4rem; max-width: 30ch; }
.founder__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; color: var(--ink-soft); margin-bottom: 2.4rem; }
.founder__close { font-size: var(--t-lead); font-weight: 500; line-height: 1.38; max-width: 36ch; color: var(--terra-2); margin-bottom: 3rem; }
.trail { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink-faint); }
.trail li { font-size: clamp(1.05rem, 1.4vw, 1.35rem); font-weight: 500; font-stretch: 110%; letter-spacing: -.015em; padding: 1.1rem 1.6rem 1.1rem 0; margin-right: 1.6rem; position: relative; }
.trail li:not(:last-child)::after { content: ""; position: absolute; right: -1px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--terra); transform: rotate(45deg); }

.perspective { margin-top: 0; }
.perspective__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; margin-bottom: clamp(3rem, 5vw, 5rem); }
.perspective__head .perspective__kicker { grid-column: 1 / -1; }
.perspective__head .h-l { max-width: 18ch; }
.perspective__text { color: var(--ink-soft); font-size: var(--t-lead); line-height: 1.42; max-width: 36ch; justify-self: end; }
.pp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.pp li { padding: 2rem clamp(1.2rem, 2.5vw, 2.6rem) 2.6rem 0; border-right: 1px solid var(--ink-faint); }
.pp li + li { padding-left: clamp(1.2rem, 2.5vw, 2.6rem); }
.pp li:last-child { border-right: 0; }
.pp span { display: block; font-size: .95rem; color: var(--terra); font-weight: 500; margin-bottom: 3rem; }
.pp h4 { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 1rem; max-width: 12ch; }
.pp p { color: var(--ink-soft); line-height: 1.5; max-width: 34ch; }
.perspective__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2rem, 3vw, 3rem) 0 0; border-top: 1px solid var(--ink-faint); }

/* ---------- contact ---------- */
.contact { position: relative; min-height: 100vh; min-height: 100svh; color: var(--cream); background: var(--navy); overflow: hidden; display: flex; align-items: flex-end; }
.contact__media { position: absolute; inset: -12% 0 0 0; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; will-change: transform; }
.contact__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 43, .9) 0%, rgba(10, 30, 43, .62) 38%, rgba(10, 30, 43, .7) 62%, rgba(10, 30, 43, .94) 100%); }
.contact__inner { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.contact__title { font-size: clamp(3rem, 8.4vw, 9.4rem); line-height: .9; letter-spacing: -.045em; max-width: 13ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.contact__title em { color: var(--terra-3); }
.contact__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; padding-top: 2rem; border-top: 1px solid var(--paper-faint); }
.contact__row > p { font-size: var(--t-lead); line-height: 1.42; color: var(--paper-soft); max-width: 46ch; }
.contact__act { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.contact__place { font-size: .95rem; color: var(--paper-soft); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--cream); padding: clamp(4rem, 8vw, 7rem) 0 1.6rem; overflow: hidden; border-top: 1px solid var(--paper-faint); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 3rem; align-items: start; margin-bottom: clamp(3rem, 7vw, 6rem); }
.footer__claim { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.02; }
.footer__claim span { color: var(--terra); }
.footer__line { color: var(--paper-soft); font-size: 1.05rem; max-width: 26ch; }
.footer__nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a { font-weight: 500; opacity: .8; transition: opacity .3s, transform .5s var(--ease); }
.footer__nav a:hover { opacity: 1; transform: translateX(.3rem); color: var(--terra-3); }
.footer__mark { padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto; }
.wordmark { width: 100%; height: auto; display: block; overflow: hidden; }
.wordmark .ltr { fill: var(--cream); }
.wordmark .m { fill: var(--terra); }
.footer__base { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding-top: 1.6rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--paper-faint); font-size: .9rem; color: var(--paper-soft); }
.footer__top-link { margin-left: auto; }
.footer__top-link:hover { color: var(--terra-3); }

/* ---------- reveal defaults (JS sets the motion) ---------- */
.js [data-fade] { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__bar { grid-template-columns: 1fr 1fr; }
  .hero__bar .btn { grid-column: 1 / -1; justify-self: start; }
  .bridge__stage { grid-template-columns: 1fr; gap: 3rem; align-content: center; }
  .bridge__mark { width: min(86vw, 52vh); }
  .step { flex-basis: 84vw; grid-template-columns: auto minmax(0, 1fr); }
  .step__t, .step__q { grid-column: 2 / 3; }
  .step__w { grid-column: 2; margin-bottom: 1.6rem; }
  .step__o { grid-column: 2; }
  .founder__cols { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .logo { height: 28px; }
  .hero { min-height: 560px; }
  .hero__media img { object-position: 64% 50%; }
  .hero__title { font-size: clamp(2.9rem, 13.6vw, 5rem); }
  .hero__bar { grid-template-columns: 1fr; gap: 1rem; }
  .hero__for { max-width: none; font-size: 1rem; color: var(--terra-3); }
  .hero__lead { font-size: 1.02rem; }
  .hero__bar::before { top: -1rem; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 2rem; }

  .toc a { grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem; gap: .8rem 1rem; }
  .toc__d { grid-column: 2 / 3; grid-row: 2; font-size: .92rem; }
  .toc__a { grid-row: 1 / span 2; grid-column: 3; align-self: center; width: 2.4rem; height: 2.4rem; }
  .toc__n { align-self: start; padding-top: .55em; }
  .peek { display: none; }

  .approach__head, .services__head, .strategies__head, .perspective__head, .ground__foot { grid-template-columns: 1fr; gap: 1.6rem; }
  .approach__intro, .services__intro, .strategies__side, .perspective__text { justify-self: start; }
  .services__intro { grid-column: auto; }
  .ways { grid-template-columns: 1fr; }
  .way__img { aspect-ratio: 4 / 3; }

  .bridge__tag { font-size: .85rem; }
  .bridge__tag::before { width: 1.2rem; }
  .bridge__tag--nl { right: auto; left: 2%; top: -4%; }
  .bridge__tag--nl::after { display: none; }
  .bridge__tag--es { left: auto; right: 2%; top: 98%; }
  .bridge__tag--es::before { display: none; }
  .bridge__mark { width: min(92vw, 40vh); }

  .ground__window { height: 72vh; }
  .ground__links { justify-content: flex-start; }
  .pillar:nth-child(2), .pillar:nth-child(3) { text-align: left; }
  .pillar { font-size: clamp(2.4rem, 12.4vw, 4rem); white-space: normal; }

  .route__rail { display: none; }
  .route__track { flex-direction: column; }
  .step { flex-basis: auto; min-height: 0; margin-right: 0; border-right: 0; border-top: 1px solid var(--ink-faint); padding: 2.4rem 0 2.8rem; grid-template-columns: 1fr; }
  .step__n { grid-row: auto; font-size: 4.4rem; margin-bottom: 1rem; }
  .step__t, .step__q, .step__w, .step__o { grid-column: 1; }

  .how { grid-template-columns: 1fr; }
  .how__img { aspect-ratio: 4 / 3; }


  .routes { grid-template-columns: 1fr; }
  .routes__tabs { display: none; }
  .routes__cap { margin-bottom: 0; }
  .rp, .rp[hidden] { display: grid; grid-area: auto; padding: 2.4rem 0 2.6rem; border-bottom: 1px solid var(--paper-faint); }
  .rp__title { display: block; font-size: 2.1rem; font-weight: 500; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; margin-bottom: 1.6rem; }
  .rp__title span { display: block; font-size: .95rem; color: var(--terra-3); letter-spacing: 0; margin-bottom: .6rem; }
  .rp__logic { justify-self: start; text-align: left; }
  .rp__route { height: 7rem; }
  .rp__foot { grid-template-columns: 1fr; gap: 1.2rem; }
  .sline--light { display: none; }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { position: relative; top: auto; }
  .pp { grid-template-columns: 1fr; }
  .pp li, .pp li + li { padding: 1.6rem 0 2rem; border-right: 0; border-bottom: 1px solid var(--ink-faint); }
  .pp span { margin-bottom: 1rem; }

  .contact__row { grid-template-columns: 1fr; }
  .contact__act { align-items: flex-start; }
  .btn { white-space: normal; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__top-link { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
  .js [data-fade] { opacity: 1; transform: none; }
  .gm { stroke-dashoffset: 0; }
  .cx, .ol, .tip { display: none; }
  .bridge__tag { opacity: 1; }
  .bridge__statement .w { color: inherit; }
  .ground__img { clip-path: none; }
  .pillar { color: var(--navy); -webkit-text-stroke: 0; }
}
