/* =====================================================================
   piMark site chrome  ·  layer 2 of 2
   Nav · mega · footer · announce · hero · six-agent constellation ·
   bands · page-hero · pricing · floaters · mobile
   ===================================================================== */

/* =====================================================================
   ANNOUNCEMENT BAR
   ===================================================================== */
.announce {
  display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap;
  padding: .55rem 1rem; font-size: .85rem; text-align: center;
  background: linear-gradient(90deg, var(--brand-tint), var(--accent-tint));
  border-bottom: 1px solid var(--border-subtle); color: var(--text-muted);
}
.announce .announce-pill {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-brand); background: var(--brand); padding: .2rem .5rem; border-radius: var(--r-full);
}
.announce a { color: var(--brand-ink); font-weight: 600; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
header.site { position: sticky; top: 0; z-index: 100; }
.site-nav {
  display: flex; align-items: center; gap: 1.4rem;
  max-width: var(--wrap-wide); margin-inline: auto;
  padding: .7rem clamp(1.15rem, 4vw, 2.4rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; flex: none; }
.wordmark .brand-logo { height: 30px; width: auto; }
.wordmark .brand-logo--dark { display: none; }
:root[data-theme="light"] .wordmark .brand-logo--light { display: none; }
:root[data-theme="light"] .wordmark .brand-logo--dark { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .wordmark .brand-logo--light { display: none; }
  :root:not([data-theme="dark"]) .wordmark .brand-logo--dark { display: block; }
}

.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: .4rem; }
.nav-links > li { position: relative; }
.nav-links a.nav-top, .menu-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .7rem; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; color: var(--text-muted);
  transition: color .14s ease, background .14s ease;
}
.nav-links a.nav-top:hover, .menu-trigger:hover, .menu-trigger[aria-expanded="true"] { color: var(--text); background: var(--hover); }
.caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .6; transition: transform .16s ease; }
.menu-trigger[aria-expanded="true"] .caret { transform: rotate(-135deg); }

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.theme-toggle {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--border); color: var(--text-muted); font-size: 1rem;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--hover); }
.nav-login { font-size: .92rem; font-weight: 500; color: var(--text-muted); padding: .5rem .7rem; border-radius: var(--r-sm); }
.nav-login:hover { color: var(--text); background: var(--hover); }

/* mega dropdown */
.has-menu .mega {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 90;
  min-width: 540px; padding: 1rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem;
}
.has-menu .mega.mega-1 { grid-template-columns: 1fr; min-width: 320px; }
.has-menu.open .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-link {
  display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--r-md);
  transition: background .14s ease;
}
.mega-link:hover { background: var(--hover); }
.mega-link .mi { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-2); color: var(--accent-ink); border: 1px solid var(--border); }
.mega-link .mi svg { width: 18px; height: 18px; }
.mega-link .mt { display: block; font-weight: 600; font-size: .92rem; color: var(--text); }
.mega-link .md { display: block; font-size: .82rem; color: var(--text-faint); margin-top: .1rem; line-height: 1.45; }
.mega-foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: .4rem; padding: .8rem; border-top: 1px solid var(--border-subtle);
}
.mega-foot .mf-note { font-size: .82rem; color: var(--text-faint); }

/* mobile */
.nav-toggle { display: none; width: 38px; height: 38px; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); border-left: 1px solid var(--border-strong); padding: 5rem 1rem 2rem;
    transform: translateX(100%); transition: transform .24s cubic-bezier(.16,1,.3,1); overflow-y: auto; margin: 0;
  }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; }
  .nav-links > li { position: static; }
  .has-menu .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; grid-template-columns: 1fr; padding: .2rem .4rem 1rem 1rem; display: none; }
  .has-menu.open .mega { display: grid; }
  .menu-trigger { width: 100%; justify-content: space-between; font-size: 1rem; }
  .nav-links a.nav-top { font-size: 1rem; padding: .7rem; }
  .nav-actions { gap: .35rem; }
  .nav-login { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg.hairline-grid { -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%); mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none; }
