:root {
  color-scheme: light;
  --ink: #102018;
  --evergreen: #102016;
  --forest: #183526;
  --pine: #224832;
  --sage: #dfe9dd;
  --paper: #f7f3e8;
  --soft: #fbf8ef;
  --sand: #d7c7a1;
  --line: #b9c5b3;
  --muted: #526457;
  --accent: #b9823b;
  --accent-dark: #8a5b25;
  --white: #ffffff;
  --panel: #fffdf5;
  --panel-2: #eef4ea;
  --shadow: 0 18px 42px rgba(16, 32, 24, 0.12);
  --soft-shadow: 0 10px 28px rgba(16, 32, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(34, 72, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 72, 50, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, var(--soft), var(--paper));
  background-size: 52px 52px, 52px 52px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 45%, rgba(215, 199, 161, 0.2) 45% 45.4%, transparent 45.4%),
    linear-gradient(62deg, transparent 0 55%, rgba(34, 72, 50, 0.08) 55% 55.35%, transparent 55.35%);
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 56px;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(247, 243, 232, 0.94);
  border-bottom: 1px solid var(--sand);
  backdrop-filter: blur(14px);
}

.brand,
.brand a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(214px, 48vw);
  height: 54px;
  object-fit: cover;
  object-position: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 720;
}

nav a,
.text-link,
.pricing-link a {
  color: var(--forest);
  text-decoration-color: rgba(185, 130, 59, 0.45);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.text-link:hover,
.pricing-link a:hover {
  color: var(--accent-dark);
}

nav a:focus-visible,
.btn:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  padding: 54px 0 22px;
}

.eyebrow,
.metric span,
table th,
.sequence div::before {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
.brand {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin: 12px 0 18px;
  font-size: clamp(2.4rem, 5.7vw, 5.4rem);
  line-height: 0.98;
}

.hero-panel-home h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.75vw, 4.75rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  line-height: 1.15;
}

h3 {
  margin: 0 0 10px;
}

p,
.lead,
li {
  color: var(--muted);
}

p {
  max-width: 850px;
}

.actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  margin-top: 0;
  padding: 10px 16px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: var(--forest);
  color: var(--soft);
  box-shadow: none;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--evergreen);
  border-color: var(--evergreen);
  color: var(--white);
}

.btn.secondary {
  border-color: var(--pine);
  background: rgba(251, 248, 239, 0.75);
  color: var(--forest);
}

.btn.secondary:hover {
  background: var(--sage);
  color: var(--ink);
}

.text-link {
  font-size: 14px;
  font-weight: 760;
}

.section {
  margin-bottom: 0;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.hero-panel,
.hero.city-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(215, 199, 161, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(rgba(223, 233, 221, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 233, 221, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(185, 130, 59, 0.2), transparent 40%),
    var(--evergreen);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-panel::after,
.hero.city-hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(247, 243, 232, 0.13);
  border-radius: 5px;
}

.hero-panel > *,
.hero.city-hero > * {
  position: relative;
  z-index: 1;
}

.hero-panel h1,
.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel .lead,
.hero.city-hero h1,
.hero.city-hero h2,
.hero.city-hero h3,
.hero.city-hero p,
.hero.city-hero .lead {
  color: var(--soft);
}

.hero-panel .eyebrow,
.hero.city-hero .eyebrow {
  color: #e0b879;
}

.hero-panel .btn,
.hero.city-hero .btn {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--evergreen);
}

.hero-panel .btn:hover,
.hero.city-hero .btn:hover {
  background: var(--white);
  border-color: var(--white);
}

.hero-panel .btn.secondary,
.hero.city-hero .btn.secondary {
  border-color: rgba(247, 243, 232, 0.62);
  background: transparent;
  color: var(--soft);
}

.hero-panel .pricing-link,
.hero-panel .pricing-link a {
  color: #dfe9dd;
}

.hero-logo-panel,
.panel {
  position: relative;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background:
    linear-gradient(rgba(34, 72, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 72, 50, 0.03) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--soft-shadow);
}

.hero-logo-panel {
  align-self: start;
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: clamp(20px, 4vw, 34px);
}

.hero-logo {
  display: block;
  width: min(390px, 100%);
  height: 156px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  background: var(--soft);
}

.instrument-strip {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-title {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
}

.instrument-strip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.instrument-strip b {
  color: var(--pine);
  font-weight: 840;
}

.summary-grid,
.facts,
.entries,
.metric-grid,
.chain,
.sequence,
.two,
.demo-grid,
.fit-grid {
  gap: 14px;
}

.summary,
.entry,
.fact,
.stage,
.metric,
.demo-card,
.fit-column {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.summary,
.fact,
.stage,
.metric,
.demo-card,
.fit-column {
  padding: 16px;
}

.entry,
.panel {
  padding: 20px;
}

.summary b,
.entry h3,
.fact b,
.stage b,
.metric strong,
.demo-card h3,
.demo-card-title,
.fit-column h3,
.fit-column h4 {
  color: var(--ink);
}

.summary span,
.fact span,
.stage span,
.metric span,
.panel p,
.demo-card p {
  color: var(--muted);
}

.entry {
  overflow: hidden;
}

.entry::before,
.demo-card::before,
.summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sand);
  border-radius: 8px 0 0 8px;
}

.entry > *,
.demo-card > *,
.summary > * {
  position: relative;
}

.demo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background: var(--white);
}

