:root {
  --ink: #161b22;
  --muted: #5d6772;
  --paper: #f6f7f8;
  --white: #fff;
  --teal: #02d1d6;
  --teal-deep: #087f88;
  --orange: #fc9657;
  --line: rgba(22, 27, 34, 0.1);
  --header: 5rem;
  --sans: Outfit, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

body.nav-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--teal-deep); }
a:visited { color: var(--teal-deep); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 50;
  transform: translateY(-120%);
  background: #fff;
  padding: 0.55rem 0.8rem;
}

.skip:focus { transform: none; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.logo img { height: 46px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.25rem;
}

.bars span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] .bars { display: none; }

.nav-toggle[aria-expanded="true"]::before {
  content: "×";
  font-size: 2rem;
  line-height: 0.8;
}

.nav {
  display: none;
}

.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(100dvh - var(--header));
  flex-direction: column;
  padding: 0.5rem 1.25rem 2rem;
  background: #fff;
  overflow: auto;
}

.nav a,
.nav a:visited {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.nav a.is-active { color: var(--teal-deep); }

.btn.header-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary,
.btn-primary:visited {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: #000; }

.btn-line,
.btn-line:visited {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-line:hover { border-color: var(--ink); }

.hero {
  display: grid;
  background: #0e1216;
}

.hero-media {
  position: relative;
  min-height: 78vw;
  max-height: 88vh;
  overflow: hidden;
}

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

.video-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 18, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.video-toggle::before {
  content: "❚❚";
  font-size: 0.7rem;
  letter-spacing: -0.08em;
}

.video-toggle.is-paused::before {
  content: "▶";
  letter-spacing: 0;
}

.hero-copy {
  padding: 1.8rem 1.15rem 2.2rem;
  background: #fff;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.hero h1,
.section h2 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 11em;
}

.hero-copy p:not(.kicker) {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.section-services { background: var(--paper); }

.about-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.4rem;
}

.about-grid,
.contact-grid,
.careers-inner {
  display: grid;
  gap: 2rem;
}

.section h2 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.mission {
  margin-top: 0.4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.about-copy p + p { margin-top: 0.9rem; }
.about-copy p { color: var(--muted); }

.facts { margin-top: 1.4rem; }

.facts div {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head { max-width: 38rem; margin-bottom: 1.8rem; }
.section-head p:last-child,
.lede { color: var(--muted); }

.service-grid {
  display: grid;
  gap: 0.9rem;
}

.service {
  background: #fff;
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.45rem;
  border: 1px solid var(--line);
}

.section-services .service { background: #fff; }

.num {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--orange);
  font-weight: 700;
}

.service h3 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.service p,
.industry p { margin-top: 0.4rem; color: var(--muted); }

.industry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.industry:last-child { border-bottom: 1px solid var(--line); }

.industry span {
  color: var(--teal-deep);
  font-weight: 700;
}

.industry h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.contact { background: var(--paper); }

.contact-points { margin-top: 1.3rem; }
.contact-points li + li { margin-top: 0.85rem; }

.contact-points span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.15rem;
  border: 1px solid var(--line);
}

.form-row { display: grid; gap: 0.8rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.field span { font-size: 0.82rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(22, 27, 34, 0.16);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note {
  min-height: 1.3rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.careers-inner { align-items: center; }
.careers .btn { margin-top: 1rem; }

.site-footer {
  background: #12161b;
  color: #fff;
  padding: 2.2rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.logo-chip {
  display: inline-flex;
  background: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  justify-self: start;
}

.site-footer p { color: rgba(255, 255, 255, 0.78); }
.site-footer a,
.site-footer a:visited { color: #fff; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .facts div {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .wrap { width: min(1160px, calc(100% - 3rem)); }
  .nav-toggle { display: none; }

  .nav,
  .nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    height: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .nav a,
  .nav.is-open a {
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0.2rem 0;
    border: 0;
  }

  .btn.header-cta { display: inline-flex; }

  .hero {
    grid-template-columns: minmax(340px, 0.9fr) 1.15fr;
    min-height: calc(100svh - var(--header));
    align-items: stretch;
  }

  .hero-media {
    min-height: 100%;
    max-height: none;
    order: 2;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.2rem;
  }

  .section { padding: 6.5rem 0; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .careers-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-grid {
    grid-template-columns: auto 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
