﻿/*
 * MULTILANCER M2026 - DESIGN SYSTEM
 * "The Trusted Workshop"
 * Port Harcourt, Nigeria
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Roboto:wght@400;500;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
  --green:       #2f8d47;
  --green-dk:    #257a3a;
  --lime:        #61cd7c;
  --navy:        #232a74;
  --plum:        #401f4e;
  --ink:         #242424;
  --muted:       #636363;
  --surface:     #eceff1;
  --mint:        #e4f0e7;
  --white:       #ffffff;

  --font-display: 'JetBrains Mono', 'Courier New', monospace;
  --font-heading: 'Roboto', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --r-xs:       3px;
  --r-sm:       4px;
  --r-md:       6px;
  --r-lg:       12px;
  --r-xl:       16px;
  --r-2xl:      24px;
  --r-full:     9999px;
  --r-nb:       2px 12px 12px 2px;

  --sh-sm:  0 1px 3px rgba(26,43,61,.05), 0 4px 12px rgba(26,43,61,.06);
  --sh-md:  0 1px 3px rgba(26,43,61,.06), 0 10px 28px rgba(26,43,61,.08);
  --sh-lg:  0 4px 8px rgba(26,43,61,.07), 0 22px 48px rgba(26,43,61,.10);
  --sh-xl:  0 8px 16px rgba(26,43,61,.08), 0 32px 64px rgba(26,43,61,.14);

  --t-theme:  background-color .5s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
  --t-fast:   .18s ease-out;
  --t-normal: .28s ease-out;
  --t-spring: .65s cubic-bezier(.16,1,.3,1);
}

/* ==============================
   THEME: WARM-LIGHT (default)
   ============================== */
html[data-theme='warm-light'] {
  color-scheme: light;
  --bg:         var(--surface);
  --bg-s:       var(--white);
  --bg-s2:      #f5f7f8;
  --bg-warm:    var(--mint);
  --bg-dk:      var(--ink);
  --bg-dk2:     #1a1a1a;
  --text:       var(--ink);
  --text-2:     var(--muted);
  --text-f:     #7a7a7a;
  --text-dk:    #ffffff;
  --text-2-dk:  #d0d5db;
  --bd:         rgba(36,36,36,.10);
  --bd2:        rgba(36,36,36,.16);
  --bd-dk:      rgba(255,255,255,.10);
  --accent:     var(--green);
  --accent-dk:  var(--green-dk);
  --accent-hl:  var(--lime);
  --hdr-bg:     rgba(255,255,255,.94);
  --glow:       rgba(47,141,71,.18);
  --sh:         var(--sh-md);
}

/* ==============================
   THEME: WARM-DARK
   ============================== */
html[data-theme='warm-dark'] {
  color-scheme: dark;
  --bg:         #14110e;
  --bg-s:       #211c17;
  --bg-s2:      #2a241c;
  --bg-warm:    #251f18;
  --bg-dk:      #1c1712;
  --bg-dk2:     #14110e;
  --text:       #f2e8dc;
  --text-2:     #b8a99a;
  --text-f:     #7a6f63;
  --text-dk:    #f2e8dc;
  --text-2-dk:  #b8a99a;
  --bd:         rgba(242,232,220,.10);
  --bd2:        rgba(242,232,220,.18);
  --bd-dk:      rgba(242,232,220,.08);
  --accent:     var(--green);
  --accent-dk:  var(--lime);
  --accent-hl:  var(--lime);
  --hdr-bg:     rgba(20,17,14,.94);
  --glow:       rgba(140,198,63,.12);
  --sh:         0 4px 24px rgba(0,0,0,.45);
}

/* ==============================
   THEME: PHOSPHOR-CYBER
   ============================== */
html[data-theme='phosphor-cyber'] {
  color-scheme: dark;
  --bg:         #050a07;
  --bg-s:       #0c1510;
  --bg-s2:      #101c14;
  --bg-warm:    #0c1510;
  --bg-dk:      #0a120d;
  --bg-dk2:     #050a07;
  --text:       #b8f5b0;
  --text-2:     #6fcf8a;
  --text-f:     #3d7a52;
  --text-dk:    #b8f5b0;
  --text-2-dk:  #6fcf8a;
  --bd:         rgba(140,198,63,.18);
  --bd2:        rgba(140,198,63,.35);
  --bd-dk:      rgba(140,198,63,.10);
  --accent:     var(--lime);
  --accent-dk:  #8dfa8d;
  --accent-hl:  #8dfa8d;
  --hdr-bg:     rgba(5,10,7,.94);
  --glow:       rgba(140,198,63,.22);
  --sh:         0 0 28px rgba(140,198,63,.08);
}

html[data-theme='phosphor-cyber'] body::after {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.04) 2px, rgba(0,0,0,.04) 4px);
}

/* ==============================
   BASE RESET
   ============================== */
*,*::before,*::after {
  box-sizing: border-box;
  transition: var(--t-theme);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme='warm-light'] body {
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(47,141,71,.05), transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(97,205,124,.04), transparent 50%);
  background-attachment: fixed;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul,ol { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.2; }
p { margin: 0; }
address { font-style: normal; }

/* ==============================
   ACCESSIBILITY
   ============================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.m-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: .65rem 1.25rem;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
}
.m-skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ==============================
   TYPOGRAPHY
   ============================== */
.m-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.m-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.m-mono { font-family: var(--font-mono); }

.m-kicker {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

html[data-theme='phosphor-cyber'] .m-kicker { text-shadow: 0 0 12px var(--glow); }

/* ==============================
   LAYOUT
   ============================== */
.m-container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .m-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .m-container { padding-inline: 2rem; } }

.m-section     { padding-block: 4rem; }
.m-section-sm  { padding-block: 2.5rem; }
.m-section-lg  { padding-block: 5rem; }
@media (min-width: 640px) {
  .m-section     { padding-block: 5rem; }
  .m-section-sm  { padding-block: 3.5rem; }
  .m-section-lg  { padding-block: 6.5rem; }
}
@media (min-width: 1024px) {
  .m-section-lg  { padding-block: 8rem; }
}

.m-band-light {
  background: linear-gradient(180deg, var(--bg-s) 0%, var(--bg) 100%);
  color: var(--text);
}
.m-band-warm {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(47,141,71,.07), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(97,205,124,.06), transparent 55%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  color: var(--text);
}
html[data-theme='warm-dark'] .m-band-warm,
html[data-theme='phosphor-cyber'] .m-band-warm {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(140,198,63,.07), transparent 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.m-band-dark  { background: var(--bg-dk);  color: var(--text-dk); }
.m-band-dark2 { background: var(--bg-dk2); color: var(--text-dk); }

.m-grid-2 { display: grid; gap: 1.5rem; }
.m-grid-3 { display: grid; gap: 1.5rem; }
.m-grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .m-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .m-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .m-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .m-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .m-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.m-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .m-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .m-split--60 { grid-template-columns: 1.4fr 1fr; }
  .m-split--40 { grid-template-columns: 1fr 1.4fr; }
}

/* ==============================
   HEADER
   ============================== */
.m-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background .3s ease, box-shadow .3s ease;
}

/* Info bar */
.m-topbar {
  display: none;
  background: rgba(213,223,232,.9);
  border-bottom: 1px solid var(--bd);
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-f);
}
html[data-theme='warm-dark'] .m-topbar,
html[data-theme='phosphor-cyber'] .m-topbar {
  background: rgba(20,17,14,.88);
  border-bottom-color: var(--bd);
  color: var(--text-f);
}
@media (min-width: 768px) { .m-topbar { display: block; } }

.m-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .4rem;
}
.m-topbar-inner a {
  text-decoration: none;
  transition: color var(--t-fast);
}
.m-topbar-inner a:hover { color: var(--accent); }
.m-topbar-links { display: flex; align-items: center; gap: 1.25rem; }

/* Main bar */
.m-header-main {
  background: var(--hdr-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--bd);
}

.m-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}

/* Logo */
.m-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.m-logo-chip {
  background: var(--ink);
  border-radius: var(--r-md);
  padding: .2rem .65rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 0 1px rgba(47,141,71,.28);
  transition: box-shadow var(--t-fast), background .4s ease;
}
html[data-theme='warm-dark'] .m-logo-chip,
html[data-theme='phosphor-cyber'] .m-logo-chip {
  background: rgba(240,244,248,.92);
  box-shadow: 0 0 0 1px rgba(97,205,124,.2), 0 4px 16px rgba(0,0,0,.2);
}
.m-logo-chip img { height: 2.25rem; width: auto; display: block; }

