/* ==========================================================================
   Millán Valor Empresarial — landing page
   Mixed palette: deep forest sections + warm cream sections, lime accents.
   ========================================================================== */

:root {
  color-scheme: light;

  --forest-950: #08180f;
  --forest-900: #0c2316;
  --forest-800: #12301f;
  --forest-700: #1d4a30;
  --lime: #c9e265;
  --lime-soft: #dcee9b;
  --cream: #f3f0e6;
  --cream-2: #e9e5d6;
  --paper: #fbfaf5;
  --ink: #10241a;
  --ink-soft: #3a4d41;
  --muted: #6b776e;
  --brand-ink: #0e2f36;

  --line: rgba(16, 36, 26, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --on-dark: #f3f0e6;
  --on-dark-soft: rgba(243, 240, 230, 0.72);
  --on-dark-muted: rgba(243, 240, 230, 0.5);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1240px;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -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(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 6px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(88px, 11vw, 160px);
}

.theme-dark {
  background: var(--forest-900);
  color: var(--on-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest-950);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Headings share one editorial voice: tight sans + light italic serif accent */
h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--forest-700);
}

.theme-dark h2 em,
.hero h1 em {
  color: var(--lime);
}

/* Split-text wrappers created by JS */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.04em 0.12em 0;
  margin: 0 -0.04em -0.12em 0;
}

.w__i {
  display: inline-block;
  will-change: transform;
}

/* ---------- Section bar (editorial index line) ---------- */
.sect-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-dark .sect-bar {
  color: var(--on-dark-muted);
}

.sect-bar i {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform-origin: left center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn .icon {
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--lime {
  background: var(--lime);
  color: var(--forest-950);
}

.btn--lime:hover {
  background: var(--lime-soft);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--dark {
  background: var(--forest-950);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--forest-700);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.86rem;
}

/* ---------- Intro curtain ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--forest-950);
  color: var(--cream);
  animation: loader-fallback 0.6s ease 3s forwards;
}

html:not(.js) .loader {
  display: none;
}

.loader__mark {
  width: 64px;
  height: 54px;
}

.loader__bar {
  position: relative;
  width: 120px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.loader__bar span {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform-origin: left;
  animation: loader-bar 1.1s var(--ease) forwards;
}

@keyframes loader-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes loader-fallback {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: 16px;
  color: #fff;
  transition: transform 0.5s var(--ease), color 0.3s;
}

.nav.is-hidden {
  transform: translateY(-130%);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 4px;
  border-radius: 999px;
  transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav.is-scrolled {
  color: var(--ink);
}

.nav.is-scrolled .nav__inner {
  padding-left: 18px;
  background: rgba(243, 240, 230, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(16, 36, 26, 0.06), 0 14px 34px -18px rgba(8, 24, 15, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 30px;
}

.nav.is-scrolled .brand__mark {
  color: var(--brand-ink);
}

.brand__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.brand__text small {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.7;
}

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

.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.3s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s 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__links .nav__mobile-cta {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-950);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  overflow: hidden;
  background: var(--forest-950);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 24, 15, 0.94) 0%, rgba(8, 24, 15, 0.45) 42%, rgba(8, 24, 15, 0.12) 68%, rgba(8, 24, 15, 0.55) 100%),
    radial-gradient(70% 60% at 0% 100%, rgba(8, 24, 15, 0.6), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, 640px);
  padding-bottom: 130px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero__title {
  max-width: 11.5em;
  margin: 22px 0 32px;
  font-size: clamp(2.7rem, 0.9rem + 6.2vw, 6.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}

.hero__lead {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.hero__caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

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

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  animation: scroll-line 2.2s var(--ease) infinite;
}

@keyframes scroll-line {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.hero__stat strong {
  color: var(--lime);
  font-size: 0.95rem;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee__list {
  display: flex;
  align-items: center;
  padding: 0;
  list-style: none;
}

.marquee__list li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  color: var(--forest-900);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.marquee__list li::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--forest-700);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Statement + pillars ---------- */
.statement__text {
  max-width: 19em;
  font-size: clamp(1.9rem, 0.9rem + 3.6vw, 4.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.pill-img {
  display: inline-block;
  width: 1.9em;
  height: 0.82em;
  margin: 0 0.08em;
  border-radius: 999px;
  object-fit: cover;
  vertical-align: middle;
  translate: 0 -0.06em;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(64px, 8vw, 120px);
}

.pillars .pcard:nth-child(2) {
  margin-top: 72px;
}

.pcard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--forest-900);
  color: #fff;
}

.pcard__media {
  position: absolute;
  inset: 0;
}

.pcard__media img,
.svc__media img,
.step__media img,
.process__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard__media img {
  transition: transform 1.4s var(--ease);
}

.pillars .pcard:nth-child(2) img {
  object-position: 72% 50%;
}

.pcard:hover .pcard__media img {
  transform: scale(1.06);
}

.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 15, 0.94) 0%, rgba(8, 24, 15, 0.4) 46%, rgba(8, 24, 15, 0) 72%);
}

