/* ==========================================================================
   GEOS Solutions & Technologies — Design System
   One shared stylesheet for every page. Loaded from base.html.
   Sections: 1 Tokens · 2 Base · 3 Buttons · 4 Header · 5 Hero & banners
   6 Sections · 7 Components · 8 Pages · 9 Forms · 10 Footer · 11 Overlays
   12 Motion & a11y
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  /* Brand — the established primary colour is preserved exactly. */
  --dark: rgba(56, 73, 24, 0.896);
  --olive: #384918;          /* solid equivalent for text/borders on light */
  --olive-900: #232d0e;      /* deepest surface: footer, hero scrim */
  --olive-700: #46591f;
  --sage: #8fa075;           /* muted sage */
  --sage-200: #dde5d1;       /* muted green */
  --sage-100: #e8eddf;       /* light sage */
  --ivory: #f7f8f3;
  --white: #ffffff;
  --gold: #c6a96c;           /* accent: used on dark surfaces and as fills */
  --gold-700: #8a6d2f;       /* accent text on light (AA) */
  --ink: #252a20;
  --muted: #566049;          /* body-secondary text, AA on ivory/white */
  --line: #dfe4d5;
  --line-strong: #c9d1ba;
  --danger: #a3361f;
  --danger-bg: #fbece8;
  --ok-bg: #e9f2dc;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-300: clamp(.8125rem, .79rem + .1vw, .875rem);
  --fs-400: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --fs-500: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
  --fs-600: clamp(1.3rem, 1.2rem + .5vw, 1.6rem);
  --fs-700: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --fs-800: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --fs-900: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: clamp(4rem, 3rem + 5vw, 7.5rem);

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(35,45,14,.06), 0 2px 8px rgba(35,45,14,.05);
  --shadow-2: 0 10px 30px -8px rgba(35,45,14,.18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .25s var(--ease);
  --maxW: 1200px;
  --header-h: 76px;

  /* Signature texture: survey contour lines, used on dark olive surfaces. */
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.4'%3E%3Cpath d='M-20 420C80 330 170 360 260 300S440 170 560 220 760 180 830 90'/%3E%3Cpath d='M-20 470C90 380 180 410 275 350S455 225 570 275 770 235 830 150'/%3E%3Cpath d='M-20 520C100 430 190 460 290 400S470 280 580 330 780 290 830 210'/%3E%3Cpath d='M-20 570C110 480 200 510 305 450S485 335 590 385 790 345 830 270'/%3E%3Cpath d='M-20 620C120 530 210 560 320 500S500 390 600 440 800 400 830 330'/%3E%3Cpath d='M-20 370C70 280 160 310 245 250S425 115 550 165 750 125 830 30'/%3E%3Cpath d='M-20 320C60 230 150 260 230 200S410 60 540 110 740 70 830-30'/%3E%3C/svg%3E");
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-400); line-height: 1.65;
  color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}


/* ==========================================================================
   GEOS — WHO WE ARE & LEADERSHIP
   Premium corporate editorial layout
   ========================================================================== */

.who-section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(143, 160, 117, .10),
      transparent 35%
    ),
    var(--ivory);
  overflow: hidden;
  isolation: isolate;
}

.who-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  top: 35%;
  border: 1px solid rgba(56, 73, 24, .07);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(56, 73, 24, .025),
    0 0 0 70px rgba(56, 73, 24, .02);
  pointer-events: none;
  z-index: -1;
}

/* SECTION HEADING */

.who-heading {
  max-width: 760px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.who-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  color: var(--gold-700);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.who-eyebrow-line {
  width: 38px;
  height: 3px;
  background: var(--gold);
  border-radius: 5px;
}

.who-heading h2 {
  max-width: 750px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -.055em;
  color: var(--olive-900);
}

.who-heading h2 span {
  color: var(--olive-700);
  display: block;
}

.who-heading > p {
  max-width: 580px;
  color: var(--muted);
  font-size: var(--fs-500);
  line-height: 1.75;
  margin: 0;
}

/* MAIN LAYOUT */

.who-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

/* COMPANY CONTENT */

.who-content {
  min-width: 0;
  padding-top: .5rem;
}

.who-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.who-number {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--olive-900);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.who-intro h3 {
  margin: 0;
  font-size: var(--fs-600);
  color: var(--olive-900);
}

.who-content > p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.who-content > .who-lead {
  color: var(--olive-900);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.75;
}

/* COMPANY HIGHLIGHTS */

.who-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.who-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  min-width: 0;
}