/* Desktop nav */
.m-nav { display: none; flex: 1; margin-inline: 2rem; }
@media (min-width: 768px) { .m-nav { display: block; } }

.m-nav-list { display: flex; align-items: center; gap: 1.75rem; }

.m-nav-link {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.m-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .22s ease;
}
.m-nav-link:hover { color: var(--accent); }
.m-nav-link:hover::after,
.m-nav-link[aria-current='page']::after { transform: scaleX(1); }
.m-nav-link[aria-current='page'] { color: var(--accent); }

/* Actions */
.m-header-actions { display: flex; align-items: center; gap: .65rem; }

/* Theme switcher */
.m-theme-sw {
  display: none;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-md);
  border: 1px solid var(--bd);
  background: var(--bg-s);
}
@media (min-width: 640px) { .m-theme-sw { display: flex; } }

.m-theme-btn {
  padding: .3rem .5rem;
  border-radius: 4px;
  font-size: .65rem;
  line-height: 1;
  color: var(--text-f);
  background: transparent;
  border: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.m-theme-btn:hover { color: var(--text-2); }
.m-theme-btn[aria-pressed='true'] {
  background: var(--bg-s2);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--bd2);
}

.m-header-cta { display: none; }
@media (min-width: 640px) { .m-header-cta { display: inline-flex; } }

/* Mobile menu button */
.m-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--bd2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  transition: border-color var(--t-fast), color var(--t-fast);
}
@media (min-width: 768px) { .m-mobile-btn { display: none; } }
.m-mobile-btn:hover { border-color: var(--accent); color: var(--accent); }

.m-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.m-hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.m-mobile-btn[aria-expanded='true'] .m-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.m-mobile-btn[aria-expanded='true'] .m-hamburger span:nth-child(2) { opacity: 0; }
.m-mobile-btn[aria-expanded='true'] .m-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu - backdrop overlay */
.m-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.m-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu - right-side drawer (brand: plum → navy, matches page headers) */
.m-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(360px, 88vw);
  background: linear-gradient(165deg, var(--plum) 0%, var(--navy) 52%, #12162e 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -12px 0 40px rgba(35, 42, 116, 0.28);
  color: #fff;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.32, 0, 0.15, 1), opacity 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.m-mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}
.m-mobile-menu > * { position: relative; z-index: 1; }
.m-mobile-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 768px) {
  .m-mobile-menu,
  .m-menu-backdrop { display: none; }
}

/* ── Drawer interior ── */
.m-mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  background: rgba(35, 42, 116, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  flex-shrink: 0;
}
.m-mm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.m-mm-close:hover {
  background: rgba(97, 205, 124, 0.18);
  border-color: rgba(97, 205, 124, 0.35);
  color: var(--lime);
}
.m-mm-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 0.65rem 1.25rem;
  flex-shrink: 0;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}
.m-mm-nav-wrap { padding: 0 0.75rem; flex: 1; }
.m-mm-section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.9rem 0.5rem 0.25rem;
  margin: 0;
}
.m-mm-nav { list-style: none; padding: 0; margin: 0; }
.m-mobile-menu .m-mm-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.62rem 0.55rem;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
}
.m-mobile-menu .m-mm-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.m-mobile-menu .m-mm-link[aria-current='page'] {
  background: rgba(47, 141, 71, 0.22);
  color: var(--lime);
  box-shadow: inset 3px 0 0 var(--lime);
}
.m-mm-link-text { flex: 1; color: inherit; }
.m-mobile-menu .m-mm-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.m-mobile-menu .m-mm-link:hover .m-mm-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.m-mobile-menu .m-mm-link[aria-current='page'] .m-mm-icon {
  background: rgba(47, 141, 71, 0.3);
  border-color: rgba(97, 205, 124, 0.35);
  color: var(--lime);
}
.m-mobile-menu .m-mm-chevron {
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  transition: color var(--t-fast), transform var(--t-fast);
}
.m-mobile-menu .m-mm-link:hover .m-mm-chevron {
  color: rgba(255, 255, 255, 0.75);
  transform: translateX(2px);
}
.m-mobile-menu .m-mm-link[aria-current='page'] .m-mm-chevron {
  color: rgba(97, 205, 124, 0.75);
}
.m-mm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.m-mm-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.m-mm-action-btn:hover {
  background: rgba(97, 205, 124, 0.14);
  border-color: rgba(97, 205, 124, 0.3);
  color: var(--lime);
}
.m-mm-cta { margin: 0.75rem 1.25rem 0; text-align: center; flex-shrink: 0; }
.m-mm-cta .m-btn-primary {
  width: 100%;
  box-shadow: 0 4px 16px rgba(47, 141, 71, 0.35);
}
.m-mm-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.m-mm-stars { color: #f5b500; letter-spacing: 0.05em; }
.m-mm-dot { color: rgba(255, 255, 255, 0.35); }
/* Compat alias - m-mobile-nav-link used for active detection only */
.m-mobile-nav-link { text-decoration: none; }

/* Over-hero header */
.m-header.is-over-hero {
  position: fixed;
  left: 0; right: 0; top: 0;
  width: 100%;
}
.m-header.is-over-hero:not(.is-scrolled) .m-header-main {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,.1);
}
.m-header.is-over-hero:not(.is-scrolled) .m-topbar {
  background: rgba(0,0,0,.28);
  border-bottom-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}
.m-header.is-over-hero:not(.is-scrolled) .m-topbar a:hover { color: var(--lime); }
.m-header.is-over-hero:not(.is-scrolled) .m-nav-link {
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.m-header.is-over-hero:not(.is-scrolled) .m-nav-link::after { background: var(--lime); }
.m-header.is-over-hero:not(.is-scrolled) .m-nav-link:hover { color: var(--lime); }
.m-header.is-over-hero:not(.is-scrolled) .m-mobile-btn { border-color: rgba(255,255,255,.25); color: #fff; }
.m-header.is-over-hero:not(.is-scrolled) .m-theme-sw {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.m-header.is-over-hero:not(.is-scrolled) .m-theme-btn { color: rgba(255,255,255,.6); }
.m-header.is-over-hero:not(.is-scrolled) .m-theme-btn[aria-pressed='true'] { color: var(--lime); }
.m-header.is-scrolled .m-header-main {
  box-shadow: 0 4px 30px rgba(15,23,42,.06);
}

/* ==============================
   BUTTONS
   ============================== */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .01em;
  padding: .7rem 1.4rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.m-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.m-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .m-btn:hover, .m-btn:active { transform: none; }
}

.m-btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(47,141,71,.2);
}
.m-btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(35,42,116,.28);
}

.m-btn-secondary {
  background: var(--mint);
  color: var(--green-dk);
  border-color: var(--green);
}
.m-btn-secondary:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}
html[data-theme='warm-dark'] .m-btn-secondary,
html[data-theme='phosphor-cyber'] .m-btn-secondary {
  background: rgba(47,141,71,.12);
  color: var(--lime);
}
html[data-theme='warm-dark'] .m-btn-secondary:hover,
html[data-theme='phosphor-cyber'] .m-btn-secondary:hover {
  background: var(--green);
  color: #fff;
}

.m-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--bd2);
}
.m-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.m-btn-outline {
  background: rgba(255,255,255,.08);
  color: #f1f5f9;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
}
.m-btn-outline:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(167,243,208,.65);
  color: #fff;
  transform: translateY(-1px);
}

.m-btn-sm { font-size: .78rem; padding: .5rem 1rem; }
.m-btn-full { width: 100%; }

/* ==============================
   HERO (Homepage)
   ============================== */
.m-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.m-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .4;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

.m-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(290deg, rgba(64,31,78,.32) 0%, rgba(36,36,36,.9) 100%);
  pointer-events: none;
}
.m-hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(52,152,219,.1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(140,198,63,.07), transparent 60%);
}

.m-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.m-hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 5rem 1rem 3.5rem;
}
@media (min-width: 640px) { .m-hero-inner { padding: 7rem 1.5rem 4rem; } }
@media (min-width: 1024px) { .m-hero-inner { padding: 8rem 2rem 5rem; max-width: 80rem; margin-inline: auto; } }

