:root {
  color-scheme: light;
  --ink: #1d2520;
  --muted: #5e6b62;
  --soft: #f4f1e8;
  --paper: #fffdf7;
  --line: #d9d2c4;
  --green: #1f6f4a;
  --green-deep: #12472f;
  --gold: #b8872f;
  --plum: #5b3a5f;
  --terracotta: #b35d3f;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(29, 37, 32, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(184, 135, 47, 0.7);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 210, 196, 0.9);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 820;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #37443c;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  background: #ede7da;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-secondary {
  background: rgba(255, 253, 247, 0.9);
  border-color: rgba(255, 253, 247, 0.95);
  color: var(--ink);
}

.btn-secondary:hover {
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 78dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("../images/hero-team.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 25, 20, 0.74) 0%, rgba(17, 25, 20, 0.44) 43%, rgba(17, 25, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(17, 25, 20, 0.38), rgba(17, 25, 20, 0.06));
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 72px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4cf82;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 56px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.85fr;
  gap: 16px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.photo-tile {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(255, 253, 247, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.photo-tile.tall {
  grid-row: span 2;
  min-height: 456px;
}

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

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: #18221c;
  color: #fffdf7;
}

.inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-head p,
.muted {
  color: var(--muted);
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 253, 247, 0.72);
}

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

.capability-card,
.metric-card,
.contact-panel,
.form-panel,
.security-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(29, 37, 32, 0.08);
}

.capability-card {
  padding: 24px;
}

.capability-card.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card .card-body {
  padding: 22px;
}

.mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e7f0e7;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 820;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 42px;
  align-items: center;
}

.visual-frame {
  overflow: hidden;
  border: 1px solid rgba(217, 210, 196, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-caption {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.story-photo {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.story-copy {
  display: grid;
  align-content: center;
  padding: 32px 0;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f0e7;
  color: var(--green-deep);
  font-weight: 850;
}

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

.metric-card {
  padding: 22px;
  box-shadow: none;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.1;
}

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

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.08);
  color: #fffdf7;
  cursor: pointer;
  font-weight: 740;
}

.tab-button.active {
  background: #fffdf7;
  color: var(--ink);
}

.tab-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.console-panel {
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.08);
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 253, 247, 0.16);
}

.console-row:last-child {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(244, 207, 130, 0.16);
  color: #f4cf82;
  font-size: 13px;
  font-weight: 780;
}

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

.timeline-item {
  padding: 22px;
}

.timeline-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 820;
}

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

.security-card {
  padding: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-panel,
.form-panel {
  padding: 26px;
}

.email-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green-deep);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-detail {
  display: grid;
  gap: 4px;
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.contact-detail span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.contact-detail strong {
  color: var(--ink);
  font-size: 18px;
}

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

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: #334139;
  font-size: 14px;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green-deep);
  font-weight: 720;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 650;
}

@media (max-width: 920px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .capability-grid,
  .metrics-grid,
  .timeline,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .tab-panel,
  .contact-layout,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-tile.tall {
    grid-row: auto;
    min-height: 240px;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

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

  .hero {
    min-height: 72dvh;
    background-position: 68% center;
  }

  .hero-content {
    padding: 64px 0 58px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    max-width: 335px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions .btn {
    padding-inline: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .capability-grid,
  .metrics-grid,
  .timeline,
  .security-grid,
  .field-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    margin-top: -28px;
  }

  .story-photo img {
    min-height: 280px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
