/* =====================================================================
   Gem Peak Pets — Shared Stylesheet
   Apple-inspired minimalist design system
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --bg3: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted2: #86868b;
  --rule: #d2d2d7;
  --accent: #0a5c4b;       /* deep emerald — premium, science, nature */
  --accent-soft: #0a5c4b14;
  --accent2: #0e7490;      /* teal — supporting */
  --accent-ink: #07463a;

  /* Typography */
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-body: 17px;
  --lh-body: 1.6;

  /* Spacing & shape */
  --maxw: 1040px;
  --maxw-narrow: 720px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 980px;
  --section-pad: clamp(5rem, 10vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typography Scale ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--ink);
}

.display {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.028em; line-height: 1.1; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 1.15rem; letter-spacing: -0.015em; }

p { color: var(--ink); }
.lead { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--section-pad) 0; }
.section-tight { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.bg-alt { background: var(--bg2); }
.bg-tint { background: var(--bg3); }
.center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 52px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.brand-logo {
  width: 58px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 8px;
  background: #fff;
}
.brand-lockup {
  display: block;
  width: 156px;
  height: auto;
  object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.2s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  opacity: 1;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent-ink); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.6rem; }
.link-arrow svg { width: 0.9em; height: 0.9em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--bg3) 0%, var(--bg) 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { color: var(--muted); max-width: 720px; margin: 0 auto 2.5rem; }

.hero-page {
  min-height: 62vh;
  padding: 9rem 1.5rem 4rem;
}

