@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

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

:root {
  color-scheme: light dark;
  --bg: #f4f7f3;
  --bg-soft: #edf3ee;
  --surface: #fbfcfa;
  --surface-solid: #fdfefc;
  --ink: #0b201b;
  --ink-soft: #28443d;
  --muted: #5b6f68;
  --line: #cddbd4;
  --line-strong: #9db7ac;
  --brand: #0b7d6d;
  --brand-deep: #075c50;
  --mint: #bfe8dc;
  --mint-soft: #e0f2ec;
  --cream: #f1eee5;
  --warning: #855419;
  --warning-bg: #f7ead3;
  --danger: #9a3732;
  --danger-bg: #f8e2df;
  --shadow: 0 20px 60px rgba(12, 45, 37, 0.12);
  --shadow-soft: 0 10px 30px rgba(12, 45, 37, 0.08);
  --radius: 16px;
  --radius-small: 10px;
  --max: 1320px;
  --pad: clamp(18px, 4vw, 56px);
  --section: clamp(48px, 4.2vw, 68px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1815;
    --bg-soft: #10241f;
    --surface: #132923;
    --surface-solid: #162f28;
    --ink: #ecf5f1;
    --ink-soft: #c4d8d0;
    --muted: #94ada4;
    --line: #29473e;
    --line-strong: #40685b;
    --brand: #63cdb9;
    --brand-deep: #9ce2d4;
    --mint: #285b50;
    --mint-soft: #1a3a32;
    --cream: #1a2823;
    --warning: #f1c37f;
    --warning-bg: #3c301e;
    --danger: #f0aaa5;
    --danger-bg: #452724;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f3;
  --bg-soft: #edf3ee;
  --surface: #fbfcfa;
  --surface-solid: #fdfefc;
  --ink: #0b201b;
  --ink-soft: #28443d;
  --muted: #5b6f68;
  --line: #cddbd4;
  --line-strong: #9db7ac;
  --brand: #0b7d6d;
  --brand-deep: #075c50;
  --mint: #bfe8dc;
  --mint-soft: #e0f2ec;
  --cream: #f1eee5;
  --warning: #855419;
  --warning-bg: #f7ead3;
  --danger: #9a3732;
  --danger-bg: #f8e2df;
  --shadow: 0 20px 60px rgba(12, 45, 37, 0.12);
  --shadow-soft: 0 10px 30px rgba(12, 45, 37, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1815;
  --bg-soft: #10241f;
  --surface: #132923;
  --surface-solid: #162f28;
  --ink: #ecf5f1;
  --ink-soft: #c4d8d0;
  --muted: #94ada4;
  --line: #29473e;
  --line-strong: #40685b;
  --brand: #63cdb9;
  --brand-deep: #9ce2d4;
  --mint: #285b50;
  --mint-soft: #1a3a32;
  --cream: #1a2823;
  --warning: #f1c37f;
  --warning-bg: #3c301e;
  --danger: #f0aaa5;
  --danger-bg: #452724;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  color: var(--surface-solid);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px var(--pad);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { display: grid; line-height: 1.06; }
.brand strong { font-size: 1.08rem; letter-spacing: -0.04em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 0.66rem; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.site-nav a:hover { color: var(--brand-deep); background: var(--mint-soft); transform: translateY(-1px); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.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; }
.language-picker { display: inline-flex; align-items: center; gap: 3px; }
.language-link { display: grid; grid-template-rows: 18px 9px; justify-items: center; align-content: center; gap: 1px; width: 32px; min-width: 32px; height: 34px; border: 1px solid transparent; border-radius: 8px; color: var(--ink-soft); opacity: .72; text-decoration: none; transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.language-link svg { display: block; width: 22px; height: 15px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 2px; flex: 0 0 auto; }
.language-code { font-size: 8px; font-weight: 800; letter-spacing: .04em; line-height: 9px; }
.language-link:hover { opacity: 1; background: var(--mint-soft); transform: translateY(-1px); }
.language-link[aria-current="page"] { opacity: 1; border-color: var(--line-strong); background: var(--mint-soft); }
.language-link:focus-visible { outline: 3px solid #78d8c4; outline-offset: 2px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 82%, transparent); font-size: .72rem; font-weight: 800; cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.theme-toggle:hover { color: var(--brand-deep); background: var(--mint-soft); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0); }
.theme-toggle-icon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 16px; }
.theme-toggle-icon[hidden] { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand:not(.brand-footer) img,
  :root:not([data-theme]) .convergence-core img {
    padding: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #effbf7 0 57%, #c4ecdf 100%);
    box-shadow: 0 0 0 1px rgba(239, 251, 247, .32), 0 8px 20px rgba(0, 0, 0, .24);
  }
}

:root[data-theme="dark"] .brand:not(.brand-footer) img,
:root[data-theme="dark"] .convergence-core img {
  padding: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #effbf7 0 57%, #c4ecdf 100%);
  box-shadow: 0 0 0 1px rgba(239, 251, 247, .32), 0 8px 20px rgba(0, 0, 0, .24);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { color: #f5fffc; background: #086d5f; box-shadow: 0 9px 24px rgba(8, 109, 95, 0.24); }
.button-primary:hover { background: #075a4f; box-shadow: 0 13px 30px rgba(8, 109, 95, 0.32); }
.button-secondary { color: var(--brand-deep); border-color: var(--line-strong); background: var(--surface-solid); }
.button-secondary:hover { background: var(--mint-soft); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  min-height: min(680px, calc(100dvh - 72px));
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 58px) var(--pad);
}

.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero h1, .story h2, .final-cta h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero h1 { max-width: 650px; font-size: clamp(2.8rem, 4.6vw, 4.6rem); line-height: .98; }
.hero-copy > p { max-width: 590px; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

.hero-visual { position: relative; min-width: 0; padding: 0 0 34px 28px; }
.hero-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 1.55 / 1; object-fit: cover; }
.hero-map-crop {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 31%;
  overflow: hidden;
  border: 8px solid var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.hero-map-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 48%; }
.hero-record {
  position: absolute;
  right: -18px;
  top: 32px;
  display: grid;
  min-width: 180px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 91%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.hero-record span, .hero-record small { color: var(--muted); font-size: .7rem; }
.hero-record strong { margin: 2px 0; font-size: 1.05rem; }
.hero-trace {
  position: absolute;
  left: 41%;
  bottom: 25%;
  width: 30%;
  height: 24%;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  opacity: .72;
}

.story { position: relative; }

.story-section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--pad);
}

.section-copy { max-width: 790px; margin-bottom: clamp(26px, 3vw, 42px); }
.section-copy.compact { max-width: 700px; }
.section-copy h2, .incident-copy h2, .quiet-ai h2, .field-data-showcase h2, .open-source h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.35rem);
  line-height: 1.02;
}
.section-copy > p:not(.section-label), .incident-copy > p, .quiet-ai-copy > p, .field-data-copy > p, .open-source-copy > p {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
}
.section-label {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.hero-audience { margin-bottom: 15px; font-size: .8rem; }

.fragmentation { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: center; gap: clamp(38px, 7vw, 96px); }
.fragmentation .section-copy { margin: 0; }
.fragmentation-scene { position: relative; width: 100%; min-width: 0; }
.fragmentation-scene picture { display: block; width: 100%; max-width: 100%; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.fragmentation-scene img { display: block; width: 100%; max-width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; object-position: 60% center; }
.paper-fragments { position: absolute; inset: 0; pointer-events: none; }
.fragment {
  position: absolute;
  display: grid;
  gap: 3px;
  box-sizing: border-box;
  min-width: 126px;
  max-width: min(48%, 260px);
  padding: 10px 13px 11px 15px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: 9px;
  color: var(--ink-soft);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 96%, transparent), color-mix(in srgb, var(--mint-soft) 72%, transparent));
  box-shadow: 0 12px 24px rgba(12, 45, 37, 0.13), inset 3px 0 0 var(--brand);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}
.fragment::before {
  content: attr(data-kind);
  color: var(--brand-deep);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fragment-photo { top: 5%; left: 5%; transform: rotate(-4deg); }
.fragment-note { top: 7%; right: 5%; transform: rotate(3deg); }
.fragment-ticket { bottom: 5%; left: 7%; transform: rotate(2deg); }
.fragment-message { right: 5%; bottom: 12%; max-width: min(42%, 220px); transform: rotate(-2deg); }
.fragment-sheet { top: 43%; left: 5%; transform: rotate(4deg); }
.transition-copy { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--brand-deep); font-size: .9rem; font-weight: 800; }

.product-stage, .feed-crop, .inventory-photo, .municipal-dashboard { margin: 0; }
.product-stage picture, .municipal-dashboard picture, .feed-crop picture { display: block; }
.product-stage img, .municipal-dashboard img { display: block; width: 100%; height: auto; object-fit: contain; }
.product-stage figcaption, .municipal-dashboard figcaption, .mobile-product figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: .77rem;
}
.map-stage { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.map-stage img { aspect-ratio: auto; object-position: center; }
.map-stage figcaption { padding: 0 18px 16px; }

.animal { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.animal-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.animal-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.animal-record { padding: clamp(0px, 3vw, 28px) 0; }
.animal-record h2 { font-size: clamp(2.4rem, 4.4vw, 4.3rem); line-height: 1.02; }
.animal-record > p:not(.section-label) { color: var(--ink-soft); margin: 19px 0 28px; }
.record-list { margin: 0; }
.record-list div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.record-list div:last-child { border-bottom: 0; }
.record-list dt { color: var(--muted); font-size: .78rem; }
.record-list dd { margin: 0; font-weight: 800; }
.demo-data { display: block; margin-top: 20px; color: var(--muted); font-size: .72rem; }

.incident { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.incident-copy { position: sticky; top: 108px; }
.incident-stage { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.incident-stage img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.action-sequence { margin: 32px 0 0; padding: 0; list-style: none; }
.action-sequence li { display: grid; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.action-sequence li:last-child { border-bottom: 0; }
.action-sequence strong { color: var(--brand-deep); }
.action-sequence span { color: var(--muted); font-size: .86rem; }

.veterinary { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(30px, 4vw, 56px); align-items: start; }
.veterinary-context { position: sticky; top: 100px; }
.veterinary-context picture { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.veterinary-context picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.veterinary-stage { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.veterinary-stage > picture { display: block; }
.veterinary-stage > picture img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.timeline-focus { position: absolute; left: 8%; right: 48%; bottom: 8%; height: 29%; display: grid; grid-template-rows: repeat(4, 1fr); gap: 2%; }
.timeline-focus span { border: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); border-radius: 8px; opacity: 0; transform: translateX(-15px); }
.veterinary.is-visible .timeline-focus span { animation: timelineReveal 440ms ease forwards; }
.veterinary.is-visible .timeline-focus span:nth-child(2) { animation-delay: 90ms; }
.veterinary.is-visible .timeline-focus span:nth-child(3) { animation-delay: 180ms; }
.veterinary.is-visible .timeline-focus span:nth-child(4) { animation-delay: 270ms; }

.resources-layout { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 18px; }
.feed-crop, .inventory-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.feed-crop img { display: block; width: 100%; height: auto; object-fit: contain; }
.inventory-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.resource-flow { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.resource-flow span { position: relative; padding: 17px 18px; text-align: center; font-size: .8rem; font-weight: 800; }
.resource-flow span:not(:last-child)::after { content: ">"; position: absolute; right: -4px; color: var(--brand); }

.invoice-ai { max-width: 1200px; }
.extraction-demo { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 6vw, 74px); align-items: center; }
.invoice-document { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.invoice-document img { width: 100%; }
.scan-line { position: absolute; left: 4%; right: 4%; top: 7%; height: 2px; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 30%, transparent); opacity: 0; }
.invoice-ai.is-visible .scan-line { animation: invoiceScan 2.2s .25s cubic-bezier(.2,.7,.2,1) 1 forwards; }
.extracted-fields { padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.extraction-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.extraction-status span, .development-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-bg);
  font-size: .69rem;
  font-weight: 800;
}
.extracted-fields dl { margin: 0 0 25px; }
.extracted-fields dl div { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.js .extracted-fields dl div { opacity: .35; transform: translateY(8px); }
.extracted-fields dl div:last-child { border-bottom: 0; }
.invoice-ai.is-visible .extracted-fields dl div { animation: fieldReveal 360ms ease forwards; }
.invoice-ai.is-visible .extracted-fields dl div:nth-child(2) { animation-delay: 100ms; }
.invoice-ai.is-visible .extracted-fields dl div:nth-child(3) { animation-delay: 200ms; }
.invoice-ai.is-visible .extracted-fields dl div:nth-child(4) { animation-delay: 300ms; }
.invoice-ai.is-visible .extracted-fields dl div:nth-child(5) { animation-delay: 400ms; }
.invoice-ai.is-visible .extracted-fields dl div:nth-child(6) { animation-delay: 500ms; }
.invoice-ai.is-visible .extracted-fields dl div:nth-child(7) { animation-delay: 600ms; }
.extracted-fields dt { color: var(--muted); font-size: .74rem; }
.extracted-fields dd { margin: 0; font-size: .86rem; font-weight: 800; }
.validation-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.confirm-demo.is-confirmed { color: var(--brand-deep); border-color: var(--line-strong); background: var(--mint-soft); box-shadow: none; }

.quiet-ai { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.quiet-ai-copy h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; }
.ai-capabilities { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.ai-capabilities li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ai-capabilities strong { color: var(--brand-deep); font-size: .9rem; }
.ai-capabilities span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.messaging-showcase { overflow: hidden; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, var(--mint-soft)); box-shadow: var(--shadow-soft); }
.messaging-platforms { display: flex; gap: 8px; margin: 2px 2px 12px; }
.messaging-platforms span { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--brand-deep); background: var(--surface-solid); font-size: .68rem; font-weight: 800; }
.messaging-showcase picture { display: block; overflow: hidden; border-radius: calc(var(--radius) - 5px); background: var(--bg); }
.messaging-showcase picture img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.message-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 2px 2px; padding: 0; list-style: none; }
.message-flow li { position: relative; display: grid; gap: 4px; padding: 4px 16px; }
.message-flow li:not(:first-child) { border-left: 1px solid var(--line); }
.message-flow strong { color: var(--ink); font-size: .75rem; line-height: 1.25; }
.message-flow span { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.mobile-product { margin: 0; }
.mobile-product img { width: 100%; max-height: 580px; object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.convergence { text-align: center; }
.convergence .section-copy { margin-right: auto; margin-left: auto; }
.data-convergence {
  position: relative;
  max-width: 1060px;
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--mint) 42%, transparent) 0%, transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--bg-soft) 70%, transparent));
  box-shadow: var(--shadow-soft);
}
.convergence-links { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.convergence-links path { fill: none; stroke: url(#data-flow); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 9 16 8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--brand) 25%, transparent)); }
.convergence.is-visible .convergence-links path { animation: dataRoute 1000ms cubic-bezier(.2,.7,.2,1) both; }
.convergence.is-visible .convergence-links path:nth-of-type(2) { animation-delay: 90ms; }
.convergence.is-visible .convergence-links path:nth-of-type(3) { animation-delay: 160ms; }
.convergence.is-visible .convergence-links path:nth-of-type(4) { animation-delay: 230ms; }
.convergence.is-visible .convergence-links path:nth-of-type(5) { animation-delay: 300ms; }
.convergence.is-visible .convergence-links path:nth-of-type(6) { animation-delay: 370ms; }
.data-sources { position: absolute; inset: 0; z-index: 1; }
.data-sources span { position: absolute; display: grid; gap: 3px; min-width: 164px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink-soft); background: color-mix(in srgb, var(--surface-solid) 92%, transparent); box-shadow: 0 12px 26px rgba(12, 45, 37, 0.1); }
.data-sources strong { color: var(--ink); font-size: .86rem; line-height: 1.2; }
.data-sources small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.data-sources span:nth-child(1) { top: 8%; left: 2%; }
.data-sources span:nth-child(2) { top: 8%; right: 2%; }
.data-sources span:nth-child(3) { top: 43%; left: 0; }
.data-sources span:nth-child(4) { top: 43%; right: 0; }
.data-sources span:nth-child(5) { bottom: 6%; left: 8%; }
.data-sources span:nth-child(6) { right: 8%; bottom: 6%; }
.convergence-core { position: relative; z-index: 2; display: grid; place-items: center; width: 230px; height: 230px; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--mint) 52%, transparent), transparent 43%), var(--surface); box-shadow: 0 22px 54px rgba(12, 45, 37, 0.15), inset 0 1px 0 color-mix(in srgb, var(--surface-solid) 80%, transparent); }
.convergence-core img { width: 74px; }
.convergence-core strong { margin-top: -10px; font-size: 1.25rem; }
.convergence-core span { margin-top: -20px; color: var(--muted); font-size: .7rem; }

.municipal { max-width: 1440px; }
.municipal-dashboard { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.municipal-dashboard img { aspect-ratio: auto; object-position: center; }
.municipal-dashboard figcaption { padding: 0 18px 17px; }
.territory-insights { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.heatmap-panel { min-width: 0; padding: clamp(18px, 3vw, 34px); background: color-mix(in srgb, var(--mint-soft) 45%, var(--surface)); }
.heatmap-heading, .territory-metrics-title { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.heatmap-heading .section-label, .territory-metrics-title .section-label { display: block; margin-bottom: 7px; }
.heatmap-heading h3, .territory-metrics-title h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); letter-spacing: -.035em; }
.sample-data-label, .period-label { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-deep); background: var(--surface-solid); font-size: .68rem; font-weight: 800; }
.heatmap-map { display: block; width: 100%; height: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 22px rgba(12, 45, 37, .08); }
.heatmap-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--muted); font-size: .68rem; }
.heatmap-legend span { display: inline-flex; align-items: center; gap: 7px; }
.heatmap-legend i { width: 11px; height: 11px; border-radius: 50%; background: #f2c75b; }
.heatmap-legend .heat-high-key { background: #ec7253; }
.territory-metrics { display: grid; align-content: start; gap: 20px; min-width: 0; padding: clamp(18px, 3vw, 34px); border-left: 1px solid var(--line); }
.territory-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.territory-stat { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.territory-stat span, .weekly-activity > div:first-child span { color: var(--muted); font-size: .7rem; line-height: 1.35; }
.territory-stat strong { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.05em; }
.territory-stat small { color: var(--brand-deep); font-size: .65rem; line-height: 1.35; }
.weekly-activity { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.weekly-activity > div:first-child { display: grid; gap: 4px; }
.weekly-activity > div:first-child strong { font-size: .8rem; }
.weekly-activity svg { display: block; width: 100%; height: auto; margin-top: 12px; color: var(--line-strong); }
.week-labels { display: flex; justify-content: space-between; margin-top: 3px; color: var(--muted); font-size: .58rem; }

.context-summary { max-width: 1420px; }
.journey-summary { display: flex; align-items: stretch; gap: 9px; overflow-x: auto; margin: 0; padding: 6px 0 18px; list-style: none; scrollbar-width: thin; }
.journey-summary li { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--ink-soft); background: var(--surface); font-size: .84rem; font-weight: 800; }
.journey-summary li:not(:last-child)::after { content: ">"; margin-left: 4px; color: var(--brand); font-size: 1rem; }
.roles { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(34px, 7vw, 90px); align-items: start; margin-top: 42px; padding-top: 38px; border-top: 1px solid var(--line-strong); }
.roles h3 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.roles-copy p { color: var(--ink-soft); }
.role-views { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-views article { min-height: 150px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.role-views article:nth-child(2), .role-views article:nth-child(3) { background: var(--mint-soft); }
.role-views span { display: block; margin-bottom: 28px; color: var(--brand-deep); font-size: .74rem; font-weight: 800; }
.role-views strong { display: block; max-width: 20ch; line-height: 1.25; }

.field-data-showcase { display: grid; grid-template-columns: 1.14fr .86fr; gap: clamp(38px, 7vw, 92px); align-items: center; }
.field-data-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.field-data-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.field-data-copy h2 { margin-top: 22px; }
.field-data-flow { display: block; width: min(100%, 560px); height: auto; margin: 24px 0 0; }

.open-source { display: grid; grid-template-columns: 1fr .72fr; gap: clamp(38px, 8vw, 120px); align-items: end; }
.open-source-copy { padding-bottom: 5px; }
.repository-pending { display: block; margin-top: 22px; color: var(--muted); font-size: .76rem; font-weight: 700; }

.final-cta { position: relative; min-height: min(760px, 86dvh); overflow: hidden; display: grid; place-items: center; }
.final-cta > picture, .final-cta > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-cta > picture img { object-fit: cover; object-position: center; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 22, 18, .84) 0%, rgba(6, 22, 18, .62) 48%, rgba(6, 22, 18, .14) 100%); }
.final-cta-content { position: relative; z-index: 2; width: min(100%, var(--max)); padding: 80px var(--pad); color: #f3f8f6; }
.final-cta-content h2 { max-width: 750px; font-size: clamp(2.7rem, 5.4vw, 5.4rem); line-height: .98; }
.final-cta-content > p { max-width: 600px; margin: 22px 0 0; color: rgba(243, 248, 246, .82); font-size: 1.08rem; }
.final-cta .button-secondary { color: #f3f8f6; border-color: rgba(243,248,246,.5); background: rgba(8, 35, 29, .45); backdrop-filter: blur(8px); }
.demo-access { max-width: 680px; margin-top: 30px; padding: 0 20px; border: 1px solid rgba(243,248,246,.34); border-radius: var(--radius); background: rgba(6, 27, 22, .62); box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 0 1px 0 rgba(243,248,246,.12); backdrop-filter: blur(14px); }
.demo-access summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 0; color: rgba(243,248,246,.96); cursor: pointer; list-style: none; }
.demo-access summary::-webkit-details-marker { display: none; }
.demo-access-title { display: grid; gap: 3px; }
.demo-access-title strong { font-size: .98rem; }
.demo-access-title small { color: rgba(243,248,246,.72); font-size: .76rem; }
.demo-access-control { flex: none; padding: 8px 11px; border: 1px solid rgba(243,248,246,.32); border-radius: 999px; color: #f3f8f6; font-size: .7rem; font-weight: 800; }
.demo-access-close-label, .demo-access[open] .demo-access-open-label { display: none; }
.demo-access[open] .demo-access-close-label { display: inline; }
.demo-access[open] summary { border-bottom: 1px solid rgba(243,248,246,.2); }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 18px; }
.demo-roles p { display: grid; gap: 3px; margin: 0; padding: 11px 12px; border: 1px solid rgba(243,248,246,.15); border-radius: var(--radius-small); color: rgba(243,248,246,.86); background: rgba(243,248,246,.06); font-size: .72rem; }
.demo-roles span { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; overflow-wrap: anywhere; }
.demo-roles .demo-password { grid-column: 1 / -1; border-color: rgba(197, 238, 227, .34); background: rgba(13, 97, 80, .48); }
.demo-password span { color: #fff; font-size: .9rem; font-weight: 800; }

.site-footer { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: start; gap: 28px; padding: 30px var(--pad); color: #e9f3ef; background: #081a16; }
.brand-footer img { width: 40px; height: 40px; }
.brand-footer small, .site-footer > p, .cookie-policy p { color: #b4c9c1; }
.site-footer > p { margin: 0; font-size: .76rem; }
.cookie-policy { max-width: 620px; }
.cookie-policy h2 { margin: 0 0 8px; color: #e9f3ef; font-size: .88rem; }
.cookie-policy p { margin: 6px 0 0; font-size: .76rem; line-height: 1.6; }
.cookie-policy a, .legal-links a { color: #d7efe6; font-size: .76rem; text-underline-offset: 3px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.legal-area { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 14px 48px; padding: 64px var(--pad); background: var(--surface); color: var(--ink); }
.legal-area-heading { grid-row: span 4; }
.legal-area-heading h2 { max-width: 400px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.legal-area-heading > p:last-child { max-width: 360px; color: var(--muted); }
.legal-document { border-top: 1px solid var(--line-strong); }
.legal-document:last-child { border-bottom: 1px solid var(--line-strong); }
.legal-document summary { padding: 17px 36px 17px 0; color: var(--ink); font-size: 1rem; font-weight: 760; cursor: pointer; list-style: none; position: relative; }
.legal-document summary::-webkit-details-marker { display: none; }
.legal-document summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--brand); font-size: 1.35rem; }
.legal-document[open] summary::after { content: "−"; }
.legal-document summary:focus-visible, .legal-links a:focus-visible, .cookie-policy a:focus-visible { outline: 3px solid #78d8c4; outline-offset: 4px; border-radius: 3px; }
.legal-copy { max-width: 850px; padding: 0 0 22px; color: var(--ink-soft); font-size: .92rem; line-height: 1.72; }
.legal-copy h3 { margin: 24px 0 7px; color: var(--ink); font-size: 1.05rem; }
.legal-copy p, .legal-copy ul { margin: 0 0 12px; }
.legal-copy a { color: var(--brand-deep); text-underline-offset: 3px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 620ms cubic-bezier(.16,1,.3,1), transform 620ms cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes timelineReveal { to { opacity: 1; transform: none; } }
@keyframes invoiceScan { 0% { top: 7%; opacity: 0; } 12% { opacity: .8; } 88% { opacity: .8; } 100% { top: 90%; opacity: 0; } }
@keyframes fieldReveal { to { opacity: 1; transform: none; } }
@keyframes dataRoute { from { opacity: 0; stroke-dashoffset: 120; } to { opacity: 1; stroke-dashoffset: 0; } }

@media (max-width: 1180px) {
  .fragmentation { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .fragmentation .section-copy { max-width: 790px; }
  .paper-fragments { inset: 0; }
}

@media (max-width: 940px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; max-width: 820px; justify-self: center; }
  .animal, .incident, .veterinary, .quiet-ai, .field-data-showcase, .open-source, .roles { grid-template-columns: minmax(0, 1fr); }
  .incident-copy, .veterinary-context { position: static; }
  .territory-insights { grid-template-columns: minmax(0, 1fr); }
  .territory-metrics { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 1040px) {
  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 13px; }
  .nav-toggle { display: inline-flex; }
  .hero { gap: 36px; }
  .hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
  .mobile-product { grid-column: 1 / -1; display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 28px; }
  .mobile-product img { max-height: 460px; }
}

@media (max-width: 780px) {
  :root { --pad: 18px; --section: 56px; }
  .site-header { min-height: 64px; padding: 8px 14px; }
  .brand img { width: 39px; height: 39px; }
  .brand small { display: none; }
  .site-nav { top: 62px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 74px;
  }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.35rem, 11vw, 3.4rem); line-height: 1.02; }
  .hero-visual { padding: 0 0 28px 0; }
  .hero-photo img { height: auto; aspect-ratio: 1.45 / 1; object-fit: cover; object-position: 64% 55%; }
  .hero-map-crop { left: -8px; width: 55%; height: 25%; border-width: 5px; }
  .hero-record { right: -7px; top: 18px; min-width: 154px; padding: 12px; }
  .hero-trace { display: none; }
  .story-section { padding-left: 26px; padding-right: 18px; }
  .fragmentation { gap: 32px; }
  .fragmentation-scene img { aspect-ratio: 1.5 / 1; object-position: 60% center; }
  .paper-fragments { inset: 0; }
  .fragment-sheet { display: none; }
  .fragment-photo { left: 5%; }
  .transition-copy { margin-top: 24px; text-align: left; }
  .map-stage img { aspect-ratio: auto; object-fit: contain; }
  .animal { gap: 30px; }
  .animal-photo img { aspect-ratio: 4 / 3; }
  .animal-record { padding: 0; }
  .incident { gap: 34px; }
  .veterinary { gap: 28px; }
  .veterinary-stage > picture img { height: auto; object-position: center; }
  .timeline-focus { left: 8%; right: 48%; bottom: 8%; }
  .resources-layout { grid-template-columns: 1fr; }
  .inventory-photo img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .resource-flow { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .resource-flow span:nth-child(2)::after { display: none; }
  .extraction-demo { grid-template-columns: 1fr; }
  .invoice-document { max-width: 440px; margin: 0 auto; }
  .message-flow { grid-template-columns: 1fr; gap: 0; }
  .message-flow li { padding: 12px 4px; }
  .message-flow li:not(:first-child) { border-top: 1px solid var(--line); border-left: 0; }
  .mobile-product { grid-column: auto; grid-template-columns: 1fr; }
  .mobile-product img { width: min(100%, 420px); max-height: none; margin: 0 auto; }
  .data-convergence { min-height: auto; display: grid; grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .convergence-links { display: none; }
  .convergence-core { order: 1; width: 182px; height: 182px; margin: 0 auto; }
  .convergence-core img { width: 58px; }
  .data-sources { position: static; order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .data-sources span { position: static; min-width: 0; }
  .roles { margin-top: 48px; padding-top: 44px; gap: 28px; }
  .role-views { grid-template-columns: 1fr 1fr; }
  .field-data-showcase { gap: 30px; }
  .field-data-photo img { aspect-ratio: 3 / 2; object-position: center; }
  .open-source { align-items: start; }
  .final-cta { min-height: 760px; place-items: end start; }
  .final-cta > picture img { object-position: 61% center; }
  .final-cta::after { background: linear-gradient(180deg, rgba(6,22,18,.2), rgba(6,22,18,.9) 68%); }
  .final-cta-content { align-self: end; padding-top: 250px; padding-bottom: 58px; }
}

@media (max-width: 520px) {
  .header-actions { gap: 5px; }
  .brand { gap: 6px; }
  .theme-toggle { padding-inline: 9px; }
  .theme-toggle-label { display: none; }
  .nav-toggle { padding-inline: 9px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .fragment { font-size: .65rem; }
  .fragment-note { right: 0; }
  .fragment-message { right: 0; bottom: 6%; }
  .record-list div, .extracted-fields dl div { grid-template-columns: 1fr; gap: 3px; }
  .veterinary-stage > picture img { height: auto; }
  .timeline-focus { right: 48%; }
  .resource-flow { grid-template-columns: 1fr; }
  .resource-flow span:not(:last-child)::after { content: "v"; right: 50%; top: calc(100% - 8px); }
  .extraction-status { align-items: flex-start; flex-direction: column; }
  .data-convergence { padding: 16px; }
  .data-sources { grid-template-columns: 1fr; }
  .demo-access summary { align-items: flex-start; flex-direction: column; gap: 10px; }
  .role-views { grid-template-columns: 1fr; }
  .role-views article { min-height: 122px; }
  .demo-roles { grid-template-columns: 1fr; }
  .demo-password { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .legal-area { grid-template-columns: 1fr; gap: 0; padding-block: 48px; }
  .legal-area-heading { grid-row: auto; margin-bottom: 26px; }
}

@media (max-width: 380px) {
  .header-actions { gap: 2px; }
  .language-picker { gap: 0; }
  .language-link { width: 28px; min-width: 28px; height: 32px; }
  .theme-toggle { padding-inline: 6px; }
  .nav-toggle { padding: 6px 7px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .timeline-focus span, .extracted-fields dl div { opacity: 1; transform: none; }
  .scan-line { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .hero-record { background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
