/* ============================================
   Rahul Singh Portfolio Theme – main.css
   Matches original HTML styling 1:1
   ============================================ */

/* --- Variables --- */
:root {
  --navy: #0f2742;
  --navy-2: #14385c;
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --green: #10b981;
  --orange: #f59e0b;
  --text: #172033;
  --muted: #5d6b82;
  --soft: #f4f8fc;
  --soft-2: #eaf2fb;
  --line: #dbe7f3;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 39, 66, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 40%, #f8fbff 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 100;
  width: 0;
  transition: width 0.1s linear;
}

/* --- Top Bar / Navigation --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}
.navlinks a:hover { color: var(--blue); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: 0.22s ease;
  background: var(--navy);
  color: white;
  box-shadow: 0 12px 28px rgba(15, 39, 66, 0.18);
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(15, 39, 66, 0.24);
}
.btn.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--soft);
  transform: translateY(-1px);
}
.btn.blue { background: var(--blue); }
.menu-btn,
.hamburger {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.hamburger {
  font-size: 0;
  line-height: 0;
}
.hamburger svg {
  width: 22px;
  height: 22px;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 22px 48px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px -120px auto auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20), rgba(14, 165, 233, 0.06) 58%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(38px, 5.3vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero h1 span { color: var(--blue); }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}

/* --- Hero Card --- */
.hero-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.profile-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}
.profile-line h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}
.profile-line p {
  font-size: 13px;
  margin: 4px 0 0;
  color: var(--muted);
}
.quick-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.quick-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 14px;
}
.quick-item b { color: var(--navy); }
.quick-item span { color: var(--muted); text-align: right; }

/* --- Sections --- */
section {
  padding: 54px 22px;
}
.container {
  max-width: var(--max);
  margin: auto;
}
.container.narrow {
  max-width: 760px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 18px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.07);
}
.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--soft-2);
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 14px;
}

/* --- Stat Strip --- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.stat strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 700;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.job {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: start;
}
.job-date {
  color: var(--blue);
  font-weight: 900;
  background: #edf5ff;
  border: 1px solid #d8eaff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.job-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.06);
}
.job-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}
.job-body .company {
  font-weight: 800;
  color: var(--blue);
  margin: 4px 0 10px;
}
.bullets {
  margin: 12px 0 0;
  padding-left: 19px;
  color: var(--muted);
}
.bullets li {
  margin: 7px 0;
}

/* --- Confidentiality Note --- */
.confidential {
  background: linear-gradient(135deg, #0f2742, #14385c);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.confidential h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.confidential p {
  margin: 0;
  color: #dbeafe;
}

/* --- Toolbar / Filters / Search --- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  font-size: 14px;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.search-input {
  min-width: 260px;
  flex: 1;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  font: inherit;
  color: var(--text);
  background: white;
  font-size: 14px;
}
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* --- Case Study Cards --- */
.case-card {
  overflow: hidden;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
.case-top {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border-bottom: 1px solid var(--line);
}
.case-tag {
  display: inline-block;
  padding: 6px 10px;
  background: #eaf3ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}
.case-top h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.16;
}
.case-top p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 22px 0;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: white;
  text-align: center;
}
.metric strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.1;
}
.metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-top: 4px;
}
.case-body {
  padding: 20px 22px 22px;
  display: grid;
  gap: 14px;
  flex: 1;
}
.case-body h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
}

/* --- Marketing Update Cards --- */
.update-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.update-badge {
  display: inline-block;
  padding: 6px 10px;
  background: #eaf3ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  align-self: flex-start;
}
.update-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}
.update-card h3 a {
  color: inherit;
  text-decoration: none;
}
.update-card h3 a:hover {
  color: var(--blue);
}
.update-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.update-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.update-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.update-actions {
  display: flex;
  gap: 8px;
}
.update-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* --- Tools Grid --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tool {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.05);
}

