/* ==========================================================================
   The Next Project — shared styles
   ========================================================================== */

:root {
  --primary: #005b1f;
  --primary-dark: #003f16;
  --accent: #1ba300;
  --lime: #75d400;
  --lime-soft: #effbe3;
  --ink: #0b1f12;
  --text: #17261c;
  --muted: #55665b;
  --eyebrow: #2b7a0b;
  --bg: #f5f8f4;
  --surface: #ffffff;
  --surface-alt: #eef5ec;
  --border: #dbe6d9;
  --shadow-sm: 0 1px 2px rgba(6, 40, 16, 0.05), 0 6px 16px rgba(6, 40, 16, 0.06);
  --shadow: 0 16px 36px rgba(6, 40, 16, 0.1);
  --shadow-lg: 0 28px 64px rgba(6, 40, 16, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: 20px;
  --strip-h: 36px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

/* Shared pieces
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--eyebrow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--lime);
}

.text-gradient {
  background: linear-gradient(90deg, var(--lime), #c8f27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--large {
  min-height: 54px;
  padding-inline: 1.6rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 91, 31, 0.24);
}

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

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(117, 212, 0, 0.28);
}

.btn--lime:hover {
  background: #86e40f;
}

.btn--ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--primary);
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
}

.btn--light {
  background: #ffffff;
  color: var(--primary);
}

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

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn--outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  color: var(--primary);
  font-weight: 700;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 200ms var(--ease);
}

.link-arrow:hover svg,
.card:hover .link-arrow svg {
  transform: translateX(4px);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c6dbc2;
  box-shadow: var(--shadow);
}

.icon-chip {
  display: inline-grid;
  flex: none;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(117, 212, 0, 0.2), rgba(0, 91, 31, 0.1));
  color: var(--primary);
}

.icon-chip svg {
  width: 26px;
  height: 26px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(0, 91, 31, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #8a3c0c;
}

.tag--lime {
  background: rgba(117, 212, 0, 0.2);
  color: #356000;
}

.tag--teal {
  background: rgba(13, 148, 136, 0.12);
  color: #0f6b63;
}

.tag--blue {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: calc(var(--strip-h) * -1);
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(6, 40, 16, 0.08);
}

.top-strip {
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 55%, #0a6e27);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.top-strip__inner {
  display: flex;
  height: var(--strip-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-strip__tagline {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-strip__links {
  display: flex;
  flex: none;
  gap: 1.25rem;
}

.top-strip__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.top-strip__links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-strip svg {
  width: 14px;
  height: 14px;
  color: var(--lime);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--primary);
  font-family: Poppins, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand__mark {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: #ffffff;
  background-image: url("./assets/the-next-project-brand.png");
  background-position: center 16%;
  background-repeat: no-repeat;
  background-size: 250%;
}

.brand__text {
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li > a,
.dropdown-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.8rem;
  background: transparent;
  color: #2d3b32;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.nav-list > li > a:hover,
.dropdown-toggle:hover,
.has-dropdown.is-open .dropdown-toggle {
  background: var(--surface-alt);
  color: var(--primary);
}

.nav-list > li > a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--primary);
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}

.has-dropdown.is-open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  min-width: 260px;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 200ms ease, transform 200ms var(--ease), visibility 200ms;
}

/* Invisible bridge so the menu doesn't close while the pointer crosses the gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.dropdown-menu a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.dropdown-menu svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
}

.nav-actions__secondary {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (hover: hover) and (min-width: 1181px) {
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* Heroes
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--ink);
  color: #ffffff;
}

.hero h1,
.hero h2,
.hero h3 {
  color: #ffffff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(117, 212, 0, 0.3), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(27, 163, 0, 0.22), transparent 45%),
    linear-gradient(135deg, #02210b 0%, #003f16 52%, #005b1f 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero__lead {
  max-width: 620px;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__points svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.hero-network {
  position: relative;
  min-height: 440px;
}

.hero-network::before,
.hero-network::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-network::before {
  width: min(380px, 86%);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.hero-network::after {
  width: min(250px, 60%);
  border: 1px solid rgba(117, 212, 0, 0.25);
}

.network-center,
.network-card {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.network-center {
  left: 50%;
  top: 50%;
  display: grid;
  width: 172px;
  height: 172px;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  border-radius: 28px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.network-center .brand__mark {
  width: 58px;
  height: 58px;
  border: 0;
  margin-bottom: 0.2rem;
}

.network-center strong {
  font-family: Poppins, sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
}

.network-center span:last-child {
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.network-card {
  display: flex;
  width: 142px;
  height: 108px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.network-card svg {
  width: 28px;
  height: 28px;
  color: var(--lime);
}

.network-card--one {
  left: 4%;
  top: 4%;
}

.network-card--two {
  right: 3%;
  top: 12%;
  animation-delay: 0.8s;
}

.network-card--three {
  left: 1%;
  bottom: 10%;
  animation-delay: 1.6s;
}

.network-card--four {
  right: 8%;
  bottom: 2%;
  animation-delay: 2.4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero--page {
  padding: clamp(64px, 9vw, 112px) 0;
}

.hero__inner {
  max-width: 860px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.summary-grid div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.summary-grid strong {
  display: block;
  color: var(--lime);
  font-family: Poppins, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.summary-grid span {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
}

.search-panel {
  display: flex;
  max-width: 680px;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.search-panel__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-panel__field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem 0 2.8rem;
  background: #ffffff;
  color: var(--text);
}

.search-panel input:focus-visible {
  outline-offset: 0;
}

/* Sections
   ========================================================================== */

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section--white {
  background: var(--surface);
}

.section--tint {
  background: var(--bg);
}

.section--flush-top {
  padding-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading > p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading--row {
  display: flex;
  max-width: none;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section-heading--row > div {
  max-width: 720px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.content-panel > p:not(.eyebrow) {
  margin: 1.1rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  color: var(--primary);
  font-family: Poppins, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--text);
  font-weight: 500;
}

.check-list svg {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  padding: 5px;
  background: rgba(27, 163, 0, 0.12);
  color: var(--accent);
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-grid > * {
  grid-column: span 2;
}

.service-grid > :nth-child(4),
.service-grid > :nth-child(5) {
  grid-column: span 3;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  padding: 1.75rem;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card p {
  flex: 1;
  color: var(--muted);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
}

.feature-card h3 {
  font-size: 1.05rem;
}

.feature-card p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Media cards (projects, news, articles, case studies) */

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

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.media-card:hover .media-card__img img {
  transform: scale(1.05);
}

.media-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem;
}

.media-card__body > p {
  color: var(--muted);
}

.media-card__body .link-arrow {
  margin-top: auto;
  padding-top: 0.4rem;
}

/* Testimonials */

.testimonial-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.testimonial-track {
  display: grid;
}

.testimonial {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 450ms ease, transform 450ms var(--ease), visibility 450ms;
}

.testimonial.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.testimonial img {
  width: 120px;
  height: 120px;
  border: 4px solid var(--lime-soft);
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  color: #e9a300;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.testimonial blockquote {
  margin: 0.5rem 0 1.1rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

.testimonial h3 {
  font-size: 1rem;
}

.testimonial span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.slider-btn {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.slider-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
}

.slider-dot {
  border: 0;
  padding: 8px;
  background: none;
  cursor: pointer;
}

.slider-dot::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c5d6c2;
  transition: width 300ms var(--ease), background-color 300ms ease;
}

.slider-dot[aria-current="true"]::before {
  width: 28px;
  background: var(--primary);
}

/* Careers band */

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #d3e8cc;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--lime-soft), #e3f3e6);
}

.band h2 {
  max-width: 660px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

/* CTA */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #0d7a2c);
  color: #ffffff;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 90% 10%, rgba(117, 212, 0, 0.35), transparent 40%);
}

.cta h2 {
  color: #ffffff;
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.cta__inner p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.86);
}

.cta .button-row {
  margin-top: 0;
}

/* Portfolio
   ========================================================================== */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.toolbar h2 {
  max-width: 640px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.filter-status {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.case-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.case-card--featured .media-card__img {
  flex: 0 0 55%;
  aspect-ratio: auto;
  min-height: 380px;
}

.case-card--featured .media-card__body {
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.case-card--featured h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.6rem;
  margin: 0.25rem 0 0;
}

.case-meta div {
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  background: var(--surface-alt);
}

.case-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  padding: 1.5rem;
}

.process-step__num {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-weight: 700;
}

.process-step p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  border: 1px dashed #c6d8c2;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

/* Blog
   ========================================================================== */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.blog-layout .media-card__img {
  aspect-ratio: 16 / 8;
}

.blog-layout .media-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.is-filtering .editor-picks {
  display: none;
}

.is-filtering .blog-layout {
  grid-template-columns: minmax(0, 1fr);
}

.editor-picks {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--lime-soft), var(--surface) 45%);
  box-shadow: var(--shadow-sm);
}

.editor-picks h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.editor-picks ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pick;
}

.editor-picks li {
  counter-increment: pick;
}

.editor-picks a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.9rem;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  transition: color 150ms ease;
}