.who-highlight-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sage-100);
  color: var(--olive);
  font-size: 1rem;
  transition: background var(--t), color var(--t), transform var(--t);
}

.who-highlight:hover .who-highlight-icon {
  background: var(--olive);
  color: #fff;
  transform: translateY(-3px);
}

.who-highlight strong {
  display: block;
  color: var(--olive-900);
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.4;
}

.who-highlight > div > span {
  display: block;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.5;
  margin-top: .2rem;
}

/* COMPANY STATEMENT */

.who-statement {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.35rem;
  background: var(--olive-900);
  background-image: var(--contours);
  background-size: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}

.who-statement-icon {
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  padding-top: .2rem;
}

.who-statement p {
  margin: 0;
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.7;
}

/* LEADERSHIP PANEL */

.who-leadership {
  min-width: 0;
  position: relative;
}

.leadership-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.leadership-eyebrow {
  display: block;
  color: var(--gold-700);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: .55rem;
}

.leadership-heading h3 {
  color: var(--olive-900);
  font-size: var(--fs-600);
  margin: 0;
}

.leadership-index {
  color: var(--sage);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  padding-bottom: .2rem;
}

/* LEADER CARD */

.leader-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition:
    transform .4s var(--ease),
    box-shadow .4s var(--ease),
    border-color .4s var(--ease);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

/* LEADER IMAGE */

.leader-image-wrap {
  position: relative;
  height: clamp(260px, 31vw, 370px);
  overflow: hidden;
  background: var(--olive-900);
  isolation: isolate;
}

.leader-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .8s var(--ease);
}

.leader-card:hover .leader-image {
  transform: scale(1.045);
}

.leader-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(25, 33, 10, .6),
    transparent 55%
  );
  pointer-events: none;
}

.leader-image-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  background: rgba(35,45,14,.78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.leader-image-label i {
  color: var(--gold);
}

.leader-image-decoration {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(255,255,255,.2);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .15em;
}

/* LEADER INFORMATION */

.leader-information {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.leader-role {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold-700);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: .7rem;
}

.leader-role > span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(198,169,108,.15);
}

.leader-information h4 {
  color: var(--olive-900);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 .3rem;
}

.leader-qualification {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.leader-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 5px;
  margin-block: 1.2rem;
}

.leader-information > p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* EXPERTISE TAGS */

.leader-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.leader-expertise span {
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: var(--r-pill);
  color: var(--olive-900);
  font-size: .72rem;
  font-weight: 700;
  transition: background var(--t), color var(--t);
}

.leader-expertise span:hover {
  background: var(--olive);
  color: #fff;
}

/* LEADER FOOTER */

.leader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.1rem;
}

.leader-footer > span:first-child {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.leader-footer-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--olive-900);
  color: var(--gold);
  font-size: .8rem;
  transition: transform var(--t), background var(--t);
}

.leader-card:hover .leader-footer-icon {
  background: var(--gold);
  color: var(--olive-900);
  transform: rotate(45deg);
}

/* LEADERSHIP NOTE */

.leadership-note {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.65);
}

.leadership-note-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--olive-900);
}

.leadership-note p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.6;
}

/* REVEAL ANIMATION */

.who-section .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s var(--ease),
    transform .75s var(--ease);
}

.who-section .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.who-section .who-leadership.reveal {
  transition-delay: .12s;
}

