/* AgriNexa — Human Capital advisory, mobile-first */

:root {
  --forest: #1b3022;
  --forest-deep: #0f1f16;
  --forest-mid: #2d4a38;
  --leaf: #4a7c59;
  --leaf-soft: #7aab88;
  --gold: #c5a059;
  --gold-bright: #d4af37;
  --gold-soft: #e8d4a8;
  --cream: #f7f5f0;
  --cream-deep: #ebe6dc;
  --ink: #1a241c;
  --muted: #5c6b62;
  --white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 64px;
  --mobile-bar-h: 52px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgb(15 31 22 / 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
@media (max-width: 959px) {
  main { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px) + 0.75rem); }
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
picture { display: block; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--leaf); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--forest); }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(100%, 1140px); margin-inline: auto; padding-inline: 1.15rem; }
@media (min-width: 768px) { .container { padding-inline: 1.75rem; } }

.visually-hidden {
  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; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--forest); color: #fff; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.65rem 1.25rem; font-size: 0.9rem; font-weight: 600;
  border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.2s, background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:active { transform: scale(0.98); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--forest-mid); color: var(--white); border-color: var(--forest-mid);
}
.btn--primary:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--forest-deep); border-color: var(--gold);
  font-weight: 700;
}
.btn--gold:hover { filter: brightness(1.05); color: var(--forest-deep); }
.btn--outline-gold {
  background: transparent; color: var(--gold-soft);
  border-color: rgb(232 212 168 / 0.65);
}
.btn--outline-gold:hover {
  background: rgb(255 255 255 / 0.08); color: var(--white); border-color: var(--gold-bright);
}
.btn--outline-light {
  background: transparent; color: var(--white);
  border-color: rgb(255 255 255 / 0.55);
}
.btn--outline-light:hover {
  background: rgb(255 255 255 / 0.1); color: var(--white); border-color: var(--white);
}
.btn--ghost {
  background: rgb(255 255 255 / 0.12); color: var(--white); border-color: rgb(255 255 255 / 0.45);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.22); color: var(--white); }
.btn--soft {
  background: var(--cream); color: var(--forest); border-color: var(--gold-soft);
}
.btn--soft:hover { background: var(--cream-deep); color: var(--forest); }

.hide-mobile { display: none; }
@media (min-width: 960px) { .hide-mobile { display: inline-flex; } }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 200; height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: rgb(27 48 34 / 0.1);
  box-shadow: 0 8px 28px rgb(15 31 22 / 0.08);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 0.45rem;
}
@media (min-width: 768px) { :root { --header-h: 76px; } }
@media (max-width: 959px) {
  .header__inner .nav { display: none; }
  .header__inner .logo { margin-right: auto; }
}
@media (min-width: 960px) {
  .header__inner .nav { display: flex; flex: 1; justify-content: center; }
}

.logo { display: flex; align-items: center; flex-shrink: 0; z-index: 2; }
.logo img {
  height: 40px; width: auto; max-width: min(42vw, 168px); object-fit: contain;
  transition: height var(--transition), max-width var(--transition);
}
.site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgb(15 31 22 / 0.94) 0%, rgb(15 31 22 / 0.5) 75%, transparent 100%);
}
.site-header:not(.is-scrolled) .logo--hero img {
  height: 58px; max-width: min(52vw, 240px);
  filter:
    drop-shadow(0 2px 4px rgb(0 0 0 / 0.55))
    drop-shadow(0 0 18px rgb(212 175 55 / 0.45));
}
.site-header.is-scrolled .logo--hero {
  padding: 0; background: none; border: none; box-shadow: none;
}
.site-header.is-scrolled .logo img {
  height: 42px; max-width: 168px; filter: none;
}
@media (min-width: 768px) {
  .site-header:not(.is-scrolled) .logo--hero img {
    height: 66px; max-width: 280px;
  }
  .site-header.is-scrolled .logo img { height: 48px; max-width: 210px; }
}

.lang-switch {
  display: inline-flex; padding: 3px;
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-radius: 999px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}
.lang-switch--stack { width: 100%; margin-bottom: 0.35rem; }
.lang-switch--stack .lang-switch__btn { flex: 1; padding: 0.65rem 0.5rem; }
.lang-switch__btn {
  min-width: 2.65rem; padding: 0.38rem 0.65rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); border-radius: 999px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.lang-switch--stack .lang-switch__btn { font-size: 0.82rem; min-width: 0; }
