/* =========================================================================
   pages.css — SCALZ.AI sub-page system (services / industries / locations).
   Loads AFTER main.css. Reuses all :root tokens. Adds: wide mega menus,
   breadcrumb, sub-hero, AEO block, prose, silo grids, figure, metric band.
   Homepage (index.html) does not use these classes, so it is unaffected.
   ========================================================================= */

/* ---------- Wide / 2-level mega menus (Services, Industries, Locations) --- */
.nav__mega--wide {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 4), minmax(150px, 1fr));
  gap: .25rem 1.75rem;
  padding: 1.4rem 1.6rem;
  width: min(58rem, 92vw);
  left: 50%;
  transform: translateX(-50%);
}
.nav__mega-group { display: flex; flex-direction: column; gap: .1rem; }
.nav__mega-h {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); padding: .35rem .5rem .3rem;
  border-bottom: 1px solid var(--hairline); margin-bottom: .25rem;
}
.nav__mega-h.is-link { transition: color .2s var(--ease); }
.nav__mega-h.is-link:hover { color: var(--orange); }
.nav__mega--wide .nav__mega-link { font-size: .9rem; padding: .32rem .5rem; border-radius: 8px; }
.nav__mega-foot {
  grid-column: 1 / -1; margin-top: .6rem; padding-top: .7rem;
  border-top: 1px solid var(--hairline); display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.nav__mega-foot a { font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav__mega-foot a:hover { color: var(--teal); }
.nav__mega-loc { font-size: .82rem; color: var(--text-2); padding: .26rem .5rem; }

/* ---------- Breadcrumb ---------------------------------------------------- */
.crumbs {
  max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--nav-h) + 1.4rem) var(--gutter) 0;
  font-size: var(--text-xs); color: var(--text-2);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: .4rem; }
.crumbs li:not(:last-child)::after { content: "›"; color: var(--text-faint); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Sub-hero (reuses #hero-canvas WebGL wave) -------------------- */
.shero { position: relative; overflow: hidden; background: var(--grad-dark-mineral); }
/* Photo backdrop sits BEHIND the wave; tinted dark/light with the toggle */
.shero__bg { position: absolute; left: 0; right: 0; top: -15%; height: 130%; z-index: 0; overflow: hidden; will-change: transform, filter; }
.shero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(.62) saturate(1.08) contrast(1.02); transition: filter .5s var(--ease); }
.shero__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,17,28,.86) 0%, rgba(18,17,28,.64) 44%, rgba(18,17,28,.34) 74%, rgba(18,17,28,.26) 100%),
    linear-gradient(180deg, rgba(18,17,28,.42) 0%, rgba(18,17,28,.08) 32%, rgba(18,17,28,.5) 100%);
  transition: background .5s var(--ease); }
/* Wave rides above the photo (canvas clears with alpha 0, photo shows through) */
.shero .hero__canvas { position: absolute; inset: 0; z-index: 1; opacity: .9; }
/* Breadcrumb placed over the dark sub-hero (clears the fixed nav itself) */
.shero .crumbs { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 1.1rem); padding-bottom: 0; }
.shero .crumbs ol { justify-content: center; }
.crumbs--on-dark { color: rgba(245,243,238,.6); }
.crumbs--on-dark a { color: rgba(245,243,238,.72); }
.crumbs--on-dark a:hover { color: var(--teal-glow); }
.crumbs--on-dark [aria-current="page"] { color: #fff; font-weight: 600; }
.crumbs--on-dark li:not(:last-child)::after { color: rgba(245,243,238,.4); }
.shero__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2rem,4vw,3rem) var(--gutter) clamp(3.5rem,8vw,6rem);
}
.shero__copy { max-width: 62ch; margin-inline: auto; text-align: center; }
.shero__title {
  font-family: var(--font-display); font-weight: 400; color: #fff;
  font-size: clamp(1.9rem,3.6vw,3rem); line-height: 1.02; letter-spacing: -.01em;
  text-transform: uppercase; margin-top: .6rem;
}
.shero__title em { font-style: normal; color: var(--teal-glow); }
.shero .eyebrow { color: var(--teal-glow); }
.shero__sub { color: rgba(245,243,238,.86); font-size: clamp(1rem,1.05vw,1.1rem); line-height: 1.5; max-width: 56ch; margin-top: 1rem; margin-inline: auto; }
.shero__ctas { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.shero__media { position: relative; }
.shero__media img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); border: 1px solid rgba(255,255,255,.08);
}

