:root {
  --navy-950: #020d1a;
  --navy-900: #03172c;
  --navy-850: #06203a;
  --navy-800: #082b4d;
  --blue-600: #087df3;
  --blue-500: #0b95ff;
  --blue-400: #38b5ff;
  --cyan-400: #38d6ff;
  --ink: #07152c;
  --muted: #5d6a7e;
  --line: #d9e1ea;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --shadow: 0 20px 60px rgba(1, 21, 44, 0.14);
  --radius: 18px;
  --container: 1376px;
  --header-height: 86px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-600);
  transition: transform 180ms ease;
}

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

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

.section {
  position: relative;
  padding: 108px 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 15, 30, 0.94);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 13, 26, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  position: relative;
  z-index: 102;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand-wordmark {
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.08;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}

.nav-link {
  position: relative;
  padding: 31px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.93rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--blue-500);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  position: relative;
  z-index: 102;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button-small {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.9rem;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), #0870e5);
  box-shadow: 0 12px 28px rgba(5, 124, 241, 0.28);
}

.button-primary:hover {
  background: linear-gradient(135deg, #19a7ff, #087df3);
  box-shadow: 0 16px 34px rgba(5, 124, 241, 0.38);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.button-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 14px 30px rgba(3, 23, 44, 0.18);
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  padding-top: var(--header-height);
  overflow: hidden;
  align-items: center;
  color: #fff;
  background: var(--navy-950);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 14, 28, 0.99) 0%, rgba(3, 22, 42, 0.96) 34%, rgba(3, 22, 42, 0.62) 52%, rgba(2, 15, 29, 0.08) 76%),
    linear-gradient(0deg, rgba(1, 11, 23, 0.25), transparent 45%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  width: min(660px, 51%);
  padding: 92px 0 98px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 850;
  letter-spacing: -0.048em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--blue-500);
}

.hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.35vw, 1.28rem);
  line-height: 1.55;
}

.hero-capabilities {
  display: grid;
  max-width: 630px;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0 36px;
}

.hero-capability {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
  text-align: center;
}

.hero-capability:first-child {
  justify-content: flex-start;
  padding-left: 0;
}

.hero-capability:last-child {
  justify-content: flex-end;
  padding-right: 0;
  border-right: 0;
}

.hero-capability svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: #dff3ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-capability span {
  font-size: 0.8rem;
  font-weight: 720;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  display: grid;
  width: 38px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 5px;
  height: 10px;
  border-radius: 99px;
  background: var(--blue-400);
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(-8px); opacity: 0; }
  35% { opacity: 1; }
  70% { transform: translateY(8px); opacity: 1; }
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading h2,
.industries h2,
.about h2,
.quote-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 3.7vw, 3.45rem);
  font-weight: 830;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.heading-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 70px;
}

.heading-split > p {
  max-width: 560px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.service-card {
  position: relative;
  min-height: 280px;
  padding: 30px 28px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--blue-500), var(--cyan-400));
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 220ms ease;
}

.service-card:hover {
  border-color: rgba(8, 125, 243, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.icon-box {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-600);
  background: #e9f4ff;
}

.icon-box svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.service-card h3 {
  max-width: 250px;
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.14;
}

.service-card p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-index {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: #dce7f2;
  font-size: 2rem;
  font-weight: 850;
}

.industries {
  overflow: hidden;
  color: #fff;
  background: #031428;
}

.industries-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 18, 36, 0.98) 0%, rgba(3, 26, 49, 0.86) 42%, rgba(3, 22, 42, 0.78) 100%),
    url("assets/industrial-control-cabinet.png") center 52% / cover no-repeat;
  opacity: 0.95;
}

.industries::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.industries-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 70px;
}

.industries h2 {
  max-width: 520px;
  color: #fff;
}

