/* ============================================================
   Shirjan Khadka — Portfolio
   Apple-inspired: neutrals, hairlines, system type, calm motion.
   Vanilla CSS, no frameworks, no webfonts.
   Motion: calm 0.5s ease-out fades and short rises only.
   No spring, no parallax, no magnetic pull, no gimmicks.
   ============================================================ */

:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --alt: #f5f5f7;
  --white: #ffffff;
  --black: #000000;
  --accent: #0b5c3f;
  --accent-bright: #46a37c;
  --accent-soft: #e7f1eb;
  --line: #d2d2d7;
  --dark-line: #2d2d2f;
  --dark-secondary: #a1a1a6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --radius: 18px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .08);
  --shadow-hover: 0 18px 48px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 300;
  background: var(--text); color: #fff; padding: 10px 18px;
  border-radius: 980px; text-decoration: none; font-size: 15px; font-weight: 600;
  transform: translateY(-70px);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Layout primitives ---------- */
.section-inner {
  width: min(1120px, 100% - 44px);
  margin: 0 auto;
}
.section-inner.narrow { width: min(820px, 100% - 44px); }

.section { padding: 120px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--black); color: #f5f5f7; }

.section-intro { margin-bottom: 64px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
.h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.h2-xl { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1 em, .h2 em, .hero-title em { font-style: normal; color: var(--accent); }
.section-dark h1 em, .section-dark .h2 em { color: var(--accent-bright); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 16px;
}
.eyebrow-green { color: var(--accent-bright); }

/* Legacy hooks used by /blog/ pages */
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-sub {
  color: var(--secondary); font-size: 19px; line-height: 1.6;
  max-width: 62ch; margin: 20px auto 0;
}

.lede {
  color: var(--secondary); font-size: 19px; line-height: 1.6;
  max-width: 62ch; margin-top: 20px;
}
.section-dark .lede { color: var(--dark-secondary); }

.text-link {
  color: var(--accent); font-weight: 600; text-decoration: none; font-size: 17px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(6px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 17px; text-decoration: none; line-height: 1.2;
  padding: 14px 30px; border-radius: 980px; border: 1px solid transparent;
  cursor: pointer; transition: background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: var(--shadow); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, .25); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line); color: var(--secondary);
  padding: 6px 14px; border-radius: 980px; background: var(--white);
  white-space: nowrap; text-decoration: none;
}
.section-alt .tag { background: var(--white); }
.tag-award { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
a.tag-award:hover { background: var(--accent); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1120px, 100% - 44px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; gap: 16px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--text); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; flex: none;
}
.logo-text { font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text);
  opacity: .85; transition: opacity .2s; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Alpha Lab suite dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .caret { font-size: 10px; opacity: .7; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 232px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
  padding: 8px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 120;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a { display: block; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 10px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .24s var(--ease), transform .24s var(--ease), background .18s var(--ease); }
.nav-drop-menu a::after { display: none; }
.nav-drop:hover .nav-drop-menu a, .nav-drop:focus-within .nav-drop-menu a { opacity: 1; transform: none; }
.nav-drop-menu a:nth-child(1) { transition-delay: .03s; }
.nav-drop-menu a:nth-child(2) { transition-delay: .06s; }
.nav-drop-menu a:nth-child(3) { transition-delay: .09s; }
.nav-drop-menu a:nth-child(4) { transition-delay: .12s; }
.nav-drop-menu a:hover { background: var(--alt); }
.suite-jump { font-size: 13.5px; color: var(--secondary); margin: 10px 0 12px; }
.suite-jump a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.suite-jump a:hover { text-decoration-color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.avail-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--secondary);
  border: 1px solid var(--line); background: var(--white);
  padding: 7px 15px; border-radius: 980px; white-space: nowrap;
  text-decoration: none;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 92, 63, .35); }
  50% { box-shadow: 0 0 0 6px rgba(11, 92, 63, 0); }
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-pin {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 110px 22px 40px;
}
.hero-copy { max-width: 820px; }
.hero-avail { margin: 0 auto 28px; }
.hero-title { margin-bottom: 24px; }
.hero-sub {
  color: var(--secondary); font-size: 19px; line-height: 1.6;
  max-width: 640px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-media { padding: 20px 22px 130px; text-align: center; position: relative; }
/* Portrait: a clean rounded rectangle, static and calm.
   Entrance is a single gentle fade — no rise, no drift, no parallax. */
.portrait-frame {
  width: min(400px, 76vw); aspect-ratio: 4 / 5; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
  background: var(--alt);
}
html.js .portrait-frame { opacity: 0; }
body.loaded .portrait-frame {
  opacity: 1;
  transition: opacity .6s ease .1s;
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
html.js .hero-caption { opacity: 0; }
body.loaded .hero-caption { opacity: 1; transition: opacity .6s ease .25s; }
.hero-caption { color: var(--secondary); font-size: 14px; margin-top: 22px; }

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white); scroll-margin-top: 72px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-top: 64px; padding-bottom: 64px;
}
.stat-value {
  font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; color: var(--text);
}
.stat-label { color: var(--secondary); font-size: 14px; margin-top: 10px; line-height: 1.5; }

