:root {
  color-scheme: light;
  --font-sans: "Aptos", "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ink: #15201d;
  --muted: #64706d;
  --soft: #f4f0e8;
  --surface: #fffdf8;
  --line: #d9ded8;
  --dark: #141b1a;
  --teal: #007f73;
  --green: #bfd84f;
  --coral: #d7644a;
  --blue: #315d8f;
  --gold: #bd8e2e;
  --shadow: 0 24px 70px rgba(21, 32, 29, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 32, 29, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 32, 29, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(244, 240, 232, 0.84);
  border-bottom: 1px solid rgba(21, 32, 29, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.96rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: #3e4946;
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  padding: 8px 0;
}

nav a:hover {
  color: var(--teal);
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: clamp(54px, 7vw, 98px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 86px);
  background:
    linear-gradient(135deg, rgba(0, 127, 115, 0.14), transparent 38%),
    linear-gradient(315deg, rgba(215, 100, 74, 0.11), transparent 34%),
    var(--soft);
}

.hero-copy,
.hero-visual,
.section-intro,
.service-grid,
.method-steps,
.case-shell,
.contact-section {
  width: min(1180px, 100%);
}

.hero-copy {
  justify-self: end;
  max-width: 760px;
}

.eyebrow,
.case-kicker,
.panel-heading span {
  margin: 0;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 22px;
  max-width: 820px;
  font-size: clamp(3rem, 6.2vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #3f4b48;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--dark);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 820;
}

.button.primary {
  background: var(--dark);
  color: #fffdf8;
}

.button.secondary {
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-visual {
  justify-self: start;
}

.signal-board {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.09), rgba(255, 253, 248, 0.04)),
    var(--dark);
  color: #fffdf8;
  box-shadow: var(--shadow);
}

.signal-board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent 58%);
}

.signal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 253, 248, 0.62);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.signal-grid article {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.06);
}

.metric-label,
.metric-note {
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.82rem;
  line-height: 1.35;
}

.signal-grid strong {
  color: var(--green);
  font-size: clamp(2.1rem, 3.3vw, 3.05rem);
  line-height: 1;
}

.decision-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  color: rgba(255, 253, 248, 0.82);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.decision-flow i {
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(255, 253, 248, 0.18));
}

.section {
  padding: clamp(62px, 8vw, 108px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(21, 32, 29, 0.1);
}

.section-intro {
  margin: 0 auto clamp(30px, 5vw, 56px);
}

.section-intro h2,
.contact-section h2 {
  margin: 14px 0 0;
  max-width: 880px;
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.services-section,
.study-section {
  background: var(--surface);
}

.service-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(21, 32, 29, 0.1);
  background: rgba(21, 32, 29, 0.1);
}

.service-item {
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  background: #fffdf8;
}

.service-item span,
.method-steps span,
.action-list span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-item h3 {
  margin: 48px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.service-item p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.method-section {
  background: #edf3ee;
}

.method-steps {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-steps article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.64);
}

.method-steps p {
  margin: 74px 0 0;
  color: #3d4945;
  font-size: 1rem;
  line-height: 1.52;
}

.case-shell {
  margin: 0 auto;
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: #f7f4ec;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.embedded-study {
  width: min(1180px, 100%);
  margin: 20px auto 0;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: #f7f4ec;
  box-shadow: var(--shadow);
}

.embedded-study-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.embedded-study-heading h3 {
  margin: 8px 0 0;
  max-width: 780px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.study-frame {
  display: block;
  width: 100%;
  min-height: 860px;
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: #fffdf8;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(0, 127, 115, 0.14), transparent 42%),
    #fffdf8;
}

.case-hero h3 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 0.98;
}

.case-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: #46524f;
  font-size: 1.02rem;
  line-height: 1.62;
}

.case-hero aside {
  align-self: end;
  padding: 20px;
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fffdf8;
}

.case-hero aside span {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-hero aside p {
  margin-top: 12px;
  color: rgba(255, 253, 248, 0.76);
}

.case-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 16px;
}