.industries-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 20px 0 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-400);
  font-weight: 760;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.industry-card {
  grid-column: span 2;
  min-height: 218px;
  padding: 28px 22px;
  border: 1px solid rgba(140, 205, 255, 0.25);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(7, 37, 65, 0.92), rgba(3, 23, 44, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(9px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.industry-card:nth-child(4) { grid-column: 2 / span 2; }
.industry-card:nth-child(5) { grid-column: 4 / span 2; }

.industry-card:hover {
  border-color: rgba(56, 181, 255, 0.65);
  background: linear-gradient(145deg, rgba(8, 58, 98, 0.95), rgba(3, 31, 58, 0.86));
  transform: translateY(-5px);
}

.industry-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  fill: none;
  stroke: #90dcff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.industry-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.industry-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.84rem;
}

.process {
  background: var(--surface-soft);
}

.centered {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered > p:last-child {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 62px;
}

.process-grid::before {
  position: absolute;
  top: 31px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), #97d8ff);
  content: "";
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border: 7px solid var(--surface-soft);
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 0 0 2px var(--blue-600);
  font-size: 0.9rem;
  font-weight: 850;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(56px, 7vw, 110px);
}

.about-visual {
  position: relative;
  padding: 0 0 42px 28px;
}

.about-visual::before {
  position: absolute;
  z-index: -1;
  inset: 34px 48px 0 0;
  border-radius: 22px;
  background: #e8f3fd;
  content: "";
}

.about-image-frame {
  aspect-ratio: 1.04;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% center;
}

.about-badge {
  position: absolute;
  right: -12px;
  bottom: 0;
  display: flex;
  width: min(330px, 75%);
  flex-direction: column;
  padding: 22px 24px;
  border-left: 4px solid var(--blue-500);
  border-radius: 12px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 18px 45px rgba(3, 23, 44, 0.28);
}

.about-badge strong {
  font-size: 1rem;
}

.about-badge span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.84rem;
}

.about-lede {
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

.check-list {
  display: grid;
  gap: 22px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}

.check-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-600);
  background: #e7f4ff;
  font-weight: 900;
}

.check-list strong {
  display: block;
  margin-bottom: 4px;
}

.check-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.quote-section {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(15, 145, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #03172c 0%, #051f39 58%, #032447 100%);
}

.quote-section::before {
  position: absolute;
  top: -300px;
  right: -180px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(77, 185, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(77, 185, 255, 0.035), 0 0 0 140px rgba(77, 185, 255, 0.025);
  content: "";
}

.quote-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: start;
  gap: clamp(50px, 7vw, 100px);
}

.quote-section h2 {
  color: #fff;
}

.quote-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.05rem;
}

.contact-stack {
  display: grid;
  gap: 15px;
}

.contact-stack a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-stack a:hover {
  border-color: rgba(56, 181, 255, 0.5);
  background: rgba(255, 255, 255, 0.075);
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--blue-600);
}

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

.contact-stack small,
.contact-stack strong {
  display: block;
}

.contact-stack small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-stack strong {
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.quote-form {
  display: grid;
  gap: 17px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.28);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: #1a2a42;
  font-size: 0.88rem;
  font-weight: 760;
}

.quote-form label > span {
  color: var(--blue-600);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cfd9e5;
  border-radius: 10px;
  color: var(--ink);
  background: #f9fbfd;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quote-form input,
.quote-form select {
  height: 50px;
  padding: 0 14px;
}

.quote-form textarea {
  min-height: 126px;
  padding: 13px 14px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 125, 243, 0.12);
}

.quote-form .field-error {
  border-color: #d33e4d;
  box-shadow: 0 0 0 4px rgba(211, 62, 77, 0.1);
}

.button-submit {
  width: 100%;
  margin-top: 2px;
}

.form-note {
  margin: -5px 0 0;
  color: #748096;
  font-size: 0.78rem;
  text-align: center;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  color: #0f3759;
  background: #eaf6ff;
  font-size: 0.88rem;
}

.form-status.is-visible {
  display: block;
}

.form-status a {
  color: #056ed6;
  font-weight: 800;
  text-decoration: underline;
}

.site-footer {
  padding: 64px 0 22px;
  color: #fff;
  background: #010b16;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
  gap: 52px;
  padding-bottom: 46px;
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-lockup img {
  width: 150px;
  height: auto;
}

.footer-brand p {
  max-width: 400px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.59);
  font-size: 0.9rem;
}