/* ---------- AEO answer block (the 40-60 word lead answer) ----------------- */
.aeo {
  max-width: var(--maxw); margin: clamp(2.5rem,5vw,4rem) auto 0;
  padding: 0 var(--gutter);
}
.aeo__card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-left: 4px solid var(--teal); border-radius: var(--r-md);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow-card);
}
.aeo__q { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.aeo__a { font-size: var(--text-lede); line-height: 1.55; color: var(--ink); }

/* ---------- Article prose ------------------------------------------------- */
.prose { max-width: 72ch; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-section-sm) 0; }
.section--wide > .prose,
.section--wide .silo, .section--wide .deliv, .section--wide .figure { max-width: var(--maxw); }
.prose h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--text-h2); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .9rem; }
.prose h3 { font-size: var(--text-h3); font-weight: 600; color: var(--ink-mid); margin: 1.8rem 0 .6rem; }
.prose p { color: var(--text-2); margin: 0 0 1.05rem; font-size: var(--text-body); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; transition: color .18s var(--ease); }
.prose a:hover { color: var(--orange); }
.prose ul, .prose ol { color: var(--text-2); margin: 0 0 1.15rem; padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose ul li::marker { color: var(--teal); }

/* ---------- Figure (infographic / feature image) ------------------------- */
.figure { margin: 1.5rem auto; }
.figure img { width: 100%; height: auto; border-radius: var(--r-lg);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
.figure figcaption { margin-top: .7rem; font-size: var(--text-sm); color: var(--text-faint); text-align: center; }

/* ---------- Deliverables grid (data-spotlight cards) --------------------- */
.deliv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1rem; margin: 0 auto; list-style: none; padding: 0; }
.deliv__card { position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--shadow-card); }
.deliv__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(13,138,135,.1); color: var(--teal); margin-bottom: .8rem; }
.deliv__icon svg { width: 20px; height: 20px; }
.deliv__card h3 { font-size: 1.06rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.deliv__card p { font-size: var(--text-sm); color: var(--text-2); line-height: 1.5; }

/* ---------- Silo grid (related services / industries / locations) -------- */
.silo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: .8rem; margin: 0 auto; list-style: none; padding: 0; }
.silo__link { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: .95rem 1.15rem; text-decoration: none; color: var(--ink); font-weight: 600;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.silo__link:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.silo__link span { color: var(--teal); transition: transform .2s var(--ease); }
.silo__link:hover span { transform: translateX(3px); }

/* ---------- Metric band (reuses #platform-particles field) --------------- */
.metricband { position: relative; overflow: hidden; background: var(--grad-dark-mineral); }
.metricband .platform__particles, .metricband #platform-particles { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.metricband__inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto;
  padding: var(--space-section-sm) var(--gutter); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.5rem; text-align: center; }
.metric__num { font-family: var(--font-display); font-weight: 400; color: var(--teal-glow);
  font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; }
.metric__label { color: rgba(245,243,238,.78); font-size: var(--text-sm); margin-top: .5rem; }

/* ---------- Section intro heads (reuse eyebrow/__title/__lede convention)- */
.sec-head { max-width: 64ch; margin: 0 auto clamp(1.5rem,3vw,2.5rem); padding: 0 var(--gutter); }
.sec-head.is-center { text-align: center; }
.sec-head__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--text-h2); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); margin: .4rem 0 .6rem; }
.sec-head__lede { color: var(--text-2); font-size: var(--text-lede); }

