/* ============================================================
   Akshay Kumar Sharma - site styles
   Palette (see THEME block at the end of this file): #07111F bg, #0B1728 navbar, #111F33 cards, #2563EB primary, #22D3EE cyan
            #22D3EE cyan, #FFFFFF white, #CBD5E1 light gray
   ============================================================ */
:root {
  --navy: #071426;
  --bg: #0b1120;
  --card: #0e1a2f;
  --card-2: #111f38;
  --blue: #1677ff;
  --blue-btn: #0f62e6;
  --cyan: #22d3ee;
  --white: #ffffff;
  --gray: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(34, 211, 238, 0.35);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --radius: 14px;
  --maxw: 1240px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--gray);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7be8f9; }
h1, h2, h3, h4 { color: var(--white); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.2vw + .8rem, 2.15rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--cyan); color: #00131a; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 200; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7, 20, 38, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--white); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, rgba(22,119,255,.25), rgba(34,211,238,.18)); border: 1px solid var(--line-strong); color: var(--cyan); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; }
.nav a.nav-link { display: block; padding: .5rem .5rem; border-radius: 8px; color: var(--gray); text-decoration: none; font-size: .9rem; font-weight: 550; white-space: nowrap; }
.nav-cta { white-space: nowrap; }
.nav a.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a.nav-link[aria-current="page"] { color: var(--cyan); background: rgba(34,211,238,.1); }
.nav-cta { margin-left: .4rem; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--white); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; place-items: center; }
.menu-toggle:hover { background: rgba(255,255,255,.06); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1275px) {
  .menu-toggle { display: grid; }
  .nav { position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - var(--hdr-h, 69px)); max-height: calc(100dvh - var(--hdr-h, 69px)); background: var(--navy); flex-direction: column; align-items: stretch; padding: 1rem; gap: 1rem; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; border-top: 1px solid var(--line); }
  .nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: .15rem; }
  .nav a.nav-link { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin: 0; text-align: center; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 11px; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-btn); color: #fff; box-shadow: 0 6px 22px -8px rgba(22,119,255,.7); }
.btn-primary:hover { background: #1a70f5; color: #fff; }
.btn-cyan { background: var(--cyan); color: #00131a; }
.btn-cyan:hover { background: #67e3f5; color: #00131a; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(203,213,225,.35); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: .55rem .95rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 85% -10%, rgba(22,119,255,.22), transparent 60%), radial-gradient(700px 380px at 0% 110%, rgba(34,211,238,.10), transparent 60%), var(--navy); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero .kicker { font-family: var(--mono); color: var(--cyan); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.hero h1 { margin-bottom: .35em; }
.hero .role { font-size: clamp(1.1rem, 1.4vw + .7rem, 1.45rem); color: var(--white); font-weight: 600; margin-bottom: .8rem; }
.hero .mission { font-size: 1.15rem; color: var(--cyan); font-weight: 600; margin-bottom: 1rem; }
.hero .lead { max-width: 60ch; color: var(--gray); }
.hero .btn-row { margin: 1.5rem 0 1rem; }
.social-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.social-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--gray); text-decoration: none; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; background: rgba(255,255,255,.03); }
.social-link:hover { color: var(--white); border-color: var(--cyan); }

.portrait-wrap { position: relative; justify-self: center; width: min(100%, 360px); }
.portrait-frame { position: relative; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #0f2442, #0a1730); border: 1px solid var(--line); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(34,211,238,.55); }
.portrait-wrap { padding: 24px; width: min(100%, 408px); }
.portrait-frame { border: 0; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(255,255,255,.14), 0 18px 50px -12px rgba(22,119,255,.55); }
/* professional frame: gradient ring + fine dashed outer ring */
.portrait-wrap::before, .portrait-wrap::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.portrait-wrap::before { inset: 5px; padding: 4px; background: conic-gradient(from 210deg, #1677ff, #22d3ee, #7dd3fc, #1677ff, #0b3a8f, #22d3ee, #1677ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; }
.portrait-wrap::after { inset: -2px; border: 1.5px dashed rgba(34,211,238,.45); }
.portrait-note { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: .8rem; text-align: center; }

.safety-card { margin-top: 1.6rem; width: min(100%, 360px); justify-self: center; background: rgba(7,20,38,.8); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.safety-card .label { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: .5rem; display: flex; gap: .4rem; align-items: center; }
.safety-card ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; color: var(--gray); }
.safety-card li { margin: .15rem 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .portrait-wrap { order: -1; width: min(80%, 316px); justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section.alt { background: linear-gradient(180deg, rgba(7,20,38,.7), rgba(7,20,38,.35)); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; max-width: 60ch; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: .6rem; display: block; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-more:hover .icon { transform: translateX(3px); }
.link-more .icon { transition: transform .15s; }

/* Page header (inner pages) */
.page-header { background: radial-gradient(800px 300px at 90% -20%, rgba(22,119,255,.2), transparent 60%), var(--navy); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-header p { max-width: 68ch; color: var(--gray); margin: 0; font-size: 1.12rem; }
.page-header h1 { font-size: clamp(1.9rem, 3.4vw + .6rem, 2.9rem); }
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card { text-decoration: none; color: var(--gray); }
a.card:hover, .card.hoverable:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 40px -22px rgba(34,211,238,.45); color: var(--gray); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--gray); font-size: .98rem; }
.card .card-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); color: var(--cyan); margin-bottom: .3rem; }
.card .card-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; gap: .4rem; color: var(--cyan); font-weight: 600; font-size: .95rem; }
.meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 650; border: 1px solid var(--line); color: var(--gray); background: rgba(255,255,255,.04); }
.pill-cyan { color: var(--cyan); border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.08); }
.pill-warn { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.pill-blue { color: #8ab8ff; border-color: rgba(22,119,255,.5); background: rgba(22,119,255,.12); }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Filters & search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: .75rem 1rem .75rem 2.6rem; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--white); font: inherit; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--gray); padding: .42rem .9rem; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip:hover { border-color: var(--cyan); color: var(--white); }
.chip[aria-pressed="true"] { background: rgba(34,211,238,.14); border-color: var(--cyan); color: var(--cyan); font-weight: 650; }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }

/* ---------- Empty state & notices ---------- */
.empty { text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; background: rgba(14,26,47,.5); }
.empty .icon { width: 2.2rem; height: 2.2rem; color: var(--cyan); margin: 0 auto 1rem; }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(14,26,47,.7); font-size: .97rem; }
.notice .icon { margin-top: .25rem; color: var(--cyan); }
.notice p { margin: 0; }
.notice.warn { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.07); }
.notice.warn .icon { color: var(--warn); }
.notice.danger { border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.07); }
.notice.danger .icon { color: var(--err); }
.notice.ok { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.07); }
.notice.ok .icon { color: var(--ok); }
.stack > * + * { margin-top: 1rem; }

