/* ==========================================================================
   DeepLearnAILabs — design system
   Built on Bootstrap 5.3.8. Tokens first, then layout, then components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root,
[data-bs-theme="light"] {
  --ink: #0f1e29;              /* headings + strong text */
  --text: #2b3a46;             /* body copy */
  --muted: #5a6a77;            /* secondary copy */
  --paper: #f4f7f9;            /* page background */
  --surface: #ffffff;          /* raised surfaces */
  --surface-2: #eaf0f4;        /* sunken / alt bands */
  --line: rgba(15, 30, 41, .10);
  --line-strong: rgba(15, 30, 41, .18);

  --brand: #03699a;            /* DeepLearnAILabs teal (heritage colour) */
  --brand-strong: #02557d;
  --brand-soft: rgba(3, 105, 154, .09);
  --signal: #1aa6cf;           /* lighter teal used in gradients */
  --violet: #5b4fc4;           /* depth colour, used sparingly */

  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(15, 30, 41, .08);
  --shadow-sm: 0 1px 2px rgba(15, 30, 41, .06), 0 2px 8px rgba(15, 30, 41, .04);
  --shadow-lg: 0 24px 60px -24px rgba(3, 60, 90, .28);

  --hero-a: #e6f1f7;
  --hero-b: #f4f7f9;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;    /* buttons, inputs */
  --r-md: 16px;    /* cards */
  --r-lg: 28px;    /* large panels */

  --nav-h: 72px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* Bootstrap hooks */
  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 3, 105, 154;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 3, 105, 154;
  --bs-link-hover-color: var(--brand-strong);
  --bs-link-hover-color-rgb: 2, 85, 125;
  --bs-focus-ring-color: rgba(3, 105, 154, .35);
}

[data-bs-theme="dark"] {
  --ink: #eef4f8;
  --text: #c5d2dc;
  --muted: #8fa1ae;
  --paper: #06121b;
  --surface: #0c1d29;
  --surface-2: #091822;
  --line: rgba(220, 235, 245, .09);
  --line-strong: rgba(220, 235, 245, .18);

  --brand: #4cc4e6;
  --brand-strong: #7dd6ef;
  --brand-soft: rgba(76, 196, 230, .10);
  --signal: #4cc4e6;
  --violet: #9b8dff;

  --glass: rgba(8, 22, 32, .70);
  --glass-line: rgba(220, 235, 245, .08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .7);

  --hero-a: #0a2231;
  --hero-b: #06121b;

  --bs-body-bg: var(--paper);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-primary-rgb: 76, 196, 230;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 76, 196, 230;
  --bs-link-hover-color: var(--brand-strong);
  --bs-link-hover-color-rgb: 125, 214, 239;
  --bs-focus-ring-color: rgba(76, 196, 230, .4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.3rem, 4.9vw, 4.1rem); letter-spacing: -0.04em; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.15; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p {
  max-width: 68ch;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Short UI lines and display statements read better ragged-right */
.hero-now, .newsletter-msg, .statement, .product-tagline, .partner-name, .network-caption, .text-start-force { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
a { text-underline-offset: .2em; }
strong, b { color: var(--ink); font-weight: 600; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { --bs-gutter-x: 2rem; max-width: 1240px; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2rem; } }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand);
  margin-bottom: .9rem;
}
.lead-lg { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .8rem;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-font-size: 1rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .95rem; --bs-btn-font-size: 1.05rem; }
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .9rem; }

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-strong);
  --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-active-bg: var(--brand-strong);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  box-shadow: 0 8px 24px -10px rgba(3, 105, 154, .6);
}
[data-bs-theme="dark"] .btn-brand {
  --bs-btn-color: #04202d;
  --bs-btn-hover-color: #04202d;
  --bs-btn-active-color: #04202d;
  box-shadow: 0 8px 28px -10px rgba(76, 196, 230, .55);
}
.btn-brand:hover { transform: translateY(-1px); }

.btn-quiet {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--surface);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--surface);
  --bs-btn-active-color: var(--ink);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--brand); text-decoration: none;
}
.link-arrow .bi { transition: transform .2s ease; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 1030;
  min-height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled,
.site-nav.is-open {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--glass-line);
}
.site-nav .navbar { min-height: var(--nav-h); padding-block: .5rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.brand-word span { font-weight: 450; color: var(--muted); }

.site-nav .nav-link {
  font-weight: 500; font-size: .98rem;
  color: var(--text);
  padding: .55rem .9rem !important;
  border-radius: 8px;
}
.site-nav .nav-link:hover { color: var(--ink); background: var(--brand-soft); }
.site-nav .nav-link.active,
.site-nav .nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .nav-link.active::after { display: none; }
@media (min-width: 992px) {
  .site-nav .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
}

.site-nav .dropdown-menu {
  --bs-dropdown-bg: var(--surface);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-border-radius: var(--r-md);
  --bs-dropdown-link-hover-bg: var(--brand-soft);
  --bs-dropdown-link-active-bg: var(--brand-soft);
  --bs-dropdown-link-active-color: var(--ink);
  padding: .5rem; min-width: 300px;
  box-shadow: var(--shadow-lg);
  margin-top: .5rem !important;
}
.site-nav .dropdown-toggle::after { display: none; }
.site-nav .dropdown-toggle .bi { font-size: .75rem; margin-left: .25rem; transition: transform .2s ease; }
.site-nav .dropdown.show .dropdown-toggle .bi,
.site-nav .dropdown-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.menu-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .75rem .8rem; border-radius: 10px; white-space: normal;
}
.menu-item .menu-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.1rem;
}
.menu-item strong { display: block; font-size: .98rem; }
.menu-item small { color: var(--muted); font-size: .86rem; line-height: 1.4; display: block; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--ink); }
.theme-toggle .bi-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-bs-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

.navbar-toggler {
  border: 1px solid var(--line-strong); border-radius: 10px;
  width: 44px; height: 40px; padding: 0; color: var(--ink);
  display: inline-grid; place-items: center; font-size: 1.4rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding: .75rem 0 1.25rem;
  }
  .site-nav .navbar-nav { gap: .15rem; }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; background: transparent; padding: 0 0 0 .5rem; min-width: 0; }
  .nav-actions { padding-top: .75rem; border-top: 1px solid var(--line); margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(900px 520px at 85% 30%, var(--hero-a), transparent 70%),
    linear-gradient(180deg, var(--hero-b), var(--paper));
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* faint dot grid, the "lab bench" texture */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  opacity: .5;
}
.hero-intro {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .85rem .4rem .45rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .92rem; color: var(--text); margin-bottom: 1.6rem;
}
.hero-intro .pulse {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft);
}
.hero-intro .pulse::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(26, 166, 207, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 166, 207, .55); }
  70% { box-shadow: 0 0 0 9px rgba(26, 166, 207, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 166, 207, 0); }
}
.hero h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 10%, var(--signal) 45%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead-lg { max-width: 54ch; margin-bottom: 2.2rem; }
.hero-now {
  margin-top: 2.5rem; color: var(--muted); font-size: .98rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
}
.hero-now .now-domain {
  font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem;
  display: inline-block; min-width: 14ch;
  transition: opacity .35s ease, transform .35s ease;
}
.hero-now .now-domain.is-swapping { opacity: 0; transform: translateY(6px); }