.m-hero-glass {
  max-width: 42rem;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border-radius: var(--r-xl);
  background: rgba(15,23,42,.42);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 72px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.m-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
  margin-top: .85rem;
}
.m-hero-accent { color: var(--lime); }

.m-hero-desc {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: #b8c5d6;
  text-wrap: pretty;
}

.m-hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Page hero (inner pages) */
.m-page-hero {
  background: var(--bg-dk);
  color: var(--text-dk);
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .m-page-hero { padding-block: 7rem; } }

.m-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(47,141,71,.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(97,205,124,.06), transparent 60%);
  pointer-events: none;
}

.m-page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.m-page-hero-inner {
  position: relative;
  z-index: 1;
}

.m-page-hero-glass {
  max-width: 36rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--r-xl);
  background: rgba(15,23,42,.4);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.m-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
  margin-top: .6rem;
}

.m-page-desc {
  margin-top: .85rem;
  font-size: .975rem;
  line-height: 1.7;
  color: #b8c5d6;
  text-wrap: pretty;
}

/* ==============================
   SERVICE STRIP
   ============================== */
.m-strip-wrap {
  position: relative;
  z-index: 12;
  margin-top: -2.75rem;
  padding-bottom: .5rem;
}

.m-strip {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  display: grid;
}
@media (min-width: 768px) { .m-strip { grid-template-columns: repeat(4, 1fr); } }

.m-strip-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.35rem 1.15rem;
  border-bottom: 1px solid var(--bd);
  transition: background var(--t-fast);
  text-decoration: none;
  color: inherit;
}
.m-strip-item:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .m-strip-item {
    border-bottom: none;
    border-right: 1px solid var(--bd);
    padding: 1.5rem 1.25rem;
  }
  .m-strip-item:last-child { border-right: none; }
}
.m-strip-item:hover { background: var(--bg-warm); }

.m-strip-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--green);
}
html[data-theme='warm-dark'] .m-strip-icon,
html[data-theme='phosphor-cyber'] .m-strip-icon {
  background: rgba(47,141,71,.12);
  color: var(--lime);
}
.m-strip-icon svg { width: 1.15rem; height: 1.15rem; }
.m-strip-name {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.m-strip-desc {
  margin-top: .3rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ==============================
   SECTION HEADINGS
   ============================== */
.m-sec-head { text-align: center; margin-bottom: 3.5rem; }

.m-sec-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-top: .6rem;
  text-wrap: balance;
}
.m-band-dark .m-sec-title,
.m-band-dark2 .m-sec-title { color: #fff; }

.m-sec-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 42rem;
  margin-inline: auto;
  margin-top: .85rem;
  text-wrap: pretty;
}
.m-band-dark .m-sec-lead,
.m-band-dark2 .m-sec-lead { color: var(--text-2-dk); }

/* ==============================
   CARDS - NOTEBOOK (signature)
   ============================== */
.m-card {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-nb);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.m-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green) 0%, var(--lime) 60%, var(--navy) 100%);
  border-radius: 2px 0 0 2px;
}
.m-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--bd2); }
.m-card-body { padding: 1.5rem; }

/* Flat card */
.m-card-flat {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.m-card-flat:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: rgba(47,141,71,.25); }
.m-card-pad   { padding: 1.5rem; }
.m-card-pad-lg{ padding: 2rem; }

/* ==============================
   COURSE CARDS
   ============================== */
.m-course-card {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-nb);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.m-course-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green) 0%, var(--lime) 100%);
  border-radius: 2px 0 0 2px;
  z-index: 1;
}
.m-course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); border-color: rgba(47,141,71,.28); }

.m-course-img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  object-position: center;
  display: block;
}
.m-course-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.m-course-track {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-course-name {
  margin-top: .35rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.m-course-bullets {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.m-course-bullets li {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-2);
  line-height: 1.5;
  display: flex;
  gap: .4rem;
}
.m-course-bullets li::before { content: '→'; flex-shrink: 0; color: var(--accent); }

.m-course-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-course-dur {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-f);
}

/* ==============================
   STATS
   ============================== */
.m-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .m-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.m-stat-card {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--sh-sm);
}

.m-stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
html[data-theme='phosphor-cyber'] .m-stat-num {
  color: var(--lime);
  text-shadow: 0 0 18px var(--glow);
}
.m-stat-label {
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ==============================
   CHECKLIST
   ============================== */
.m-checklist {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.75rem;
}
.m-check-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-2-dk);
}
.m-check-dot {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--r-full);
  background: rgba(97,205,124,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: .65rem;
  font-weight: 700;
  margin-top: .12rem;
}

/* ==============================
   DARK FEATURE GRID
   ============================== */
.m-feature-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .m-feature-grid { grid-template-columns: repeat(2, 1fr); } }

.m-feature-block {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  transition: border-color var(--t-normal), transform var(--t-normal);
}
.m-feature-block:hover { border-color: rgba(97,205,124,.35); transform: translateY(-2px); }
.m-feature-span { grid-column: 1 / -1; }
.m-feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.m-feature-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}
.m-feature-desc {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text-2-dk);
}

/* ==============================
   CTA CARDS
   ============================== */
.m-cta-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) { .m-cta-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.m-cta-card {
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .m-cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 2.5rem;
  }
}

.m-cta-dark {
  background: linear-gradient(135deg, rgba(12,42,51,.72) 0%, rgba(11,18,32,.78) 48%, rgba(21,34,56,.75) 100%);
  border: 1px solid rgba(97,205,124,.22);
  color: #e8eef4;
  box-shadow: 0 16px 48px rgba(11,18,32,.35);
}
.m-cta-light {
  background: var(--bg-s);
  border: 1px solid var(--bd2);
  box-shadow: var(--sh-lg);
  color: var(--text);
}

.m-cta-body { flex: 1; min-width: 0; }
.m-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: .35rem;
}
.m-cta-dark .m-cta-title { color: #fff; }
.m-cta-light .m-cta-title { color: var(--text); }
.m-cta-accent { color: var(--lime); }
.m-cta-desc {
  margin-top: .6rem;
  font-size: .875rem;
  line-height: 1.65;
  max-width: 34rem;
}
.m-cta-dark .m-cta-desc { color: #94a3b8; }
.m-cta-light .m-cta-desc { color: var(--text-2); }

/* ==============================
   TRUST BAR
   ============================== */
.m-trust-bar { border-top: 1px solid var(--bd); }
.m-trust-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.m-trust-tag {
  font-size: .78rem;
  font-weight: 500;
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--bd);
  background: var(--bg-s);
  color: var(--text-2);
}

/* ==============================
   REVIEWS
   ============================== */
.m-reviews-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .m-reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .m-reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.m-review-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--bd-dk);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--t-normal);
}
.m-review-card:hover { border-color: rgba(97,205,124,.25); }

.m-review-stars { display: flex; gap: .2rem; color: #f59e0b; font-size: .9rem; }
.m-review-text {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-2-dk);
  flex: 1;
}
.m-review-author { display: flex; align-items: center; gap: .65rem; }
.m-review-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .7rem;
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #fff;
  flex-shrink: 0;
}
.m-review-name { font-weight: 600; font-size: .875rem; color: var(--text-dk); }
.m-review-role { font-family: var(--font-mono); font-size: .65rem; color: var(--text-2-dk); margin-top: .12rem; }
.m-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* ==============================
   VIDEO FRAME
   ============================== */
.m-video-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--bd);
  box-shadow: var(--sh-xl);
  background: #000;
  margin: 0;
}
.m-video-wrap video, .m-video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.m-video-wrap--reel {
  width: min(100%, 22.5rem);
  justify-self: center;
}
.m-video-wrap--reel iframe {
  height: auto;
  aspect-ratio: 267 / 476;
}
#academy-video { scroll-margin-top: 6rem; }

/* ==============================
   ACCORDION
   ============================== */
.m-accordion { display: flex; flex-direction: column; gap: .45rem; }

.m-acc-item {
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-s);
}
.m-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.m-acc-btn:hover { background: var(--bg-warm); }
.m-acc-btn[aria-expanded='true'] { color: var(--accent); }
.m-acc-icon {
  flex-shrink: 0;
  width: 1.1rem; height: 1.1rem;
  transition: transform .25s ease;
}
.m-acc-btn[aria-expanded='true'] .m-acc-icon { transform: rotate(180deg); }