.footer-grid h2 {
  margin: 4px 0 18px;
  color: #fff;
  font-size: 0.91rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.footer-grid a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.noscript-banner {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  color: #2b1e00;
  background: #ffe8a3;
  text-align: center;
}

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

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

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

@media (max-width: 1180px) {
  :root { --header-height: 78px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .brand img { width: 132px; }
  .brand-wordmark { font-size: 0.6rem; }
  .primary-nav { gap: 18px; }
  .nav-link { font-size: 0.86rem; }
  .nav-cta { display: none; }
  .hero { min-height: 710px; }
  .hero-copy { width: min(650px, 60%); }
  .hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-layout { grid-template-columns: 1fr; gap: 46px; }
  .industries-copy { max-width: 720px; }
  .industry-grid { grid-template-columns: repeat(10, 1fr); }
  .industry-card,
  .industry-card:nth-child(4),
  .industry-card:nth-child(5) { grid-column: span 2; }
  .industry-card { min-height: 230px; }
}

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    z-index: 101;
    inset: 0 0 auto;
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 112px 28px 40px;
    background: rgba(2, 13, 26, 0.985);
    transform: translateX(100%);
    transition: transform 260ms ease;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-link { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 1.1rem; }
  .nav-link::after { right: auto; bottom: 0; width: 48px; }
  .nav-cta { display: inline-flex; margin-top: 28px; }
  .hero { min-height: auto; }
  .hero-media img { object-position: 66% center; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2, 14, 28, 0.98) 0%, rgba(2, 17, 33, 0.9) 58%, rgba(2, 17, 33, 0.34) 100%),
      linear-gradient(0deg, rgba(1, 10, 20, 0.55), transparent 50%);
  }
  .hero-copy { width: min(660px, 82%); padding: 110px 0 120px; }
  .hero-capabilities { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .hero-capability { justify-content: flex-start; padding: 13px 18px 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .hero-capability:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
  .hero-capability:nth-child(even) { padding-left: 18px; }
  .hero-capability:nth-child(n+3) { border-bottom: 0; }
  .hero-capability:last-child { justify-content: flex-start; padding-right: 0; }
  .heading-split { grid-template-columns: 1fr; gap: 18px; }
  .industry-grid { grid-template-columns: repeat(6, 1fr); }
  .industry-card,
  .industry-card:nth-child(4),
  .industry-card:nth-child(5) { grid-column: span 2; }
  .industry-card:nth-child(4) { grid-column: 2 / span 2; }
  .industry-card:nth-child(5) { grid-column: 4 / span 2; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-grid::before { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { max-width: 700px; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-copy { max-width: 740px; }
  .contact-stack { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --header-height: 72px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand img { width: 118px; }
  .brand { gap: 10px; }
  .brand-wordmark { padding-left: 10px; font-size: 0.53rem; }
  .menu-toggle { width: 43px; height: 43px; }
  .section { padding: 74px 0; }
  .hero { min-height: 800px; align-items: flex-end; }
  .hero-media img { object-position: 69% center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(2, 14, 28, 0.2) 0%, rgba(2, 14, 28, 0.7) 30%, rgba(2, 14, 28, 0.98) 63%, #020e1c 100%),
      linear-gradient(90deg, rgba(2, 14, 28, 0.78), rgba(2, 14, 28, 0.1));
  }
  .hero-copy { width: 100%; padding: 270px 0 98px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-lede { margin-top: 20px; font-size: 1rem; }
  .hero-capabilities { margin: 28px 0 30px; }
  .hero-capability { gap: 7px; padding-right: 10px; }
  .hero-capability:nth-child(even) { padding-left: 12px; }
  .hero-capability svg { width: 24px; height: 24px; }
  .hero-capability span { font-size: 0.7rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .section-heading h2,
  .industries h2,
  .about h2,
  .quote-section h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card,
  .industry-card:nth-child(4),
  .industry-card:nth-child(5) { grid-column: auto; min-height: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { text-align: left; padding-left: 82px; min-height: 70px; }
  .step-number { position: absolute; top: 0; left: 0; margin: 0; }
  .about-visual { padding-left: 0; }
  .about-badge { right: 8px; }
  .contact-stack { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 400px) {
  .brand img { width: 102px; }
  .brand-wordmark { font-size: 0.48rem; }
  .hero-copy { padding-top: 240px; }
  .hero-capabilities { grid-template-columns: 1fr; }
  .hero-capability,
  .hero-capability:nth-child(odd),
  .hero-capability:nth-child(even),
  .hero-capability:nth-child(n+3) { padding: 10px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .hero-capability:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div,
  .footer-grid > div:last-child { grid-column: auto; }
}
