:root {
  --ink: #17211d;
  --muted: #5c665f;
  --line: #d7ddd6;
  --paper: #f7f5ee;
  --white: #ffffff;
  --forest: #123d32;
  --forest-2: #0f5a46;
  --blue: #245b78;
  --blue-2: #4b82a0;
  --amber: #c8892a;
  --coral: #b85b4b;
  --sage: #dfe8dc;
  --shadow: 0 22px 70px rgba(18, 33, 29, 0.18);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(13, 28, 24, 0.88), rgba(13, 28, 24, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(9, 24, 20, 0.75) 0%, rgba(9, 24, 20, 0.44) 42%, rgba(9, 24, 20, 0.1) 100%),
    url("assets/hero-district-foresight.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(9, 24, 20, 0.45), rgba(9, 24, 20, 0.08) 44%, rgba(9, 24, 20, 0.92)),
    radial-gradient(circle at 72% 34%, rgba(200, 137, 42, 0.18), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(130px, 20vh, 210px) 0 80px clamp(18px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  font-weight: 820;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 780;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--forest-2);
  border-color: rgba(255, 255, 255, 0.12);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.button.wide {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(640px, 100%);
  margin: 44px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-metrics dt {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 830;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  padding: clamp(66px, 9vw, 118px) clamp(18px, 4vw, 56px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section h2 {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 4.1rem);
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-grid,
.evidence-grid,
.visual-grid,
.dashboard-grid,
.contact-grid,
.background-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.priority-list,
.method-grid,
.study-grid {
  display: grid;
  gap: 14px;
}

.priority-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.priority-list article,
.method-grid article,
.study-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.priority-list article {
  min-height: 158px;
  padding: 24px;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.priority-list p,
.method-grid p,
.study-card p,
.contact-panel p {
  margin: 10px 0 0;
  font-size: 0.98rem;
}

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

.chart-panel {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 245, 238, 0.95)),
    var(--white);
  box-shadow: var(--shadow);
}

.chart-header,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.chart-header h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border: 1px solid rgba(36, 91, 120, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue);
  background: rgba(75, 130, 160, 0.1);
  font-size: 0.77rem;
  font-weight: 780;
  white-space: nowrap;
}

.forecast-chart {
  margin: 22px 0 0;
}

.forecast-chart figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.forecast-chart figcaption strong {
  color: var(--ink);
}

.forecast-chart svg {
  width: 100%;
  height: auto;
  min-height: 260px;
  overflow: visible;
}

.grid-lines line,
.axis line {
  stroke: #dce2dc;
  stroke-width: 1.2;
}

.axis text {
  fill: #66726b;
  font-size: 17px;
}

.line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.line.actual {
  stroke: var(--ink);
}

.line.model {
  stroke: var(--forest-2);
}

.line.naive {
  stroke: var(--coral);
  stroke-dasharray: 12 13;
}

.points circle {
  fill: var(--ink);
  stroke: var(--white);
  stroke-width: 3;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.key {
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

.actual-key {
  background: var(--ink);
}

.model-key {
  background: var(--forest-2);
}

.naive-key {
  background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 14px);
}

.evidence-copy {
  border-left: 3px solid var(--amber);
  padding-left: clamp(22px, 3vw, 34px);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  content: "✓";
  color: var(--forest-2);
  font-weight: 900;
}

.visual-section {
  background: #eef1e8;
}

.image-feature,
.dashboard-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.image-feature img,
.dashboard-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.visual-copy {
  max-width: 520px;
}

.method-section {
  background: var(--forest);
}

.method-section .eyebrow,
.method-section h2,
.method-section h3 {
  color: var(--white);
}

.method-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.compact {
  max-width: 760px;
}

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

.method-grid article {
  min-height: 240px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.method-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.step-number {
  display: block;
  margin-bottom: 44px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-section {
  background: var(--paper);
}

.dashboard-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

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

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

.study-card {
  min-height: 260px;
  padding: 24px;
}

.study-card h3 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.study-card h3 a {
  text-decoration: none;
}

.study-card h3 a:hover {
  color: var(--forest-2);
}

.study-thumb {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -24px -24px 20px;
  width: calc(100% + 48px);
  max-width: none;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.study-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.study-links a {
  color: var(--forest-2);
  font-weight: 700;
  text-decoration: none;
}

.study-links a:hover {
  text-decoration: underline;
}

.background-section {
  background: #eef1e8;
}

.background-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.founders-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.founders-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.founders-image figcaption {
  padding: 12px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.background-copy {
  max-width: 560px;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(18, 61, 50, 0.94), rgba(36, 91, 120, 0.9)),
    var(--forest);
}

.contact-section .eyebrow,
.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 720;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(200, 137, 42, 0.36);
  border-color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
  cursor: pointer;
  font: inherit;
}

.form-extra {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #0e1916;
  font-size: 0.92rem;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-inner span:first-child {
  color: var(--white);
  font-weight: 780;
}

.response-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(18, 61, 50, 0.94), rgba(36, 91, 120, 0.9)),
    var(--forest);
}

.response-panel {
  width: min(620px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.response-panel h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 1.02;
}

.response-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(9, 24, 20, 0.74) 0%, rgba(9, 24, 20, 0.48) 52%, rgba(9, 24, 20, 0.92) 100%),
      url("assets/hero-district-foresight.png") 58% center / cover no-repeat;
  }

  .hero-content {
    width: 100%;
    padding: 118px 18px 54px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(2.7rem, 12.5vw, 4.2rem);
  }

  .hero-metrics,
  .priority-list,
  .intro-grid,
  .evidence-grid,
  .visual-grid,
  .dashboard-grid,
  .contact-grid,
  .background-grid,
  .study-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    max-width: 420px;
  }

  .forecast-chart figcaption,
  .chart-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .priority-list article,
  .method-grid article,
  .study-card,
  .contact-panel {
    padding: 20px;
  }
}
