/* ============================================================================
   Solution-page styles (Template 1) — shared by solution / leaf product pages.
   Adapted from the approved solution-page demo, wired to the PROJECT's tokens
   (tokens.css) and components. All section/component classes are namespaced
   `.sol-*` so they never collide with main.css (which already owns .hero, .cta,
   .step, .stat, etc.). The page reuses the project's .container, .eyebrow, .btn,
   .lead, the real nav/footer/breadcrumb, and the design tokens. No new colour.
   ============================================================================ */

/* ---------- hero (with ambient glow) -------------------------------------- */
/* Top padding is modest because the real breadcrumb above already clears the
   fixed nav (same as the project's .page-hero). */
.sol-hero { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 7vw, 5.25rem); }
.sol-hero::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: min(900px, 120vw); height: 600px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 65%); filter: blur(20px);
}
.sol-hero > .container { position: relative; z-index: 1; }
.sol-hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0.6rem 0 0;
}
.sol-hero__lede { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 54ch; margin-top: 1.4rem; }
.sol-hero__cta { display: flex; gap: 0.9rem; margin-top: 2.1rem; flex-wrap: wrap; }

/* ---------- hero: custom image-background variant (.sol-hero--image) --------
   Full-bleed photo behind a left-to-right dark scrim; content constrained to the
   dark LEFT column. The default ambient glow is disabled for this variant. The photo
   supplies its own colour — no new colour tokens. Static (no parallax). */
.sol-hero--image { display: flex; align-items: center; min-height: clamp(420px, 66vh, 620px); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sol-hero--image::before { display: none; } /* no ambient glow — the photo is the backdrop */
.sol-hero__bg { position: absolute; inset: 0; z-index: 0; }
.sol-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; display: block; }
.sol-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg-deep) 0%, rgba(var(--bg-deep-rgb), 0.86) 30%, transparent 58%);
}
.sol-hero--image > .container { position: relative; z-index: 2; }
.sol-hero__col { max-width: 52%; }
@media (max-width: 820px) {
  .sol-hero__col { max-width: 100%; }
  /* small screens: bottom-up scrim so text stays legible over the whole backdrop */
  .sol-hero__scrim { background: linear-gradient(0deg, var(--bg-deep) 8%, rgba(var(--bg-deep-rgb), 0.82) 45%, rgba(var(--bg-deep-rgb), 0.5) 100%); }
}

/* ---------- hero: custom VIDEO-background variant (.sol-hero--video) --------
   Autoplaying muted loop behind the same left-to-right scrim + left content column.
   The poster is BOTH the <video poster> and this section's background-image, so a
   static poster shows if the video is hidden (reduced-motion), blocked, or errors.
   The video supplies its own colour — no new colour tokens. The page sets its own
   poster via an inline background-image on the section. */
.sol-hero--video {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  height: clamp(560px, 84vh, 780px);   /* more presence; reduce if it ever crowds the nav */
  padding-block: 0;                     /* fixed-height hero — the video fills it; content is flex-centred */
  background-position: center right; background-size: cover; background-repeat: no-repeat;
}
.sol-hero--video::before { display: none; } /* no ambient glow — the video is the backdrop */
/* Video COVERS the hero fully — no letterbox bands (object-fit:cover, block, inset:0). */
.sol-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; display: block; z-index: 0; }
.sol-hero--video > .container { position: relative; z-index: 5; }
/* Gentle bottom fade — melts the hero into the section below (page bg). Sits ABOVE the video +
   left scrim but BELOW the content, so text + badge stay crisp. Only the bottom ~30% fades. */
.sol-hero--video::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  /* Taller, gradual fade: clear through the top ~half, reaching the section-below colour
     FULLY at the very bottom — so the orange trails melt into the next section, no cut.
     End colour = the page bg (var(--bg) #0a0c10), which is what shows below the seam
     (the next .sol-block has no bg of its own -> body var(--bg)). */
  background: linear-gradient(to bottom, transparent 48%, var(--bg) 100%);
}
/* Remove the 1px divider line where the video hero meets the next section — the fade replaces
   it, so there is no border seam. Scoped to the section right AFTER a video hero (other heroes
   keep their divider); only aws-managed.html has a video hero, so no other page is affected. */
