/* Env-Analytics — site styles */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
}

html[data-theme="ocean"] {
  --color-deep: #0c2f33;
  --color-teal: #1a5c62;
  --color-teal-mid: #2a7a82;
  --color-sand: #f4f0e8;
  --color-sand-dark: #e8e2d6;
  --color-coral: #c45c4a;
  --color-coral-soft: #e8a090;
  --color-text: #1a2426;
  --color-text-muted: #4a5a5d;
  --color-white: #fdfcfa;
  --shadow-soft: 0 18px 50px color-mix(in srgb, var(--color-deep) 14%, transparent);
  --shadow-btn: 0 4px 14px color-mix(in srgb, var(--color-deep) 32%, transparent);
}

html[data-theme="forest"] {
  --color-deep: #1b2e24;
  --color-teal: #2a4d3e;
  --color-teal-mid: #3d7a5c;
  --color-sand: #f3f6f2;
  --color-sand-dark: #e5ebe3;
  --color-coral: #9d4a2c;
  --color-coral-soft: #c4a882;
  --color-text: #1a2219;
  --color-text-muted: #4a564e;
  --color-white: #fcfdfb;
  --shadow-soft: 0 18px 50px color-mix(in srgb, var(--color-deep) 16%, transparent);
  --shadow-btn: 0 4px 14px color-mix(in srgb, var(--color-deep) 30%, transparent);
}

html[data-theme="slate"] {
  --color-deep: #0f172a;
  --color-teal: #1e3a5f;
  --color-teal-mid: #0ea5e9;
  --color-sand: #f8fafc;
  --color-sand-dark: #e2e8f0;
  --color-coral: #d97706;
  --color-coral-soft: #fbbf24;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 50px color-mix(in srgb, var(--color-deep) 12%, transparent);
  --shadow-btn: 0 4px 14px color-mix(in srgb, var(--color-deep) 28%, transparent);
}

html[data-theme="dusk"] {
  --color-deep: #2a1f3d;
  --color-teal: #4a3f6b;
  --color-teal-mid: #7c6e9e;
  --color-sand: #faf8fc;
  --color-sand-dark: #ebe4f4;
  --color-coral: #7c3aed;
  --color-coral-soft: #c4b5fd;
  --color-text: #1f1630;
  --color-text-muted: #5c5470;
  --color-white: #fefeff;
  --shadow-soft: 0 18px 50px color-mix(in srgb, var(--color-deep) 12%, transparent);
  --shadow-btn: 0 4px 14px color-mix(in srgb, var(--color-deep) 26%, transparent);
}

/* Base for continuous blend mode (palette overridden each frame in JS) */
html[data-theme="blend"] {
  --color-deep: #0c2f33;
  --color-teal: #1a5c62;
  --color-teal-mid: #2a7a82;
  --color-sand: #f4f0e8;
  --color-sand-dark: #e8e2d6;
  --color-coral: #c45c4a;
  --color-coral-soft: #e8a090;
  --color-text: #1a2426;
  --color-text-muted: #4a5a5d;
  --color-white: #fdfcfa;
  --shadow-soft: 0 18px 50px color-mix(in srgb, var(--color-deep) 14%, transparent);
  --shadow-btn: 0 4px 14px color-mix(in srgb, var(--color-deep) 32%, transparent);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-sand);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-deep);
  color: var(--color-white);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px))
    max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-sand) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 12%, transparent);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  overflow: visible;
}

.header-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  min-width: 0;
  overflow: visible;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-field {
  position: relative;
  z-index: 55;
  display: flex;
  align-items: center;
}

/* Icon opens a small custom menu (no native <select> = no full-screen OS picker) */
.theme-compact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-teal) 12%, transparent);
  background: color-mix(in srgb, var(--color-white) 65%, var(--color-sand));
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.theme-compact-btn:hover {
  border-color: color-mix(in srgb, var(--color-teal-mid) 26%, transparent);
  background: color-mix(in srgb, var(--color-white) 78%, var(--color-sand));
}

.theme-compact-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-teal-mid) 42%, transparent);
  outline-offset: 2px;
  border-color: color-mix(in srgb, var(--color-teal-mid) 32%, transparent);
}

.theme-compact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--color-text-muted) 88%, var(--color-teal));
  pointer-events: none;
}

.theme-compact-btn:hover .theme-compact-icon {
  color: var(--color-teal);
}

/* Fixed + JS placement: escapes sticky/backdrop-filter clipping of absolute children */
.theme-menu {
  position: fixed;
  z-index: 250;
  min-width: 7.5rem;
  max-width: min(11rem, calc(100vw - 1rem));
  padding: 0.2rem;
  margin: 0;
  box-sizing: border-box;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-teal) 14%, transparent);
  box-shadow: var(--shadow-soft);
}

.theme-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.4rem 0.55rem;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text-muted);
  cursor: pointer;
}

.theme-menu-item:hover,
.theme-menu-item:focus-visible {
  background: color-mix(in srgb, var(--color-teal) 8%, transparent);
  color: var(--color-deep);
  outline: none;
}