/* ---------- Process steps (numbered, iconed, hover beam) ----------------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px,1fr));
  gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.process__step { position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow-card); overflow: hidden; }
.process__step::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--grad-teal-aurora); transition: height .35s var(--ease); }
.process__step:hover::before { height: 100%; }
.process__num { position: absolute; top: .7rem; right: 1.05rem; font-family: var(--font-display);
  font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--hairline); }
.process__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(13,138,135,.1); color: var(--teal); margin-bottom: .85rem; }
.process__icon svg { width: 21px; height: 21px; }
.process__step h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 0 0 .4rem; }
.process__step p { font-size: var(--text-sm); color: var(--text-2); line-height: 1.55; margin: 0; }
.process__step a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.process__step a:hover { color: var(--orange); }

/* ---------- Split panel (good fit / not the right time) ------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.split__col { border-radius: var(--r-md); padding: 1.6rem 1.55rem; border: 1px solid var(--hairline);
  background: var(--surface); box-shadow: var(--shadow-card); }
.split__col--yes { border-top: 3px solid var(--teal); }
.split__col--no { border-top: 3px solid var(--text-faint); background: var(--bone); }
.split__h { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink);
  margin-bottom: .95rem; font-size: 1.05rem; }
.split__h svg { width: 20px; height: 20px; }
.split__col--yes .split__h svg { color: var(--teal); }
.split__col--no .split__h svg { color: var(--text-faint); }
.split ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.split li { display: flex; gap: .6rem; font-size: var(--text-sm); color: var(--text-2); line-height: 1.45; }
.split li::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; margin-top: .42rem; }
.split__col--yes li::before { background: var(--teal); }
.split__col--no li::before { background: var(--text-faint); }

/* ---------- Local split (image + text, used on location pages) ----------- */
.localsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.localsplit__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-float);
  position: relative; aspect-ratio: 16 / 11; }
.localsplit__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.localsplit__body .eyebrow { margin-bottom: .55rem; }
.localsplit__body .sec-head__title { text-align: left; margin: 0 0 1rem; }
.localsplit__body p { font-size: var(--text-sm); color: var(--text-2); line-height: 1.68; margin: 0 0 1rem; }
.localsplit__body p:last-child { margin-bottom: 0; }

/* ---------- Callout (dark voice panel: straight talk / experience) ------- */
.callout { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.callout__card { display: flex; gap: 1.15rem; background: var(--ink); color: var(--bone);
  border-radius: var(--r-md); padding: 1.65rem 1.75rem; border-left: 4px solid var(--orange);
  box-shadow: var(--shadow-float); }
.callout__icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255,92,0,.16); color: var(--orange-amber); }
.callout__icon svg { width: 22px; height: 22px; }
.callout__card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.32rem; line-height: 1.08; color: #fff; margin: 0 0 .45rem; letter-spacing: -.01em; }
.callout__card p { font-size: var(--text-sm); color: rgba(245,243,238,.84); line-height: 1.62; margin: 0; }
.callout__card p + p { margin-top: .7rem; }
.callout__card a { color: var(--teal-glow); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Track chips (what we measure) -------------------------------- */
.track { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: .8rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.track li { display: flex; align-items: flex-start; gap: .65rem; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.05rem 1.15rem; box-shadow: var(--shadow-card); }
.track li svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--teal); margin-top: .12rem; }
.track strong { display: block; color: var(--ink); font-size: .96rem; margin-bottom: .15rem; }
.track span { font-size: var(--text-xs); color: var(--text-2); line-height: 1.45; }

/* ---------- City grid (HUB template: clickable city cards) --------------- */
.citygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px,1fr));
  gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.citycard { position: relative; display: flex; flex-direction: column; gap: .3rem;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 1.25rem 1.3rem; text-decoration: none; box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.citycard::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--grad-teal-aurora); transition: height .35s var(--ease); }
.citycard:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-float); }
.citycard:hover::before { height: 100%; }
.citycard__name { font-size: 1.1rem; font-weight: 600; color: var(--ink); display: flex;
  align-items: center; justify-content: space-between; gap: .5rem; }