.sol-hero--video + .sol-block { border-top: 0; }
/* Reduced motion: hide the video so the poster background shows a static hero (JS also pauses it). */
@media (prefers-reduced-motion: reduce) { .sol-hero__video { display: none; } }
/* Small screens: an opt-in [.sol-hero--poster-sm] video hero shows the poster background only
   (solution.js also drops the <source>s so the video never loads/plays). Scoped, so other video heroes are unaffected. */
@media (max-width: 640px) { .sol-hero--poster-sm .sol-hero__video { display: none; } }

/* ---------- video hero: CINEMA-PANEL modifier (.sol-hero--panel) ------------
   Pins the footage panel + its ink dark in BOTH themes (like the homepage over-footage
   "cinema panels"), so white text stays legible over the video even under the light theme.
   Reuses --scrim-deep and the *-on-media ink tokens (tokens.css keeps them fixed across
   themes) — no new colour. Compose with .sol-hero--video. */
.sol-hero--panel .sol-hero__scrim { background: linear-gradient(90deg, var(--scrim-deep) 0%, var(--scrim-deep) 30%, transparent 64%); }
.sol-hero--panel .eyebrow { color: var(--accent-on-media); }
.sol-hero--panel .sol-hero__title { color: var(--text-on-media); }
.sol-hero--panel .sol-hero__lede { color: var(--text-muted-on-media); }
.sol-hero--panel .btn--ghost { border-color: var(--text-dim-on-media); color: var(--text-on-media); }
.sol-hero--panel .btn--ghost:hover { border-color: var(--accent-on-media); }
@media (max-width: 820px) { .sol-hero--panel .sol-hero__scrim { background: linear-gradient(0deg, var(--scrim-deep) 14%, transparent 92%); } }

/* ---------- flex hero: LOWER-anchored text (.sol-hero--text-low) ------------
   Drops the content stack to the lower portion of a flex hero (image/video) — align-items:flex-end
   with a padding-bottom that keeps the CTAs above the bottom fade + any scroll affordance, so signage
   in the UPPER footage reads unobstructed. Column width/margins are unchanged (inherits .sol-hero__col).
   Mobile (<=720px) relaxes back to the default centred position so the stack never cramps or collide. */
.sol-hero--text-low { align-items: flex-end; }
.sol-hero--text-low > .container { padding-bottom: clamp(72px, 14vh, 140px); }
@media (max-width: 720px) {
  .sol-hero--text-low { align-items: center; }
  .sol-hero--text-low > .container { padding-bottom: 0; }
}

/* AWS Partner badge — rendered UNTOUCHED (no recolour/border/rotation), one per page,
   with generous clear space. To swap in the dark-bg version later, change only the file
   at the <source>/<img> paths — no markup/CSS change needed. */
.hero-aws__badge { display: block; width: 128px; height: auto; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* ---------- section shell ------------------------------------------------- */
.sol-block { padding-block: clamp(3.4rem, 8vw, 6rem); }
.sol-divide { border-top: 1px solid var(--border); }
.sol-block__head { max-width: 60ch; }
.sol-block__head h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; font-size: clamp(1.75rem, 4.4vw, 2.9rem); margin-top: 0.85rem; }
.sol-block__head p { color: var(--text-muted); font-size: var(--fs-body); margin-top: 1rem; }

/* gradient-text utility (tokens only) */
.sol-grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- overview + stats ---------------------------------------------- */
.sol-lead { font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.5; max-width: 40ch; color: var(--text); }
.sol-lead .muted { color: var(--text-muted); }
.sol-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .sol-overview { grid-template-columns: 1fr; gap: 1.5rem; } }
.sol-stats { display: flex; gap: 2.1rem; flex-wrap: wrap; }
.sol-stat__n { font-family: var(--font-display); font-weight: 600; font-size: 2.15rem; line-height: 1.05; }
.sol-stat__l { color: var(--text-muted); font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.04em; margin-top: 0.3rem; }

/* ---------- feature spotlight tiles (cursor-proximity border, reused) ------
   Same technique as the homepage bento: a radial gradient at the cursor, masked
   to the border ring only. Halo = var(--accent-2); core = near-white cyan. The
   per-tile --mx/--my are set in solution.js; off-tile at rest = no glow. */
.sol-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 880px) { .sol-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sol-feat-grid { grid-template-columns: 1fr; } }
.sol-feat {
  --mx: -400px; --my: -400px;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 170px; padding: 1.4rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border-faint);
  background: linear-gradient(180deg, var(--tile-sheen), transparent 42%), var(--surface);
}
.sol-feat__border {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my),
              var(--spot-core) 0%, var(--spot-halo) 30%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.sol-feat__body { position: relative; z-index: 2; }