.m-acc-panel {
  display: none;
  border-top: 1px solid var(--bd);
  padding: 1rem 1.25rem 1.25rem;
}
.m-acc-panel.is-open { display: block; }
.m-acc-panel ul { display: grid; gap: .55rem; }
@media (min-width: 640px) { .m-acc-panel ul { grid-template-columns: repeat(2, 1fr); } }
.m-acc-panel li {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.55;
  display: flex;
  gap: .5rem;
}
.m-acc-panel li::before { content: '•'; flex-shrink: 0; color: var(--accent); }

/* ==============================
   PACKAGES GRID
   ============================== */
.m-pkgs {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) { .m-pkgs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .m-pkgs { grid-template-columns: repeat(3, 1fr); } }

.m-pkg {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-nb);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-md);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.m-pkg::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green) 0%, var(--lime) 100%);
  border-radius: 2px 0 0 2px;
}
.m-pkg:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: rgba(47,141,71,.28); }
.m-pkg--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--sh-lg);
}

.m-pkg-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
  background: var(--green);
  color: #fff;
  margin-bottom: .5rem;
  width: fit-content;
}
.m-pkg-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.m-pkg-target { font-size: .78rem; color: var(--text-f); margin-top: .25rem; }
.m-pkg-desc {
  margin-top: .85rem;
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.m-pkg-cta { margin-top: 1.25rem; }

/* ==============================
   HOSTING PLANS
   ============================== */
.m-plans {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .m-plans { grid-template-columns: repeat(3, 1fr); } }

.m-plan {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.m-plan:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.m-plan--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--sh-lg);
  position: relative;
}
.m-plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .85rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.m-plan-tier {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-plan-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: .35rem;
  color: var(--text);
}
.m-plan-desc {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
}
.m-plan-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}
.m-plan-feat {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .85rem;
  color: var(--text-2);
}
.m-plan-feat-check { flex-shrink: 0; color: var(--accent); font-weight: 700; margin-top: .05rem; }
.m-plan-cta { margin-top: 2rem; }

/* ==============================
   GALLERY
   ============================== */
.m-gallery {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .m-gallery { grid-template-columns: repeat(2, 1fr); } }
.m-gallery figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--bd);
}
.m-gallery figure img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.m-gallery figure:hover img { transform: scale(1.04); }

/* ==============================
   COMMERCIAL MODEL
   ============================== */
.m-commercial-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .m-commercial-grid { grid-template-columns: repeat(2, 1fr); } }

.m-commercial-card {
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.m-commercial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--lime) 100%);
}

/* ==============================
   FORMS
   ============================== */
.m-form { display: flex; flex-direction: column; gap: 1rem; }
.m-form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .m-form-row { grid-template-columns: repeat(2, 1fr); } }

.m-field { display: flex; flex-direction: column; gap: .35rem; }
.m-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-f);
}

.m-input, .m-textarea, .m-select {
  font-family: var(--font-mono);
  font-size: .85rem;
  background: var(--bg);
  border: 1px solid var(--bd2);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: .65rem .85rem;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.m-input:focus, .m-textarea:focus, .m-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--glow);
}
.m-textarea { resize: vertical; min-height: 8rem; }

.m-form-feedback {
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .78rem;
  border: 1px solid;
  margin-top: .25rem;
}
.m-form-feedback--error {
  background: rgba(239,68,68,.08);
  color: #f87171;
  border-color: rgba(239,68,68,.25);
}
.m-form-feedback--success {
  background: rgba(47,141,71,.08);
  color: var(--green);
  border-color: rgba(47,141,71,.25);
}
html[data-theme='phosphor-cyber'] .m-form-feedback--success {
  color: var(--lime);
  border-color: rgba(97,205,124,.25);
}

/* ==============================
   CONTACT INFO
   ============================== */
.m-metrics-list { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }
.m-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: .65rem;
  border-bottom: 1px solid var(--bd);
  font-family: var(--font-mono);
  font-size: .72rem;
}
.m-metric-row:last-child { border-bottom: none; }
.m-metric-k { color: var(--text-f); }
.m-metric-v { color: var(--green); font-weight: 500; }
html[data-theme='phosphor-cyber'] .m-metric-v { color: var(--lime); }
html[data-theme='warm-dark'] .m-metric-v { color: var(--lime); }

.m-map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--bd);
}
.m-map-frame iframe {
  display: block;
  width: 100%;
  height: 18rem;
  border: 0;
}

/* ==============================
   FOOTER
   ============================== */
.m-footer {
  background: linear-gradient(180deg, #0a0e14 0%, var(--ink) 100%);
  color: var(--text-2-dk);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 4rem;
}
.m-footer .m-logo-chip {
  background: rgba(240,244,248,.92) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) !important;
}
.m-footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .m-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .m-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.m-footer-brand-text {
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text-2-dk);
}
.m-footer-tagline { font-weight: 600; color: var(--lime); }
.m-footer-address {
  margin-top: .85rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.7;
  color: var(--text-2-dk);
}
.m-footer-phone { margin-top: .65rem; font-family: var(--font-mono); font-size: .9rem; font-weight: 600; }
.m-footer-phone a { color: var(--lime); text-decoration: none; }
.m-footer-phone a:hover { color: #fff; }

.m-footer-h {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
}
.m-footer-links {
  margin-top: .85rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.m-footer-links a {
  font-size: .875rem;
  color: var(--text-2-dk);
  text-decoration: none;
  transition: color var(--t-fast);
}
.m-footer-links a:hover { color: var(--lime); }

.m-footer-badges { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.m-footer-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  padding: .3rem .7rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text-2-dk);
}

.m-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-2-dk);
}
@media (min-width: 640px) {
  .m-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.m-footer-bottom a { color: var(--lime); text-decoration: none; }
.m-footer-bottom a:hover { color: #fff; }

/* ==============================
   SCROLL REVEAL
   ============================== */
.m-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .m-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  }
  .m-reveal.is-visible { opacity: 1; transform: translateY(0); }
  .m-reveal--d1 { transition-delay: .1s !important; }
  .m-reveal--d2 { transition-delay: .18s !important; }
  .m-reveal--d3 { transition-delay: .26s !important; }
  .m-reveal--d4 { transition-delay: .34s !important; }
}

/* ==============================
   UTILITIES
   ============================== */
.m-center { text-align: center; }
.m-text-muted { color: var(--text-2); }
.m-text-dk { color: var(--text-dk); }
.m-text-2-dk { color: var(--text-2-dk); }
.m-text-accent { color: var(--accent); }
html[data-theme='phosphor-cyber'] .m-text-accent { text-shadow: 0 0 12px var(--glow); }

.m-mt-2  { margin-top: .5rem; }
.m-mt-4  { margin-top: 1rem; }
.m-mt-6  { margin-top: 1.5rem; }
.m-mt-8  { margin-top: 2rem; }
.m-mt-10 { margin-top: 2.5rem; }
.m-mt-12 { margin-top: 3rem; }

/* ==============================
   PRINT
   ============================== */
@media print {
  .m-header, .m-footer, .m-hero, .m-theme-sw, .m-mobile-btn { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ==============================
   PAGE HERO (image variant)
   ============================== */
.m-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 26rem;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: 4rem;
  color: #fff;
}
@media (min-width: 768px) {
  .m-page-hero { min-height: 34rem; padding-top: 8rem; padding-bottom: 5.5rem; }
}
.m-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.m-page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.m-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(64,31,78,.82) 0%,
    rgba(35,42,116,.75) 40%,
    rgba(10,14,20,.88) 100%
  );
}
.m-page-hero > .m-container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.m-page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
  margin-top: .65rem;
}
.m-page-hero-lead {
  margin-top: 1rem;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: rgba(220,228,240,.85);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ==============================
   HOSTING HERO (pure dark, no image)
   ============================== */
.m-host-hero {
  background: #050c10;
  color: #fff;
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) { .m-host-hero { min-height: 36rem; padding-top: 9rem; padding-bottom: 6.5rem; } }
.m-host-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(97,205,124,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97,205,124,.06) 1px, transparent 1px);
  background-size: 52px 52px;
}
.m-host-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 60% 30%, rgba(47,141,71,.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(35,42,116,.14), transparent 60%);
}
.m-host-hero > .m-container { position: relative; z-index: 2; }