.lang-switch__btn.is-active {
  color: var(--forest-deep);
  background: linear-gradient(145deg, var(--gold-bright) 0%, var(--gold) 100%);
  box-shadow: 0 2px 8px rgb(197 160 89 / 0.45);
}
.lang-switch__btn:not(.is-active):hover { color: var(--forest); }

.nav { display: none; gap: 0.15rem; }
@media (min-width: 960px) { .header__inner .nav { display: flex; } }
.nav__link {
  padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 600; color: var(--muted);
  border-radius: 999px; transition: background var(--transition), color var(--transition);
}
.nav__link:hover { color: var(--forest); background: var(--cream); }
.nav__link.is-active { color: var(--white); background: var(--forest); }
.site-header:not(.is-scrolled) .nav__link {
  color: rgb(255 255 255 / 0.88);
}
.site-header:not(.is-scrolled) .nav__link:hover {
  color: var(--white); background: rgb(255 255 255 / 0.12);
}
.site-header:not(.is-scrolled) .nav__link.is-active {
  color: var(--forest-deep); background: linear-gradient(145deg, var(--gold-bright), var(--gold));
}
.site-header:not(.is-scrolled) .nav-toggle span { background: var(--gold-soft); }
.site-header:not(.is-scrolled) .nav-toggle:hover { background: rgb(255 255 255 / 0.1); }
.site-header:not(.is-scrolled) .lang-switch {
  background: rgb(255 255 255 / 0.1); border-color: rgb(197 160 89 / 0.45);
}
.site-header:not(.is-scrolled) .lang-switch__btn { color: rgb(255 255 255 / 0.85); }
.site-header:not(.is-scrolled) .lang-switch__btn:not(.is-active):hover { color: var(--white); }
.site-header:not(.is-scrolled) .btn--primary {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: var(--forest-deep); border-color: transparent;
}

.header__actions { display: flex; align-items: center; gap: 0.35rem; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 10px;
}
.nav-toggle:hover { background: var(--cream); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--forest);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-backdrop {
  position: fixed; inset: 0; z-index: 180; background: rgb(15 31 51 / 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 190;
  background: var(--white); padding: 1.15rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a:not(.btn) {
  padding: 0.85rem 1rem; font-weight: 600; color: var(--ink);
  border-radius: var(--radius-sm); border: 1px solid var(--cream-deep);
}
.mobile-nav .btn { margin-top: 0.5rem; }
.mobile-nav__lang { justify-content: stretch; }

/* Hero — photo + diagonal green (reference layout) */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 780px);
  padding: calc(var(--header-h) + 1.75rem) 0 5rem;
  display: flex; align-items: center;
}
.hero--photo { background: var(--forest-deep); }
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  background: var(--forest-deep);
}
.hero__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__photo picture,
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 42% center;
}
@media (max-width: 768px) {
  .hero {
    min-height: min(94vh, 720px);
    align-items: flex-end;
    padding-bottom: 5.5rem;
  }
  .hero__photo picture,
  .hero__photo img { object-position: center 22%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(0 45 26 / 0.88) 0%, rgb(0 45 26 / 0.55) 38%, rgb(0 45 26 / 0.35) 100%),
      linear-gradient(0deg, rgb(15 31 22 / 0.85) 0%, transparent 55%);
  }
  .hero__mark {
    width: min(108vw, 560px); opacity: 1; right: -14%; top: 6%;
    transform: translateY(0);
    padding: 0; background: none; border: none; border-radius: 0;
    box-shadow: none;
  }
  .hero__copy { padding-bottom: 0.5rem; }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .hero__photo picture,
  .hero__photo img { object-position: 40% 52%; }
}
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(
      108deg,
      rgb(0 45 26 / 0.94) 0%,
      rgb(0 45 26 / 0.9) 34%,
      rgb(0 45 26 / 0.55) 48%,
      rgb(0 45 26 / 0.2) 58%,
      transparent 72%
    ),
    linear-gradient(0deg, rgb(15 31 22 / 0.55) 0%, transparent 42%);
}
.hero__mark {
  position: absolute; z-index: 2; pointer-events: none;
  right: -4%; top: 50%; width: min(68vw, 720px);
  aspect-ratio: 1017 / 492;
  height: auto;
  padding: 0;
  transform: translate3d(0, -48%, 0);
  background: none; border: none;
}
.hero__mark img {
  width: 100%; height: auto; display: block;
  image-rendering: auto;
  filter:
    drop-shadow(0 10px 28px rgb(0 0 0 / 0.45))
    drop-shadow(0 0 24px rgb(212 175 55 / 0.35));
}
@media (min-width: 900px) {
  .hero__mark { right: -2%; width: min(58vw, 860px); }
}
@media (min-width: 1200px) {
  .hero__mark { right: 0; width: min(52vw, 960px); }
}
.hero__layout {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  min-height: calc(min(92vh, 780px) - var(--header-h) - 6.5rem);
}
.hero__copy {
  max-width: 36rem;
}
.hero__eyebrow {
  display: inline-block; margin-bottom: 0.85rem;
  padding: 0.38rem 0.85rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid rgb(197 160 89 / 0.75);
  border-radius: 999px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.55rem);
  font-weight: 600; line-height: 1.1; color: var(--white);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero__title-accent {
  display: block;
  color: var(--gold-bright);
  text-shadow: 0 2px 20px rgb(212 175 55 / 0.35);
}
.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgb(255 255 255 / 0.9); margin-bottom: 1.75rem; max-width: 34rem;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  color: var(--gold-soft); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  animation: scroll-bob 2.2s ease-in-out infinite;
}
.hero__scroll-line {
  display: block; width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
}
@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.hero__progress {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgb(255 255 255 / 0.08);
}
.hero__progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 12px rgb(212 175 55 / 0.6);
  transition: width 0.08s linear;
}

