/* ==========================================================================
   Sehlare Sa Meetlwa — Design System
   ========================================================================== */

:root {
  /* Brand palette, sampled from the SSM tree mark */
  --green: #6cb33f;
  --green-dark: #4f8f2b;
  --green-light: #eaf5e2;
  --red: #e2231a;
  --red-dark: #b91c14;
  --charcoal: #1f2320;
  --ink: #23271f;
  --gray: #5f6459;
  --gray-light: #f4f5f1;
  --cream: #faf9f5;
  --white: #ffffff;
  --border: #e6e4dc;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(31, 35, 32, 0.06);
  --shadow: 0 12px 32px rgba(31, 35, 32, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 35, 32, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fixed header chrome heights, used to size the hero to exactly one viewport */
  --topbar-h: 40px;
  --nav-h: 80px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--charcoal);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

section {
  position: relative;
}

.section {
  padding: clamp(56px, 8vw, 108px) 0;
}
.section--tight {
  padding: clamp(36px, 5vw, 56px) 0;
}
.bg-cream { background: var(--cream); }
.bg-light { background: var(--gray-light); }
.bg-charcoal { background: var(--charcoal); color: #f2f3ef; }
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.bg-charcoal .eyebrow { color: var(--green); }

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.lede {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--gray);
  max-width: 640px;
}
.bg-charcoal .lede { color: #c7ccc4; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(226, 35, 26, 0.24);
}
.btn--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 30px rgba(226, 35, 26, 0.32);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--green-dark);
  background: var(--green-light);
  color: var(--green-dark);
}

.btn--light {
  background: var(--white);
  color: var(--charcoal);
}
.btn--light:hover {
  background: var(--green-light);
}

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { gap: 12px; color: var(--red-dark); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--gray);
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s var(--ease);
}
.topbar a:hover { color: var(--green-dark); }
.topbar svg { width: 14px; height: 14px; color: var(--gray); flex-shrink: 0; }
@media (max-width: 640px) {
  .topbar { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(31, 35, 32, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--charcoal);
  flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.72rem; color: var(--gray); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a[aria-current="page"] {
  color: var(--charcoal);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.nav-links .btn { border-bottom: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    inset: 80px 0 0 0;
    height: calc(100vh - 80px);
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 20px 40px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a {
    padding: 16px 14px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle { display: flex; }
}

/* ---------- Ghost background watermark ---------- */
.ghost-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.ghost-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.07;
}
.ghost-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(250, 249, 245, 0.55) 55%, var(--cream) 100%);
}
.bg-cream .ghost-bg::after { background: linear-gradient(180deg, var(--cream) 0%, rgba(250, 249, 245, 0.5) 55%, var(--cream) 100%); }

/* ---------- Hero (light, split layout) ----------
   Sized to exactly one viewport, minus the fixed topbar + nav above it,
   so the whole hero is visible with zero scrolling on load. */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--topbar-h) - var(--nav-h));
  min-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  padding: clamp(20px, 4vh, 44px) 0;
}
@media (max-width: 640px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    min-height: calc(100vh - var(--nav-h));
    padding: 14px 0;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
  width: 100%;
}
@media (max-width: 640px) {
  .hero-inner { gap: 16px; }
}
.hero-inner.hero-inner--text-only {
  grid-template-columns: 1fr;
  max-width: 820px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 20px;
  background: var(--white);
}
.badge svg { width: 13px; height: 13px; }

