:root {
  --ink: #111416;
  --asphalt: #22272a;
  --paper: #f6f1e8;
  --white: #ffffff;
  --muted: #626b70;
  --line: rgba(17, 20, 22, 0.14);
  --safety: #f47a1f;
  --amber: #ffc24b;
  --teal: #0c8f83;
  --green: #5f8542;
  --clay: #a95b35;
  --shadow: 0 24px 76px rgba(17, 20, 22, 0.2);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 20, 22, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(17, 20, 22, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--asphalt);
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-road {
  position: relative;
  width: min(380px, 72vw);
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #111416;
}

.loader-road span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--safety), var(--amber), var(--teal));
  animation: loadingRoad 1s ease-in-out infinite alternate;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition:
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

.topbar.is-elevated,
body.nav-open .topbar {
  color: var(--ink);
  background: rgba(246, 241, 232, 0.94);
  box-shadow: 0 10px 34px rgba(17, 20, 22, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.brand-copy strong,
.brand-copy small {
  display: block;
  line-height: 1.08;
}

.brand-copy strong {
  max-width: 320px;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: end;
  padding: clamp(118px, 14vw, 170px) clamp(18px, 5vw, 74px) clamp(34px, 6vw, 78px);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.02);
  animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 11, 12, 0.9) 0%, rgba(9, 11, 12, 0.62) 38%, rgba(9, 11, 12, 0.1) 100%),
    linear-gradient(0deg, rgba(9, 11, 12, 0.86) 0%, rgba(9, 11, 12, 0.15) 48%, rgba(9, 11, 12, 0.36) 100%);
}

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

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

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

h1 {
  max-width: 1030px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 7.3vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.26rem);
  line-height: 1.62;
}

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

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.btn::before {
  width: 12px;
  height: 12px;
  content: "";
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--ink);
  background: var(--safety);
  box-shadow: 0 18px 40px rgba(244, 122, 31, 0.28);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

.hero-dashboard {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: clamp(26px, 5vw, 70px);
  z-index: 4;
  width: min(360px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(17, 20, 22, 0.66);
  backdrop-filter: blur(18px);
}

.hero-dashboard strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-dashboard p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--safety), var(--amber), var(--teal));
}

.ticker-band {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--asphalt);
  color: var(--white);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 6vw, 70px);
  padding: 18px 0;
  animation: tickerMove 28s linear infinite;
}

.ticker-track span {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.92rem, 1.5vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-track span:nth-child(3n + 1) {
  color: var(--safety);
}

.ticker-track span:nth-child(3n + 2) {
  color: var(--amber);
}

.ticker-track span:nth-child(3n + 3) {
  color: var(--teal);
}

.sequence {
  position: relative;
  min-height: 430vh;
  color: var(--white);
  background: var(--asphalt);
}

.sequence-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--asphalt);
}

.sequence-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.07);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  will-change: opacity, transform;
}

.sequence-photo.active {
  opacity: 1;
}

.sequence-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 22, 0.58) 0%, rgba(17, 20, 22, 0.3) 42%, rgba(17, 20, 22, 0.04) 100%),
    linear-gradient(0deg, rgba(17, 20, 22, 0.56) 0%, rgba(17, 20, 22, 0.06) 50%, rgba(17, 20, 22, 0.25) 100%);
}

.sequence-progress {
  position: absolute;
  left: clamp(18px, 5vw, 74px);
  right: clamp(18px, 5vw, 74px);
  bottom: 32px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.sequence-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--safety), var(--amber), var(--teal));
}

.sequence-copy {
  position: relative;
  z-index: 4;
  width: min(650px, calc(100% - 36px));
  margin-left: clamp(18px, 5vw, 74px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(17, 20, 22, 0.66);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.sequence-copy[data-step-copy="2"] {
  margin-right: clamp(18px, 5vw, 74px);
  margin-left: auto;
}

.sequence-copy + .sequence-copy {
  margin-top: 72vh;
}

.sequence-copy:first-of-type {
  margin-top: -88vh;
}

.sequence-copy:last-of-type {
  margin-bottom: 26vh;
}

.sequence-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.04;
}

.sequence-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.68;
}

