:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #5c6670;
  --paper: #f7f7f3;
  --panel: #ffffff;
  --line: #d8ddd8;
  --green: #1f6f5b;
  --teal: #1c8a8f;
  --yellow: #d8a51f;
  --red: #b65038;
  --black: #0b0d0f;
  --shadow: 0 18px 50px rgba(21, 23, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 247, 243, 0.86);
  border-bottom: 1px solid rgba(216, 221, 216, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
}

.brand-symbol {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 128px clamp(20px, 5vw, 76px) 44px;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
}

#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 15, 0.88), rgba(11, 13, 15, 0.4) 54%, rgba(11, 13, 15, 0.18)),
    linear-gradient(0deg, rgba(11, 13, 15, 0.9), rgba(11, 13, 15, 0) 40%);
  pointer-events: none;
}

.hero-copy,
.hero-status {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 9vw, 8.6rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  color: rgba(247, 247, 243, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.45;
}

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

.primary-link,
.secondary-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(247, 247, 243, 0.34);
  text-decoration: none;
  font-weight: 750;
}

.primary-link {
  background: var(--paper);
  color: var(--ink);
}

.secondary-link {
  color: var(--paper);
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 58px;
  color: rgba(247, 247, 243, 0.72);
}

.hero-status span {
  border: 1px solid rgba(247, 247, 243, 0.18);
  padding: 9px 12px;
  background: rgba(247, 247, 243, 0.06);
  font-size: 0.88rem;
}

.section {
  padding: clamp(74px, 9vw, 126px) clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.project-card,
.principle-list article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(21, 23, 26, 0.03);
}

.project-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 8px;
}

.project-card-featured {
  grid-column: span 2;
  background: #fdfbf3;
  border-color: rgba(31, 111, 91, 0.28);
}

.project-icon {
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f5f5ef;
}

.project-icon span,
.project-icon::before,
.project-icon::after {
  content: "";
  display: block;
  position: absolute;
}

.commerce-icon span {
  width: 22px;
  height: 22px;
  border: 3px solid var(--green);
}

.commerce-icon::before {
  width: 16px;
  height: 2px;
  background: var(--green);
  transform: translate(10px, -12px);
}

.cards-icon span,
.cards-icon::before {
  width: 24px;
  height: 32px;
  border: 2px solid var(--red);
  background: #fff;
}

.cards-icon span {
  transform: rotate(-7deg) translate(-5px, 2px);
}

.cards-icon::before {
  transform: rotate(8deg) translate(5px, -1px);
}

.motion-icon span {
  width: 28px;
  height: 14px;
  border: 3px solid var(--teal);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.motion-icon::before,
.motion-icon::after {
  width: 8px;
  height: 8px;
  bottom: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.motion-icon::before {
  left: 14px;
}

.motion-icon::after {
  right: 14px;
}

.civic-icon span {
  width: 28px;
  height: 28px;
  border: 2px solid var(--yellow);
  transform: rotate(45deg);
}

.civic-icon::before {
  width: 20px;
  height: 2px;
  background: var(--yellow);
}

.project-kicker,
.project-state {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-card p:not(.project-kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.project-card a,
.project-state {
  width: fit-content;
  border-bottom: 2px solid currentColor;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.principles-section {
  background: #ededdf;
}

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

.principle-list article {
  min-height: 220px;
  padding: 24px;
  border-radius: 8px;
}

.principle-list p,
.contact-section p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding: clamp(74px, 9vw, 126px) clamp(20px, 5vw, 76px);
  background: var(--green);
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #f1cd66;
}

.contact-section p {
  max-width: 640px;
  color: rgba(247, 247, 243, 0.78);
}

.contact-link {
  border-color: rgba(247, 247, 243, 0.36);
  background: var(--paper);
  color: var(--green);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 76px);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .project-grid,
  .principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-featured {
    grid-column: span 2;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 148px;
  }

  .project-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: span 1;
  }

  .contact-link {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
  }
}