.sol-feat__ix { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.sol-feat h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-top: 0.9rem; }
.sol-feat p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.5; }

/* ---------- how it works (numbered steps) --------------------------------- */
.sol-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; counter-reset: s; }
@media (max-width: 780px) { .sol-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sol-steps { grid-template-columns: 1fr; } } /* phones: single column (matches --three) */
.sol-step { position: relative; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-deep); }
.sol-step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-2); }
/* h4->h3 swap (C2-4): grouped + parity-pinned so the h3 renders exactly as the h4 did
   (margin-bottom = the UA h4 1.33em it relied on; letter-spacing normal vs the h1-h3
   base -0.02em). .sol-rel h4 below is untouched: zero shipping pages use .sol-rel. */
.sol-step h4, .sol-step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-top: 0.75rem; margin-bottom: 1.33em; letter-spacing: normal; }
.sol-step p { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.45rem; line-height: 1.5; }

/* ---------- tech / partner chips ------------------------------------------ */
.sol-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.9rem; }
.sol-chip { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em; color: var(--text); border: 1px solid var(--border); background: var(--surface-faint); padding: 0.55rem 0.85rem; border-radius: var(--radius); }

/* ---------- use case ------------------------------------------------------ */
.sol-usecase { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .sol-usecase { grid-template-columns: 1fr; } }
.sol-usecase__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; font-size: clamp(1.6rem, 4vw, 2.5rem); margin-top: 0.85rem; }
.sol-usecase__body { color: var(--text-muted); margin-top: 1rem; }
.sol-usecase__visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(160deg, #0f2840, #123a5c 55%, #1d6e7a); position: relative; overflow: hidden;
}
.sol-usecase__visual::after {
  content: attr(data-label); position: absolute; inset: auto 0 1.1rem 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.55);
}

/* ---------- related cards ------------------------------------------------- */
.sol-related { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.9rem; }
.sol-rel { flex: 1; min-width: 220px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: block; transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.sol-rel:hover { border-color: var(--accent); transform: translateY(-3px); }
.sol-rel__k { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.sol-rel h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-top: 0.5rem; }
.sol-rel__arr { color: var(--accent-2); font-size: 0.8rem; margin-top: 0.75rem; font-family: var(--font-mono); }

/* ---------- CTA band ------------------------------------------------------ */
.sol-cta { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; background: var(--bg-deep); }
.sol-cta::before { content: ""; position: absolute; bottom: -50%; left: 50%; transform: translateX(-50%); width: min(700px, 110vw); height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), transparent 65%); pointer-events: none; }
.sol-cta h2 { position: relative; font-family: var(--font-display); font-weight: 500; line-height: 1.1; font-size: clamp(1.75rem, 4.5vw, 2.9rem); }
.sol-cta p { position: relative; color: var(--text-muted); margin-top: 0.9rem; max-width: 46ch; margin-inline: auto; }
.sol-cta .btn { position: relative; margin-top: 1.75rem; }

/* ---------- scroll reveal -------------------------------------------------- */
/* No-JS safe: hidden state applies only when the .js flag is set (added in <head>
   when JS runs), so without JS everything renders visible. solution.js adds .in. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- AWS Partner verify link (aws-managed overview) ----------------- */
/* Factual link to Weststar's own AWS Partner Network listing — mono/accent styling to
   match the eyebrow labels; arrow nudges right on hover. Tokens only, no new colour. */
.aws-verify-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--accent-2); text-decoration: none;
  transition: gap 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.aws-verify-link:hover { color: var(--accent); gap: 12px; }
@media (prefers-reduced-motion: reduce) {
  .aws-verify-link { transition: none; }
}

