/* ============================================================
   MYL Instruments — Design System  (assets/styles.css)
   "The Soft Blue Dragon" — crisp white, royal/navy structure,
   ethereal glowing-blue accents. Light mode only.
   Loaded on every page. Motion lives in animations.css.
   ============================================================ */

:root {
  /* ---- Blues ---- */
  --navy:        #0a2347;
  --navy-700:    #123257;
  --navy-500:    #29456f;
  --royal:       #1f5fe0;
  --royal-600:   #1a52c8;
  --royal-700:   #1647ad;
  --blue-500:    #3b82f6;
  --sky:         #5bb6f0;
  --sky-soft:    #9fd2f6;
  --glow:        #6fb4ff;   /* aurora glow */

  /* ---- Surfaces / tints ---- */
  --ice:         #eef5ff;
  --ice-2:       #f6faff;
  --ice-3:       #e3eeff;
  --white:       #ffffff;
  --border:      #d8e6fb;
  --border-soft: #e7f0fd;

  /* ---- Text ---- */
  --ink:         #0a2347;
  --body:        #44566f;
  --muted:       #7488a3;

  /* ---- Signal ---- */
  --x-red:       #e0474c;
  --x-red-soft:  #fbe7e8;
  --ok-green:    #1f9d6b;
  --ok-green-soft:#e3f6ee;

  /* ---- Type ---- */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --nav-h: 78px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(16,52,98,.06);
  --shadow:    0 18px 50px -22px rgba(16,52,98,.30);
  --shadow-lg: 0 40px 90px -40px rgba(16,52,98,.42);
  --glow-shadow: 0 0 0 1px rgba(31,95,224,.10), 0 24px 60px -28px rgba(31,95,224,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Global stacking: content sits ABOVE #site-bg (z-index 0) ---- */
main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 2; }

h1,h2,h3,h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal);
}
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 80px 0; }
/* Translucent section tints let the global background flow through (no seams) */
.section.ice  { background: rgba(222,236,255,.55); }
.section.ice2 { background: rgba(255,255,255,.42); }
.center { text-align: center; }
.lead { font-size: 19px; line-height: 1.62; color: var(--body); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

.head { max-width: 740px; }
.head.center, .center .head { margin: 0 auto; }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 14px; text-wrap: balance; }
.head .lead { margin-top: 18px; }

/* ============================================================
   BUTTONS  (motion enhancements in animations.css)
   ============================================================ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--royal); color: #fff; box-shadow: 0 12px 26px -12px rgba(31,95,224,.7); }
.btn-primary:hover { background: var(--royal-600); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(31,95,224,.14), 0 18px 34px -12px rgba(31,95,224,.8); }
.btn-outline { background: rgba(255,255,255,.7); color: var(--royal); border-color: var(--border); }
.btn-outline:hover { border-color: var(--royal); background: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--royal); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV  (markup injected by site.js)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled { box-shadow: 0 10px 30px -22px rgba(16,52,98,.45); background: rgba(255,255,255,.92); }
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto;
  height: var(--nav-h); padding: 0 28px;
  display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.foot-logo { height: 40px; }
@media (max-width: 720px) { .brand-logo { height: 40px; } }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; position: relative; flex: none;
  background: linear-gradient(150deg, var(--royal), var(--sky));
  box-shadow: 0 6px 16px -6px rgba(31,95,224,.6);
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background:
    radial-gradient(60% 80% at 70% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(50% 60% at 22% 82%, rgba(255,255,255,.4), transparent 60%);
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--navy-700); padding: 10px 13px; border-radius: 10px; cursor: pointer;
  transition: background .15s, color .15s; position: relative;
}
.nav-link:hover { background: var(--ice); color: var(--royal); }
.nav-link.active { color: var(--royal); }
.nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--royal), var(--sky)); border-radius: 2px;
}
.nav-link .caret { transition: transform .25s ease; opacity: .55; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px; min-width: 268px;
  opacity: 0; visibility: hidden; transition: all .24s cubic-bezier(.2,.7,.2,1); z-index: 90;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-link { display: block; padding: 11px 14px; border-radius: 11px; transition: background .14s, transform .14s; }
.drop-link:hover { background: var(--ice); transform: translateX(3px); }
.drop-title { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--navy); }
.drop-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
  transition: transform .25s ease, opacity .2s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after  { position: absolute; top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   PLACEHOLDERS / INSERT MARKERS
   ============================================================ */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--ice-2) 0 12px, var(--ice) 12px 24px);
  border: 1.5px dashed var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--royal); font-family: "Sora", monospace; font-size: 13px; font-weight: 600;
  padding: 22px; min-height: 120px;
}
.ph.shot { min-height: 440px; border-radius: 12px; font-size: 14px; }
.ph .ph-tag { display: inline-block; background: rgba(31,95,224,.08); border: 1px solid var(--border); border-radius: 8px; padding: 8px 13px; max-width: 80%; }
.ph-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--navy-700); }
.ins {
  display: inline-block; background: #fff6d6; color: #8a6d12;
  border: 1px dashed #e3c34d; border-radius: 6px; padding: 1px 7px;
  font-family: ui-monospace, Menlo, monospace; font-size: .86em; font-weight: 600;
}

