:root {
  --green: #0d3c31;
  --green-2: #125441;
  --green-3: #08261f;
  --copper: #d8692b;
  --ink: #111412;
  --muted: #68716d;
  --line: #d9dfda;
  --paper: #fbfaf5;
  --surface: #eef1ec;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(7, 28, 23, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(251, 250, 245, 0.58), rgba(251, 250, 245, 0.74)),
    url("assets/technical-plan-bg.webp") center top / 1560px auto repeat-y,
    var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 245, 0.82);
  border-bottom: 1px solid rgba(217, 223, 218, 0.78);
  backdrop-filter: blur(20px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

body.has-scrolled .site-header {
  background: rgba(251, 250, 245, 0.95);
  box-shadow: 0 10px 30px rgba(7, 28, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 268px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: #202724;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--copper);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: 180ms ease;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 11px 15px;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(24px, 5vw, 80px);
  min-height: calc(100svh - 75px);
  padding: clamp(36px, 6vw, 80px) clamp(18px, 5vw, 70px) clamp(54px, 7vw, 94px);
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

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

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

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 620px;
  font-size: clamp(52px, 5.8vw, 86px);
  line-height: 0.94;
  text-wrap: balance;
}

.hero-lede {
  max-width: 560px;
  color: #3f4844;
  font-size: clamp(17px, 1.4vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(13, 60, 49, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--green);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 84% 100%, 0 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-stage::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 31, 0.04), rgba(8, 38, 31, 0.42));
  content: "";
  pointer-events: none;
}

.hero-glass {
  position: absolute;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  left: clamp(18px, 3vw, 38px);
  z-index: 2;
  padding: 20px;
  background: rgba(251, 250, 245, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
}

.hero-glass span {
  display: block;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-glass strong {
  display: block;
  max-width: 640px;
  margin-top: 8px;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.03;
}

.signal-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-3);
  color: var(--white);
}

.signal-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.signal-track span {
  padding: 20px 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section,
.process-board {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 118px) 24px;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.section-heading.split {
  grid-template-columns: 1fr minmax(260px, 430px);
  align-items: end;
}

.section-heading h2,
.credential-copy h2,
.contact-copy h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.8vw, 74px);
  line-height: 0.95;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow),
.credential-copy p,
.contact-copy p {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-card {
  position: relative;
  min-height: 285px;
  padding: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(13, 60, 49, 0.12);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.service-card::before {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 58px;
  height: 58px;
  background: var(--green);
  content: "";
  opacity: 0.08;
  transform: rotate(45deg);
  transition: transform 220ms ease, opacity 220ms ease;
}

.service-card:hover {
  background: var(--green);
  box-shadow: var(--shadow);
  color: var(--white);
  transform: translateY(-8px);
}

.service-card:hover::before {
  opacity: 0.18;
  transform: rotate(45deg) scale(2.2);
}

.service-card span,
.timeline span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card h3,
.timeline h3 {
  margin: 76px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1.08;
}

.service-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.75);
}

.projects {
  max-width: none;
  background: var(--surface);
}

.projects .section-heading {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 1px solid rgba(13, 60, 49, 0.2);
  background: rgba(255, 255, 255, 0.65);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 11px 14px;
  text-transform: uppercase;
  transition: 160ms ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--green);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13, 60, 49, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.project-card[hidden] {
  display: none;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.13;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card div {
  min-height: 156px;
  padding: 20px;
}

.project-card p {
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.05;
}

.project-card span {
  color: var(--muted);
  font-size: 13px;
}

.credentials {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) 1.22fr;
  gap: clamp(34px, 5vw, 78px);
  align-items: start;
}

.credential-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.credential-card {
  display: grid;
  min-height: 230px;
  align-content: center;
  justify-items: center;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 60, 49, 0.14);
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.credential-card:hover {
  background: var(--white);
  border-color: rgba(13, 60, 49, 0.38);
  transform: translateY(-5px);
}

.credential-card strong {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  line-height: 1;
}

.credential-logo-card img {
  width: 150px;
  margin-bottom: 22px;
}

.credential-card span {
  max-width: 170px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.process-board {
  max-width: none;
  background: var(--green-3);
  color: var(--white);
}

.process-board .section-heading,
.process-board .timeline {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.process-board p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.16);
  list-style: none;
}

.timeline li {
  min-height: 238px;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, transform 180ms ease;
}

.timeline li:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.timeline h3 {
  margin-top: 60px;
  color: var(--white);
}

.timeline p {
  color: rgba(255, 255, 255, 0.68);
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(34px, 7vw, 78px);
  background: var(--white);
  box-shadow: var(--shadow);
}

blockquote {
  margin: 0;
}

blockquote p {
  margin-bottom: 22px;
  color: #1e2824;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3.5vw, 54px);
  line-height: 1.02;
  text-wrap: balance;
}

cite {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  max-width: 1440px;
  margin: 0 auto;
  background: var(--green);
  color: var(--white);
}

.contact-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 84px);
}

.contact-copy .eyebrow {
  color: #ff9a5c;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.contact-links a:hover {
  color: #ffad79;
}

.contact-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  min-width: 250px;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-stage {
    min-height: 470px;
  }

  .services-grid,
  .project-grid,
  .credential-wall,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    max-width: 170px;
    font-size: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    gap: 26px;
    padding: 20px 16px 48px;
  }

  .hero-stage {
    min-height: 330px;
    order: -1;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 86% 100%, 0 100%);
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-glass {
    padding: 14px;
  }

  .hero-glass strong {
    font-size: 20px;
  }

  .services-grid,
  .project-grid,
  .credential-wall,
  .timeline,
  .quote-panel {
    grid-template-columns: 1fr;
  }

  .section,
  .process-board {
    padding-right: 18px;
    padding-left: 18px;
  }

  .project-grid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .service-card,
  .timeline li {
    min-height: 210px;
  }

  .service-card h3,
  .timeline h3 {
    margin-top: 42px;
  }

  .quote-panel {
    padding: 28px;
  }

  .contact-copy {
    padding: 42px 20px;
  }

  .contact-panel img {
    min-height: 300px;
  }

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