/* basselaasi.com design system */
:root {
  --ink: #0b1324;
  --ink-2: #1e293b;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --navy: #0a1931;
  --navy-2: #12264a;
  --brand: #1d5bd8;
  --brand-ink: #1748ad;
  --brand-soft: #e8f0fe;
  --accent: #10b4c8;
  --ok: #0f9d6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 25, 49, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .98rem/1 var(--font); padding: 15px 24px; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 91, 216, .6); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef3ff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 70%, var(--accent) 100%);
  color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: .02em;
}
.brand small { display: block; font: 500 .74rem/1.2 var(--font); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(16, 180, 200, .22), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(29, 91, 216, .35), transparent 60%),
    var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: #7dd3fc; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 .hl { background: linear-gradient(90deg, #7dd3fc, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.2rem; color: #b8c4d6; max-width: 600px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #94a3b8; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: #34d399; }
.hero-card { position: relative; max-width: 420px; justify-self: end; width: 100%; }
.hero-photo {
  border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--navy-2);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .86rem; line-height: 1.3; font-weight: 600;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.float-chip .chip-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float-chip.c1 { left: -44px; bottom: 64px; }
.float-chip.c2 { right: -24px; top: 36px; }

.page-hero { padding: 80px 0 72px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.page-hero .hero-sub { margin-bottom: 0; }
.crumbs { font-size: .88rem; color: #94a3b8; margin-bottom: 18px; }
.crumbs a { color: #cbd5e1; }
.crumbs a:hover { color: #fff; }

/* Trust strip */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; flex: none; font-family: var(--font-display); }
.trust-item strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.trust-item span { font-size: .82rem; color: var(--muted); }
.b-azure { background: linear-gradient(135deg, #0078d4, #50a0f0); }
.b-aws { background: linear-gradient(135deg, #232f3e, #ff9900); }
.b-tf { background: linear-gradient(135deg, #5c4ee5, #844fba); }
.b-pmp { background: linear-gradient(135deg, #0f766e, #14b8a6); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat b { display: block; font: 800 2.4rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; margin-bottom: 10px; }
.stat b em { font-style: normal; color: var(--brand); }
.stat span { color: var(--muted); font-size: .95rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover, .card.hover:hover { border-color: #bfd2f8; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 22px;
}
.card .ic .icon { width: 24px; height: 24px; }
.card .card-foot { margin-top: auto; padding-top: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--body); font-size: .96rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5bd8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 20px; color: var(--muted); font-size: .9rem; }
.price b { font: 800 1.6rem/1 var(--font-display); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font: 800 1rem/1 var(--font-display); color: #fff; background: var(--ink);
}
.step::after { content: ""; position: absolute; top: 23px; left: 58px; right: -12px; height: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); margin: 0; }
.steps-v { grid-template-columns: 1fr !important; row-gap: 26px; }
.steps-v .step { padding: 0 0 0 64px; min-height: 46px; }
.steps-v .step::after { display: none; }

/* Case studies */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.case + .case { margin-top: 28px; }
.case-body { padding: 40px; }
.case-side { padding: 40px; background: var(--bg-soft); border-left: 1px solid var(--line); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.case-results div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .9rem; color: var(--body); line-height: 1.4; }
.case-results b { display: block; font: 800 1.5rem/1.1 var(--font-display); color: var(--brand); margin-bottom: 4px; }
.case-side h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.split-media .float-chip { left: auto; right: -20px; bottom: 28px; }

/* Articles */
.post-card { padding: 0; overflow: hidden; }
.post-card .post-top {
  height: 8px; background: linear-gradient(90deg, var(--brand), var(--accent));
}
.post-card .post-in { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.post-card h3 { font-size: 1.18rem; line-height: 1.35; }
.post-card p { font-size: .96rem; }
.post-card .card-foot { padding-top: 6px; }

/* Blog index */
.blog-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; font: inherit; font-size: .98rem; padding: 13px 14px 13px 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .85rem/1 var(--font); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.featured-post { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 40px; background: #fff; color: inherit; transition: box-shadow .2s, border-color .2s; }
.featured-post:hover { box-shadow: var(--shadow); border-color: #bfd2f8; color: inherit; }
.featured-post .fp-body { padding: 44px; }
.featured-post .fp-art {
  background: radial-gradient(400px 260px at 80% 20%, rgba(16, 180, 200, .35), transparent 60%), linear-gradient(135deg, var(--navy), var(--brand));
  display: grid; place-items: center; padding: 40px; color: #fff; min-height: 260px;
}
.fp-art code { font: 500 .85rem/1.7 var(--mono); color: #c7d7f5; white-space: pre; display: block; background: rgba(5, 12, 26, .45); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 20px 24px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--body); max-width: 760px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .86em; background: #eef2f7; color: #0f2a5a; padding: .12em .4em; border-radius: 5px; }
.prose pre { background: #0b1324; color: #e2e8f0; padding: 20px 22px; border-radius: 12px; overflow-x: auto; margin: 0 0 1.5em; line-height: 1.6; border: 1px solid #1e293b; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: .84rem; }
.prose .note { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.5em; font-size: 1rem; }
.prose .note code { background: #fff; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article-head { max-width: 860px; }
.article-head .post-meta { color: #94a3b8; margin: 18px 0 0; font-size: .92rem; }
.article-head .tags { margin-top: 18px; }
.article-head .tag { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #dbe5f3; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.aside-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand); }
.aside-cta { background: var(--navy); color: #cbd5e1; border: 0; }
.aside-cta h4 { color: #7dd3fc; }
.aside-cta p { font-size: .94rem; }
.author { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 48px; background: var(--bg-soft); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author p { margin: 0; color: var(--muted); font-size: .95rem; }
.author strong { color: var(--ink); display: block; font-size: 1.05rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 600; }
.form-card { border: 1px solid var(--line); border-radius: 18px; padding: 36px; background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.ok { background: #e7f8f0; color: #0b6b49; }
.form-msg.err { background: #fdecec; color: #a3201b; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font: 700 1.08rem/1.4 var(--font-display); color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px; color: #cbd5e1;
  background: radial-gradient(600px 300px at 90% 0%, rgba(16, 180, 200, .3), transparent 60%), linear-gradient(135deg, var(--navy), #143a7a);
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 620px; }
.cta-band .hero-ctas { margin: 0; justify-content: flex-end; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 72px 0 32px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: #94a3b8; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.social a:hover { background: rgba(255, 255, 255, .12); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .86rem; }

/* Training pages (legacy markup restyled) */
.training-content { padding: 72px 0; }
.training-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.training-main { font-size: 1.04rem; line-height: 1.8; }
.training-main h2 { font-size: 1.55rem; margin: 2em 0 .6em; }
.training-main h2:first-child { margin-top: 0; }
.training-main h3 { margin-top: 1.6em; }
.topic-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.topic-list li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; line-height: 1.55; font-size: .98rem; }
.topic-list li i { color: var(--brand); width: 20px; text-align: center; margin-top: 4px; flex: none; }
.code-block { background: #0b1324; color: #e2e8f0; border-radius: 12px; padding: 20px 22px; overflow-x: auto; margin: 0 0 1.5em; border: 1px solid #1e293b; }
.code-block code, .code-block pre { font: 500 .82rem/1.6 var(--mono); white-space: pre; color: inherit; background: none; margin: 0; }
.training-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.sidebar-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.sidebar-card p { font-size: .94rem !important; }
.quick-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.quick-links li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.quick-links i { color: var(--brand); font-size: .75rem; }
.quick-links a { color: var(--ink-2); }
.quick-links a:hover { color: var(--brand); }
.training-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.training-meta span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #dbe5f3; }
.related-training { padding: 72px 0 96px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.related-training .section-header { margin-bottom: 28px; }
.related-training .section-title { font-size: 1.6rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s; }
.related-card:hover { border-color: #bfd2f8; box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.related-card h4 { display: flex; gap: 10px; align-items: center; }
.related-card h4 i { color: var(--brand); }
.related-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Course catalog */
.course .lvl { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; counter-reset: p; }
.path li { counter-increment: p; display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.path li::before { content: counter(p); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 800; flex: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, a.card { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap, .training-content-grid { grid-template-columns: 1fr; }
  .aside-sticky, .training-sidebar { position: static; }
  .float-chip.c1 { left: -12px; }
  .float-chip.c2 { right: -8px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px 32px; gap: 4px; border-top: 1px solid var(--line); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { font-size: 1.1rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 18px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero-card { justify-self: center; max-width: 360px; }
  .grid-3, .grid-2, .paths, .related-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { max-width: 420px; }
  .case { grid-template-columns: 1fr; }
  .case-side { border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-art { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-band .hero-ctas { justify-content: flex-start; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid-4, .stats, .steps, .trust-inner, .form-row, .case-results { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-body, .case-side, .form-card, .featured-post .fp-body { padding: 26px; }
  .card { padding: 24px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .float-chip { display: none; }
  .cta-band { padding: 36px 22px; border-radius: 18px; }
  .author { flex-direction: column; align-items: flex-start; }
}

/* Booking card (contact page) */
.book-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid #bfd2f8; background: var(--brand-soft); border-radius: 14px; padding: 20px 22px; margin: 0 0 28px; }
.book-card strong { display: block; color: var(--ink); font-size: 1.05rem; }
.book-card span { color: var(--body); font-size: .94rem; }

/* Featured series banner (training) */
.series-banner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-top: 8px; }
.series-banner .sb-body { padding: 40px; }
.series-banner .sb-art { background: radial-gradient(500px 300px at 80% 10%, rgba(16, 180, 200, .3), transparent 60%), linear-gradient(135deg, var(--navy), var(--brand)); color: #dbe5f3; padding: 36px; display: grid; align-content: center; gap: 12px; }
.sb-art a { display: flex; gap: 14px; align-items: center; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px 16px; }
.sb-art a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.sb-art b { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--navy); font-family: var(--font-display); }
.sb-art small { display: block; color: #b8c4d6; font-size: .82rem; }

/* Lesson player */
.lesson-player { margin: 0; background: #0b1324; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); color: #e2e8f0; }
.lesson-player:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lesson-player:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.lesson-player:fullscreen .lp-stage { max-height: calc(100vh - 170px); aspect-ratio: 16 / 9; margin: 0 auto; width: auto; }
.lp-stage { background: #f8fafc; aspect-ratio: 16 / 9; width: 100%; }
.lesson-svg { width: 100%; height: 100%; display: block; font-family: var(--font); }
.lesson-svg .bg { fill: #f8fafc; }
.lesson-svg .st { font: 800 40px var(--font-display); fill: #0b1324; letter-spacing: -0.5px; }
.lesson-svg .note-t { font-size: 19px; fill: #64748b; font-style: italic; }
.lesson-svg .t { font-size: 27px; font-weight: 700; fill: #0b1324; }
.lesson-svg .th { font-size: 21px; font-weight: 700; fill: #475569; letter-spacing: .5px; }
.lesson-svg .ts { font-size: 22px; fill: #334155; }
.lesson-svg .tsm { font-size: 19px; fill: #334155; }
.lesson-svg .tm { font: 600 21px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: #0f2a5a; }
.lesson-svg .lbl { font-size: 19px; font-weight: 700; fill: #1d5bd8; text-transform: uppercase; letter-spacing: 1px; }
.lesson-svg .ok { font-size: 23px; font-weight: 800; fill: #0b6b49; }
.lesson-svg .bad { font-size: 25px; font-weight: 800; fill: #a3201b; }
.lesson-svg .badge-t { font-size: 18px; font-weight: 800; fill: #1d5bd8; letter-spacing: 1px; }
.lesson-svg .n { fill: #fff; stroke: #94a3b8; stroke-width: 2.5; }
.lesson-svg .nb { fill: #e8f0fe; stroke: #1d5bd8; stroke-width: 2.5; }
.lesson-svg .n.dash { stroke-dasharray: 8 6; }
.lesson-svg .zone { fill: none; stroke: #64748b; stroke-width: 2.5; stroke-dasharray: 12 9; }
.lesson-svg .zone-b { fill: rgba(29, 91, 216, .045); stroke: #1d5bd8; stroke-width: 2.5; stroke-dasharray: 12 9; }
.lesson-svg .host { fill: #e2e8f0; stroke: #94a3b8; stroke-width: 2; }
.lesson-svg .panel { fill: #fff; stroke: #1d5bd8; stroke-width: 2.5; filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .18)); }
.lesson-svg .note { fill: #fff7e6; stroke: #d97706; stroke-width: 2; }
.lesson-svg .pill { fill: #fff; stroke: #1d5bd8; stroke-width: 2; }
.lesson-svg .row { fill: #f1f5f9; stroke: #94a3b8; stroke-width: 2; }
.lesson-svg .bar, .lesson-svg .bar-b { fill: #cbd5e1; }
.lesson-svg .bar-b { fill: #93b4f0; }
.lesson-svg .dotc { fill: #94a3b8; }
.lesson-svg .ph { fill: #eef2f7; }
.lesson-svg .fold { fill: #e2e8f0; stroke: #64748b; stroke-width: 2; }
.lesson-svg .box { fill: #fff; stroke: #0b6b49; stroke-width: 2.5; }
.lesson-svg .tick { fill: none; stroke: #0b6b49; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lesson-svg .arrowhead { fill: #1d5bd8; }
.lesson-svg .arrowhead.deny { fill: #a3201b; }

.lesson-svg .el { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.lesson-svg .el.on { opacity: 1; transform: none; }
.lp-stage.has-focus .lesson-svg .el.on:not(.focus) { opacity: .28; }
.lesson-svg .el.focus .hl { stroke: #d97706; stroke-width: 5; }
.lesson-svg .flow { fill: none; stroke: #1d5bd8; stroke-width: 5; stroke-dasharray: 14 11; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.lesson-svg .flow.deny { stroke: #a3201b; stroke-dasharray: 6 9; }
.lesson-svg .flow.active { opacity: 1; animation: lp-dash 1s linear infinite; }
.lesson-svg .mover circle { fill: #1d5bd8; stroke: #fff; stroke-width: 4; }
.lesson-svg .mover-file rect { fill: #fff; stroke: #1d5bd8; stroke-width: 4; }
@keyframes lp-dash { to { stroke-dashoffset: -25; } }

.lp-cap { padding: 16px 22px 6px; min-height: 106px; }
.lp-cap-meta { font-size: .8rem; color: #94a3b8; letter-spacing: .02em; margin: 0 0 6px; }
.lp-cap-text { margin: 0; font-size: 1.02rem; line-height: 1.6; color: #f1f5f9; }
.no-cc .lp-cap-text { display: none; }
.lp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px 16px; }
.lp-btn { display: inline-flex; align-items: center; gap: 7px; font: 600 .88rem/1 var(--font); color: #e2e8f0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.lp-btn:hover { background: rgba(255, 255, 255, .15); }
.lp-btn[aria-pressed="true"] { background: #fff; color: #0b1324; border-color: #fff; }
.lp-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.lp-btn .icon { width: 1.05em; height: 1.05em; }
.lp-time { font: 600 .85rem ui-monospace, Menlo, monospace; color: #b8c4d6; margin-left: auto; }
.lp-progress { display: flex; gap: 3px; height: 8px; padding: 0 16px; }
.lp-seg { flex: 1 1 0; border: 0; padding: 0; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); cursor: pointer; position: relative; overflow: hidden; }
.lp-seg.done { background: #7dd3fc; }
.lp-seg.cur { background: rgba(125, 211, 252, .35); }
.is-playing .lp-seg.cur::after { content: ""; position: absolute; inset: 0; background: #7dd3fc; transform-origin: left; animation: lp-fill var(--d, 10s) linear var(--off, 0s) forwards; }
@keyframes lp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-mobile-tip { display: none; font-size: .82rem; color: #94a3b8; padding: 0 22px 12px; margin: 0; }
.reduced .lesson-svg .el, .reduced .lesson-svg .flow { transition: none; transform: none; }
.reduced .lesson-svg .flow.active { animation: none; }
.reduced .is-playing .lp-seg.cur::after, .reduced.is-playing .lp-seg.cur::after { animation: none; transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .lesson-svg .el, .lesson-svg .flow { transition: none; transform: none; }
  .lesson-svg .flow.active { animation: none; }
}
@media (max-width: 700px) {
  .lp-mobile-tip { display: block; }
  .lp-cap { min-height: 0; }
  .lp-btn span.opt { display: none; }
}

/* Lesson page content */
.lesson-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lesson-meta span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #dbe5f3; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sb-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 880px; }
.sb-table th, .sb-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sb-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; }
.sb-table td:first-child { white-space: nowrap; font: 600 .82rem ui-monospace, Menlo, monospace; color: var(--brand); }
.sb-table tr:last-child td { border-bottom: 0; }
.sb-table ul { margin: 0; padding-left: 1.1em; }
.quiz { display: grid; gap: 18px; }
.quiz .q { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; }
.quiz .q h3 { font-size: 1.05rem; margin-bottom: 12px; }
.quiz ol { margin: 0 0 12px; padding-left: 1.4em; color: var(--body); }
.quiz details summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.quiz details p { margin: 10px 0 0; color: var(--body); }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.lesson-nav a { flex: 1 1 260px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--ink); font-weight: 700; background: #fff; }
.lesson-nav a small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-bottom: 4px; }
.lesson-nav a:hover { border-color: #bfd2f8; box-shadow: var(--shadow); }
.lesson-nav .next { text-align: right; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: 6px; }
@media (max-width: 900px) {
  .series-banner { grid-template-columns: 1fr; }
  .series-banner .sb-body { padding: 28px; }
}
.static-diagram .el { opacity: 1; transform: none; }
.static-diagram #b-types, .static-diagram #b-anon, .static-diagram #b-new { display: none; }
.static-diagram .flow:not(.deny) { opacity: 1; }

/* Training sub-menu in the main navigation */
.nav-sub { position: relative; display: flex; align-items: center; }
.nav .nav-sub > a { padding-right: 4px; }
.nav-sub-toggle { display: inline-flex; background: none; border: 0; padding: 8px 6px; border-radius: 8px; color: var(--ink-2); cursor: pointer; }
.nav-sub-toggle:hover { background: var(--bg-soft); }
.nav-sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-sub-menu { position: absolute; top: 100%; left: 0; margin-top: 6px; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; z-index: 60; }
.nav-sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .nav-sub-menu a { display: block; padding: 10px 12px; }
.nav-sub:hover .nav-sub-menu, .nav-sub.open .nav-sub-menu { display: flex; }
.nav-sub.open .nav-sub-toggle .icon { transform: rotate(180deg); }
@media (max-width: 900px) {
  .nav-sub { flex-wrap: wrap; }
  .nav .nav-sub > a { flex: 1 1 auto; padding-right: 8px; }
  .nav-sub-toggle { display: none; }
  .nav-sub-menu { position: static; display: flex; margin: 0; min-width: 0; width: 100%; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 0 18px; }
  .nav-sub-menu::before { display: none; }
  .nav .nav-sub-menu a { font-size: 1rem; padding: 12px 8px; }
}

/* Lesson diagram animations. Each one only animates *into* the element's natural
   state, so reduced motion and the static view simply switch them off. */
.lesson-svg .pop, .lesson-svg .grow-y, .lesson-svg .grow-x, .lesson-svg .pulse, .lesson-svg .spin, .lesson-svg .bob { transform-box: fill-box; transform-origin: center; }
.lesson-svg .grow-y { transform-origin: bottom; }
.lesson-svg .grow-x { transform-origin: left; }
.lesson-svg .el.on .pop { animation: lp-pop .55s cubic-bezier(.2, .9, .3, 1.35) both; animation-delay: var(--d, 0s); }
.lesson-svg .el.on .fade { animation: lp-fade .6s ease both; animation-delay: var(--d, 0s); }
.lesson-svg .el.on .rise { animation: lp-rise .6s ease both; animation-delay: var(--d, 0s); }
.lesson-svg .el.on .grow-y { animation: lp-grow-y var(--t, .9s) cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--d, 0s); }
.lesson-svg .el.on .grow-x { animation: lp-grow-x var(--t, .9s) cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--d, 0s); }
.lesson-svg .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lesson-svg .el.on .draw { animation: lp-draw var(--t, 1.6s) ease-in-out both; animation-delay: var(--d, 0s); }
.lesson-svg .el.act .pulse { animation: lp-pulse 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.lesson-svg .el.act .spin { animation: lp-spin 6s linear infinite; }
.lesson-svg .el.act .bob { animation: lp-bob 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.lesson-svg .el.act .glow { animation: lp-glow 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes lp-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes lp-fade { from { opacity: 0; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes lp-grow-y { from { transform: scaleY(0); } }
@keyframes lp-grow-x { from { transform: scaleX(0); } }
@keyframes lp-draw { from { stroke-dashoffset: 1; } }
@keyframes lp-pulse { 50% { transform: scale(1.07); } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-bob { 50% { transform: translateY(-10px); } }
@keyframes lp-glow { 50% { opacity: .35; } }
.reduced .lesson-svg *, .is-static .lesson-svg * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .lesson-svg * { animation: none !important; } }
/* Extra diagram styles used by the certification lessons */
.lesson-svg .tl { font: 800 31px var(--font-display); fill: #0b1324; }
.lesson-svg .tx { font-size: 25px; fill: #1e293b; }
.lesson-svg .tw { font-size: 24px; font-weight: 700; fill: #fff; }
.lesson-svg .ta { font-size: 24px; font-weight: 700; fill: #9a3412; }
.lesson-svg .tg { font-size: 24px; font-weight: 700; fill: #0b6b49; }
.lesson-svg .tr { font-size: 24px; font-weight: 700; fill: #a3201b; }
.lesson-svg .num { font: 800 26px var(--font-display); fill: #fff; }
.lesson-svg .fill-b { fill: #1d5bd8; }
.lesson-svg .fill-lb { fill: #93b4f0; }
.lesson-svg .fill-a { fill: #f59e0b; }
.lesson-svg .fill-al { fill: rgba(245, 158, 11, .22); }
.lesson-svg .fill-r { fill: rgba(163, 32, 27, .16); }
.lesson-svg .fill-g { fill: #0f9d6b; }
.lesson-svg .fill-n { fill: #0b1324; }
.lesson-svg .fill-s { fill: #e2e8f0; }
.lesson-svg .line { fill: none; stroke: #64748b; stroke-width: 3; }
.lesson-svg .line-b { fill: none; stroke: #1d5bd8; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.lesson-svg .line-a { fill: none; stroke: #d97706; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 14 10; }
.lesson-svg .line-k { fill: none; stroke: #0b1324; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lesson-svg .line-r { fill: none; stroke: #a3201b; stroke-width: 6; stroke-linecap: round; }
.lesson-svg .chip { fill: #fff; stroke: #cbd5e1; stroke-width: 2.5; }
.lesson-svg .el.focus .chip, .lesson-svg .el.act .chip { fill: #e8f0fe; stroke: #1d5bd8; stroke-width: 3.5; }
.lesson-svg .badge-c { fill: #94a3b8; }
.lesson-svg .el.focus .badge-c, .lesson-svg .el.act .badge-c { fill: #1d5bd8; }
.lesson-svg .globe { fill: #e8f0fe; stroke: #1d5bd8; stroke-width: 3; }
.lesson-svg .grid-l { fill: none; stroke: #93b4f0; stroke-width: 2; }
.lesson-svg .line-g { fill: none; stroke: #0f9d6b; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.lesson-svg .line-rd { fill: none; stroke: #a3201b; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 10; }
.lesson-svg .unit { fill: #1e293b; stroke: #475569; stroke-width: 2; }
.lesson-svg .led { fill: #34d399; }
.lesson-svg .person { fill: #93b4f0; }
.lesson-svg .el.focus .person, .lesson-svg .person.hot { fill: #1d5bd8; }
.lesson-svg .q-t { font-size: 25px; font-style: italic; fill: #1e293b; }
.lesson-svg .tws { font-size: 20px; font-weight: 600; fill: #fff; }
.lesson-svg .tks { font-size: 20px; font-weight: 600; fill: #1f2937; }
.lesson-svg .fill-am { fill: #fbbf24; }
.lesson-svg .fill-gl { fill: #d1fae5; stroke: #0f9d6b; stroke-width: 2.5; }
.lesson-svg .fill-rl { fill: #fee2e2; stroke: #a3201b; stroke-width: 2.5; }
.lesson-svg .fill-al2 { fill: #fff7e6; stroke: #d97706; stroke-width: 2.5; }
.lesson-svg .fill-p { fill: #7c3aed; }
.lesson-svg .fill-pl { fill: #ede9fe; stroke: #7c3aed; stroke-width: 2.5; }
.lesson-svg .fill-gd { fill: #0b6b49; }
.lesson-svg .line-p { fill: none; stroke: #7c3aed; stroke-width: 5; stroke-linecap: round; }
.lesson-svg .tbig { font: 800 44px var(--font-display); fill: #0b1324; }
.lesson-svg .tp { font-size: 24px; font-weight: 700; fill: #5b21b6; }
.lesson-nav > div { flex: 1 1 260px; border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px 20px; color: var(--muted); font-weight: 700; background: #fff; text-align: right; }
.lesson-nav > div small { display: block; font-weight: 500; font-size: .8rem; margin-bottom: 4px; }

/* Certification series pages */
.exam-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.exam-facts .stat { padding: 22px; }
.exam-facts .stat b { font-size: 2rem; }
.domain-bars { display: grid; gap: 18px; }
.domain-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; }
.domain-bar strong { color: var(--ink); }
.domain-bar span { font: 800 1.1rem var(--font-display); color: var(--brand); }
.domain-bar .track { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: var(--brand-soft); overflow: hidden; }
.domain-bar .fill { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 6px; }
.next-release { display: flex; gap: 16px; align-items: center; border: 1px dashed #93b4f0; background: var(--brand-soft); border-radius: 14px; padding: 18px 22px; color: var(--ink-2); margin: 0 0 28px; }
.next-release .icon { width: 28px; height: 28px; color: var(--brand); }
.next-release p { margin: 0; }
.lesson-card .card-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tip-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tip-table th, .tip-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tip-table th { background: var(--bg-soft); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tip-table tr:last-child td { border-bottom: 0; }
.tip-table td:first-child { color: var(--ink-2); font-style: italic; }
.tip-table td:last-child { font-weight: 700; color: var(--ink); }
.quiz .q-type { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9a3412; background: #fff7e6; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.disclaimer { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) {
  .exam-facts { grid-template-columns: repeat(2, 1fr); }
}
