/*
 * Kea Consultants homepage tokens (theme style.min.css):
 * .bg-forest → #367277 | .color-white → #fefbf0 | .accent-forest-light → #adcfcf
 * Source: https://www.keaconsultants.com/
 */

:root {
  --kea-forest: #367277;
  --kea-cream: #fefbf0;
  --kea-forest-light: #adcfcf;
  --kea-charcoal: #333130;

  --bg: var(--kea-forest);
  --bg-surface: #326f73;
  --surface-card: rgba(254, 251, 240, 0.075);
  --surface-modal: var(--kea-cream);

  --text: var(--kea-cream);
  --text-muted: rgba(254, 251, 240, 0.72);
  --border: rgba(254, 251, 240, 0.14);

  --accent: var(--kea-forest-light);
  --accent-hover-bg: #ffffff;
  --accent-hover-text: var(--kea-charcoal);
  --accent-soft: rgba(173, 207, 207, 0.18);
  --quote-bg: rgba(51, 49, 48, 0.22);

  /* Kea: headings ivymode, UI/body sofia-pro */
  --font-display: ivymode, Georgia, "Times New Roman", serif;
  --font-body: "sofia-pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 4.25rem;
  --container: 72rem;
  --narrow: 46rem;
  --radius: 2px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
}

main a:not(.btn):not(.logo) {
  color: var(--accent);
}

main a:not(.btn):not(.logo):hover {
  color: var(--accent-hover-bg);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-hover-text);
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.prose {
  margin: 0;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-center {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.subsection-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.subsection-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(54, 114, 119, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--accent);
  border-bottom-color: rgba(173, 207, 207, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--text);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-hover-text);
}