/* ---------- Work features ---------- */
.feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px);
  align-items: center; padding: 56px 0; border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-flip .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--alt); display: block; text-decoration: none;
}
a.feature-media { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.feature-media:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.02); }
.stat-panel { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover .stat-panel { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-panel {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 40px; background: var(--alt);
}
.stat-panel-dark { background: var(--text); }
.stat-panel-value {
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; color: var(--text);
}
.stat-panel-dark .stat-panel-value { color: #fff; }
.stat-panel-label { color: var(--secondary); font-size: 15px; margin-top: 12px; max-width: 30ch; }
.stat-panel-dark .stat-panel-label { color: var(--dark-secondary); }
.feature-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px;
}
.feature-body > p { color: var(--secondary); margin-bottom: 22px; max-width: 46ch; }

/* ---------- Research (dark) ---------- */
.findings-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--dark-line); border: 1px solid var(--dark-line);
  border-radius: var(--radius); overflow: hidden; margin-top: 64px;
}
.finding { background: #0a0a0b; padding: 44px 40px; }
.finding-value {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; color: var(--accent-bright);
  margin-bottom: 14px;
}
.finding-text { color: var(--dark-secondary); font-size: 16px; line-height: 1.6; }
.finding-text strong { color: #f5f5f7; font-weight: 600; }
.section-dark .btn { margin-top: 8px; }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.timeline > li { position: relative; padding: 0 0 52px; }
.timeline > li:last-child { padding-bottom: 0; }
.t-marker {
  position: absolute; left: -34px; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--white);
  border: 4px solid var(--accent);
}
.t-date {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.t-body h3 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px;
}
.t-org { color: var(--secondary); font-size: 16px; margin-bottom: 12px; }
.t-desc { color: var(--text); max-width: 60ch; }

/* ---------- Events ---------- */
.event-card {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 4vw, 56px);
  align-items: start; padding: 56px 0; border-top: 1px solid var(--line);
}
.event-card:first-of-type { border-top: 0; padding-top: 0; }
.event-index {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 12px;
}
.event-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px;
}
.event-meta { color: var(--secondary); font-size: 15px; margin-bottom: 20px; }
.event-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.event-points li {
  position: relative; padding-left: 24px; color: var(--text);
  font-size: 16px; line-height: 1.6;
}
.event-points li::before {
  content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); flex: none;
}

/* ---------- Carousels ---------- */
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 18px; margin: 0 -2px; scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.event-photo { flex: 0 0 min(340px, 80vw); scroll-snap-align: start; margin: 0; }
.event-photo img {
  width: 100%; height: 240px; object-fit: cover; border-radius: 14px;
  cursor: zoom-in; background: var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event-photo:hover img { transform: scale(1.02); box-shadow: var(--shadow); }
.event-photo figcaption { font-size: 13px; color: var(--secondary); margin-top: 10px; transition: color .3s; }
.event-photo:hover figcaption { color: var(--text); }

/* ---------- Carousel scroll hints ---------- */
.carousel-hint {
  position: sticky;
  flex: 0 0 auto;
  align-self: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  z-index: 5;
  transition: opacity .35s var(--ease), background .2s, color .2s, border-color .2s;
}
.carousel-hint:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carousel-hint svg { width: 20px; height: 20px; }
.hint-next { right: 12px; margin-left: -58px; }
.hint-prev { left: 12px; margin-right: -58px; }
.hint-prev svg { transform: scaleX(-1); }
.carousel-hint.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .94); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 80vh; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.lightbox-caption {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  color: #f5f5f7; font-size: 15px; padding: 0 72px;
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .28); transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close {
  position: absolute; top: 20px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.cert-card p { color: var(--secondary); font-size: 15px; }
.cert-date {
  margin-top: 14px; align-self: flex-start; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: var(--accent); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 980px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about-portrait { margin: 0; grid-row: 1 / span 2; }
.about-intro { grid-column: 2; min-width: 0; }
.about-details { grid-column: 2; min-width: 0; }
.about-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line);
}
.about-portrait figcaption { color: var(--secondary); font-size: 14px; margin-top: 14px; text-align: center; }
.about-grid .h2 { margin-bottom: 32px; }
.edu-list { display: flex; flex-direction: column; gap: 26px; margin-bottom: 26px; }
.edu-item h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.edu-item p { color: var(--secondary); font-size: 15px; margin-bottom: 12px; }
.award-row { margin-bottom: 40px; }
.about-sub {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.cap-list { display: flex; flex-direction: column; }
.cap-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 14px;
}
.cap-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.cap-list li:last-child { border-bottom: 0; }