.citycard__name span { color: var(--teal); transition: transform .2s var(--ease); }
.citycard:hover .citycard__name span { transform: translateX(3px); }
.citycard__meta { font-size: var(--text-xs); color: var(--text-2); line-height: 1.5; }
.citycard__region { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-faint); }

/* ---------- Neighborhood / area chips (LOCAL-LANDING template) ----------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; max-width: var(--maxw-narrow);
  margin: 0 auto; padding: 0 var(--gutter); list-style: none; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .5rem 1rem;
  font-size: var(--text-sm); color: var(--ink); font-weight: 500; }
.chip svg { width: 14px; height: 14px; color: var(--teal); }

/* ---------- Coverage map embed (HUB + LOCAL-LANDING) --------------------- */
.mapwrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mapwrap__frame { position: relative; width: 100%; aspect-ratio: 16 / 7; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--shadow-card); background: var(--bone); }
.mapwrap__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapwrap__cap { text-align: center; font-size: var(--text-xs); color: var(--text-2); margin-top: .7rem; }

/* ---------- Local proof card (LOCAL-LANDING social proof) ---------------- */
.localcard { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.localcard__card { position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-left: 4px solid var(--teal); border-radius: var(--r-md); padding: 1.7rem 1.85rem;
  box-shadow: var(--shadow-card); }
.localcard__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(13,138,135,.1); color: var(--teal); margin-bottom: .9rem; }
.localcard__icon svg { width: 21px; height: 21px; }
.localcard__card p { font-size: 1.04rem; color: var(--ink-mid); line-height: 1.65; margin: 0; }
.localcard__card p + p { margin-top: .7rem; font-size: var(--text-sm); color: var(--text-2); }
.localcard__card a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.localcard__who { display: block; margin-top: 1rem; font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: .03em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Responsive ---------------------------------------------------- */
/* ---------- Sub-hero LIGHT variation (mirrors homepage hero toggle) ------- */
html[data-hero-theme="light"] .shero { background: var(--grad-hero-light, var(--bone)); }
html[data-hero-theme="light"] .shero__bg img { filter: brightness(1.18) saturate(.82) contrast(.97); }
html[data-hero-theme="light"] .shero__bg::after {
  background:
    linear-gradient(90deg, rgba(245,243,238,.93) 0%, rgba(245,243,238,.72) 44%, rgba(245,243,238,.4) 74%, rgba(245,243,238,.3) 100%),
    linear-gradient(180deg, rgba(245,243,238,.35) 0%, rgba(245,243,238,.05) 30%, rgba(245,243,238,.45) 100%); }
html[data-hero-theme="light"] .shero__title { color: var(--ink); }
html[data-hero-theme="light"] .shero__title em { color: var(--teal); }
html[data-hero-theme="light"] .shero__sub { color: var(--ink-mid); }
html[data-hero-theme="light"] .shero .eyebrow { color: var(--teal); }
html[data-hero-theme="light"] .shero .btn--ghost { color: var(--ink); border-color: var(--ink); }
html[data-hero-theme="light"] .shero .btn--ghost:hover { color: var(--teal); border-color: var(--teal); background: rgba(13,138,135,.06); }
html[data-hero-theme="light"] .crumbs--on-dark { color: rgba(28,27,41,.6); }
html[data-hero-theme="light"] .crumbs--on-dark a { color: rgba(28,27,41,.7); }
html[data-hero-theme="light"] .crumbs--on-dark a:hover { color: var(--teal); }
html[data-hero-theme="light"] .crumbs--on-dark [aria-current="page"] { color: var(--ink); }
html[data-hero-theme="light"] .crumbs--on-dark li:not(:last-child)::after { color: rgba(28,27,41,.4); }

@media (max-width: 900px) {
  .shero__copy { max-width: none; }
  .nav__mega--wide { grid-template-columns: repeat(2, 1fr); width: min(34rem, 94vw); }
}
@media (max-width: 640px) {
  .shero__title { font-size: clamp(2rem,8vw,2.6rem); }
  .nav__mega--wide { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .localsplit { grid-template-columns: 1fr; gap: 1.4rem; }
  .callout__card { flex-direction: column; gap: .9rem; }
  .mapwrap__frame { aspect-ratio: 4 / 3; }
}

/* ===========================================================================
   In-content "Answer Engine Reach" map (.aemap)
   Branded, lightweight content graphic injected on pages that otherwise have
   no in-body visual. Decorative SVG filament backdrop + glowing core node
   labelled with the page's own topic + a ring of answer-engine chips.
   Pure CSS/SVG — no raster assets, scales crisply, contextual per page.
   =========================================================================== */
.aemap {
  position: relative; margin: clamp(2.4rem, 5vw, 4rem) auto 0; padding: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 960px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 130% at 50% -10%, rgba(15,219,213,.12), transparent 60%),
              var(--grad-dark-mineral, #0a1622);
  border: 1px solid rgba(20,184,166,.22);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}
.aemap__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.aemap__glow svg { width: 100%; height: 100%; display: block; }
.aemap__core {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: .35rem; text-align: center;
}
.aemap__core-orb {
  display: grid; place-items: center; width: clamp(116px, 17vw, 152px); height: clamp(116px, 17vw, 152px);
  border-radius: 50%; margin-bottom: 1.2rem; padding: 1rem;
  background: radial-gradient(circle at 50% 35%, rgba(15,219,213,.34), rgba(13,138,135,.10) 62%, transparent 72%);
  border: 1px solid rgba(15,219,213,.4);
  box-shadow: 0 0 0 8px rgba(15,219,213,.06), 0 0 48px rgba(15,219,213,.28);
}
.aemap__core-kicker {
  font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal-glow, #0FDBD5); margin-bottom: .15rem;
}
.aemap__core-label {
  font-family: var(--font-display, 'Nebula', serif); font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.05; color: var(--bone, #f5f3ee); max-width: 8ch;
}
.aemap__engines {
  position: relative; z-index: 2; list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem .7rem;
}
.aemap__engines li {
  font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: .76rem; letter-spacing: .04em;
  color: rgba(245,243,238,.92); padding: .42rem .85rem; border-radius: 999px;
  background: rgba(13,138,135,.16); border: 1px solid rgba(20,184,166,.34);
  backdrop-filter: blur(2px);
}
.aemap__engines li:nth-child(3) { color: var(--orange, #FF5C00); border-color: rgba(255,92,0,.45); background: rgba(255,92,0,.10); }
.aemap figcaption {
  position: relative; z-index: 2; margin-top: 1.5rem; text-align: center;
  font-size: .92rem; line-height: 1.5; color: rgba(245,243,238,.74);
}
.aemap figcaption strong { color: var(--teal-glow, #0FDBD5); font-weight: 600; }
html[data-hero-theme="light"] .aemap {
  background: radial-gradient(120% 130% at 50% -10%, rgba(13,138,135,.10), transparent 60%), var(--bone, #f5f3ee);
  border-color: rgba(13,138,135,.24);
  box-shadow: 0 20px 48px -30px rgba(13,138,135,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
html[data-hero-theme="light"] .aemap__core-label { color: var(--ink, #0a1622); }
html[data-hero-theme="light"] .aemap__core-kicker { color: var(--teal, #0D8A87); }
html[data-hero-theme="light"] .aemap__engines li { color: var(--ink-mid, #334); background: rgba(13,138,135,.10); }
html[data-hero-theme="light"] .aemap figcaption { color: var(--ink-mid, #475569); }
html[data-hero-theme="light"] .aemap figcaption strong { color: var(--teal, #0D8A87); }
@media (max-width: 600px) {
  .aemap__core-orb { width: 108px; height: 108px; }
  .aemap__engines li { font-size: .7rem; padding: .38rem .7rem; }
}

/* Body prose that follows a section heading (e.g. location market-context):
   keep a readable measure even inside .section--wide so it never reads as a
   full-width text wall. Overrides .section--wide > .prose (same specificity,
   later in cascade). */
.sec-head + .prose { max-width: 72ch; margin: 0 auto; }
.section--wide > .sec-head + .prose { max-width: 72ch; }
.sec-head + .prose > p:first-child { margin-top: 0; }