.pcard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px;
}

.pcard__num,
.svc__num,
.step__num {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.pcard h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pcard p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ---------- Floating islands (cut-out renders with CSS contact shadow) ---------- */
.float-island {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.float-island img {
  width: 100%;
  height: auto;
}

.float-island__bob {
  animation: island-bob 7s ease-in-out infinite;
}

.float-island__shadow {
  display: block;
  width: 56%;
  height: 22px;
  margin: 14px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 36, 26, 0.3), rgba(16, 36, 26, 0));
  animation: island-shadow 7s ease-in-out infinite;
}

@keyframes island-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

@keyframes island-shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.78);
    opacity: 0.55;
  }
}

.statement .container {
  position: relative;
}

.float-island--llanos {
  top: 70px;
  right: -1%;
  width: clamp(300px, 30vw, 440px);
}

@media (min-width: 1081px) {
  .statement__text {
    max-width: 13.6em;
  }
}

.svc-extra__box {
  position: relative;
}

.float-island--brote {
  top: -116px;
  right: 18px;
  width: 116px;
}

.float-island--brote .float-island__bob {
  animation-duration: 5.5s;
}

.float-island--brote .float-island__shadow {
  height: 12px;
  margin-top: 6px;
  background: radial-gradient(closest-side, rgba(8, 24, 15, 0.35), rgba(8, 24, 15, 0));
  animation-duration: 5.5s;
}

/* ---------- Hanging vines (real photographic cut-outs) ---------- */
.vine {
  position: absolute;
  z-index: 4;
  height: auto;
  pointer-events: none;
  transform-origin: 50% 0;
  animation: vine-sway 9s ease-in-out infinite;
}

@keyframes vine-sway {
  0%,
  100% {
    rotate: -1.2deg;
  }
  50% {
    rotate: 1.2deg;
  }
}

