/* =========================================================
   Kinetix Robotics & Automation — industrial tech stylesheet
   ========================================================= */

:root {
  --graphite: #111827;
  --orange: #ea580c;
  --silver: #f1f5f9;

  --bg: #f1f5f9;
  --bg-deep: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-steel: #111827;
  --text: #111827;
  --text-light: #f8fafc;
  --muted: #526076;
  --muted-light: #a9b6c8;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-ink: #ffffff;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, .07);
  --shadow-md: 0 20px 50px rgba(15, 23, 42, .13);
  --header-height: 76px;
  --radius: 4px;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-deep: #0f172a;
  --surface: #111827;
  --surface-alt: #162033;
  --surface-steel: #0a101c;
  --text: #f1f5f9;
  --text-light: #f8fafc;
  --muted: #9aa9bd;
  --muted-light: #94a3b8;
  --border: #2b3950;
  --border-strong: #475569;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .28);
  --shadow-md: 0 22px 55px rgba(0, 0, 0, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-deep: #0f172a;
    --surface: #111827;
    --surface-alt: #162033;
    --surface-steel: #0a101c;
    --text: #f1f5f9;
    --text-light: #f8fafc;
    --muted: #9aa9bd;
    --muted-light: #94a3b8;
    --border: #2b3950;
    --border-strong: #475569;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .28);
    --shadow-md: 0 22px 55px rgba(0, 0, 0, .45);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 750; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 720; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 18px; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- Shared technical labels ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow__bar {
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}
.eyebrow--light { color: #fdba74; }
.eyebrow--light .eyebrow__bar { background: #fdba74; }

.section { padding: 108px 0; position: relative; }
.section--tint { background: var(--bg-deep); }
.section--about { background: var(--surface); }
.section--gallery { background: var(--surface); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}
.section-heading--compact { margin-bottom: 30px; }

.subheading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 64px 0 28px;
}
.subheading-row h3 { margin: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: .94rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.text-link:hover { border-color: var(--accent); gap: 15px; }
.center-cta { text-align: center; margin: 44px 0 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { font-size: 1.15rem; line-height: 1; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(234, 88, 12, .24); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .48); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #f8fafc;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid {
  background: var(--surface);
  color: var(--text);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand__text strong {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__text small {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .14em;
  white-space: nowrap;
  color: currentColor;
  opacity: .72;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  padding: 9px 13px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: .88;
  transition: opacity .2s ease, color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { opacity: 1; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  flex: 0 0 auto;
}
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius);
  background: transparent;
  color: currentColor;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); border-color: currentColor; }
.is-solid .icon-btn { border-color: var(--border); }
.is-solid .icon-btn:hover { background: var(--surface-alt); border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-cta { min-height: 38px; padding: 0 16px; font-size: .84rem; white-space: nowrap; }
.menu-toggle { display: none; }

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 18px 24px 26px;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav a span { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.mobile-nav .mobile-nav__cta {
  margin-top: 20px;
  justify-content: center;
  color: #fff;
  border-bottom: 0;
  background: var(--accent);
  padding: 12px 18px;
  border-radius: var(--radius);
}
.mobile-nav .mobile-nav__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: .84rem;
  color: var(--muted);
}
.mobile-nav .mobile-nav__meta a { display: inline; padding: 0; border: 0; color: var(--text); font-weight: 700; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--graphite);
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero__grid, .page-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 78%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 110px;
}
.hero__title { max-width: 830px; margin-bottom: 26px; }
.hero__subtitle {
  max-width: 700px;
  color: #d9e2ee;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 58px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  max-width: 620px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
}
.hero__readout .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero__scroll {
  position: absolute;
  right: 36px; bottom: 34px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .65);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
.hero__scroll i { width: 1px; height: 54px; background: rgba(255, 255, 255, .5); }

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 90px) 0 70px;
  background:
    radial-gradient(circle at 85% 20%, rgba(234, 88, 12, .18), transparent 45%),
    var(--graphite);
  color: #fff;
  overflow: hidden;
}
.page-hero--tall { min-height: 520px; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.page-hero__text { max-width: 680px; color: #cbd5e1; font-size: 1.08rem; margin-bottom: 0; }
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 22%, transparent 22% 100%);
}

/* ---------- Stats ---------- */

.stats {
  background: var(--surface-steel);
  color: #f8fafc;
  padding: 66px 0;
  border-top: 3px solid var(--accent);
}
.stats .eyebrow { margin-bottom: 0; color: #fdba74; }
.stats .eyebrow__bar { background: #fdba74; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.stat {
  padding: 34px 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.stat__suffix { color: var(--accent); }
.stat__label { margin: 16px 0 5px; font-weight: 700; font-size: .96rem; line-height: 1.35; }
.stat__note { margin: 0; color: var(--muted-light); font-size: .78rem; font-family: var(--font-mono); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .28s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.service-card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--surface-alt);
  transition: transform .3s ease, border-color .3s ease, color .3s ease;
}
.service-card:hover .service-card__icon { transform: scale(1.1) rotate(-3deg); border-color: var(--accent); color: var(--accent); }
.service-card__icon svg { width: 30px; height: 30px; }
.service-card__number { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.service-card__tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.38rem; }
.service-card__desc { color: var(--muted); margin-bottom: 24px; }
.service-card__detail {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 88px;
  align-items: center;
}
.about-grid__media { position: relative; padding: 0 42px 42px 0; }
.image-frame { position: relative; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--border); }
.image-frame--main { aspect-ratio: 4 / 3; }
.image-frame--main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.image-frame--main:hover img { transform: scale(1.04); }
.image-frame__tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.image-frame--inset {
  position: absolute;
  right: 0; bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.image-frame--inset img { width: 100%; height: 100%; object-fit: cover; }
.about-grid__copy p:not(.eyebrow) { color: var(--muted); }
.about-grid__copy h2 { margin-bottom: 26px; }
.fact-list { margin: 30px 0 34px; border-top: 1px solid var(--border); }
.fact-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.fact-list__row span:first-child { color: var(--muted); }
.fact-list__row strong { font-family: var(--font-mono); color: var(--accent); font-size: .95rem; }

/* ---------- Coverage, industries, gallery ---------- */

.coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.coverage-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.coverage-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.coverage-card__code {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border-strong);
  opacity: .55;
  transition: color .25s ease, opacity .25s ease;
}
.coverage-card:hover .coverage-card__code { color: var(--accent); opacity: 1; }
.coverage-card h3 { margin: 16px 0 4px; }
.coverage-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.industries-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color .25s ease, transform .25s ease;
}
.industry:hover { transform: translateY(-4px); background: var(--surface-alt); }
.industry strong { font-size: .98rem; line-height: 1.35; }
.industry span { color: var(--muted); font-size: .82rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-deep); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(17, 24, 39, .92));
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.service-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.service-pills a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.service-pills a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Contact ---------- */