/* ==============================
   CONTACT PAGE HEADER
   ============================== */
.m-contact-header {
  background: linear-gradient(160deg, var(--plum) 0%, var(--navy) 60%, #0a0e14 100%);
  color: #fff;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.m-contact-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.m-contact-header > .m-container { position: relative; z-index: 1; }

/* ==============================
   COURSE FEATURE LAYOUT (courses page)
   ============================== */
.m-course-feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
  background: var(--bg-s);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.m-course-feature:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .m-course-feature { grid-template-columns: 40% 1fr; gap: 0; }
  .m-course-feature--reverse { grid-template-columns: 1fr 40%; }
  .m-course-feature--reverse .m-course-feature-img { order: 2; }
  .m-course-feature--reverse .m-course-feature-body { order: 1; }
}
.m-course-feature-img {
  margin: 0;
  overflow: hidden;
  height: 18rem;
}
@media (min-width: 900px) { .m-course-feature-img { height: 100%; min-height: 24rem; } }
.m-course-feature-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .5s ease;
}
.m-course-feature:hover .m-course-feature-img img { transform: scale(1.03); }
.m-course-feature-body {
  padding: 2rem 1.75rem;
}
@media (min-width: 640px) { .m-course-feature-body { padding: 2.5rem 2.25rem; } }
.m-course-feature-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Track & duration badges */
.m-track-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  background: rgba(47,141,71,.1);
  color: var(--green);
  border: 1px solid rgba(47,141,71,.2);
}
.m-dur-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  background: rgba(35,42,116,.07);
  color: var(--navy);
  border: 1px solid rgba(35,42,116,.15);
}
html[data-theme='warm-dark'] .m-dur-badge,
html[data-theme='phosphor-cyber'] .m-dur-badge {
  background: rgba(255,255,255,.06);
  color: var(--text-2);
  border-color: rgba(255,255,255,.1);
}

/* Module list */
.m-module-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0;
  list-style: none;
}
.m-module-list li {
  display: flex;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.5;
}
.m-module-list li::before {
  content: '→';
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Course metadata pills */
.m-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.m-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .35rem .85rem;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1px solid var(--bd2);
  color: var(--text-2);
}

/* ==============================
   PKG ADDITIONS
   ============================== */
.m-pkg-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: .65rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47,141,71,.1);
  color: var(--green);
  margin-bottom: .75rem;
}
.m-pkg-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.m-pkg-list li {
  display: flex;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.45;
}
.m-pkg-list li::before { content: '✓'; flex-shrink: 0; color: var(--accent-dk); font-weight: 700; }
.m-service-training { scroll-margin-top: 6rem; }

/* ==============================
   PLAN ADDITIONS (hosting page)
   ============================== */
.m-plan-popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  white-space: nowrap;
}
.m-plan-header { margin-bottom: 1.5rem; }
.m-plan-sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .25rem;
}
.m-plan--featured .m-plan-sub { color: var(--lime); }
.m-plan-price {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bd);
}
.m-plan--featured .m-plan-price { border-bottom-color: rgba(97,205,124,.2); }
.m-plan-currency {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-2);
  align-self: flex-start;
  margin-top: .25rem;
}
.m-plan-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.m-plan--featured .m-plan-amount { color: var(--lime); }
.m-plan-period {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-2);
}
.m-plan-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
  padding: 0;
  list-style: none;
  margin: 0;
}
.m-plan-check {
  color: var(--accent);
  font-weight: 700;
  margin-right: .35rem;
  flex-shrink: 0;
}
.m-plan--featured .m-plan-check { color: var(--lime); }
.m-plan-list li {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
}
.m-plan-na {
  font-size: .85rem;
  color: var(--text-f);
  opacity: .55;
  display: flex;
  align-items: flex-start;
}

/* Dark plan variant (for dark band) */
html[data-theme='warm-light'] .m-band-dark .m-plan,
html[data-theme='warm-dark'] .m-band-dark .m-plan,
html[data-theme='phosphor-cyber'] .m-band-dark .m-plan {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #fff;
}
html[data-theme='warm-light'] .m-band-dark .m-plan .m-plan-amount,
html[data-theme='warm-dark'] .m-band-dark .m-plan .m-plan-amount,
html[data-theme='phosphor-cyber'] .m-band-dark .m-plan .m-plan-amount { color: #fff; }
html[data-theme='warm-light'] .m-band-dark .m-plan .m-plan-list li,
html[data-theme='warm-dark'] .m-band-dark .m-plan .m-plan-list li,
html[data-theme='phosphor-cyber'] .m-band-dark .m-plan .m-plan-list li { color: rgba(220,228,240,.75); }
html[data-theme='warm-light'] .m-band-dark .m-plan .m-plan-na,
html[data-theme='warm-dark'] .m-band-dark .m-plan .m-plan-na,
html[data-theme='phosphor-cyber'] .m-band-dark .m-plan .m-plan-na { color: rgba(255,255,255,.3); }
html[data-theme='warm-light'] .m-band-dark .m-plan .m-plan-price,
html[data-theme='warm-dark'] .m-band-dark .m-plan .m-plan-price,
html[data-theme='phosphor-cyber'] .m-band-dark .m-plan .m-plan-price { border-bottom-color: rgba(255,255,255,.08); }
html[data-theme='warm-light'] .m-band-dark .m-plan .m-plan-currency,
html[data-theme='warm-dark'] .m-band-dark .m-plan .m-plan-currency,
html[data-theme='phosphor-cyber'] .m-band-dark .m-plan .m-plan-currency { color: rgba(220,228,240,.6); }

/* ==============================
   STAT CARD DARK VARIANT
   ============================== */
.m-stat-card--dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.m-stat-card--dark .m-stat-num { color: var(--lime); }
.m-stat-card--dark .m-stat-label { color: rgba(220,228,240,.7); }

/* ==============================
   CTA SOLO (centered single CTA)
   ============================== */
.m-cta-solo {
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

/* ==============================
   TRUST LINK
   ============================== */
.m-trust-link {
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.m-trust-link:hover {
  background: var(--mint);
  color: var(--green-dk);
  border-color: rgba(47,141,71,.25);
}
html[data-theme='warm-dark'] .m-trust-link:hover,
html[data-theme='phosphor-cyber'] .m-trust-link:hover {
  background: rgba(97,205,124,.1);
  color: var(--lime);
}

/* ==============================
   CONTACT PAGE LAYOUT
   ============================== */
.m-contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .m-contact-layout {
    grid-template-columns: 1fr 1.55fr;
    gap: 2.5rem;
  }
}
.m-contact-sidebar { display: flex; flex-direction: column; }
.m-contact-form-wrap { min-width: 0; }

/* Live metrics */
.m-live-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.m-live-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: .6rem;
  border-bottom: 1px solid var(--bd);
  font-size: .8rem;
}
.m-live-row:last-child { border-bottom: none; }
.m-live-label {
  font-family: var(--font-mono);
  color: var(--text-f);
}
.m-live-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .35rem;
}
html[data-theme='phosphor-cyber'] .m-live-value { color: var(--lime); }

/* Status dot (pulsing) */
.m-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,141,71,.5); }
  50% { box-shadow: 0 0 0 5px rgba(47,141,71,0); }
}
html[data-theme='phosphor-cyber'] .m-status-dot { background: var(--lime); }
@media (prefers-reduced-motion: reduce) {
  .m-status-dot { animation: none; }
}

/* Contact links */
.m-contact-links { display: flex; flex-direction: column; gap: .5rem; }
.m-contact-link {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem .25rem;
  border-bottom: 1px solid var(--bd);
  text-decoration: none;
  color: inherit;
  transition: color var(--t-fast);
}
.m-contact-link:last-child { border-bottom: none; }
a.m-contact-link:hover { color: var(--accent); }
a.m-contact-link:hover .m-contact-link-val { color: var(--accent); }
.m-contact-link-icon {
  width: 2rem; height: 2rem;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47,141,71,.08);
  color: var(--green);
  flex-shrink: 0;
  margin-top: .05rem;
}
html[data-theme='phosphor-cyber'] .m-contact-link-icon { color: var(--lime); }
.m-contact-link-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-f);
}
.m-contact-link-val {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-top: .15rem;
  line-height: 1.45;
  transition: color var(--t-fast);
}