/* ---------- Blog preview ---------- */
.blog-feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-feature-link { text-decoration: none; display: grid; grid-template-columns: 1fr 1.1fr; color: inherit; }
.blog-feature-img { min-height: 300px; background: var(--alt); }
.blog-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature-body { padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.blog-date { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.blog-feature-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px;
}
.blog-feature-body > p { color: var(--secondary); margin-bottom: 20px; }
.card-cta { font-weight: 600; font-size: 16px; color: var(--accent); }
.blog-feature-link:hover .card-cta { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact ---------- */
.contact-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 36px 0 28px; }
.contact-meta { color: var(--secondary); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--white); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-weight: 700; font-size: 16px; }
.footer-tag { color: var(--secondary); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { text-decoration: none; color: var(--text); font-size: 14px; opacity: .8; }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-copy { color: var(--secondary); font-size: 13px; }

/* ---------- Reveal animation: quick rise, settles into place ---------- */
/* Visible by default (SEO / no-JS safe); JS adds .js to <html> to enable. */
.reveal {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.js .reveal {
  opacity: 0; transform: translateY(16px);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* ============================================================
   Blog index + article (shared with /blog/)
   ============================================================ */
.blog-hero { padding: 100px 0 32px; text-align: center; }
.blog-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.8rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.06; margin-bottom: 16px;
}
.blog-hero .lede { margin-left: auto; margin-right: auto; }
.post-list { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-link { text-decoration: none; display: grid; grid-template-columns: 340px 1fr; color: inherit; }
.post-card-img { background: var(--alt); min-height: 230px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.post-card-body h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; margin-bottom: 12px;
}
.post-card-body > p { color: var(--secondary); font-size: 16px; margin-bottom: 18px; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 120;
}
.article { padding: 72px 0 110px; }
.article-inner { width: min(780px, 100% - 44px); margin: 0 auto; }
.article-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; text-align: center;
}
.article h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.16; text-align: center; margin-bottom: 24px;
}
.article-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px;
  color: var(--secondary); font-size: 15px; margin-bottom: 44px;
}
.article-hero-img {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 52px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--alt);
}
.article-hero-img img { width: 100%; height: auto; }
.article-body { font-size: 18px; color: #333336; }
.article-body > p { margin-bottom: 1.5em; }
.article-body strong { color: var(--text); }
.article-body h2 {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 2.2em 0 .8em; color: var(--text); line-height: 1.2;
}
.article-body h3 { font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .7em; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 1.5em 1.3em; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .6em; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; margin: 2em 0;
  font-size: 1.3rem; color: var(--text); letter-spacing: -0.01em;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.article-body th, .article-body td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.article-body th { background: var(--text); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body .table-wrap { overflow-x: auto; margin: 1.8em 0; border-radius: 14px; }
.article-body .table-wrap table { margin: 0; }
.article-faq { margin-top: 3.5em; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; background: var(--white); overflow: hidden;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); flex: none;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 24px; color: var(--secondary); }
.article-cta {
  margin-top: 3.5em; background: var(--black); color: #f5f5f7;
  border-radius: var(--radius); padding: clamp(36px, 5vw, 60px); text-align: center;
}
.article-cta h3 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.article-cta p { color: var(--dark-secondary); margin-bottom: 28px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.related-reading {
  margin-top: 3em; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; background: var(--alt);
}
.related-reading h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.related-reading a { font-weight: 600; font-size: 1.05rem; }
.related-reading p { color: var(--secondary); margin-top: 8px; margin-bottom: 0; max-width: 62ch; }
.related-more { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.related-more a { font-size: .95rem !important; }

/* Table of contents (article jump links) */
.toc {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 28px; margin: 0 0 36px; box-shadow: var(--shadow);
}
.toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 9px; break-inside: avoid; }
.toc a { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Nepali summary box */
.nepali-summary {
  background: #f4f1ea; border: 1px solid #e3ddd0; border-radius: 14px;
  padding: 22px 28px; margin: 0 0 36px;
}
.nepali-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); margin: 0 0 10px;
}
.nepali-summary p:last-child { margin: 0; font-size: 16.5px; line-height: 1.85; color: #2c2a26; }

/* FAQ accordion */
.faq { margin: 3em 0 0; }
.faq h2 { margin-bottom: 18px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease;
}
.faq details:hover { border-color: #cfcfd4; }
.faq details[open] { box-shadow: var(--shadow); border-color: #cfcfd4; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 400; font-size: 1.2rem; color: var(--secondary);
  transition: transform .3s cubic-bezier(.2,0,0,1), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details p { padding: 0 22px 20px; margin: 0; color: #3a3a3e; line-height: 1.7; max-width: 68ch; }

/* Company-analysis hub page */
.hub-hero { text-align: center; padding: clamp(48px, 7vw, 96px) 0 8px; }
.hub-method { margin: 56px 0; }
.hub-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.hub-method-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,0,0,1), box-shadow .35s cubic-bezier(.2,0,0,1);
}
.hub-method-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.18); }
.hub-method-card h3 { font-size: 1.02rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.hub-method-card p { margin: 0; font-size: .95rem; color: var(--secondary); line-height: 1.65; }
@media (max-width: 820px) { .hub-method-grid { grid-template-columns: 1fr; } }
.hub-list { margin: 0 0 56px; }
.hub-note {
  margin-top: 20px; font-size: .95rem; color: var(--secondary);
  border-left: 3px solid var(--accent); padding-left: 16px; max-width: 68ch;
}

/* ============================================================
   NEWS-CHANNEL ARTICLE FORMAT (2026-09-28)
   Breadcrumb, dek, byline, share row, key-facts box, tags,
   author box — the financial-news article DNA.
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 500; color: var(--secondary);
  margin-bottom: 34px;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden="true"] { opacity: .5; }

.article-dek {
  font-size: 1.15rem; line-height: 1.6; color: var(--secondary);
  text-align: center; max-width: 60ch; margin: 0 auto 38px;
  letter-spacing: -0.01em;
}

.article-byline {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--secondary);
  margin-bottom: 24px;
}
.byline-name { font-weight: 700; font-size: 14.5px; }
.byline-name a { color: var(--text); }
.byline-sep { opacity: .35; }

.share-row {
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 46px; font-size: 13px;
}
.share-row a {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px;
  font-weight: 600; color: var(--secondary); background: transparent;
}
.share-row a:hover { border-color: var(--accent); color: var(--accent); }

figure.article-hero {
  border-radius: var(--radius); overflow: hidden; margin: 0 0 40px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--alt);
}
figure.article-hero img { width: 100%; height: auto; display: block; }
figure.article-hero figcaption {
  padding: 14px 22px; font-size: 14px; color: var(--secondary); line-height: 1.55;
  background: var(--white); border-top: 1px solid var(--line);
}
figure.article-hero .photo-credit { display: block; margin-top: 6px; font-size: 12.5px; opacity: .85; }

.key-facts {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 14px;
  padding: 26px 30px; margin: 0 0 44px; box-shadow: var(--shadow);
}
.key-facts h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.key-facts ul { list-style: none; margin: 0; padding: 0; }
.key-facts li { margin-bottom: 12px; font-size: 16px; line-height: 1.6; color: #3a3a3e; }
.key-facts li:last-child { margin-bottom: 0; }
.key-facts strong { color: var(--text); }

.article-body .lead { font-size: 1.12em; }
.article-body .disclaimer { margin-top: 2.2em; color: var(--secondary); font-size: 15px; }

.data-table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0 0.4em;
  font-size: 15px; line-height: 1.55; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.data-table caption {
  text-align: left; font-weight: 700; font-size: 14px; color: var(--secondary);
  padding: 14px 18px 10px; caption-side: top;
}
.data-table thead th {
  background: var(--alt); text-align: left; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--secondary);
  padding: 12px 16px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.data-table tbody td {
  padding: 11px 16px; border-bottom: 1px solid var(--line); color: #3a3a3e;
  white-space: nowrap;
}
.data-table tbody td:first-child { font-weight: 600; color: var(--text); }
.data-table tbody tr:last-child td { border-bottom: none; }
.table-note { font-size: 13.5px; color: var(--secondary); margin: 0 0 1.6em; }

.article-tags {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 2.5em; padding-top: 1.8em; border-top: 1px solid var(--line);
  font-size: 14px;
}
.article-tags > span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--secondary); }
.article-tags a {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px;
  font-weight: 600; color: var(--text); background: var(--alt);
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 2.5em; padding: 28px 30px;
  background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-box .logo-mark { flex: none; width: 56px; height: 56px; font-size: 22px; }
.author-name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.author-bio { color: var(--secondary); font-size: 15px; line-height: 1.6; margin-bottom: 12px; max-width: 58ch; }
.author-box a:last-child { font-weight: 700; font-size: 15px; color: var(--accent); }

@media (max-width: 640px) {
  .article-dek { font-size: 1.05rem; }
  .article-byline { gap: 7px; font-size: 13px; }
  .key-facts { padding: 20px 22px; }
  .author-box { flex-direction: column; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* Nav collapses to the dropdown panel before the links get cramped */
@media (max-width: 1100px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); right: 22px;
    width: min(300px, calc(100vw - 44px));
    background: var(--white);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 8px; gap: 2px;
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .16);
    transform: translateY(-10px) scale(.98); transform-origin: top right;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 110;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { font-size: 15px; font-weight: 600; padding: 11px 14px; border-radius: 10px; opacity: 1; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--alt); }
  .nav-drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 4px 10px; min-width: 0;
    background: transparent;
  }
  .nav-drop-menu a { opacity: 1; transform: none; transition-delay: 0s; }
  .nav-drop > a { width: 100%; }
  .nav-toggle { display: flex; z-index: 120; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .avail-pill { display: none; }
  .hero-avail { display: inline-flex; }
}
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .section-intro { margin-bottom: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-media { order: 0; }
  .findings-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { grid-row: auto; grid-column: auto; max-width: 340px; }
  .about-intro { grid-column: auto; }
  .about-details { grid-column: auto; }
  .portrait-frame { width: min(320px, 70vw); }
  .blog-feature-link { grid-template-columns: 1fr; }
  .blog-feature-img { min-height: 230px; }
  .post-card-link { grid-template-columns: 1fr; }
  .post-card-img { min-height: 200px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero-pin { padding-top: 96px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .portrait-frame { width: min(220px, 58vw); border-radius: 16px; }
  .hero-media { padding: 8px 22px 72px; }
  .hero-caption { margin-top: 14px; }
  /* Phone: portrait left, intro right in parallel; details span full width below */
  .about-grid { grid-template-columns: 88px 1fr; gap: 20px 14px; }
  .about-portrait { grid-row: 1; grid-column: 1; max-width: none; margin: 0; align-self: center; width: 88px; }
  .about-portrait img { width: 88px; height: 110px; aspect-ratio: auto; object-fit: cover; display: block; }
  .about-portrait figcaption { display: none; }
  .about-intro { grid-row: 1; grid-column: 2; align-self: center; min-width: 0; }
  .about-intro .h2 { margin-bottom: 0; }
  .about-details { grid-row: 2; grid-column: 1 / -1; min-width: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 2.2rem; }
  .cert-grid { grid-template-columns: 1fr; }
  .finding { padding: 34px 28px; }
  .event-photo { flex-basis: 78vw; }
  .contact-ctas .btn { width: 100%; }
  .lightbox-btn { width: 44px; height: 44px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-pin { position: static; min-height: 0; padding: 96px 22px 40px; }
  .hero-title { opacity: 1 !important; transform: none !important; }
  .portrait-frame { opacity: 1 !important; }
  .ticker-track { animation: none !important; }
  #scrollProgress { display: none !important; }
  .timeline::after { transform: scaleY(1) !important; }
  .metric-overlay { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Pro motion layer — progress, masked type, ticker, overlays
   (all transform/opacity only; zero layout shift)
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 5000;
  background: var(--text); color: var(--white); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transform: translateY(-70px);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* Hero headline: a calm fade-up on load. No masked rise, no de-blur. */
html.js .hero-title { opacity: 0; transform: translateY(14px); }
body.loaded .hero-title {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s var(--ease);
}

/* Scroll progress bar (JS fallback when scroll timelines unsupported) */
#scrollProgress { transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  #scrollProgress { animation: scroll-progress linear both; animation-timeline: scroll(); }
  @keyframes scroll-progress { to { transform: scaleX(1); } }
}

/* Expertise ticker — market-data-strip style */
.ticker {
  overflow: hidden; background: var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 30s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track.paused { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; padding: 13px 0; }
.ticker-group span {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--secondary); padding: 0 24px; white-space: nowrap;
}
.ticker-group .tick-sep { color: var(--accent); padding: 0 2px; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* Metric overlay chips on work cards */
.feature-media { position: relative; overflow: hidden; }
.metric-overlay {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.feature-media:hover .metric-overlay,
.feature-media:focus-visible .metric-overlay { opacity: 1; transform: none; }
.metric-chip {
  font-size: 12px; font-weight: 700; letter-spacing: .03em; color: #fff;
  background: rgba(18, 18, 20, .68); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* Numbered consulting-style section kickers */
.sec-num { color: var(--accent); font-weight: 800; margin-right: 12px; letter-spacing: .06em; }

/* Scroll-drawn experience timeline */
.timeline::after {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px;
  background: var(--accent); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 1.2s var(--ease) .15s;
}
.timeline.in::after { transform: scaleY(1); }

/* Scroll-spy active nav link */
.nav-links a[aria-current="true"] { opacity: 1; }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Interactive NEPSE chart ---------- */
.chart-card {
  margin: 56px auto 0; max-width: 1060px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px; padding: 26px 26px 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.chart-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #f5f5f7; margin: 0 0 4px; }
.chart-sub { font-size: 13px; color: var(--dark-secondary); margin: 0; }
.chart-badge {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--accent-bright);
  border: 1px solid rgba(61,220,132,.35); border-radius: 999px; padding: 6px 12px;
  background: rgba(61,220,132,.08); white-space: nowrap;
}
.chart-wrap { position: relative; }
#nepseChart { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.chart-tip {
  position: absolute; top: 0; left: 0; pointer-events: none;
  background: rgba(10,12,14,.92); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 8px 12px; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); white-space: nowrap;
}
.chart-tip strong { display: block; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.chart-tip span { font-size: 12px; color: var(--dark-secondary); }
.chart-card figcaption { font-size: 12px; color: var(--dark-tertiary); margin: 10px 2px 0; }
.chart-fallback { color: var(--dark-secondary); font-size: 14px; }
@media (max-width: 560px) {
  .chart-card { padding: 18px 14px 12px; border-radius: 16px; margin-top: 40px; }
  .chart-head { flex-direction: column; }
}

/* ---------- Hero: clean and static, no animated glow ---------- */
.hero > *:not(.hero-pin) { position: relative; z-index: 1; }
.hero-pin { z-index: 1; }

/* Accessibility + SEO: visually hidden text (e.g. keyword H1) */
.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;
}

/* ---------- NEPSE Stock Screener (nepse-screener/) : Private Ledger ---------- */
.sc-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:24px 0 20px}
.sc-card{min-width:0;border-radius:16px;padding:20px 10px 16px;text-align:center;border:1px solid var(--hairline);cursor:pointer;background:#fff;box-shadow:0 1px 2px rgba(12,31,22,.04);transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease)}
.sc-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(12,31,22,.10)}
.sc-card:active{transform:translateY(-1px) scale(.99)}
.sc-card:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:16px}
.sc-card.is-on{transform:translateY(-2px)}
.sc-sbuy.is-on{box-shadow:0 0 0 2.5px var(--gold),0 12px 28px rgba(12,31,22,.12)}
.sc-buy.is-on{box-shadow:0 0 0 2.5px var(--gold),0 12px 28px rgba(12,31,22,.12)}
.sc-hold.is-on{box-shadow:0 0 0 2.5px var(--gold),0 12px 28px rgba(12,31,22,.12)}
.sc-exit.is-on{box-shadow:0 0 0 2.5px var(--gold),0 12px 28px rgba(12,31,22,.12)}
.sc-sexit.is-on{box-shadow:0 0 0 2.5px var(--gold),0 12px 28px rgba(12,31,22,.12)}
.sc-num{display:block;font-family:var(--serif);font-size:2rem;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.05}
.sc-lab{display:block;min-width:0;overflow:hidden;overflow-wrap:anywhere;font-size:.66rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-top:7px;color:var(--muted)}
.sc-sbuy{background:linear-gradient(180deg,#EAF3ED,#FBFDFB);border-color:#BFE3CC}.sc-sbuy .sc-num{color:#0E6B3A}
.sc-buy{background:linear-gradient(180deg,#EFF5F1,#FBFDFC);border-color:#CBDECE}.sc-buy .sc-num{color:#1E6B4A}
.sc-hold{background:linear-gradient(180deg,#FBF6E9,#FDFBF4);border-color:#E9DCC0}.sc-hold .sc-num{color:#8a6d2f}
.sc-exit{background:linear-gradient(180deg,#FBEDE8,#FDF8F6);border-color:#EFC5B8}.sc-exit .sc-num{color:#B23A2E}
.sc-sexit{background:linear-gradient(180deg,#F7E4E0,#FBF1EF);border-color:#E3A89B}.sc-sexit .sc-num{color:#8C2A20}
.sc-total{background:#fff;border-color:var(--hairline);cursor:default}.sc-total:hover{transform:none;box-shadow:0 1px 2px rgba(12,31,22,.04)}
.sc-total .sc-num{color:var(--ink)}
.sc-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0 16px}
.sc-tf{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:2px 0 4px}
.sc-tf-lab{font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sc-tf-hint{font-size:.85rem;color:var(--muted)}
@media(max-width:520px){.sc-tf-hint{flex-basis:100%}}
.sc-show{display:flex;align-items:center;gap:8px;font-size:.88rem;color:var(--muted);white-space:nowrap}
.sc-select{padding:9px 10px;border:1px solid var(--hairline);border-radius:10px;font-size:.88rem;background:#fff;color:var(--ink);font-weight:600;cursor:pointer;font-family:var(--sans);transition:border-color .25s var(--ease),box-shadow .25s var(--ease)}
.sc-select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(198,168,107,.22)}
.sc-search{flex:1 1 200px;min-width:170px;max-width:340px;margin-left:auto;padding:10px 14px;border:1px solid var(--hairline);border-radius:10px;font-size:.9rem;background:#fff;color:var(--ink);font-family:var(--sans);transition:border-color .25s var(--ease),box-shadow .25s var(--ease)}
.sc-search:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(198,168,107,.22)}
.table-scroll{overflow-x:auto;border:1px solid var(--hairline);border-radius:16px;background:#fff;box-shadow:0 12px 40px rgba(12,31,22,.08)}
.sc-table{width:100%;border-collapse:collapse;font-size:.9rem;min-width:1020px;font-variant-numeric:tabular-nums}
.sc-table thead th{position:sticky;top:0;background:var(--ivory);text-align:left;font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:13px 14px;border-bottom:1px solid var(--hairline);cursor:pointer;white-space:nowrap;user-select:none}
.sc-table thead th:hover{color:var(--ink);background:var(--gold-faint)}
.sc-table thead th.sorted{color:var(--ink)}
.sc-table thead th .arr{color:var(--gold);font-size:.75rem}
.sc-table tbody td{padding:13px 14px;border-top:1px solid var(--hairline-soft);vertical-align:middle}
.sc-table tbody tr:nth-child(even){background:#FDFCF9}
.sc-table tbody tr:hover{background:var(--gold-faint);box-shadow:inset 3px 0 0 var(--gold)}
.sc-table .num{text-align:right;white-space:nowrap}
.sc-sn{color:var(--faint);font-weight:600}
.sc-sector{display:inline-block;background:var(--ivory);border:1px solid var(--hairline-soft);color:var(--muted);font-size:.74rem;font-weight:600;padding:3px 10px;border-radius:999px;white-space:nowrap}
.sc-sym{font-weight:700;letter-spacing:.02em;color:var(--emerald-deep);text-decoration:none;font-size:.95rem}
.sc-sym:hover{text-decoration:underline}
.sc-ltp{display:inline-block;font-size:.64rem;font-weight:700;color:#7A5E2B;background:var(--gold-faint);border:1px solid var(--gold-soft);border-radius:6px;padding:1px 6px;vertical-align:middle;margin-left:6px}
.sc-rvol{display:inline-block;font-size:.7rem;font-weight:700;color:#8a6d2f;background:var(--gold-faint);border:1px solid var(--gold-soft);border-radius:6px;padding:2px 7px;margin-left:8px;white-space:nowrap}
.sc-rvol.hot{color:#8C2A20;background:#F9E2DC;border-color:#E3A89B}
.ms-v{display:inline-block;font-size:.74rem;font-weight:700;padding:4px 11px;border-radius:999px;white-space:nowrap;letter-spacing:.02em}
.ms-sub{font-size:.72rem;color:var(--faint);font-weight:400}.ms-v.sbuy{background:#0E6B3A;color:#fff}
.ms-v.buy{background:#DCEFE3;color:#0E5C30}
.ms-v.hold{background:var(--gold-faint);color:#7A5E2B}
.ms-v.exit{background:#F9E2DC;color:#93331F}
.ms-v.sexit{background:#B23A2E;color:#fff}
.ms-v.insufficient{background:var(--ivory);color:var(--faint);border:1px dashed var(--hairline)}
.sc-setup-chip{display:inline-block;font-size:.7rem;font-weight:700;color:#7A5E2B;background:var(--gold-faint);border:1px solid var(--gold-soft);border-radius:999px;padding:4px 11px;margin-left:8px;white-space:nowrap;vertical-align:middle;letter-spacing:.02em}
.sc-sl{color:#B23A2E}.sc-tp{color:#0E6B3A}
.sc-sl,.sc-tp{font-size:.95rem}
.sc-hit{color:var(--emerald-deep)}
.sc-rsi{font-variant-numeric:tabular-nums}
.sc-rsi-os{color:#0E6B3A;font-weight:700}
.sc-rsi-ob{color:#B23A2E;font-weight:700}
.sc-sub{display:block;font-size:.72rem;color:var(--faint);font-weight:400;margin-top:2px}
.sc-top10{margin:24px 0 8px}
.sc-top10 h2{font-family:var(--serif);font-size:1.3rem;font-weight:600;margin:0 0 12px;color:var(--ink);letter-spacing:-.015em}
.sc-asof-inline{font-size:.8rem;color:var(--faint);font-weight:400}
.sc-static-note{font-size:.8rem;color:var(--faint);margin:8px 2px 0}
.sc-dist{font-size:.78rem;font-weight:600}.sc-dist.up{color:#0E6B3A}.sc-dist.dn{color:#B23A2E}
.sc-dash{color:var(--faint)}
.sc-empty{text-align:center;color:var(--muted);padding:36px 14px!important}
.sc-below{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:14px 2px 8px}
.sc-range{font-size:.85rem;color:var(--muted);font-variant-numeric:tabular-nums}
.sc-pager{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sc-pg{min-width:34px;padding:7px 11px;border:1px solid var(--hairline);border-radius:8px;background:#fff;font-size:.83rem;font-weight:700;color:var(--muted);cursor:pointer;font-family:var(--sans);transition:border-color .25s var(--ease),color .25s var(--ease)}
.sc-pg:hover:not(:disabled){border-color:var(--gold);color:var(--emerald-deep)}
.sc-pg:active:not(:disabled){transform:scale(.94)}
.sc-pg.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.sc-pg:disabled{opacity:.35;cursor:default}
.sc-gap{color:var(--faint);padding:0 2px}
.sc-note{margin:26px 0 10px;font-size:.88rem;color:var(--muted)}
.sc-note p{margin:0 0 10px}
.sc-disclaim{background:var(--ivory);border:1px solid var(--hairline);border-left:3px solid var(--gold);border-radius:12px;padding:18px 22px;font-size:.85rem;color:var(--muted);line-height:1.65}
.sc-footer{border-top:1px solid var(--hairline);margin-top:36px;padding:22px 0 34px;text-align:center;color:var(--muted);font-size:.88rem}
.sc-footer a{color:inherit}
.sc-footer-sub{font-size:.78rem;color:var(--faint);margin-top:4px}
@media(max-width:860px){.sc-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.sc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-num{font-size:1.55rem}.sc-search{margin-left:0;max-width:none}}
/* Wave 8: inline top matches rendered directly beneath the signal cards */
#sc-card-results{margin:4px 0 26px}
#sc-card-results[hidden]{display:none}
.sc-cr-head{font-size:1.02rem;margin:0 0 10px;color:var(--ink)}
.sc-cr-list{border:1px solid var(--hairline);border-radius:14px;background:#fff;overflow:hidden}
.sc-cr-row{display:grid;grid-template-columns:minmax(120px,1.2fr) repeat(2,minmax(90px,.9fr)) minmax(110px,1fr) repeat(2,minmax(90px,.9fr)) auto;gap:8px 14px;align-items:center;padding:10px 16px;border-top:1px solid var(--hairline);font-size:.88rem}
.sc-cr-row:first-child{border-top:0}
.sc-cr-sym{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--ink);text-decoration:none;min-width:0}
.sc-cr-sym:hover{text-decoration:underline}
.sc-cr-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.sc-cr-link{font-weight:700;color:var(--emerald-deep);text-decoration:none;white-space:nowrap}
.sc-cr-link:hover{text-decoration:underline}
.sc-cr-more{margin:10px 2px 0;font-size:.85rem}
.sc-cr-more a{color:var(--emerald-deep);font-weight:700}
.sc-cr-empty{color:var(--muted);font-size:.9rem;margin:6px 2px}
@media(max-width:860px){.sc-cr-row{grid-template-columns:1fr 1fr;row-gap:6px}.sc-cr-row .sc-cr-sym{grid-column:1/-1}}


/* ---------- Blog magazine landing (Ansu-style bands, own identity) ---------- */
.mag-masthead { text-align: center; padding: 104px 20px 12px; }
.mag-masthead h1 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: clamp(32px, 8vw, 56px); line-height: 1.08; letter-spacing: -0.01em; margin: 14px 0 12px; }
.mag-masthead .lede { color: var(--secondary); font-size: 18px; max-width: 620px; margin: 0 auto; }
.mag-section { padding: 48px 0 8px; display: block; width: 100%; clear: both; }
.mag-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--text); padding-bottom: 10px; margin-bottom: 26px; }
.mag-head h2 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 30px; letter-spacing: -0.01em; }
.mag-head p { color: var(--secondary); font-size: 14px; }
.mag-lead { display: grid; grid-template-columns: 1.85fr 1fr; gap: 40px; align-items: start; }
.mag-featured { display: block; text-decoration: none; color: inherit; }
.mag-fimg { border-radius: 16px; overflow: hidden; background: var(--alt); aspect-ratio: 16/9; }
.mag-fimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mag-featured:hover .mag-fimg img { transform: scale(1.02); }
.mag-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 20px 0 10px; }
.mag-featured h3 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 34px; line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 12px; }
.mag-featured:hover h3 { color: var(--accent); }
.mag-dek { color: var(--secondary); font-size: 17px; margin-bottom: 14px; }
.mag-meta { font-size: 13px; font-weight: 500; color: var(--secondary); }
.mag-rail-head { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mag-row { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; }
.mag-row:last-child { border-bottom: 0; }
.mag-row img { width: 116px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--alt); }
.mag-row h4 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.35; margin-bottom: 6px; }
.mag-row:hover h4 { color: var(--accent); }
.mag-row .mag-meta { font-size: 12px; }
.mag-topics { display: block; }
.mag-topic { margin-bottom: 36px; }
.mag-topic-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.mag-topic-carousel .mag-card { flex: 0 0 calc(33.333% - 16px); min-width: 280px; scroll-snap-align: start; }
.mag-topic-carousel .mag-row { display: flex; flex-direction: column; flex: 0 0 calc(33.333% - 16px); min-width: 280px; scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.mag-topic-carousel .mag-row img { width: 100%; height: 180px; object-fit: cover; flex: none; }
.mag-topic-carousel .mag-row > div { padding: 16px; }
.mag-topic-carousel .mag-row h4 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.35; margin-bottom: 8px; color: var(--text); }
.mag-topic-carousel::after { content: "→"; flex: 0 0 auto; align-self: center; font-size: 24px; color: var(--secondary); padding: 0 8px; }
.mag-topic > h3 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--text); margin-bottom: 6px; }
.mag-topic .mag-row { grid-template-columns: 96px 1fr; padding: 14px 0; }
.mag-topic .mag-row img { width: 96px; height: 72px; }
.mag-topic .mag-row h4 { font-size: 16px; }
/* Company analysis section: dedicated band for stock breakdowns */
.mag-analysis-grid { display: flex; gap: 28px; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.mag-analysis-grid .mag-card { flex: 0 0 calc(33.333% - 19px); min-width: 280px; scroll-snap-align: start; }
.mag-analysis-grid::after { content: "→"; flex: 0 0 auto; align-self: center; font-size: 24px; color: var(--secondary); padding: 0 8px; }
.mag-card { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.mag-card .mag-fimg { border-radius: 0; aspect-ratio: 16/10; }
.mag-card .mag-fimg img { transition: transform .6s var(--ease); }
.mag-card:hover .mag-fimg img { transform: scale(1.02); }
.mag-card-body { padding: 20px 22px 22px; }
.mag-card .mag-kicker { margin: 0 0 10px; }
.mag-card h3 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.mag-card:hover h3 { color: var(--accent); }
.mag-card .mag-meta { font-size: 13px; }
.mag-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mag-start-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; text-decoration: none; color: inherit; align-items: start; }
.mag-num { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 42px; line-height: 1; color: var(--accent); }
.mag-start-item h4 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.mag-start-item:hover h4 { color: var(--accent); }
.mag-start-item p { color: var(--secondary); font-size: 15px; }
@media (max-width: 960px) {
  .mag-lead { grid-template-columns: 1fr; }
  .mag-analysis-grid .mag-card { flex: 0 0 85%; min-width: 0; }
  .mag-topic-carousel .mag-row { flex: 0 0 85%; min-width: 0; }
  .mag-start { grid-template-columns: 1fr; gap: 24px; }
  .mag-featured h3 { font-size: 28px; }
}
/* Blog market pulse band: the session at a glance */
.pulse-band { background: #0e2a1f; color: #f5f0e6; border-radius: 20px; margin: 30px 0 6px; overflow: hidden; }
.pulse-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding: 32px 36px 26px; align-items: center; }
.pulse-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9a96a; margin-bottom: 10px; }
.pulse-value { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 54px; line-height: 1; letter-spacing: -0.02em; }
.pulse-change { font-size: 17px; font-weight: 600; margin-top: 10px; }
.pulse-change.down { color: #ff9d8a; }
.pulse-change.up { color: #7fd6a4; }
.pulse-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pulse-stat span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a9b8ad; margin-bottom: 6px; }
.pulse-stat strong { font-family: "Spectral", Georgia, serif; font-size: 25px; font-weight: 600; }
.pulse-note { grid-column: 1 / -1; font-size: 12.5px; color: #a9b8ad; border-top: 1px solid rgba(245,240,230,.14); padding-top: 14px; margin-top: 2px; }
.pulse-band[hidden] { display: none; }
/* Blog market-news headlines */
.mag-news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.mag-news-item { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mag-news-item h4 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 17.5px; line-height: 1.42; margin-bottom: 7px; }
.mag-news-item:hover h4 { color: var(--accent); }
.mag-news-meta { font-size: 12.5px; color: var(--secondary); }
.mag-news-meta .src { font-weight: 700; color: var(--accent); }
@media (max-width: 760px) {
  .pulse-inner { grid-template-columns: 1fr; padding: 26px 24px 20px; gap: 20px; }
  .pulse-value { font-size: 42px; }
  .mag-news-list { grid-template-columns: 1fr; }
}

/* ============================================================
 * Premium 3D layer — blog cards
 * ============================================================ */
.post-card{
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%), var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
}
.post-card:hover{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 12px rgba(0,0,0,.1), 0 20px 48px rgba(0,0,0,.12);
}
[data-theme="dark"] .post-card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 40%), var(--nd-panel, #12141A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}
[data-theme="dark"] .post-card:hover{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.45), 0 20px 48px rgba(0,0,0,.4);
}
.blog-feature-link{
  border-radius: 16px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.blog-feature-link:hover{
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce){
  .post-card, .blog-feature-link{ transition: none; }
  .post-card:hover, .blog-feature-link:hover{ transform: none; }
}

/* ---- blog article dark-mode contrast ---- */
[data-theme="dark"] .article-body{ color:#e8eaf0; }
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body strong{ color:#ffffff; }
[data-theme="dark"] .article-dek{ color:#b8bfcc; }
[data-theme="dark"] .article-meta{ color:#9aa3b2; }
[data-theme="dark"] .nepali-summary p:last-child{ color:#d5dae3; }
[data-theme="dark"] .faq details p{ color:#c8cfdb; }
[data-theme="dark"] .key-facts li{ color:#c8cfdb; }
[data-theme="dark"] .article-body a{ color:#b8e62e; }
[data-theme="dark"] .article-body blockquote{ color:#c8cfdb; border-left-color:#3a4150; }
[data-theme="dark"] .blog-kicker{ color:#b8e62e; }
[data-theme="dark"] .td-toolsbox{ background:#16181e; border-color:#2b303c; }
[data-theme="dark"] .td-toolsbox-kicker{ color:#9aa3b2; }
[data-theme="dark"] .td-toolsbox-head{ color:#ffffff; }
@media (prefers-reduced-motion: reduce){
  .post-card, .blog-feature-link{ transition:none; }
}