.contact-block { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 26px; align-items: stretch; }
.contact-form, .contact-details { border-radius: var(--radius); border: 1px solid var(--border); padding: 34px; }
.contact-form { background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label { font-size: .82rem; font-weight: 700; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .14);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-note { margin: 4px 0 18px; color: var(--muted); font-size: .78rem; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--accent); font-size: .84rem; font-weight: 600; }

.contact-details {
  display: flex;
  flex-direction: column;
  background: var(--surface-steel);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .14);
}
.contact-details__label { color: #fdba74; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; font-weight: 700; margin-bottom: 24px; }
.detail-row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.detail-row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); margin-top: 3px; }
.detail-row span { display: block; color: var(--muted-light); font-size: .72rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.detail-row a, .detail-row strong { color: #f8fafc; font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.detail-row a:hover { color: #fdba74; }
.contact-details__foot { margin-top: auto; padding-top: 22px; color: var(--muted-light); font-size: .8rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface-steel); color: #f8fafc; border-top: 4px solid var(--accent); padding: 68px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand svg { width: 38px; height: 38px; flex: 0 0 auto; }
.footer-brand strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.footer-brand span { display: block; margin-top: 4px; color: var(--muted-light); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; }
.site-footer p { color: var(--muted-light); font-size: .9rem; }
.footer-col h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fdba74; margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; font-size: .92rem; color: #dbe4f0; }
.footer-col a:hover { color: #fdba74; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--muted-light);
  font-size: .78rem;
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root { --header-height: 68px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .brand__text small { display: none; }
  .section { padding: 86px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .about-grid { gap: 52px; }
  .industries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid__media { max-width: 620px; }
  .services-grid, .contact-block, .footer-grid { grid-template-columns: 1fr; }
  .coverage-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1180px); }
  .section { padding: 70px 0; }
  h1 { font-size: clamp(2.25rem, 10vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .hero { min-height: 92vh; }
  .hero__inner { padding-top: calc(var(--header-height) + 54px); padding-bottom: 80px; }
  .hero__subtitle { font-size: 1rem; }
  .hero__readout { margin-top: 40px; }
  .page-hero { min-height: 380px; padding-bottom: 56px; }
  .stat { padding: 26px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: auto; padding: 28px; }
  .coverage-grid, .gallery-grid, .industries-grid { grid-template-columns: 1fr; }
  .contact-form, .contact-details { padding: 24px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .about-grid__media { padding: 0 26px 26px 0; }
  .image-frame--inset { width: 44%; }
  .footer-grid { gap: 34px; }
}

@media (max-width: 400px) {
  :root { --header-height: 62px; }
  .container { width: calc(100% - 24px); }
  .header-inner { gap: 8px; }
  .brand__mark { width: 29px; height: 29px; }
  .brand__text strong { font-size: .98rem; }
  .header-actions { gap: 5px; margin-left: auto; }
  .icon-btn { width: 31px; height: 31px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .mobile-nav { padding: 14px 16px 22px; }
  .hero__actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .subheading-row { flex-direction: column; align-items: flex-start; }
}

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