/* ============================================================
   ANCHORPOINT GEOSPATIAL — SHARED STYLES
   Used by index.html and all sector landing pages.
   Edit design tokens in :root below.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #0B1220;
  --bg-elev: #111B2E;
  --bg-elev-2: #17243B;
  --line: #1F2E47;
  --line-bright: #2E4366;
  --text: #E8E6E1;
  --text-dim: #9AA4B8;
  --text-mute: #5E6B85;
  --accent: #D4A24A;         /* muted amber, runway-beacon */
  --accent-dim: #8C6B30;
  --danger: #C96648;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Reusable type styles */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "// ";
  color: var(--text-mute);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 22ch;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.mono { font-family: var(--mono); }

/* Section scaffolding */
section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}

section + section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 640px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.logo-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 30%, transparent 100%);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--accent); }

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent-dim);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.nav-phone {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-phone:hover { color: var(--accent); }

@media (max-width: 800px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   HERO (home page)
   ============================================================ */
.hero {
  padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 128px);
  position: relative;
  overflow: hidden;
  border-top: none !important;
}

/* subtle flight-grid pattern */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}

/* corner reticle accent */
/* hero::after removed — replaced with .hero-aerial div */

.hero-inner { position: relative; z-index: 1; }

.hero-coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-coords span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(-2px);
}

.hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 44px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-primary::after { content: "→"; font-size: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-bright);
  transition: all 0.2s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}

/* ============================================================
   PAGE HERO (sector landing pages)
   Smaller hero used on all non-homepage pages.
   ============================================================ */
.page-hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  border-top: none !important;
  background:
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 90%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; }

.breadcrumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-dim); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .crumb-sep { color: var(--text-mute); }
.breadcrumbs .crumb-current { color: var(--accent); }

.page-hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 24px;
}

.page-hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 36px;
}

.page-hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.service-card {
  background: var(--bg);
  padding: 36px 32px;
  position: relative;
  transition: background 0.25s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.service-card:hover { background: var(--bg-elev); }

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}

.service-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 50ch;
}

/* ============================================================
   CAPABILITY GRID (sector pages)
   "Here's what we deliver to [sector]" — 2x2 grid.
   ============================================================ */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.capability-card {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  transition: background 0.25s ease;
}

.capability-card:hover { background: var(--bg-elev); }

.capability-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.capability-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.capability-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   WHY ANCHORPOINT
   ============================================================ */
.why {
  background: var(--bg-elev);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

.why-item {
  padding-top: 24px;
  border-top: 1px solid var(--accent-dim);
}

.why-item h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.why-item p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .workflow-grid { grid-template-columns: 1fr; }
}

.workflow-step {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}

.workflow-step:last-child { border-right: none; }

@media (max-width: 860px) {
  .workflow-step { border-bottom: 1px solid var(--line); }
  .workflow-step:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .workflow-step { border-right: none; }
}

.workflow-num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 400;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.workflow-num::before {
  content: "0";
  color: var(--text-mute);
  margin-right: 2px;
}

.workflow-step h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.workflow-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-bright);
  pointer-events: none;
}

.portrait-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.portrait-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}

.about-body p:last-of-type { color: var(--text-dim); font-size: 15px; }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.about-stats div {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.about-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 162, 74, 0.08) 0%, transparent 50%),
    var(--bg-elev);
  text-align: center;
}

.contact-inner { max-width: 680px; margin: 0 auto; }

.contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 20px auto 20px;
  max-width: 18ch;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.contact p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.contact .btn-primary { margin: 0 auto; }

.contact-channels {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  margin-top: 28px;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-channels a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.contact-channels a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 48px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

.footer-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-col a, .footer-col span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: block;
  line-height: 2;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-disclaimers {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  line-height: 1.9;
}

.footer-disclaimers span { display: inline; }
.footer-disclaimers .sep { color: var(--line-bright); margin: 0 8px; }

@media (max-width: 640px) {
  .footer-disclaimers span { display: block; }
  .footer-disclaimers .sep { display: none; }
}

/* ============================================================
   SECTORS (tabbed client segments on home page)
   ============================================================ */
.sectors {
  background: var(--bg);
}

.sectors-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.sectors-tabs::-webkit-scrollbar { display: none; }

.sector-tab {
  flex: 0 0 auto;
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
}

.sector-tab:hover { color: var(--text-dim); }

.sector-tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sector-panel {
  display: none;
  animation: panelFade 0.35s ease;
}
.sector-panel.active { display: block; }

@keyframes panelFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sector-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (max-width: 760px) {
  .sector-lead { grid-template-columns: 1fr; gap: 20px; }
}

.sector-lead h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 18ch;
}

.sector-lead p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 50ch;
}

