:root {
  --forest-950: #0b2823;
  --forest-900: #10362f;
  --forest-800: #17483e;
  --forest-700: #236154;
  --moss-500: #738a45;
  --leaf-300: #b7ca8c;
  --river-300: #85c9c2;
  --river-100: #dff1ee;
  --sand-50: #f8f6ee;
  --sand-100: #f0ecde;
  --clay-500: #bd7657;
  --ink: #17312c;
  --muted: #5a6b66;
  --white: #fffef9;
  --shadow: 0 24px 70px rgba(13, 49, 41, .12);
  --radius-lg: 2rem;
  --radius-md: 1.15rem;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  padding-bottom: 5.8rem;
  color: var(--ink);
  background: var(--sand-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 8vw, 7.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.5rem); letter-spacing: -.04em; }
h3 { font-size: 1.55rem; letter-spacing: -.02em; }
strong { font-weight: 760; }

.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(5.5rem, 10vw, 9rem) 0; }
.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: fixed; z-index: 200; left: 1rem; top: 1rem; transform: translateY(-160%); background: var(--white); color: var(--forest-950); padding: .7rem 1rem; border-radius: .5rem; font-weight: 800; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #ffcf70; outline-offset: 4px; }

.rm-topbar {
  position: fixed;
  z-index: 140;
  inset: 0 0 auto;
  min-height: 3.65rem;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.rm-topbar-inner {
  width: min(calc(100% - 2rem), 1240px);
  min-height: 3.65rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.rm-logo { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; line-height: 1.05; }
.rm-logo img { width: 2.35rem; height: 2.35rem; border-radius: .6rem; }
.rm-logo strong { display: block; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .92rem; font-weight: 900; }
.rm-logo strong em { color: #ffd700; font-style: normal; }
.rm-logo small { display: block; margin-top: .2rem; color: #9ca3af; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.rm-topbar-inner > p { margin: 0 auto; color: #cbd5e1; font-size: .76rem; }
.rm-home-link { padding: .52rem .8rem; border: 1px solid #374151; border-radius: .65rem; color: #ffd700; font-size: .75rem; font-weight: 800; text-decoration: none; }
.rm-home-link:hover { background: #1f2937; border-color: #ffd700; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 4.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 1240px);
  min-height: 4.5rem;
  padding: .7rem .75rem .7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1.25rem;
  background: rgba(10, 38, 33, .76);
  color: var(--white);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0,0,0,.16);
  transition: background .25s ease, top .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { top: 4.15rem; background: rgba(11,40,35,.94); box-shadow: 0 12px 45px rgba(0,0,0,.22); }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; line-height: 1.15; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.05rem; }
.brand small { display: block; margin-top: .2rem; color: rgba(255,255,255,.7); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .7rem .85rem; border-radius: .8rem; color: rgba(255,255,255,.86); font-size: .88rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.site-nav .nav-cta { margin-left: .4rem; background: var(--river-300); color: var(--forest-950); }
.site-nav .nav-cta:hover { background: #a6ddd6; color: var(--forest-950); }
.nav-toggle { display: none; width: 2.8rem; height: 2.8rem; border: 0; border-radius: .8rem; background: rgba(255,255,255,.1); }
.nav-toggle span:not(.sr-only) { display: block; width: 1.25rem; height: 2px; margin: 5px auto; background: #fff; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: var(--white); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background-image: url("assets/las-americas.jpeg"); background-size: cover; background-position: center; transform: scale(1.025); }
.hero-shade { background: linear-gradient(90deg, rgba(7,31,26,.95) 0%, rgba(7,31,26,.72) 45%, rgba(7,31,26,.18) 76%), linear-gradient(0deg, rgba(7,31,26,.8) 0%, transparent 50%); }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -5.5rem; height: 7.5rem; border-radius: 50% 50% 0 0; background: var(--sand-50); }
.hero-content { position: relative; z-index: 2; padding: 13.5rem 0 8.5rem; }
.eyebrow { margin-bottom: 1.2rem; color: var(--river-300); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--forest-700); }
.hero h1 { max-width: 920px; margin-bottom: 1.8rem; }
.hero h1 em { color: var(--river-300); font-weight: 400; }
.hero-lead { max-width: 710px; margin-bottom: 2rem; color: rgba(255,255,255,.84); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hero-actions, .callout-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.35rem; padding: .85rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--river-300); color: var(--forest-950); }
.button-ghost { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.place-list { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; margin: 2.8rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.72); font-size: .86rem; font-weight: 750; }
.place-list li::before { content: ""; display: inline-block; width: .46rem; height: .46rem; margin-right: .55rem; border-radius: 50%; background: var(--leaf-300); }
.hero-caption { position: absolute; z-index: 2; right: 1.5rem; bottom: 6.6rem; margin: 0; color: rgba(255,255,255,.62); font-size: .7rem; writing-mode: vertical-rl; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.section-heading h2 { max-width: 800px; margin-bottom: 1.2rem; }
.section-heading > p:last-child { max-width: 640px; color: var(--muted); font-size: 1.15rem; }
.section-heading.centered { text-align: center; }
.section-heading.centered > * { margin-inline: auto; }
.prose { max-width: 680px; }
.lead { font-family: Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.42; color: var(--forest-800); }

.statement { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; overflow: hidden; background: var(--forest-900); color: var(--white); }
.statement::before, .statement::after { content: ""; position: absolute; border: 1px solid rgba(133,201,194,.25); border-radius: 50%; }
.statement::before { width: 32rem; height: 32rem; left: -13rem; top: -21rem; }
.statement::after { width: 22rem; height: 22rem; right: -8rem; bottom: -16rem; }
.statement-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .3fr 1fr; gap: 3rem; align-items: start; }
.statement-kicker { color: var(--leaf-300); font-size: .8rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.statement blockquote { max-width: 880px; margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.14; letter-spacing: -.035em; }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.image-frame { position: relative; min-height: 590px; overflow: hidden; border-radius: 48% 48% 1.8rem 1.8rem; box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: 100%; min-height: 590px; object-fit: cover; }
.image-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,43,36,.72), transparent 45%); }
.image-frame span { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.25rem; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.team-copy > p:not(.eyebrow) { color: var(--muted); }
.ula-note { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #d9d7ca; }
.ula-note > span { display: grid; place-items: center; flex: 0 0 4.1rem; height: 4.1rem; border-radius: 50%; background: var(--forest-800); color: var(--white); font-family: Georgia, serif; font-weight: 800; }
.ula-note p { margin: 0; font-size: .9rem; line-height: 1.45; }

.approach { background: var(--river-100); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 4rem 0 0; padding: 0; list-style: none; }
.step { min-height: 330px; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(23,72,62,.12); border-radius: var(--radius-md); background: rgba(255,255,255,.58); }
.step:nth-child(2) { transform: translateY(1.8rem); background: var(--forest-800); color: #fff; }
.step:nth-child(2) p { color: rgba(255,255,255,.72); }
.step-number { color: var(--clay-500); font-size: .78rem; font-weight: 900; letter-spacing: .13em; }
.step h3 { margin: auto 0 .8rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

.method-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.measure-card { margin-top: 1rem; padding: 1.5rem; border-radius: var(--radius-md); }
.measure-card.social { background: var(--river-100); }
.measure-card.environmental { border: 1px solid #d2d0c4; background: var(--white); }
.measure-card p { margin: .8rem 0 0; color: var(--muted); }
.measure-label { display: flex; align-items: center; gap: .8rem; }
.measure-label span { display: grid; place-items: center; min-width: 2.8rem; height: 2.8rem; padding: 0 .55rem; border-radius: .8rem; background: var(--forest-800); color: #fff; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 800; }
.scale { display: flex; justify-content: space-between; margin-top: 1.15rem; padding-top: .7rem; border-top: 5px solid transparent; border-image: linear-gradient(90deg, var(--leaf-300), var(--clay-500)) 1; color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.variable-panel { padding: 2rem; border-radius: var(--radius-lg); background: var(--forest-900); color: #fff; box-shadow: var(--shadow); }
.panel-title { color: var(--river-300); font-size: .77rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.variable-panel dl { margin: 0; }
.variable-panel dt { padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,.12); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.variable-panel dd { margin: .25rem 0 1.15rem; color: rgba(255,255,255,.68); font-size: .9rem; }
.panel-note { margin: 1.2rem 0 0; padding: 1rem; border-radius: .8rem; background: rgba(133,201,194,.1); color: var(--river-300); font-size: .85rem; }

.territory { background: var(--sand-100); }
.map-gallery { display: grid; grid-template-columns: .8fr 1.15fr .8fr; gap: 1rem; margin-top: 3rem; align-items: center; }
.map-card { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--forest-900); box-shadow: 0 16px 44px rgba(19,48,42,.11); }
.map-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.72) contrast(1.06); transition: transform .5s ease, filter .5s ease; }
.map-card.featured img { aspect-ratio: 4 / 5.4; }
.map-card:hover img { transform: scale(1.035); filter: saturate(.95) contrast(1.03); }
.map-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.2rem 1.2rem; background: linear-gradient(0deg, rgba(7,32,27,.94), transparent); color: #fff; }
.map-card figcaption strong, .map-card figcaption span { display: block; }
.map-card figcaption strong { font-family: Georgia, serif; font-size: 1.3rem; }
.map-card figcaption span { margin-top: .2rem; color: rgba(255,255,255,.66); font-size: .72rem; }
.map-note { max-width: 680px; margin: 2rem auto 0; color: var(--muted); text-align: center; font-size: .88rem; }

.progress { overflow: hidden; background: var(--forest-950); color: #fff; }
.progress-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.progress-heading h2 { margin: 0; }
.progress-heading > p { color: rgba(255,255,255,.66); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.metric { padding: 2rem 1.3rem; border-right: 1px solid rgba(255,255,255,.15); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--river-300); font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; }
.metric span { display: block; margin-top: .65rem; color: rgba(255,255,255,.65); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.deliverables { display: grid; grid-template-columns: .45fr 1fr; gap: 3rem; margin-top: 4rem; }
.deliverables ul { margin: 0; padding: 0; list-style: none; }
.deliverables li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); }
.deliverables li span { color: var(--leaf-300); font-size: .75rem; font-weight: 850; }

.values-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 7rem); }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.value-list article { padding-top: 1rem; border-top: 1px solid #d1d0c3; }
.value-list article > span { display: block; width: .75rem; height: .75rem; margin-bottom: 1.5rem; border-radius: 50% 50% 50% 15%; background: var(--moss-500); transform: rotate(-15deg); }
.value-list h3 { margin-bottom: .6rem; }
.value-list p { color: var(--muted); font-size: .95rem; }

.callout { position: relative; min-height: 660px; display: grid; align-items: center; overflow: hidden; color: #fff; }
.callout-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,32,27,.92), rgba(7,32,27,.5)), url("assets/parque-metropolitano.png") center / cover; }
.callout-content { position: relative; z-index: 1; padding-block: 7rem; }
.callout h2 { max-width: 760px; }
.callout p:not(.eyebrow) { max-width: 660px; color: rgba(255,255,255,.77); font-size: 1.15rem; }
.button-light { background: #fff; color: var(--forest-950); }
.text-link { padding: .8rem; color: #fff; font-weight: 800; text-underline-offset: .3rem; }
.callout .survey-status { width: fit-content; margin: 1rem 0 0; padding: .7rem 1rem; border: 1px solid rgba(133,201,194,.55); border-radius: .8rem; background: rgba(7,31,27,.82); color: #fff; font-size: .95rem; font-weight: 750; }
.survey-status[hidden] { display: none; }

.site-footer { padding: 4.5rem 0 1.5rem; background: #071f1b; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 3rem; }
.footer-grid strong { color: #fff; }
.footer-grid p { margin: .4rem 0 0; font-size: .86rem; }
.footer-bottom { margin: 3rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); text-align: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.app-sticky {
  position: fixed;
  z-index: 160;
  left: 50%;
  bottom: .75rem;
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 850px);
  padding: .65rem .7rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.1rem;
  background: rgba(17,24,39,.96);
  color: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,.32);
  backdrop-filter: blur(16px);
}
.app-sticky-inner { display: flex; align-items: center; gap: .8rem; }
.app-sticky-inner > img { width: 3rem; height: 3rem; flex: 0 0 auto; border-radius: .75rem; }
.app-sticky-copy { min-width: 0; margin-right: auto; line-height: 1.2; }
.app-sticky-copy strong, .app-sticky-copy span { display: block; }
.app-sticky-copy strong { font-size: .9rem; }
.app-sticky-copy span { margin-top: .2rem; color: #9ca3af; font-size: .7rem; }
.app-sticky-inner > a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.1rem;
  padding: .48rem .85rem;
  border-radius: .78rem;
  background: #fff;
  color: #111827;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.app-sticky-inner > a:hover { transform: translateY(-1px); background: #fef9c3; }
.app-sticky-inner > a span:last-child { line-height: 1.05; }
.app-sticky-inner > a small, .app-sticky-inner > a strong { display: block; }
.app-sticky-inner > a small { font-size: .58rem; }
.app-sticky-inner > a strong { font-size: .88rem; }
.play-symbol { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; clip-path: polygon(15% 5%, 92% 50%, 15% 95%); background: linear-gradient(145deg, #22c55e, #38bdf8 60%, #f59e0b); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .rm-topbar-inner > p { display: none; }
  .rm-home-link { margin-left: auto; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; display: none; padding: .7rem; border-radius: 1rem; background: var(--forest-950); box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: .85rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .intro-grid, .team-grid, .method-grid, .values-grid, .progress-heading, .deliverables, .statement-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 250px; }
  .step:nth-child(2) { transform: none; }
  .map-gallery { grid-template-columns: 1fr 1fr; }
  .map-card.featured { grid-column: span 2; order: -1; }
  .map-card.featured img { aspect-ratio: 16 / 9; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { width: min(calc(100% - 1.5rem), var(--container)); }
  .rm-topbar-inner { width: calc(100% - 1rem); }
  .rm-home-link { padding: .45rem .55rem; font-size: .66rem; }
  .site-header { width: calc(100% - 1rem); top: 4.15rem; }
  .site-header.scrolled { top: 4.05rem; }
  .brand small { display: none; }
  .hero-content { padding-top: 10.25rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,31,26,.96), rgba(7,31,26,.45)); }
  .hero-caption { display: none; }
  .place-list { gap: .55rem .8rem; }
  .hero-actions .button, .callout-actions .button { width: 100%; }
  .image-frame, .image-frame img { min-height: 430px; }
  .map-gallery, .value-list, .footer-grid { grid-template-columns: 1fr; }
  .map-card.featured, .footer-grid > div:first-child { grid-column: auto; }
  .map-card img, .map-card.featured img { aspect-ratio: 4 / 3; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .metric:last-child { border-bottom: 0; }
  .callout { min-height: 720px; }
  .app-sticky { width: calc(100% - 1rem); bottom: .4rem; }
  .app-sticky-copy span { display: none; }
  .app-sticky-inner > img { width: 2.65rem; height: 2.65rem; }
  .app-sticky-inner > a { min-height: 2.75rem; padding-inline: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .rm-topbar, .site-header, .hero-actions, .nav-toggle, .app-sticky { display: none !important; }
  body { padding-bottom: 0; }
  .hero { min-height: auto; color: var(--ink); background: #fff; }
  .hero-image, .hero-shade, .hero-caption { display: none; }
  .hero-content { padding: 2rem 0; }
  .hero-lead, .place-list { color: var(--ink); }
  .section { padding: 2rem 0; }
  .reveal { opacity: 1; transform: none; }
}