.vine--footprint {
  top: -30px;
  right: -44px;
  width: clamp(170px, 19vw, 280px);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.process__visual {
  display: none;
}

.has-pin .process__visual {
  position: relative;
  display: block;
}

.vine--process {
  top: -64px;
  right: -48px;
  width: 230px;
  transform-origin: 80% 0;
  filter: drop-shadow(0 16px 20px rgba(8, 24, 15, 0.25));
}

/* ---------- Section head ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head h2,
.process h2,
.footprint h2,
.impact h2,
.career h2 {
  font-size: clamp(2.2rem, 1.1rem + 3.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-head p {
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.svc {
  display: flex;
  flex-direction: column;
  grid-column: span 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest-800);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.svc--feature,
.svc:nth-child(4) {
  grid-column: span 7;
}

.svc__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 18px;
}

.svc__media img {
  position: absolute;
  inset: 0;
  transition: transform 1.4s var(--ease);
}

.svc:hover .svc__media img {
  transform: scale(1.05);
}

.svc__body {
  padding: 24px 26px 28px;
}

.svc h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.svc p {
  max-width: 48ch;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(201, 226, 101, 0.4);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
}

.svc-extra {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.svc-extra__list {
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.svc-extra__list h3 {
  margin-bottom: 22px;
  font-size: 1.2rem;
  font-weight: 600;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--on-dark-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.checklist .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(201, 226, 101, 0.14);
  color: var(--lime);
  stroke-width: 3;
}

.svc-extra__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--forest-950);
}

.svc-extra__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.svc-extra__text {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* ---------- Process ---------- */
.process {
  position: relative;
  padding-block: clamp(88px, 11vw, 160px);
  background: var(--paper);
}

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.process h2 {
  margin-bottom: 40px;
}

.process__progress,
.process__stage {
  display: none;
}

.steps {
  display: grid;
  gap: 56px;
  padding: 0;
  list-style: none;
}

.step__media {
  margin-bottom: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
}

.step__num {
  color: var(--forest-700);
}

.step h3 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.step p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.step ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.step li {
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Desktop pinned storytelling (enabled by JS with .has-pin) */
.has-pin .process {
  padding-block: 0;
}

.has-pin .process__pin {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: 110px 60px;
}

.has-pin .process__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.has-pin .process h2 {
  margin-bottom: 0;
}

.has-pin .process__progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.process__count b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.process__track {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.process__track span {
  position: absolute;
  inset: 0;
  background: var(--forest-700);
  transform: scaleX(0.25);
  transform-origin: left;
}

.has-pin .steps {
  position: relative;
  display: block;
  min-height: 300px;
}

.has-pin .step {
  position: absolute;
  inset: 0 0 auto;
}

.has-pin .step__media {
  display: none;
}

.has-pin .process__stage {
  position: relative;
  display: block;
  height: min(76vh, 680px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--forest-900);
}

.process__stage img {
  position: absolute;
  inset: 0;
}

.process__stage-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 5;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(243, 240, 230, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Footprint ---------- */
.footprint {
  overflow: hidden;
}

.footprint__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 72px;
}

.footprint__copy > p {
  max-width: 44ch;
  margin-top: 24px;
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}

.footprint__list {
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.footprint__list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.02rem;
  font-weight: 500;
}

.footprint__list span {
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footprint__media {
  position: relative;
  height: clamp(440px, 48vw, 640px);
}

.fp-img {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
}

.fp-img img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.fp-img--carbon {
  top: 0;
  left: 0;
  width: 78%;
  height: 74%;
}

.fp-img--water {
  right: 0;
  bottom: 0;
  width: 54%;
  height: 50%;
  box-shadow: 0 0 0 8px var(--forest-900);
}

.fp-img figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(8, 24, 15, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.fp-img--carbon figcaption {
  top: 16px;
  bottom: auto;
}

.fp-img figcaption b {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}

/* ---------- Impact ---------- */
.impact {
  position: relative;
  overflow: hidden;
  background: var(--forest-950);
}

.impact__bg {
  position: absolute;
  inset: 0;
}

.impact__bg img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  opacity: 0.3;
}

.impact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--forest-950) 0%, rgba(8, 24, 15, 0.55) 30%, rgba(8, 24, 15, 0.6) 70%, var(--forest-950) 100%);
}

.impact__inner {
  position: relative;
  z-index: 1;
}

.impact h2 {
  max-width: 13em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: clamp(56px, 7vw, 96px);
}

.stat {
  padding-top: 28px;
  border-top: 1px solid rgba(243, 240, 230, 0.2);
}

.stat dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(2.5rem, 1.4rem + 2.8vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat dt small {
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
}

.stat dt small.pre {
  color: var(--on-dark-muted);
}

.stat dd {
  margin-top: 16px;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.impact__note {
  max-width: 70ch;
  margin-top: 56px;
  padding-left: 14px;
  border-left: 2px solid var(--lime);
  color: var(--on-dark-muted);
  font-size: 0.84rem;
}

/* ---------- Career ---------- */
.career__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 80px;
}

.portrait {
  position: sticky;
  top: 110px;
}

.portrait__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: #e3e8e6;
}

.portrait__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

/* Double exposure: the plantation rises from the bottom into the portrait */
.portrait__land {
  position: absolute;
  left: 0;
  bottom: -6%;
  width: 100%;
  height: 40%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 45%, transparent 100%);
}