.sector-deeplink {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.sector-deeplink:hover { border-bottom-color: var(--accent); }
.sector-deeplink::after { content: "→"; }

.pain-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pain-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (max-width: 820px) {
  .pain-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}

.pain-col {
  display: grid;
  gap: 10px;
}

.pain-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pain-label.response { color: var(--accent); }

.pain-label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.pain-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.pain-col.response .pain-text { color: var(--text); }
.pain-col:first-child .pain-text { color: var(--text-dim); }

/* ============================================================
   RELATED SECTORS (bottom of each sector landing page)
   ============================================================ */
.related-sectors {
  background: var(--bg-elev);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 820px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--bg);
  padding: 24px 22px;
  transition: background 0.2s ease;
  display: block;
}
.related-card:hover { background: var(--bg-elev); }

.related-card span.related-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.related-card h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.related-card::after {
  content: "→";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
  display: block;
  margin-top: 12px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   CREDENTIALS STRIP
   Credential badges row below the hero.
   ============================================================ */
.credentials {
  padding: 28px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px;
  border-right: 1px solid var(--line);
}
.credential-badge:last-child { border-right: none; }

@media (max-width: 760px) {
  .credential-badge {
    border-right: none;
    border-bottom: 1px solid var(--line);
    width: 100%;
    padding: 16px 24px;
  }
  .credential-badge:last-child { border-bottom: none; }
}

.credential-badge svg {
  flex-shrink: 0;
}

.credential-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.credential-text strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
}

.credential-text span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* Four-button hero row on sector pages — allow wrap at mobile */
.page-hero-cta {
  flex-wrap: wrap;
  gap: 12px;
}
.page-hero-cta .btn-secondary {
  font-size: 11px;
  padding: 11px 14px;
}

/* ============================================================
   MOBILE & LOGO FIXES
   ============================================================ */

/* Nav: taller to show logo mark clearly */
.nav-inner { height: 72px; }

.logo img { height: 56px; width: auto; }

/* Hero CTA row: always wrap, so buttons stack cleanly on phones */
.hero-cta-row {
  flex-wrap: wrap;
  gap: 16px;
}

/* About stats: tighter gap on small screens */
@media (max-width: 600px) {
  .about-stats {
    gap: 20px;
  }
  .about-stats div {
    min-width: 120px;
  }
}

/* Pain rows: reduce gap on small screens */
@media (max-width: 600px) {
  .pain-row { gap: 12px; padding: 20px 0; }
  .pain-text { font-size: 15px; }
}

/* Section head: allow h2 to wrap more */
@media (max-width: 600px) {
  h2 { max-width: 100% !important; }
  .section-head { margin-bottom: 36px; }
}

/* Page hero: reduce bottom padding on phones so content starts sooner */
@media (max-width: 600px) {
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 40px); }
  .page-hero-sub { font-size: 15px; margin-bottom: 24px; }
  .breadcrumbs { margin-bottom: 18px; }
}

/* Sector page 4-button row: stack on phones */
@media (max-width: 500px) {
  .page-hero-cta { flex-direction: column; align-items: stretch; }
  .page-hero-cta .btn-primary,
  .page-hero-cta .btn-secondary { text-align: center; justify-content: center; }
}

/* Capability grid: single column on phones */
@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Workflow: always single column on phones */
@media (max-width: 480px) {
  .workflow-grid { grid-template-columns: 1fr; }
}

/* Footer: stack at 640px instead of 820px, reduce gap */
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Contact channels: stack on phones */
@media (max-width: 480px) {
  .contact-channels {
    flex-direction: column;
    gap: 10px;
  }
}

/* Credentials strip: stack earlier */
@media (max-width: 640px) {
  .credentials-inner { flex-direction: column; }
  .credential-badge {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
  }
  .credential-badge:last-child { border-bottom: none; }
}

/* Related grid: single col on phones */
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Sectors tab scrolling */
@media (max-width: 600px) {
  .sector-tab { padding: 14px 16px; font-size: 11px; }
}

/* Nav: ensure CTA button doesn't get cut */
@media (max-width: 400px) {
  .nav-cta { padding: 7px 10px; font-size: 11px; }
  .nav-phone { display: none; }
}

/* Touch targets: ensure all buttons meet 44px minimum */
.btn-primary, .btn-secondary, .nav-cta, .sector-tab {
  min-height: 44px;
}

/* Logo anchor: transparent, no background box */
a.logo {
  background: transparent !important;
  display: flex;
  align-items: center;
}
a.logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* ============================================================
   HERO AERIAL CIRCLE
   Circular aerial map viewport with reticle overlay.
   Positioned right side of hero on desktop, hidden on mobile.
   Swap the <img> src for your own orthomosaic tile when ready.
   ============================================================ */
.hero-aerial {
  position: absolute;
  top: 50%;
  right: clamp(40px, 6vw, 100px);
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 2;
}

.hero-aerial-img {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elev-2);
}

.hero-aerial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
  filter: saturate(0.7) brightness(0.85);
  display: block;
}

.hero-aerial-reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hide aerial circle on narrow viewports where it would overlap copy */
@media (max-width: 900px) {
  .hero-aerial { display: none; }
}
