/* manasdasgupta.com — "Answer-first practitioner" theme
   Engineering-notebook look: paper, faint grid, ink, one red-pen accent.
   All motion is subtle and switched off under prefers-reduced-motion. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #f7f5ef; --paper-2: #efebe1; --card: #fffdf9; --ink: #16202c; --ink-2: #3a4553; --muted: #69727e;
  --line: #ddd8cb; --line-2: #cbc4b3; --grid: rgba(22, 32, 44, .05);
  --accent: #c2410c; --accent-2: #9a3412; --accent-soft: #fbe9df;
  --navy: #1d3557; --navy-2: #274872; --navy-soft: #e4ebf4;
  --udemy: #7c3aed; --udemy-soft: #f1eafd; --coursera: #1d4ed8; --coursera-soft: #e6edfc;
  --ec: #b91c1c; --ec-soft: #fbe8e8; --onsite: #0f766e; --onsite-soft: #e0f2ef;
  --shadow-1: 0 1px 2px rgba(22,32,44,.06), 0 2px 8px rgba(22,32,44,.04);
  --shadow-2: 0 10px 30px -12px rgba(22,32,44,.22), 0 2px 6px rgba(22,32,44,.06);
  --radius: 14px; --radius-s: 9px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --wrap: 1180px; --wrap-narrow: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10141b; --paper-2: #151a23; --card: #181e28; --ink: #ebe8e1; --ink-2: #c4c8cf; --muted: #8d95a2;
    --line: #283040; --line-2: #36405280; --grid: rgba(235, 232, 225, .035);
    --accent: #f08a5d; --accent-2: #ffab85; --accent-soft: #33211a;
    --navy: #22385a; --navy-2: #2d4a75; --navy-soft: #1a2536;
    --udemy: #b794f6; --udemy-soft: #261c3a; --coursera: #8ab4ff; --coursera-soft: #17233b;
    --ec: #f59e9e; --ec-soft: #361b1d; --onsite: #5eead4; --onsite-soft: #12302d;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3); --shadow-2: 0 14px 34px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10141b; --paper-2: #151a23; --card: #181e28; --ink: #ebe8e1; --ink-2: #c4c8cf; --muted: #8d95a2;
  --line: #283040; --line-2: #36405280; --grid: rgba(235, 232, 225, .035);
  --accent: #f08a5d; --accent-2: #ffab85; --accent-soft: #33211a;
  --navy: #22385a; --navy-2: #2d4a75; --navy-soft: #1a2536;
  --udemy: #b794f6; --udemy-soft: #261c3a; --coursera: #8ab4ff; --coursera-soft: #17233b;
  --ec: #f59e9e; --ec-soft: #361b1d; --onsite: #5eead4; --onsite-soft: #12302d;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3); --shadow-2: 0 14px 34px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
/* Notebook grid, drifting very slowly on its own compositor layer */
body::before {
  content: ""; position: fixed; inset: -64px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; animation: grid-drift 60s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
}
@keyframes grid-drift { to { transform: translate3d(32px, 32px, 0); } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
code { font: 500 .88em var(--mono); background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: block; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 100% - 32px); margin-inline: auto; }
.section { margin-block: clamp(56px, 8vw, 104px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ───────── Draft ribbon ───────── */
.draft-ribbon { background: repeating-linear-gradient(-45deg, var(--accent-soft) 0 12px, transparent 12px 24px), var(--paper-2);
  color: var(--ink-2); font: 500 .78rem/1.4 var(--mono); text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.draft-ribbon span { background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 99px; margin-right: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.draft-ribbon code { background: transparent; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, transform .45s var(--ease); animation: drop-in .7s var(--ease) both; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.site-header.is-hidden { transform: translateY(-100%); }
@keyframes drop-in { from { transform: translateY(-100%); opacity: 0; } }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font: 600 .875rem/1.5 "Noto Serif Devanagari", "Nirmala UI", Mangal, serif; display: grid; place-items: center;
  flex: 0 0 38px; width: 38px; height: 38px; padding: 4px; white-space: nowrap;
  border-radius: 10px; background: var(--ink); color: var(--paper); transition: transform .5s var(--ease-spring), background .3s; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); background: var(--accent); }
.brand-name { font: 600 1.08rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; padding: 8px 11px; font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 8px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease-spring), border-color .2s, background .2s; font-size: .95rem; }
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-2); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; } :root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }
[data-theme-toggle]:active svg { animation: spin-once .6s var(--ease); }
@keyframes spin-once { to { transform: rotate(180deg); } }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 16px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); grid-area: 1/1; }
.menu-btn span:first-child { transform: translateY(-3px); } .menu-btn span:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); } .menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Human / Agent switch */
.mode-switch { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.mode-switch button { position: relative; z-index: 1; border: 0; background: none; font: 600 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 99px; color: var(--muted); cursor: pointer; transition: color .3s; }
.mode-switch button.is-on { color: var(--paper); }
.mode-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 99px; background: var(--ink); transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ───────── Breadcrumbs ───────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 .78rem var(--mono); color: var(--muted); padding-top: 26px; }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ───────── Buttons & links ───────── */
.btn { --bg: var(--ink); --fg: var(--paper); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid var(--bg); background: var(--bg); color: var(--fg); font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .35s var(--ease-spring), box-shadow .3s, background .25s, color .25s; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { --bg: var(--card); }
.btn-light { --bg: #fffdf9; --fg: #16202c; border-color: #fffdf9; }
.btn-ghost-light { --bg: transparent; --fg: #fffdf9; border-color: rgba(255,255,255,.4); }
.btn-small { padding: 9px 14px; font-size: .84rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-shine { --bg: var(--accent); --fg: #fff; }
:root[data-theme="dark"] .btn-shine { --fg: #1a0f0a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-shine { --fg: #1a0f0a; } }
.btn-shine::after { animation: shine 4.5s var(--ease) 2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--accent); text-decoration: none; }
.arrow-link span { transition: transform .35s var(--ease-spring); }
.arrow-link:hover span, .card:hover .arrow-link span, .role-card:hover .arrow-link span, .hub-card:hover .arrow-link span { transform: translateX(5px); }
.arrow-link.small { font-size: .84rem; }

/* ───────── Kicker / section head ───────── */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.kicker::before { content: ""; width: 18px; height: 1.5px; background: currentColor; transform-origin: left; animation: grow-x .8s var(--ease) .2s both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; }
.page-head { padding-top: 22px; margin-bottom: 26px; }
.page-head h1 { max-width: 22ch; }

/* ───────── Hero ───────── */
.hero { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 7vw, 88px) 36px; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 560; max-width: 21ch; text-wrap: balance; margin-bottom: 20px; }
.hero-title em { font-style: italic; font-weight: 500; background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%) no-repeat;
  background-size: 0% 100%; animation: highlight 1.1s var(--ease) .9s forwards; }
@keyframes highlight { to { background-size: 100% 100%; } }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Headshot: small, framed, with a slowly turning dashed ring */
.headshot { margin: 0; display: grid; justify-items: center; text-align: center; gap: 14px; }
.headshot-frame { position: relative; width: 196px; height: 196px; display: grid; place-items: center; }
.headshot-frame::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%);
  filter: blur(18px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.headshot-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.headshot-ring circle { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 2 7; }
.headshot:hover .headshot-ring { animation-duration: 8s; }
@keyframes spin { to { transform: rotate(360deg); } }
.headshot img, .headshot-ph { position: relative; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-2);
  border: 4px solid var(--card); transition: transform .6s var(--ease-spring); }
.headshot:hover img, .headshot:hover .headshot-ph { transform: scale(1.03) rotate(-2deg); }
.headshot-ph { display: grid; place-content: center; gap: 4px; background:
  repeating-linear-gradient(135deg, var(--paper-2) 0 8px, var(--card) 8px 16px); color: var(--muted); }
.headshot-ph .initials { font: 600 2.4rem/1 var(--serif); color: var(--ink-2); }
.ph-note { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; line-height: 1.3; }
.headshot figcaption { display: grid; gap: 2px; }
.headshot figcaption strong { font: 600 1.1rem var(--serif); }
.headshot figcaption span { font-size: .84rem; color: var(--muted); }
.headshot.small .headshot-frame { width: 164px; height: 164px; }
.headshot.small .headshot-ph, .headshot.small img { width: 140px; height: 140px; }
.platform-row { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }

/* ───────── BLUF card (signature element) ───────── */
.bluf { position: relative; margin: 8px 0 32px; padding: 26px 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden; isolation: isolate; }
.bluf::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform-origin: top; }
.js .bluf::before { transform: scaleY(0); transition: transform .9s var(--ease) .15s; }
.js .bluf.is-in::before { transform: scaleY(1); }
.bluf::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--accent-soft) 60%, transparent) 50%, transparent 60%);
  transform: translateX(-100%); }