/* Map wrapper */
.m-map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
}

/* Field error */
.m-field-error {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: #f87171;
  min-height: 1rem;
}

/* Form 2-column grid */
.m-form-grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 540px) { .m-form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════
   LIGHT LOGO (m-logo-img) - adaptive filter per context
═══════════════════════════════════════════════════════ */
.m-logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: filter .25s ease, opacity .2s;
}

/* White logo: header on transparent hero before scroll */
.m-header.is-over-hero:not(.is-scrolled) .m-logo-img {
  filter: brightness(0) invert(1);
}

/* White logo: always in footer */
.m-footer .m-logo-img {
  filter: brightness(0) invert(1);
}

/* White logo: always in mobile menu */
.m-mobile-menu .m-logo-img,
.m-mm-head .m-logo-img {
  filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════════════
   FOOTER - dual layout (app sheet mobile / grid desktop)
═══════════════════════════════════════════════════════ */

/* ── Mobile App Sheet ── */
.m-footer-app-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  background: var(--ink);
}
[data-theme="warm-dark"] .m-footer-app-sheet,
[data-theme="phosphor-cyber"] .m-footer-app-sheet {
  background: #0d0d0d;
}

.m-footer-app-logo { display: inline-block; margin-bottom: 1rem; }

.m-footer-app-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 .3rem;
}
.m-footer-app-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin: 0 0 .5rem;
}
.m-fas-rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.5rem;
}
.m-fas-stars { color: #f5b500; letter-spacing: 0.04em; }
.m-fas-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.m-fas-col-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 0.45rem;
}
.m-fas-link {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  padding: 0.22rem 0;
  transition: color 0.18s;
}
.m-fas-link:hover { color: rgba(255, 255, 255, 0.85); }
.m-fas-addr {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.22);
  margin: 0 0 0.6rem;
  text-align: center;
}

.m-footer-app-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.m-footer-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .75rem 1rem;
  border-radius: .875rem;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-width: 60px;
  transition: background .18s, color .18s, transform .15s;
}
.m-footer-app-btn:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-2px);
}
.m-footer-app-btn svg { flex-shrink: 0; }

.m-footer-app-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ── Desktop Footer (hidden on mobile) ── */
.m-footer-desktop { display: none; }

/* ═══════════════════════════════════════════════════════
   MOBILE TAB BAR - fixed bottom native app nav
═══════════════════════════════════════════════════════ */
.m-tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  align-items: stretch;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
[data-theme="warm-dark"] .m-tab-bar,
[data-theme="phosphor-cyber"] .m-tab-bar {
  background: #0e0e0e;
}

.m-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,.45);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .18s;
  padding: 0 .25rem;
  position: relative;
}
.m-tab-item:hover,
.m-tab-item.is-active {
  color: var(--lime);
}
.m-tab-item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--green);
}

/* CTA pill in the center */
.m-tab-item--cta {
  color: rgba(255,255,255,.6);
}
.m-tab-cta-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1px;
  box-shadow: 0 4px 14px rgba(47,141,71,.45);
  transition: transform .18s, box-shadow .18s;
}
.m-tab-item--cta:hover .m-tab-cta-pill {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(47,141,71,.6);
}
.m-tab-item--cta { font-size: .55rem; }

/* Body bottom padding for tab bar on mobile */
@media (max-width: 767px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .m-footer-app-sheet { display: flex; }
  .m-footer-desktop { display: none; }
  .m-tab-bar { display: flex; }
}

/* On desktop: hide app sheet + tab bar, show desktop footer */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .m-footer-app-sheet { display: none; }
  .m-footer-desktop { display: block; }
  .m-tab-bar { display: none; }
}

/* ═══════════════════════════════════════════════════════
   PROPOSAL MODAL - "Get a Proposal" popup form
═══════════════════════════════════════════════════════ */
.m-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.m-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.m-modal {
  background: var(--bg);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.m-modal-backdrop.is-open .m-modal {
  transform: translateY(0) scale(1);
}
.m-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.m-modal-close:hover { background: var(--bd); }
.m-modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 .35rem;
}
.m-modal-sub {
  font-size: .875rem;
  color: var(--text-2);
  margin: 0 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   GLASS EFFECT - tab bar & footer
═══════════════════════════════════════════════════════ */
/* Cyber theme drawer tint */
html[data-theme='warm-dark'] .m-mobile-menu {
  background: linear-gradient(165deg, #2a241c 0%, #1c1712 55%, #14110e 100%);
  border-left-color: rgba(242, 232, 220, 0.1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
html[data-theme='warm-dark'] .m-mm-head {
  background: rgba(28, 23, 18, 0.92);
}
html[data-theme='warm-dark'] .m-mm-location {
  color: var(--lime);
}
html[data-theme='phosphor-cyber'] .m-mobile-menu {
  background: linear-gradient(165deg, #0c1510 0%, #050a07 55%, #030805 100%);
  border-left-color: rgba(97, 205, 124, 0.2);
  box-shadow: -12px 0 40px rgba(97, 205, 124, 0.08);
}
html[data-theme='phosphor-cyber'] .m-mm-head {
  background: rgba(5, 10, 7, 0.95);
}
html[data-theme='phosphor-cyber'] .m-mm-location {
  color: var(--lime);
  text-shadow: 0 0 12px var(--glow);
}
html[data-theme='phosphor-cyber'] .m-mobile-menu .m-mm-link[aria-current='page'] {
  box-shadow: inset 3px 0 0 var(--lime), 0 0 20px rgba(97, 205, 124, 0.08);
}

/* Glass tab bar */
@media (max-width: 767px) {
  .m-tab-bar {
    background: rgba(18, 20, 26, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  [data-theme="phosphor-cyber"] .m-tab-bar {
    background: rgba(0, 16, 4, 0.9) !important;
  }
}

/* Glass footer app sheet */
@media (max-width: 767px) {
  .m-footer-app-sheet {
    background: rgba(14, 16, 22, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* ═══════════════════════════════════════════════════════
   NOTEBOOK CARDS (.m-card-nb) - for about page
═══════════════════════════════════════════════════════ */
.m-card-nb {
  position: relative;
  background: var(--surface);
  border-radius: 2px 12px 12px 2px;
  padding: 1.5rem 1.5rem 1.5rem 1.85rem;
  border: 1px solid var(--bd);
  overflow: hidden;
}
.m-card-nb::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green), var(--navy));
  border-radius: 2px 0 0 2px;
}
.m-nb-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin: 0 0 .5rem;
}
.m-nb-body {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   SERVICE POPUP MODAL - per-service enquiry
═══════════════════════════════════════════════════════ */
.m-svc-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: var(--r);
  border: 1.5px solid var(--green);
  color: var(--green);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.m-svc-popup-btn:hover {
  background: var(--green);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   BLOG — listing, article, shared components
═══════════════════════════════════════════════════════ */

/* Hero stats */
.m-blog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.m-blog-stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.m-blog-stat-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}
.m-blog-stat-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(220,228,240,.55);
}

/* Featured editorial card */
.m-blog-feat {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  background: var(--bg-s);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--bd);
  box-shadow: var(--sh-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
@media (min-width: 768px) {
  .m-blog-feat { grid-template-columns: 1.15fr 1fr; }
}
.m-blog-feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-xl);
  border-color: rgba(47,141,71,.22);
}
.m-blog-feat-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
@media (min-width: 768px) {
  .m-blog-feat-img { aspect-ratio: auto; min-height: 22rem; }
}
.m-blog-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.m-blog-feat:hover .m-blog-feat-img img { transform: scale(1.04); }
.m-blog-feat-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,14,20,.55) 100%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .m-blog-feat-img::after {
    background: linear-gradient(90deg, transparent 50%, rgba(10,14,20,.08) 100%);
  }
}
.m-blog-feat-read-chip {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: var(--r-full);
  background: rgba(10,14,20,.72);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
}
.m-blog-feat-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 640px) { .m-blog-feat-body { padding: 2.25rem 2.5rem; } }
.m-blog-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(47,141,71,.1);
  padding: .35rem .75rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(47,141,71,.18);
  margin-bottom: 1rem;
  width: fit-content;
}
.m-blog-feat-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 .85rem;
  text-wrap: balance;
}
.m-blog-feat-excerpt {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.75;
  text-wrap: pretty;
}
.m-blog-feat-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.m-blog-feat-author {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}
.m-blog-feat-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--green), var(--navy));
  color: #fff;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-blog-feat-date {
  font-size: .8rem;
  color: var(--text-2);
}
.m-blog-feat-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  transition: gap var(--t-fast), color var(--t-fast);
}
.m-blog-feat:hover .m-blog-feat-cta { gap: .55rem; color: var(--navy); }