/* ---------- Article / prose ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 2rem; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .45rem 0; }
.prose li::marker { color: var(--cyan); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin: .65rem 0; }
.checklist li .icon { position: absolute; left: 0; top: .32em; width: 1.1rem; height: 1.1rem; color: var(--cyan); }
.checklist.warnlist li .icon { color: var(--warn); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 .2rem 2.8rem; margin: .9rem 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35); font-family: var(--mono); }
.side-box { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.side-box .card { gap: .4rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin: .4rem 0; }
.report-box { border-color: rgba(34,211,238,.4); }
.helpline { font-size: 2.2rem; font-weight: 800; color: var(--white); font-family: var(--mono); line-height: 1; }

/* Language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang-toggle button { border: 0; background: transparent; color: var(--gray); padding: .35rem .95rem; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; font-weight: 600; }
.lang-toggle button[aria-pressed="true"] { background: var(--blue-btn); color: #fff; }
[data-l="hi"] { font-size: 1.08rem; line-height: 1.85; }

/* ---------- Project / research details ---------- */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: .6rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--white); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .6rem; } }

/* ---------- Book ---------- */
.book-hero { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .book-hero { grid-template-columns: 1fr; } .book-cover-wrap { max-width: 260px; } }
.book-cover { aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: -8px 12px 40px -12px rgba(0,0,0,.7), 0 0 40px -12px rgba(22,119,255,.5); background: var(--card); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { height: 100%; padding: 1.6rem 1.3rem; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #0f2a52, #071426); }
.cover-placeholder .t { color: var(--white); font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.cover-placeholder .a { color: var(--cyan); font-family: var(--mono); font-size: .85rem; }
.cover-placeholder .n { color: var(--muted); font-size: .72rem; font-family: var(--mono); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { color: var(--white); font-weight: 600; font-size: .96rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; border-radius: 10px; border: 1px solid rgba(148,163,184,.35); background: #0a1428; color: var(--white); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: 2px solid rgba(34,211,238,.35); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { color: #fda4af; font-size: .9rem; min-height: 1.2em; }
.field .hint { color: var(--muted); font-size: .88rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; accent-color: var(--blue-btn); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; background: var(--navy); border-top: 1px solid var(--line); padding-top: 3rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .85rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--cyan); margin-bottom: .8rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: var(--gray); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.disclaimer-bar { background: rgba(34,211,238,.06); border-block: 1px solid rgba(34,211,238,.18); padding: .8rem 0; font-size: .9rem; color: var(--gray); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.nf .code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--cyan); line-height: 1; margin-bottom: 1rem; }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .btn, .toolbar, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}

/* ---------- Additions ---------- */
.hero h1.caps { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.9rem, 4vw + .4rem, 3.2rem); }
@media (max-width: 900px) { #intro-grid, #about-grid { grid-template-columns: 1fr !important; } }

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; columns: 3 260px; column-gap: 1.1rem; }
.g-item { break-inside: avoid; margin: 0 0 1.1rem; }
.g-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.g-btn:hover { border-color: var(--line-strong); }
.g-btn img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.g-btn:hover img { transform: scale(1.03); }
.g-cap { font-size: .88rem; color: var(--muted); margin: .5rem .2rem 0; }
dialog.lightbox { border: 1px solid var(--line-strong); background: var(--navy); color: var(--gray); padding: 1rem; border-radius: 16px; width: min(96vw, 1100px); max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(3, 8, 18, .88); }
.lb-img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; background: #050b16; }
.lb-cap { margin: .8rem 0 0; color: var(--white); min-height: 1.4em; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }

/* ---------- Awareness diagrams ---------- */
.diagram { margin: 1.4rem 0 2rem; padding: 1.1rem 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,26,47,.55); }
.diagram figcaption { display: grid; gap: .25rem; margin-bottom: 1rem; }
.diagram .dhint { color: var(--muted); font-size: .88rem; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.7rem; }
.flow .fstep { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; }
.flow .fstep::before { content: none; }
.flow .fstep:not(:last-child)::after { content: "\2193"; position: absolute; left: 50%; bottom: -1.55rem; transform: translateX(-50%); color: var(--muted); font-size: 1.2rem; line-height: 1; }
.fnode { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; padding: 1.1rem .8rem .8rem; border-radius: 12px; border: 1px solid rgba(251,113,133,.5); background: rgba(251,113,133,.08); font-size: .93rem; line-height: 1.4; flex: 1; }
.fnode .icon { width: 1.5rem; height: 1.5rem; color: var(--err); }
.fnum { position: absolute; top: -.7rem; left: .7rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); border: 1px solid rgba(251,113,133,.6); color: var(--err); font: 700 .78rem var(--mono); }
.fstop { position: relative; display: flex; gap: .45rem; align-items: flex-start; margin-top: .7rem; padding: .65rem .7rem; border-radius: 10px; border: 1px solid rgba(52,211,153,.5); background: rgba(52,211,153,.08); font-size: .85rem; line-height: 1.4; text-align: left; }
.fstop::before { content: ""; position: absolute; left: 50%; top: -.7rem; height: .7rem; border-left: 2px dashed rgba(52,211,153,.6); }
.fstop .icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .12rem; color: var(--ok); }
@media (min-width: 900px) {
  .flow { gap: 1.9rem; }
  .flow.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow .fstep:not(:last-child)::after { content: "\2192"; left: auto; right: -1.5rem; bottom: auto; top: 2.1rem; transform: none; }
}
.doshead { display: none; }
.dolist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.dopair { display: grid; gap: .5rem; margin: 0; padding: 0; }
.dopair::before { content: none; }
.dobad, .dogood { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .85rem; border-radius: 10px; font-size: .93rem; line-height: 1.4; }
.dobad { border: 1px solid rgba(251,113,133,.45); background: rgba(251,113,133,.07); }
.dogood { border: 1px solid rgba(52,211,153,.45); background: rgba(52,211,153,.07); }
.dobad .icon, .dogood .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
.dobad .icon { color: var(--err); }
.dogood .icon { color: var(--ok); }
@media (min-width: 640px) {
  .doshead { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .6rem; font: 600 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .doshead .bad { color: var(--err); } .doshead .good { color: var(--ok); }
  .dopair { grid-template-columns: 1fr 1fr; gap: .8rem; }
}
/* downloads */
.dl-box { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin: 1.4rem 0; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(34,211,238,.06); }
.dl-box p { margin: 0; font-size: .95rem; }
.dl-box .btn-row { margin: 0; }
.diagram .flow, .diagram .dolist { padding: 0; margin: 0; }
.diagram li { margin: 0; }
.diagram li::marker { content: none; }
.diagram .flow .fstep, .diagram .dolist .dopair { margin: 0; }
.poster { margin: 1.4rem 0 2rem; }
.poster img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.poster .pdl { display: inline-flex; gap: .4rem; align-items: center; margin-top: .6rem; font-size: .88rem; color: var(--cyan); }
.poster .pdl .icon { width: 1rem; height: 1rem; }

/* Co-Head section */
.cohead { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; margin-top: .6rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cohead-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 50%; border: 2px solid var(--line-strong); box-shadow: 0 0 40px rgba(34,211,238,.15); }
.cohead-info h2 { margin: 0 0 .2rem; }
.cohead-role { margin: 0 0 1rem; color: var(--cyan); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.footer-credit { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 0 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; }
.footer-credit .icon { width: 1.05rem; height: 1.05rem; color: var(--cyan); flex: none; }
.footer-credit a { color: var(--cyan); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(34,211,238,.4); }
.footer-credit a:hover { border-bottom-color: var(--cyan); }

/* Blog infographic */
.infographic { margin: 0 0 3rem; }
.infographic figcaption h2 { margin: .2rem 0 1rem; }
.infographic img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.infographic .pdl-row { margin: .8rem 0 0; }
.infographic .pdl { display: inline-flex; gap: .45rem; align-items: center; color: var(--cyan); font-size: .92rem; }
.infographic .pdl .icon { width: 1rem; height: 1rem; }
.empty .infographic { margin: 2rem 0 0; text-align: center; }
.empty .infographic figcaption { margin-bottom: .8rem; }
.empty .infographic img { margin-inline: auto; }

/* Footer: compact and tidy */
.site-footer { margin-top: 3rem; padding-top: 2.2rem; font-size: .9rem; line-height: 1.5; }
.footer-grid { grid-template-columns: 1.3fr 1.5fr 1fr 1.1fr; gap: 1.6rem 2rem; padding-bottom: 1.6rem; }
.site-footer h2 { font-size: .78rem; margin-bottom: .6rem; }
.site-footer li { margin: .22rem 0; line-height: 1.45; }
.site-footer .brand { font-size: 1rem; gap: .6rem; }
.site-footer .brand-mark { width: 32px; height: 32px; }
.site-footer .brand-mark .icon { width: 17px; height: 17px; }
.site-footer .footer-grid > div:first-child p { margin-top: .7rem !important; font-size: .88rem; line-height: 1.55; max-width: 34ch; }
.site-footer .footer-grid > div:nth-child(2) ul { columns: 2; column-gap: 1.8rem; }
.site-footer .footer-grid > div:nth-child(2) li { break-inside: avoid; margin: 0 0 .45rem; }
.footer-bottom { padding-block: .9rem; font-size: .82rem; }
.footer-credit { padding: .7rem 0 1.1rem; font-size: .86rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; } .site-footer .footer-grid > div:first-child p { max-width: none; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; } .site-footer .footer-grid > div:nth-child(2) { grid-column: 1 / -1; } }
.cohead-info { flex: 1 1 320px; min-width: 0; }
.cohead-about { margin: 0 0 1.1rem; max-width: 68ch; color: var(--gray); line-height: 1.7; }

/* ---------- Quiz ---------- */
.quiz-level { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.quiz-meta { font-size: .88rem; color: var(--muted); }
.quiz-grid { margin-top: 1.6rem; }
.quiz-wrap { max-width: 820px; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem; }
.quiz-card h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.quiz-points { margin: 0 0 1.2rem; padding-left: 1.2rem; color: var(--gray); }
.quiz-points li { margin: .35rem 0; }
.quiz-card label { display: block; font-weight: 600; margin-bottom: .45rem; }
.quiz-card input[type="text"] { width: 100%; padding: .8rem 1rem; margin-bottom: .9rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--navy); color: var(--white); font: inherit; }
.quiz-err { color: var(--err); margin: 0 0 .9rem; }
.quiz-progress { height: 8px; border-radius: 99px; background: rgba(148,163,184,.2); overflow: hidden; margin-bottom: 1rem; }
.qp-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s; }
.quiz-count { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: 0 0 .5rem; }
.quiz-q { font-size: 1.3rem; line-height: 1.4; outline: none; }
.quiz-opts { display: grid; gap: .7rem; margin: 1.1rem 0; }
.quiz-opt { display: flex; gap: .9rem; align-items: flex-start; text-align: left; width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--white); font: inherit; cursor: pointer; }
.quiz-opt:hover:not(:disabled) { border-color: var(--cyan); }
.quiz-opt:disabled { cursor: default; }
.quiz-key { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(34,211,238,.12); color: var(--cyan); font-family: var(--mono); font-weight: 700; font-size: .85rem; }
.quiz-opt.is-right { border-color: var(--ok); background: rgba(52,211,153,.1); }
.quiz-opt.is-wrong { border-color: var(--err); background: rgba(251,113,133,.1); }
.quiz-feedback p { margin: 0 0 .8rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line); }
.fb-ok { border-color: rgba(52,211,153,.5) !important; }
.fb-bad { border-color: rgba(251,113,133,.5) !important; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.quiz-score { font-size: 2.6rem; font-weight: 800; margin: 0; color: var(--cyan); }
.quiz-score span { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.quiz-result.is-fail .quiz-score { color: var(--warn); }
.cert-canvas { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fbfaf6; margin-bottom: 1rem; }
.quiz-fine { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.quiz-review summary { cursor: pointer; font-weight: 600; color: var(--cyan); }
.quiz-review ol { padding-left: 1.2rem; }
.quiz-review li { margin: 1rem 0; padding-left: .4rem; border-left: 3px solid var(--line); }
.quiz-review li.rv-ok { border-left-color: var(--ok); }
.quiz-review li.rv-bad { border-left-color: var(--err); }
.quiz-review p { margin: .3rem 0; }
.rv-why { color: var(--muted); font-size: .93rem; }
.quiz-back { margin-top: 1rem; }

/* ---------- Blog: news images ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: start; max-width: 880px; }
.news-item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.news-item img { display: block; width: 100%; height: auto; border-radius: 8px; }
.news-item figcaption { margin-top: .7rem; font-size: .93rem; color: var(--gray); }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* ======================================================================
   THEME: owner-specified palette
   bg #07111F, navbar #0B1728, cards #111F33, primary #2563EB, cyan #22D3EE,
   text #F8FAFC / #A9B7C9, success #22C55E, warning #FBBF24, error #F87171
   ====================================================================== */
:root {
  --navy: #07111f;
  --bg: #07111f;
  --nav-bg: #0b1728;
  --card: #111f33;
  --card-2: #15263f;
  --blue: #2563eb;
  --blue-btn: #2563eb;
  --cyan: #22d3ee;
  --white: #f8fafc;
  --gray: #a9b7c9;
  --muted: #a9b7c9;
  --ok: #22c55e;
  --warn: #fbbf24;
  --err: #f87171;
  --line: rgba(169, 183, 201, 0.18);
  --line-strong: rgba(34, 211, 238, 0.4);
}
body { background: var(--bg); color: var(--gray); }
.site-header { background: rgba(11, 23, 40, 0.94); border-bottom: 1px solid var(--line); border-image: none; }
.nav { }
.btn-primary { background: #2563eb; color: #f8fafc; box-shadow: 0 8px 22px -10px rgba(37, 99, 235, .75); }
.btn-primary:hover { background: #1d4ed8; color: #f8fafc; }
.btn-cyan { background: #22d3ee; color: #07111f; }
.btn-cyan:hover { background: #4adff3; color: #07111f; }
.btn-outline { border-color: rgba(169, 183, 201, .35); }
.hero { background: radial-gradient(900px 460px at 85% -10%, rgba(37,99,235,.24), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(34,211,238,.09), transparent 60%), var(--bg); }
.page-header { background: radial-gradient(800px 320px at 90% -20%, rgba(37,99,235,.22), transparent 60%), var(--bg); }
.hero h1 { background: none; -webkit-text-fill-color: currentColor; color: var(--white); }
.hero .mission, .eyebrow, .hero .kicker { color: var(--cyan); }
.section.alt { background: rgba(17, 31, 51, .45); border-block: 1px solid var(--line); }
.card { background: var(--card); box-shadow: 0 12px 30px -24px rgba(0,0,0,.8); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cyan); opacity: 0; transition: opacity .2s; }
a.card:hover::before, .card.hoverable:hover::before { opacity: 1; }
a.card:hover, .card.hoverable:hover { box-shadow: 0 16px 40px -22px rgba(34, 211, 238, .45); }
.card .card-icon { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); }
.chip[aria-pressed="true"] { background: rgba(34,211,238,.14); border-color: var(--cyan); }
.site-footer { background: var(--nav-bg); border-top: 1px solid var(--line); border-image: none; }
.quiz-card, .news-item { background: var(--card); }
.qp-bar { background: linear-gradient(90deg, #2563eb, #22d3ee); }
.quiz-card input[type="text"], .quiz-card input[type="tel"] { background: var(--bg); }
.quiz-card input[type="tel"] { width: 100%; padding: .8rem 1rem; margin-bottom: .9rem; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--white); font: inherit; }

/* ---------- Co-Head photo frame (matches the portrait frame) ---------- */
.cohead-frame { position: relative; flex: none; padding: 18px; width: 214px; height: 214px; }
.cohead-frame .cohead-photo { display: block; width: 100%; height: 100%; border: 0; box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(255,255,255,.14), 0 14px 38px -12px rgba(37,99,235,.55); }
.cohead-frame::before, .cohead-frame::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cohead-frame::before { inset: 3px; padding: 3px; background: conic-gradient(from 210deg, #1677ff, #22d3ee, #7dd3fc, #1677ff, #0b3a8f, #22d3ee, #1677ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; }
.cohead-frame::after { inset: -3px; border: 1.5px dashed rgba(34,211,238,.45); }

/* Co-Head photo: box (rounded-square) frame instead of a circle */
.cohead-frame { width: 224px; height: 224px; padding: 20px; }
.cohead-frame .cohead-photo { border-radius: 14px; box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(255,255,255,.14), 0 14px 38px -12px rgba(37,99,235,.55); }
.cohead-frame::before { border-radius: 22px; inset: 4px; padding: 4px; }
.cohead-frame::after { border-radius: 28px; inset: -3px; }

/* ======================================================================
   DESIGN POLISH: light theme, theme toggle, scroll reveal, intro, impact strip, 404
   ====================================================================== */

/* ---------- Light theme (toggle at bottom-right). Dark stays the default. ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --navy: #eaf0f8;
  --bg: #f4f7fb;
  --nav-bg: #ffffff;
  --card: #ffffff;
  --card-2: #f6f9fd;
  --white: #0b1728;
  --gray: #334155;
  --muted: #55657d;
  --cyan: #0e7490;
  --blue: #2563eb;
  --ok: #15803d;
  --warn: #b45309;
  --err: #b91c1c;
  --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(14, 116, 144, 0.5);
}
:root[data-theme="light"] a:hover { color: #0b5d73; }
:root[data-theme="light"] .site-header { background: rgba(255, 255, 255, .94); }
:root[data-theme="light"] .hero { background: radial-gradient(900px 460px at 85% -10%, rgba(37,99,235,.14), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(14,116,144,.08), transparent 60%), var(--bg); }
:root[data-theme="light"] .hero::before { background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px); }
:root[data-theme="light"] .page-header { background: radial-gradient(800px 320px at 90% -20%, rgba(37,99,235,.12), transparent 60%), var(--navy); }
:root[data-theme="light"] .section.alt { background: rgba(15, 23, 42, .035); }
:root[data-theme="light"] .card { box-shadow: 0 10px 28px -20px rgba(15,23,42,.35); }
:root[data-theme="light"] a.card:hover, :root[data-theme="light"] .card.hoverable:hover { box-shadow: 0 16px 36px -20px rgba(14,116,144,.5); }
:root[data-theme="light"] .btn-cyan { background: #0e7490; color: #fff; }
:root[data-theme="light"] .btn-cyan:hover { background: #0b5d73; color: #fff; }
:root[data-theme="light"] .btn-outline { border-color: rgba(15,23,42,.3); }
:root[data-theme="light"] .safety-card { background: #fff; }
:root[data-theme="light"] .empty { background: rgba(255,255,255,.7); }
:root[data-theme="light"] .social-link, :root[data-theme="light"] .pill { background: rgba(15,23,42,.04); }
:root[data-theme="light"] .pill-blue { color: #1d4ed8; }
:root[data-theme="light"] .portrait-frame { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(15,23,42,.15), 0 18px 44px -14px rgba(37,99,235,.4); }
:root[data-theme="light"] .site-footer { background: #fff; }
:root[data-theme="light"] .notice { background: #fff; }

/* ---------- Theme toggle ---------- */

/* ---------- Smooth theme change ---------- */
body, .card, .site-header, .site-footer, .btn { transition-property: background-color, color, border-color, box-shadow, transform; transition-duration: .25s; }

/* ---------- Scroll reveal (classes are added by app.js; nothing is hidden without JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media print, (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- One-time page intro (first page of a visit only; pure CSS, never blocks clicks) ---------- */
html.intro::before { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--bg); pointer-events: none; animation: introOut 1.5s ease forwards; }
html.intro::after { content: ""; position: fixed; left: 50%; top: 50%; width: 64px; height: 64px; margin: -52px 0 0 -32px; z-index: 1001; border-radius: 50%; border: 3px solid rgba(34,211,238,.2); border-top-color: var(--cyan); pointer-events: none; animation: introOut 1.5s ease forwards, introSpin .8s linear infinite; }
html.intro body::after { content: "AKSHAY KUMAR SHARMA"; position: fixed; left: 0; right: 0; top: 50%; margin-top: 38px; text-align: center; z-index: 1001; color: var(--white); font-weight: 700; letter-spacing: .28em; font-size: .85rem; pointer-events: none; animation: introOut 1.5s ease forwards; }
@keyframes introOut { 0%, 68% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes introSpin { to { transform: rotate(360deg); } }

/* ---------- Home: impact strip ---------- */
.impact { padding-block: clamp(2rem, 4vw, 3rem); }
.impact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.impact-item { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--cyan); }
.impact-num { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.impact-suffix { color: var(--cyan); }
.impact-label { font-size: .93rem; color: var(--gray); }
.impact-note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.impact-own { margin-top: 1.2rem; }

/* ---------- 404 page ---------- */
.nf2 { padding-block: clamp(3rem, 8vw, 6rem); }
.nf-art { position: relative; width: 96px; height: 96px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(34,211,238,.1); color: var(--cyan); border: 1px solid var(--line-strong); box-shadow: 0 0 50px -8px rgba(34,211,238,.45); }
.nf-art .icon { width: 40px; height: 40px; }
.nf-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed rgba(34,211,238,.5); animation: introSpin 18s linear infinite; }
.nf2 .code { background: linear-gradient(135deg, #2563eb, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; margin-bottom: .4rem; }
:root[data-theme="light"] .nf2 .code { background: linear-gradient(135deg, #1d4ed8, #0e7490); -webkit-background-clip: text; background-clip: text; }
.nf-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.nf-text { max-width: 56ch; margin: 0 auto 1.4rem; }
.nf-actions { justify-content: center; margin-bottom: 2.2rem; }
.nf-links { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 980px; text-align: left; }
.nf-links .card { height: 100%; }
.nf-help { margin: 2rem auto 0; display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--gray); }
.nf-help .icon { color: var(--warn); }
@media (max-width: 900px) { .nf-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .nf-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nf-ring { animation: none; } }
:root[data-theme="light"] .diagram { background: #fff; }
:root[data-theme="light"] .dl-box { background: rgba(14,116,144,.07); }
:root[data-theme="light"] .fnode { background: rgba(185,28,28,.06); border-color: rgba(185,28,28,.4); }
:root[data-theme="light"] .fstop, :root[data-theme="light"] .dogood { background: rgba(21,128,61,.07); border-color: rgba(21,128,61,.4); }
:root[data-theme="light"] .dobad { background: rgba(185,28,28,.06); border-color: rgba(185,28,28,.4); }
:root[data-theme="light"] .poster img, :root[data-theme="light"] .infographic img { box-shadow: 0 10px 30px rgba(15,23,42,.18); }
:root[data-theme="light"] .quiz-card input[type="text"], :root[data-theme="light"] .quiz-card input[type="tel"] { background: #fff; }
:root[data-theme="light"] .quiz-opt { background: #f6f9fd; }

/* ---------- Theme switch: Dark / Mix / Light ---------- */
.theme-switch { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 10px 28px -10px rgba(0,0,0,.55); }
.theme-switch button { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 999px; padding: .42rem .75rem; background: transparent; color: var(--gray); font: 600 .82rem var(--font); cursor: pointer; }
.theme-switch button .icon { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--white); }
.theme-switch button[aria-pressed="true"] { background: #2563eb; color: #fff; }
@media (max-width: 520px) { .theme-switch button span { display: none; } .theme-switch button { padding: .55rem .7rem; } }
@media print { .theme-switch { display: none !important; } }

/* ---------- "Mix" theme: light content with dark header, hero, page headers and footer ---------- */
:root[data-theme="light"][data-mix] :is(.site-header, .hero, .page-header, .site-footer) {
  --navy: #07111f; --bg: #07111f; --card: #111f33; --card-2: #15263f;
  --white: #f8fafc; --gray: #a9b7c9; --muted: #a9b7c9; --cyan: #22d3ee;
  --ok: #22c55e; --warn: #fbbf24; --err: #f87171;
  --line: rgba(169, 183, 201, .18); --line-strong: rgba(34, 211, 238, .4);
  color: var(--gray);
}
:root[data-theme="light"][data-mix] .site-header { background: rgba(11, 23, 40, .95); }
:root[data-theme="light"][data-mix] .hero { background: radial-gradient(900px 460px at 85% -10%, rgba(37,99,235,.26), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(34,211,238,.1), transparent 60%), #07111f; }
:root[data-theme="light"][data-mix] .hero::before { background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); }
:root[data-theme="light"][data-mix] .page-header { background: radial-gradient(800px 320px at 90% -20%, rgba(37,99,235,.24), transparent 60%), #07111f; }
:root[data-theme="light"][data-mix] .site-footer { background: #0b1728; }
:root[data-theme="light"][data-mix] :is(.hero, .page-header) .btn-cyan { background: #22d3ee; color: #07111f; }
:root[data-theme="light"][data-mix] :is(.site-header, .hero, .page-header, .site-footer) .btn-outline { border-color: rgba(169,183,201,.35); }
:root[data-theme="light"][data-mix] .hero a:hover, :root[data-theme="light"][data-mix] .page-header a:hover, :root[data-theme="light"][data-mix] .site-footer a:hover { color: #7be8f9; }
:root[data-theme="light"][data-mix] .hero .safety-card { background: rgba(7, 20, 38, .8); }
:root[data-theme="light"][data-mix] :is(.hero, .page-header, .site-footer) :is(.social-link, .pill) { background: rgba(255,255,255,.04); }
:root[data-theme="light"][data-mix] .hero .portrait-frame { box-shadow: 0 0 0 6px #07111f, 0 0 0 7px rgba(255,255,255,.14), 0 18px 50px -12px rgba(37,99,235,.55); }
:root[data-theme="light"][data-mix] .hero h1 { color: #f8fafc; }

/* ---------- Top bar (helpline, search, language) ---------- */
.topbar { background: #0b1728; border-bottom: 1px solid rgba(169,183,201,.16); font-size: .85rem; color: #a9b7c9; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; padding-block: .25rem; }
.topbar-help { margin: 0; display: flex; align-items: center; gap: .45rem; line-height: 1.3; }
.topbar-help .icon { width: 1rem; height: 1rem; color: #fbbf24; flex: none; }
.topbar a { color: #22d3ee; }
.topbar-tools { display: flex; align-items: center; gap: .9rem; }
.topbar-search { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; }
.topbar-search .icon { width: 1rem; height: 1rem; }
.topbar .lang-toggle { transform: scale(.88); transform-origin: right center; }
@media (max-width: 560px) { .topbar-help span { font-size: .8rem; } .topbar-inner { justify-content: center; } }

/* ---------- Site search ---------- */
.site-search { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-search .search { max-width: none; flex: 1 1 320px; }
.search-chips { margin-bottom: 1.2rem; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.search-results .card .pill { align-self: flex-start; }

/* ---------- Article: sources & verification ---------- */
.sources { margin: 2.2rem 0 0; padding: 1.3rem 1.4rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.sources h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; margin: 0 0 1rem; }
.sources h2 .icon { color: var(--ok); width: 1.3rem; height: 1.3rem; }
.sources h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.src-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem 1.2rem; margin: 0; }
.src-meta div { min-width: 0; }
.src-meta dt { font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.src-meta dd { margin: .15rem 0 0; color: var(--white); }
.src-list { margin: 0; padding-left: 1.2rem; }
.src-list li { margin: .3rem 0; }
.src-note { margin: 1rem 0 0; font-size: .92rem; color: var(--muted); }
:root[data-theme="light"] .topbar { --white: #f8fafc; --gray: #a9b7c9; --card: #111f33; --card-2: #15263f; --cyan: #22d3ee; --muted: #a9b7c9; --line: rgba(169,183,201,.18); --line-strong: rgba(34,211,238,.4); }
.topbar-search { padding: .45rem .25rem; }
.topbar-help a { display: inline-block; padding: .3rem .15rem; }
@media (max-width: 560px) { .topbar .lang-toggle { transform: none; } .topbar-tools { gap: .6rem; } }


/* ---------- Cyber News: make room for the extra nav item on desktop (appended; mobile menu unchanged) ---------- */
@media (min-width: 1276px) {
  .nav a.nav-link { padding-left: .3rem; padding-right: .3rem; font-size: .86rem; }
}

/* Top menu has one more item (Resources): tighten spacing a little more on mid-size desktop screens only so the whole menu still fits. */
@media (min-width: 1276px) and (max-width: 1480px) {
  .nav ul { gap: 0; }
  .nav a.nav-link { padding-left: .26rem; padding-right: .26rem; font-size: .85rem; }
  .nav-cta { margin-left: .2rem; }
}
.cohead-tagline { margin: 0 0 1.2rem; color: var(--cyan); font-weight: 600; letter-spacing: .01em; }
.cohead-role [lang="hi"] { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.book-tagline { color: var(--cyan); font-weight: 600; letter-spacing: .01em; }
.eyebrow [lang="hi"] { letter-spacing: 0; text-transform: none; }
.meet-role { margin: 0 0 .6rem; color: var(--cyan); font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; font-size: .88rem; }
.meet-role [lang="hi"] { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.meet-tagline { margin: 0 0 1.1rem; color: var(--cyan); font-weight: 600; letter-spacing: .01em; }

/* ---------- Mobile menu fix: the blurred header is the containing block, so the menu panel hangs under the header and fills the screen ---------- */
@media (max-width: 1275px) {
  .nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: .8rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 24px 40px -12px rgba(0,0,0,.55); }
  .nav ul { gap: .1rem; }
  .nav a.nav-link { padding: .62rem 1rem; font-size: 1rem; border: 1px solid transparent; }
  .nav a.nav-link[aria-current="page"] { border-color: rgba(34,211,238,.25); }
  .nav-cta { margin-top: .4rem; padding-block: .95rem; }
  .menu-toggle { flex: none; }
  .brand { min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) { .brand { font-size: .95rem; gap: .5rem; } }
@media (max-width: 1275px) {
  .nav a.nav-link { line-height: 1.3; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 1275px) { .nav a.nav-link span, .nav .nav-cta span { line-height: 1.35; } }

/* ---------- Form fields in Light and Mix mode: white box with dark, readable text (they were dark boxes with dark text) ---------- */
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: #fff; color: #0b1728; border-color: rgba(15, 23, 42, .35); caret-color: #0b1728; }
:root[data-theme="light"] .field input::placeholder,
:root[data-theme="light"] .field textarea::placeholder { color: #64748b; opacity: 1; }
:root[data-theme="light"] .field select option { background: #fff; color: #0b1728; }
:root[data-theme="light"] .field input:-webkit-autofill,
:root[data-theme="light"] .field textarea:-webkit-autofill { -webkit-text-fill-color: #0b1728; box-shadow: 0 0 0 40px #fff inset; }
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus { border-color: #0e7490; outline-color: rgba(14, 116, 144, .35); }
:root[data-theme="light"] .field .err { color: #b91c1c; }
:root[data-theme="light"] .field [aria-invalid="true"] { border-color: #b91c1c; }
/* dark mode: make the field text and dropdown list explicit too */
:root:not([data-theme="light"]) .field select option { background: #0a1428; color: #e5edf7; }
