:root {
  --ink: #0b1f2a;
  --ink-soft: #1a3340;
  --gold: #c9951a;
  --gold-bright: #e4b93a;
  --gold-soft: #f6e27a;
  --gold-deep: #8f6a10;
  --sand: #f5f1e8;
  --cream: #faf8f4;
  --line: rgba(11, 31, 42, 0.12);
  --white: #ffffff;
  --muted: #5a6b74;
  --shadow: 0 18px 50px rgba(11, 31, 42, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --accent: var(--gold);
  --accent-bright: var(--gold-bright);
  --accent-tint: rgba(201, 149, 26, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.02rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  color: var(--ink);
}
p { margin: 0 0 1rem; color: var(--muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  padding: .55rem 0;
}
.topbar .container { display: flex; gap: 1.25rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--gold-soft); }
.topbar-links { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }

/* Nav — same structure on every page */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .85rem;
  color: var(--ink); flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 54px; height: 54px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  line-height: 1;
  padding-top: .05rem;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 650;
  letter-spacing: -.03em;
  display: inline-flex;
  gap: .28em;
  align-items: baseline;
}
.brand-name { color: var(--ink); }
.brand-name-accent { color: var(--gold); }
.brand-text em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  opacity: .9;
}
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem .7rem; cursor: pointer;
}
.nav-links { display: flex; gap: .15rem; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  display: block; padding: .5rem .75rem; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: .92rem;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent-tint); color: var(--gold-deep);
}
.nav-cta {
  margin-left: .35rem !important;
  background: var(--ink) !important; color: #fff !important; padding: .6rem 1.05rem !important;
}
.nav-cta:hover, .nav-cta.active {
  background: var(--gold) !important; color: #fff !important;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; border: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold); color: #fff;
  box-shadow: 0 10px 24px rgba(201, 149, 26, .28);
}
.btn-primary:hover { background: var(--gold-bright); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); color: #fff; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 720px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background: var(--ink) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(11,31,42,.88) 0%, rgba(11,31,42,.55) 48%, rgba(201,149,26,.22) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 7rem 0 4.5rem; width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--gold-soft); margin-bottom: 1rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; margin-bottom: 1rem;
}
.hero p { color: rgba(255,255,255,.86); max-width: 42ch; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem;
  margin-top: 3rem; max-width: 560px;
}
.hero-stats div {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 1rem 1.1rem; backdrop-filter: blur(8px);
}
.hero-stats strong { display: block; color: #fff; font-size: 1.45rem; font-family: var(--font-display); }
.hero-stats span { color: rgba(255,255,255,.75); font-size: .85rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.kicker {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; margin-bottom: .6rem;
}
.section-dark .kicker { color: var(--gold-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 8px 24px rgba(11,31,42,.04);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img.icon { width: 52px; height: 52px; margin-bottom: 1rem; object-fit: contain; }
.card h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.card p { font-size: .95rem; margin-bottom: .8rem; }
.card .more { font-weight: 600; font-size: .92rem; color: var(--gold-deep); }
.card .more:hover { color: var(--gold); }

.pill-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 0; }
.pill {
  background: var(--accent-tint); color: var(--gold-deep); border-radius: 999px;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600;
}

.feature-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
  background: #1a2832 center/cover no-repeat;
  background-position: center;
}
.feature-media-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0;
}
.feature-media-img img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.feature-media-contain {
  background: var(--cream);
  padding: 1.5rem;
}
.feature-media-contain img {
  object-fit: contain;
  min-height: 320px;
  max-height: 420px;
}
/* Built for real operations — theme banner, GIF on right */
.ops-banner {
  padding: 2.75rem 0 3rem;
  background: var(--cream);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.ops-banner-grid {
  display: grid;
  grid-template-columns: .75fr 1.35fr;
  gap: 1.25rem 1.75rem;
  align-items: center;
}
.ops-banner-visual {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-right: -1rem;
}
.ops-banner-visual img {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 320px;
  max-height: 460px;
  display: block;
  object-fit: contain;
  object-position: center right;
}
.ops-banner-copy {
  color: var(--ink);
  padding: .25rem 0;
  position: relative;
  z-index: 1;
}
.ops-banner-kicker {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.ops-banner-copy h2 {
  margin: 0 0 .85rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 12ch;
  line-height: 1.15;
}
.ops-banner-copy > p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 40ch;
}
.ops-banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.ops-banner-pills span {
  background: var(--accent-tint);
  border: 1px solid rgba(201,149,26,.28);
  color: var(--gold-deep);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
}
@media (max-width: 860px) {
  .ops-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .ops-banner-visual {
    margin-right: 0;
    min-height: 0;
  }
  .ops-banner-visual img {
    min-height: 0;
    max-height: none;
  }
}

/* About — same banner composition as home ops, full story GIF on right */
.about-banner .ops-banner-grid {
  grid-template-columns: .8fr 1.3fr;
  gap: 1.75rem;
  align-items: center;
}
.about-banner .ops-banner-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  max-width: 11ch;
}
.about-banner .ops-banner-copy > p {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 38ch;
}
.journey-map {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.journey-gif {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
  object-fit: contain;
  object-position: center right;
}
@media (max-width: 860px) {
  .about-banner .ops-banner-grid {
    grid-template-columns: 1fr;
  }
  .journey-map { min-height: 0; }
  .journey-gif { max-height: none; object-position: center; }
}

/* legacy about-story (unused) */
.about-story { display: none; }
/* Process GIFs — never stretch; keep natural aspect; fill width */
.feature-media-fit {
  min-height: 0 !important;
  height: auto;
  align-self: stretch;
  width: 100%;
  background: var(--cream);
  padding: .65rem .75rem;
  border: 1px solid var(--line);
}
.feature-media-fit img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
}
/* About / process animation (How-we-do style) */
.process-gif {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.1rem;
  overflow: hidden;
  min-height: 0;
}
.process-gif-head {
  margin-bottom: 1.1rem;
}
.process-gif-head .eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .35rem;
}
.process-gif-head h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.process-track {
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow-x: auto;
  padding: .15rem .1rem .55rem;
  scrollbar-width: thin;
}
.process-card {
  flex: 1 1 140px;
  min-width: 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11,31,42,.07);
  padding: .85rem .75rem;
  display: flex;
  gap: .7rem;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  animation: processCardIn .55s ease forwards;
}
.process-card .ibox {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 42px;
  background: #fff7ec;
  border: 1px solid rgba(201,149,26,.35);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}