/* Sticky filter bar */
.m-blog-filter-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  padding-block: 1rem;
  background: rgba(245,247,248,.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--bd);
}
html[data-theme='warm-dark'] .m-blog-filter-bar,
html[data-theme='phosphor-cyber'] .m-blog-filter-bar {
  background: rgba(20,17,14,.88);
}
.m-blog-filter-inner {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: center;
}
.m-blog-filter-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-right: .35rem;
}
.m-blog-tag {
  display: inline-flex;
  align-items: center;
  padding: .4rem .85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--bd);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-s);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.m-blog-tag:hover {
  border-color: rgba(47,141,71,.35);
  color: var(--green);
  transform: translateY(-1px);
}
.m-blog-tag:active { transform: scale(.97); }
.m-blog-tag.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(47,141,71,.22);
}

/* Post grid */
.m-blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .m-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .m-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.m-blog-grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.m-blog-grid-count {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-2);
  letter-spacing: .04em;
}

/* Blog cards — notebook accent */
.m-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-s);
  border-radius: var(--r-nb);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
  position: relative;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal), opacity var(--t-normal);
}
.m-blog-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green) 0%, var(--lime) 100%);
  border-radius: 2px 0 0 2px;
  z-index: 2;
}
.m-blog-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: rgba(47,141,71,.25);
}
.m-blog-card.is-hidden {
  display: none;
}
.m-blog-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.m-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.m-blog-card:hover .m-blog-card-img img { transform: scale(1.05); }
.m-blog-card-read {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
html[data-theme='warm-dark'] .m-blog-card-read,
html[data-theme='phosphor-cyber'] .m-blog-card-read {
  background: rgba(20,17,14,.88);
  color: var(--text);
}
.m-blog-card-body {
  padding: 1.25rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.m-blog-card-cat {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .55rem;
}
.m-blog-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -.015em;
  line-height: 1.4;
  margin: 0 0 .6rem;
  text-wrap: balance;
  transition: color var(--t-fast);
}
.m-blog-card:hover .m-blog-card-title { color: var(--green); }
.m-blog-card-excerpt {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  text-wrap: pretty;
}
.m-blog-card-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bd);
  font-size: .75rem;
  color: var(--text-2);
}
.m-blog-card-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--navy), var(--plum));
  color: #fff;
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-blog-card-author { font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.m-blog-card-date { font-family: var(--font-mono); font-size: .68rem; white-space: nowrap; }

/* Pagination */
.m-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.m-blog-pagination .m-btn[aria-current='page'] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* Newsletter */
.m-blog-newsletter {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}
.m-blog-nl-card {
  padding: 2.5rem 2rem;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 640px) { .m-blog-nl-card { padding: 3rem 2.5rem; } }
.m-blog-nl-form {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}
.m-blog-nl-form .m-input {
  flex: 1;
  min-width: 14rem;
  max-width: 18rem;
}
.m-blog-nl-feedback {
  margin-top: .85rem;
  font-size: .8rem;
  min-height: 1.25rem;
}

/* ── Article page ── */
.m-post-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--lime));
  z-index: 9998;
  transition: width .08s linear;
  pointer-events: none;
}
.m-post-wrap { max-width: 44rem; margin-inline: auto; }

/* Post two-column layout */
.m-post-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .m-post-layout {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    gap: 3rem;
  }
}
.m-post-main { min-width: 0; max-width: 44rem; }
.m-post-sidebar { min-width: 0; }
.m-post-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 960px) {
  .m-post-sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h, 4rem) + 1.25rem);
  }
}

.m-post-toc-card,
.m-post-ai-card,
.m-post-side-links {
  padding: 1.1rem 1.15rem;
  border-radius: var(--r-nb);
  background: var(--bg-s);
  border: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
}
.m-post-toc-label,
.m-post-side-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.m-post-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.m-post-toc-link {
  display: block;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text-2);
  text-decoration: none;
  padding: .35rem .5rem;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.m-post-toc-link:hover,
.m-post-toc-link.is-active {
  color: var(--green);
  background: rgba(47,141,71,.06);
  border-left-color: var(--green);
}
.m-post-ai-card {
  background: linear-gradient(145deg, rgba(47,141,71,.08), rgba(168,208,48,.06));
  border-color: rgba(47,141,71,.2);
}
.m-post-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-md);
  background: var(--green);
  color: #fff;
  margin-bottom: .65rem;
}
.m-post-ai-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .4rem;
}
.m-post-ai-text {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: .85rem;
}
.m-post-side-link {
  display: block;
  font-size: .84rem;
  color: var(--text-2);
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 1px solid var(--bd);
  transition: color var(--t-fast);
}
.m-post-side-link:last-child { border-bottom: none; }
.m-post-side-link:hover { color: var(--green); }

.m-post-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  margin-bottom: 2rem;
  padding: .4rem .75rem .4rem .5rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.m-post-back:hover {
  color: var(--green);
  background: rgba(47,141,71,.06);
  border-color: rgba(47,141,71,.15);
}
.m-post-back svg { transition: transform var(--t-fast); }
.m-post-back:hover svg { transform: translateX(-2px); }

.m-post-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bd);
}
.m-post-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: .85rem 0 1.35rem;
  text-wrap: balance;
}
.m-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 0;
}
.m-post-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .35rem .75rem;
  border-radius: var(--r-full);
  background: var(--bg-s);
  border: 1px solid var(--bd);
  color: var(--text-2);
}
.m-post-meta-chip--accent {
  background: rgba(47,141,71,.08);
  border-color: rgba(47,141,71,.2);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.m-post-cover {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 2.5rem;
  box-shadow: var(--sh-md);
  border: 1px solid var(--bd);
}
.m-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-post-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-2);
}
.m-post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: .85;
  padding: .08rem .55rem 0 0;
  color: var(--green);
}
.m-post-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 2.5rem 0 .85rem;
  text-wrap: balance;
}
.m-post-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  margin: 1.85rem 0 .65rem;
}
.m-post-body p { margin: 0 0 1.35rem; text-wrap: pretty; }
.m-post-body ul, .m-post-body ol { margin: 0 0 1.35rem 1.35rem; padding: 0; }
.m-post-body li { margin-bottom: .55rem; padding-left: .25rem; }
.m-post-body ul { list-style: disc; }
.m-post-body ol { list-style: decimal; }
.m-post-body strong { color: var(--text); font-weight: 700; }
.m-post-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.m-post-body a:hover { color: var(--navy); }
.m-post-body blockquote {
  border-left: 3px solid var(--green);
  margin: 2rem 0;
  padding: 1.15rem 1.5rem;
  background: rgba(47,141,71,.05);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

.m-post-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-xl);
  background: var(--bg-s);
  border: 1px solid var(--bd);
}
.m-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--green), var(--navy));
  color: #fff;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-post-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin: 0 0 .25rem;
}
.m-post-author-bio {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.m-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bd);
}
.m-post-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .35rem .8rem;
  border-radius: var(--r-full);
  background: var(--bg-s);
  color: var(--text-2);
  border: 1px solid var(--bd);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.m-post-tag:hover {
  background: rgba(47,141,71,.08);
  color: var(--green);
  border-color: rgba(47,141,71,.25);
}

.m-post-share {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.m-post-share-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-right: .25rem;
}
.m-post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--bd);
  background: var(--bg-s);
  color: var(--text-2);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.m-post-share-btn:hover {
  border-color: rgba(47,141,71,.3);
  color: var(--green);
  transform: translateY(-1px);
}
.m-post-share-btn:active { transform: scale(.97); }

/* Related posts */
.m-related-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .m-related-grid { grid-template-columns: repeat(3, 1fr); } }

