/* madhupbajpai.com. Modern dark, financial, kinetic. No inline styles in markup, no external requests. */

@font-face { font-family: "Host Grotesk"; src: url("../fonts/host-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../fonts/host-grotesk-latin-wght-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- Tokens (dark default; light via data-theme or system preference) ---------- */
:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #0f1218;
  --surface-2: #151a24;
  --surface-3: #1b2130;
  --line: rgba(160, 174, 200, 0.12);
  --line-2: rgba(160, 174, 200, 0.22);
  --grid: rgba(160, 174, 200, 0.055);
  --ink: #eef1f7;
  --ink-2: #aab2c2;
  --muted: #727b8e;
  --accent: #7097ff;
  --accent-2: #a9c0ff;
  --accent-ink: #050a1a;
  --accent-soft: rgba(112, 151, 255, 0.14);
  --accent-glow: rgba(112, 151, 255, 0.28);
  --ok: #3ad6a0;
  --ok-soft: rgba(58, 214, 160, 0.13);
  --warn: #f2b44d;
  --warn-soft: rgba(242, 180, 77, 0.14);
  --bad: #ff7a7a;
  --bad-soft: rgba(255, 122, 122, 0.13);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(7, 8, 11, 0.72);
  --dot-land: rgba(160, 174, 200, 0.2);
  --dot-lit: rgba(112, 151, 255, 0.62);

  --font: "Host Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f8; --bg-2: #eef0f4; --surface: #ffffff; --surface-2: #f3f5f9; --surface-3: #e9edf4;
    --line: rgba(15, 23, 42, 0.1); --line-2: rgba(15, 23, 42, 0.18); --grid: rgba(15, 23, 42, 0.05);
    --ink: #0b0e14; --ink-2: #3c4556; --muted: #687184;
    --accent: #2f5bea; --accent-2: #2448c4; --accent-ink: #ffffff; --accent-soft: rgba(47, 91, 234, 0.1); --accent-glow: rgba(47, 91, 234, 0.18);
    --ok: #0f9d6c; --ok-soft: rgba(15, 157, 108, 0.1); --warn: #a8670c; --warn-soft: rgba(168, 103, 12, 0.1); --bad: #c93b3b; --bad-soft: rgba(201, 59, 59, 0.09);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -24px rgba(15, 23, 42, 0.22);
    --header-bg: rgba(245, 246, 248, 0.78);
    --dot-land: rgba(15, 23, 42, 0.2); --dot-lit: rgba(47, 91, 234, 0.6);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --bg-2: #eef0f4; --surface: #ffffff; --surface-2: #f3f5f9; --surface-3: #e9edf4;
  --line: rgba(15, 23, 42, 0.1); --line-2: rgba(15, 23, 42, 0.18); --grid: rgba(15, 23, 42, 0.05);
  --ink: #0b0e14; --ink-2: #3c4556; --muted: #687184;
  --accent: #2f5bea; --accent-2: #2448c4; --accent-ink: #ffffff; --accent-soft: rgba(47, 91, 234, 0.1); --accent-glow: rgba(47, 91, 234, 0.18);
  --ok: #0f9d6c; --ok-soft: rgba(15, 157, 108, 0.1); --warn: #a8670c; --warn-soft: rgba(168, 103, 12, 0.1); --bad: #c93b3b; --bad-soft: rgba(201, 59, 59, 0.09);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -24px rgba(15, 23, 42, 0.22);
  --header-bg: rgba(245, 246, 248, 0.78);
  --dot-land: rgba(15, 23, 42, 0.2); --dot-lit: rgba(47, 91, 234, 0.6);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
img, svg { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 500; transform: translateY(-200%); background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform 0.3s var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 750; letter-spacing: 0.01em; box-shadow: 0 6px 18px -6px var(--accent-glow); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-size: 15px; }
.brand-role { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; font-weight: 500; }
.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 0; background: transparent; text-decoration: none; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: color 0.25s, background-color 0.25s; }
.nav-link:hover, .nav-trigger:hover, .nav-item.open .nav-trigger, .nav-link.is-active, .nav-trigger.is-active { color: var(--ink); background: var(--surface-2); }
.nav-trigger svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease); }
.nav-item { position: relative; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: 340px; padding: 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(0.98); transform-origin: top center; transition: opacity 0.22s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s; }
.nav-item.open .menu-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.menu-panel a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; transition: background-color 0.2s; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--surface-2); }
.menu-ico { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.menu-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-t { font-size: 14.5px; font-weight: 600; }
.menu-d { font-size: 13px; color: var(--muted); line-height: 1.35; }
.header-actions { 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: transparent; cursor: pointer; color: var(--ink-2); transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .i-sun { display: block; } :root:not([data-theme="dark"]) .i-moon { display: none; } }
.menu-btn { display: none; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok-soft); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--ok-soft); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.chip-new { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.h1 { font-size: clamp(42px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 650; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 640; text-wrap: balance; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 620; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.grad-text { background: linear-gradient(100deg, var(--ink) 20%, var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-block: clamp(80px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 52rem; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head .lead { margin-top: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.glow-bg { position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: -300px; transform: translateX(-30%); background: radial-gradient(closest-side, var(--accent-glow), transparent); filter: blur(20px); opacity: 0.9; animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translateX(-38%) scale(1.12); opacity: 0.65; } }
.scan { position: absolute; z-index: -1; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(to bottom, transparent, var(--accent-soft), transparent); animation: scan 8s var(--ease-io) infinite; pointer-events: none; }
@keyframes scan { 0% { top: -120px; } 60%, 100% { top: 110%; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 28px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats dd { font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

/* Console card */
.console { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; font-family: var(--mono); font-size: 13px; }
.console::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 70%, var(--accent-soft)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.console-bar span { margin-left: 8px; }
.console-body { padding: 18px 18px 20px; display: grid; gap: 8px; min-height: 300px; }
.cl { display: flex; gap: 10px; color: var(--ink-2); opacity: 0; transform: translateY(4px); animation: line-in 0.5s var(--ease) forwards; line-height: 1.5; }
.cl b { font-weight: 500; color: var(--ink); }
.cl .k { color: var(--muted); flex: none; }
.cl.ok .k, .cl.ok b { color: var(--ok); }
.cl.ac .k, .cl.ac b { color: var(--accent); }
.cl:nth-child(1) { animation-delay: 0.3s; } .cl:nth-child(2) { animation-delay: 0.8s; } .cl:nth-child(3) { animation-delay: 1.3s; }
.cl:nth-child(4) { animation-delay: 1.8s; } .cl:nth-child(5) { animation-delay: 2.4s; } .cl:nth-child(6) { animation-delay: 2.9s; }
.cl:nth-child(7) { animation-delay: 3.4s; } .cl:nth-child(8) { animation-delay: 3.9s; }
@keyframes line-in { to { opacity: 1; transform: none; } }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12px; color: var(--muted); }
.console-foot a { color: var(--accent); text-decoration: none; }

/* Marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 44px; padding: 18px 22px; white-space: nowrap; animation: marquee 42s linear infinite; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.marquee-track span::before { content: "◆"; margin-right: 44px; color: var(--accent); font-size: 9px; vertical-align: 2px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 30px); transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.card { text-decoration: none; display: block; }
.card-hover:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 16px; }
.svc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.svc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.28em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.svc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.svc-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; text-decoration: none; color: var(--ink-2); background: var(--surface-2); transition: color 0.2s, background-color 0.2s; }
.svc-links a:hover { color: var(--ink); background: var(--surface-3); }
.svc-links a.primary { color: var(--accent); background: var(--accent-soft); }

/* Tools band */
.tools { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%), var(--surface); padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.tools-list { display: grid; gap: 10px; }
.tool-link { display: grid; grid-template-columns: 44px 1fr 20px; gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.25s, transform 0.3s var(--ease); }
.tool-link:hover { border-color: var(--accent); transform: translateX(4px); }
.tool-link .svc-ico { grid-row: span 2; }
.tool-t { font-weight: 620; }
.tool-d { font-size: 13.5px; color: var(--muted); }
.tool-link > svg { grid-row: span 2; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.privacy-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 1.8; }

/* About / facts */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.prose-lg { display: grid; gap: 16px; font-size: 17.5px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.fact { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.fact dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.fact dd { margin-top: 6px; font-size: 15.5px; font-weight: 550; line-height: 1.4; }
.fact .sub { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* Experience timeline */
.timeline { position: relative; display: grid; gap: 14px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), var(--line) 30%); }
.tl-item { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 28px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item:not(:first-child)::before { border-color: var(--line-2); }
.tl-when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 22px; }
.tl-card { padding: 20px 22px; }
.tl-title { font-size: 19px; font-weight: 620; letter-spacing: -0.015em; }
.tl-org { color: var(--accent); font-size: 14.5px; margin-top: 2px; }
.tl-points { display: grid; gap: 6px; margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.tl-points li { position: relative; padding-left: 16px; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--muted); }
.earlier { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.cred { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.cred-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; color: #fff; position: relative; }
.seal::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.45); }
.seal-qsa { background: linear-gradient(145deg, #2f5bea, #1a2f8a); }
.seal-cisa { background: linear-gradient(145deg, #1f7bb8, #0c3f69); }
.seal-aws { background: linear-gradient(145deg, #3b4a5e, #151c26); }
.seal-iso { background: linear-gradient(145deg, #0e9384, #0a5a52); }
.cred h3 { font-size: 16.5px; font-weight: 620; line-height: 1.3; }
.cred p { font-size: 13.5px; color: var(--muted); }
.cred .verify { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.cred .verify svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.cred .status { margin-top: auto; font-size: 13.5px; color: var(--muted); }
.cred-featured { border-color: var(--accent); background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }

/* Clients map */
.map-card { display: grid; grid-template-columns: minmax(0, 1fr) 290px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.map-stage { position: relative; padding: clamp(14px, 2.5vw, 30px); display: grid; align-content: center; min-width: 0; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-land { fill: none; stroke: var(--dot-land); stroke-width: 3.2; stroke-linecap: round; }
.map-lit { fill: none; stroke: var(--dot-lit); stroke-width: 3.6; stroke-linecap: round; }
.marker { cursor: pointer; outline: none; }
.marker-core { fill: var(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-width: 1.4; transition: fill-opacity 0.3s, transform 0.4s var(--ease); transform-box: fill-box; transform-origin: center; }
.marker-halo { fill: var(--accent); fill-opacity: 0.16; transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) infinite; }
.marker-dot { fill: var(--accent); }
.marker:nth-child(2n) .marker-halo { animation-delay: 0.8s; }
.marker:nth-child(3n) .marker-halo { animation-delay: 1.6s; }
@keyframes halo { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.marker:hover .marker-core, .marker:focus-visible .marker-core, .marker.is-active .marker-core { fill-opacity: 0.45; transform: scale(1.12); }
.map-tip { position: absolute; z-index: 3; left: 0; top: 0; min-width: 200px; max-width: 250px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); }
.tip-country { font-weight: 650; }
.tip-total { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 2px; }
.tip-mix { margin-top: 8px; display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }
.tip-mix li { display: flex; justify-content: space-between; gap: 14px; }
.map-side { border-left: 1px solid var(--line); padding: 20px; display: grid; gap: 22px; align-content: start; background: var(--bg-2); }
.country-list { display: grid; gap: 2px; }
.country-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.country-list button:hover, .country-list button.is-active { background: var(--accent-soft); }
.c-name { font-size: 14px; }
.c-count { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.c-bar { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.c-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.1s var(--ease); }
.label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.bars { display: grid; gap: 8px; margin-top: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--ink-2); }
.b-val { font-family: var(--mono); color: var(--ink); }
.b-track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.b-track i { display: block; height: 100%; width: 0; background: var(--ink-2); transition: width 1.1s var(--ease); }

/* Insights cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-card h3 { font-size: 19px; font-weight: 620; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.post-card p { color: var(--ink-2); font-size: 14.5px; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.read-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease); }
.post-card:hover .read-more svg { transform: translateX(3px); }

/* ---------- Contact / discuss panel ---------- */
.contact-card { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(100% 120% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface); padding: clamp(28px, 5vw, 56px); display: grid; gap: 22px; }
.discuss { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.discuss.open { grid-template-rows: 1fr; }
.discuss-inner { overflow: hidden; }
.discuss-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 22px; margin-top: 4px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s; }
.discuss.open .discuss-form { opacity: 1; transform: none; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid { border-color: var(--bad); }
.check-field { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check-field input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-note { font-size: 12.5px; color: var(--muted); max-width: 36em; }
.form-note a { color: var(--ink-2); }
.form-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--bad-soft); color: var(--bad); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.footer-grid h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.footer-grid ul { display: grid; gap: 8px; font-size: 14.5px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 30em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 96px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 20px; justify-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.subnav a { padding: 7px 14px; border-radius: 9px; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.proof { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.proof dd { font-size: clamp(28px, 3.4vw, 42px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.proof dt { font-size: 13px; color: var(--muted); margin-top: 6px; }
.proof div { display: flex; flex-direction: column-reverse; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 14px; }
.step h3 { font-size: 18px; font-weight: 620; }
.step p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.region-list { display: flex; flex-wrap: wrap; gap: 8px; }
.region-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.region-list b { font-family: var(--mono); font-weight: 500; color: var(--accent); margin-left: 6px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 54px 18px 20px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 20px 20px; color: var(--ink-2); display: grid; gap: 10px; max-width: 54em; font-size: 15.5px; }
.faq .ans ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.faq-group { display: grid; gap: 14px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 22px; font-weight: 640; letter-spacing: -0.02em; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--r); background: var(--warn-soft); color: var(--ink-2); font-size: 14.5px; }
.callout svg { width: 20px; height: 20px; fill: none; stroke: var(--warn); stroke-width: 1.8; margin-top: 2px; }
.callout strong { color: var(--ink); }

/* ---------- Scoping tool ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.wizard { padding: 0; overflow: hidden; }
.wiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.progress { height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.5s var(--ease); }
.wiz-body { padding: clamp(22px, 3vw, 34px); min-height: 360px; }
.q { display: grid; gap: 18px; animation: q-in 0.45s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateX(14px); } }
.q-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 640; letter-spacing: -0.02em; line-height: 1.2; }
.q-help { color: var(--ink-2); font-size: 15px; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 3px 14px; align-items: start; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.opt:hover { border-color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s; }
.opt input[type="radio"] + .box { border-radius: 50%; }
.opt .box::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-ink); transform: scale(0); transition: transform 0.2s var(--ease); }
.opt input[type="radio"] + .box::after { border-radius: 50%; }
.opt input:checked + .box { background: var(--accent); border-color: var(--accent); }
.opt input:checked + .box::after { transform: scale(1); }
.opt input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt-t { font-weight: 600; font-size: 15.5px; }
.opt-d { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.num-field { display: grid; gap: 8px; max-width: 320px; }
.num-field input { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 18px; font-family: var(--mono); }
.num-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.wiz-error { color: var(--bad); font-size: 14px; }
.aside-card { position: sticky; top: 90px; display: grid; gap: 14px; }
.aside-card h3 { font-size: 15px; font-weight: 650; }
.aside-card p, .aside-card li { font-size: 13.5px; color: var(--ink-2); }
.aside-card ul { display: grid; gap: 6px; }
.answers { display: grid; gap: 8px; }
.answers li { display: grid; gap: 1px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.answers span { font-size: 12px; color: var(--muted); }

.result { display: grid; gap: 22px; animation: q-in 0.5s var(--ease); }
.verdict { display: grid; gap: 10px; padding: 22px; border-radius: var(--r); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--bg-2); border: 1px solid var(--accent); }
.verdict-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.verdict-title { font-size: clamp(26px, 3vw, 36px); font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; }
.verdict-sub { color: var(--ink-2); }
.r-section { display: grid; gap: 10px; }
.r-section h3 { font-size: 16px; font-weight: 650; }
.r-list { display: grid; gap: 8px; }
.r-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.r-list li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.r-list.warn li::before { background: var(--warn); }
.ctrl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctrl-table th, .ctrl-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctrl-table th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.ctrl-table td:first-child { font-family: var(--mono); white-space: nowrap; color: var(--ink); }
.ctrl-table .pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 11px; }
.pill.m { background: var(--accent-soft); color: var(--accent); }
.pill.a { background: var(--surface-3); color: var(--ink-2); }
.pill.na { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.disclaimer { font-size: 12.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.print-only { display: none; }

/* ---------- Articles ---------- */
.post-wrap { max-width: calc(760px + 2 * var(--pad)); }
.post-title { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 650; text-wrap: balance; }
.post-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); padding-top: 36px; display: grid; gap: 18px; }
.post-body > p:first-child { font-size: 19.5px; color: var(--ink); }
.post-body h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 640; color: var(--ink); margin-top: 18px; }
.post-body ul { display: grid; gap: 10px; }
.post-body li { position: relative; padding-left: 22px; }
.post-body li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 650; }
.post-body a { color: var(--accent); text-underline-offset: 3px; word-break: break-word; }
.post-body h2#sources ~ ul { font-size: 14.5px; gap: 6px; }
.post-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.list-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.list-filters button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; cursor: pointer; color: var(--ink-2); }
.list-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Generic prose page */
.prose { display: grid; gap: 16px; color: var(--ink-2); max-width: 46em; font-size: 16.5px; }
.prose h2 { color: var(--ink); font-size: 22px; font-weight: 640; margin-top: 14px; }
.prose ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.load { animation: rise 0.9s var(--ease) both; }
.load.d1 { animation-delay: 0.08s; } .load.d2 { animation-delay: 0.16s; } .load.d3 { animation-delay: 0.24s; } .load.d4 { animation-delay: 0.32s; } .load.d5 { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .tools, .about-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-card { grid-template-columns: 1fr; }
  .map-side { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .tool { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; max-height: calc(100vh - 68px); overflow-y: auto; margin: 0; padding: 12px var(--pad) 24px; background: var(--bg); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.5s var(--ease-io), visibility 0s linear 0.5s; }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 17px; }
  .menu-panel { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; background: transparent; }
  .nav-item.open .menu-panel { display: block; transform: none; }
  .header-cta { display: none; }
  .brand-role { display: none; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .post-grid, .facts, .discuss-form { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .map-side { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-when { padding-top: 0; }
  .tl-item::before { top: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wiz-foot .btn { flex: 1; }
  .console { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .cl { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print (scoping summary) ---------- */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #f4f5f7; --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc; --line-2: #bbb; --accent: #1f45c2; --accent-soft: #eef2ff; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .page-hero, .no-print, .aside-card, .wiz-head, .wiz-foot, .progress, .discuss, .skip { display: none !important; }
  .print-only { display: block; }
  .tool { display: block; }
  .card, .verdict { border: 1px solid #bbb; box-shadow: none; background: #fff; }
  .wiz-body { padding: 0; min-height: 0; }
  .result { animation: none; }
  a { text-decoration: none; }
  .table-wrap { overflow: visible; border: 0; }
}
fieldset.opts { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-link .tool-t, .tool-link .tool-d { grid-column: 2; } .tool-link > svg { grid-column: 3; grid-row: 1 / span 2; }

/* ---------- Profile card (home hero) ---------- */
.profile-card { position: relative; display: grid; gap: 22px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.profile-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 70%, var(--accent-soft)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.pc-head { display: flex; align-items: center; gap: 16px; }
.pc-avatar { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(145deg, #4c78ff, #2246c9); color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; box-shadow: 0 10px 30px -10px rgba(76, 120, 255, 0.7); }
.pc-name { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.pc-role { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pc-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pc-rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pc-rows dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }
.pc-rows dd { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pc-creds { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: var(--r-md, 14px); background: var(--surface-2, rgba(127,127,127,0.06)); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 13.5px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.pc-creds:hover { border-color: var(--accent); transform: translateY(-1px); }
.pc-seals { display: flex; }
.pc-seals .seal { width: 40px; height: 40px; border-radius: 11px; font-size: 8.5px; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.pc-seals .seal:first-child { margin-left: 0; }
.pc-seals .seal::after { inset: 3px; border-radius: 8px; }
.pc-creds-t { font-weight: 500; white-space: nowrap; }
.pc-foot { display: flex; gap: 18px; font-size: 14px; }
.pc-foot a { color: var(--accent); text-decoration: none; font-weight: 500; }
.pc-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .pc-rows div { grid-template-columns: 1fr; gap: 2px; } .pc-creds-t { display: none; } }
.pc-seals { gap: 6px; }
.pc-seals .seal { margin-left: 0; box-shadow: none; }
.hero .h1 { font-size: clamp(38px, 5vw, 68px); }

/* ---------- Cursor swarm ---------- */
.swarm { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ---------- Scoping tool loader ---------- */
html.is-loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); opacity: 0; transition: opacity 0.35s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.loader::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 65%); mask: radial-gradient(circle at 50% 50%, #000, transparent 65%); opacity: 0.6; }
.loader::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); filter: blur(10px); animation: ld-breathe 2.4s var(--ease) infinite; }
.loader.on { opacity: 1; }
.loader.out { opacity: 0; transform: scale(1.04); filter: blur(6px); pointer-events: none; }
.loader-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; text-align: center; padding: 0 16px; }
.loader-orb { position: relative; width: 132px; height: 132px; margin-bottom: 8px; }
.loader-orb .ring { position: absolute; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 80%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
.loader-orb .r1 { inset: 0; animation: ld-spin 1.6s linear infinite; }
.loader-orb .r2 { inset: 16px; animation: ld-spin 2.2s linear infinite reverse; opacity: 0.75; }
.loader-orb .r3 { inset: 32px; animation: ld-spin 1.2s linear infinite; opacity: 0.5; }
.loader-orb .dot { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.loader-orb .o1 { animation: ld-orbit 2.8s linear infinite; --r: 74px; }
.loader-orb .o2 { animation: ld-orbit 3.6s linear infinite reverse; --r: 58px; opacity: 0.7; }
.loader-orb .o3 { animation: ld-orbit 2.2s linear infinite; --r: 82px; opacity: 0.45; width: 4px; height: 4px; margin: -2px; }
.loader-orb .mark { position: absolute; inset: 46px; border-radius: 12px; background: linear-gradient(145deg, #4c78ff, #2246c9); box-shadow: 0 10px 30px -8px rgba(76, 120, 255, 0.8); animation: ld-pulse 1.6s var(--ease) infinite; }
.loader-orb .mark::after { content: ""; position: absolute; left: 50%; top: 46%; width: 14px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-50%, -50%) rotate(-45deg); }
.loader-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.loader-bar { width: min(260px, 70vw); height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.loader-bar i.go { animation: ld-fill 1.56s var(--ease) forwards; }
.loader-step { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; min-height: 1.5em; }
.loader-step.swap { animation: ld-swap 0.4s var(--ease); }
.wiz-enter { animation: ld-enter 0.7s var(--ease) both; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-orbit { from { transform: rotate(0deg) translateX(var(--r)); } to { transform: rotate(360deg) translateX(var(--r)); } }
@keyframes ld-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.92); } }
@keyframes ld-breathe { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes ld-fill { from { width: 0; } to { width: 100%; } }
@keyframes ld-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ld-enter { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
@media print { .swarm, .loader { display: none !important; } }

/* ---------- Scope map (scoping results) ---------- */
:root { --t-rose: #f26d86; --t-amber: #f2b44d; --t-violet: #a88bff; --t-teal: #3ad6a0; --t-blue: #7097ff; --t-grey: #8a93a6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --t-rose: #d43c5a; --t-amber: #b7790f; --t-violet: #7650e0; --t-teal: #12996b; --t-blue: #2f5bea; --t-grey: #6b7385; } }
:root[data-theme="light"] { --t-rose: #d43c5a; --t-amber: #b7790f; --t-violet: #7650e0; --t-teal: #12996b; --t-blue: #2f5bea; --t-grey: #6b7385; }
.tone-cde { --tc: var(--t-rose); } .tone-con { --tc: var(--t-amber); } .tone-tpsp { --tc: var(--t-violet); } .tone-out { --tc: var(--t-grey); }
.tone-secure { --tc: var(--t-blue); } .tone-ops { --tc: var(--t-teal); }
.tone-card { --tc: var(--t-rose); } .tone-sys { --tc: var(--t-amber); } .tone-vendor { --tc: var(--t-violet); } .tone-net { --tc: var(--t-blue); }
.tone-people { --tc: var(--t-teal); } .tone-neutral { --tc: var(--t-grey); } .tone-warn { --tc: var(--t-amber); }

.smap { margin-top: 8px; padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 60%); }
.smap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.smap-head h3 { margin: 0; }
.smap-intro { color: var(--muted); font-size: 14px; margin-top: 4px; }
.smap-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.smap-zone { position: relative; display: grid; align-content: start; gap: 10px; min-height: 120px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tc) 38%, var(--line)); background: color-mix(in srgb, var(--tc) 7%, var(--surface)); transition: box-shadow 0.4s var(--ease); }
.smap-zone.wide { grid-column: 1 / -1; min-height: 90px; }
.smap-zone.ping { animation: smap-ping 0.7s var(--ease); }
@keyframes smap-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.smap-zh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.smap-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.smap-zt { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; color: var(--ink); }
.smap-zs { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.smap-count { font-family: var(--mono); font-size: 12px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.smap-slots, .smap-tray-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smap-empty { font-size: 12.5px; color: var(--muted); font-style: italic; opacity: 0.8; padding: 4px 0; }
.smap-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); line-height: 1.2; max-width: 100%; will-change: transform; }
.smap-chip.flying { z-index: 5; box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--tc) 70%, transparent); }
.smap-chip.placed { border-color: color-mix(in srgb, var(--tc) 45%, var(--line-2)); }
.smap-ic { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc); }
.smap-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.smap-cl { overflow-wrap: anywhere; }
.smap-tag { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 6px; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); white-space: nowrap; }
.smap-tray { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line-2); transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease); }
.smap-tray-h { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.smap-tray.done { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.smap-tray.done .smap-tray-h { color: var(--ok); margin-bottom: 0; }
.smap-tray.done .smap-tray-h::before { content: "✓ "; }
.smap-grid-wrap { margin-top: 22px; }
.smap-gh { font-size: 15px; font-weight: 650; margin: 0 0 8px; color: var(--ink); }
.smap-legend { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.smap-legend li { display: inline-flex; align-items: center; gap: 6px; }
.smap-legend .sw { width: 12px; height: 12px; border-radius: 4px; background: var(--sc); opacity: var(--so, 1); }
.st-f, .st-m { --sc: var(--accent); } .st-p, .st-a { --sc: var(--t-amber); } .st-n { --sc: var(--line-2); --so: 1; }
.smap-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.smap-grid.compact { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.smap-cell { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); opacity: 0.35; transform: translateY(6px) scale(0.98); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease); }
.smap-grid.compact .smap-cell { padding: 8px 6px; text-align: center; }
.smap-cell.on { opacity: 1; transform: none; }
.smap-cell.on.st-f, .smap-cell.on.st-m { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.smap-cell.on.st-p, .smap-cell.on.st-a { background: color-mix(in srgb, var(--t-amber) 14%, var(--surface)); border-color: color-mix(in srgb, var(--t-amber) 50%, transparent); }
.smap-cell.on.st-n { opacity: 0.5; }
.smap-cid { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.smap-cell.on.st-f .smap-cid, .smap-cell.on.st-m .smap-cid { color: var(--accent); }
.smap-cell.on.st-p .smap-cid, .smap-cell.on.st-a .smap-cid { color: var(--t-amber); }
.smap-clab { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.smap-cell.st-n .smap-clab { text-decoration: line-through; text-decoration-color: var(--line-2); }
@media (max-width: 680px) { .smap-board { grid-template-columns: 1fr; } .smap-zone.wide { grid-column: auto; } .smap-head { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .smap-cell { transition: none; transform: none; } .smap-zone.ping { animation: none; } }
@media print { .smap { break-inside: avoid; border-color: #bbb; } .smap-cell { opacity: 1 !important; transform: none !important; } .smap-tray { display: none; } }
@media (max-width: 480px) { .smap-chip { flex-wrap: wrap; border-radius: 16px; } .smap-cl { flex: 1 1 0; min-width: 0; } }
