:root {
  --paper: #f8f4ec;
  --surface: #fffaf1;
  --surface-2: #edf4f2;
  --ink: #15232f;
  --muted: #5d6a72;
  --line: rgba(21, 35, 47, .14);
  --green: #2f7d62;
  --blue: #2f6f9f;
  --gold: #c89232;
  --rust: #a84b3c;
  --shadow: 0 18px 48px rgba(21, 35, 47, .10);
  --radius: 8px;
  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:
    linear-gradient(180deg, rgba(248, 244, 236, .88), rgba(248, 244, 236, .96)),
    url("assets/engineering-blueprint.jpg") center top / 1200px auto fixed;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .88);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(21, 35, 47, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: .76rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .88rem;
}

.nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(21, 35, 47, .72);
}

.nav a:hover {
  background: rgba(21, 35, 47, .07);
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--surface) !important;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  min-height: 610px;
  margin-top: 18px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, .28);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 35, 47, .90), rgba(21, 35, 47, .68), rgba(21, 35, 47, .28)),
    url("assets/transmission-grid.jpg") center / cover;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  max-width: 760px;
  color: var(--surface);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.45vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lead {
  max-width: 660px;
  color: rgba(255, 250, 241, .84);
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 850;
}

.button.primary {
  color: var(--surface);
  background: var(--green);
}

.button.ghost {
  color: var(--surface);
  border-color: rgba(255, 250, 241, .34);
  background: rgba(255, 250, 241, .10);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 14px;
}

.signal-card,
.hero-metrics {
  border: 1px solid rgba(255, 250, 241, .30);
  border-radius: var(--radius);
  background: rgba(21, 35, 47, .76);
  backdrop-filter: blur(14px);
  color: var(--surface);
}

.signal-card {
  padding: 22px;
}

.signal-card span,
.project-card span,
.axis-card span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin: 10px 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.signal-card p {
  margin: 0;
  color: rgba(255, 250, 241, .76);
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-metrics div {
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 250, 241, .18);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--gold);
  font-size: 1.35rem;
}

.hero-metrics span {
  color: rgba(255, 250, 241, .74);
  font-size: .76rem;
  line-height: 1.25;
}

.section-panel {
  margin-top: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .82);
  box-shadow: var(--shadow);
}

.intro {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 34px;
}

.intro-copy {
  columns: 2;
  column-gap: 30px;
}

.intro-copy p,
.section-heading p,
.project-card p,
.axis-card p,
.principle-grid p,
.contact p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

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

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .46);
}

.project-card.featured {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}

.project-card.featured img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.project-card.featured div {
  padding: 20px;
}

.project-card h3 {
  margin-top: 10px;
  font-size: 1.35rem;
}

.project-card a {
  align-self: flex-start;
  margin-top: 16px;
  color: var(--green);
  font-weight: 850;
}

.axes-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .8fr;
  gap: 16px;
  margin-top: 20px;
}

.axis-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .86);
  box-shadow: var(--shadow);
}

.axis-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.axis-card div,
.axis-card.text-only {
  padding: 20px;
}

.axis-card.text-only {
  min-height: 220px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.principle-grid article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(237, 244, 242, .72);
}

.contact {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(21, 35, 47, .94), rgba(47, 111, 159, .86)),
    url("assets/network-map.jpg") center / cover;
  color: var(--surface);
}

.contact p {
  max-width: 720px;
  color: rgba(255, 250, 241, .78);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 0;
  font-size: .92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--green);
  font-weight: 850;
}

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

  .hero {
    min-height: auto;
    padding: 30px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .intro-copy {
    columns: 1;
  }

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

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

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1160px);
    padding-top: 10px;
  }

  .site-header,
  .hero,
  .section-panel,
  .axis-card,
  .project-card,
  .principle-grid article {
    border-radius: 8px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .section-panel {
    padding: 20px;
  }

  .hero-metrics,
  .project-grid,
  .axes-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 241, .18);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .contact {
    align-items: start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
