/* ============================================================
   ARC EDGE STAGING · "lean in" section upgrades (2026-11-23), scope .aex
   02 globe · 03 carrier switches + live panels · 04 video panels ·
   05 scrubbed kit sequence + callouts · 06 tickers · 07 bonding vs DMPO · CTA loop
   ============================================================ */

/* ---------- 02 · dotted globe behind the statement ---------- */
.aex-problem__stage { isolation: isolate; }
.aex-globe { position: absolute; z-index: -1; right: -12vw; top: 50%; width: min(96vh, 72vw); aspect-ratio: 1; transform: translateY(-44%);
  opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.aex-globe.is-on { opacity: 1; }
.aex-globe__frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.aex-globe::after { content: ''; position: absolute; inset: -1px; background: radial-gradient(circle at 50% 50%, rgba(11, 11, 10, 0) 46%, rgba(11, 11, 10, .9) 74%); pointer-events: none; }
.aex-globe__tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(248, 247, 243, .16); opacity: 0; transition: opacity .4s var(--ease); white-space: nowrap; }
.aex-globe__tag.is-on { opacity: 1; }
.aex-globe__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: var(--halo-acc); }
.aex-globe__tag span { font: 500 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.aex-problem__count { position: absolute; right: var(--pad); bottom: clamp(24px, 3.33vw, 56px); text-align: right; }
.aex-problem__count b { display: block; font-family: var(--display); font-weight: var(--display-w); letter-spacing: .06em; font-size: clamp(28px, 3vw, 48px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.aex-problem__count .aex-label { display: block; margin-top: 8px; }
@media (max-width: 991px) { .aex-globe { right: -30vw; width: 110vw; opacity: .55; } .aex-globe.is-on { opacity: .55; } }
@media (max-width: 767px) { .aex-globe, .aex-problem__count { display: none; } }

/* ---------- 03 · carrier switches + live failover panels ---------- */
.aex-sim { margin-top: clamp(40px, 4.44vw, 72px); }
.aex-sim__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-lg);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 16px; }
.aex-sim__switches { display: flex; gap: clamp(16px, 2.22vw, 40px); flex-wrap: wrap; }
.aex-sw { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.aex-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aex-sw__track { position: relative; width: 56px; height: 30px; border-radius: var(--r-full); background: rgba(241, 241, 237, .12); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .4s var(--ease-fill), box-shadow .4s var(--ease); perspective: 120px; flex: none; }
.aex-sw__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink);
  transition: transform .4s var(--spring), background .4s var(--ease); transform: translateX(26px); }
.aex-sw input:not(:checked) + .aex-sw__track { background: rgba(241, 241, 237, .05); }
.aex-sw input:not(:checked) + .aex-sw__track .aex-sw__thumb { transform: translateX(0) rotateY(-12deg); background: var(--faint); }
.aex-sw input:checked + .aex-sw__track { box-shadow: inset 0 0 0 1px rgba(58, 224, 110, .5); }
.aex-sw input:checked + .aex-sw__track::after { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--held); box-shadow: var(--halo-held); }
.aex-sw input:focus-visible + .aex-sw__track { outline: 1px solid var(--ink); outline-offset: 3px; }
.aex-sw__text { display: flex; flex-direction: column; gap: 3px; }
.aex-sw__name { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.aex-sw__sub { font: 400 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.aex-sim__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aex-sim__panel { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px 32px 32px; border-radius: var(--r-lg); background: var(--panel); }
.aex-sim__panel.is-proactive { box-shadow: inset 0 0 0 1px var(--line-2); }
.aex-sim__panel header { display: flex; flex-direction: column; gap: 8px; }
.aex-sim__panel.is-reactive .aex-h3 { color: var(--dim); }
.aex-sim__canvas { display: block; width: 100%; height: 190px; }
.aex-sim__hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.aex-sim__hud dt { font: 500 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.aex-sim__hud dd { margin-top: 6px; font: 500 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; }
.aex-sim__hud dd.is-bad { color: #FF5A3C; }
.aex-sim__hud dd.is-held { color: var(--held); }
.aex-sim__hud dd.is-held::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--held); box-shadow: var(--halo-held); margin-right: 8px; vertical-align: middle; }
.aex-sim__list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--dim); }
.aex-sim__panel.is-proactive .aex-sim__list li { color: var(--ink); }
@media (max-width: 991px) { .aex-sim__grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .aex-sim__panel { padding: 22px 20px 24px; } .aex-sim__canvas { height: 150px; } .aex-sim__hud { grid-template-columns: 1fr 1fr; } }