.m-related-card {
  border-radius: var(--r-nb);
  overflow: hidden;
  background: var(--bg-s);
  border: 1px solid var(--bd);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.m-related-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green), var(--lime));
  z-index: 1;
}
.m-related-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
  border-color: rgba(47,141,71,.22);
}
.m-related-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.m-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.m-related-card:hover .m-related-card-img img { transform: scale(1.04); }
.m-related-card-body { padding: 1rem 1.1rem 1.15rem; }
.m-related-card-cat {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.m-related-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
  transition: color var(--t-fast);
}
.m-related-card:hover .m-related-card-title { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .m-blog-feat:hover,
  .m-blog-card:hover,
  .m-related-card:hover { transform: none; }
  .m-blog-feat:hover .m-blog-feat-img img,
  .m-blog-card:hover .m-blog-card-img img,
  .m-related-card:hover .m-related-card-img img { transform: none; }
}

/* ═══════════════════════════════════════
   AI CONSULTATION
═══════════════════════════════════════ */
.m-ai-hero {
  padding: 6.5rem 0 3.25rem;
  background: linear-gradient(160deg, var(--plum) 0%, var(--navy) 60%, #0a0e14 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bd);
}
.m-ai-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.m-ai-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168,208,48,.14), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(47,141,71,.18), transparent 60%);
}
.m-ai-hero > .m-container { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .m-ai-hero { padding: 5.5rem 0 2.5rem; }
}
.m-ai-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .m-ai-layout { grid-template-columns: 18rem minmax(0, 1fr); gap: 2rem; }
}
.m-ai-info-card { position: relative; overflow: hidden; }
.m-ai-info-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .85rem;
}
.m-ai-info-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(168,208,48,.25);
  animation: m-ai-pulse 2s ease infinite;
}
@keyframes m-ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.m-ai-info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: .5rem;
}
.m-ai-info-text {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: .85rem;
}
.m-ai-info-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--text-2);
}
.m-ai-info-note {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-3);
  padding-top: .75rem;
  border-top: 1px solid var(--bd);
}
.m-ai-side-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.m-ai-panel {
  border-radius: var(--r-xl);
  background: var(--bg-s);
  border: 1px solid var(--bd);
  box-shadow: var(--sh-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}
.m-ai-panel-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--bd);
  background: linear-gradient(90deg, rgba(47,141,71,.06), transparent);
}
.m-ai-panel-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--green), var(--navy));
  color: #fff;
}
.m-ai-panel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.m-ai-panel-sub {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: .1rem;
}

.m-ai-lead-panel {
  padding: 1.25rem 1.15rem 1.5rem;
  flex: 1;
}
.m-ai-lead-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .35rem;
}
.m-ai-lead-sub {
  font-size: .84rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.m-ai-lead-form .m-field + .m-field { margin-top: .75rem; }
.m-ai-lead-error {
  font-size: .8rem;
  color: #e05252;
  margin: .65rem 0 0;
}

.m-ai-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 22rem;
}
.m-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: min(52vh, 28rem);
}
.m-ai-msg {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  max-width: 92%;
}
.m-ai-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.m-ai-msg-avatar {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 700;
}
.m-ai-msg--bot .m-ai-msg-avatar {
  background: linear-gradient(135deg, var(--green), var(--navy));
  color: #fff;
}
.m-ai-msg--user .m-ai-msg-avatar {
  background: var(--bg);
  border: 1px solid var(--bd);
  color: var(--text-2);
}
.m-ai-msg-bubble {
  padding: .65rem .85rem;
  border-radius: var(--r-lg);
  font-size: .86rem;
  line-height: 1.55;
}
.m-ai-msg--bot .m-ai-msg-bubble {
  background: var(--bg);
  border: 1px solid var(--bd);
  color: var(--text-2);
  border-top-left-radius: .25rem;
}
.m-ai-msg--user .m-ai-msg-bubble {
  background: var(--green);
  color: #fff;
  border-top-right-radius: .25rem;
}
.m-ai-msg-bubble--actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  background: var(--bg);
  border: 1px solid var(--bd);
}
.m-ai-typing {
  font-size: .75rem;
  color: var(--text-3);
  font-style: italic;
  padding: 0 1.15rem .5rem;
}

.m-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 1.15rem .75rem;
}
.m-ai-chip {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .02em;
  padding: .35rem .65rem;
  border-radius: var(--r-full);
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.m-ai-chip:hover {
  border-color: rgba(47,141,71,.35);
  color: var(--green);
  background: rgba(47,141,71,.05);
}

.m-ai-chat-form {
  display: flex;
  gap: .5rem;
  padding: .85rem 1.15rem 1rem;
  border-top: 1px solid var(--bd);
  background: var(--bg-s);
}
.m-ai-input {
  flex: 1;
  min-width: 0;
  padding: .7rem .9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--text);
  font-size: .88rem;
}
.m-ai-input:focus {
  outline: none;
  border-color: rgba(47,141,71,.45);
  box-shadow: 0 0 0 3px rgba(47,141,71,.12);
}
.m-ai-send {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
}
.m-ai-send:hover { background: var(--navy); }
.m-ai-send:active { transform: scale(.96); }

/* AI chat — mobile refinements */
@media (max-width: 899px) {
  .m-ai-layout { gap: 1rem; }
  .m-ai-panel {
    order: -1;
    min-height: 0;
    border-radius: var(--r-lg);
  }
  .m-ai-panel-head { padding: .85rem 1rem; }
  .m-ai-panel-avatar { width: 2.25rem; height: 2.25rem; }
  .m-ai-lead-panel { padding: 1.1rem 1rem 1.25rem; }
  .m-ai-messages {
    padding: .85rem .9rem;
    gap: .6rem;
    max-height: 60vh;
    min-height: 16rem;
    -webkit-overflow-scrolling: touch;
  }
  .m-ai-msg { max-width: 90%; }
  .m-ai-msg-bubble { font-size: .9rem; }
  .m-ai-suggestions { padding: 0 .9rem .6rem; }
  .m-ai-chip { font-size: .7rem; padding: .4rem .7rem; }
  .m-ai-chat-form { padding: .7rem .9rem calc(.8rem + env(safe-area-inset-bottom)); }
  .m-ai-input { font-size: 16px; padding: .75rem .95rem; }
  .m-ai-send { width: 2.85rem; height: 2.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .m-ai-info-dot { animation: none; }
}

/* Academy catalogue */
.m-academy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--bd);
}
.m-academy-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .65rem;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
}
.m-academy-nav a:hover { color: var(--accent-dk); }
.m-academy-section-head { margin-bottom: 1.5rem; }
.m-academy-section-head .m-sec-lead { margin-inline: 0; }
.m-academy-course-list {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .m-academy-course-list:not(.m-academy-course-list--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .m-academy-course-list:not(.m-academy-course-list--single) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.m-academy-course-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.5rem;
  height: 100%;
  padding: .75rem 1rem;
  background: var(--bg-s);
  border: 1px solid var(--bd2);
  border-radius: var(--r-lg);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.m-academy-course-list a::after { content: ''; flex: none; width: .45rem; height: .45rem; border-top: 2px solid var(--accent-dk); border-right: 2px solid var(--accent-dk); transform: rotate(45deg); }
.m-academy-course-list a:hover { background: var(--bg-s2); border-color: var(--accent-dk); }
.m-academy-split { display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 768px) {
  .m-academy-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.m-academy-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.m-academy-list {
  display: grid;
  gap: .65rem;
  color: var(--text-2);
  padding-inline-start: 1.2rem;
}
.m-academy-list li::marker { color: var(--accent-dk); }
.m-academy-list a, .m-academy-contact a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: .2em; }
.m-academy-options { align-self: stretch; }
.m-academy-options .m-academy-list { margin-block: 1.15rem; }
.m-academy-options .m-text-muted { font-size: .875rem; }
.m-academy-enquire { align-items: start; }
.m-academy-enquire form { display: grid; gap: 1rem; }
.m-academy-contact { margin-top: 1.5rem; color: var(--text); line-height: 1.9; }
.m-academy-parent-note { font-size: .85rem; }
.m-academy-course-list a, .m-academy-nav a { overflow-wrap: anywhere; }
#m-contact-form .m-field[hidden] { display: none; }
:is(#professional-courses, #kids-courses, #training-programmes, #training-options, #m-enroll, #m-register) { scroll-margin-top: 6rem; }