.hero-glow.g1 { width: 640px; height: 640px; top: -280px; left: -120px; background: radial-gradient(circle, rgba(133,83,211,.34), transparent 68%); }
.hero-glow.g2 { width: 560px; height: 560px; top: -160px; right: -140px; background: radial-gradient(circle, rgba(228,144,31,.16), transparent 66%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 1.1rem; }
.hero .lede { margin-top: 1.3rem; font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--border-subtle); }
.hero-proof .hp { display: flex; flex-direction: column; }
.hero-proof .hp .n { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.hero-proof .hp .l { font-size: .8rem; color: var(--text-faint); }

/* =====================================================================
   SIX-AGENT CONSTELLATION (signature motif)
   ===================================================================== */
.constel-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }
.constel-mesh { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constel-line { stroke: var(--border-strong); stroke-width: 1; opacity: .5; transition: stroke .3s ease, opacity .3s ease; }
.constel-line.is-active { stroke: var(--accent); opacity: .9; }
.constel-line-pulse { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 120; opacity: 0; }
.constel-stage.is-visible .constel-line-pulse { opacity: .8; animation: dashmove 3.4s linear infinite; animation-delay: var(--d, 0s); }
@keyframes dashmove { to { stroke-dashoffset: -125; } }
@media (prefers-reduced-motion: reduce) { .constel-stage.is-visible .constel-line-pulse { animation: none; opacity: 0; } }

.constel-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface));
  border: 1px solid var(--brand-line); box-shadow: var(--glow-brand), inset 0 0 24px rgba(133,83,211,.14); z-index: 3;
}
.constel-core .c-py { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--accent-ink); }
.constel-core .c-l { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-top: .1rem; }
.constel-core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed var(--border-strong); opacity: .5; animation: spin 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { .constel-core::after { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.constel-node-pos { position: absolute; top: 0; left: 0; z-index: 4; }
.constel-node {
  --c: var(--brand);
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--c);
  color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease; position: relative;
}
.constel-node .cn-fill { position: absolute; inset: 4px; border-radius: 50%; background: var(--c); opacity: .18; }
.constel-node span { position: relative; color: var(--c); }
.constel-node:hover, .constel-node.is-active { transform: scale(1.12); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 55%, transparent); }
.constel-node.is-active .cn-fill { opacity: .34; }

.constel-panel {
  margin-top: 1.5rem; text-align: center; min-height: 92px;
}
.constel-panel .cp-eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--text-faint); }
.constel-panel .cp-title { font-size: 1.2rem; font-weight: 600; margin-top: .3rem; }
.constel-panel .cp-detail { color: var(--text-muted); font-size: .95rem; margin-top: .35rem; max-width: 44ch; margin-inline: auto; }

/* agent legend row */
.agent-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }

/* =====================================================================
   BAND RHYTHM (dark-first: subtle surface shifts + glow, not light flips)
   ===================================================================== */
.band-panel { background: var(--bg-2); border-block: 1px solid var(--border-subtle); }
.band-surface { background: var(--surface); border-block: 1px solid var(--border-subtle); }
.band-glow { position: relative; overflow: hidden; }
.band-glow::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%; filter: blur(120px); z-index: 0;
  background: radial-gradient(circle, var(--brand-tint), transparent 70%); pointer-events: none;
}
.band-glow > .wrap { position: relative; z-index: 1; }
/* a bright inverted band for high-contrast CTA moments */
.band-bright {
  background: linear-gradient(135deg, #8553D3 0%, #A855F7 55%, #F472B6 125%);
  color: #fff; position: relative; overflow: hidden;
}
.band-bright h2, .band-bright .eyebrow, .band-bright .lede, .band-bright p { color: #fff; }
.band-bright .eyebrow { color: rgba(255,255,255,.85); }
.band-bright .eyebrow::before { background: linear-gradient(90deg, #fff, transparent); }
.band-bright .btn-primary { --_bg: #fff; --_fg: var(--brand); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.band-bright .btn-ghost { --_fg: #fff; --_bd: rgba(255,255,255,.5); }
.band-bright .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* =====================================================================
   PAGE HERO (interior pages)
   ===================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 4.6rem) clamp(2rem, 4vw, 3rem); }
.page-hero .breadcrumb { display: flex; gap: .5rem; font-size: .82rem; color: var(--text-faint); margin-bottom: 1rem; font-family: var(--font-mono); }
.page-hero .breadcrumb a:hover { color: var(--text-muted); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero .lede { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 880px) { .page-hero-grid { grid-template-columns: 1fr; } }
.page-hero-viz { position: relative; min-height: 240px; display: grid; place-items: center; }

/* =====================================================================
   FEATURE / STEP / STAT COMPONENTS
   ===================================================================== */
.feature { }
.feature .card-icon { }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-muted); font-size: .96rem; }

.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; align-items: start; position: relative; }
.step .step-n {
  counter-increment: step; width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; background: var(--brand-tint); color: var(--brand-ink); border: 1px solid var(--brand-line);
}
.step .step-n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-muted); margin-top: .3rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 1.5rem; text-align: center; }
.stat-cell .stat-num { font-family: var(--font-mono); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--text); display: block; }
.stat-cell .stat-lbl { font-size: .85rem; color: var(--text-faint); margin-top: .3rem; }