.network-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 600px; margin-inline: auto;
}
.network-wrap canvas { width: 100%; height: 100%; display: block; cursor: default; }
.network-wrap canvas.is-pointer { cursor: pointer; }
.network-caption {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  font-size: .85rem; color: var(--muted); white-space: nowrap;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: .3rem .8rem; border-radius: 999px;
}

/* Page-load sequence: the one orchestrated motion on the page */
.hero-seq > * { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-seq > *:nth-child(1) { animation-delay: .05s; }
.hero-seq > *:nth-child(2) { animation-delay: .15s; }
.hero-seq > *:nth-child(3) { animation-delay: .27s; }
.hero-seq > *:nth-child(4) { animation-delay: .39s; }
.hero-seq > *:nth-child(5) { animation-delay: .5s; }
.network-wrap { opacity: 0; animation: fadein 1.4s .3s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-seq > *, .network-wrap { animation: none; opacity: 1; transform: none; }
  .hero-intro .pulse::before { animation: none; }
}

/* ---------- Facts strip ---------- */
.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.facts .fact {
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.facts .fact + .fact { border-left: 1px solid var(--line); }
.facts .fact-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.35rem); color: var(--ink); line-height: 1.05; letter-spacing: -0.03em;
}
.facts .fact-label { color: var(--muted); font-size: .95rem; }
@media (max-width: 767.98px) {
  .facts .fact:nth-child(odd) { border-left: 0; }
  .facts .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Practice (services) ---------- */
.practice-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.practice {
  background: var(--surface);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: .8rem;
  transition: background-color .25s ease;
}
.practice:hover { background: color-mix(in srgb, var(--surface) 92%, var(--brand)); }
.practice-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.45rem;
  color: var(--brand); background: var(--brand-soft);
  margin-bottom: .5rem;
}
.practice h3 { margin: 0; }
.practice p { color: var(--muted); margin: 0; }
.practice ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.practice li {
  font-size: .85rem; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .2rem .7rem;
}
@media (max-width: 767.98px) { .practice-grid { grid-template-columns: 1fr; } }

/* ---------- Domain explorer ---------- */
.explorer {
  display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.domain-list {
  display: flex; flex-direction: column; gap: .15rem;
  border-left: 1px solid var(--line);
  padding-left: 0;
}
.domain-list .nav-link {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  text-align: left;
  color: var(--muted);
  padding: .6rem 1rem .6rem 1.15rem;
  border-radius: 0 10px 10px 0;
  font-weight: 500;
  background: transparent; border: 0;
  transition: color .2s ease, background-color .2s ease;
}
.domain-list .nav-link .bi { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.domain-list .nav-link:hover { color: var(--ink); background: var(--brand-soft); }
.domain-list .nav-link.active {
  color: var(--ink); background: var(--surface); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.domain-list .nav-link.active::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px;
  background: var(--brand); border-radius: 2px;
}
.domain-list .nav-link.active .bi { color: var(--brand); }

.domain-panel {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
}
.domain-panel::after { /* faint signal glow in the corner */
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,166,207,.16), transparent 70%);
  pointer-events: none;
}
.domain-panel .domain-glyph {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  margin-bottom: 1.5rem;
}
.domain-panel h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.domain-panel p { font-size: 1.12rem; color: var(--text); }
.domain-panel .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.domain-panel .tags li {
  font-size: .9rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--ink);
}
.tab-pane.fade { transition: opacity .25s linear; }

@media (max-width: 991.98px) {
  .explorer { grid-template-columns: 1fr; }
  .domain-list {
    flex-direction: row; overflow-x: auto; border-left: 0; gap: .4rem;
    padding-bottom: .5rem; scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .domain-list .nav-link {
    white-space: nowrap; border-radius: 999px; border: 1px solid var(--line-strong);
    padding: .45rem .9rem; scroll-snap-align: start;
  }
  .domain-list .nav-link.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .domain-list .nav-link.active .bi { color: inherit; }
  .domain-list .nav-link.active::before { display: none; }
}

/* ---------- Products / projects ---------- */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product + .product { margin-top: 1.5rem; }
.product-body { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; }
.product-body h3 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: .35rem; }
.product-tagline { color: var(--brand); font-weight: 600; margin-bottom: 1rem; }
.product-body > p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.25rem; }
.feature-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .98rem; color: var(--text); }
.feature-list .bi { color: var(--brand); margin-top: .2rem; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .75rem; }