.theme-menu-item.is-active {
  font-weight: 700;
  color: var(--color-teal);
  background: color-mix(in srgb, var(--color-teal) 9%, transparent);
}

.lang-toggle {
  display: flex;
  gap: 0.12rem;
  padding: 0.2rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--color-teal) 18%, transparent);
  background: color-mix(in srgb, var(--color-white) 75%, var(--color-sand));
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.3rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--color-teal-mid);
  outline-offset: 2px;
}

.lang-btn[aria-pressed="true"] {
  background: var(--color-white);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-deep) 14%, transparent);
}

.lang-flag {
  width: 1.7rem;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  display: block;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-deep) 14%, transparent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    var(--color-teal-mid) 0%,
    var(--color-deep) 55%,
    var(--color-coral-soft) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-teal) 35%, transparent);
  background: var(--color-white);
  color: var(--color-deep);
  cursor: pointer;
}

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

.nav-list a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-teal);
  border-bottom-color: var(--color-coral-soft);
}

.nav-cta {
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: var(--color-deep);
  color: var(--color-white) !important;
  border: none !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--color-teal);
  color: var(--color-white) !important;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% -10%,
      color-mix(in srgb, var(--color-teal-mid) 35%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 100%,
      color-mix(in srgb, var(--color-coral) 18%, transparent),
      transparent 50%
    ),
    linear-gradient(180deg, var(--color-sand) 0%, var(--color-sand-dark) 100%);
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(72px, 11vw, 120px);
  z-index: 1;
  display: block;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-deep);
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.hero-value {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-value {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.vp-block {
  padding: 1.15rem 1.25rem;
  background: color-mix(in srgb, var(--color-white) 88%, transparent);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--color-teal) 14%, transparent);
}

.vp-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 0.5rem;
}

.vp-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

.service-pillars {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .service-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  box-shadow: var(--shadow-soft);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-deep);
  margin: 0 0 0.5rem;
}

.pillar-outcome {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-teal);
  line-height: 1.45;
}

.pillar-list {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pillar-list li {
  margin-bottom: 0.45rem;
}

.pillar-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  border-bottom: 2px solid var(--color-coral-soft);
}

.pillar-cta:hover,
.pillar-cta:focus-visible {
  color: var(--color-deep);
  border-bottom-color: var(--color-teal-mid);
}

.industry-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.industry-card {
  padding: 1.45rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  box-shadow: var(--shadow-soft);
}


.industry-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-deep);
  margin: 0 0 0.5rem;
}

.industry-outcome {
  margin: 0 0 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-teal);
  line-height: 1.45;
}

.industry-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.industry-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  border-bottom: 2px solid var(--color-coral-soft);
}

.industry-cta:hover,
.industry-cta:focus-visible {
  color: var(--color-deep);
}

.project-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  box-shadow: var(--shadow-soft);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--color-deep);
  margin: 0 0 0.35rem;
}

.project-meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-coral);
}

.project-outcome {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.section-cta-row {
  margin: 2rem 0 0;
  text-align: center;
}

.lead-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .lead-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lead-card {
  padding: 1.5rem 1.55rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  box-shadow: var(--shadow-soft);
}

.lead-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--color-deep);
  margin: 0 0 0.65rem;
}

.lead-card p {
  margin: 0 0 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.btn-block {
  width: 100%;
  border-radius: 10px;
}

.about-lead {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-deep);
  margin: 2rem 0 0.85rem;
}

.about-subtitle:first-of-type {
  margin-top: 0;
}

.about-exp-list {
  margin-bottom: 0;
}

.about-diving,
.about-cross {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 68ch;
}

.steps-compact {
  margin-bottom: 0.5rem;
}

.steps-compact .step-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.3rem;
  color: var(--color-deep);
}

.steps-compact .step-p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-ghost-light {
  background: transparent;
  color: var(--color-white);
  border-color: color-mix(in srgb, var(--color-white) 55%, transparent);
}

.cta-ghost-light:hover,
.cta-ghost-light:focus-visible {
  background: color-mix(in srgb, var(--color-white) 12%, transparent);
  border-color: var(--color-white);
  color: var(--color-white);
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-deep);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-teal);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-deep);
  border: 1px solid color-mix(in srgb, var(--color-teal) 28%, transparent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-teal-mid);
  color: var(--color-teal);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: var(--color-sand);
}

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

.section-head {
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  color: var(--color-deep);
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
}

.section-head-wide {
  max-width: min(100%, 65ch);
}

.checklist-spread li {
  margin-bottom: 1.15rem;
}

.checklist-spread li:last-child {
  margin-bottom: 0;
}

.misc-kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-teal);
  margin-bottom: 0.35rem;
}

.misc-list .misc-kicker + span {
  color: var(--color-text-muted);
  display: block;
}

.bg-sub {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--color-teal) 12%, transparent);
  max-width: min(100%, 68ch);
}