/* Stats */
.stats {
  position: relative; z-index: 3;
  margin-top: -2.5rem; padding-bottom: 0.5rem;
}
@media (min-width: 768px) { .stats { margin-top: -3.5rem; } }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem;
  padding: 1.35rem 1.25rem 1.5rem; background: var(--white);
  border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-deep);
}
.stat__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 auto 0.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cream) 0%, var(--white) 100%);
  color: var(--forest-mid);
  border: 1px solid var(--cream-deep);
}
.stat__icon svg { width: 22px; height: 22px; }
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; padding: 1.75rem 1.5rem; }
}
.stat {
  text-align: center; padding: 0.75rem 0.35rem;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.1; color: var(--forest);
}
.stat__num::after {
  content: attr(data-suffix-display);
  font-family: var(--font-body);
  font-size: 0.55em; font-weight: 600; color: var(--leaf);
  margin-left: 0.05em;
}
.stat__label {
  display: block; margin-top: 0.35rem;
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  line-height: 1.35;
}
@media (min-width: 640px) { .stat__label { font-size: 0.78rem; } }

/* Sections */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section--soft { background: var(--cream); }

.section-label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--leaf);
}
.section-label--gold { color: var(--gold-bright); }
.section--dark {
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 55%, var(--forest-mid) 100%);
  color: rgb(255 255 255 / 0.88);
}
.section--dark .section-title--light { color: var(--white); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400; line-height: 1.2; color: var(--forest);
  margin-bottom: 0.85rem;
}
.section-title--light { color: var(--white); }
.section-lead {
  font-size: 1.05rem; color: var(--muted); margin-bottom: 1.25rem;
}
.section-lead--light { color: rgb(255 255 255 / 0.85); }
.section-head { max-width: 36rem; margin-bottom: 2rem; }
.section-head .section-lead { margin-bottom: 0; }

.section--about {
  padding: 0;
  overflow-x: clip;
}
@media (max-width: 899px) {
  .section--about { padding: 3.5rem 0 0; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .section--about { padding-top: 5rem; }
}

.about-split {
  display: grid;
  gap: 0;
}
@media (min-width: 900px) {
  .about-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: min(42rem, 85vh);
    width: 100%;
    max-width: 100%;
  }
}

.about-grid__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--cream-deep);
}
@media (prefers-reduced-motion: no-preference) {
  .section--about .about-grid__media img {
    transform-origin: center 42%;
    animation: about-drift 22s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .section--about.is-about-drift .about-grid__media img {
    animation-play-state: running;
  }
}
@keyframes about-drift {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
.about-grid__media picture,
.about-grid__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}
@media (max-width: 899px) {
  .about-grid__media picture,
  .about-grid__media img {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    box-shadow: none;
  }
  .about-grid__media img { object-position: center center; }
}
@media (min-width: 900px) {
  .about-grid__media {
    overflow: hidden;
    min-height: 100%;
    isolation: isolate;
  }
  .about-grid__media picture {
    position: absolute;
    inset: 0;
  }
  .about-grid__media img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    object-position: center center;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 68%, rgb(0 0 0 / 0.15) 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 68%, rgb(0 0 0 / 0.15) 88%, transparent 100%);
  }
  .about-grid__media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(5rem, 22vw, 11rem);
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    background: linear-gradient(
      to right,
      rgb(247 245 240 / 0) 0%,
      rgb(247 245 240 / 0.45) 42%,
      var(--cream) 100%
    );
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
  }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .about-grid__media::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(to right, transparent 0%, var(--cream) 78%);
  }
}

