:root {
  --navy: #0d293f;
  --navy-deep: #071b2a;
  --navy-soft: #173b54;
  --gold: #c6a94d;
  --gold-light: #dbc474;
  --paper: #f7f7f5;
  --warm: #eeeae2;
  --ink: #102431;
  --muted: #5e6d77;
  --white: #ffffff;
  --line: rgba(13, 41, 63, 0.15);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.pre-service-form {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 60px rgba(7, 27, 42, 0.16);
}

.form-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.form-heading span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-heading strong {
  color: var(--navy);
  font-size: clamp(22px, 3vw, 31px);
  letter-spacing: -0.04em;
}

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

.pre-service-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pre-service-form .wide {
  grid-column: 1 / -1;
}

.pre-service-form input:not([type="checkbox"]),
.pre-service-form select,
.pre-service-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid rgba(13, 41, 63, 0.2);
  border-radius: 0;
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.pre-service-form input:focus,
.pre-service-form select:focus,
.pre-service-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 9px !important;
  margin: 20px 0;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.form-consent input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 247, 245, 0.95);
  box-shadow: 0 12px 35px rgba(7, 27, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  width: 300px;
  max-width: 43vw;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.main-nav > a:not(.nav-contact) {
  position: relative;
  padding: 10px 0;
}

.main-nav > a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.main-nav > a:not(.nav-contact):hover::after,
.main-nav > a:not(.nav-contact):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 12px 20px;
  color: var(--white);
  border: 1px solid var(--navy);
  background: var(--navy);
  transition: color 180ms ease, background 180ms ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: var(--navy);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--navy);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  padding: 154px 0 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 41, 63, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(13, 41, 63, 0.038) 1px, transparent 1px),
    var(--paper);
  background-size: 84px 84px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 6px;
  background: var(--gold);
  content: "";
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(450px, 1.08fr);
  align-items: center;
  gap: clamp(58px, 7vw, 105px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow-light {
  color: var(--gold-light);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
}

h1,
h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 700px;
  margin-bottom: 27px;
  font-size: clamp(58px, 6vw, 86px);
  line-height: 1.01;
}

h1 em {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.hero-lead {
  max-width: 610px;
  margin: 0;
  color: #52636e;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 25px;
  border: 1px solid var(--navy);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--navy);
  background: var(--gold-light);
  transform: translateY(-3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  color: var(--navy);
  border-bottom: 1px solid rgba(13, 41, 63, 0.34);
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  position: relative;
  margin: 0;
  padding: 0 0 38px 38px;
}

.hero-media::before {
  position: absolute;
  z-index: 0;
  inset: 36px 34px 0 0;
  border: 1px solid rgba(13, 41, 63, 0.18);
  content: "";
}

.hero-media::after {
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -15px;
  width: 92px;
  height: 92px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  content: "";
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: 0 28px 65px rgba(7, 27, 42, 0.15);
}

.hero-media figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: min(360px, 78%);
  padding: 22px 25px;
  color: var(--white);
  background: var(--navy);
}

.hero-media figcaption span,
.project-card figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-media figcaption strong {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.expertise-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 3vw, 40px);
  margin-top: 72px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.expertise-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.section {
  padding: 122px 0;
}

.services {
  background: var(--white);
}

.section-heading,
.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 64px;
}

.section-heading h2,
.portfolio-heading h2,
.method-intro h2,
.office-copy h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 5.3vw, 72px);
  line-height: 1;
}

.section-heading > p,
.portfolio-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.service-item {
  position: relative;
  display: grid;
  min-height: 225px;
  grid-template-columns: 48px 1fr;
  align-content: start;
  gap: 8px 22px;
  padding: 30px 35px 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-item:nth-child(odd) {
  padding-right: 55px;
  border-right: 1px solid var(--line);
}

.service-item:nth-child(even) {
  padding-left: 40px;
}

.service-item > span:first-child {
  grid-row: 1 / 3;
  padding-top: 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.service-item h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.service-item p {
  max-width: 440px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.service-item-wide {
  min-height: 170px;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(220px, 0.75fr) 1fr auto;
  align-items: center;
  padding-right: 0 !important;
  border-right: 0 !important;
}

.service-item-wide > span:first-child {
  grid-row: auto;
}

.service-item-wide p {
  margin: 0;
}

.service-item-wide a {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.equipment {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 41, 63, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(13, 41, 63, 0.035) 1px, transparent 1px),
    var(--warm);
  background-size: 84px 84px;
}

.equipment::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 6px;
  background: var(--gold);
  content: "";
}

.equipment-heading {
  position: relative;
}

.equipment-heading > p {
  max-width: 490px;
}

.equipment-stack {
  display: grid;
  gap: 24px;
}

.equipment-card {
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  overflow: hidden;
  box-shadow: 0 28px 75px rgba(7, 27, 42, 0.12);
}

.equipment-card-dark {
  color: var(--white);
  background: var(--navy-deep);
}

.equipment-card-light {
  color: var(--navy);
  border: 1px solid rgba(13, 41, 63, 0.08);
  background: var(--paper);
}

.equipment-card-reverse {
  grid-template-columns: minmax(390px, 0.88fr) minmax(0, 1.12fr);
}

.equipment-card-reverse .equipment-media {
  grid-column: 2;
  grid-row: 1;
}

.equipment-card-reverse .equipment-copy {
  grid-column: 1;
  grid-row: 1;
}

.equipment-media {
  position: relative;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  background: #d9d9d5;
}

.equipment-media > img {
  width: 100%;
  height: 100%;
}

.equipment-media-drone::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7, 27, 42, 0.38));
  content: "";
}