.demo-card h3,
.demo-card-title {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 840;
  line-height: 1.25;
  margin: 0 0 16px;
}

.demo-card p {
  font-size: 0.95rem;
  line-height: 1.52;
}

.demo-card .card-actions {
  margin-top: auto;
  padding-top: 8px;
}

.demo-card .demo-status,
.demo-card .review-status,
.review-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sage);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.vertical-callout,
.operations-callout,
.pricing-callout,
.fit-callout,
.review-callout {
  position: relative;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--sand);
  border-left: 6px solid var(--pine);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 233, 221, 0.86), rgba(251, 248, 239, 0.92)),
    var(--soft);
  box-shadow: var(--soft-shadow);
}

.pricing-callout {
  border-left-color: var(--accent);
}

.review-callout {
  border-left-color: var(--forest);
}

.vertical-callout h2,
.vertical-callout h3,
.operations-callout h2,
.pricing-callout h2,
.pricing-callout h3,
.fit-callout h2,
.fit-callout h3,
.review-callout h2,
.review-callout h3 {
  color: var(--ink);
  font-size: clamp(1.28rem, 2.1vw, 1.62rem);
  font-weight: 840;
  line-height: 1.2;
  margin: 0 0 14px;
}

.vertical-callout p,
.operations-callout p,
.pricing-callout p,
.fit-callout p,
.fit-callout li,
.review-callout p,
.review-callout li {
  max-width: 980px;
  color: #31463c;
  font-size: 1rem;
  line-height: 1.58;
}

.fit-column {
  background: rgba(255, 255, 255, 0.76);
}

.fit-column ul,
.review-callout ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.fit-column li,
.review-callout li {
  margin: 7px 0;
}

.review-note,
.pricing-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.boundary {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(215, 199, 161, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 130, 59, 0.14), transparent 42%),
    var(--evergreen);
  color: var(--soft);
  overflow: hidden;
}

.boundary h2,
.boundary h3,
.boundary p,
.boundary li {
  color: var(--soft);
}

.boundary p,
.boundary li {
  opacity: 0.88;
}

.sequence div {
  color: var(--muted);
}

.measured-change-callout {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--sand);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(223, 233, 221, 0.88), rgba(255, 253, 245, 0.96));
  box-shadow: var(--soft-shadow);
}

.measured-change-callout .lead {
  color: var(--forest);
  font-weight: 780;
}

.measured-change-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 24px 0 12px;
}

.measurement-state {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.measurement-label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.measurement-state dl {
  margin: 14px 0 0;
}

.measurement-state dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.measurement-state dt {
  color: var(--muted);
}

.measurement-state dd {
  margin: 0;
  color: var(--ink);
  font-weight: 820;
}

.intervention-boundary {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: rgba(247, 243, 232, 0.68);
  text-align: center;
}

.intervention-boundary span {
  color: var(--ink);
  font-weight: 800;
}

.intervention-boundary small {
  color: var(--muted);
  line-height: 1.4;
}

.illustrative-note {
  max-width: none;
  margin: 10px 0 24px;
  font-size: 0.88rem;
}

.structural-position {
  max-width: 940px;
  margin: 20px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.position-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  margin: 10px 0;
}

.position-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.position-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--sand));
}

.position-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--pine);
  transform: translate(-50%, -50%);
}

.position-marker-initial {
  left: 72%;
}

.position-marker-current {
  left: 42%;
}

.position-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 174px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.boundary-line {
  max-width: 980px;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #31463c;
}

footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-mark {
  color: var(--accent-dark);
}

@media (min-width: 881px) {
  .hero-panel-home {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
    align-items: start;
    min-height: 0;
  }

  .hero-panel-home .hero-logo-panel {
    width: 100%;
    max-width: 390px;
    justify-self: end;
    min-height: 0;
    padding: 24px;
  }

  .hero-panel-home .hero-logo {
    height: 164px;
  }
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel,
  .hero.city-hero {
    grid-template-columns: 1fr;
  }

  .hero-logo-panel {
    min-height: 210px;
  }

  .brand img {
    width: min(200px, 72vw);
    height: 50px;
  }

  .hero-logo {
    height: 132px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
    line-height: 1.02;
  }

  .hero-panel-home h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.35rem);
    line-height: 1.04;
  }

  .summary-grid,
  .facts,
  .chain,
  .sequence,
  .two,
  .demo-grid,
  .fit-grid,
  .measured-change-grid {
    grid-template-columns: 1fr;
  }

  .position-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .position-axis {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  main {
    padding-top: 34px;
  }

  .hero-panel,
  .hero.city-hero,
  .section {
    margin-bottom: 24px;
  }

  .hero-panel,
  .hero.city-hero {
    padding: 20px;
  }

  .hero-logo-panel {
    min-height: 188px;
    padding: 18px;
  }

  .hero-logo {
    height: 116px;
  }

  .instrument-strip {
    font-size: 0.7rem;
  }

  .instrument-strip span {
    display: grid;
    gap: 4px;
  }

  .actions,
  .card-actions,
  nav {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .vertical-callout,
  .operations-callout,
  .pricing-callout,
  .fit-callout,
  .review-callout,
  .boundary,
  .entry,
  .panel,
  .demo-card,
  .measured-change-callout {
    padding: 18px;
  }

  .measurement-state dl div {
    display: grid;
    gap: 4px;
  }
}