/* ---------- 04 · video in the open panel ---------- */
.aex-acc__video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; filter: saturate(.7); }
.aex-acc__video.is-on { opacity: 1; }
/* the still stays underneath; the engine keeps sizing it, so the video matches it at the open width */
.aex-acc .agl-panel--active .aex-acc__video { width: var(--agl-media-size, 120%); }
.aex-acc__live { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-full);
  background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(248, 247, 243, .16);
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.aex-acc__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--held); box-shadow: var(--halo-held); }
.aex-acc .agl-panel--active .aex-acc__live.is-on { opacity: 1; }

/* ---------- 05 · scrubbed kit sequence + callouts ---------- */
.aex-hw__media { background: #050505; }
.aex-hw__seq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.aex-hw__seq.is-on { opacity: 1; }
.aex-hw__media.has-seq img { transform: none; transition: opacity .6s var(--ease); }
.aex-hw__media.is-seq-on img { opacity: 0; }
.aex-hw__calls { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.aex-hw__calls line, .aex-hw__calls circle { stroke: var(--ink); fill: none; }
.aex-hw__calls line { stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.aex-hw__calls circle { stroke-width: 1; r: 5; opacity: 0; transition: opacity .3s var(--ease); }
.aex-hw__calls circle.dot { fill: var(--ink); r: 2; stroke: none; }
.aex-hw__calls .is-in line { stroke-dashoffset: 0; }
.aex-hw__calls .is-in circle { opacity: 1; }
.aex-callout { position: absolute; left: 0; top: 0; transform: translate(0, -50%); display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; white-space: nowrap;
  background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(248, 247, 243, .16); opacity: 0; transition: opacity .35s var(--ease) .5s; pointer-events: none; }
.aex-callout.is-in { opacity: 1; }
.aex-callout.is-flip { transform: translate(-100%, -50%); }
.aex-callout b { font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.aex-callout span { font: 400 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.aex-hw__hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease); }
.aex-hw__hint.is-on { opacity: 1; }
.aex-hw__hint i { width: 36px; height: 2px; background: rgba(241, 241, 237, .14); position: relative; overflow: hidden; }
.aex-hw__hint i::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--ink); }
@media (max-width: 767px) { .aex-hw__calls, .aex-callout, .aex-hw__hint { display: none; } .aex-hw__seq { display: none; } }

/* ---------- 06 · vertical tickers ---------- */
.aex-ticker { position: relative; height: clamp(300px, 36vh, 420px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.aex-ticker__track { display: flex; flex-direction: column; will-change: transform; }
.aex-ticker__track li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--dim); transition: color .3s var(--ease); }
.aex-col:hover .aex-ticker__track li { color: var(--ink); }
.aex-col.is-paused .aex-ticker__track li { color: var(--ink); }
@media (max-width: 767px) {
  .aex-ticker { height: auto; -webkit-mask-image: none; mask-image: none; }
  .aex-ticker__track { transform: none !important; }
  .aex-ticker__track li.is-dupe { display: none; }
}

/* ---------- 07 · bonding vs DMPO demo ---------- */
.aex-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 4.44vw, 72px); }
.aex-demo__panel { position: relative; padding: 24px 28px 28px; border-radius: var(--r-lg); background: var(--panel); display: flex; flex-direction: column; gap: 16px; }
.aex-demo__panel.is-dmpo { box-shadow: inset 0 0 0 1px var(--line-2); }
.aex-demo__panel header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.aex-demo__panel.is-bond .aex-h3 { color: var(--dim); }
.aex-demo__canvas { display: block; width: 100%; height: 200px; }
.aex-demo__hud { display: flex; gap: 32px; padding-top: 14px; border-top: 1px solid var(--line); }
.aex-demo__hud div { display: flex; flex-direction: column; gap: 6px; }
.aex-demo__hud dt { font: 500 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.aex-demo__hud dd { font: 500 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; }
.aex-demo__hud dd.is-bad { color: #FF5A3C; }
.aex-demo__hud dd.is-held { color: var(--held); }
@media (max-width: 991px) { .aex-demo { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .aex-demo__panel { padding: 20px; } .aex-demo__canvas { height: 160px; } }

/* ---------- CTA · loop over the full-bleed plate ---------- */
.aex-cta__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(1.2); will-change: transform;
  filter: saturate(.55); opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.aex-cta__video.is-on { opacity: 1; }
@media (max-width: 767px) { .aex-cta__video { display: none; } }

/* ---------- round 3 (David 2026-11-23): fixed Orb nav over the page, full-width sections, callouts on the still, quiet footer ---------- */
.aex-hero { --navh: 0px; min-height: 100svh; }
/* round 7 (David): the headline sits in the vertical middle of the screen; equal top/bottom padding so the
   fixed nav doesn't push it off-centre */
.aex-hero__inner { justify-content: center; padding-top: clamp(104px, 12vh, 140px); padding-bottom: clamp(104px, 12vh, 140px); }
.aex-hero__foot { margin-top: 0; }
/* Book a demo under the headline (David, 2026-11-24): the page's white button, not the orange one, since
   "any network." already carries the one accent in the hero */
.aex-hero__cta { margin-top: clamp(24px, 2.2vw, 36px); }
.aex-missions .aex-wrap, .aex-hw__inner, .aex-dmpo .aex-wrap, .aex-faq__grid { max-width: none; }
.aex-missions .aex-head, .aex-dmpo .aex-head { margin-top: 0; }
.aex-faq__side .aex-h2 { margin-top: 0; }
/* desktop only: unscoped, this beat the phone rule (width 100%) in arcedge-staging.css and squeezed the copy
   into 40vw (~150px) on phones (fixed 2026-11-24) */
@media (min-width: 768px) { .aex-hw__copy { width: min(640px, 40vw); } }
.aex-hw__media.has-calls img { transform: none; }
.aex-footer { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); }
.aex-footer__content { position: relative; display: flex; flex-direction: column; padding-top: 96px; padding-bottom: 32px; }
.aex-footer__bottom { display: flex; flex-direction: column; gap: 32px; }
.aex-footer__word { font-family: var(--display); font-weight: var(--display-w); font-size: 8.55vw; line-height: 1; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(241, 241, 237, .08); white-space: nowrap; user-select: none; }
.aex-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.aex-footer__col { display: flex; flex-direction: column; gap: 10px; }
.aex-footer__col a, .aex-footer__col span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.aex-footer__col a:hover { color: var(--ink); }
.aex-footer__col .aex-label--faint { color: var(--faint); margin-bottom: 4px; }
.aex-footer__legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 767px) {
  /* phones (David, 2026-11-24): full screen, the photo behind the nav pill, the headline centred on the photo's
     height (equal top/bottom padding) over a legibility scrim that is darkest across the middle. The plate is a
     9:16 Higgsfield outpaint of the same photo (images/arcedge-hero-straits-tall.webp, via <picture>): the
     original frame kept full width, sky added above and deck below, so a phone only loses ~10% at each side.
     No reveal layer: js/arcedge-hero.js doesn't start on phones and the canvas + chips are hidden. */
  .aex-hero { flex-direction: column; min-height: 100svh; }
  .aex-hero__media img { object-position: 50% 50%; }
  .aex-hero__reveal, .aex-hero__nodes { display: none; }
  .aex-hero__scrim { background: linear-gradient(180deg, rgba(11, 11, 10, .1) 0%, rgba(11, 11, 10, .45) 38%, rgba(11, 11, 10, .45) 62%, rgba(11, 11, 10, .65) 100%); }
  .aex-hero__inner { flex: 1; justify-content: center; padding-top: 88px; padding-bottom: 88px; }
  .aex-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .aex-footer__legal { flex-direction: column; gap: 8px; font-size: 11px; }
}

/* ---------- round 4 (David 2026-11-23): 06 and 08 flip to the light act (spec canvas), 07 stays black; 06 full width ---------- */
.aex-int, .aex-faq {
  background: #F8F7F3; color: #121211;
  --ink: #121211; --dim: rgba(18, 18, 17, .62); --faint: rgba(18, 18, 17, .42);
  --line: rgba(18, 18, 17, .14); --line-2: rgba(18, 18, 17, .3); --panel: #F0EEE6;
  --glass-bg: rgba(255, 255, 255, .5);
}
.aex-int .aex-wrap { max-width: none; }
.aex-int .aex-head { margin-top: 0; }
/* round 5 (David): 03 without its label row, full width; CTA back to the still (no loop) */
.aex-heal .aex-wrap { max-width: none; }
.aex-heal .aex-head { margin-top: 0; }
.aex-int .aex-cols { margin-top: clamp(40px, 4.44vw, 72px); }   /* the band used to hold this gap */
.aex-int .aex-col, .aex-faq .aex-faq__a { box-shadow: none; }
.aex-faq .aex-faq__q button:hover .t { color: #000; }
.aex-int ::selection, .aex-faq ::selection { background: var(--acc); color: #F8F7F3; }
.aex-footer__content { padding-top: 64px; }

@media (prefers-reduced-motion: reduce) {
  .aex-globe { opacity: .6; }
  .aex-acc__video, .aex-cta__video, .aex-hw__seq { display: none; }
  .aex-hw__calls line { stroke-dashoffset: 0; transition: none; }
  .aex-hw__calls circle, .aex-callout { opacity: 1; transition: none; }
  .aex-ticker__track { transform: none !important; }
}