.about-split__content {
  width: min(100%, 36rem);
  margin-inline: auto;
  padding: 2rem 1.15rem 3.5rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .about-split__content { padding: 3rem 1.75rem 3.5rem; }
}
@media (min-width: 900px) {
  .about-split__content {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    min-width: 0;
    padding: clamp(3.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 6vw, 5rem) clamp(1.75rem, 5vw, 3.5rem);
    align-self: center;
  }
}
.vision-mission {
  display: grid; gap: 1rem; margin: 1.25rem 0 1.5rem;
}
@media (min-width: 540px) { .vision-mission { grid-template-columns: 1fr 1fr; } }
.vision-mission__title {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--forest);
  margin-bottom: 0.35rem;
}
.vision-mission p { font-size: 0.92rem; color: var(--muted); }
.stat--text .stat__word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  line-height: 1.15; color: var(--gold);
}
.stat--text .stat__num { display: none; }
.solutions-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 768px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.solution-card {
  padding: 1.5rem 1.35rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(197 160 89 / 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.solutions-grid.is-visible .solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.2);
}
.solution-card__num {
  position: relative;
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
}
.solution-card__num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}
.solutions-grid.reveal-stagger.is-visible > .solution-card:nth-child(1) { transition-delay: 0.08s; }
.solutions-grid.reveal-stagger.is-visible > .solution-card:nth-child(2) { transition-delay: 0.32s; }
.solutions-grid.reveal-stagger.is-visible > .solution-card:nth-child(3) { transition-delay: 0.56s; }
.solutions-grid.is-visible .solution-card:nth-child(1) .solution-card__num::after { transition-delay: 0.35s; }
.solutions-grid.is-visible .solution-card:nth-child(2) .solution-card__num::after { transition-delay: 0.58s; }
.solutions-grid.is-visible .solution-card:nth-child(3) .solution-card__num::after { transition-delay: 0.82s; }
.solutions-grid.is-visible .solution-card__num::after { transform: scaleX(1); }
.solution-card h3 {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--white);
  margin-bottom: 0.5rem;
}
.solution-card p { font-size: 0.92rem; color: rgb(255 255 255 / 0.78); line-height: 1.55; }
.clients-block { max-width: 40rem; }
.clients-list {
  list-style: none; margin-top: 1rem;
  display: grid; gap: 0.55rem;
}
@media (min-width: 640px) { .clients-list { grid-template-columns: 1fr 1fr; gap: 0.65rem 1.5rem; } }
.clients-list li {
  position: relative; padding-left: 1.35rem; font-weight: 500; color: var(--ink);
}
.clients-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}

.about-list {
  list-style: none; margin: 1.25rem 0 1.5rem;
}
.about-list li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem;
  font-weight: 500; color: var(--ink);
}
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--leaf);
}

/* Services */
.section--services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 50%, var(--white) 100%);
}
.services-pin__stage {
  position: relative;
}
.services-pin__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.services-watermark {
  position: absolute;
  inset: -8% -12%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.2;
}
.services-watermark img {
  width: min(130%, 1100px);
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: saturate(1.12) brightness(1.08);
}
.section--services__content {
  position: relative;
  z-index: 1;
}