.no-js .who-section .reveal {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {
  .who-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .who-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .who-highlight {
    flex-direction: row;
    align-items: center;
  }

  .who-highlight > div {
    min-width: 0;
  }

  .leader-image-wrap {
    height: 280px;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 680px) {
  .who-section {
    padding-block: 4rem;
  }

  .who-heading {
    margin-bottom: 2.5rem;
  }

  .who-heading h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .who-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .who-content > p {
    font-size: .96rem;
  }

  .who-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
  }

  .who-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
  }

  .who-highlight strong {
    font-size: .82rem;
  }

  .who-highlight > div > span {
    font-size: .7rem;
  }

  .leader-image-wrap {
    height: clamp(270px, 80vw, 390px);
  }

  .leadership-heading {
    margin-bottom: 1.2rem;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
  .who-highlights {
    grid-template-columns: 1fr;
  }

  .who-highlight {
    flex-direction: row;
    align-items: center;
  }

  .who-statement {
    padding: 1rem;
  }

  .leader-information {
    padding: 1.2rem;
  }

  .leader-footer > span:first-child {
    font-size: .57rem;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .who-section .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .leader-card,
  .leader-image,
  .who-highlight-icon,
  .leader-expertise span,
  .leader-footer-icon {
    transition: none;
  }
}


/* =========================================================
   GEOS PROJECT CATEGORY GRID
   Compact, responsive portfolio filters
   ========================================================= */

.project-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 30px 0 38px;
}

/* Individual category card */
.project-category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
    padding: 13px 15px;

    background: var(--white, #ffffff);
    border: 1px solid rgba(56, 73, 24, 0.12);
    border-radius: 12px;

    color: var(--olive-900, #263518);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: left;

    cursor: pointer;
    overflow: hidden;

    box-shadow: 0 3px 12px rgba(31, 42, 22, 0.035);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Small icon container */
.project-category-card i {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(56, 73, 24, 0.075);
    border-radius: 9px;

    color: var(--olive, #596d35);
    font-size: 1rem;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

/* Category label */
.project-category-card span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Hover interaction */
.project-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--olive, #596d35);
    box-shadow: 0 9px 22px rgba(31, 42, 22, 0.09);
}

.project-category-card:hover i {
    background: var(--olive, #596d35);
    color: #ffffff;
    transform: scale(1.06);
}

/* Selected category */
.project-category-card.active,
.project-category-card[aria-pressed="true"] {
    background: var(--olive-900, #263518);
    border-color: var(--olive-900, #263518);
    color: #ffffff;

    box-shadow: 0 7px 20px rgba(38, 53, 24, 0.18);
}

.project-category-card.active i,
.project-category-card[aria-pressed="true"] i {
    background: rgba(255, 255, 255, 0.14);
    color: var(--gold, #d5ad55);
}

/* Keyboard accessibility */
.project-category-card:focus-visible {
    outline: 3px solid var(--gold, #d5ad55);
    outline-offset: 4px;
}

/* Loading interaction */
.project-category-grid.htmx-request .project-category-card {
    pointer-events: none;
    opacity: 0.65;
}

/* Medium desktop */
@media (max-width: 1199px) {
    .project-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .project-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-category-card {
        min-height: 72px;
        padding: 11px 12px;
        font-size: 0.79rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .project-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 23px 0 30px;
    }

    .project-category-card {
        min-height: 68px;
        gap: 9px;
        padding: 10px;
        border-radius: 10px;
        font-size: 0.75rem;
    }

    .project-category-card i {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
        font-size: 0.9rem;
    }
}

/* Very narrow screens */
@media (max-width: 360px) {
    .project-category-grid {
        gap: 8px;
    }

    .project-category-card {
        gap: 7px;
        padding: 9px 7px;
        font-size: 0.7rem;
    }

    .project-category-card i {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        font-size: 0.82rem;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .project-category-card,
    .project-category-card i {
        transition: none;
    }

    .project-category-card:hover {
        transform: none;
    }
}


img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive-700); }
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--sp-3); color: var(--olive-900); text-wrap: balance; }
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--gold); color: var(--olive-900); }
.container { width: min(100% - 2.5rem, var(--maxW)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--olive-900); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; z-index: 2000; }
.skip-link:focus { top: 1rem; }
.lede { font-size: var(--fs-500); color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; line-height: 1.8; }

/* 3. BUTTONS -------------------------------------------------------------- */
.btn {
  --b-bg: var(--dark); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--r-sm);
  font: 700 var(--fs-400)/1.2 var(--font); text-decoration: none; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:hover { --b-bg: var(--olive-900); color: var(--b-fg); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn i { transition: transform var(--t); font-size: .85em; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { --b-bg: var(--gold); --b-fg: var(--olive-900); }
.btn-gold:hover { --b-bg: #d6bd85; color: var(--olive-900); }
.btn-secondary { --b-bg: var(--sage-100); --b-fg: var(--olive-900); }
.btn-secondary:hover { --b-bg: var(--sage-200); color: var(--olive-900); }
.btn-outline { --b-bg: transparent; --b-fg: var(--olive); --b-bd: var(--olive); }
.btn-outline:hover { --b-bg: var(--olive); color: #fff; }
.btn-outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.65); }
.btn-outline-light:hover { --b-bg: #fff; color: var(--olive-900); }
.btn-text { --b-bg: transparent; --b-fg: var(--olive); padding-inline: .25rem; min-height: 40px; }
.btn-text:hover { --b-bg: transparent; color: var(--olive-700); box-shadow: none; transform: none; text-decoration: underline; }
.btn-danger { --b-bg: var(--danger); }
.btn-danger:hover { --b-bg: #7f2917; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: var(--fs-300); }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }

/* 4. HEADER & NAVIGATION -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--dark); color: #fff; transition: box-shadow var(--t), background var(--t); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,28,8,.35); background: rgba(40, 54, 16, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 80px; width: auto; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--r-sm); background: transparent; color: #fff; cursor: pointer; font-size: 1.15rem; transition: background var(--t); }
.menu-toggle:hover { background: rgba(255,255,255,.12); }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a { position: relative; color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .6rem .95rem; border-radius: var(--r-sm); transition: color var(--t), background var(--t); }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .3rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.site-nav a:not(.nav-cta):hover { color: #fff; }
.site-nav a:not(.nav-cta):hover::after, .site-nav a.active:not(.nav-cta)::after { transform: scaleX(1); }
.site-nav a.active { color: #fff; }
.site-nav a.nav-cta { background: var(--gold); color: var(--olive-900); font-weight: 800; margin-left: .6rem; padding: .65rem 1.2rem; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta.active { background: #fff; color: var(--olive-900); }
.nav-scrim { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; position: relative; z-index: 1102; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); height: 100dvh; flex-direction: column; align-items: stretch; gap: .25rem; padding: calc(var(--header-h) + 1rem) 1.25rem 2rem; background: var(--olive-900); background-image: var(--contours); background-size: cover; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; z-index: 1101; overflow-y: auto; }
  .site-nav.show { transform: none; visibility: visible; transition: transform .35s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .site-nav a { font-size: 1.15rem; padding: .95rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav a.active { color: var(--gold); }
  .site-nav a.nav-cta { margin: 1.25rem 0 0; text-align: center; border-radius: var(--r-sm); border: 0; }
  .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(20,28,8,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 1100; }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* 5. HERO & PAGE BANNERS -------------------------------------------------- */
.hero { position: relative; min-height: min(86svh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--olive-900); }
.hero-slideshow { position: absolute; inset: 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04); }
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 8s linear; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(25,33,10,.9) 0%, rgba(25,33,10,.62) 45%, rgba(25,33,10,.12) 100%), linear-gradient(0deg, rgba(25,33,10,.7), transparent 45%); }
.hero-overlay::after { content: ""; position: absolute; inset: 0; background: var(--contours) right center / cover no-repeat; }
.hero-inner { padding-block: var(--sp-9) clamp(5rem, 8vw, 6.5rem); }
.hero-title { color: #fff; font-size: var(--fs-900); font-weight: 800; max-width: 15ch; margin-bottom: var(--sp-5); letter-spacing: -.03em; }
.hero-subtitle { font-size: var(--fs-500); max-width: 52ch; color: rgba(255,255,255,.88); margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 1.5rem; }
.hero-controls .container { display: flex; align-items: center; gap: 1rem; }
.hero-dots { display: flex; gap: .5rem; }
.hero-dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255,255,255,.4); border-radius: 2px; transition: background var(--t); }
.hero-dot.active::before { background: var(--gold); }
.hero-pause { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(0,0,0,.2); color: #fff; cursor: pointer; font-size: .75rem; }
.hero-pause:hover { background: rgba(255,255,255,.2); }

.page-banner { position: relative; color: #fff; background-color: var(--olive-900); background-size: cover; background-position: center; isolation: isolate; padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(25,33,10,.92), rgba(25,33,10,.62)); }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--contours) right center / cover no-repeat; }
.page-banner h1 { color: #fff; margin-bottom: var(--sp-3); max-width: 20ch; }
.page-banner p { color: rgba(255,255,255,.86); font-size: var(--fs-500); max-width: 58ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-300); margin: 0 0 var(--sp-4); color: rgba(255,255,255,.72); }
.breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* 6. SECTIONS ------------------------------------------------------------- */
.section { padding-block: var(--sp-9); }
.section-white { background: var(--white); }
.section-sage { background: var(--sage-100); }
.section-dark { background: var(--olive-900); background-image: var(--contours); background-size: cover; background-position: right center; color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head h2 { position: relative; padding-top: 1.1rem; }
.section-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; background: var(--gold); border-radius: 2px; }
.section-head p { color: var(--muted); font-size: var(--fs-500); margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.82); }
.section-foot { margin-top: var(--sp-7); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-sticky { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-sticky > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .split, .split-sticky { grid-template-columns: 1fr; } .split-sticky > :first-child { position: static; } }

/* reveal: used once per section head, not on every card */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 7. COMPONENTS ----------------------------------------------------------- */
/* Partners marquee */
.partners { padding-block: var(--sp-7); background: var(--white); border-bottom: 1px solid var(--line); }
.partners-title { font-size: var(--fs-400); font-weight: 700; color: var(--muted); letter-spacing: 0; margin-bottom: var(--sp-5); }
.partners-container { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.partners-container:hover .partners-track, .partners-container:focus-within .partners-track { animation-play-state: paused; }
.partner-logos { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.partner-logos img { height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter var(--t), opacity var(--t); }
.partner-logos img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Slideshow (shared: home about, blog cards, blog detail) */
.slideshow { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--olive-900); aspect-ratio: 4/3; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; background-size: cover; background-position: center; }
.slideshow .slide.active { opacity: 1; z-index: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.25rem 3rem; background: linear-gradient(0deg, rgba(25,33,10,.85), transparent); color: #fff; }
.slide-caption h3 { color: #fff; font-size: var(--fs-500); margin-bottom: .25rem; }
.slide-caption p { margin: 0; font-size: var(--fs-300); color: rgba(255,255,255,.88); }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--olive-900); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity var(--t), background var(--t); }
.slideshow:hover .ss-btn, .slideshow:focus-within .ss-btn { opacity: 1; }
.ss-btn:hover { background: var(--gold); }
.ss-prev { left: .75rem; } .ss-next { right: .75rem; }
.ss-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: .15rem; }
.ss-dot { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.ss-dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background var(--t), transform var(--t); }
.ss-dot.active::before { background: var(--gold); transform: scale(1.25); }
.ss-counter { position: absolute; z-index: 3; top: .75rem; right: .75rem; background: rgba(25,33,10,.7); color: #fff; font-size: var(--fs-300); padding: .15rem .6rem; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
@media (hover: none) { .ss-btn { opacity: 1; } }

/* Icon chips */
.icon-chip { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sage-100); color: var(--olive); font-size: 1.3rem; flex-shrink: 0; transition: background var(--t), color var(--t); }

/* Service index (home): ruled rows, not cards */
.service-index { border-top: 1px solid var(--line-strong); }
.service-row { display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-5); padding-block: var(--sp-5); border-bottom: 1px solid var(--line-strong); transition: background var(--t); }
.service-row:hover .icon-chip { background: var(--olive); color: #fff; }
.service-row h3 { font-size: var(--fs-500); margin-bottom: .4rem; }
.service-row p { color: var(--muted); margin-bottom: .6rem; font-size: .98rem; }

/* Solution cards */
.card-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.solution-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.solution-media { aspect-ratio: 16/10; overflow: hidden; background: var(--sage-100); display: grid; place-items: center; color: var(--sage); font-size: 2.5rem; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.solution-card:hover .solution-media img { transform: scale(1.05); }
.solution-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.solution-body h3 { font-size: var(--fs-500); }
.solution-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.solution-type { font-size: var(--fs-300); font-weight: 700; color: var(--gold-700); margin-bottom: .4rem; }

/* Blog / news cards */
.blog-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t), transform var(--t); }
.blog-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.blog-card .slideshow { border-radius: 0; aspect-ratio: 16/11; }
.blog-card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: var(--fs-500); margin-bottom: .5rem; }
.blog-card-body h3 a { color: inherit; text-decoration: none; }
.blog-card-body h3 a:hover { text-decoration: underline; }
.blog-card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: var(--fs-300); margin-bottom: .6rem; }
.meta i { margin-right: .35rem; color: var(--sage); }
.blog-placeholder { display: grid; place-items: center; height: 100%; color: var(--sage-200); background: var(--olive-700); font-size: 2.5rem; }

/* News index (blogs page): one featured + grid */
.news-featured { display: grid; grid-template-columns: 7fr 5fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); }
.news-featured .news-img { min-height: 340px; background-size: cover; background-position: center; background-color: var(--olive-700); }
.news-featured .news-text { padding: clamp(1.5rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.news-featured h2 { font-size: var(--fs-700); }
@media (max-width: 860px) { .news-featured { grid-template-columns: 1fr; } .news-featured .news-img { min-height: 220px; } }
.news-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t), transform var(--t); }
.news-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.news-card .news-img { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--olive-700); }
.news-card .news-text { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: var(--fs-500); }
.news-card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-5); }
.stat { padding-left: var(--sp-4); border-left: 3px solid var(--gold); }
.stat-number { font-size: var(--fs-800); font-weight: 800; color: var(--olive-900); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat-label { margin-top: .4rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.section-dark .stat-number { color: #fff; } .section-dark .stat-label { color: rgba(255,255,255,.8); }

/* CTA band */
.cta-band { padding-block: var(--sp-8); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5) var(--sp-7); }
.cta-band h2 { margin: 0; max-width: 24ch; }

/* Accordion (details/summary) */
.faq-list { display: grid; gap: .75rem; max-width: 820px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--t), box-shadow var(--t); }
.faq-item[open] { border-color: var(--olive); box-shadow: var(--shadow-1); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--olive-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--olive); transition: transform var(--t); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--muted); }

