:root {
  --ink: #263739;
  --muted: #5c7174;
  --line: #bed5d8;
  --paper: #eef8f8;
  --white: #ffffff;
  --blue: #7bb9ef;
  --teal: #3db3a7;
  --coral: #3c494a;
  --gold: #8aa7a9;
  --shadow: 0 18px 42px rgba(38, 55, 57, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 16px;
  color: var(--white);
  background: rgba(38, 55, 57, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(61, 73, 74, 0.14);
  box-shadow: 0 14px 30px rgba(38, 55, 57, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  padding: 4px;
  background: #ffffff;
  border: 1px solid rgba(184, 223, 226, 0.82);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(25, 42, 44, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 7px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  background: #e4f4f5;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  border-radius: 4px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 78svh;
  padding: 132px max(22px, calc((100vw - var(--max)) / 2)) 28px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(32, 48, 50, 0.94) 0%, rgba(32, 48, 50, 0.78) 43%, rgba(32, 48, 50, 0.24) 100%),
    url("assets/hero-operations.png") center / cover no-repeat,
    #263739;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

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

.hero .eyebrow {
  color: #9bf4ea;
}

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

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 850;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

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

.button.primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(38, 55, 57, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #2f3d3e;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(670px, 100%);
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(184, 223, 226, 0.2);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  min-width: 0;
  padding: 17px 18px;
  background: rgba(38, 55, 57, 0.5);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.section {
  padding: 82px max(22px, calc((100vw - var(--max)) / 2));
}

.service-band,
.process {
  background: var(--paper);
}

.product-band {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.3fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.outcomes-content h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:last-child,
.outcomes-content > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card,
.product-card,
.timeline article {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card,
.product-card {
  padding: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: #b9c7da;
  box-shadow: var(--shadow);
}

.icon-shell {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  color: var(--blue);
  background: #eaf8ff;
  border-radius: 8px;
}

.icon-shell svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:nth-child(4n + 2) .icon-shell {
  color: var(--teal);
  background: #e4f7f5;
}

.service-card:nth-child(4n + 3) .icon-shell {
  color: var(--coral);
  background: #e8eeee;
}

.service-card:nth-child(4n + 4) .icon-shell {
  color: var(--gold);
  background: #eef6f6;
}

.service-card h3,
.product-card h3,
.timeline h3 {
  margin: 20px 0 8px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.service-card p,
.product-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.product-card {
  position: relative;
  padding-top: 58px;
  overflow: hidden;
}

.product-card::before {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 28px;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 999px;
}

.outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 54px;
  align-items: center;
}

.outcomes-media {
  min-width: 0;
}

.outcomes-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.outcomes-content {
  min-width: 0;
}

.outcomes-content > p {
  margin-top: 18px;
}

.outcome-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.outcome-list div {
  padding-left: 18px;
  border-left: 4px solid var(--teal);
}

.outcome-list div:nth-child(2) {
  border-color: var(--blue);
}

.outcome-list div:nth-child(3) {
  border-color: var(--coral);
}

.outcome-list strong,
.outcome-list span {
  display: block;
}

.outcome-list span {
  margin-top: 3px;
  color: var(--muted);
}

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

.timeline article {
  position: relative;
  padding: 24px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.8rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
  background: #fdfefe;
}

.contact-copy {
  min-width: 0;
}

.contact-copy > p {
  margin-top: 18px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 800;
}

.contact-methods svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #344052;
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd5df;
  border-radius: 7px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
  outline: none;
}

.form-button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 34px max(22px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: #263739;
}

.site-footer .brand {
  color: var(--white);
  width: fit-content;
}

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

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

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

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max));
    margin-top: 12px;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(61, 73, 74, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 74svh;
    padding-top: 118px;
    background-position: 61% center;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(390px, 100%);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    width: min(390px, 100%);
    margin-top: 34px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .services-grid,
  .product-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .form-button {
    width: 100%;
  }
}

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