.equipment-media-drone > img {
  object-fit: cover;
  object-position: 20% center;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.equipment-card:hover .equipment-media-drone > img {
  transform: scale(1.025);
}

.equipment-media figcaption {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 28px;
  padding: 10px 14px;
  color: var(--navy);
  background: rgba(247, 247, 245, 0.92);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.equipment-media-trimble {
  background:
    linear-gradient(135deg, rgba(198, 169, 77, 0.08), transparent 58%),
    #f1f1ee;
}

.equipment-product-image {
  padding: 45px 19% 45px 7%;
  object-fit: contain;
  object-position: center;
}

.equipment-field-image {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 43% !important;
  height: 37% !important;
  border: 8px solid var(--paper);
  box-shadow: 0 22px 50px rgba(7, 27, 42, 0.2);
  object-fit: cover;
}

.equipment-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 5vw, 70px);
}

.equipment-index {
  margin: 0 0 28px !important;
  color: var(--gold-light) !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.equipment-card-light .equipment-index {
  color: #9b802e !important;
}

.equipment-copy h3 {
  max-width: 460px;
  margin: 0;
  color: inherit;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(36px, 3.7vw, 55px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.equipment-copy h3 span {
  display: block;
  color: var(--gold-light);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.equipment-card-light .equipment-copy h3 span {
  color: #9b802e;
}

.equipment-copy > p:not(.equipment-index) {
  max-width: 510px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
}

.equipment-card-light .equipment-copy > p:not(.equipment-index) {
  color: var(--muted);
}

.equipment-specs {
  display: grid;
  margin: 34px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.equipment-card-light .equipment-specs {
  border-color: var(--line);
}

.equipment-specs > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.equipment-card-light .equipment-specs > div {
  border-color: var(--line);
}

.equipment-specs dt,
.equipment-specs dd {
  margin: 0;
}

.equipment-specs dt {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.equipment-card-light .equipment-specs dt {
  color: #9b802e;
}

.equipment-specs dd {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.equipment-card-light .equipment-specs dd {
  color: var(--navy);
}

.equipment-applications {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
  padding: 24px 30px;
  color: var(--white);
  background: var(--navy);
}

.equipment-applications p {
  margin: 0;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.equipment-applications > div {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.equipment-applications i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.portfolio {
  color: var(--white);
  background: var(--navy);
}

.portfolio-heading h2 {
  color: var(--white);
}

.portfolio-heading > p {
  color: rgba(255, 255, 255, 0.58);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  grid-column: span 5;
  min-height: 410px;
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.project-card-large {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 840px;
}

.project-card-wide {
  grid-column: span 5;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
}

.project-card-large img {
  object-fit: contain;
  background: #f4f2ec;
}

.project-card-wide img {
  object-position: center 55%;
}

.project-card::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(6, 23, 34, 0.92));
  content: "";
}

.project-card:hover img {
  filter: saturate(0.8);
  transform: scale(1.025);
}

.project-card figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.project-card figcaption strong {
  display: block;
  max-width: 430px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.method {
  padding: 122px 0;
  background: var(--warm);
}

.method-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(70px, 10vw, 145px);
}

.method-intro {
  position: sticky;
  top: 140px;
  align-self: start;
}

.method-intro > p:last-child {
  max-width: 430px;
  margin: 26px 0 0;
  color: var(--muted);
}

.method-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
}

.method-steps > li > span {
  padding-top: 5px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.method-steps h3 {
  margin-bottom: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.office-layout {
  display: grid;
  grid-template-columns: minmax(370px, 0.8fr) 1.2fr;
  align-items: center;
  gap: clamp(65px, 9vw, 130px);
}

.office-image {
  position: relative;
  margin: 0;
  padding: 0 0 28px 28px;
}

.office-image::before {
  position: absolute;
  inset: 28px 28px 0 0;
  border: 1px solid var(--gold);
  content: "";
}

.office-image img {
  position: relative;
  width: 100%;
  height: 540px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.office-image figcaption {
  position: absolute;
  right: -40px;
  bottom: 0;
  max-width: 300px;
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy);
  font-size: 12px;
}

.office-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.office-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 35px;
}

.office-pillars span {
  padding: 9px 15px;
  color: var(--navy);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact {
  padding: 112px 0;
  color: var(--white);
  background: var(--navy-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(70px, 10vw, 145px);
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy > p:last-child {
  max-width: 500px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.contact-options {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 23px 48px 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: padding-left 200ms ease, background 200ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-item span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.contact-item i {
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--gold-light);
  font-style: normal;
  transform: translateY(-50%);
}

.site-footer {
  color: rgba(255, 255, 255, 0.62);
  background: #05141e;
}

.footer-main {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-main img {
  width: 290px;
  padding: 8px;
  background: var(--paper);
}

.footer-main p {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 180ms;
}

.delay-3 {
  transition-delay: 270ms;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .header-inner {
    min-height: 80px;
  }

  .brand {
    width: 245px;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 84px 32px;
    visibility: hidden;
    background: var(--paper);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a,
  .nav-contact {
    width: 100%;
    padding: 13px 0;
    color: var(--navy);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 600;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-layout,
  .section-heading,
  .portfolio-heading,
  .method-layout,
  .office-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .method-layout,
  .office-layout,
  .contact-layout {
    gap: 58px;
  }

  .equipment-card,
  .equipment-card-reverse {
    grid-template-columns: 1fr;
  }

  .equipment-card-reverse .equipment-media,
  .equipment-card-reverse .equipment-copy {
    grid-column: 1;
  }

  .equipment-card-reverse .equipment-media {
    grid-row: 1;
  }

  .equipment-card-reverse .equipment-copy {
    grid-row: 2;
  }

  .equipment-media {
    min-height: 540px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    width: min(100%, 740px);
    margin-left: auto;
  }

  .service-item-wide {
    grid-template-columns: 48px 1fr;
  }

  .service-item-wide p,
  .service-item-wide a {
    grid-column: 2;
  }

  .project-card,
  .project-card-large,
  .project-card-wide {
    grid-column: span 6;
    grid-row: auto;
    min-height: 500px;
  }

  .method-intro {
    position: static;
  }

  .office-image {
    width: min(100%, 660px);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand {
    max-width: 68vw;
  }

  h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-media {
    padding: 0 0 27px 20px;
  }

  .hero-media img {
    height: 360px;
  }

  .hero-media figcaption {
    width: calc(100% - 42px);
    padding: 17px 19px;
  }

  .hero-media figcaption strong {
    font-size: 20px;
  }

  .expertise-bar {
    justify-content: flex-start;
    padding-bottom: 5px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .section,
  .method,
  .contact {
    padding: 88px 0;
  }

  .section-heading,
  .portfolio-heading {
    gap: 30px;
    margin-bottom: 45px;
  }

  .section-heading h2,
  .portfolio-heading h2,
  .method-intro h2,
  .office-copy h2,
  .contact-copy h2 {
    font-size: clamp(45px, 13vw, 60px);
  }

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

  .service-item,
  .service-item:nth-child(odd),
  .service-item:nth-child(even) {
    min-height: 210px;
    padding: 27px 0 30px;
    border-right: 0;
  }

  .service-item-wide {
    display: grid;
    min-height: 270px;
  }

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

  .equipment-media {
    height: 390px;
  }

  .equipment-copy {
    padding: 40px 26px 44px;
  }

  .equipment-copy h3 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .equipment-product-image {
    padding: 38px 20% 38px 2%;
  }

  .equipment-field-image {
    right: 14px;
    bottom: 14px;
    width: 48% !important;
    height: 34% !important;
    border-width: 5px;
  }

  .equipment-specs > div {
    grid-template-columns: 90px 1fr;
    gap: 13px;
  }

  .equipment-applications {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px 24px;
  }

  .equipment-applications > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .equipment-applications i {
    display: none;
  }

  .project-grid {
    display: block;
  }

  .project-card,
  .project-card-large,
  .project-card-wide {
    min-height: 430px;
    margin-bottom: 16px;
  }

  .project-card-large img {
    object-fit: cover;
  }

  .method-steps li {
    grid-template-columns: 43px 1fr;
    gap: 15px;
  }

  .office-image {
    padding: 0 0 24px 18px;
  }

  .office-image img {
    height: 420px;
  }

  .office-image figcaption {
    right: 0;
    max-width: 260px;
  }

  .contact-item strong {
    overflow-wrap: anywhere;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }

  .footer-main img {
    width: min(290px, 100%);
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pre-service-form .wide {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