/* 8. PAGES ---------------------------------------------------------------- */
/* About */
.mv-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mv-card { padding: var(--sp-6) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); border-top: 4px solid var(--olive); }
.mv-card:nth-child(2) { border-top-color: var(--gold); } .mv-card:nth-child(3) { border-top-color: var(--sage); }
.mv-card .icon-chip { margin-bottom: var(--sp-4); }
.mv-card p { color: var(--muted); margin: 0; }
.profile-card { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); align-items: start; }
.profile-card img { width: 160px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--r-md); background: var(--sage-100); }
.profile-role { font-size: var(--fs-300); font-weight: 700; color: var(--gold-700); }
.profile-card h3 { font-size: var(--fs-500); margin: .1rem 0 .5rem; }
.profile-card p { color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .profile-card { grid-template-columns: 1fr; } .profile-card img { width: 120px; } }
.values-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value-item { padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.3); }
.value-item i { color: var(--gold); font-size: 1.4rem; margin-bottom: var(--sp-3); }
.value-item h3 { font-size: var(--fs-500); }
.value-item p { color: rgba(255,255,255,.82); margin: 0; font-size: .97rem; }

/* Services (list page) */
.service-cards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-6); display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-5); transition: border-color var(--t), box-shadow var(--t); }
.service-card:hover { border-color: var(--olive); box-shadow: var(--shadow-2); }
.service-card:hover .icon-chip { background: var(--olive); color: #fff; }
.service-card h3 { font-size: var(--fs-500); }
.service-card p, .service-description { color: var(--muted); font-size: .97rem; white-space: pre-line; }
.process { counter-reset: step; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.process-step { position: relative; padding-top: var(--sp-5); border-top: 3px solid var(--sage-200); }
.process-step::before { content: ""; position: absolute; top: -3px; left: 0; width: 40%; height: 3px; background: var(--gold); }
.step-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--olive); color: #fff; font-weight: 800; margin-bottom: var(--sp-3); font-variant-numeric: tabular-nums; }
.process-step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Solutions list page */
.solution-tile { display: grid; grid-template-columns: 5fr 7fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.solution-tile + .solution-tile { margin-top: var(--sp-5); }
.solution-tile:nth-child(even) { grid-template-columns: 7fr 5fr; }
.solution-tile:nth-child(even) .solution-media { order: 2; }
.solution-tile .solution-media { aspect-ratio: auto; min-height: 260px; height: 100%; }
.solution-tile .solution-body { padding: clamp(1.5rem, 3vw, 2.75rem); justify-content: center; }
.solution-tile .solution-body p { flex: none; }
@media (max-width: 760px) { .solution-tile, .solution-tile:nth-child(even) { grid-template-columns: 1fr; } .solution-tile:nth-child(even) .solution-media { order: 0; } .solution-tile .solution-media { min-height: 0; aspect-ratio: 16/10; } }

/* Projects */
.filter-bar { display: flex; gap: .6rem; overflow-x: auto; padding: .25rem .25rem 1rem; margin-inline: -.25rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.category-card { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--white); color: var(--olive-900); font: 600 .93rem/1.2 var(--font); cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t); }
.category-card:hover { border-color: var(--olive); }
.category-card.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.category-card i { font-size: .9em; }
.loading-spinner { display: none; justify-content: center; padding: var(--sp-5); }
.loading-spinner.htmx-request, .htmx-request .loading-spinner, .htmx-request.loading-spinner { display: flex; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--sage-200); border-top-color: var(--olive); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.projects-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); transition: opacity .2s; }
.htmx-request.projects-grid, .projects-grid.htmx-request { opacity: .5; }
.project-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t), transform var(--t); }
.project-item:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.project-image { aspect-ratio: 16/10; overflow: hidden; background: var(--sage-100); display: grid; place-items: center; color: var(--sage); font-size: 2rem; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-item:hover .project-image img { transform: scale(1.05); }
.project-content { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.project-title { font-size: var(--fs-500); }
.project-location { color: var(--muted); font-size: var(--fs-300); margin-bottom: .6rem; }
.project-location i { color: var(--gold-700); margin-right: .35rem; }
.project-description { color: var(--muted); font-size: .95rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: var(--sp-8) var(--sp-5); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--sage); margin-bottom: var(--sp-3); }
.empty-state h3 { font-size: var(--fs-500); }

/* Project detail */
.project-facts { display: grid; gap: var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); align-content: start; }
.project-facts dt { font-size: var(--fs-300); color: var(--muted); font-weight: 600; }
.project-facts dd { margin: 0 0 var(--sp-3); font-weight: 700; color: var(--olive-900); }
.badge { display: inline-block; padding: .2rem .7rem; border-radius: var(--r-pill); font-size: var(--fs-300); font-weight: 700; text-transform: capitalize; }
.badge.ongoing { background: #f4ecd8; color: var(--gold-700); } .badge.completed { background: var(--ok-bg); color: var(--olive); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* Blog detail */
.article-hero .slideshow { border-radius: 0; aspect-ratio: auto; height: clamp(300px, 52vh, 560px); }
.article { max-width: 760px; margin-inline: auto; padding-block: var(--sp-8); }
.article h1 { font-size: var(--fs-800); margin-bottom: var(--sp-4); }
.article .meta { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-6); }
.article .prose { max-width: none; font-size: 1.08rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.info-stack { display: grid; gap: var(--sp-5); }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); }
.info-card h3 { font-size: var(--fs-500); margin-bottom: var(--sp-4); }
.contact-method { display: flex; gap: var(--sp-4); }
.contact-method + .contact-method { margin-top: var(--sp-4); }
.contact-method h4 { font-size: 1rem; margin-bottom: .1rem; }
.contact-method p { margin: 0; color: var(--muted); font-size: .96rem; }
.social-links { display: flex; gap: .5rem; margin-top: .4rem; }
.social-link { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-100); color: var(--olive); text-decoration: none; transition: background var(--t), color var(--t); }
.social-link:hover { background: var(--olive); color: #fff; }

/* 9. FORMS ---------------------------------------------------------------- */
.form-group { margin-bottom: var(--sp-5); }
.form-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: var(--olive-900); }
.form-label .req { color: var(--danger); margin-left: .15rem; }
.form-control { width: 100%; min-height: 50px; padding: .75rem 1rem; font: 500 var(--fs-400)/1.4 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color var(--t), box-shadow var(--t); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control::placeholder { color: #8b937f; }
.form-control:hover { border-color: var(--sage); }
.form-control:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(56,73,24,.15); }
.form-control[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: .4rem 0 0; display: flex; gap: .4rem; align-items: baseline; }
.notice { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--r-sm); margin-bottom: var(--sp-5); font-weight: 600; }
.notice.success { background: var(--ok-bg); color: var(--olive); border: 1px solid var(--sage); }
.notice.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #e3b4a9; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* 10. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--olive-900); background-image: var(--contours); background-size: cover; background-position: right bottom; color: rgba(255,255,255,.82); padding-top: var(--sp-8); }
.footer-grid { display: grid; gap: var(--sp-7) var(--sp-6); grid-template-columns: 1.3fr 1fr 1.2fr; padding-bottom: var(--sp-7); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-apps { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: var(--sp-4); }
.footer-logo { height: 100px; width: auto; margin-bottom: var(--sp-4); }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .96rem; }
.footer-contact i { color: var(--gold); margin-top: .35rem; width: 1rem; text-align: center; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-links li + li { margin-top: .15rem; }
.footer-links a { display: inline-block; padding: .3rem 0; font-size: .96rem; }
.footer-links .ext i { font-size: .65rem; margin-left: .35rem; opacity: .7; }
.footer-social { display: flex; gap: .5rem; margin-top: var(--sp-4); }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background var(--t), color var(--t), border-color var(--t); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--olive-900); text-decoration: none; }
.footer-apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 420px) { .footer-apps-grid { grid-template-columns: 1fr; } }
.app-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.app-card h3 { font-size: .95rem; margin-bottom: .75rem; }
.qr-box { background: #fff; padding: 8px; border-radius: var(--r-sm); display: inline-block; line-height: 0; }
.qr-img { width: 112px; height: 112px; }
.store-badges { display: grid; gap: .5rem; margin-top: .85rem; }
.store-badge { display: flex; align-items: center; justify-content: center; gap: .6rem; background: #0d1105; color: #fff !important; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm); padding: .45rem .8rem; line-height: 1.1; text-align: left; text-decoration: none !important; min-height: 44px; transition: border-color var(--t); }
.store-badge:hover { border-color: var(--gold); }
.store-badge i { font-size: 1.3rem; }
.store-badge small { display: block; font-size: .62rem; opacity: .75; letter-spacing: .02em; }
.store-badge span { font-weight: 700; font-size: .88rem; }
.store-badge[aria-disabled="true"] { opacity: .55; cursor: default; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: var(--sp-5); font-size: var(--fs-300); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-tag { font-style: italic; color: var(--gold); }

/* 11. OVERLAYS ------------------------------------------------------------ */
.toast-region { position: fixed; z-index: 2100; right: 1rem; bottom: 1rem; display: grid; gap: .6rem; max-width: min(92vw, 380px); }
.toast { background: var(--olive-900); color: #fff; padding: .9rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow-2); border-left: 4px solid var(--gold); display: flex; gap: .75rem; align-items: flex-start; animation: toast-in .35s var(--ease); font-weight: 600; font-size: .95rem; }
.toast.error { border-left-color: #e5796a; }
.toast button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; padding: 0 .25rem; margin-left: auto; opacity: .75; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 900; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--t), transform var(--t); box-shadow: var(--shadow-2); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(15,20,6,.88); }
dialog.lightbox[open] { animation: toast-in .3s var(--ease); }
dialog.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: var(--r-md); }
dialog.lightbox .btn { position: absolute; top: -52px; right: 0; }

/* Error pages */
.error-page { min-height: 62vh; display: grid; place-items: center; padding-block: var(--sp-8); }
.error-page .code { font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: .9; color: var(--sage-200); letter-spacing: -.05em; margin: 0 0 var(--sp-3); }
.error-page .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--sp-5); }

/* 12. MOTION & A11Y ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .partners-track { animation: none; flex-wrap: wrap; width: auto; }
  .partners-container { -webkit-mask: none; mask: none; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .to-top, .toast-region { display: none; } }

/* Refinements */
.hero-pause { flex-shrink: 0; display: grid; place-items: center; }
.split .btn-outline, .split-sticky .btn { margin-top: .5rem; }
.service-row .btn-text { margin-left: -.25rem; }
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .service-row, .service-card { grid-template-columns: 1fr; gap: var(--sp-3); }
  .cta-band .btn { width: 100%; }
}
@media (min-width: 900px) { .filter-bar { flex-wrap: wrap; overflow: visible; } }
.menu-toggle .ico-x, .menu-toggle[aria-expanded="true"] .ico-bars { display: none; }
.menu-toggle[aria-expanded="true"] .ico-x { display: block; }
.hero-pause svg, .ss-btn svg, .btn-icon svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .hero-dots { gap: 0; } .hero-dot { width: 22px; } .hero-controls .container { gap: .5rem; } }