/* ---------- Background-image Hero ---------- */
.hero-bg {
  background-color: #0b1a16;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Dark gradient overlay for text readability (overrides .hero::before glow) */
.hero-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  transform: none;
  filter: none;
  background: linear-gradient(
    180deg,
    rgba(6,24,18,0.62) 0%,
    rgba(6,24,18,0.28) 30%,
    rgba(6,24,18,0.38) 58%,
    rgba(6,24,18,0.72) 100%
  );
  z-index: 0;
}
/* Smooth fade-to-white at the bottom for seamless transition into content */
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 88%);
  z-index: 1;
  pointer-events: none;
}
.hero-bg .hero-inner { z-index: 2; }
.hero-bg .eyebrow { color: rgba(255,255,255,0.80); }
.hero-bg h1 { color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.hero-bg .lead { color: rgba(255,255,255,0.90); text-shadow: 0 1px 20px rgba(0,0,0,0.25); }
.hero-bg .btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-bg .btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
}
.hero-page.hero-bg { min-height: 72vh; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(10, 92, 75, 0.28);
  border-color: transparent;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

.feature-band {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Section heading block ---------- */
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 1rem; display: inline-block; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head p { font-size: 1.2rem; color: var(--muted); line-height: 1.55; }

/* ---------- How We Work (numbered list) ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  counter-increment: step;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 3rem;
}
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: var(--section-pad) 1.5rem;
  background:
    radial-gradient(100% 120% at 50% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--bg2);
}
.cta-band h2 { margin-bottom: 1.25rem; }
.cta-band p { color: var(--muted); font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Services scope list ---------- */
.service-block { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.service-block:first-of-type { border-top: none; }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.service-block h3 { margin-bottom: 1rem; }
.service-block > .service-grid > div:first-child p { color: var(--muted); font-size: 1.08rem; }
.scope-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 1rem;
}
.scope-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.scope-list li:last-child { border-bottom: none; }
.scope-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Differentiators / value list ---------- */
.value-list { display: grid; gap: 1.5rem; }
.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.6rem 0;
}
.value-check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-check svg { width: 16px; height: 16px; }
.value-item h4 { margin-bottom: 0.3rem; }
.value-item p { color: var(--muted); font-size: 1rem; }

/* ---------- Contact form ---------- */
.form { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; margin-top: 0.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
  background: var(--bg3);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-meta { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Image Showcase ---------- */
.hero-visual {
  width: 100%;
  max-width: var(--maxw);
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -32px rgba(10, 92, 75, 0.35), 0 8px 24px -12px rgba(0,0,0,0.12);
  display: block;
}

/* Full-bleed image section */
.image-band {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-band.tall { height: 60vh; min-height: 380px; }
.image-band.medium { height: 44vh; min-height: 300px; }
.image-band.rounded img { border-radius: var(--radius-lg); }
.image-band.rounded {
  padding: 0 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.image-band.rounded img { height: auto; max-height: 540px; }

/* Parallax-like fixed bg image section */
.image-fixed {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 52vh;
  min-height: 360px;
  position: relative;
}
.image-fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,92,75,0.12) 0%, rgba(10,92,75,0.28) 100%);
}

/* Split image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(10, 92, 75, 0.30);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split.reverse .split-img { order: 2; }

/* Floating caption over image */
.img-caption {
  position: absolute;
  left: 2rem; bottom: 2rem;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.img-caption .eyebrow { color: rgba(255,255,255,0.85); }
.img-caption h3 { color: #fff; margin-top: 0.5rem; }

/* CTA with background image */
.cta-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  max-width: var(--maxw);
  margin: 0 auto;
}
.cta-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,70,58,0.82) 0%, rgba(10,92,75,0.68) 100%);
  z-index: 1;
}
.cta-image-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-image-inner h2 { color: #fff; }
.cta-image-inner p { color: rgba(255,255,255,0.85); }
.cta-image .btn-primary { background: #fff; color: var(--accent-ink); }
.cta-image .btn-primary:hover { background: var(--bg2); }

/* Card with top image */
.card-img-top {
  overflow: hidden;
  padding: 0;
}
.card-img-top .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card-img-top .card-body { padding: 2.5rem 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .service-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .contact-grid, .split { gap: 2.5rem; }
  .split.reverse .split-img { order: 0; }
  .image-fixed { background-attachment: scroll; }
}

@media (max-width: 640px) {
  :root { --fs-body: 16px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    color: var(--ink);
    padding: 0.4rem;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--rule);
  }
  .grid-4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .card { padding: 2rem 1.6rem; }
}

/* ---------- 2026 brand refinement ---------- */
:root {
  --accent: #0b6654;
  --accent-ink: #06483c;
  --accent-soft: rgba(11, 102, 84, 0.10);
  --warm: #f3eee4;
  --night: #08231d;
  --maxw: 1180px;
}

body { background: #fcfdfb; }
.nav { height: 116px; background: rgba(252,253,251,.88); }
.nav-inner { max-width: 1180px; }
.nav .brand {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 132px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav .brand-logo {
  width: 76px;
  height: 38px;
  filter: drop-shadow(0 3px 5px rgba(4,36,28,.10));
  transition: transform .3s var(--ease);
}
.nav .brand:hover .brand-logo { transform: translateY(-2px); }
.nav .brand-lockup {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(4,36,28,.10));
  transition: transform .3s var(--ease);
}
.nav .brand:hover .brand-lockup { transform: translateY(-2px); }
.brand-mark { width: 28px; height: 28px; border: 1px solid rgba(11,102,84,.22); border-radius: 50%; }
.nav-links a[aria-current="page"] { color: var(--accent); opacity: 1; }
.hero { min-height: 92vh; }
.hero-bg { background-position: center 42%; }
.hero-science { background-position: center center; }
.hero-bg::before { background: linear-gradient(90deg, rgba(4,24,19,.87) 0%, rgba(4,24,19,.66) 45%, rgba(4,24,19,.25) 100%); }
.hero-bg .hero-inner { max-width: 1180px; width: 100%; text-align: left; }
.hero-bg .display { max-width: 820px; font-size: clamp(3.35rem, 7.5vw, 6.7rem); }
.hero-bg .lead { margin-left: 0; max-width: 680px; }
.hero-bg .hero-inner > div { justify-content: flex-start !important; }
.hero-bg .btn-ghost { color: #fff; border-color: rgba(255,255,255,.48); backdrop-filter: blur(8px); }
.hero-bg .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.proof-strip { background: var(--night); color: rgba(255,255,255,.78); border-top: 1px solid rgba(255,255,255,.1); }
.proof-strip-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.proof-strip span:not(:last-child)::after { content: "·"; margin-left: clamp(1rem,3vw,3rem); color: #a9cbbb; }

.section-head { max-width: 760px; margin-left: auto; margin-right: auto; }
.capability-grid { counter-reset: capability; }
.capability-grid .card { counter-increment: capability; position: relative; min-height: 330px; padding: 2rem; overflow: hidden; }
.capability-grid .card::after { content: "0" counter(capability); position: absolute; right: 1.4rem; top: 1rem; color: rgba(11,102,84,.22); font-size: .82rem; font-weight: 700; letter-spacing: .1em; }
.capability-grid .card:nth-child(even) { background: var(--night); border-color: var(--night); }
.capability-grid .card:nth-child(even) h3 { color: #fff; }
.capability-grid .card:nth-child(even) p { color: rgba(255,255,255,.66); }
.capability-grid .card:nth-child(even) .card-icon { color: #b8ddcb; background: rgba(255,255,255,.08); }
.split-img, .cta-image { box-shadow: 0 24px 70px rgba(4,36,28,.14); }
.cta-image { min-height: 480px; }
.form { background: #fff; padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid rgba(11,102,84,.14); border-radius: 26px; box-shadow: 0 20px 60px rgba(4,36,28,.08); }
.form-status { margin-top: .65rem; color: var(--accent); font-weight: 600; font-size: .9rem; min-height: 1.4em; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #9b2c2c; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form .btn:disabled { cursor: wait; opacity: .72; transform: none; }
.footer { background: var(--night); border-top: 0; }
.footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links a { color: #fff; }
.footer-meta { color: rgba(255,255,255,.58); }
.footer .brand-mark { border-color: rgba(255,255,255,.25); }
.footer .brand-mark path { stroke: #b8ddcb; }
.footer .brand-logo-wrap {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.footer .brand-logo {
  width: 76px;
  height: 38px;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.18));
}
.footer .brand-lockup {
  width: 140px;
  height: auto;
}

@media (max-width: 880px) {
  .hero-bg::before { background: linear-gradient(180deg, rgba(4,24,19,.5) 0%, rgba(4,24,19,.8) 75%); }
  .hero-bg .hero-inner { text-align: center; }
  .hero-bg .lead { margin-left: auto; }
  .hero-bg .hero-inner > div { justify-content: center !important; }
  .capability-grid .card { min-height: 0; }
}

@media (max-width: 640px) {
  .nav { height: 96px; }
  .nav .brand { min-width: 108px; font-size: .66rem; letter-spacing: .1em; }
  .nav .brand-logo { width: 61px; height: 30px; }
  .nav .brand-lockup { width: 140px; height: auto; }
  .nav-links.open { top: 96px; }
  .hero { min-height: 780px; padding-top: 8rem; }
  .hero-bg { background-position: 62% center; }
  .hero-science { background-position: 68% center; }
  .hero-bg .display { font-size: clamp(3rem,15vw,4.25rem); }
  .proof-strip-inner { justify-content: center; padding-block: .8rem; }
  .proof-strip span::after { display: none; }
  .cta-image { min-height: 440px; }
  .form { padding: 1.25rem; border-radius: 20px; }
  .footer-brand { align-items: center; }
  .footer .brand-logo { width: 68px; height: 34px; }
  .footer .brand-lockup { width: 140px; height: auto; }
}