.product-visual {
  position: relative; min-height: 360px;
  background:
    radial-gradient(500px 300px at 70% 20%, rgba(91,79,196,.25), transparent 70%),
    linear-gradient(150deg, #04293c, #062031 60%, #0a1b2b);
  display: grid; place-items: center; padding: 2rem;
  overflow: hidden;
}
.product.reverse { grid-template-columns: 1fr 1.05fr; }
.product.reverse .product-visual { order: -1; }

/* Mock UI — drawn in CSS so no screenshots are needed */
.mock {
  width: 100%; max-width: 440px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 1.1rem;
  color: #dfeaf1; font-size: .85rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.product:hover .mock { transform: translateY(-6px) rotate(-.4deg); }
.mock-bar { display: flex; gap: .35rem; margin-bottom: .9rem; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); display: block; }
.mock-title { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1rem; }
.mock-sub { color: #8fb3c7; font-size: .78rem; }
.ticker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .9rem; }
.ticker div { background: rgba(255,255,255,.05); border-radius: 10px; padding: .55rem .6rem; }
.ticker b { color: #fff; display: block; font-weight: 600; font-size: .8rem; }
.ticker .up { color: #5ee0a6; font-size: .75rem; }
.ticker .down { color: #ff8f8f; font-size: .75rem; }
.spark { margin-top: .9rem; height: 90px; width: 100%; }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .9rem; }
.mock-tiles div {
  border-radius: 12px; padding: .75rem; background: rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: .35rem;
}
.mock-tiles .bi { font-size: 1.15rem; color: #7fd8f0; }
.mock-tiles b { color: #fff; font-weight: 600; }
.mock-progress { height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.mock-progress span { display: block; height: 100%; background: linear-gradient(90deg, #4cc4e6, #9b8dff); border-radius: 4px; }

@media (max-width: 991.98px) {
  .product, .product.reverse { grid-template-columns: 1fr; }
  .product.reverse .product-visual { order: 0; }
  .product-visual { min-height: 300px; }
}
@media (max-width: 575.98px) { .feature-list { grid-template-columns: 1fr; } }

.partner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 1.5rem 1.75rem; margin-top: 1.5rem;
}
.partner-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.partner p { margin: 0; color: var(--muted); }

/* ---------- Industry applications ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.industry {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
}
.industry:not(:nth-child(3n+1)) { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.industry .bi { font-size: 1.5rem; color: var(--brand); display: block; margin-bottom: 1rem; }
.industry h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.industry p { color: var(--muted); font-size: 1rem; margin-bottom: .75rem; }
.industry .uses { font-size: .88rem; color: var(--text); }
.industry .uses span { color: var(--muted); }
@media (max-width: 991.98px) {
  .industries { grid-template-columns: 1fr 1fr; }
  .industry, .industry:not(:nth-child(3n+1)) { padding: 1.75rem 1.25rem 1.75rem 0; border-left: 0; }
  .industry:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .industries { grid-template-columns: 1fr; }
  .industry, .industry:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
}

/* ---------- Programs ---------- */
.program {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.program-art {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: #fff; font-size: 3rem;
  overflow: hidden;
}
.program-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 18px 18px;
}
.program-art .bi { position: relative; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.art-1 { background: linear-gradient(135deg, #034e72, #0b8fb8 60%, #46c6e6); }
.art-2 { background: linear-gradient(135deg, #2a2470, #5b4fc4 60%, #8f84ff); }
.art-3 { background: linear-gradient(135deg, #062a3d, #03699a 55%, #5b4fc4); }
.program-price {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  background: rgba(255,255,255,.92); color: #0f1e29;
  padding: .3rem .75rem; border-radius: 999px;
}
.program-body { padding: 1.5rem 1.5rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.program-body h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: .5rem; }
.program-body p { color: var(--muted); font-size: .98rem; }
.program-meta {
  list-style: none; padding: 1rem 0 0; margin: auto 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--text);
}
.program-meta .bi { color: var(--brand); margin-right: .35rem; }
.program-foot { padding: 0 1.5rem 1.5rem; display: flex; gap: .6rem; }
.program-foot .btn { flex: 1; }
.note {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--r-sm);
  background: var(--brand-soft); color: var(--text); font-size: .98rem;
}
.note .bi { color: var(--brand); font-size: 1.1rem; margin-top: .1rem; }
.note p { margin: 0; }

/* ---------- About teaser / statements ---------- */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink); max-width: 30ch;
}
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pillar {
  padding: 1.75rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.pillar h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.pillar h3 .bi { color: var(--brand); }
.pillar p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 767.98px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(155,141,255,.35), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(76,196,230,.30), transparent 70%),
    linear-gradient(135deg, #03354f, #04263a);
  color: #d7e6ef;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: #b7cfdc; font-size: 1.12rem; }
.cta-band .btn-brand { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: #03354f; --bs-btn-hover-bg: #e6f4fa; --bs-btn-hover-border-color: #e6f4fa; --bs-btn-hover-color: #03354f; box-shadow: none; }
.cta-band .btn-quiet { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-border-color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(800px 400px at 90% 0%, var(--hero-a), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .4;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; }
.crumbs { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

/* About long-form */
.prose p { font-size: 1.1rem; }
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.offer-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.offer-list .practice-icon { margin: 0; width: 48px; height: 48px; font-size: 1.3rem; }
.offer-list h3 { font-size: 1.15rem; margin: .2rem 0 .35rem; }
.offer-list p { margin: 0; color: var(--muted); font-size: 1rem; }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 2rem); }

.founder {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1.25rem 1.5rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.founder .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--brand), var(--violet));
}
.founder strong { display: block; font-size: 1.05rem; }
.founder span { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.contact-lines { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.contact-lines li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: center; }
.contact-lines .practice-icon { margin: 0; width: 44px; height: 44px; font-size: 1.15rem; }
.contact-lines small { display: block; color: var(--muted); font-size: .88rem; }
.contact-lines a, .contact-lines strong { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.contact-lines a:hover { color: var(--brand); }

.form-label { font-weight: 500; color: var(--ink); font-size: .95rem; }
.form-control, .form-select {
  --bs-border-radius: var(--r-sm);
  background-color: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  padding: .75rem .95rem;
}
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-control:focus, .form-select:focus {
  background-color: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--bs-focus-ring-color);
  color: var(--ink);
}
.form-status { display: none; margin-top: 1rem; }
.form-status.show { display: flex; }

.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-btn-color: var(--ink);
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--bs-focus-ring-color);
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
}
.accordion-item { border-left: 0; border-right: 0; }
.accordion-button { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding-block: 1.3rem; }
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-body { color: var(--muted); padding-top: 0; padding-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #041621;
  color: #a9bccb;
  padding-top: clamp(4rem, 8vw, 6rem);
  margin-top: var(--section-y);
  font-size: .98rem;
}
[data-bs-theme="dark"] .site-footer { background: #030d14; border-top: 1px solid var(--line); }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word span { color: #8fa6b6; }
.site-footer h2 {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff;
  letter-spacing: 0; margin-bottom: 1.1rem;
}
.site-footer p { color: #a9bccb; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot-links a { color: #a9bccb; text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-contact .bi { color: #4cc4e6; margin-right: .6rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); color: #d6e3ec; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter .form-control {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff;
}
.newsletter .form-control::placeholder { color: #8fa6b6; }
.newsletter .form-control:focus { background: rgba(255,255,255,.1); color: #fff; border-color: #4cc4e6; }
.newsletter .btn-brand { --bs-btn-bg: #4cc4e6; --bs-btn-border-color: #4cc4e6; --bs-btn-color: #04202d; --bs-btn-hover-bg: #7dd6ef; --bs-btn-hover-border-color: #7dd6ef; --bs-btn-hover-color: #04202d; box-shadow: none; white-space: nowrap; }
.newsletter-msg { font-size: .9rem; margin-top: .6rem; min-height: 1.4em; color: #7dd6ef; }
.partner-chip {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: .25rem;
  padding: .7rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #fff; text-decoration: none; font-weight: 600;
}
.partner-chip:hover { background: rgba(255,255,255,.1); color: #fff; }
.partner-chip small { display: block; color: #8fa6b6; font-weight: 400; font-size: .82rem; }
.foot-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .9rem; color: #8399a8;
}
.foot-bottom a { color: #a9bccb; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease;
  text-decoration: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Utilities ---------- */
.text-balance { text-wrap: balance; }
.rule { height: 1px; background: var(--line); border: 0; opacity: 1; margin: 0; }
@media (min-width: 992px) { .w-lg-auto { width: auto !important; } }
/* Keep wide gutters inside the container on small screens */
@media (max-width: 767.98px) { .row.g-5, .row.g-4 { --bs-gutter-x: 1.5rem; } }
.foot-links li, .contact-lines a { overflow-wrap: anywhere; }
@media (max-width: 991.98px) { .domain-list { flex-wrap: nowrap; } .domain-list .nav-link { flex: none; } }
/* Only flag problems; don't paint valid fields green */
.was-validated .form-control:valid, .was-validated .form-select:valid {
  border-color: var(--line-strong); background-image: none; padding-right: .95rem;
}
.was-validated .form-control:valid:focus, .was-validated .form-select:valid:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--bs-focus-ring-color);
}
.was-validated .form-select:valid { background-image: var(--bs-form-select-bg-img); padding-right: 2.25rem; }
.site-nav .dropdown-toggle.show:not(:focus-visible) { outline: none; }
.site-nav .dropdown-toggle.show { background: var(--brand-soft); }

/* About: core focus row */
.focus-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.focus {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.25;
}
.focus .bi { color: var(--brand); font-size: 1.3rem; }
@media (max-width: 575.98px) { .focus-row { grid-template-columns: 1fr 1fr; } }
/* Justified text needs a reasonable measure: widen narrow boxes, tighten mobile sizes */
.prose .pillars { grid-template-columns: 1fr; }
.newsletter { flex-wrap: wrap; }
.newsletter .form-control { flex: 1 1 170px; min-width: 0; }
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .lead-lg { font-size: 1.05rem; }
  .hero-intro { font-size: .82rem; border-radius: 14px; }
  .section-head p, .prose p, .domain-panel p { font-size: 1rem; }
}

/* ==========================================================================
   MarketMentor (flagship product)
   A dark "terminal" panel in both themes, with a market-green accent that
   only appears inside MarketMentor surfaces.
   ========================================================================== */
:root {
  --mm-green: #19c08a;
  --mm-green-2: #3fe0a8;
  --mm-red: #ff7d7d;
  --mm-ink: #e9f3f7;
  --mm-muted: #9db4c2;
  --mm-line: rgba(220, 240, 250, .09);
}

.mm {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  color: var(--mm-muted);
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(25, 192, 138, .16), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(22, 144, 196, .20), transparent 70%),
    linear-gradient(160deg, #062232 0%, #04151f 55%, #03111a 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 40px 90px -40px rgba(3, 40, 60, .55);
}
.mm::before { /* fine market grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.mm-top {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
}
.mm-brand { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.6rem; }
.mm-mark { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 10px 22px rgba(25,192,138,.35)); }
.mm-mark-sm { width: 36px; height: 36px; flex: none; }
.mm-mark-xs { width: 22px; height: 22px; flex: none; }
.mm-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.mm-by { display: block; font-size: .85rem; color: var(--mm-muted); }
.mm-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: #c9f7e5;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(25,192,138,.12); border: 1px solid rgba(63,224,168,.35);
}
.mm-badge .bi { font-size: .7rem; color: var(--mm-green-2); }
.mm-headline {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.12; letter-spacing: -0.04em;
  color: #fff; margin-bottom: 1.1rem;
}
.mm-lead { color: #bcd0db; font-size: 1.08rem; }
.mm-tagline {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--mm-green-2), #4cc4e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: .25rem 0 1.75rem; text-align: left;
}
.mm-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-mm {
  --bs-btn-color: #03231a; --bs-btn-bg: var(--mm-green); --bs-btn-border-color: var(--mm-green);
  --bs-btn-hover-color: #03231a; --bs-btn-hover-bg: var(--mm-green-2); --bs-btn-hover-border-color: var(--mm-green-2);
  --bs-btn-active-color: #03231a; --bs-btn-active-bg: var(--mm-green-2); --bs-btn-active-border-color: var(--mm-green-2);
  --bs-btn-focus-shadow-rgb: 25, 192, 138;
  box-shadow: 0 12px 30px -12px rgba(25,192,138,.7);
}
.btn-mm:hover { transform: translateY(-1px); }
.btn-mm .bi { transition: transform .2s ease; display: inline-block; }
.btn-mm:hover .bi { transform: translate(2px, -2px); }
.btn-mm-quiet {
  --bs-btn-color: #fff; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(255,255,255,.22);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.06); --bs-btn-hover-border-color: rgba(255,255,255,.55);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255,255,255,.1);
}
.mm :focus-visible { outline-color: var(--mm-green-2); }

/* Visual: terminal + floating cards */
.mm-visual { position: relative; padding: 1.5rem 0 2.25rem; }
.mm-terminal {
  position: relative;
  background: rgba(8, 28, 40, .72);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
  padding: 1rem 1rem .75rem;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease;
}
.mm:hover .mm-terminal { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.75); }
.mm-term-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.mm-term-title { display: flex; align-items: center; gap: .5rem; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.mm-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: #b6f3dc; }
.mm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mm-green-2); box-shadow: 0 0 0 0 rgba(63,224,168,.6); animation: mmPulse 2.2s infinite; }
@keyframes mmPulse { 70% { box-shadow: 0 0 0 7px rgba(63,224,168,0); } 100% { box-shadow: 0 0 0 0 rgba(63,224,168,0); } }
.mm-indices { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.mm-indices span {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: #d8e8ef;
  padding: .3rem .6rem; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
}
.mm-indices span:first-child { background: rgba(25,192,138,.14); border-color: rgba(63,224,168,.3); color: #c9f7e5; }
.mm-chart-wrap { position: relative; }
.mm-chart { width: 100%; height: 240px; display: block; }
.mm-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.mm-candle line { stroke-width: 1.2; }
.mm-candle.up line { stroke: var(--mm-green-2); }
.mm-candle.up rect { fill: var(--mm-green); }
.mm-candle.down line { stroke: var(--mm-red); }
.mm-candle.down rect { fill: var(--mm-red); opacity: .85; }
.mm-ma { fill: none; stroke: #4cc4e6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(76,196,230,.5)); }
.mm-legend { position: absolute; left: .25rem; bottom: -.15rem; display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--mm-muted); }
.mm-legend-line { width: 18px; height: 2px; background: #4cc4e6; border-radius: 2px; }

/* Chart reveal when the block scrolls into view */
.mm.anim .mm-candle { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease; transition-delay: calc(var(--i) * 28ms); }
.mm.anim .mm-ma { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .5s; }
.mm.anim .mm-area { opacity: 0; transition: opacity 1s ease 1.2s; }
.mm.anim.in-view .mm-candle { transform: none; opacity: 1; }
.mm.anim.in-view .mm-ma { stroke-dashoffset: 0; }
.mm.anim.in-view .mm-area { opacity: 1; }

.mm-float {
  position: absolute; z-index: 2;
  background: rgba(10, 34, 48, .86);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.7);
  padding: .8rem .95rem; color: #d5e4ec; font-size: .8rem;
  animation: mmFloat 7s ease-in-out infinite;
}
.mm-float-label { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: #fff; margin-bottom: .55rem; font-size: .82rem; }
.mm-float-label .bi { color: var(--mm-green-2); }
.mm-float-fv { left: -1.5rem; bottom: 0; width: 230px; }
.mm-float-ai { right: -1rem; top: -.25rem; width: 220px; animation-delay: -3.5s; }
.mm-float-ai p { margin: 0; font-size: .78rem; color: var(--mm-muted); line-height: 1.45; text-align: left; hyphens: manual; }
.mm-fv-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: .5rem; margin-top: .35rem; color: var(--mm-muted); font-size: .74rem; }
.mm-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.mm-bar span { display: block; height: 100%; border-radius: 6px; background: rgba(220,240,250,.55); }
.mm-bar-fv span { background: linear-gradient(90deg, var(--mm-green), var(--mm-green-2)); }
@keyframes mmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mm-illustrative { position: absolute; right: 0; bottom: .1rem; font-size: .7rem; color: rgba(157,180,194,.7); }

/* Feature highlights */
.mm-features {
  list-style: none; margin: 0; padding: 0 clamp(1.75rem, 4.5vw, 3.75rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: transparent;
}
.mm-feature {
  position: relative;
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-top: 1px solid var(--mm-line);
  transition: background-color .3s ease;
}
.mm-feature:not(:nth-child(3n+1)) { padding-left: 1.4rem; border-left: 1px solid var(--mm-line); }
.mm-feature::after { /* accent line that grows on hover */
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--mm-green-2), #4cc4e6);
  transition: width .45s cubic-bezier(.2,.7,.2,1);
}
.mm-feature:hover::after { width: 100%; }
.mm-feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; color: var(--mm-green-2);
  background: rgba(25,192,138,.1); border: 1px solid rgba(63,224,168,.2);
  margin-bottom: .9rem;
  transition: transform .3s ease, background-color .3s ease;
}
.mm-feature:hover .mm-feature-icon { transform: translateY(-2px); background: rgba(25,192,138,.18); }
.mm-feature h4 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; letter-spacing: -0.02em; }
.mm-feature p { margin: 0; font-size: .94rem; color: var(--mm-muted); line-height: 1.55; }

.mm-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1.1rem clamp(1.75rem, 4.5vw, 3.75rem);
  border-top: 1px solid var(--mm-line);
  background: rgba(0,0,0,.18);
  font-size: .9rem;
}
.mm-strip > span { color: #fff; font-weight: 600; }
.mm-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; }
.mm-strip li { display: inline-flex; align-items: center; gap: .4rem; color: #c7d8e1; }
.mm-strip li .bi { color: var(--mm-green-2); }
.mm-strip-link { margin-left: auto; color: var(--mm-green-2); font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.mm-strip-link:hover { color: #fff; }
.mm-strip-link .bi { transition: transform .2s ease; }
.mm-strip-link:hover .bi { transform: translateX(3px); }

@media (max-width: 991.98px) {
  .mm-top { grid-template-columns: 1fr; }
  .mm-features { grid-template-columns: 1fr 1fr; }
  .mm-feature, .mm-feature:not(:nth-child(3n+1)) { padding: 1.5rem 1.25rem 1.5rem 0; border-left: 0; }
  .mm-feature:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--mm-line); }
  .mm-float-fv { left: 0; }
  .mm-float-ai { right: 0; }
}
@media (max-width: 575.98px) {
  .mm-features { grid-template-columns: 1fr; }
  .mm-feature, .mm-feature:nth-child(even) { padding: 1.35rem 0; border-left: 0; }
  .mm-badge { margin-left: 0; }
  .mm-chart { height: 190px; }
  .mm-float-ai { display: none; }
  .mm-float-fv { position: relative; left: auto; bottom: auto; width: auto; margin-top: -1rem; margin-inline: .75rem; }
  .mm-strip-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-float, .mm-live-dot { animation: none; }
  .mm.anim .mm-candle, .mm.anim .mm-ma, .mm.anim .mm-area { transition: none; transform: none; opacity: 1; stroke-dashoffset: 0; }
}

/* More products (scalable grid) */
.more-products { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.more-title { font-size: 1.25rem; margin-bottom: 1.25rem; }
.pcard {
  height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.75rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.pcard-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.pcard-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); flex: none; }
.pcard-partner .pcard-icon { background: var(--brand-soft); color: var(--brand); }
.pcard h4 { margin: 0; font-size: 1.25rem; }
.pcard-tag { color: var(--brand); font-weight: 600; font-size: .9rem; }
.pcard p { color: var(--muted); font-size: 1rem; }
.pcard-chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.pcard-chips li { font-size: .84rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .2rem .7rem; color: var(--text); }
.pcard-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }

/* AI Development → MarketMentor callout */
.practice-feature {
  margin-top: 1rem;
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1rem; border-radius: 14px;
  background: linear-gradient(135deg, #062232, #04151f);
  color: #fff; text-decoration: none;
  border: 1px solid rgba(63,224,168,.22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.practice-feature:hover { color: #fff; transform: translateY(-2px); border-color: rgba(63,224,168,.5); box-shadow: 0 14px 30px -16px rgba(25,192,138,.6); }
.practice-feature small { display: block; color: #9db4c2; font-size: .78rem; }
.practice-feature strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.practice-feature .bi { margin-left: auto; color: var(--mm-green-2); transition: transform .2s ease; }
.practice-feature:hover .bi { transform: translateX(3px); }

/* Hero flagship link */
.hero-flagship {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-top: 1.75rem; padding: .55rem .9rem .55rem .6rem;
  border-radius: 12px; text-decoration: none; font-size: .92rem; color: var(--text);
  background: var(--glass); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s ease, transform .2s ease;
}
.hero-flagship strong { color: var(--ink); }
.hero-flagship .bi { color: var(--brand); transition: transform .2s ease; }
.hero-flagship:hover { border-color: var(--mm-green); color: var(--text); }
.hero-flagship:hover .bi { transform: translateX(3px); }
.hero-flagship + .hero-now { margin-top: 1.25rem; }

/* Nav: flagship entry */
.menu-icon-mm { background: linear-gradient(135deg, #19c08a, #1690c4) !important; color: #fff !important; }
.menu-badge {
  font-style: normal; font-size: .68rem; font-weight: 600; vertical-align: 2px; margin-left: .35rem;
  padding: .12rem .45rem; border-radius: 999px; background: rgba(25,192,138,.14); color: #0d8a62;
}
[data-bs-theme="dark"] .menu-badge { color: #6fe9bf; }
.menu-all { display: flex; align-items: center; justify-content: space-between; border-radius: 10px; padding: .6rem .8rem; font-weight: 600; font-size: .92rem; color: var(--brand); }
.menu-all:hover { color: var(--brand); }
.site-nav .dropdown-divider { border-color: var(--line); margin: .35rem .25rem; }
/* MarketMentor visual: keep floating cards clear of the index chips and legend */
.mm-visual { padding-top: 4.25rem; }
.mm-float-ai { top: 0; right: -1rem; }
@media (max-width: 575.98px) {
  .mm-visual { padding-top: 1rem; }
  .mm-float-fv { margin-top: .9rem; margin-inline: 0; }
}
.mm-visual { padding-top: 1.5rem; }
.mm-float-ai { top: auto; bottom: 1.75rem; right: -1.25rem; }
@media (max-width: 991.98px) { .mm-float-ai { right: 0; } }
/* AI Learning → Virtual Labs callout (brand teal/violet instead of market green) */
.practice-feature-vl { background: linear-gradient(135deg, #0a2b3d, #14204a); border-color: rgba(155,141,255,.28); }
.practice-feature-vl:hover { border-color: rgba(155,141,255,.6); box-shadow: 0 14px 30px -16px rgba(91,79,196,.6); }
.practice-feature-vl .bi-arrow-right { color: #9bd8ef; }
.vl-mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: 1.05rem; background: linear-gradient(135deg, #03699a, #5b4fc4);
}

/* ==========================================================================
   AI Research and AI Training pages
   Research = brand teal (innovation, evidence). Training = violet accent
   (skills, growth). Both stay inside the DeepLearnAILabs palette.
   ========================================================================== */
.rt-hero h1 { max-width: 15ch; }
.rt-hero .kicker { display: block; }
.rt-figure { position: relative; margin: 0; padding: 1.5rem 0 2.5rem; }

/* Research hero: experiment card */
.exp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.25rem 1rem;
}
.exp-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.exp-head .bi { color: var(--brand); margin-right: .3rem; }
.exp-svg { width: 100%; height: auto; display: block; }
.exp-net line { stroke: var(--line-strong); stroke-width: 1; }
.exp-nodes circle { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.exp-nodes circle:nth-last-child(-n+2) { fill: var(--violet); stroke: var(--violet); }
.exp-axis line { stroke: var(--line-strong); stroke-width: 1.2; }
.exp-gridl line { stroke: var(--line); stroke-dasharray: 3 4; }
.exp-train, .exp-val { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.4,0,.2,1) .4s forwards; }
.exp-train { stroke: var(--brand); }
.exp-val { stroke: var(--violet); stroke-dasharray: 1; animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.exp-lbl { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.exp-legend { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.exp-legend span { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-train { background: var(--brand); }
.lg-val { background: var(--violet); margin-left: .75rem; }
.exp-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 500; color: var(--ink);
  padding: .55rem .85rem; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  animation: mmFloat 7s ease-in-out infinite;
}
.exp-chip .bi { color: var(--brand); }
.exp-chip-a { left: -1rem; bottom: .5rem; }
.exp-chip-b { right: -.75rem; top: 0; animation-delay: -3.5s; }

/* Research areas */
.area-card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.area-ill {
  height: 128px; display: grid; place-items: center; padding: 1rem 1.5rem;
  background:
    radial-gradient(260px 120px at 80% 0%, rgba(91,79,196,.12), transparent 70%),
    linear-gradient(180deg, var(--brand-soft), transparent);
  border-bottom: 1px solid var(--line);
}
.area-ill svg { width: 100%; max-width: 220px; height: 100%; overflow: visible; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.area-card:hover .area-ill svg { transform: scale(1.04); }
.area-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.area-title { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.area-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); flex: none; }
.area-title h3 { font-size: 1.15rem; margin: 0; }
.area-body p { color: var(--muted); font-size: .98rem; }
.area-tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.area-tags li { font-size: .82rem; padding: .2rem .65rem; border-radius: 999px; background: var(--brand-soft); color: var(--ink); }

/* Illustration primitives */
.il-m { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.il-a circle, .il-a { fill: var(--brand); }
.il-b circle, .il-b { fill: var(--violet); }
.il-node circle { fill: var(--surface); stroke: var(--brand); stroke-width: 1.6; }
.il-dots circle { fill: var(--brand); }
.il-arrow { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.il-fill-a { fill: var(--brand); }
.il-fill-b { fill: var(--violet); }
.il-fill-soft { fill: var(--brand); opacity: .22; }
.il-w { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
rect.il-w { fill: #fff; stroke: none; }
.il-w-dot { fill: #fff; }
.il-spark { fill: var(--violet); }
.il-frame { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.il-box { fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-dasharray: 5 3; }
.il-tag { fill: var(--violet); }
.il-arc { fill: none; stroke: var(--brand); stroke-width: 1.8; opacity: .7; }
.il-arc-b { stroke: var(--violet); }
.il-arc-c { opacity: .35; }
.il-pill { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; }
.il-pill-a { fill: var(--brand); stroke: none; }
.il-pill-b { fill: var(--violet); stroke: none; }
.il-lbl rect { fill: var(--line-strong); }

/* Research services */
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.svc {
  display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start;
  padding: 1.4rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.svc:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--signal)); }
.svc h3 { font-size: 1.08rem; margin: .1rem 0 .4rem; }
.svc p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.svc-link { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
.svc-link .bi { transition: transform .2s ease; }
.svc-link:hover .bi { transform: translateX(3px); }
.svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .svc-list { grid-template-columns: 1fr; } }

/* Process steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--violet)); opacity: .35; }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--brand);
  background: var(--paper); border: 2px solid var(--brand); margin-bottom: 1rem;
  transition: background-color .25s ease, color .25s ease;
}
.step:hover .step-num { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .step:hover .step-num { color: #04202d; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 991.98px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand), var(--violet)); }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; }
  .step-num { grid-row: span 2; margin: 0; }
}

/* Applied sectors */
.sectors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.sector {
  padding: 1.5rem 1.25rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sector .bi { font-size: 1.5rem; color: var(--brand); display: block; margin-bottom: .9rem; }
.sector h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.sector p { color: var(--muted); font-size: .93rem; margin: 0; text-align: left; hyphens: manual; }
@media (max-width: 1199.98px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459.98px) { .sectors { grid-template-columns: 1fr; } }

/* Research showcase */
.showcase {
  height: 100%; position: relative; overflow: hidden; isolation: isolate;
  padding: 2rem; border-radius: var(--r-lg); color: #b9ccd8;
  background: linear-gradient(150deg, #062232, #04151f);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.showcase:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(3,40,60,.6); }
.showcase::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(25,192,138,.25), transparent 70%); }
.showcase-vl { background: linear-gradient(150deg, #0a2b3d, #14204a); }
.showcase-vl::after { background: radial-gradient(circle, rgba(155,141,255,.3), transparent 70%); }
.showcase-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.showcase-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, #19c08a, #1690c4); }
.showcase-vl .showcase-icon { background: linear-gradient(135deg, #03699a, #5b4fc4); }
.showcase-sector { font-size: .82rem; color: #9db4c2; }
.showcase h3 { color: #fff; font-size: 1.5rem; }
.showcase p { color: #b9ccd8; }
.showcase-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .45rem; }
.showcase-list li { display: flex; gap: .5rem; font-size: .95rem; }
.showcase-list .bi { color: #3fe0a8; }
.showcase-vl .showcase-list .bi { color: #b3a9ff; }
.showcase .link-arrow { color: #7dd6ef; }
.showcase .link-arrow:hover { color: #fff; }

/* Cross-link between Research and Training */
.crosslink {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; border-radius: var(--r-md);
  border: 1px dashed var(--line-strong); text-decoration: none; color: var(--text);
  transition: border-color .25s ease, background-color .25s ease;
}
.crosslink:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.crosslink-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; flex: none; }
.crosslink small { display: block; color: var(--muted); }
.crosslink strong { font-family: var(--font-display); font-size: 1.05rem; }
.crosslink > .bi { margin-left: auto; color: var(--brand); transition: transform .2s ease; }
.crosslink:hover > .bi { transform: translateX(4px); }

/* Training hero: notebook card */
.code-card {
  background: #0a1b27; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.code-head { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-head .mock-bar { margin: 0; }
.code-file { font-size: .8rem; color: #8fb3c7; }
.code {
  margin: 0; padding: 1.1rem 1.25rem 1.3rem; color: #d6e6ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.7;
  white-space: pre; overflow-x: auto;
}
.c-k { color: #b3a9ff; }
.c-s { color: #7fe0b5; }
.c-n { color: #ffcf8a; }
.c-cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; margin-left: 2px; background: #4cc4e6; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.path { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; counter-reset: p; }
.path li {
  counter-increment: p; font-size: .84rem; font-weight: 500; color: var(--ink);
  padding: .35rem .75rem .35rem .4rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; gap: .45rem;
}
.path li::before {
  content: counter(p); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet));
}

/* Training filter + cards */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .93rem var(--font-body); color: var(--text);
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-count { margin-left: auto; font-size: .9rem; color: var(--muted); }
@media (max-width: 767.98px) { .filter-count { margin-left: 0; width: 100%; } }
.tcard-col { transition: opacity .3s ease, transform .3s ease; }
.tcard-col.is-hidden { display: none; }
.tcard-col.is-entering { opacity: 0; transform: translateY(8px); }

.tcard {
  height: 100%; display: flex; flex-direction: column; position: relative;
  padding: 1.6rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tcard::before {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--violet), var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.tcard:hover::before { transform: scaleX(1); }
.tcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.tcard-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--violet), var(--brand)); flex: none; }
.aud-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.aud { font-size: .74rem; font-weight: 600; padding: .18rem .55rem; border-radius: 6px; }
.aud-students { background: rgba(3,105,154,.1); color: #03699a; }
.aud-faculty { background: rgba(91,79,196,.12); color: #4a3fb0; }
.aud-professionals { background: rgba(25,192,138,.13); color: #0b7c58; }
.aud-organisations { background: rgba(217,145,32,.14); color: #8a5a0c; }
[data-bs-theme="dark"] .aud-students { color: #7dd6ef; background: rgba(76,196,230,.12); }
[data-bs-theme="dark"] .aud-faculty { color: #bdb4ff; background: rgba(155,141,255,.14); }
[data-bs-theme="dark"] .aud-professionals { color: #6fe9bf; background: rgba(63,224,168,.12); }
[data-bs-theme="dark"] .aud-organisations { color: #ffcf8a; background: rgba(255,207,138,.12); }
.tcard h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.tcard > p { color: var(--muted); font-size: .97rem; }
.tcard-hl { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .35rem; }
.tcard-hl li { display: flex; gap: .5rem; font-size: .93rem; color: var(--text); }
.tcard-hl .bi { color: var(--violet); margin-top: .15rem; }
.tcard-outcome {
  margin-top: auto; margin-bottom: 1.1rem;
  padding: .8rem .95rem; border-radius: 12px; font-size: .92rem; color: var(--ink);
  background: color-mix(in srgb, var(--violet) 8%, transparent);
  border-left: 3px solid var(--violet);
}
.tcard-outcome span { display: block; font-size: .78rem; font-weight: 600; color: var(--violet); margin-bottom: .15rem; }
.tcard-cta { font-weight: 600; font-size: .95rem; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.tcard-cta .bi { transition: transform .2s ease; }
.tcard-cta:hover .bi { transform: translateX(3px); }
.tcard-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.tcard-cta:focus-visible { outline: none; }
.tcard:has(.tcard-cta:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.format { padding: 1.5rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.format .bi { font-size: 1.4rem; color: var(--violet); display: block; margin-bottom: .8rem; }
.format h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.format p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 991.98px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .formats { grid-template-columns: 1fr; } }

/* Home: Research vs Training split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.split-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.split-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; z-index: -1; }
.split-research::after { background: radial-gradient(circle, rgba(26,166,207,.16), transparent 70%); }
.split-training::after { background: radial-gradient(circle, rgba(91,79,196,.16), transparent 70%); }
.split-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.split-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; }
.split-research .split-icon { background: linear-gradient(135deg, var(--brand), var(--signal)); }
.split-training .split-icon { background: linear-gradient(135deg, var(--violet), var(--brand)); }
.split-label { font-size: .88rem; color: var(--muted); }
.split-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.split-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.split-list li { display: flex; gap: .6rem; align-items: baseline; }
.split-list li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; flex: none; transform: translateY(-2px); background: var(--brand); }
.split-training .split-list li::before { background: var(--violet); }
.split-upcoming { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; padding: .75rem .9rem; border-radius: 12px; background: var(--brand-soft); }
.split-upcoming .bi { color: var(--violet); margin-right: .35rem; }
.split-upcoming a { font-weight: 600; white-space: nowrap; }
.split-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; } }

/* Core focus page callouts (light, to differ from product callouts) */
.practice-feature-page { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.practice-feature-page:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.practice-feature-page small { color: var(--muted); }
.practice-feature-page strong { color: var(--ink); }
.practice-feature-page .bi-arrow-right { color: var(--brand); }
.page-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .exp-train, .exp-val { animation: none; stroke-dashoffset: 0; }
  .exp-chip, .c-cursor { animation: none; }
  .tcard-col { transition: none; }
}
@media (max-width: 575.98px) {
  .exp-chip-a { left: 0; } .exp-chip-b { right: 0; top: -.5rem; }
  .code { font-size: .74rem; }
}

/* ==========================================================================
   AI Development and AI Learning pages, Core Focus menu
   ========================================================================== */
.site-nav .nav-link.is-active { color: var(--ink); font-weight: 600; }
@media (min-width: 992px) { .site-nav .nav-link.is-active { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; } }
.dropdown-item[aria-current="page"] { background: var(--brand-soft); }
.dropdown-menu-focus { min-width: 330px; }

/* Homepage core-focus card links */
.practice-more { margin-top: 1rem; font-size: .95rem; }
.practice-more + .practice-feature { margin-top: .9rem; }

/* About: focus tiles are now links */
a.focus { text-decoration: none; position: relative; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.focus:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.focus-go { position: absolute; right: .9rem; top: 1rem; font-size: .9rem; color: var(--muted) !important; transition: transform .2s ease, color .2s ease; }
a.focus:hover .focus-go { transform: translateX(3px); color: var(--brand) !important; }

/* Development: service cards */
.dcard {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 1.75rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.dcard::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,166,207,.14), transparent 70%); transition: transform .5s ease;
}
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.dcard:hover::before { transform: scale(1.4); }
.dcard-icon {
  position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #03699a, #1aa6cf); margin-bottom: 1.2rem;
  box-shadow: 0 10px 24px -12px rgba(3,105,154,.7);
}
.dcard h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.dcard p { color: var(--muted); font-size: .97rem; }
.dcard-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .35rem; }
.dcard-list li { display: flex; gap: .5rem; font-size: .93rem; }
.dcard-list .bi { color: var(--brand); margin-top: .15rem; }
.dcard .tcard-cta { margin-top: auto; }
.dcard:has(.tcard-cta:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Development hero: pipeline */
.pipe-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.25rem 1.5rem; position: relative; overflow: hidden;
}
.pipe-head { display: flex; align-items: center; gap: 1rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.pipe-head .mock-bar i { background: var(--line-strong); }
.pipe-head .mock-bar { margin: 0; }
.pipe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; position: relative; z-index: 1; }
.pipe li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: 1rem .5rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
}
.pipe b { font-family: var(--font-display); color: var(--ink); font-size: .98rem; }
.pipe small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.pipe-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #03699a, #1aa6cf); }
.pipe li:nth-child(2) .pipe-icon { background: linear-gradient(135deg, #1aa6cf, #5b4fc4); }
.pipe li:nth-child(3) .pipe-icon { background: linear-gradient(135deg, #5b4fc4, #7b6ff0); }
.pipe-icon-app { background: linear-gradient(135deg, #19c08a, #1690c4) !important; }
.pipe-flow { position: absolute; left: 12%; right: 12%; top: calc(50% + 6px); height: 2px; background: linear-gradient(90deg, var(--brand), var(--violet), var(--mm-green)); opacity: .35; }
.pipe-flow span {
  position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 12px var(--brand);
  animation: flow 3.6s linear infinite;
}
.pipe-flow span:nth-child(2) { animation-delay: -1.2s; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.pipe-flow span:nth-child(3) { animation-delay: -2.4s; background: var(--mm-green); box-shadow: 0 0 12px var(--mm-green); }
@keyframes flow { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: 100%; opacity: 0; } }
@media (max-width: 575.98px) { .pipe { grid-template-columns: 1fr 1fr; } .pipe-flow { display: none; } }

.showcase .mm-mark { width: 44px; height: 44px; }
.showcase-lg h3 { font-size: 1.8rem; }
.stack { margin-top: 3rem; padding: 1.5rem 1.75rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.stack h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.stack ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.stack li { font-size: .9rem; padding: .3rem .8rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }

/* Learning hero: progress card */
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.5rem; }
.learn-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.learn-head b { display: block; font-family: var(--font-display); color: var(--ink); }
.learn-head small { color: var(--muted); font-size: .82rem; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.ring { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text); text-align: center; }
.ring svg { width: 100%; max-width: 92px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring 1.6s cubic-bezier(.2,.7,.2,1) .4s forwards; }
@keyframes ring { to { stroke-dashoffset: calc(1 - var(--p)); } }
.learn-next {
  margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 14px;
  background: linear-gradient(135deg, #0a2b3d, #14204a); color: #fff;
}
.learn-next .bi { font-size: 1.6rem; color: #9bd8ef; }
.learn-next small { display: block; color: #9db4c2; font-size: .78rem; }
.learn-next b { font-family: var(--font-display); }

/* Learning paths */
.lpath {
  height: 100%; display: flex; flex-direction: column; padding: 1.6rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lpath:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lpath-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, transparent); margin-bottom: 1rem; }
.lpath h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.lpath p { color: var(--muted); font-size: .95rem; text-align: left; hyphens: manual; }
.lpath-links { list-style: none; padding: 0; margin: auto 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.lpath-links a { display: inline-block; font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; text-decoration: none; color: var(--brand); background: var(--brand-soft); transition: background-color .2s ease, color .2s ease; }
.lpath-links a:hover { background: var(--brand); color: #fff; }
.lpath-foot { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }

/* Learning resources + inline newsletter */
.learn-resources {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg);
  background: radial-gradient(500px 220px at 100% 0%, rgba(91,79,196,.12), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.learn-resources h3 { font-size: 1.4rem; }
.learn-resources p { color: var(--muted); }
.newsletter-light .form-control { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.newsletter-light .form-control::placeholder { color: var(--muted); }
.newsletter-light .form-control:focus { background: var(--surface); color: var(--ink); border-color: var(--brand); }
.learn-res-form .newsletter-msg { color: var(--brand); }
@media (max-width: 991.98px) { .learn-resources { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .pipe-flow span { animation: none; display: none; }
  .ring-fg { animation: none; stroke-dashoffset: calc(1 - var(--p)); }
}
/* Tablet too: keep wide row gutters within the container padding */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 2rem; } }
/* Hero network: a little wider, caption sits below the drawing */
.network-wrap { max-width: 640px; }
.network-caption { bottom: -1.75rem; }
/* Wordmark-only logo */
.brand-word { font-size: 1.4rem; }
@media (max-width: 575.98px) { .brand-word { font-size: 1.25rem; } }

/* ==========================================================================
   Hero: fit the first screen on short laptop displays (e.g. 14" at 125–150%)
   Sizes scale with viewport height as well as width; large screens unchanged.
   ========================================================================== */
@media (min-width: 992px) {
  .hero {
    padding-top: calc(var(--nav-h) + clamp(1.25rem, 5vh, 5.5rem));
    padding-bottom: clamp(1.75rem, 6vh, 5.5rem);
  }
  .hero .row { --bs-gutter-y: 0; }
  .hero-intro { margin-bottom: clamp(.75rem, 2.6vh, 1.6rem); }
  .hero h1 {
    font-size: clamp(2.3rem, min(4.9vw, 8.4vh), 4.1rem);
    margin-bottom: clamp(.75rem, 2.4vh, 1.5rem);
  }
  .hero .lead-lg {
    font-size: clamp(1rem, 2.5vh, 1.3rem);
    line-height: 1.55;
    margin-bottom: clamp(1rem, 3.4vh, 2.2rem);
  }
  .hero .btn-lg { --bs-btn-padding-y: clamp(.6rem, 1.6vh, .95rem); }
  .hero-flagship { margin-top: clamp(.9rem, 2.6vh, 1.75rem); }
  .hero-flagship + .hero-now { margin-top: clamp(.6rem, 1.8vh, 1.25rem); }
  /* The network never grows taller than the space under the navbar */
  .network-wrap {
    width: min(100%, 640px, calc(100vh - var(--nav-h) - 3.5rem));
    max-width: none;
  }
}
/* Inner page headers: same short-screen fit as the home hero */
@media (min-width: 992px) {
  .page-hero { padding-top: calc(var(--nav-h) + clamp(1.25rem, 5vh, 5rem)); padding-bottom: clamp(1.75rem, 6vh, 4.5rem); }
  .page-hero .crumbs { margin-bottom: clamp(.6rem, 2vh, 1.25rem); }
  .page-hero h1 { font-size: clamp(2.2rem, min(4.6vw, 8vh), 4rem); }
  .page-hero .lead-lg { font-size: clamp(1rem, 2.5vh, 1.3rem); line-height: 1.55; }
  .page-hero .lead-lg.mt-3 { margin-top: clamp(.5rem, 1.6vh, 1rem) !important; }
  .page-hero .mt-4 { margin-top: clamp(1rem, 3vh, 1.5rem) !important; }
  .rt-figure { padding-block: clamp(.75rem, 2.5vh, 1.5rem) clamp(1.5rem, 3.5vh, 2.5rem); }
}
/* About: leadership cards */
.leaders-title { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: .75rem; }
.avatar-ceo { background: linear-gradient(135deg, #0f9e72, #03699a) !important; }
.founder span br + * { display: block; }

/* Forms: spam honeypot (hidden from people and screen readers), error and sending states */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.note-error { background: rgba(220, 53, 69, .08); }
.note-error .bi { color: #c4313f; }
[data-bs-theme="dark"] .note-error { background: rgba(255, 125, 125, .1); }
[data-bs-theme="dark"] .note-error .bi { color: #ff8f8f; }
.btn.is-sending { pointer-events: none; opacity: .75; }
.btn .spinner-border { width: 1em; height: 1em; border-width: .15em; margin-right: .5rem; vertical-align: -2px; }
.newsletter-msg.is-error { color: #ff9a9a; }
.learn-res-form .newsletter-msg.is-error { color: #c4313f; }
[data-bs-theme="dark"] .learn-res-form .newsletter-msg.is-error { color: #ff9a9a; }
/* Short status notes read better left-aligned than justified */
.note p, .newsletter-msg { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
/* Hero "Now exploring": never blank; name is a link to the domain explorer */
.hero-now .now-domain { text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--line-strong); transition: color .2s ease, border-color .2s ease; }
.hero-now .now-domain:hover { color: var(--brand); border-bottom-color: var(--brand); }
.hero-now .now-domain.is-entering { animation: nowIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes nowIn { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-now .now-domain.is-entering { animation: none; } }
.hero-now .now-domain { display: inline; min-width: 0; }
/* No underline on the "Now exploring" domain name */
.hero-now .now-domain { border-bottom: 0; }

/* Domain explorer: panel matches the list height; "Across our core focus" fills the space */
@media (min-width: 992px) {
  .explorer { align-items: stretch; }
  .explorer > .tab-content, .explorer > .tab-content > .tab-pane.active { height: 100%; }
  .domain-panel { display: flex; flex-direction: column; height: 100%; }
}
.domain-focus { margin-top: auto; padding-top: 2rem; }
.domain-focus h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 0 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.df-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.df-item {
  position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: .8rem; row-gap: .15rem; align-items: start;
  padding: .95rem 2.2rem .95rem 1rem; border-radius: 14px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.df-item::after { content: "\F138"; font-family: "bootstrap-icons"; position: absolute; right: .9rem; top: 1rem; color: var(--muted); font-size: .9rem; transition: transform .2s ease, color .2s ease; }
.df-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.df-item:hover::after { color: var(--brand); transform: translateX(3px); }
.df-item .bi { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; color: var(--brand); background: var(--brand-soft); }
.df-item strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.df-item span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
@media (max-width: 575.98px) { .df-grid { grid-template-columns: 1fr; } }