.process-card .ibox svg { width: 22px; height: 22px; }
.process-card .t1 {
  color: var(--gold);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.15;
}
.process-card .t2 {
  color: var(--ink-soft);
  font-size: .72rem;
  margin-top: .2rem;
}
.process-join {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 0 0 auto;
  opacity: 0;
  animation: processCardIn .4s ease forwards;
}
.process-join .dash {
  width: 16px;
  border-top: 2px dashed var(--gold);
}
.process-join .node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.process-gif-foot {
  margin: .85rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}
@keyframes processCardIn {
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .process-track { flex-wrap: wrap; }
  .process-join { display: none; }
  .process-card { flex: 1 1 calc(50% - .5rem); min-width: 140px; animation-delay: 0s !important; }
}

/* Official Dynamics product mosaic */
.official-mosaic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.2rem 1rem;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.official-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.official-mosaic figure {
  margin: 0;
  text-align: center;
  padding: .65rem .4rem;
  border-radius: 14px;
  background: var(--cream);
}
.official-mosaic img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto .35rem;
}
.official-mosaic figcaption {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.official-mosaic-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(11,31,42,.05);
}
.tech-strip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.page-hero {
  padding: 5rem 0 3.5rem;
  background:
    linear-gradient(135deg, rgba(11,31,42,.82), rgba(11,31,42,.55)),
    url("../img/hero-home.jpg") center/cover;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 50ch; }
.breadcrumb { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; font-size: .9rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: rgba(255,255,255,.55); }

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li {
  position: relative; padding-left: 1.7rem; margin-bottom: .65rem; color: var(--muted);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px rgba(201,149,26,.25);
}

