/* Foundry Digital AI — shared site shell for Direction B subpages.
   Pairs with css/base.css (tokens, nav, footer, buttons). Matches home-b.html. */

/* ===== Site-wide animated mesh backdrop ===== */
html { background: var(--navy); }
body { background: var(--mist); }
#siteBg { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
#siteBg canvas { display: block; width: 100%; height: 100%; }
body.mesh-on { background: transparent; }
body.mesh-on #siteBg { opacity: 1; }
body.mesh-on .page-hero, body.mesh-on .opB, body.mesh-on .ctaB, body.mesh-on .footer { background: transparent; }
body.mesh-on .pedigree { background: rgba(244,247,251,.80); backdrop-filter: blur(2px); }
body.mesh-on .sec { background: rgba(255,255,255,.90); }
body.mesh-on .sec.band { background: rgba(244,247,251,.86); }

/* ===== Page hero (navy, sits on the mesh) ===== */
.page-hero { background: var(--navy); position: relative; --head-scale: 1; }
.page-hero .wrap { position: relative; z-index: 1; padding: 88px 48px 76px; }
@media (max-width: 768px){ .page-hero .wrap { padding: 60px 24px 56px; } }
.page-hero .eyebrow { color: var(--aqua); }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: calc(clamp(36px, 5vw, 56px) * var(--head-scale)); }
.page-hero .sub { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 60ch; margin: 20px 0 0; }
.page-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.page-hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); }
.page-hero .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ===== Sections + headers ===== */
.sec { padding: var(--sec-pad, 84px) 0; }
.sec.band { background: var(--mist); }
.secB-head { max-width: 760px; margin: 0; }
.secB-head h2 { margin-top: 10px; }
.secB-head .lead { margin-top: 14px; color: var(--muted); }
.secB-head.center { margin: 0 auto; text-align: center; }
.secB-head.ruled { padding-bottom: 26px; border-bottom: 1px solid var(--border); }

/* ===== Operations pedigree strip ===== */
.pedigree { background: var(--mist); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pedigree .wrap { display: flex; align-items: center; gap: 30px; padding: 20px 48px; flex-wrap: wrap; }
.pedigree .lab { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); white-space: nowrap; }
.pedigree .names { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pedigree .names > span:not(.sep) { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); opacity: .62; letter-spacing: -.01em; white-space: nowrap; }
.pedigree .names .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .5; }
@media (max-width: 640px){ .pedigree .wrap { gap: 14px; } .pedigree .names { gap: 16px; } }

/* ===== Generic card ===== */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--card-r, 16px);
  box-shadow: var(--shadow-md); padding: 24px; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
body.no-glow .btn-primary, body.no-glow .btn-primary:hover { box-shadow: none; }

/* ===== Operator / dark quote band (shared with home) ===== */
.opB { background: var(--navy); position: relative; }
.opB .wrap { position: relative; z-index: 1; padding: 88px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px){ .opB .wrap { grid-template-columns: 1fr; gap: 40px; } }
.opB .eyebrow { color: var(--aqua); }
.opB h2 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); }
.opB p { font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.76); margin: 20px 0 0; max-width: 52ch; }
.opB .brands { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.opB .brands .b { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-full); padding: 7px 14px; }
.opB-quote { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-2xl); padding: 44px 40px; }
.opB-quote .mark { width: 64px; height: 64px; margin-bottom: 24px; filter: drop-shadow(0 12px 30px rgba(46,144,250,.4)); }
.opB-quote blockquote { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em; color: #fff; margin: 0; }
.opB-quote .by { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--aqua); margin-top: 22px; }

/* ===== CTA band ===== */
.ctaB { background: var(--navy); color: #fff; text-align: center; position: relative; }
.ctaB .wrap { position: relative; z-index: 1; padding: 84px 48px; }
.ctaB h2 { color: #fff; }
.ctaB p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.74); max-width: 50ch; margin: 18px auto 30px; }
.ctaB .wa { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-top: 22px; }
.ctaB .wa b { color: var(--aqua); font-weight: 500; }

/* ===== Link chat bubbles (about "Meet Link") ===== */
.lkbubble { background: var(--mist); border-radius: 12px 12px 12px 3px; padding: 12px 15px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.lkbubble .who { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--aqua-700); display: block; margin-bottom: 4px; }

/* ===== Link character idle animation (gated on body.lk-live) ===== */
@keyframes lkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lkBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
@keyframes lkNub { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .7; } }
.lk-live .lk-anim.float svg { animation: lkFloat 5s ease-in-out infinite; transform-origin: 50% 55%; }
.lk-live .lk-anim svg circle[r="5.5"] { animation: lkBlink 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lk-live .lk-anim svg circle[r="8"] { animation: lkNub 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .lk-live .lk-anim svg, .lk-live .lk-anim svg circle { animation: none !important; } }