/* Services — scroll-pinned reveal (desktop) */
.section--services.services-pin--scroll {
  padding: 0;
  overflow: visible;
  overflow-anchor: none;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 45%, var(--cream) 100%);
}
.section--services.services-pin--scroll::after {
  display: none;
}
.services-pin--scroll .services-pin__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 75% at 50% 45%, transparent 0%, rgb(255 255 255 / 0.55) 78%),
    linear-gradient(180deg, rgb(255 255 255 / 0.35) 0%, transparent 30%, transparent 70%, rgb(255 255 255 / 0.45) 100%);
}
.services-pin__track {
  position: relative;
  z-index: 1;
}
.services-pin--scroll .services-pin__track {
  height: calc(var(--services-scroll-steps, 8) * (100vh - var(--header-h)));
}
.services-pin--scroll .services-pin__stage {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  height: calc(100vh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
}
.services-pin--scroll .section--services__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.services-pin--scroll .section-head {
  flex-shrink: 0;
  margin-bottom: 0;
}
.services-pin--scroll .section-head .section-lead {
  margin-bottom: 0.65rem;
}
.services-pin--scroll .services-grid--pin {
  flex: 1;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-top: 0.35rem;
}
.services-pin--scroll .services-watermark {
  opacity: var(--services-logo-opacity, 0);
  transition: opacity 0.45s var(--ease);
}
.services-pin__hint {
  display: none;
  margin: -0.35rem 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: opacity 0.4s var(--ease);
}
.services-pin--scroll .services-pin__hint {
  display: block;
}
.services-pin--scroll.is-services-complete .services-pin__hint {
  opacity: 0;
  pointer-events: none;
}

/* Completed: normal section height, all cards, regular scroll */
.services-pin--scroll.is-services-collapsed {
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .services-pin--scroll.is-services-collapsed { padding: 5rem 0; }
}
.services-pin--scroll.is-services-collapsed::after {
  display: block;
}
.services-pin--scroll.is-services-collapsed .services-pin__track {
  height: auto;
}
.services-pin--scroll.is-services-collapsed .services-pin__stage {
  position: relative;
  top: auto;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
}
.services-pin--scroll.is-services-collapsed .section--services__content {
  display: block;
  min-height: 0;
}
.services-pin--scroll.is-services-collapsed .services-grid--pin {
  flex: none;
  overflow: visible;
  max-height: none;
}
.services-pin--scroll.is-services-collapsed .services-pin__hint,
.services-pin--scroll.is-services-collapsed .services-pin__progress {
  display: none;
}
.services-pin--scroll.is-services-collapsed .services-watermark {
  opacity: 0.2;
  transition: opacity 0.35s var(--ease);
}
.services-pin--scroll.is-services-collapsed .services-grid--pin > .service-card.is-revealed {
  display: block;
}
.services-pin__progress {
  display: none;
  margin-top: 1.5rem;
  height: 3px;
  border-radius: 999px;
  background: rgb(27 48 34 / 0.08);
  overflow: hidden;
}
.services-pin--scroll .services-pin__progress {
  display: block;
  flex-shrink: 0;
  margin-top: auto;
}
.services-pin--scroll .services-pin__hint {
  flex-shrink: 0;
}
.services-pin__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transition: width 0.15s linear;
}
.services-pin--scroll .services-grid--pin > .service-card {
  display: none;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: none !important;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.services-pin--scroll.is-services-scrubbing .services-grid--pin > .service-card {
  transition: none !important;
}
.services-pin--scroll .services-grid--pin > .service-card.is-revealed {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.services-pin--scroll .services-grid--pin > .service-card.is-revealed:nth-child(1) { transition-delay: 0s; }
.services-pin--scroll .services-grid--pin > .service-card.is-revealed:nth-child(2) { transition-delay: 0.04s; }
.services-pin--scroll .services-grid--pin > .service-card.is-revealed:nth-child(3) { transition-delay: 0.08s; }
.services-pin--scroll .services-grid--pin > .service-card.is-revealed:nth-child(4) { transition-delay: 0.12s; }
.services-pin--scroll .services-grid--pin > .service-card.is-revealed:nth-child(5) { transition-delay: 0.16s; }
.services-pin--scroll .services-grid--pin > .service-card.is-revealed:nth-child(6) { transition-delay: 0.2s; }
.section--services::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 75% at 50% 45%, transparent 0%, rgb(255 255 255 / 0.55) 78%),
    linear-gradient(180deg, rgb(255 255 255 / 0.35) 0%, transparent 30%, transparent 70%, rgb(255 255 255 / 0.45) 100%);
}
@media (min-width: 768px) {
  .services-watermark { opacity: 0.18; inset: -5% -8%; }
  .services-watermark img { width: min(118%, 980px); }
}
@media (max-width: 539px) {
  .services-watermark img { width: 160%; }
  .services-watermark { opacity: 0.16; }
}

.services-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

@keyframes service-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.services-grid.reveal-stagger > .service-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}
.services-grid.reveal-stagger.is-visible > .service-card {
  opacity: 0;
  animation: service-card-in 0.75s var(--ease) forwards;
}
.services-grid.reveal-stagger.is-visible > .service-card:nth-child(1) { animation-delay: 0.08s; }
.services-grid.reveal-stagger.is-visible > .service-card:nth-child(2) { animation-delay: 0.22s; }
.services-grid.reveal-stagger.is-visible > .service-card:nth-child(3) { animation-delay: 0.36s; }
.services-grid.reveal-stagger.is-visible > .service-card:nth-child(4) { animation-delay: 0.5s; }
.services-grid.reveal-stagger.is-visible > .service-card:nth-child(5) { animation-delay: 0.64s; }
.services-grid.reveal-stagger.is-visible > .service-card:nth-child(6) { animation-delay: 0.78s; }