.hero h1 {
  margin-bottom: 18px;
}
.hero .lede {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  height: 100%;
  min-height: 320px;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center 25%;
}
@media (max-width: 900px) {
  .hero-figure { order: -1; height: 38vh; min-height: 240px; }
  .hero-figure img { object-position: center; }
}
@media (max-width: 640px) {
  /* Compact everything so the whole hero still fits in one screen on phones */
  .hero-figure { height: 24vh; min-height: 170px; }
  .badge { padding: 6px 13px; font-size: 0.66rem; margin-bottom: 12px; }
  .badge svg { width: 11px; height: 11px; }
  .hero .eyebrow { font-size: 11px; margin-bottom: 4px; }
  .hero h1 { font-size: 1.65rem; line-height: 1.16; margin-bottom: 10px; }
  .hero .lede { font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 18px; font-size: 0.85rem; }
}
.hero-figure .tag-float {
  position: absolute;
  bottom: -16px;
  left: -16px;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--gray-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding: 36px 0;
}
.stat {
  padding-left: 20px;
  border-left: 3px solid var(--green);
}
.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--charcoal);
  display: block;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--gray);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.icon-tile {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--red { background: #fdeceb; color: var(--red); }
.icon-tile--charcoal { background: #eceeec; color: var(--charcoal); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.96rem; margin-bottom: 0; }
.card .lede { margin-bottom: 16px; }

/* Square-bullet list (matches brand mark) */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.97rem;
  color: var(--ink);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--green);
}
.bullet-list--red li::before { background: var(--red); }

/* Service detail card (icon + heading + square bullets) */
.service-card h3 { margin-bottom: 14px; }
.service-card .icon-tile { margin-bottom: 16px; }

/* ---------- Split / feature rows ----------
   Generous vh-based height so the image column and the text column always
   match exactly and never crowd the copy below them. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: stretch;
  min-height: 68vh;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split.reverse .split-media { order: 0; }
}

.split-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-media,
.media-frame {
  height: 100%;
  min-height: 340px;
}
@media (max-width: 860px) {
  .split-media,
  .media-frame { height: 50vh; min-height: 300px; }
}

.split-media img,
.media-frame img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  position: relative;
  margin-bottom: 30px;
}
@media (max-width: 860px) {
  .media-frame { margin-bottom: 44px; }
}
.media-frame .tag-float {
  position: absolute;
  bottom: -18px;
  left: -18px;
}
@media (max-width: 480px) {
  .media-frame .tag-float { left: 8px; bottom: -14px; }
}

.tag-float {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
}
.tag-float svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
@media (max-width: 480px) {
  .tag-float { padding: 10px 14px; font-size: 0.8rem; }
}

.split-copy h2 { margin-bottom: 16px; }
.split-copy p { color: var(--gray); margin-bottom: 20px; }
.split-copy .bullet-list { margin-bottom: 26px; }

/* ---------- Photo gallery band ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery img {
  width: 100%;
  height: 46vh;
  min-height: 260px;
  max-height: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
@media (max-width: 760px) {
  .gallery img { height: 40vh; }
}

/* ---------- Values ---------- */
.value-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.value-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--gray); font-size: 0.94rem; }

