:root {
  --bg: #f8fcf8;
  --surface: #ffffff;
  --surface-alt: #f0f7f1;
  --text: #163227;
  --muted: #456356;
  --brand-700: #1f8f4c;
  --brand-600: #2ca85d;
  --brand-500: #47bf74;
  --brand-300: #9edcae;
  --line: #dceadf;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(15, 52, 33, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page main {
  flex: 1;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 252, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: min(320px, 58vw);
  max-height: 34px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--brand-700);
  background: #edf7ef;
}

.nav-links .nav-cta {
  background: var(--brand-600);
  color: #fff;
  border: 1px solid var(--brand-600);
}

.nav-links .nav-cta:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.hero {
  padding: 5rem 0 3.6rem;
}

.hero-full {
  position: relative;
  min-height: clamp(520px, 76vh, 760px);
  padding: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(10, 30, 20, 0.72) 0%, rgba(10, 30, 20, 0.56) 36%, rgba(13, 39, 24, 0.34) 60%, rgba(13, 39, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(6, 18, 11, 0.16) 0%, rgba(6, 18, 11, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.hero-copy-panel {
  max-width: min(760px, 95%);
  background: rgba(9, 23, 15, 0.58);
  border: 1px solid rgba(158, 220, 174, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(5, 17, 11, 0.35);
  backdrop-filter: blur(6px);
  padding: clamp(1.1rem, 3.4vw, 2rem);
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-700);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.hero-copy-panel .eyebrow,
.hero-copy-panel h1,
.hero-copy-panel .lead,
.hero-copy-panel .trust-points {
  color: #f2fff5;
}

.hero-copy-panel .eyebrow {
  color: #9edcae;
}

.hero-copy-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-copy-panel .btn-ghost:hover {
  border-color: #9edcae;
  background: rgba(158, 220, 174, 0.14);
  color: #fff;
}

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

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.45rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  padding: 0.78rem 1.15rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

.trust-points {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

/* legacy split hero styles removed in favor of full-width hero */

.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  margin-bottom: 1.25rem;
}

.section-alt {
  background: var(--surface-alt);
}

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

.card,
.project,
.quotes blockquote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.card h3,
.project h3 {
  margin-bottom: 0.5rem;
}

.card p,
.project p {
  color: var(--muted);
}

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

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quotes blockquote {
  margin: 0;
  color: var(--text);
}

.quotes cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.section-cta {
  background: linear-gradient(175deg, #f8fcf8 0%, #e9f5ea 100%);
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-wrap p {
  color: var(--muted);
  max-width: 70ch;
}

.cta-buttons {
  display: grid;
  gap: 0.6rem;
  min-width: 250px;
}

.lab-wrap,
.stack-wrap,
.team-wrap {
  margin-top: 2rem;
}

.lab-wrap h3,
.stack-wrap h3,
.team-wrap h3 {
  margin-bottom: 0.6rem;
}

.lab-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.lab-track {
  position: relative;
  min-height: 340px;
}

.lab-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.lab-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lab-slide img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.lab-slide img.lab-photo-8 {
  object-position: center 28%;
}

.lab-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 45, 30, 0.68);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lab-nav.prev { left: 0.7rem; }
.lab-nav.next { right: 0.7rem; }

.lab-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.lab-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.lab-dot.is-active {
  background: #9edcae;
}

.team-wrap p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.stack-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.stack-logos img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  filter: grayscale(1);
  opacity: 0.92;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.team-member {
  margin: 0;
  text-align: center;
}

.team-member img,
.team-member .avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #e3efe5;
  box-shadow: 0 8px 16px rgba(15, 52, 33, 0.08);
}

.team-member .avatar {
  display: grid;
  place-content: center;
  background: #edf7ef;
  color: var(--brand-700);
  font-weight: 800;
  font-size: 1rem;
}

.team-member figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.team-member figcaption span {
  font-size: 0.78rem;
  opacity: 0.8;
}

.sent-notice {
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 680px;
  background: #e9f8ee;
  border: 1px solid #bfe6cb;
  color: #1e6a3f;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-weight: 600;
}

.contact-form {
  margin-top: 1.4rem;
  max-width: 680px;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  background: var(--surface);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inline {
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.footer-inline p {
  margin: 0;
}

.social-min {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.2rem;
  padding-bottom: 0.1rem;
}

.social-icons .social-link {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--brand-700);
  border: 1px solid #ffffff22;
  box-shadow: 0 2px 7px rgba(0,0,0,0.14);
}

.social-icons .social-link svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
  flex: 0 0 auto;
}

.social-icons .social-link:hover {
  transform: translateY(-1px);
  background: var(--brand-600);
}

@media (max-width: 930px) {
  .hero-grid,
  .cards-3,
  .project-grid,
  .quotes,
  .cta-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lab-track {
    min-height: 260px;
  }

  .lab-slide img {
    height: 260px;
  }

  .stack-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-logo {
    width: min(250px, 72vw);
    max-height: 32px;
  }

  .hero-full {
    min-height: 560px;
  }

  .hero-copy-panel {
    max-width: 100%;
    border-radius: 14px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .stack-logos,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    width: min(220px, 76vw);
    max-height: 30px;
  }
}