.btn-primary:hover {
  background: var(--accent-hover-bg);
  color: var(--accent-hover-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(254, 251, 240, 0.38);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(173, 207, 207, 0.12);
  color: var(--accent-hover-bg);
}

.btn-nav {
  flex-shrink: 0;
}

/* Hero — Kea-style title block + три горизонтальных marquee-портрета */
.hero-home {
  padding-block: clamp(2.75rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
  overflow-x: clip;
}

.hero-home__intro {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero-home__title {
  margin-bottom: 1rem;
}

.hero-home__lead {
  margin-bottom: 1.5rem;
}

.hero-scroll-hint {
  width: 1px;
  height: clamp(2.25rem, 5vw, 3rem);
  margin: 0 auto;
  background: linear-gradient(
    to bottom,
    rgba(254, 251, 240, 0.45),
    rgba(254, 251, 240, 0)
  );
}

.hero-peeps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.hero-marquee {
  overflow: hidden;
  width: 100%;
  --hero-marquee-dur: 95s;
}

.hero-marquee__track {
  display: flex;
  width: max-content;
  animation: hero-marquee-shift var(--hero-marquee-dur) linear infinite;
}

.hero-marquee--reverse .hero-marquee__track {
  animation-direction: reverse;
}

@keyframes hero-marquee-shift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-marquee__group {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  padding-inline-end: 0.25rem;
  flex-shrink: 0;
}

.hero-card {
  margin: 0;
  flex-shrink: 0;
  width: clamp(4rem, 8.5vw, 5.875rem);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.03);
}

.hero-home__after .hero-prose {
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.surface {
  background: var(--bg-surface);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header--left {
  text-align: left;
}

.section-intro {
  margin: 0 auto 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Trust — Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
  list-style: none;
  width: 100%;
  margin: 0 auto 3rem;
  padding: 0;
}

.industry-grid li {
  margin: 0;
  min-width: 0;
}

.industry-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
}

.metric-card {
  padding: 1.5rem 1.35rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.metric-label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.metric-card .metric-label + .metric-label {
  margin-top: 0.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--overview {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.feature-card {
  padding: 1.65rem 1.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
}

.feature-card p {
  margin: 0 0 0.65rem;
  font-size: 0.9875rem;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  max-width: 48rem;
  margin-inline: auto;
}

.step-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
}

.step p {
  margin: 0 0 0.5rem;
}

.methodology-note {
  max-width: 40rem;
  margin-top: 2.5rem;
}

.methodology-pdf-cta {
  text-align: center;
  margin: 1.75rem 0 0;
}

.methodology-pdf-cta .btn {
  text-decoration: none;
}

/* Research pipeline (methodology) */
.research-pipeline {
  max-width: min(100%, 56rem);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.research-pipeline__intro {
  margin: 0 auto 1.5rem;
  font-size: 0.9875rem;
  line-height: 1.5;
  max-width: 36rem;
}

.research-pipeline__layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  text-align: center;
}

@media (min-width: 52rem) {
  .research-pipeline__layout {
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
    text-align: start;
  }

  .research-pipeline__stage {
    padding-top: 0.35rem;
  }
}

.pipeline-figure {
  margin: 0;
  padding: 0;
}

.pipeline-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pipeline-svg .pipeline-node {
  cursor: pointer;
}

.pipeline-svg .pipeline-node:focus {
  outline: none;
}

.pipeline-svg .pipeline-node:focus-visible .pipeline-node-rect {
  stroke: var(--accent-hover-bg);
  stroke-width: 2;
}

.pipeline-svg .pipeline-node-num,
.pipeline-svg .pipeline-node-label {
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.pipeline-svg .pipeline-node-rect {
  fill: var(--surface-card);
  stroke: var(--border);
  stroke-width: 1;
  transition: fill 0.45s ease, stroke 0.45s ease, stroke-width 0.45s ease, opacity 0.45s ease;
}

.pipeline-svg .pipeline-node:not(.is-active) .pipeline-node-rect {
  opacity: 0.9;
}

.pipeline-svg .pipeline-node:not(.is-active) .pipeline-node-num,
.pipeline-svg .pipeline-node:not(.is-active) .pipeline-node-label {
  opacity: 0.78;
}

.pipeline-svg .pipeline-node.is-active .pipeline-node-rect {
  opacity: 1;
  stroke: var(--accent);
  stroke-width: 2;
  fill: var(--accent-soft);
}

.pipeline-svg .pipeline-node.is-active .pipeline-node-num,
.pipeline-svg .pipeline-node.is-active .pipeline-node-label {
  opacity: 1;
}

.pipeline-svg .pipeline-node-num {
  fill: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pipeline-svg .pipeline-node-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
}

.pipeline-svg .pipeline-node-label--sm {
  font-size: 12px;
}

.pipeline-svg .pipeline-edge {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 12;
  opacity: 0.28;
  animation: none;
  transition: opacity 0.4s ease;
}

.pipeline-svg .pipeline-edge.is-active {
  opacity: 1;
  animation: pipeline-flow 0.85s linear infinite;
}

@keyframes pipeline-flow {
  to {
    stroke-dashoffset: -17;
  }
}

.research-pipeline__stage-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.research-pipeline__stage-step {
  color: var(--accent);
  letter-spacing: 0.1em;
}

.research-pipeline__stage-visual {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.25rem 1.1rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  justify-content: center;
}

.research-pipeline__stage-visual[data-has-image="true"],
.research-pipeline__stage-visual.is-rich {
  aspect-ratio: auto;
  justify-content: flex-start;
  max-height: min(85vh, 44rem);
  overflow-y: auto;
}

.research-pipeline__stage-visual.is-rich {
  min-height: 12rem;
}

.research-pipeline__stage-img {
  display: none;
  width: 100%;
  max-height: min(38vh, 300px);
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0.5rem 0 0.25rem;
  flex-shrink: 0;
}

.research-pipeline__stage-img:not([hidden]) {
  display: block;
}

.research-pipeline__stage-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  max-width: 28rem;
  margin-inline: auto;
  width: 100%;
}

.research-pipeline__stage-visual[data-has-image="true"] .research-pipeline__stage-placeholder,
.research-pipeline__stage-visual.is-rich .research-pipeline__stage-placeholder {
  max-width: none;
  margin-inline: 0;
  align-items: flex-start;
  text-align: left;
}

.research-pipeline__stage-caption {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.research-pipeline__stage-hint {
  line-height: 1.45;
}

.research-pipeline__stage-graph-stats {
  width: 100%;
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.research-pipeline__stage-graph-stats li {
  margin-bottom: 0.35rem;
}

.research-pipeline__stage-graph-stats li:last-child {
  margin-bottom: 0;
}

.research-pipeline__stage-graph-stats strong {
  color: var(--text);
  font-weight: 600;
}

.research-pipeline__stage-cluster {
  width: 100%;
  margin-top: 0.25rem;
}

.research-pipeline__cluster-block {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.research-pipeline__cluster-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.research-pipeline__cluster-section-title {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.research-pipeline__cluster-line {
  margin: 0 0 0.45rem;
}

.research-pipeline__cluster-line:last-child {
  margin-bottom: 0;
}

.research-pipeline__cluster-metrics {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
}

.research-pipeline__cluster-metrics li {
  margin-bottom: 0.3rem;
}

.research-pipeline__cluster-metrics li:last-child {
  margin-bottom: 0;
}

.research-pipeline__cluster-range {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.research-pipeline__stage-detail {
  width: 100%;
}

.research-pipeline__user-request-list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
}

.research-pipeline__user-request-list li {
  margin-bottom: 0.45rem;
}

.research-pipeline__user-request-list li:last-child {
  margin-bottom: 0;
}

.research-pipeline__detail-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.research-pipeline__detail-lead strong {
  color: var(--text);
  font-weight: 600;
}

.research-pipeline__detail-example-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.research-pipeline__seed-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-pipeline__seed-list > li {
  margin: 0 0 0.85rem;
  padding: 0 0 0.8rem;
  border-bottom: 1px solid var(--border);
}

.research-pipeline__seed-list > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.research-pipeline__seed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  margin-bottom: 0.3rem;
}

.research-pipeline__seed-handle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.research-pipeline__seed-rel {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.research-pipeline__seed-bio {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.research-pipeline__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-svg .pipeline-edge {
    stroke-dasharray: none;
    animation: none !important;
    opacity: 0.42;
  }

  .pipeline-svg .pipeline-edge.is-active {
    opacity: 0.92;
    stroke-width: 2.5;
  }
}

.bullet-list {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.numbered-list {
  margin: 0;
  padding-left: 1.25rem;
}

.numbered-list li {
  margin-bottom: 0.55rem;
}

/* Solution blocks */
.solution-block {
  padding-bottom: 2.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}

.solution-block:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.solution-block-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.solution-tagline {
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 1rem;
}

.cta-panel {
  padding: 2rem 1.75rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  text-align: center;
}

.cta-panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.cta-panel .muted {
  margin-bottom: 1.25rem;
}

/* Use cases */
.use-case-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.use-case-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

/* Sample / report */
.card-soft {
  padding: 2rem 1.75rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.pull-quote {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--quote-bg);
  border-left: 3px solid var(--accent);
}

.pull-quote p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.pull-quote--secondary {
  margin-top: 1rem;
  opacity: 0.95;
}

.sample-report-visual {
  margin: clamp(1.5rem, 4vw, 2.75rem) 0;
}

.sample-report-visual__frame {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(173, 207, 207, 0.12) 0%,
    rgba(26, 48, 50, 0.55) 38%,
    rgba(14, 26, 28, 0.88) 100%
  );
  box-shadow:
    0 0.4rem 1.75rem rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(254, 251, 240, 0.07);
}

.sample-report-visual__frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  /* Nudge cool dashboard hues toward site forest teal */
  filter: brightness(1.05) saturate(0.93) hue-rotate(14deg);
}

.sample-report-visual__caption {
  margin: 0.85rem 0 0;
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.report-block {
  margin-bottom: 2.25rem;
}

.report-block-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
}

.two-col-lists {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 36rem) {
  .two-col-lists {
    grid-template-columns: 1fr 1fr;
  }
}

/* Demo form (modal) */
.demo-form {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

.demo-form--modal {
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(51, 49, 48, 0.18);
  border-radius: var(--radius);
  background: rgba(254, 251, 240, 0.96);
  color: var(--kea-charcoal);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(173, 207, 207, 0.65);
  outline-offset: 1px;
}

.form-feedback {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--accent-hover-bg);
}

.demo-form label {
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 1.5rem;
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr repeat(2, 1fr);
}

.footer-brand__blurb {
  margin-top: 1rem;
  max-width: 28rem;
}

.footer-brand__blurb p {
  margin: 0 0 0.65rem;
}

.footer-brand__blurb p:last-child {
  margin-bottom: 0;
}

@media (max-width: 52rem) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 28rem) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.logo--footer {
  font-size: 1.65rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.9;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: rgba(173, 207, 207, 0.45);
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-base p {
  margin: 0;
}

/* Modal — palette matches main site */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 42, 0.55);
  z-index: 90;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal.modal--demo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 28rem);
  max-height: min(92vh, 42rem);
  overflow-y: auto;
  z-index: 100;
  padding: 2rem 1.75rem 1.65rem;
  background: var(--bg);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 40%
  );
  border: 1px solid var(--border);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
}

.modal.modal--demo[hidden] {
  display: none;
}

.modal--demo .section-title {
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.modal--demo__intro {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.55;
}

.modal--demo .muted {
  color: var(--text-muted);
}

.modal--demo .demo-form label {
  color: var(--text);
}

.modal--demo .form-row input,
.modal--demo .form-row textarea {
  background: rgba(254, 251, 240, 0.96);
  color: var(--kea-charcoal);
  border-color: rgba(254, 251, 240, 0.22);
}

.modal--demo .form-row input::placeholder,
.modal--demo .form-row textarea::placeholder {
  color: rgba(51, 49, 48, 0.42);
}

.modal--demo .form-row input:focus,
.modal--demo .form-row textarea:focus {
  outline: 2px solid rgba(173, 207, 207, 0.55);
  outline-offset: 1px;
  border-color: rgba(173, 207, 207, 0.45);
}

.modal--demo .form-feedback {
  color: var(--accent-hover-bg);
}

.modal--demo .modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.modal--demo .modal-close:hover {
  color: var(--accent);
}

.modal--demo__submit {
  margin-top: 0.35rem;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

/* Mobile nav */
@media (max-width: 56rem) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(54, 114, 119, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-nav {
    transition: none;
  }

  .hero-marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.25rem;
    transform: none;
  }

  .hero-marquee__group:last-child {
    display: none;
  }

  .hero-peeps {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
