:root {
  --ink: #17211d;
  --muted: #65716c;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #dfe5de;
  --green: #1f7a54;
  --green-dark: #105439;
  --amber: #d8912d;
  --charcoal: #202522;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(31, 122, 84, 0.05), transparent 36%),
    radial-gradient(circle at 80% 12%, rgba(216, 145, 45, 0.08), transparent 28%);
  content: "";
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 25px rgba(23, 33, 29, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.brand-mark img {
  width: 38px;
  height: 32px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.brand:hover .brand-mark img {
  transform: scale(1.04);
}

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

.brand strong {
  font-size: 1.08rem;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.76;
}

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

.site-nav a {
  position: relative;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.94rem;
  font-weight: 650;
  opacity: 0.88;
}

.site-nav a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

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

.is-scrolled .site-nav a:hover {
  background: #edf2ed;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 20, 18, 0.9) 0%, rgba(15, 20, 18, 0.68) 35%, rgba(15, 20, 18, 0.18) 75%),
    linear-gradient(0deg, rgba(15, 20, 18, 0.56), rgba(15, 20, 18, 0.06) 45%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 140px 0 54px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 690px;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

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

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 690px;
  margin: 42px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-facts div {
  position: relative;
  padding: 16px;
  background: rgba(15, 20, 18, 0.36);
  overflow: hidden;
}

.hero-facts div::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  content: "";
  transform: translateX(-120%);
  animation: scanLine 4.8s ease-in-out infinite;
}

.hero-facts div:nth-child(2)::before {
  animation-delay: 0.45s;
}

.hero-facts div:nth-child(3)::before {
  animation-delay: 0.9s;
}

.hero-facts dt {
  font-size: 1.08rem;
  font-weight: 850;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1.08fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.intro .section-heading {
  display: block;
  margin: 0;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy p:first-child {
  margin-top: 34px;
}

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

.service-card {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(23, 33, 29, 0.03);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card::after {
  position: absolute;
  inset: auto 18px 0 18px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--green), var(--amber));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(31, 122, 84, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #e7f1ea;
  color: var(--green-dark);
  font-weight: 850;
}

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

.operations-band {
  background: var(--charcoal);
  color: #fff;
}

.operations-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

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

.operations-panel article {
  position: relative;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
  color: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.operations-panel article::before {
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--amber);
  content: "";
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 180ms ease;
}

.operations-panel article:hover::before {
  transform: scaleX(1);
}

.operations-panel span {
  display: inline-grid;
  width: 42px;
  height: 34px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: rgba(216, 145, 45, 0.16);
  color: #f4c06c;
  font-weight: 850;
}

.operations-panel h3 {
  color: #fff;
}

.operations-panel p {
  margin: 12px 0 0;
}

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

.audience-grid div,
.tech-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.audience-grid div:hover,
.tech-list span:hover {
  border-color: rgba(31, 122, 84, 0.36);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  border-top: 3px solid var(--green);
  padding-top: 18px;
}

.timeline span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  transition: transform 180ms ease;
}

.timeline li:hover span {
  transform: translateY(-2px) scale(1.05);
}

.reveal,
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

.reveal:nth-child(2),
.reveal-group.is-visible > *:nth-child(2) {
  transition-delay: 80ms;
}

.reveal:nth-child(3),
.reveal-group.is-visible > *:nth-child(3) {
  transition-delay: 150ms;
}

.reveal:nth-child(4),
.reveal-group.is-visible > *:nth-child(4) {
  transition-delay: 220ms;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2%, 0.8%, 0);
  }
}

@keyframes scanLine {
  0%,
  45% {
    transform: translateX(-120%);
  }

  75%,
  100% {
    transform: translateX(120%);
  }
}

.timeline p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tech {
  padding-top: 0;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(26px, 6vw, 82px);
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto clamp(58px, 8vw, 104px);
  border-radius: 8px;
  background: #fff;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf8;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 122, 84, 0.18);
  border-color: var(--green);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.form-status.is-error {
  color: #9f2d20;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a:hover {
    background: #edf2ed;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    margin-right: 18px;
  }

  .section-heading,
  .intro,
  .operations-content,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: -4px;
  }

  .service-grid,
  .operations-panel,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-bottom: 30px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .service-grid,
  .operations-panel,
  .audience-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 13px 15px;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}

@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,
  .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}