/* ---------- status pill (reusable — hero "coming soon" / "pilot underway" etc.) ---------- */
.sol-status { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.sol-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: solPulse 2.2s ease-in-out infinite; }
@keyframes solPulse { 0%, 100% { opacity: 0.5; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sol-status__dot { animation: none; } }

/* ---------- three pillars — full alternating text/media sections (zigzag) ------------------
   Each pillar is a 2-col grid; .sol-pillar--flip swaps the columns (media left / text right) via
   `order` on the media. Below 860px: single column with the media on top for ALL pillars. */
.sol-pillar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.sol-pillar--flip .sol-pillar__media { order: -1; }              /* flip: media to the LEFT */
.sol-pillar__n { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em; color: var(--text-muted); }
.sol-pillar__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.01em; margin-top: 0.6rem; }
.sol-pillar__desc { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.6; margin-top: 1rem; max-width: 46ch; }
/* media block — 16:9, rounded, bordered; token-driven gradient placeholder until the files land
   (accent-rgb adapts per theme; an empty <video> is transparent -> the gradient shows, no broken icon). */
.sol-pillar__media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), transparent 60%), var(--bg-deep); }
/* > img: static service screenshots that replaced the demo videos on MSS (SIEM/Threat Intel/
   XDR/Dark Web). Direct-child only, so .sol-figure imgs inside --panel rows are untouched. */
.sol-pillar__media video,
.sol-pillar__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .sol-pillar { grid-template-columns: 1fr; gap: 1.5rem; }
  .sol-pillar__media { order: -1; }                              /* mobile: media on top for ALL (flip ignored) */
}

/* ---------- inline demo video (reusable .sol-video) — rounded media block ----------------
   Autoplays ONLY while in viewport (solution.js IntersectionObserver); reduced-motion / no-JS
   never autoplay -> the poster shows (or the inline dark-gradient placeholder until the poster
   lands). The <video> poster + sources use their final paths, so no code change when files land. */
.sol-video { position: relative; margin-top: 2.2rem; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background-color: var(--bg-deep); }
.sol-video__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Market section (AIVA) — ported from demo-market-section.html.
   Phase classes on .mkt-panel are namespaced (.mkt-sk skeleton -> .mkt-in data -> .mkt-line trend)
   so they never collide with the house .reveal.in; the chart is driven by the guarded module in
   js/solution.js. Token map: demo --tile -> var(--bg-elev), --line -> var(--border),
   --muted -> var(--text-muted); font inherits the site body. Skeleton fill/sheen have no project
   token, so they are component-local + theme-aware below. Fonts/typography inherit the site.
   ============================================================ */
.mkt { --mkt-sk-fill: rgba(138,147,166,.16); --mkt-sk-sheen: rgba(255,255,255,.14); }   /* skeleton — no project token */
[data-theme="light"] .mkt { --mkt-sk-fill: rgba(91,101,119,.14); --mkt-sk-sheen: rgba(255,255,255,.55); }

.mkt-eyebrow { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.mkt h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
.mkt-sub { color: var(--text-muted); max-width: 620px; margin: 0 0 42px; }

.mkt-panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.mkt-charttitle { margin: 0 0 30px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.mkt-chart { position: relative; display: flex; align-items: stretch; gap: clamp(8px, 2vw, 22px); height: 300px; }
.mkt-chart::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 32px; pointer-events: none; background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--border) calc(25% - 1px) 25%); }
.mkt-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; height: 100%; }
.mkt-track { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mkt-yr { flex: 0 0 auto; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; white-space: nowrap; }

.mkt-fill { position: relative; overflow: hidden; display: block; width: 100%; max-width: 58px; height: 0; border-radius: 10px 10px 4px 4px; background-color: var(--mkt-sk-fill); transition: height 1s cubic-bezier(.22,.61,.36,1), background-color 0.5s ease; }
.mkt-val { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 8px); z-index: 5; font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.5s ease 0.9s; }

/* phase: skeleton */
.mkt-sk .mkt-fill { height: var(--sh); }
.mkt-sk .mkt-fill::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(105deg, transparent 30%, var(--mkt-sk-sheen) 50%, transparent 70%); animation: mktShimmer 1.1s linear infinite; }
@keyframes mktShimmer { to { transform: translateX(100%); } }