.case-dashboard.bottom {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  padding-top: 0;
}

.case-panel {
  min-height: 420px;
  padding: clamp(18px, 2.7vw, 28px);
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: #fffdf8;
}

.dark-panel {
  background: var(--dark);
  color: #fffdf8;
}

.action-panel {
  background: #edf3ee;
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading h4 {
  margin: 8px 0 0;
  font-size: clamp(1.24rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.dark-panel .panel-heading span {
  color: var(--green);
}

.case-kpis {
  display: grid;
  gap: 14px;
}

.kpi-row {
  padding: 16px;
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: #fcfaf4;
}

.kpi-topline,
.bar-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
}

.kpi-values {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}

.kpi-values strong {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.kpi-values span {
  color: var(--muted);
}

.kpi-track,
.age-track {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: #e3e7e3;
  overflow: hidden;
}

.kpi-track span,
.age-track span {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.territory-map {
  position: relative;
  min-height: 326px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 253, 248, 0.2) calc(50% - 1px), rgba(255, 253, 248, 0.2) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255, 253, 248, 0.2) calc(50% - 1px), rgba(255, 253, 248, 0.2) calc(50% + 1px), transparent calc(50% + 1px)),
    rgba(255, 253, 248, 0.05);
}

.map-axis,
.map-quadrant {
  position: absolute;
  color: rgba(255, 253, 248, 0.5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-axis.x-low {
  left: 14px;
  bottom: 12px;
}

.map-axis.x-high {
  right: 14px;
  bottom: 12px;
}

.map-axis.y-high {
  left: 14px;
  top: 110px;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.map-axis.y-low {
  left: 14px;
  bottom: 68px;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.map-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(188px, 42%);
  transform: translate(-50%, -50%);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.08);
}

.map-point::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 12px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent);
}

.map-point strong {
  display: block;
  color: #fffdf8;
  font-size: 0.92rem;
  line-height: 1.15;
}

.map-point span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 0.76rem;
  line-height: 1.3;
}

.age-bars {
  display: grid;
  gap: 18px;
}

.age-row {
  display: grid;
  gap: 8px;
}

.bar-topline strong {
  color: var(--ink);
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
}

.action-list p {
  margin: 0;
  color: #3e4b47;
  line-height: 1.45;
}

.contact-section {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.contact-section h2 {
  max-width: 760px;
}

@media (max-width: 980px) {
  .hero-section,
  .case-hero,
  .case-dashboard,
  .case-dashboard.bottom,
  .service-grid,
  .method-steps,
  .embedded-study-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    justify-self: center;
  }

  .method-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-size: 0.84rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.9rem);
    line-height: 0.96;
  }

  .hero-lead,
  .section-intro p:not(.eyebrow),
  .case-hero p {
    font-size: 0.96rem;
    line-height: 1.5;
  }

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

  .decision-flow {
    grid-template-columns: 1fr;
  }

  .decision-flow i {
    min-height: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--green), rgba(255, 253, 248, 0.18));
  }

  .section {
    padding-block: 54px;
  }

  .section-intro h2,
  .contact-section h2,
  .case-hero h3 {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1;
  }

  .service-item,
  .method-steps article {
    min-height: auto;
  }

  .service-item h3,
  .method-steps p {
    margin-top: 26px;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .case-dashboard {
    padding: 10px;
  }

  .case-dashboard.bottom {
    padding-top: 0;
  }

  .embedded-study {
    margin-top: 12px;
    padding: 12px;
  }

  .embedded-study-heading {
    display: grid;
    align-items: start;
  }

  .study-frame {
    min-height: 720px;
  }

  .case-panel {
    min-height: auto;
    padding: 18px;
  }

  .territory-map {
    min-height: 560px;
  }

  .map-point {
    width: min(218px, 58%);
  }

  .action-list article {
    grid-template-columns: 1fr;
  }
}