.bluf.is-in::after { animation: sweep 1.6s var(--ease) .4s 1 both; }
@keyframes sweep { to { transform: translateX(100%); } }
.bluf-tab { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.bluf-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.bluf-verdict { font: 450 clamp(1.08rem, 1.7vw, 1.26rem)/1.55 var(--serif); color: var(--ink); max-width: 72ch; margin: 0; padding-right: 110px; }
.bluf-meta { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.bluf-meta div { min-width: 0; }
.bluf-meta dt { font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.bluf-meta dd { margin: 0; font-size: .92rem; color: var(--ink-2); }
.stamp { position: absolute; right: 22px; top: 20px; transform: rotate(6deg); border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); color: var(--accent);
  border-radius: 8px; padding: 6px 10px; font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; text-align: center; line-height: 1.35; opacity: .85; }
.stamp strong { font-size: .76rem; letter-spacing: .04em; }
.js .stamp { opacity: 0; transform: rotate(18deg) scale(1.5); }
.js .is-in .stamp { animation: stamp-in .55s var(--ease-spring) .8s forwards; }
@keyframes stamp-in { to { opacity: .85; transform: rotate(6deg) scale(1); } }
.bluf:not(:has(.stamp)) .bluf-verdict { padding-right: 0; }

/* ───────── Ticker ───────── */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--card) 60%, transparent); padding: 12px 0; margin-top: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: marquee 48s linear infinite; font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ticker-track span::before { content: "◆"; color: var(--accent); margin-right: 44px; font-size: .6rem; vertical-align: 2px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Stats ───────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.about-stats { margin-top: 20px; }
.stat { background: var(--card); padding: 22px 22px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.stat-num { font: 600 2.2rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.stat-suffix { font: 600 1.4rem var(--serif); color: var(--accent); }
.stat-label { flex-basis: 100%; font-size: .84rem; color: var(--muted); margin-top: 6px; }
.stat-label em { font-style: normal; font-size: .66rem; color: var(--accent); border: 1px dashed currentColor; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.stat.is-ph .stat-num { color: var(--line-2); }

/* ───────── Cards ───────── */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden;
  transition: transform .45s var(--ease-spring), box-shadow .35s var(--ease), border-color .3s; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 60%); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 0; font-size: 1.18rem; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meta { font-size: .74rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-udemy { color: var(--udemy); background: var(--udemy-soft); } .badge-coursera { color: var(--coursera); background: var(--coursera-soft); }
.badge-eccouncil { color: var(--ec); background: var(--ec-soft); } .badge-onsite { color: var(--onsite); background: var(--onsite-soft); }
.chip { display: inline-flex; align-items: center; font: 500 .74rem/1 var(--sans); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
button.chip { cursor: pointer; transition: all .25s var(--ease); font-size: .8rem; padding: 8px 12px; }
button.chip:hover { border-color: var(--line-2); color: var(--ink); }
button.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ph-tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; padding: 3px 7px; border-radius: 5px; border: 1px dashed var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Role cards */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .45s var(--ease-spring), box-shadow .3s, border-color .3s; }
.role-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft);
  transform: scale(0); transition: transform .6s var(--ease); z-index: 0; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); border-color: var(--line-2); }
.role-card:hover::after { transform: scale(2.2); }
.role-card > * { position: relative; z-index: 1; }
.role-num { font-size: .74rem; color: var(--accent); font-weight: 600; }
.role-card strong { font: 600 1.14rem/1.25 var(--serif); }
.role-card > span:not(.role-num):not(.arrow-link) { color: var(--ink-2); font-size: .9rem; }
.role-card .arrow-link { margin-top: auto; }

/* Hub split */
.hub-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hub-card { position: relative; padding: 32px; border-radius: calc(var(--radius) + 4px); text-decoration: none; color: #f4f1ea; overflow: hidden; min-height: 280px;
  display: flex; flex-direction: column; background: var(--navy); transition: transform .5s var(--ease-spring), box-shadow .4s; }
.hub-card.hub-ai-product { background: #2a2320; }
.hub-card::before { content: ""; position: absolute; inset: 0; 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: 24px 24px; transition: transform 1.2s var(--ease); }
.hub-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,138,93,.45), transparent 70%); transition: transform .9s var(--ease); }
.hub-card:hover { color: #fff; transform: translateY(-5px); box-shadow: var(--shadow-2); }
.hub-card:hover::before { transform: translate(12px, 12px); }
.hub-card:hover::after { transform: translate(-30px, 30px) scale(1.2); }
.hub-card > * { position: relative; z-index: 1; }
.hub-card .kicker { color: #f5b393; }
.hub-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.hub-card ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.hub-card li { padding-left: 22px; position: relative; color: rgba(244,241,234,.86); font-size: .95rem; }
.hub-card li::before { content: "?"; position: absolute; left: 0; top: 1px; font: 700 .72rem/18px var(--mono); width: 16px; height: 18px; text-align: center; color: #f5b393; }
.hub-card .arrow-link { color: #f5b393; margin-top: auto; }

/* Video blocks */
.video-list { display: grid; gap: 22px; }
.video { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 26px; padding: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow-1); scroll-margin-top: 96px; transition: box-shadow .4s, border-color .4s; }
.video:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); animation: target-pulse 1.6s var(--ease) 2; }
@keyframes target-pulse { 50% { box-shadow: 0 0 0 10px transparent, var(--shadow-2); } }
.video-media { position: relative; align-self: start; }
.lite-yt { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-s); overflow: hidden; cursor: pointer;
  background: #0d1117 var(--thumb, none) center / cover no-repeat; transition: transform .5s var(--ease); }
.lite-yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); transition: opacity .3s; }
.lite-yt.is-placeholder { cursor: default; background: repeating-linear-gradient(135deg, #1a2029 0 14px, #1e2530 14px 28px); gap: 10px; align-content: center; }
.lite-yt.is-placeholder .ph-note { position: relative; color: #a8b0bc; }
.play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .45s var(--ease-spring), background .3s; }
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid #16202c; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.lite-yt:hover .play, .video-card:hover .play { transform: scale(1.12); background: #fff; }
.lite-yt:not(.is-placeholder) .play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); animation: ring-out 2.2s var(--ease) infinite; }
@keyframes ring-out { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(13,17,23,.82); color: #fff; font-size: .7rem; padding: 3px 7px; border-radius: 5px; pointer-events: none; }
.video-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.video-text h3 { margin: 0; font-size: 1.3rem; }
.anchor-link { text-decoration: none; }
.anchor-link:hover::after { content: " #"; color: var(--accent); font-family: var(--mono); font-size: .8em; }
.video-bluf { color: var(--ink-2); margin: 0; }
.video-card { flex-direction: row; gap: 16px; align-items: flex-start; }
.mini-thumb { position: relative; flex: 0 0 112px; aspect-ratio: 16/10; border-radius: 8px; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #1a2029 0 10px, #1e2530 10px 20px); }
.mini-thumb .play { width: 34px; height: 34px; } .mini-thumb .play::after { left: 13px; top: 10px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.mini-thumb .duration { right: 5px; bottom: 5px; font-size: .6rem; }
.video-card > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.video-card h3 { font-size: 1.04rem; }

/* Expandable blocks (details/summary, content is in the HTML) */
.expand, .qa { border-top: 1px dashed var(--line); }
.expand summary, .qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 14px 0; }
.expand summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.expand-label { font: 600 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.chev { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .45s var(--ease-spring), background .3s, border-color .3s; }
.chev::before, .chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--ink-2); translate: -50% -50%; transition: transform .35s var(--ease); }
.chev::after { transform: rotate(90deg); }
details[open] > summary .chev { transform: rotate(180deg); background: var(--accent-soft); border-color: transparent; }
details[open] > summary .chev::after { transform: rotate(0deg); }
summary:hover .chev { border-color: var(--accent); }
.expand-body { padding: 0 0 14px; overflow: hidden; }
.expand-body h4 { margin: 8px 0 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks.big li { font-size: 1.04rem; padding: 12px 14px 12px 40px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.ticks.big li::before { left: 16px; top: 1.15em; }
.chapters { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.chapters li { display: flex; gap: 12px; color: var(--ink-2); font-size: .93rem; }
.chapters .mono { color: var(--accent); font-size: .8rem; min-width: 44px; padding-top: 2px; }
.related { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 0; }

.qa-list { display: grid; border-bottom: 1px dashed var(--line); }
.qa summary h3 { margin: 0; font-size: 1.12rem; font-weight: 560; transition: color .2s; }
.qa summary:hover h3 { color: var(--accent); }
.qa .expand-body p { color: var(--ink-2); max-width: 70ch; }

/* ───────── Filters ───────── */
.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-bottom: 22px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-group .label { margin-right: 6px; }
.filter-count { margin: 0 0 0 auto; font-size: .76rem; color: var(--muted); }
[data-filter-item] { transition: opacity .35s var(--ease), transform .45s var(--ease-spring); }
[data-filter-item].is-out { opacity: 0; transform: scale(.96); }
[data-filter-item][hidden] { display: none; }
.empty { color: var(--muted); font-style: italic; }

/* ───────── Course / programme page ───────── */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.block { margin-block: 38px; }
.enrol-card { position: sticky; top: 92px; display: grid; gap: 14px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); }
.facts { margin: 0; display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; text-align: right; }
.fine { font-size: .78rem; color: var(--muted); margin: 0; }
.price { font: 600 1.8rem var(--serif); margin: 0; }
.modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.module { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 16px; transition: border-color .3s, box-shadow .3s; }
.module[open] { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.module summary { padding: 14px 0; }
.mod-num { color: var(--accent); font-size: .8rem; font-weight: 600; }
.mod-title { flex: 1; display: grid; gap: 2px; }
.mod-title span { color: var(--muted); font-size: .9rem; }
.lessons { margin: 0 0 4px; padding-left: 50px; color: var(--ink-2); display: grid; gap: 4px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); transition: background .3s; }
.timeline li.is-in::before { animation: dot-fill .6s var(--ease) .3s forwards; }
@keyframes dot-fill { to { background: var(--accent); } }
.timeline li p { margin: 4px 0 0; color: var(--ink-2); }
.changelog time { font-size: .78rem; color: var(--accent); }
.note { padding: 12px 16px; border-radius: 10px; background: var(--navy-soft); color: var(--ink-2); font-size: .94rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22px; color: var(--accent); font-weight: 700; z-index: 1; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.step p { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }

/* ───────── Forms ───────── */
.enquiry { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); max-width: 820px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: 400 .98rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card); }
.form-status { margin: 12px 0 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #15803d; } .form-status.err { color: var(--ec); }
.subscribe label { font-size: .84rem; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input { padding: 9px 12px; }
form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
form.is-sending button[type="submit"]::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ───────── CTA band ───────── */
.cta-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 48px); border-radius: calc(var(--radius) + 6px);
  background: var(--navy); color: #f4f1ea; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 90% 10%, rgba(240,138,93,.35), transparent 50%),
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px; animation: band-drift 18s ease-in-out infinite alternate; }
@keyframes band-drift { to { background-position: -80px 40px, 28px 28px, 28px 28px; } }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(244,241,234,.82); margin: 0; max-width: 58ch; }
.cta-band .kicker { color: #f5b393; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-band.slim h2 { font-size: 1.5rem; }

/* ───────── Hub page ───────── */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { font: 500 .8rem var(--mono); padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--card); transition: all .25s var(--ease); }
.jump a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ───────── Paths ───────── */
.path-steps { list-style: none; padding: 0; margin-block: 24px 90px; display: grid; gap: 34px; position: relative; }
.path-steps::before { content: ""; position: absolute; left: 44px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--line)); transform-origin: top; }
.js .path-steps::before { transform: scaleY(var(--path-progress, 0)); }
.path-step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; position: relative; }
.path-marker { justify-self: center; height: fit-content; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: #fff;
  padding: 6px 8px; border-radius: 8px; position: relative; z-index: 1; text-align: center; }