/* --- Services Grid --- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-list {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
}
.service-list li {
  margin: 7px 0;
}

/* --- Contact CTA --- */
.cta {
  background: linear-gradient(135deg, var(--navy), #0b4b87);
  border-radius: 30px;
  padding: 38px;
  color: white;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta h2 {
  font-size: 38px;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.cta p {
  color: #dbeafe;
  margin: 0 0 20px;
}
.cta .btn {
  margin-top: 8px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 22px;
}
.contact-card div {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #eaf3ff;
  font-weight: 700;
}
.contact-card div:last-child {
  border-bottom: 0;
}

/* --- Footer --- */
.footer,
.site-footer {
  padding: 24px 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: white;
}

/* --- Back to Top --- */
.back-to-top,
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 39, 66, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 40;
  font-size: 0;
}
.back-to-top.visible,
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover,
#back-to-top:hover {
  background: var(--blue);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* --- Archive Header --- */
.archive-header {
  padding: 60px 22px 30px;
  text-align: center;
}
.archive-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.archive-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.archive-desc { font-size: 16px; }

/* --- Single Post / Update Pages --- */
.single-post-main,
.single-update-main {
  padding: 40px 0 80px;
}
.single-article,
.single-update-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-top: 16px;
}
.single-header { margin-bottom: 28px; }
.single-cats { margin-bottom: 10px; }
.single-cats a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.single-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.single-header h1 {
  font-size: clamp(24px, 4vw, 38px);
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.single-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-sep { opacity: 0.4; }
.single-thumb { margin: 0 0 28px; }
.single-thumb img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}
.single-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
}
.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--navy);
}
.single-content p { margin-bottom: 18px; }
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.single-content a { color: var(--blue); text-decoration: underline; }
.single-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 24px 0;
  padding: 12px 20px;
  color: var(--muted);
  font-style: italic;
  background: var(--soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-content ul,
.single-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.single-content li { margin-bottom: 6px; }
.single-content code {
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.single-content pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 18px 0;
}
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.single-share {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.single-share .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.single-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Post Navigation --- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.post-nav-link {
  display: block;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-nav-link:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.post-nav-link.next { text-align: right; }
.post-nav-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.post-nav-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* --- Pagination --- */
.pagination {
  margin-top: 50px;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--blue);
  color: #fff;
}
.pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
}

/* --- Archive Pages --- */
.archive-main,
.archive-updates-main {
  padding: 40px 0 80px;
}
.card-body { padding: 20px; }
.card-thumb img {
  width: 100%;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .hero-inner,
  .grid.two,
  .grid.three,
  .grid.four,
  .services,
  .cta {
    grid-template-columns: 1fr;
  }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .job { grid-template-columns: 1fr; }
  .job-date { text-align: left; }
  .navlinks {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }
  .navlinks.open { display: flex; }
  .menu-btn,
  .hamburger { display: inline-flex; }
  .nav-actions .btn.secondary { display: none; }
}

@media (max-width: 620px) {
  section { padding: 42px 16px; }
  .hero { padding: 52px 16px 32px; }
  .nav { padding: 12px 16px; }
  .metrics { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { display: block; }
  .search-input { width: 100%; max-width: none; margin-top: 12px; }
  .hero-card { padding: 18px; }
  .cta { padding: 26px; }
  .cta h2 { font-size: 30px; }
  .single-article,
  .single-update-article {
    padding: 24px 18px;
  }
  .post-nav { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .topbar,
  .toolbar,
  .btn,
  .menu-btn,
  .hamburger,
  .scroll-progress,
  .back-to-top,
  #back-to-top {
    display: none !important;
  }
  body {
    background: white;
    color: #111;
  }
  section {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 28px 0;
  }
  .container,
  .hero-inner {
    max-width: 100%;
    padding: 0 22px;
  }
  .hero {
    padding: 20px 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .card,
  .job-body,
  .hero-card,
  .stat,
  .tool {
    box-shadow: none;
  }
  .case-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  a { text-decoration: none; color: inherit; }
}
