:root {
  --bg: #070808;
  --panel: rgba(12, 18, 20, 0.78);
  --panel-strong: rgba(13, 20, 23, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f7f5;
  --muted: rgba(244, 247, 245, 0.68);
  --dim: rgba(244, 247, 245, 0.48);
  --mint: #7cf7cf;
  --blue: #8bb7ff;
  --amber: #f2c66d;
  --rose: #ff7ca4;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  cursor: none !important;
}

main {
  max-width: 100vw;
  overflow-x: hidden;
}

a,
button {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.52);
}

.cursor.hover {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.back-button {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 20;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6, 8, 8, 0.54);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.qgis-hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px max(28px, calc((100vw - 1180px) / 2)) 76px;
  border-bottom: 1px solid var(--line);
}

.hero-map,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.92), rgba(7, 8, 8, 0.54) 46%, rgba(7, 8, 8, 0.18)),
    linear-gradient(0deg, rgba(7, 8, 8, 1), rgba(7, 8, 8, 0.16) 58%, rgba(7, 8, 8, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 300;
  line-height: 0.92;
}

.hero-content > p {
  width: 100%;
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(244, 247, 245, 0.82);
  font-size: 1.18rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.hero-actions,
.link-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a,
.link-panel a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
}

.hero-actions a:first-child,
.link-panel a:hover {
  border-color: rgba(124, 247, 207, 0.55);
  background: rgba(124, 247, 207, 0.12);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #090d0e;
}

.proof-band div {
  min-height: 128px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band span {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.proof-band p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0;
}

.evidence-package,
.handoff-section,
.desktop-proof-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-package {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: start;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.evidence-grid a {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.evidence-grid a:hover,
.evidence-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 247, 207, 0.48);
  background: var(--panel-strong);
}

.evidence-grid span {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.evidence-grid strong {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  text-transform: uppercase;
}

.handoff-section {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1.44fr);
  gap: 30px;
  align-items: start;
}

.handoff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.handoff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.handoff-table th,
.handoff-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.handoff-table th {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
}

.handoff-table td {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.handoff-table td:first-child,
.handoff-table td:nth-child(2) {
  color: var(--text);
}

.handoff-table td:nth-child(2) {
  font-family: var(--mono);
  font-size: 0.84rem;
}

.handoff-table tr:last-child td {
  border-bottom: 0;
}

.desktop-proof-section {
  display: grid;
  gap: 28px;
}

.desktop-proof-section .section-copy {
  max-width: 760px;
}

.desktop-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.compact-proof {
  width: min(760px, 100%);
}

.project-set-section {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 auto;
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.project-set-section .section-copy {
  max-width: 780px;
}

.project-set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-set-card {
  min-width: 0;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-set-card:hover,
.project-set-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 247, 207, 0.48);
  background: var(--panel-strong);
}

.project-set-card.is-primary {
  border-color: rgba(124, 247, 207, 0.38);
}

.project-set-card h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.16;
}

.project-set-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
  overflow-wrap: break-word;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.proof-chips span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 8px;
  color: rgba(244, 247, 245, 0.74);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.pipeline-section,
.qa-section,
.schema-section,
.task-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.schema-section {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.section-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.04;
}

.section-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pipeline-grid article {
  min-height: 236px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pipeline-grid span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.pipeline-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.18;
}

.pipeline-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.image-band {
  width: 100%;
  border-block: 1px solid var(--line);
  background: #050606;
}

.image-band img {
  width: 100%;
  display: block;
}

.evidence-figure {
  margin: 0;
}

.evidence-figure img,
.inventory-section img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.evidence-figure figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.82rem;
}

.inventory-section {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0;
}

.inventory-section .section-copy {
  margin-bottom: 26px;
}

.task-section {
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .proof-band,
  .evidence-package,
  .handoff-section,
  .project-set-section,
  .pipeline-section,
  .qa-section,
  .schema-section,
  .task-section,
  .project-set-grid,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .proof-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .qgis-hero {
    min-height: 78vh;
    padding-top: 96px;
  }
}

@media (max-width: 560px) {
  .back-button {
    top: 18px;
    left: 18px;
  }

  .qgis-hero,
  .evidence-package,
  .handoff-section,
  .desktop-proof-section,
  .project-set-section,
  .project-section,
  .inventory-section {
    width: 100%;
  }

  .qgis-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-content > p {
    max-width: calc(100vw - 72px);
    font-size: 0.98rem;
    line-height: 1.52;
  }

  .project-section,
  .evidence-package,
  .handoff-section,
  .desktop-proof-section,
  .project-set-section,
  .inventory-section {
    padding: 56px 20px;
  }

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

  .evidence-grid a {
    min-height: 0;
  }

  .project-set-card {
    min-height: 0;
  }
}