.path-body h2 { font-size: 1.5rem; }

/* ───────── Article ───────── */
.article-head { padding-top: 22px; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .8rem; }
.byline a { color: var(--ink-2); }
.article-layout { position: relative; }
.toc { position: absolute; right: calc(100% + 36px); top: 0; width: 200px; height: 100%; }
.toc ol { position: sticky; top: 96px; list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc .label { position: sticky; top: 74px; }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .84rem; color: var(--muted); text-decoration: none; transition: all .25s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); border-color: var(--accent); }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; background: var(--card); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.prose .table-scroll { max-width: 100%; overflow-x: auto; margin: 1.4em 0; border-radius: 10px; }
.prose .table-scroll table { margin: 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper-2); }
.prose pre { background: #0f141b; color: #e6e1d6; padding: 18px; border-radius: 10px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.article-foot { margin-block: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.author-box { display: flex; gap: 14px; align-items: center; }
.author-box p { margin: 0; color: var(--muted); font-size: .9rem; }
.author-ph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 1.1rem var(--serif); overflow: hidden; }
.related-links { display: grid; gap: 10px; margin-block: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature-article { display: grid; gap: 10px; padding: clamp(24px, 4vw, 40px); margin-bottom: 18px; border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: transform .45s var(--ease-spring), box-shadow .3s; position: relative; overflow: hidden; }
.feature-article::after { content: "“"; position: absolute; right: 24px; top: -30px; font: 700 12rem/1 var(--serif); color: var(--accent-soft); transition: transform .8s var(--ease); }
.feature-article:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); }
.feature-article:hover::after { transform: translateY(12px) rotate(-6deg); }
.feature-article > * { position: relative; z-index: 1; max-width: 70ch; }
.feature-article h2 { margin: 0; }
.feature-article p { color: var(--ink-2); margin: 0; }