/* ============================================================
   GENERIC CARD + GLOW
   ============================================================ */
.card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s;
}

/* ============================================================
   FOOTER  (markup injected by site.js)
   ============================================================ */
.footer { background: var(--white); border-top: 1px solid var(--border-soft); padding: 66px 0 40px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.foot-links a { display: block; padding: 7px 0; color: var(--body); font-size: 14px; transition: color .15s, transform .15s; }
.foot-links a:hover { color: var(--royal); transform: translateX(3px); }
.foot-about p { font-size: 14px; line-height: 1.6; color: var(--body); margin-top: 14px; max-width: 260px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px 40px; color: var(--muted); font-size: 13px; }
.foot-bottom > span:first-child { flex: none; }
.foot-disclaimer { flex: 1; min-width: 280px; max-width: 760px; font-size: 12px; line-height: 1.55; }

/* ============================================================
   PAGE STUB  (shared "in progress" template)
   ============================================================ */
.stub { position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.stub-inner { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; text-align: center; padding: 80px 28px; }
.stub .kicker { font-family: var(--font-head); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--royal); }
.stub h1 { font-size: clamp(38px, 6vw, 68px); color: var(--navy); margin-top: 16px; text-wrap: balance; }
.stub h1 .accent { background: linear-gradient(100deg, var(--royal), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stub p { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--body); }
.stub .crumb { margin-top: 10px; font-size: 13px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.stub-bar { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stub-progress { margin: 40px auto 0; max-width: 420px; }
.stub-progress .track { height: 8px; border-radius: 999px; background: var(--ice-3); overflow: hidden; }
.stub-progress .fill { height: 100%; width: 22%; border-radius: 999px; background: linear-gradient(90deg, var(--royal), var(--sky)); }
.stub-progress .label { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 78px 0; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SUBPAGE COMPONENTS (Platform / Solutions / etc.)
   ============================================================ */

/* ---- Subpage hero (transparent, over global bg) ---- */
.page-hero { position: relative; text-align: center; padding: 120px 0 86px; overflow: hidden; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 70px); color: var(--navy); max-width: 17ch; margin: 18px auto 0; text-wrap: balance; }
.page-hero h1 .accent { background: linear-gradient(100deg, var(--royal), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin: 24px auto 0; font-size: 20px; }
.page-hero .hero-cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- 4-up step cards ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.step-card { display: flex; flex-direction: column; background: rgba(255,255,255,.74); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px 22px; box-shadow: var(--shadow-sm); }
.step-card .step-no { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: var(--royal); }
.step-card .ic { width: 46px; height: 46px; border-radius: 13px; margin: 12px 0 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(150deg, var(--royal), var(--sky)); box-shadow: 0 8px 18px -8px rgba(31,95,224,.55); }
.step-card h3 { font-size: 21px; }
.step-card p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--body); flex: 1; }
.step-card .ph { margin-top: 18px; min-height: 96px; font-size: 11px; }

/* ---- Capability table (Capability / What It Does / Who It Serves) ---- */
.cap-table { margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.68); backdrop-filter: blur(8px); }
.cap-row { display: grid; grid-template-columns: 1fr 1.7fr 1.1fr; gap: 28px; padding: 24px 30px; align-items: start; border-top: 1px solid var(--border-soft); transition: background .16s; }
.cap-row:first-child { border-top: 0; }
.cap-row.cap-head { background: rgba(222,236,255,.55); }
.cap-row:not(.cap-head):hover { background: rgba(246,250,255,.7); }
.cap-th { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
.cap-name { display: flex; gap: 12px; align-items: flex-start; }
.cap-name .ar { flex: none; width: 25px; height: 25px; border-radius: 8px; margin-top: 1px; background: var(--royal); color: #fff; display: flex; align-items: center; justify-content: center; }
.cap-name .t { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--navy); line-height: 1.2; }
.cap-cell { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.cap-serves { font-size: 13px; }
.chip { display: inline-block; background: rgba(233,242,255,.9); border: 1px solid var(--border); color: var(--navy-700); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; margin: 3px 5px 0 0; }

/* ---- Key/value data table ---- */
.kv { display: grid; grid-template-columns: 260px 1fr; gap: 12px; margin-top: 36px; }
.kv .k, .kv .v { background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.kv .k { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy); }
.kv .v { font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* ---- Mini feature cards ---- */
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.mini-card { background: rgba(255,255,255,.74); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.mini-card .ph { min-height: 120px; margin-bottom: 18px; font-size: 11px; }
.mini-card h4 { font-size: 17px; color: var(--navy); }
.mini-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--body); flex: 1; }
.mini-card .metric { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-top: 10px; background: linear-gradient(150deg, var(--royal), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-card .serves { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---- Compliance badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.badge { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); box-shadow: var(--shadow-sm); }
.badge .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(150deg, var(--ice-3), #fff); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--royal); }

/* ---- Evidence / reference cards ---- */
.refs { display: flex; flex-direction: column; gap: 14px; margin-top: 38px; }
.ref { display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: center; padding: 22px 26px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 18px; transition: transform .2s, box-shadow .25s; }
.ref:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ref .logo { width: 92px; height: 60px; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--ice-2) 0 10px, var(--ice) 10px 20px); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--royal); text-align: center; padding: 6px; }
.ref h4 { font-size: 16.5px; color: var(--navy); }
.ref p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--body); }

/* ---- Specialty spheres (responsive grid) ---- */
.spheres { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 30px 52px; margin-top: 48px; }
.sph { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: mylFloat 7s ease-in-out infinite; }
.sph .orb { border-radius: 50%; box-shadow: 0 26px 54px -26px rgba(16,52,98,.5), inset 0 -10px 26px rgba(0,0,0,.10), inset 0 12px 26px rgba(255,255,255,.5); }
.sph .lbl { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }

/* ---- closing statement band ---- */
.statement { max-width: 880px; margin: 0 auto; text-align: center; }
.statement p { font-size: clamp(18px, 2.1vw, 24px); line-height: 1.5; color: var(--navy-700); font-family: var(--font-head); font-weight: 500; }
.statement p + p { margin-top: 20px; font-size: 16px; font-family: var(--font-body); color: var(--body); }

/* ---- subpage CTA card ---- */
.cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; background: linear-gradient(150deg, var(--navy) 0%, var(--royal-700) 100%); color: #fff; }
.cta-card h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.cta-card p { color: rgba(255,255,255,.82); margin: 14px auto 0; max-width: 520px; font-size: 17px; line-height: 1.55; }
.cta-card .hero-cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SECTIONED BACKGROUND SYSTEM  (page rhythm + pizzazz)
   Use .band-dark for the signature navy "rectangle" contrast block,
   .band-soft for a gentle light tint. Drop a .pat-* layer inside for
   texture. All stay within the blue color theme.
   ============================================================ */

/* Full-bleed dark section (its own header text turns light; cards keep their colors) */
.section.ink { background: linear-gradient(165deg, #06152b 0%, var(--navy) 50%, #0d2c5e 100%); color: #fff; }
.section.ink .head h2, .section.ink .head h3, .section.ink .head h4 { color: #fff; }
.section.ink .head .eyebrow { color: var(--sky-soft); }
.section.ink .head .lead, .section.ink .head p { color: rgba(255,255,255,.82); }

/* Inner rounded dark "rectangle" band */
.band-dark { position: relative; overflow: hidden; color: #fff; border-radius: 32px;
  background: linear-gradient(155deg, #07182f 0%, var(--navy) 50%, var(--royal-700) 100%); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: var(--sky-soft); }
.band-dark .lead, .band-dark p { color: rgba(255,255,255,.80); }

/* Light tinted band with a hairline frame */
.band-soft { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(227,238,255,.85), rgba(246,250,255,.5)); }

/* ---- decorative pattern layers (behind content) ---- */
.pat { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pat-dots { background-image: radial-gradient(rgba(255,255,255,.12) 1.4px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 32%, transparent 78%); mask-image: radial-gradient(130% 95% at 50% 0%, #000 32%, transparent 78%); }
.pat-grid { background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 82%); mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 82%); }
.pat-rings { background-image: repeating-radial-gradient(circle at 86% 18%, rgba(159,210,246,.16) 0 1.5px, transparent 1.5px 60px); }
.pat-dots-ink { background-image: radial-gradient(rgba(31,95,224,.12) 1.4px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(120% 90% at 50% 50%, #000 20%, transparent 75%); }
.band-dark > .wrap, .band-dark > div:not(.pat):not(.aurora), .section.ink > .wrap { position: relative; z-index: 2; }

/* Give every dark CTA card a faint dot texture for depth */
.cta-card::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.3px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 80%);
}

/* ============================================================
   DRAGON-EGG COVERAGE CLUTCH
   A nest of jewel-toned, scaled "dragon eggs" — one per service
   line. Per-egg color/size/delay set inline via custom props.
   ============================================================ */
.clutch-wrap { position: relative; margin-top: 56px; }
/* glowing nest pool behind the clutch */
.clutch-wrap::before {
  content: ""; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: min(880px, 90%); height: 190px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 60%, rgba(31,95,224,.20), rgba(91,182,240,.10) 45%, transparent 72%);
  filter: blur(14px);
}
.clutch { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: flex-end; gap: 30px 44px; }
.egg-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.egg {
  position: relative; isolation: isolate;
  width: var(--w, 132px); height: calc(var(--w, 132px) * 1.32);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(125% 95% at 33% 20%, var(--c1) 0%, var(--c2) 56%, var(--c3) 100%);
  box-shadow:
    0 32px 52px -22px rgba(10,35,71,.55),
    0 0 40px -6px var(--glow, rgba(31,95,224,.5)),
    inset 0 -16px 32px rgba(0,0,0,.30),
    inset 0 18px 32px rgba(255,255,255,.32);
  animation: mylFloat 7s ease-in-out infinite; animation-delay: var(--delay, 0s);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
/* dragon-scale texture (offset brick rows of small domes) */
.egg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background-image:
    radial-gradient(circle at 50% 100%, rgba(255,255,255,.28) 0 42%, transparent 47%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,.26) 0 42%, transparent 47%);
  background-size: 26px 18px, 26px 18px;
  background-position: 0 0, 13px 9px;
  mix-blend-mode: soft-light; opacity: 1;
  -webkit-mask-image: radial-gradient(125% 100% at 50% 38%, #000 58%, transparent 100%);
          mask-image: radial-gradient(125% 100% at 50% 38%, #000 58%, transparent 100%);
}
/* top gloss + glowing center seam */
.egg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  background:
    radial-gradient(38% 28% at 33% 15%, rgba(255,255,255,.6), transparent 72%),
    linear-gradient(90deg, transparent 48%, rgba(190,225,255,.35) 50%, transparent 52%);
}
.egg-wrap:hover .egg {
  transform: translateY(-12px) scale(1.045) rotate(-1.2deg);
  box-shadow:
    0 44px 64px -24px rgba(10,35,71,.6),
    0 0 62px 2px var(--glow, rgba(31,95,224,.6)),
    inset 0 -16px 32px rgba(0,0,0,.30),
    inset 0 18px 32px rgba(255,255,255,.36);
}
.egg-lbl { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy); text-align: center; line-height: 1.2; }
.egg-lbl .egg-sub { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
@media (max-width: 720px) {
  .clutch { gap: 24px 26px; }
  .egg { width: calc(var(--w, 132px) * .8); height: calc(var(--w, 132px) * .8 * 1.32); }
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mini-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 10px; }
  .cap-row.cap-head { display: none; }
  .kv { grid-template-columns: 1fr; gap: 8px; }
  .ref { grid-template-columns: 1fr; }
  .ref .logo { width: 100%; }
}

/* ============================================================
   ADVISOR CARDS  (company.html)
   ============================================================ */
.advisors { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.advisor { display: flex; flex-direction: column; background: rgba(255,255,255,.74); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s, border-color .2s; }
.advisor:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-soft); }
.adv-ani { animation: mylFadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
.advisor .adv-top { display: flex; align-items: center; gap: 14px; }
.advisor .av { width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--royal), var(--sky)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  overflow: hidden; border: 2px solid var(--border); }
.advisor .av img { width: 100%; height: 100%; object-fit: cover; }
.advisor .nm { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--navy); }
.advisor .rl { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.advisor .adv-bio { font-size: 13px; line-height: 1.55; color: var(--body); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.advisor .adv-li { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--royal); transition: opacity .2s; }
.advisor .adv-li:hover { opacity: .72; }
.advisor .adv-li svg { flex: none; }
@media (max-width: 960px) { .advisors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .advisors { grid-template-columns: 1fr; } }

/* TEAM CAROUSEL  (company.html) */
.leader .li-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--royal); transition: opacity .2s; }
.leader .li-link:hover { opacity: .72; }

/* ============================================================
   VISUAL POLISH LAYER (v12)
   Flowline nodes, card sheens, gradient heading bars,
   photo ring hovers, button shine. No text content.
   ============================================================ */


/* gradient accent bar under section headings */
.head h2 { position: relative; padding-bottom: 18px; }
.head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  transform-origin: left center; transform: scaleX(0);
  transition: transform .8s cubic-bezier(.22,1,.36,1) .15s;
}
.head.center h2::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.is-in h2::after, [data-reveal].is-in h2::after, .head h2.is-in::after { transform: scaleX(1); }
.head.center.is-in h2::after, .head.center [data-reveal].is-in h2::after { transform: translateX(-50%) scaleX(1); }

/* button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .55s ease; pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* card sheen on hover (advisor + leader + stat cards) */
.adv-card, .advisor, .pain, .cap-card {
  position: relative; overflow: hidden;
}
.ev-stat { position: relative; }
.adv-card::before, .advisor::before, .pain::before, .cap-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 48%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.adv-card:hover::before, .advisor:hover::before, .pain:hover::before, .cap-card:hover::before {
  transform: translateX(110%);
}

/* gradient ring sweep around circular avatars on hover */
.advisor .av { position: relative; transition: box-shadow .3s, transform .3s; }
.advisor:hover .av { box-shadow: 0 0 0 3px rgba(91,182,240,.45), 0 6px 18px rgba(31,95,224,.25); transform: scale(1.05); }

/* advisor photo gentle zoom on hover */
.adv-card img.adv-img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.adv-card:hover img.adv-img { transform: scale(1.04); }

/* stat tiles lift + glow */
.pain, .ev-stat { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s; }
.pain:hover { transform: translateY(-5px); box-shadow: 0 16px 40px -18px rgba(31,95,224,.35); border-color: var(--sky-soft); }
.ev-stat:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.11); }

/* floating motion for hero/cta aurora blobs */
.aurora .blob, .nf-blob {
  animation: blobFloat 9s ease-in-out infinite alternate;
}
.aurora .blob.b2, .nf-blob.b2 { animation-duration: 12s; animation-delay: -4s; }
@keyframes blobFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

/* nav underline slide-in */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  border-radius: 99px; background: linear-gradient(90deg, var(--royal), var(--sky));
  transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* scroll progress bar at very top */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  z-index: 200; pointer-events: none;
  box-shadow: 0 0 12px rgba(91,182,240,.6);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after, .adv-card::before, .advisor::before, .pain::before, .cap-card::before { display: none; }
  .aurora .blob, .nf-blob { animation: none; }
}

/* ============================================================
   BACK-ARROW HEADER (product sub-pages)
   ============================================================ */
.nav-back .nav-inner { display: flex; align-items: center; gap: 18px; }
.back-home {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); border: 1px solid var(--border); background: #fff;
  transition: background .18s, color .18s, transform .18s, box-shadow .2s; flex: none;
}
.back-home:hover { background: var(--royal); color: #fff; transform: translateX(-3px); box-shadow: var(--shadow-sm); }
.nav-back .brand { margin-right: auto; }