/* phase: data (bars grow to --h) */
.mkt-in .mkt-fill { height: var(--h); background-color: transparent; background-image: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.mkt-in .mkt-bar.est .mkt-fill { opacity: 0.55; }
.mkt-in .mkt-val { opacity: 1; }
.mkt-in .mkt-bar.peak .mkt-fill { box-shadow: 0 10px 30px -8px var(--accent); animation: mktBreathe 3.2s ease-in-out 2.4s infinite; }
@keyframes mktBreathe { 0%, 100% { box-shadow: 0 10px 30px -8px var(--accent); } 50% { box-shadow: 0 12px 44px -4px var(--accent-2); } }
.mkt-bar:nth-of-type(1) .mkt-fill { transition-delay: 0s; }
.mkt-bar:nth-of-type(2) .mkt-fill { transition-delay: 0.09s; }
.mkt-bar:nth-of-type(3) .mkt-fill { transition-delay: 0.18s; }
.mkt-bar:nth-of-type(4) .mkt-fill { transition-delay: 0.27s; }
.mkt-bar:nth-of-type(5) .mkt-fill { transition-delay: 0.36s; }
.mkt-bar:nth-of-type(6) .mkt-fill { transition-delay: 0.45s; }
.mkt-bar:nth-of-type(7) .mkt-fill { transition-delay: 0.54s; }

/* phase: trend line */
.mkt-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; }
.mkt-path { fill: none; stroke: url(#mktGrad); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease; }
.mkt-line .mkt-path { opacity: 0.95; }
.mkt-dot { fill: var(--accent-2); stroke: var(--bg-elev); stroke-width: 2; opacity: 0; transition: opacity 0.4s ease 1.2s; }
.mkt-line .mkt-dot { opacity: 1; }
.mkt-ping { fill: none; stroke: var(--accent-2); stroke-width: 2; opacity: 0; }
.mkt-line .mkt-ping { animation: mktPing 2.2s ease-out 1.6s infinite; }
@keyframes mktPing { 0% { r: 5; opacity: 0.6; } 70% { r: 17; opacity: 0; } 100% { r: 17; opacity: 0; } }

.mkt-src { margin: 26px 0 0; font-size: 12px; color: var(--text-muted); }

.mkt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.mkt-stat { border-left: 1px solid var(--border); padding-left: 18px; }
.mkt-stat b { display: block; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; color: var(--accent); margin-bottom: 4px; }
.mkt-stat span { font-size: 13px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .mkt-fill, .mkt-path, .mkt-val { transition: none !important; }
  .mkt-sk .mkt-fill::after, .mkt-line .mkt-ping, .mkt-in .mkt-bar.peak .mkt-fill { animation: none !important; }
}
@media (max-width: 720px) {
  .mkt-chart { height: 220px; }
  .mkt-val { font-size: 11px; }
  .mkt-yr { font-size: 10px; }
  .mkt-fill { max-width: 40px; }
  .mkt-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* ---------- AIVA content-pass helpers (small, tokens only) ------------------------------
   4-up spotlight grid variant (Key Outcomes), the value-proposition list, and the partner strip. */
.sol-feat-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .sol-feat-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sol-feat-grid--four { grid-template-columns: 1fr; } }
.sol-steps--three { grid-template-columns: repeat(3, 1fr); }   /* 3-step dual-engine (base .sol-steps is 4-up) */
@media (max-width: 780px) { .sol-steps--three { grid-template-columns: 1fr; } }

.sol-vlist { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.sol-vlist li { position: relative; padding-left: 1.5rem; color: var(--text-muted); }
.sol-vlist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-grad); }

.sol-partners { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1.4rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.sol-partners__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.sol-partners__logo { height: 44px; width: auto; display: block; opacity: 0.72; transition: opacity var(--dur) var(--ease-out); }
.sol-partners:hover .sol-partners__logo { opacity: 1; }

/* ---------- overview with side media (.sol-overview2) — story + a feathered photo blended into the
   page. Story left / photo right; stacks below 860px. Generalised from the ATP overview treatment. */
.sol-overview2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; margin-top: 2.5rem; }
@media (max-width: 860px) { .sol-overview2 { grid-template-columns: 1fr; } }
.sol-overview2__story { display: grid; gap: 1.2rem; align-content: start; }
.sol-overview2__story p { color: var(--text-muted); }
.sol-overview2__story p:first-child { color: var(--text); }   /* lead-in reads a touch stronger */

/* feathered side photo — dissolves into the page bg via an ALPHA-ONLY radial mask (theme-agnostic,
   no frame). Natural aspect, centred, capped at side-column scale so modest sources never stretch.
   Dark theme dims it slightly so a bright photo sits into the dark page; light theme = full. */
.sol-media-feather {
  display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto;
  -webkit-mask-image: radial-gradient(115% 105% at 50% 46%, #000 52%, transparent 97%);
          mask-image: radial-gradient(115% 105% at 50% 46%, #000 52%, transparent 97%);
  filter: brightness(0.82) saturate(0.96);
}
[data-theme="light"] .sol-media-feather { filter: none; }

/* figure panel — frames a diagram/screenshot at full width in a plain tile with a muted caption.
   Surface/border tokens only; the artwork supplies its own canvas (e.g. a white diagram background). */
.sol-figure { margin-top: 2.5rem; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1rem, 2.5vw, 1.6rem); }
.sol-figure__img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.sol-figure__cap { margin: 1rem 0 0; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* zigzag media as a FIGURE PANEL (screenshot) instead of a video — drop the 16:9 video frame so the
   child .sol-figure supplies its own tile/border/radius. The flip (order swap) still applies. */
.sol-pillar__media--panel { aspect-ratio: auto; border: 0; border-radius: 0; overflow: visible; background: none; }
.sol-pillar__media--panel .sol-figure { margin-top: 0; }

/* pillar lede — a stronger intro line above the muted body inside a zigzag row. */
.sol-pillar__lede { color: var(--text); font-size: 1.05rem; line-height: 1.55; margin-top: 0.9rem; max-width: 46ch; }
/* pillar meta — a muted mono footnote under the body (e.g. "Built on the … platform"). */
.sol-pillar__meta { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-dim); }

/* auxiliary figure — a smaller in-column screenshot beneath the copy; hidden once the row stacks
   (<=860px) so it never crowds the mobile layout. */
.sol-figure--aux { max-width: 380px; margin-top: 1.6rem; }
@media (max-width: 860px) { .sol-figure--aux { display: none; } }

/* ============================================================
   Figure GLOW + COVER — used ONLY by the two ai-support.html "Deployed at national scale" panels.
   Ported (from spec) as Variant C: a rotating conic-sweep glow + a full-bleed cinematic-fade cover.
   All colour is alpha derivations of the theme --accent / --accent-2 tokens — no new colours.
   ============================================================ */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Conic-sweep glow: 1.5px conic border ring (::before, masked to the ring) + a blurred conic halo
   (::after) behind, both driven by the registered --sweep angle on a 4.2s linear cycle. isolation
   contains the halo's z-index; the figure keeps overflow:visible so the blur bleeds unclipped past the
   zigzag. No @property (old browsers) → the ring/halo are a STATIC gradient (0deg == 360deg, so the
   discrete fallback never jumps). Reduced motion → rotation off, glow static. */
.sol-figure--glow { position: relative; isolation: isolate; }
.sol-figure--glow::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: conic-gradient(from var(--sweep, 0deg),
    rgba(var(--accent-2-rgb), 0) 0deg, rgba(var(--accent-2-rgb), 0.9) 60deg,
    rgba(var(--accent-rgb), 0.9) 135deg, rgba(var(--accent-rgb), 0) 215deg, rgba(var(--accent-2-rgb), 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: solSweep 4.2s linear infinite;
}
.sol-figure--glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--sweep, 0deg),
    rgba(var(--accent-2-rgb), 0) 0deg, rgba(var(--accent-2-rgb), 0.5) 60deg,
    rgba(var(--accent-rgb), 0.5) 135deg, rgba(var(--accent-rgb), 0) 215deg, rgba(var(--accent-2-rgb), 0) 360deg);
  filter: blur(13px); opacity: 0.6;
  animation: solSweep 4.2s linear infinite;
}
@keyframes solSweep { to { --sweep: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .sol-figure--glow::before, .sol-figure--glow::after { animation: none; }
}

/* ---------- Hover/focus-gated conic-sweep glow (halal-system image panels) ----------
   Reuses .sol-figure--glow's ring (::before) + halo (::after) but shows/animates them ONLY on
   hover / focus-visible. Idle = the figure's existing subtle 1px --border. On enter the ring +
   halo fade in and start sweeping; on leave they ease back out (opacity transition -> NO layout
   shift; the border stays 1px, only its colour changes). Reduced-motion: no sweep — a static
   --accent border highlight on hover/focus instead. Token-only; both themes. Pair with
   .sol-figure--glow on the element. */
.sol-figure--glow-hover { transition: border-color var(--dur) var(--ease-out); }
.sol-figure--glow-hover::before,
.sol-figure--glow-hover::after {
  opacity: 0; animation-play-state: paused;
  transition: opacity var(--dur) var(--ease-out);
}
.sol-figure--glow-hover:hover,
.sol-figure--glow-hover:focus-visible { border-color: transparent; }
.sol-figure--glow-hover:focus-visible { outline: none; }   /* the glow ring is the focus indicator */
.sol-figure--glow-hover:hover::before,
.sol-figure--glow-hover:focus-visible::before { opacity: 1; animation-play-state: running; }
.sol-figure--glow-hover:hover::after,
.sol-figure--glow-hover:focus-visible::after { opacity: 0.6; animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  /* No sweep: hover/focus shows a simple static accent border; the ring + halo stay hidden. */
  .sol-figure--glow-hover:hover,
  .sol-figure--glow-hover:focus-visible { border-color: var(--accent); }
  .sol-figure--glow-hover:hover::before, .sol-figure--glow-hover:focus-visible::before,
  .sol-figure--glow-hover:hover::after, .sol-figure--glow-hover:focus-visible::after { opacity: 0; }
}

/* Full-bleed cinematic cover (TanyaHafy): the figure becomes a 3/2 frame and the image fills it
   (object-fit:cover — 711×465 ≈ 3/2 so the mascot isn't cropped), dissolving into the panel via an
   alpha radial mask (house feather language). scale(1.03) kills edge slivers, which the mask fades
   away — so NO overflow clip is needed and the glow halo stays unclipped. Padding removed. Dark theme:
   a gentle brightness/saturate so the white artwork sits into the page (same philosophy as
   .sol-media-feather); light theme: no filter. */
.sol-figure--cover { padding: 0; aspect-ratio: 3 / 2; }
.sol-figure--cover .sol-figure__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(120% 105% at 50% 45%, #000 55%, transparent 96%);
          mask-image: radial-gradient(120% 105% at 50% 45%, #000 55%, transparent 96%);
  filter: brightness(0.88) saturate(0.97);
}
[data-theme="light"] .sol-figure--cover .sol-figure__img { filter: none; }

/* ---- Pipeline rows (in-development products in the "Built in-house" zigzag) — muted by OPACITY only
   (no grey colour values), media additionally desaturated. Everything in the row is dimmed EXCEPT the
   link (stays full-strength & clickable at normal link colour — opacity can't be un-inherited, so we
   dim the siblings, not the row wrapper). Hover eases the muted content up for readability. Opacity is
   the only motion, so it's kept under prefers-reduced-motion (per spec). ---- */
.sol-row--pipeline .sol-pillar__text > :not(.aws-verify-link),
.sol-row--pipeline .sol-pillar__media { opacity: 0.62; transition: opacity var(--dur) var(--ease-out); }
.sol-row--pipeline:hover .sol-pillar__text > :not(.aws-verify-link),
.sol-row--pipeline:hover .sol-pillar__media { opacity: 0.85; }
.sol-row--pipeline .sol-pillar__media { filter: saturate(0.55); }
/* small centered muted label dividing the live products from the pipeline ones */
.sol-row-divider { margin-top: clamp(48px, 7vw, 88px); text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-dim); }
.sol-row-divider + .sol-pillar { margin-top: clamp(1.6rem, 3vw, 2.6rem); }

/* ---------- Inline video panels: bottom-fade (hides the Gemini/Flow watermark) -----------
   Every inline <video> panel carries [data-sol-video] (the IO-autoplay hook). The hero
   already fades via .sol-hero--video::after, so exclude .sol-hero. Fades to var(--bg) so it
   reads correctly in BOTH themes (same as the hero). Inline video panels (.sol-pillar__media
   / .sol-video) have no existing ::after — the Variant-C conic-sweep glow ::after lives only
   on the image figure .sol-figure--glow, so there is NO collision here. The fade is clipped
   to each panel's rounded corners by the panel's own overflow:hidden + border-radius:inherit.
   Soft 2-stop fade: fully solid only at the very bottom edge, easing off fast (no hard cut).
   Uses var(--bg) (theme-aware; there is no --bg-rgb companion for an alpha step, and the only
   bg-RGB token is the darker --bg-deep-rgb — mixing it would be inconsistent, so a clean
   var(--bg)->transparent ramp is preferred). TUNING: if the mark ever pokes through, nudge the
   height up (14% -> ~18%) — keep it the minimum that hides it without eating bottom content
   (e.g. the AIVA data labels / CCTV feed rows). */
[data-sol-video]:not(.sol-hero) { position: relative; }
[data-sol-video]:not(.sol-hero)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