/* About */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; margin-bottom: 90px; }
.about-side { position: sticky; top: 92px; display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.profile-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.profile-links a { text-decoration: none; font-weight: 500; }

.center-page { text-align: center; padding-block: 90px 110px; display: grid; justify-items: center; }
.check-anim svg { width: 72px; height: 72px; fill: none; stroke: #15803d; stroke-width: 3; stroke-linecap: round; }
.check-anim circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.8s var(--ease) forwards; }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ───────── Footer ───────── */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 52px 36px; }
.footer-about p { color: var(--ink-2); margin: 14px 0 20px; max-width: 42ch; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h2 { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 6px; }
.footer-col a { text-decoration: none; color: var(--ink-2); font-size: .93rem; width: fit-content; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.footer-col a:hover { background-size: 100% 1.5px; color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px 28px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.footer-base .mono { font-size: .74rem; }

/* ───────── Agent panel ───────── */
.agent-panel { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: #0f141b; color: #e6e1d6;
  box-shadow: -30px 0 60px -20px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .55s var(--ease); }
.agent-panel.is-open { transform: none; }
.agent-panel[hidden] { display: flex; visibility: hidden; }
.agent-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #243042; }
.agent-head strong { display: block; font: 600 1rem var(--serif); color: #fff; }
.agent-head .label { color: #f5b393; }
.agent-actions { display: flex; gap: 8px; align-items: center; }
.agent-panel .icon-btn { background: #1a2230; border-color: #2a3547; color: #e6e1d6; }
.agent-panel .btn { --bg: #f08a5d; --fg: #1a0f0a; }
.agent-body { flex: 1; margin: 0; padding: 20px; overflow: auto; font: 400 .82rem/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; }
.agent-body .md-h { color: #f5b393; font-weight: 700; } .agent-body .md-q { color: #9ecbff; } .agent-body .md-fm { color: #7d8898; } .agent-body .md-l { color: #b5e3a1; }
body.agent-mode main { filter: saturate(.6); transition: filter .5s; }

/* ───────── Modal ───────── */
.modal { width: min(980px, 100% - 24px); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0,0,0,.55); overflow: hidden; }
.modal::backdrop { background: rgba(10, 14, 20, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .5s var(--ease-spring); }
.modal[open]::backdrop { animation: fade-in .35s ease; }
.modal.is-closing { animation: modal-out .28s var(--ease) forwards; }
.modal.is-closing::backdrop { animation: fade-in .28s ease reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-frame { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.modal-bar > div { display: flex; gap: 14px; align-items: center; }
.modal-open { font-size: .84rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.modal-body { overflow: auto; padding: 8px 24px 28px; overscroll-behavior: contain; }
.modal-body .course-page { width: 100%; }
.modal-body .course-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.modal-body .enrol-card { top: 12px; }
.modal-skeleton { display: grid; gap: 14px; padding: 24px 0; }
.modal-skeleton i { display: block; height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.modal-skeleton i:nth-child(1) { height: 34px; width: 70%; } .modal-skeleton i:nth-child(2) { height: 110px; } .modal-skeleton i:nth-child(3) { width: 85%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 0; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: .88rem;
  opacity: 0; transform: translateY(12px); transition: all .4s var(--ease-spring); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* ───────── Scroll reveal ───────── */
/* Only elements that start below the fold wait for scroll; first-screen content plays a short load animation */
.js [data-reveal].will-reveal { opacity: 0; transform: translateY(16px); }
.js [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].on-load { animation: rise .8s var(--ease) var(--d, 0s) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.js .card[data-reveal].is-in, .js .role-card[data-reveal].is-in, .js .hub-card[data-reveal].is-in, .js .feature-article[data-reveal].is-in {
  transition: opacity .8s var(--ease) var(--d, 0s), transform .45s var(--ease-spring), box-shadow .35s, border-color .3s; }

/* ───────── Responsive ───────── */
@media (max-width: 1180px) { .toc { display: none; } }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 10px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); margin: 0; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; box-shadow: var(--shadow-2); }
  .nav a { padding: 12px 6px; font-size: 1rem; border-bottom: 1px dashed var(--line); }
  .nav a::after { display: none; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .headshot { order: -1; justify-items: start; text-align: left; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
  .headshot-frame { width: 116px; height: 116px; grid-row: span 2; }
  .headshot img, .headshot-ph { width: 98px; height: 98px; border-width: 3px; }
  .headshot-ph .initials { font-size: 1.6rem; } .headshot-ph .ph-note { display: none; }
  .platform-row { justify-content: start; }
  .card-grid, .card-grid.three, .hub-split { grid-template-columns: 1fr; }
  .video { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .course-layout, .modal-body .course-layout, .about-layout { grid-template-columns: 1fr; }
  .enrol-card, .about-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bluf-verdict { padding-right: 0; }
  .stamp { position: static; display: inline-block; margin-top: 16px; }
  .js .is-in .stamp { animation-name: stamp-in-static; }
  @keyframes stamp-in-static { to { opacity: .85; transform: rotate(-2deg) scale(1); } }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .mode-switch button { padding: 7px 8px; font-size: .64rem; }
  .role-grid, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .field-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; }
  .bluf { padding: 20px 18px 18px; }
  .filters { padding: 12px; } .filter-count { margin-left: 0; }
  .path-steps::before { left: 14px; }
  .path-step { grid-template-columns: 1fr; gap: 10px; }
  .path-marker { justify-self: start; }
  .video-card { flex-direction: column; } .mini-thumb { flex-basis: auto; width: 100%; }
  .modal { width: 100%; max-height: 100vh; border-radius: 16px 16px 0 0; margin-bottom: 0; }
  .modal-body { padding: 4px 16px 22px; }
  .subscribe-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; } .footer-about { grid-column: auto; }
  .stat-num { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal].will-reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
@media print {
  .site-header, .site-footer, .agent-panel, .modal, .draft-ribbon, .ticker, .enrol-card .btn { display: none !important; }
  body::before { display: none; }
  .js [data-reveal].will-reveal { opacity: 1; transform: none; }
}

/* ───────── Homepage: credentials, publishers, learning track ───────── */
.headshot-proof { margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.publishers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-block: 4px 28px; }
.publishers h2 { margin: 0; }
.publisher-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.publisher-list li { font: 600 .92rem/1 var(--sans); color: var(--ink-2); padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  transition: transform .35s var(--ease-spring), border-color .25s, color .25s; }
.publisher-list li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.track-stage { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1); transition: transform .45s var(--ease-spring), box-shadow .3s, border-color .3s; }
.track-stage:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.track-stage:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 24px; z-index: 1; color: var(--accent); font-weight: 700; }
.track-num { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.track-stage h3 { margin: 0; font-size: 1.14rem; }
.track-stage p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.track-tags { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.track-tags .chip { font-size: .72rem; padding: 5px 9px; }
@media (max-width: 1080px) { .track { grid-template-columns: repeat(2, 1fr); } .track-stage:nth-child(2)::after { display: none; } }
@media (max-width: 600px) { .track { grid-template-columns: 1fr; } .track-stage::after { display: none; } }
.card-rating { color: var(--accent); font-weight: 700; margin-left: auto; }

/* ───────── Course card actions ───────── */
.card-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-actions .ph-tag { margin-left: auto; }
.card-actions .btn { position: relative; z-index: 3; }
.course-card h3 a:hover { color: var(--accent); }

/* ───────── Corporate training ───────── */
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-block: 8px 28px; }
.client-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.client-list li { font: 600 .9rem/1 var(--sans); color: var(--ink); padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  transition: transform .35s var(--ease-spring), border-color .25s; }
.client-list li:hover { transform: translateY(-2px); border-color: var(--accent); }
.corp-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.corp-card { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  display: grid; gap: 8px; align-content: start; transition: transform .45s var(--ease-spring), box-shadow .3s; }
.corp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.corp-card h3 { margin: 0; font-size: 1.08rem; }
.corp-card p { margin: 0; font-size: .88rem; }
.corp-stats { margin-top: 8px; }
.track-card h3 { font-size: 1.22rem; }
.track-meta { margin: 4px 0 0; display: grid; gap: 10px; }
.track-meta dt { font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.track-meta dd { margin: 0; font-size: .92rem; color: var(--ink-2); }
.client-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.client-chips .chip { font-weight: 600; color: var(--ink); }
.track-courses { display: grid; gap: 4px; margin-top: 6px !important; padding-top: 12px; border-top: 1px dashed var(--line); }
.track-courses a { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--accent); }
.track-courses a:hover { text-decoration: underline; }
.portfolio-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.portfolio { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
.portfolio th, .portfolio td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.portfolio thead th { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--paper-2); }
.portfolio tbody th { font-weight: 600; color: var(--ink); }
.portfolio tbody tr { transition: background .2s; }
.portfolio tbody tr:hover { background: var(--accent-soft); }
.portfolio tbody tr:last-child th, .portfolio tbody tr:last-child td { border-bottom: 0; }
.status { font: 600 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; white-space: nowrap; }
.status-delivered { color: var(--onsite); background: var(--onsite-soft); }
.status-developed { color: var(--coursera); background: var(--coursera-soft); }

/* ───────── Contact ───────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.contact-layout .enquiry { max-width: none; }
.contact-side { display: grid; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); position: sticky; top: 92px; }
.contact-line { margin: 4px 0 8px; font-weight: 600; word-break: break-word; }
.contact-line a { text-decoration: none; }
.contact-corp { padding-top: 16px; border-top: 1px dashed var(--line); }
.contact-corp p { font-size: .92rem; color: var(--ink-2); margin: 6px 0 8px; }

@media (max-width: 1080px) { .corp-highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } .contact-side { position: static; } }
@media (max-width: 600px) { .corp-highlights { grid-template-columns: 1fr; } }
