:root {
  --bg: #ffffff;
  --ink: #0b0b0c;
  --muted: #5f6368;
  --line: #d9dce0;
  --soft: #f5f6f7;
  --soft-2: #eceff1;
  --max: 1180px;
  --pad: clamp(22px, 4vw, 56px);
  --section: clamp(72px, 10vw, 132px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
li {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.18vw, 1.125rem);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 7.5rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2.1rem, 4vw, 4.7rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.65rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid rgba(11, 11, 12, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 560;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(86vh - 70px);
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(82px, 9vw, 128px) var(--pad) clamp(70px, 9vw, 118px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.64)),
    url("../images/civil-plan-hero.jpg") center 55% / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(11, 11, 12, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 12, 0.045) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  content: "";
}

.hero-copy {
  width: min(100%, calc(var(--max) + var(--pad) * 2));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(1.75rem, 3.9vw, 3.75rem);
}

.hero-text {
  max-width: 760px;
  margin: 28px 0 0;
  color: #2d3033;
  font-size: clamp(1.12rem, 1rem + 0.55vw, 1.52rem);
  line-height: 1.5;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 680;
  line-height: 1.2;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button.primary {
  color: var(--bg);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: var(--bg);
}

.section {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: var(--section) var(--pad);
  border-top: 1px solid var(--line);
}

.section.narrow {
  max-width: 950px;
}

.section.narrow p:last-child,
.page-hero p,
.section-heading p,
.story-copy p,
.profile p,
.pilot-copy p,
.interest-section p,
.step-card p {
  margin-bottom: 0;
}

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

.founders-preview .eyebrow {
  font-size: 0.94rem;
}

.founders-preview h2 {
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 260px);
  gap: clamp(18px, 3vw, 28px);
  justify-content: center;
}

.founder-grid.compact {
  max-width: 560px;
}

.founder-card {
  display: grid;
  gap: 14px;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.founder-card img {
  width: 260px;
  height: 260px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
}

.founder-card div {
  padding: 0 16px 18px;
}

.founder-card h3 {
  font-size: 1.08rem;
}

.founder-card p,
.profile .role {
  margin: 8px 0 0;
  color: #3f4347;
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.35;
}

.pilot-section,
.interest-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.interest-section {
  grid-template-columns: minmax(260px, 420px) minmax(360px, 1fr);
  gap: clamp(34px, 5vw, 72px);
}

.interest-section h2 {
  max-width: 420px;
  font-size: clamp(2.45rem, 4.6vw, 4.3rem);
}

.interest-section p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 22px;
}

.pilot-copy {
  max-width: 780px;
}

.pilot-section .eyebrow {
  font-size: 0.98rem;
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.page-hero {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(82px, 11vw, 150px) var(--pad) clamp(54px, 8vw, 96px);
}

.page-hero p {
  max-width: 780px;
  margin-top: 26px;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
}

.story-copy {
  max-width: 760px;
  margin: 0 auto;
}

.story-copy p {
  margin: 0 0 24px;
  color: #41464b;
  font-size: clamp(1.03rem, 0.98rem + 0.16vw, 1.15rem);
  line-height: 1.72;
}

blockquote {
  max-width: 720px;
  margin: 38px 0 34px;
  padding: 24px clamp(22px, 4vw, 38px);
  border-left: 2px solid var(--ink);
  background: var(--soft);
  color: var(--ink);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.95rem);
  font-weight: 620;
  line-height: 1.32;
}

.profile-list {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.profile {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

.profile:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile img {
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
}

.profile p {
  max-width: 780px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 18px;
  margin-top: 0;
}

.interest-section .check-list {
  align-self: center;
  max-width: 760px;
  margin: 0;
}

.interest-section .check-list li {
  color: #42474c;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  line-height: 1.45;
}

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

.step-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.step-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
}

.step-card h3 {
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.45rem);
}

.step-card p {
  margin-top: 16px;
  font-size: 1rem;
}

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

.contact-grid article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.contact-grid a {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-grid p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px var(--pad);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
}

.site-footer p,
.site-footer a {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .pilot-section,
  .interest-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--pad);
    left: var(--pad);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    box-shadow: 0 20px 50px rgba(11, 11, 12, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .founder-grid,
  .profile,
  .two-column,
  .step-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .founder-grid.compact {
    max-width: 260px;
  }

  .profile img,
  .founder-card img {
    max-height: none;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .button {
    width: 100%;
  }

  .step-card,
  .contact-grid article {
    min-height: auto;
  }
}