.section,
.services-section,
.equipment-section,
.profile-section,
.contact-section {
  padding: clamp(74px, 9vw, 132px) clamp(18px, 5vw, 74px);
}

.section-intro {
  max-width: 760px;
}

.section-intro p:not(.eyebrow),
.service-card p,
.capability p,
.equipment-card p,
.profile-card p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.services-section {
  background:
    linear-gradient(135deg, rgba(244, 122, 31, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(12, 143, 131, 0.1), transparent 38%),
    var(--paper);
}

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

.service-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 42px rgba(17, 20, 22, 0.07);
}

.service-card span {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--asphalt);
  font-weight: 950;
}

.service-card:nth-child(2) span {
  background: var(--teal);
}

.service-card:nth-child(3) span {
  background: var(--green);
}

.service-card:nth-child(4) span {
  background: var(--clay);
}

.capability-section {
  background:
    linear-gradient(135deg, rgba(244, 122, 31, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(12, 143, 131, 0.1), transparent 36%),
    var(--paper);
}

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

.capability {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 42px rgba(17, 20, 22, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.capability:hover {
  border-color: rgba(244, 122, 31, 0.46);
  box-shadow: 0 18px 58px rgba(17, 20, 22, 0.14);
  transform: translateY(-5px);
}

.cap-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--asphalt);
  font-weight: 950;
}

.capability:nth-child(2) .cap-number {
  background: var(--teal);
}

.capability:nth-child(3) .cap-number {
  background: var(--green);
}

.capability:nth-child(4) .cap-number {
  background: var(--clay);
}

.equipment-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(34, 39, 42, 0.96), rgba(17, 20, 22, 0.96)),
    var(--asphalt);
}

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

.equipment-card {
  display: grid;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.equipment-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 360ms ease;
}

.equipment-card:hover img {
  transform: scale(1.06);
}

.equipment-card div {
  padding: 20px;
}

.equipment-card p {
  color: rgba(255, 255, 255, 0.72);
}

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

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 82px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-card dl div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(17, 20, 22, 0.1);
}

.profile-card dt {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(12, 143, 131, 0.09), transparent 34%),
    var(--paper);
}

.contact-copy {
  max-width: 650px;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
}

.contact-link {
  display: inline-flex;
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 20, 22, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fbfaf7;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(12, 143, 131, 0.16);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

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

@keyframes loadingRoad {
  from {
    transform: translateX(-24%);
  }
  to {
    transform: translateX(160%);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.4%, -1%, 0);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1120px) {
  .service-grid,
  .capability-grid,
  .equipment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-dashboard {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .profile-card,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 14px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    max-width: 185px;
    font-size: 0.78rem;
  }

  .brand-copy small {
    font-size: 0.68rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 14px auto;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(17, 20, 22, 0.12);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(246, 241, 232, 0.98);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  body.nav-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-links a {
    padding: 14px;
    border-bottom: 1px solid rgba(17, 20, 22, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 900px;
    padding: 112px 18px 32px;
  }

  h1 {
    font-size: clamp(2rem, 10.2vw, 3.65rem);
    line-height: 1.02;
  }

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

  .sequence {
    min-height: 390vh;
  }

  .sequence-copy {
    padding: 22px;
    margin-right: 18px;
    margin-left: 18px;
  }

  .sequence-copy[data-step-copy="2"] {
    margin-right: 18px;
    margin-left: 18px;
  }

  .sequence-copy:first-of-type {
    margin-top: -82vh;
  }

  .service-grid,
  .capability-grid,
  .equipment-list {
    grid-template-columns: 1fr;
  }

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

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

  .profile-card dl div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

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