.cta-band {
  border-radius: 28px; padding: 2.5rem; background:
    linear-gradient(120deg, var(--ink), #2a2416);
  color: #fff; display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 .4rem; font-size: 1.8rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 42ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; }
.contact-card, .form-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.6rem;
}
.contact-item { display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.contact-item i {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint);
  display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0;
}
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem;
  font: inherit; background: #fff; margin-bottom: 1rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(201,149,26,.35); border-color: var(--gold);
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status {
  margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 12px; font-size: .95rem; line-height: 1.45;
}
.form-status a { color: inherit; font-weight: 600; text-decoration: underline; }
.form-status-ok { background: #e8f6ee; color: #0f5132; border: 1px solid #b7e0c5; }
.form-status-err { background: #fdecee; color: #842029; border: 1px solid #f1c0c5; }
.form-card button[type="submit"]:disabled {
  opacity: .7; cursor: wait;
}

/* Footer */
.site-footer {
  background: #07151c; color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.72); display: block; margin-bottom: .45rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.4rem; margin-bottom: .7rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Cards: icon only (no logo badge) */
.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11,31,42,.05);
}
.card-icon-wrap img,
.card-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0;
}
.card-icon-wrap img[src$=".png"],
.card-icon-wrap img[src$=".webp"],
.card-icon-wrap img[src$=".jpg"] {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.card-icon-wrap img[src*="d365.png"],
.card-icon-wrap img[src*="ms.png"],
.card-icon-wrap img[src*="blockchain.png"],
.card-icon-wrap img[src*="Finance"],
.card-icon-wrap img[src*="Supply"],
.card-icon-wrap img[src*="Sales"],
.card-icon-wrap img[src*="Customer"],
.card-icon-wrap img[src*="Field"],
.card-icon-wrap img[src*="Commerce"],
.card-icon-wrap img[src*="Human"],
.card-icon-wrap img[src*="Project"],
.card-icon-wrap img[src*="Business"],
.card-icon-wrap img[src*="Marketing"],
.card-icon-wrap img[src*="products/"],
.card-icon-wrap img[src*="AI-"] {
  width: 52px;
  height: 52px;
}
.section-dark .card-icon-wrap {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}

@media (max-width: 1100px) {
  .brand-text strong { font-size: 1.15rem; }
  .brand-text em { font-size: .58rem; letter-spacing: .14em; }
  .brand-mark, .brand-mark img { width: 46px; height: 46px; }
  .nav-links a { padding: .45rem .55rem; font-size: .86rem; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2-equal { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-row { position: relative; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .55rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .85rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
  }
  .nav-cta { margin-left: 0 !important; text-align: center; }
  .grid-3, .grid-4, .grid-2, .grid-2-equal, .contact-grid, .footer-grid, .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-inner { padding: 4.5rem 0 3rem; }
  .hero h1 { max-width: none; font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .hero p { font-size: 1.02rem; max-width: none; }
  .hero-actions { gap: .65rem; }
  .hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 160px); }
  .hero-stats { margin-top: 2rem; max-width: none; }
  .section { padding: 3.25rem 0; }
  .page-hero { padding: 3.25rem 0 2.25rem; }
  .page-hero h1 { max-width: none; font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .page-hero p { max-width: none; }
  .feature-media,
  .feature-media-img img {
    min-height: 220px;
  }
  .feature-media-contain img {
    min-height: 200px;
    max-height: 320px;
  }
  .cta-band {
    padding: 1.75rem;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cta-band h2 { font-size: 1.45rem; }
  .cta-band .btn { width: 100%; }
  .contact-card, .form-card { padding: 1.25rem; }
  .form-card .btn { width: 100%; }
  /* Keep reach on mobile — compact contact strip */
  .topbar {
    display: block;
    padding: .45rem 0;
    font-size: .8rem;
  }
  .topbar .container {
    justify-content: center;
    gap: .85rem;
  }
  .topbar-links span { display: none; }
  .ops-banner-visual { margin-right: 0; min-height: 0; }
  .capabilities-hub {
    max-height: none;
    padding: .5rem;
    background: var(--cream);
  }
  .capabilities-hub img {
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: none;
    min-height: 0;
    margin: 0 auto;
    object-fit: contain;
  }
  .tech-strip {
    justify-content: flex-start;
    gap: .85rem;
    padding-bottom: .35rem;
  }
  .footer-bottom span:last-child { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .brand-text em { display: none; }
  .brand-mark, .brand-mark img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.05rem; }
  .nav-row { min-height: 68px; }
  .card { padding: 1.2rem; }
  .card:hover { transform: none; }
  .section-head { margin-bottom: 1.75rem; }
  .hero-actions .btn { width: 100%; }
  .pill { font-size: .78rem; }
}

/* Prevent iOS input zoom; safer touch + overflow */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.grid-2-equal { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.capabilities-hub {
  max-height: none;
  padding: .5rem;
  background: var(--cream);
}
.capabilities-hub img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  min-height: 0;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 860px) {
  input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

@supports (padding: max(0px)) {
  .topbar .container,
  .nav-row,
  .hero-inner,
  .container {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