.editor-picks li:first-child a {
  border-top: 0;
}

.editor-picks a::before {
  content: counter(pick, decimal-leading-zero);
  grid-row: span 2;
  color: var(--accent);
  font-family: Poppins, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.editor-picks a:hover {
  color: var(--primary);
}

.editor-picks span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.resource-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  color: var(--ink);
  font-weight: 700;
}

.resource-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.resource-card__label svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 200ms var(--ease);
}

.resource-card:hover .resource-card__label svg {
  transform: translateX(4px);
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
  border: 1px solid #d3e8cc;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--lime-soft), #e3f3e6);
}

.newsletter-panel p:not(.eyebrow) {
  margin-top: 0.8rem;
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 1.2rem;
  background: #ffffff;
  color: var(--text);
}

.form-note {
  margin-top: 0.75rem !important;
  font-size: 0.88rem;
}

.form-note.is-success {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Footer
   ========================================================================== */

.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 28px;
  background: #04170a;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)) 1.4fr;
  gap: 2.5rem;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-about p {
  max-width: 320px;
  margin-top: 1rem;
}

.brand--footer {
  color: #ffffff;
}

.brand--footer .brand__mark {
  border-color: transparent;
}

.footer-links,
.contact-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.contact-list a {
  transition: color 150ms ease;
}

.footer-links a:hover,
.contact-list a:hover {
  color: #ffffff;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-list svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--lime);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.socials a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: background-color 200ms ease, color 200ms ease;
}

.socials a:hover {
  background: var(--lime);
  color: var(--ink);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.map-box {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(117, 212, 0, 0.2), rgba(0, 91, 31, 0.35));
  color: #ffffff;
  font-weight: 600;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.map-box:hover {
  border-color: var(--lime);
}

.map-box svg {
  width: 20px;
  height: 20px;
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 200ms ease, transform 200ms var(--ease), visibility 200ms, background-color 200ms ease;
}

.scroll-top:hover {
  background: var(--primary-dark);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Reveal on scroll — only hides content once JS has loaded.
   Uses `translate` so it never fights with hover `transform`. */

.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 700ms var(--ease) var(--reveal-delay, 0ms),
    translate 700ms var(--ease) var(--reveal-delay, 0ms),
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease),
    border-color 250ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100vh - var(--nav-h) - 24px);
    max-height: calc(100dvh - var(--nav-h) - 24px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms var(--ease), visibility 200ms;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list > li > a,
  .dropdown-toggle {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    border-radius: var(--radius-sm);
    padding: 0 0.9rem;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    padding: 0.35rem;
    background: var(--bg);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .has-dropdown.is-open .dropdown-menu {
    display: grid;
    transform: none;
  }

  .nav-actions {
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

  .nav-actions__secondary {
    display: inline-flex;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-network {
    width: min(100%, 520px);
    margin-inline: auto;
  }

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

  .service-grid > *,
  .service-grid > :nth-child(4) {
    grid-column: auto;
  }

  .service-grid > :nth-child(5) {
    grid-column: 1 / -1;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 900px) {
  .split,
  .cta__inner,
  .newsletter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse > :first-child {
    order: 2;
  }

  .image-panel img {
    min-height: 320px;
    max-height: 420px;
  }

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

  .feature-grid,
  .grid-3,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card--featured {
    flex-direction: column;
  }

  .case-card--featured .media-card__img {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

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

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

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --nav-h: 68px;
  }

  .top-strip__links a[href^="mailto"] {
    display: none;
  }

  .brand {
    font-size: 1rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .hero__points {
    flex-direction: column;
  }

  .hero .button-row .btn,
  .cta .button-row .btn,
  .band .btn {
    flex: 1 1 100%;
  }

  .band {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-network {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-network::before,
  .hero-network::after,
  .network-center {
    display: none;
  }

  .network-card {
    position: static;
    width: auto;
    height: 96px;
    animation: none;
  }

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

  .service-grid,
  .feature-grid,
  .grid-3,
  .case-grid,
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-grid > :nth-child(5) {
    grid-column: auto;
  }

  .service-card {
    padding: 1.4rem;
  }

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

  .slider-btn {
    display: none;
  }

  .testimonial {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1rem;
    text-align: center;
  }

  .testimonial img {
    width: 88px;
    height: 88px;
  }

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

  .summary-grid div {
    padding: 0.85rem 0.75rem;
  }

  .summary-grid strong {
    font-size: 1.5rem;
  }

  .summary-grid span {
    font-size: 0.78rem;
  }

  .search-panel {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
  }

  .search-panel__field {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
  }

  /* Swipeable filter row on small screens */
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter);
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .resource-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .resource-card__label {
    flex: 1;
  }

  .top-strip__tagline {
    display: none;
  }

  .top-strip__inner {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .brand__text {
    font-size: 0.92rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