.service-card {
  padding: 1.5rem 1.35rem;
  background: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(27 48 34 / 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 0.34);
  box-shadow: var(--shadow);
  border-color: rgb(197 160 89 / 0.5);
}
.service-card__icon {
  width: 48px; height: 48px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cream) 0%, var(--white) 100%);
  color: var(--leaf);
  border: 1px solid var(--cream-deep);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--forest);
  margin-bottom: 0.45rem;
}
.service-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* CTA band */
.cta-band {
  padding: 3rem 0;
  background: linear-gradient(120deg, var(--forest-deep) 0%, var(--forest-mid) 50%, var(--forest) 100%);
}
.cta-band__inner {
  text-align: center; max-width: 32rem; margin-inline: auto;
}
.cta-band__inner .section-title { margin-bottom: 0.75rem; }
.cta-band__inner .section-lead { margin-bottom: 1.5rem; }

/* Contact */
.contact-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
}
.contact-list {
  list-style: none; margin-top: 1.5rem;
}
.contact-list li {
  padding: 0.85rem 0; border-bottom: 1px solid var(--cream-deep);
  font-size: 0.95rem; color: var(--muted);
}
.contact-list strong {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--forest); margin-bottom: 0.2rem;
}

.contact-form {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-deep);
  box-shadow: 0 12px 32px rgb(26 47 74 / 0.06);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.82rem; font-weight: 600; color: var(--forest);
}
.field input,
.field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem;
  border: 1px solid var(--cream-deep); border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgb(42 157 143 / 0.2);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note {
  margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); text-align: center;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-top: 1px solid var(--cream-deep);
  color: var(--muted);
  text-align: center;
}
@media (max-width: 959px) {
  .site-footer { padding-bottom: calc(2.5rem + var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px)); }
}
.footer__logo {
  display: block; width: min(72vw, 260px); margin: 0 auto 1rem;
}
.footer__logo img {
  width: 100%; height: auto; object-fit: contain;
}
.footer__tagline {
  font-family: var(--font-display); font-size: 1.08rem; color: var(--forest);
  margin-bottom: 0.35rem; max-width: 22rem; margin-inline: auto;
}
.footer__note { font-size: 0.82rem; margin-bottom: 1rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer__links a { color: var(--forest-mid); font-size: 0.85rem; font-weight: 600; }
.footer__links a:hover { color: var(--gold); }

/* Mobile bar */
.mobile-bar {
  position: fixed; inset: auto 0 0; z-index: 210;
  display: flex; height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--cream-deep);
  box-shadow: 0 -8px 24px rgb(15 31 51 / 0.08);
}
@media (min-width: 960px) { .mobile-bar { display: none; } }
.mobile-bar__link {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 600; color: var(--forest);
}
.mobile-bar__link--primary {
  background: var(--forest-mid); color: var(--white);
}
.mobile-bar__link--primary:hover { color: var(--white); background: var(--forest); }

/* Reveal animations */
.reveal,
.reveal-stagger > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1; transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .section--services.services-pin--scroll { padding: 3.5rem 0; }
  .services-pin--scroll .services-pin__track { height: auto; }
  .services-pin--scroll .services-pin__stage {
    position: relative;
    top: auto;
    min-height: 0;
    padding: 0;
  }
  .services-pin--scroll .services-pin__hint,
  .services-pin--scroll .services-pin__progress { display: none; }
  .services-grid.reveal-stagger > .service-card,
  .services-grid.reveal-stagger.is-visible > .service-card {
    opacity: 1; transform: none; animation: none;
  }
  .services-pin--scroll .services-grid--pin > .service-card.is-revealed {
    opacity: 1; transform: none; transition: none;
  }
  .service-card:hover,
  .solutions-grid.is-visible .solution-card:hover { transform: none; }
  .section--about .about-grid__media img { animation: none; }
  .solutions-grid .solution-card__num::after,
  .solutions-grid.is-visible .solution-card__num::after {
    transform: scaleX(1);
    transition: none;
  }
  .hero__scroll { animation: none; }
  [data-parallax-layer] { transform: none !important; }
}