/* logo/character marquee (illustrative — NOT customer logos) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee .m-item { font-family: var(--font-mono); font-size: .9rem; color: var(--text-faint); white-space: nowrap; }

/* =====================================================================
   PRICING
   ===================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--glow-brand); position: relative; }
.price-card.featured::before { content: "Recommended"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); padding: .25rem .7rem; border-radius: var(--r-full); }
.price-card .price-name { font-weight: 600; font-size: 1.1rem; }
.price-card .price-amt { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; }
.price-card .price-amt small { font-size: .9rem; color: var(--text-faint); font-weight: 400; }
.price-feats { display: grid; gap: .6rem; font-size: .92rem; }
.price-feats li { display: flex; gap: .55rem; color: var(--text-muted); }
.price-feats li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: .1rem; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { display: grid; gap: .6rem; max-width: 780px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; text-align: left; }
.faq-q .fi { width: 20px; height: 20px; flex: none; position: relative; }
.faq-q .fi::before, .faq-q .fi::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--accent); }
.faq-q .fi::before { width: 12px; height: 2px; }
.faq-q .fi::after { width: 2px; height: 12px; transition: transform .18s ease; }
.faq-item.open .faq-q .fi::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .24s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a .faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* =====================================================================
   MASCOT CALLOUT (Miko — the piMark fox; placeholder)
   ===================================================================== */
.miko-callout {
  display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); max-width: 760px; margin-inline: auto;
}
.miko-callout img, .miko-callout svg.miko { width: 52px; height: 52px; flex: none; }
.miko-callout .mc-text { font-size: .98rem; }
.miko-callout .mc-text b { color: var(--accent-ink); }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer.site { border-top: 1px solid var(--border-subtle); background: var(--bg-2); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand-logo { height: 28px; width: auto; }
.foot-brand p { color: var(--text-faint); font-size: .9rem; margin-top: 1rem; max-width: 30ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.foot-col ul { display: grid; gap: .6rem; }
.foot-col a { font-size: .92rem; color: var(--text-muted); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border-subtle); font-size: .85rem; color: var(--text-faint); }
.foot-bottom .foot-social { display: flex; gap: .8rem; }
.foot-bottom .foot-social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-muted); }
.foot-bottom .foot-social a:hover { color: var(--text); border-color: var(--border-strong); }
.foot-disclaimer { font-size: .78rem; color: var(--text-faint); margin-top: 1rem; max-width: 70ch; }

/* =====================================================================
   SCROLL PROGRESS + FLOATERS
   ===================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* bottom-left welcome pop-up (Book a demo) — Miko */
.welcome-pop {
  position: fixed; bottom: 22px; left: 22px; z-index: 120; width: min(340px, calc(100vw - 44px));
  display: flex; gap: .5rem; align-items: flex-end;
  transform: translateY(140%); opacity: 0; transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
.welcome-pop.in { transform: translateY(0); opacity: 1; }
.welcome-pop .wp-miko { width: 82px; height: auto; flex: none; margin-bottom: -6px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); pointer-events: none; }
.welcome-pop .wp-card {
  position: relative; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-lg); flex: 1;
}
.welcome-pop .wp-card::before {
  content: ""; position: absolute; left: -7px; bottom: 20px; width: 12px; height: 12px;
  background: var(--surface); border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
.welcome-pop .wp-title { font-weight: 600; font-size: .98rem; }
.welcome-pop p { font-size: .84rem; color: var(--text-muted); margin: .35rem 0 .7rem; line-height: 1.45; }
.welcome-pop .wp-close {
  position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  color: var(--text-faint); font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
}
.welcome-pop .wp-close:hover { color: var(--text); background: var(--hover); }
@media (max-width: 560px) { .welcome-pop { left: 12px; bottom: 12px; } .welcome-pop .wp-miko { width: 62px; } }
@media (prefers-reduced-motion: reduce) { .welcome-pop { transition: opacity .3s ease; transform: none; } }

.floater { position: fixed; bottom: 22px; right: 22px; z-index: 120; }
.floater-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: var(--r-full);
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg);
}
.floater-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.floater-btn svg { width: 18px; height: 18px; }

/* =====================================================================
   HELPERS FOR SUBPAGE VISUALS
   ===================================================================== */
.viz-frame { width: 100%; max-width: 460px; aspect-ratio: 4/3; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(160px, auto); gap: 1.1rem; }
.bento .b-lg { grid-column: span 2; grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }
@media (max-width: 820px) { .bento { grid-template-columns: 1fr 1fr; } .bento .b-lg { grid-column: span 2; grid-row: span 1; } .bento .b-wide { grid-column: span 2; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .bento .b-lg, .bento .b-wide { grid-column: span 1; } }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* card list for blog/resources/glossary */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .post-thumb { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; background: var(--surface-2); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.post-card h3 { font-size: 1.12rem; margin: .5rem 0; }
.post-card p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.post-card .post-foot { margin-top: 1rem; font-size: .85rem; color: var(--text-faint); }

.letter-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.letter-nav a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .85rem; color: var(--text-muted); }
.letter-nav a:hover { border-color: var(--brand); color: var(--brand-ink); }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.term-card { padding: 1rem 1.1rem; }
.term-card h3 { font-size: 1rem; }
.term-card p { font-size: .85rem; color: var(--text-faint); margin-top: .3rem; }