/* ---------- Team ---------- */
.team-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.team-scroll::-webkit-scrollbar { height: 8px; }
.team-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.team-card {
  flex: 0 0 auto;
  width: min(300px, 76vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card img { width: 100%; height: auto; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-cloud span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.tag-cloud span b { color: var(--gray); font-weight: 500; margin-left: 4px; }

.director-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.director-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.director-card h3 { margin-bottom: 2px; }
.director-card span { color: var(--gray); font-size: 0.9rem; font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--charcoal), #34392f);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(108, 179, 63, 0.35), transparent 70%);
}
.cta-banner h2 { max-width: 480px; margin-bottom: 8px; color: var(--white); }
.cta-banner p { color: #c7ccc4; max-width: 460px; }
.cta-banner-text { position: relative; z-index: 1; }
.cta-banner-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 22px; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-row:first-of-type { border-top: none; padding-top: 0; }
.contact-row .icon-tile { background: rgba(255, 255, 255, 0.12); color: var(--green); margin-bottom: 0; flex-shrink: 0; }
.contact-row a, .contact-row p { color: #dfe3db; font-weight: 500; }
.contact-row strong { display: block; color: var(--white); margin-bottom: 4px; font-size: 0.95rem; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 14px;
}
.form-note a { color: var(--green-dark); font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #cfd3ca;
}
.footer-top {
  padding: clamp(48px, 7vw, 80px) 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.92rem; color: #b7bcb2; max-width: 320px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: #9aa096;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ========================================================================== 
   Premium engineering finish
   ========================================================================== */

:root {
  --green: #79b942;
  --green-dark: #376c25;
  --green-light: #edf6e7;
  --red: #db2b22;
  --red-dark: #aa1e18;
  --charcoal: #151a18;
  --ink: #202621;
  --gray: #5d665f;
  --gray-light: #f2f4f1;
  --cream: #f8f8f5;
  --border: #dce1dc;
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-display: "Bahnschrift", "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 22, 17, 0.05), 0 8px 24px rgba(13, 22, 17, 0.05);
  --shadow: 0 14px 36px rgba(13, 22, 17, 0.10);
  --shadow-lg: 0 28px 70px rgba(13, 22, 17, 0.18);
}

html {
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-size: 1rem;
  line-height: 1.7;
  background: #fbfcfa;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  color: var(--white);
  background: var(--green-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: condensed;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.65rem, 5.15vw, 4.85rem);
  line-height: 0.98;
}

h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.16;
}

p { text-wrap: pretty; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(121, 185, 66, 0.45);
  outline-offset: 4px;
}

.container { padding-inline: clamp(20px, 4vw, 40px); }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 78px) 0; }
.bg-cream {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(32, 38, 33, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 38, 33, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.eyebrow {
  gap: 11px;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  color: var(--green-dark);
}
.eyebrow::before { width: 32px; height: 3px; }

.lede {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.section-head {
  max-width: 800px;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 68px);
}

/* Precision controls */
.btn {
  min-height: 50px;
  padding: 13px 24px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 0.91rem;
  letter-spacing: 0.015em;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.2) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--primary {
  background: linear-gradient(135deg, #e4372d, var(--red-dark));
  box-shadow: 0 10px 24px rgba(170, 30, 24, 0.2);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(170, 30, 24, 0.28); }
.btn--outline { border-color: #99a19a; background: rgba(255,255,255,.45); }
.btn--outline:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.btn--sm { min-height: 42px; padding: 10px 17px; border-radius: 7px; }

.link-arrow {
  border-bottom: 0;
  padding: 8px 0 5px;
  background-image: linear-gradient(var(--red), var(--red));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 36px 2px;
}
.link-arrow:hover { background-size: 100% 2px; }

/* Header chrome */
.topbar {
  color: #cdd3cd;
  background: #101412;
  border: 0;
}
.topbar .container { justify-content: space-between; }
.topbar .container::before {
  content: "KATHU · NORTHERN CAPE · SOUTH AFRICA";
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #8d978f;
}
.topbar a, .topbar svg { color: #cdd3cd; }
.topbar a:hover { color: var(--green); }

.site-header {
  background: rgba(251, 252, 250, 0.88);
  border-bottom-color: rgba(21, 26, 24, 0.09);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 252, 250, 0.96);
  box-shadow: 0 12px 36px rgba(13, 22, 17, 0.08);
}
.brand img { width: 46px; height: 46px; }
.brand-text strong { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.025em; }
.brand-text span { margin-top: 3px; font-size: .69rem; letter-spacing: .045em; text-transform: uppercase; }
.nav-links { gap: clamp(18px, 2.5vw, 34px); }
.nav-links a:not(.btn) {
  border: 0;
  padding: 12px 0;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transition: right .28s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }

/* Hero with structural drafting accents */
.hero {
  background-color: #f4f5f1;
  background-image: linear-gradient(rgba(21, 26, 24, .038) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 26, 24, .038) 1px, transparent 1px);
  background-size: 48px 48px;
  padding-block: clamp(44px, 7vh, 82px);
}
.hero::after {
  content: "";
  position: absolute;
  width: clamp(220px, 28vw, 430px);
  aspect-ratio: 1;
  right: -12%;
  bottom: -45%;
  border: 1px solid rgba(121, 185, 66, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(121, 185, 66, .04), 0 0 0 84px rgba(121, 185, 66, .035);
}
.hero-inner { gap: clamp(40px, 6vw, 84px); align-items: center; }
.hero-copy { position: relative; padding-block: 18px; }
.hero-copy::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(var(--red) 0 54px, var(--border) 54px 100%);
}
.badge {
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(55, 108, 37, .3);
  border-radius: 6px;
  letter-spacing: .11em;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}
.hero h1 { margin: 16px 0 22px; }
.hero .lede { max-width: 58ch; margin-bottom: 34px; }
.hero-figure { min-height: 470px; }
.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.hero-figure::before {
  inset: 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 11px;
}
.hero-figure::after {
  left: -12px;
  bottom: 36px;
  width: 6px;
  height: 94px;
  background: linear-gradient(var(--red) 0 38%, var(--green) 38% 100%);
}
.hero-figure img {
  border-radius: var(--radius-lg);
  filter: saturate(.9) contrast(1.05);
  box-shadow: var(--shadow-lg);
}

/* Evidence strip */
.stats-bar { background: var(--charcoal); border: 0; color: var(--white); }
.stats-grid { padding-block: 42px; gap: 0; }
.stat {
  min-height: 86px;
  padding: 0 clamp(22px, 4vw, 46px);
  border-left: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { color: var(--white); font-family: var(--font-display); line-height: 1; }
.stat-label { color: #aeb7b0; margin-top: 8px; line-height: 1.4; }

/* Surfaces */
.grid { gap: clamp(18px, 2.5vw, 30px); }
.card, .value-card, .director-card, .form-card {
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
}
.card {
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--red));
  transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: #cbd2cc; box-shadow: var(--shadow); }
.card:hover::before { width: 100%; }
.card h3 { margin-bottom: 12px; }
.card p { line-height: 1.65; }

.icon-tile {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(55, 108, 37, .15);
  border-radius: 8px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.card:hover .icon-tile { transform: rotate(-3deg) scale(1.06); }

.bullet-list { gap: 12px; }
.bullet-list li { padding-left: 24px; }
.bullet-list li::before {
  top: .55em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--green);
  background: transparent;
}
.bullet-list--red li::before { border-color: var(--red); background: transparent; }

.split { gap: clamp(44px, 7vw, 96px); min-height: 62vh; }
.split-copy h2 { margin: 14px 0 22px; }
.split-copy p { line-height: 1.75; }
.media-frame img { border-radius: var(--radius-lg); filter: saturate(.92) contrast(1.04); }
.media-frame::before {
  content: "";
  position: absolute;
  inset: -12px 18px 18px -12px;
  border: 1px solid rgba(55,108,37,.24);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.tag-float {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.94);
}

.gallery { gap: 12px; }
.gallery img { border-radius: 8px; filter: saturate(.84) contrast(1.06); transition: filter .4s var(--ease), transform .4s var(--ease); }
.gallery img:hover { filter: saturate(1) contrast(1.02); transform: translateY(-4px); }

.value-card { padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.value-card:hover { transform: translateY(-5px); border-color: #cbd2cc; box-shadow: var(--shadow); }
.value-num { letter-spacing: .12em; }
.value-card h3 { margin: 14px 0 10px; }

.team-card { border-radius: 10px; background: var(--white); }
.tag-cloud span { border-radius: 7px; background: var(--white); }
.director-avatar { border-radius: 8px; background: linear-gradient(145deg, var(--charcoal), #343d37); }

/* Strong closing action */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: clamp(42px, 6vw, 74px);
  background-color: var(--charcoal);
  background-image: linear-gradient(120deg, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(30deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before { width: 360px; height: 360px; right: -90px; top: -150px; }
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--red) 0 35%, var(--green) 35% 100%);
}
.cta-banner h2 { max-width: 16ch; }

.contact-info-card {
  border-radius: var(--radius-lg);
  background-color: var(--charcoal);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: var(--shadow-lg);
}
.map-embed { border-radius: 12px; box-shadow: var(--shadow-sm); }
.form-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.field { gap: 9px; }
.field label { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  min-height: 50px;
  border-radius: 7px;
  background: #f6f7f4;
  border-color: #d4dad4;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb8af; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(121,185,66,.12); }

.site-footer {
  background-color: #101412;
  background-image: linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 40px 100%;
}
.footer-top { padding-top: clamp(62px, 8vw, 96px); }
.footer-col h4 { color: var(--green); letter-spacing: .14em; }
.footer-col a { position: relative; }
.footer-col a:hover { color: var(--green); }

/* Staggered, restrained motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.grid > [data-reveal]:nth-child(2), .stats-grid > [data-reveal]:nth-child(2) { --reveal-delay: 80ms; }
.grid > [data-reveal]:nth-child(3), .stats-grid > [data-reveal]:nth-child(3) { --reveal-delay: 160ms; }
.grid > [data-reveal]:nth-child(4) { --reveal-delay: 240ms; }
.grid > [data-reveal]:nth-child(5) { --reveal-delay: 320ms; }
.grid > [data-reveal]:nth-child(6) { --reveal-delay: 400ms; }

@media (max-width: 900px) {
  /* backdrop-filter on an ancestor turns position:fixed descendants into
     absolute-relative-to-that-ancestor (per spec), which collapsed the
     full-screen mobile menu down to the header's own ~72px height. Drop it
     here so .nav-links sizes itself against the real viewport again. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    top: var(--nav-h);
    inset-inline: 0;
    bottom: 0;
    height: auto;
    padding: 22px clamp(20px, 4vw, 40px) 44px;
    background: rgba(248,248,245,.98);
    backdrop-filter: blur(18px);
    z-index: 950;
  }
  .nav-links a:not(.btn) { padding: 18px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-toggle { border-radius: 7px; box-shadow: var(--shadow-sm); }
  .hero { min-height: auto; }
  .hero-figure { order: -1; height: min(48vh, 460px); min-height: 310px; }
  .hero-copy::before { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Portrait hero photos (e.g. About page): anchor to the top so the
   subject's head isn't cropped when object-fit: cover crops height. */
.hero-figure--top img {
  object-position: center top;
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: .94rem; }
  .brand-text span { font-size: .61rem; }
  .hero { min-height: auto; padding: 28px 0 52px; }
  .hero-inner { gap: 30px; }
  .hero-figure { height: 31vh; min-height: 230px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); line-height: 1; margin-block: 14px 18px; }
  .hero .lede { font-size: 1rem; line-height: 1.62; margin-bottom: 26px; }
  .badge { font-size: .65rem; margin-bottom: 8px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  .stats-grid { grid-template-columns: 1fr; padding-block: 12px; }
  .stat, .stat:first-child { min-height: 0; padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:first-child { border-top: 0; }
  .gallery { gap: 18px; }
  .gallery img { height: 34vh; min-height: 240px; }
  .cta-banner-actions, .cta-banner-actions .btn { width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (hover: none) {
  .card:hover, .value-card:hover, .team-card:hover, .gallery img:hover { transform: none; }
}

/* ==========================================================================
   Toast popup (form submission confirmation)
   ========================================================================== */
.toast-stack {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.toast.is-leaving { opacity: 0; transform: translateY(-10px) scale(0.98); }
.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast--success .toast-icon { background: var(--green-light); color: var(--green-dark); }
.toast--error .toast-icon { background: #fdeceb; color: var(--red-dark); }
.toast-icon svg { width: 15px; height: 15px; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 2px; }
.toast-message { display: block; font-size: 0.85rem; color: var(--gray); line-height: 1.45; }
.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.toast-close svg { width: 13px; height: 13px; }
.toast-close:hover { background: var(--gray-light); color: var(--ink); }

@media (max-width: 480px) {
  .toast-stack { width: calc(100vw - 32px); }
}

/* ==========================================================================
   Forms — status messages + file upload control
   ========================================================================== */
.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 14px 0 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.35s var(--ease), max-height 0.35s var(--ease), margin 0.35s var(--ease);
}
.form-status.is-visible { max-height: 80px; opacity: 1; margin: 14px 0 0; padding: 12px 16px; border-radius: 8px; }
.form-status.is-success { background: var(--green-light); color: var(--green-dark); }
.form-status.is-error { background: #fdeceb; color: var(--red-dark); }
.form-status.is-pending { background: var(--gray-light); color: var(--gray); }

.js-ajax-form button[type="submit"] { position: relative; }
.js-ajax-form.is-submitting button[type="submit"] { pointer-events: none; opacity: 0.75; }
.js-ajax-form.is-submitting button[type="submit"] .btn-label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.file-field { position: relative; }
.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-field-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px dashed #b7c0b8;
  background: var(--cream);
  color: var(--gray);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.file-field-control svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-dark); }
.file-field:hover .file-field-control,
.file-field input[type="file"]:focus-visible ~ .file-field-control {
  border-color: var(--green);
  background: var(--white);
}
.file-field.has-file .file-field-control { border-style: solid; border-color: var(--green); color: var(--ink); }

/* ==========================================================================
   Motion & interaction layer
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Scroll progress bar */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: transparent;
    transform-origin: 0 50%;
    pointer-events: none;
  }
  .scroll-progress::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--green), var(--red));
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
    transition: transform 0.1s linear;
  }

  /* Back to top */
  .back-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 600;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .back-to-top svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
  .back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .back-to-top:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
  .back-to-top:hover svg { transform: translateY(-2px); }

  /* Cursor-tracked spotlight on cards */
  .card { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(121, 185, 66, 0.13), transparent 62%); background-repeat: no-repeat; background-color: var(--white); opacity: 1; }
  .card:not(:hover) { background-image: none; }

  /* Button ripple */
  .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    pointer-events: none;
    animation: btn-ripple 0.6s var(--ease);
  }
  .btn--outline .btn-ripple, .btn--light .btn-ripple { background: rgba(55, 108, 37, 0.18); }
  @keyframes btn-ripple {
    to { transform: scale(1); opacity: 0; }
  }

  /* Parallax-ready ghost backgrounds */
  .ghost-bg img { will-change: transform; }

  /* Mobile nav stagger */
  .nav-links a { transition-delay: 0ms; }
  .nav-links.is-open a:not(.btn) {
    opacity: 0;
    transform: translateY(8px);
    animation: nav-link-in 0.4s var(--ease) forwards;
  }
  .nav-links.is-open a:not(.btn):nth-child(1) { animation-delay: 0.03s; }
  .nav-links.is-open a:not(.btn):nth-child(2) { animation-delay: 0.08s; }
  .nav-links.is-open a:not(.btn):nth-child(3) { animation-delay: 0.13s; }
  .nav-links.is-open a:not(.btn):nth-child(4) { animation-delay: 0.18s; }
  .nav-links.is-open a:not(.btn):nth-child(5) { animation-delay: 0.23s; }
  @keyframes nav-link-in {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Link-arrow + button icon nudge on hover */
  .btn:hover svg { transform: translateX(3px); }
  .btn svg { transition: transform 0.25s var(--ease); }

  /* Stat + badge subtle idle motion */
  .badge svg { transition: transform 0.3s var(--ease); }
  .badge:hover svg { transform: scale(1.15); }
}