.bg-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-deep);
  margin: 0 0 0.85rem;
}

.bg-exp-list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.bg-exp-list li {
  margin-bottom: 0.55rem;
}

.bg-exp-list li:last-child {
  margin-bottom: 0;
}

.bg-subtext {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  border: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-teal);
  margin: 0 0 0.65rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Split */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  color: var(--color-deep);
  margin: 0 0 1rem;
}

.split-text > p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--color-text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-mid), var(--color-coral));
}

.split-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-teal) 12%, var(--color-sand)) 0%,
    var(--color-sand) 100%
  );
  border: 1px solid color-mix(in srgb, var(--color-teal) 14%, transparent);
}

.stat-block {
  padding: 1rem 1.15rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--color-teal) 8%, transparent);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-deep);
}

/* Steps */

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

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  background: var(--color-teal);
  border-radius: 10px;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--color-deep);
}

.steps p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* CTA */

.section-cta {
  background: linear-gradient(
    135deg,
    var(--color-deep) 0%,
    var(--color-teal) 45%,
    color-mix(in srgb, var(--color-teal-mid) 85%, var(--color-deep)) 100%
  );
  color: var(--color-sand);
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.cta-inner {
  text-align: center;
  max-width: 56ch;
}

.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  color: var(--color-white);
  margin: 0 0 1rem;
}

.section-cta .contact-lead {
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.contact-email {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-email a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  color: var(--color-sand);
}

.contact-web {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.contact-web a {
  color: var(--color-sand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-web a:hover,
.contact-web a:focus-visible {
  color: var(--color-white);
}

/* Footer */

.site-footer {
  padding: 2rem 0 max(2.5rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
  background: var(--color-deep);
  color: color-mix(in srgb, var(--color-sand) 75%, transparent);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  color: var(--color-sand);
}

.footer-site {
  margin: 0;
}

.footer-site a {
  color: color-mix(in srgb, var(--color-sand) 88%, transparent);
  text-decoration: none;
}

.footer-site a:hover,
.footer-site a:focus-visible {
  color: var(--color-sand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-tag {
  margin: 0;
  max-width: 40rem;
}

/* Field data app launcher */

.field-data-section {
  background: color-mix(in srgb, var(--color-sand-dark) 55%, var(--color-white));
}

.field-data-card {
  max-width: 44rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-teal) 12%, transparent);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.field-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.field-demo-readme {
  text-decoration: none;
}

.field-demo-status,
.photo-map-status {
  margin: 0.65rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.field-demo-offline,
.photo-map-offline {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-coral-soft) 22%, var(--color-white));
  border: 1px solid color-mix(in srgb, var(--color-coral) 28%, transparent);
}

.field-demo-offline-title,
.photo-map-offline-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.field-demo-offline-body,
.photo-map-offline-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.field-demo-offline-body code,
.photo-map-offline-body code,
#i18n-field-demo-intro code {
  font-size: 0.88em;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-sand-dark) 80%, transparent);
}

/* Mobile nav & small screens */

@media (max-width: 720px) {
  .nav {
    margin-right: 0;
    order: 2;
  }

  .header-tools {
    order: 1;
    gap: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
  }

  /*
    Fixed to the viewport so the panel is never shifted off-screen (sticky + backdrop-filter
    can make absolute positioning relative to a box that does not match the visual header).
    Top is set from JS: --ea-nav-top = measured .site-header height.
  */
  .nav-list {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ea-nav-top, 4.25rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: var(--color-white);
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid color-mix(in srgb, var(--color-teal) 15%, transparent);
    border-top: none;
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: 100;
    max-height: min(32rem, calc(100dvh - var(--ea-nav-top, 4.25rem) - 0.5rem));
    max-height: min(32rem, calc(100vh - var(--ea-nav-top, 4.25rem) - 0.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 8%, transparent);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border: none;
    min-height: 2.75rem;
    box-sizing: border-box;
  }

  .nav-cta {
    margin: 0.5rem 1rem 0.65rem;
    text-align: center;
    justify-content: center;
    min-height: 2.75rem;
  }

  .theme-compact-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .theme-compact-icon svg {
    width: 19px;
    height: 19px;
  }

  .theme-menu {
    font-size: 0.875rem;
  }

  .theme-menu-item {
    font-size: 0.875rem;
    padding: 0.5rem 0.65rem;
    min-height: 2.5rem;
  }

  .lang-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.45rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 5.5vw + 0.5rem, 2.65rem);
    max-width: none;
  }

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

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 2.75rem;
  }

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

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-email {
    font-size: clamp(1rem, 4vw, 1.2rem);
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .pillar-card,
  .industry-card,
  .project-card,
  .lead-card,
  .card {
    padding: 1.25rem 1.2rem;
  }

  .lead-grid .btn-block {
    min-height: 2.75rem;
  }
}

body.nav-menu-open {
  overflow: hidden;
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.08rem;
    gap: 0.45rem;
  }

  .logo-mark {
    width: 1.75rem;
    height: 1.75rem;
  }
}