.portrait__card {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: calc(100% - 40px);
  margin: -44px 0 0 20px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 20px 40px -24px rgba(8, 24, 15, 0.5);
}

.portrait__card strong {
  display: block;
  font-size: 1.05rem;
}

.portrait__card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.career__intro {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.timeline {
  --p: 0;
  position: relative;
  margin: 48px 0 40px;
  padding: 0;
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline::after {
  background: var(--forest-700);
  transform: scaleY(var(--p));
  transform-origin: top;
}

html:not(.has-motion) .timeline::after {
  transform: none;
}

.timeline li {
  position: relative;
  padding: 0 0 36px 40px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  z-index: 1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--forest-700);
}

.timeline__date {
  color: var(--forest-700);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 8px 0 4px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline__role {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline p:not(.timeline__role) {
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.credentials li {
  padding: 8px 15px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 180px) clamp(72px, 8vw, 110px);
  background: var(--forest-950);
}

.contact__bg {
  position: absolute;
  inset: 0;
}

.contact__bg img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  opacity: 0.6;
}

.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 15, 0.96) 10%, rgba(8, 24, 15, 0.55) 60%, rgba(8, 24, 15, 0.85) 100%);
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact h2 {
  max-width: 12em;
  font-size: clamp(2.5rem, 1.1rem + 4.8vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px 72px;
  margin-top: clamp(40px, 5vw, 64px);
}

.contact__copy > p {
  max-width: 42ch;
  color: var(--on-dark-soft);
  font-size: 1.1rem;
}

.contact__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  padding: 0;
  list-style: none;
}

.contact__details li {
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact__details small {
  display: block;
  margin-bottom: 4px;
  color: var(--on-dark-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__details a,
.contact__details span {
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
}

.contact__details a:hover {
  color: var(--lime);
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0;
  background: var(--forest-950);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer .brand {
  color: var(--cream);
}

.footer__tagline,
.footer__meta {
  font-size: 0.84rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .svc,
  .svc--feature,
  .svc:nth-child(4) {
    grid-column: span 6;
  }

  .svc--feature {
    grid-column: span 12;
  }

  .svc-extra,
  .footprint__grid,
  .career__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .portrait {
    position: relative;
    top: auto;
    max-width: 520px;
  }

  .float-island--llanos {
    position: relative;
    top: auto;
    right: auto;
    width: min(72%, 380px);
    margin: 48px auto 0;
  }

  /* Stacked layout: the box sits right under the list, so the perched island would cover text */
  .float-island--brote {
    display: none;
  }

  .career__grid {
    gap: 56px;
  }
}

@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
  }

  .nav__actions .btn {
    display: none;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 30px 60px -24px rgba(8, 24, 15, 0.5);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    padding: 13px 16px;
    font-size: 1.02rem;
    opacity: 1;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links .nav__mobile-cta {
    display: block;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--forest-900);
    color: var(--cream);
    text-align: center;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars .pcard:nth-child(2) {
    margin-top: 0;
  }

  .pcard {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .hero__inner {
    padding-bottom: 104px;
  }

  .hero__title {
    margin-bottom: 24px;
  }

  .hero__ctas {
    width: 100%;
  }

  .hero__ctas .btn {
    flex: 1 1 auto;
  }

  .hero__scroll,
  .hero__stat {
    display: none;
  }

  .sect-bar span:last-child {
    display: none;
  }

  .pcard {
    aspect-ratio: 4 / 5;
  }

  .svc,
  .svc--feature,
  .svc:nth-child(4) {
    grid-column: span 12;
  }

  .svc__media {
    min-height: 220px;
  }

  .checklist,
  .contact__details,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-extra__list,
  .svc-extra__box {
    padding: 26px;
  }

  .footprint__media {
    height: 460px;
  }

  .vine--footprint {
    right: -6px;
    width: 140px;
  }

  .contact__ctas .btn {
    flex: 1 1 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loader {
    display: none;
  }

  .marquee__track,
  .pulse::after,
  .hero__scroll-line::after,
  .float-island__bob,
  .float-island__shadow,
  .vine {
    animation: none;
  }
}
