/* ==========================================================================
   SAGAR SAMY — GLOBAL MASTER DESIGN SYSTEM (v14.0)
   Single Font Architecture: Plus Jakarta Sans (400, 500, 600, 700, 800)
   100% Mobile-First Responsive, WCAG AAA Contrast, 60fps GPU Animations
   ========================================================================== */

/* --- 1. Master CSS Tokens (Light Default) --- */
:root, [data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-subtle: #EDF2F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-elevated: #E2E8F0;
  --bg-header: rgba(255, 255, 255, 0.98);
  --bg-input: #FFFFFF;

  --text-title: #0F172A;
  --text-body: #1E293B;
  --text-muted: #475569;

  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-hover: #EC4899;

  --primary-color: #EC4899;
  --primary-gradient: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #06B6D4 100%);
  --accent-cyan: #06B6D4;
  --accent-violet: #8B5CF6;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
  --shadow-header: 0 10px 30px rgba(15, 23, 42, 0.06);

  --header-height: 84px;
}

/* --- 2. Dark Theme (user opt-in via toggle) --- */
[data-theme="dark"] {
  --bg-page: #0B0E14;
  --bg-subtle: #111520;
  --bg-card: #161C2A;
  --bg-card-hover: #1E2638;
  --bg-elevated: #242D42;
  --bg-header: rgba(11, 14, 20, 0.96);
  --bg-input: #111520;

  --text-title: #FFFFFF;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;

  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-medium: rgba(255, 255, 255, 0.18);
  --border-hover: #EC4899;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
  --shadow-header: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  :root, [data-theme="dark"], [data-theme="light"] {
    --header-height: 70px;
  }
}

/* --- 3. Zero-Overflow Reset & Single Unified Font --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-body);
  transition: background-color 0.25s ease, color 0.25s ease;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.8;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

main {
  display: block;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.85rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { color: var(--text-body); font-size: clamp(0.95rem, 1.8vw, 1.05rem); line-height: 1.8; }
a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  box-sizing: border-box;
}
.container-narrow {
  max-width: 880px;
}

.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  position: relative;
  width: 100%;
}
.section-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-header.center {
  text-align: center;
}
.section-subtitle {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.section-title {
  margin-bottom: 0.85rem;
}
.section-desc {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- 4. Component Primitives --- */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(236, 72, 153, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(236, 72, 153, 0.25);
  box-sizing: border-box;
}
.badge-tag.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.25);
}
.badge-tag.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  display: inline-block;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-title) !important;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

/* --- 5. Navigation Bar (Zero Cropping Header) --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-header);
  height: var(--header-height);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 48px;
  width: auto;
}
[data-theme="dark"] .logo-theme-light { display: none !important; }
[data-theme="dark"] .logo-theme-dark { display: block !important; }
[data-theme="light"] .logo-theme-dark { display: none !important; }
[data-theme="light"] .logo-theme-light { display: block !important; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-title);
  background: var(--bg-elevated);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.2s ease;
}
.theme-circle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-circle-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.08);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF !important;
  background: var(--primary-gradient);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-title);
  cursor: pointer;
  padding: 0.45rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-page);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.75);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  visibility: hidden;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
  box-sizing: border-box;
}
.mobile-drawer.is-open {
  right: 0;
  visibility: visible;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-drawer-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-body);
  padding: 0.65rem 0.5rem;
  display: block;
}
.mobile-drawer-link.active, .mobile-drawer-link:hover {
  color: var(--primary-color);
}

/* --- 6. Hero & Top Banner Clearances (NO TOP CROPPING) --- */
.hero {
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + 4.5rem) !important;
  padding-bottom: 4.5rem !important;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
@media (max-width: 980px) {
  .hero {
    padding-top: calc(var(--header-height) + 3.25rem) !important;
    padding-bottom: 3.5rem !important;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }
}

.hero-photo-frame {
  position: relative;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  border-radius: 22px;
  background: var(--bg-card);
  padding: 8px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.hero-photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  background: transparent;
}

/* About Page Hero 2-Column Grid (Text & Picture Side-by-Side) */
.about-hero-grid {
  display: grid !important;
  grid-template-columns: 1.25fr 0.75fr !important;
  gap: 3rem !important;
  align-items: center !important;
  width: 100% !important;
}
@media (max-width: 980px) {
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    text-align: center !important;
  }
}

/* Subpage Dedicated Banner (Zero top cropping guaranteed) */
.page-hero-banner {
  padding-top: calc(var(--header-height) + 4.5rem) !important;
  padding-bottom: 4rem !important;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  width: 100%;
}
@media (max-width: 768px) {
  .page-hero-banner {
    padding-top: calc(var(--header-height) + 3.25rem) !important;
    padding-bottom: 3rem !important;
  }
}

/* --- 7. Features Grid (3x2 Symmetrical Grid) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}
.service-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- 8. Portfolio Symmetrical Case Cards --- */
.portfolio-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}
@media (max-width: 1024px) {
  .portfolio-case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-case-grid { grid-template-columns: 1fr; }
}

.portfolio-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.portfolio-thumb-wrap {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #161C2A;
}
.portfolio-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-case-card:hover .portfolio-thumb-wrap img {
  transform: scale(1.04);
}
.portfolio-card-desc {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.portfolio-metrics-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  margin-bottom: 1.25rem;
}

/* --- 9. Resume 6-Grid Symmetrical Dossier --- */
.resume-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}
@media (max-width: 1024px) {
  .resume-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .resume-grid-6 { grid-template-columns: 1fr; }
}

/* --- 10. Client Brands & Verified Testimonials --- */
.client-brand-grid, .clients-grid-8 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  margin-bottom: 3.5rem !important;
}
@media (max-width: 900px) {
  .client-brand-grid, .clients-grid-8 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .client-brand-grid, .clients-grid-8 { grid-template-columns: 1fr !important; }
}

.client-brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 1.15rem !important;
  min-height: 86px;
  box-sizing: border-box;
}
.client-brand-icon {
  width: 56px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}
.client-brand-icon svg {
  max-height: 36px;
  max-width: 56px;
  width: auto;
  height: auto;
}
.client-brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.client-brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
  display: block;
}
.client-brand-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}
.client-brand-logo {
  max-width: 140px;
  height: 42px;
  object-fit: contain;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}
@media (max-width: 980px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}
.star-svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-amber);
  display: block;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.testimonial-author-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-title);
  letter-spacing: -0.01em;
  text-align: left;
}
.testimonial-country-name, .testimonial-country-badge {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.01em;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* --- 11. 2-Category Pricing Matrix --- */
.pricing-category-block {
  margin-bottom: 4rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}
.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 16px 36px -10px rgba(236, 72, 153, 0.28);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.08em;
}
.pricing-plan-title {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}
.pricing-plan-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1.5rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-body);
}
.pricing-feature-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-emerald);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.pricing-feature-item.off {
  color: var(--text-muted);
  opacity: 0.6;
}
.pricing-feature-item.off svg {
  stroke: var(--text-muted);
}

/* --- 12. Editorial Blog & Responsive Articles --- */
/* Homepage 3-Column Latest Articles (Horizontal 3-Column Grid) */
.blog-grid-3col {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  width: 100% !important;
}
@media (max-width: 980px) {
  .blog-grid-3col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .blog-grid-3col { grid-template-columns: 1fr !important; }
}

.blog-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.blog-card-modern:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45), 0 0 20px rgba(236, 72, 153, 0.12);
}
.blog-cover-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-title);
}
.blog-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.blog-read-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
}

/* Dedicated Blog Page Feed Layout (Horizontal 2-Column Grid) */
.blog-page-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2.75rem;
  align-items: start;
  width: 100%;
}
@media (max-width: 980px) {
  .blog-page-layout { grid-template-columns: 1fr; gap: 2.25rem; }
}
.blog-main-feed {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: 100%;
}
.blog-news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.blog-news-thumb-wrap {
  width: 100%;
  height: clamp(240px, 30vw, 360px);
  overflow: hidden;
  background: #161C2A;
}
.blog-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-news-card:hover .blog-news-thumb {
  transform: scale(1.03);
}
.blog-news-content {
  padding: clamp(1.35rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
}
.blog-news-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-news-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 0.85rem;
}
.blog-news-title a:hover {
  color: var(--primary-color);
}
.blog-news-excerpt {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}
.blog-news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-hero-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #161C2A;
  box-shadow: var(--shadow-card);
}
.article-hero-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
}

.blog-sidebar { display: flex; flex-direction: column; gap: 2rem; width: 100%; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: clamp(1.25rem, 2vw, 1.85rem); box-shadow: var(--shadow-card); }
.sidebar-author-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 2px solid var(--primary-color); }

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.pagination-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  transition: all 0.2s ease;
}
.pagination-btn.active {
  background: var(--primary-gradient) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.pagination-nav-btn {
  height: 44px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
}

/* --- 13. Contact Form & Footer --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-portrait-img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row-2col { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
input, textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-input);
  color: var(--text-title);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

/* Visible keyboard focus for links, buttons and other interactive elements. */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-minimal {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}
.footer-logo-img {
  height: 48px;
  width: auto;
}
.footer-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
  margin: 1.75rem 0 2rem;
}
.footer-nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-nav-link:hover, .footer-nav-link.active {
  color: var(--primary-color);
}
.footer-social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin-bottom: 2rem;
}
.footer-social-btn, .hero-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 0.25s ease;
}
.footer-social-btn:hover, .hero-social-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
}
.footer-social-btn svg, .hero-social-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social-btn svg.fill-svg, .hero-social-btn svg.fill-svg {
  fill: currentColor;
  stroke: none;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 14. World-Class Physics Motion (Apple/Linear Standard) --- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.15em;
  background-color: var(--primary-color);
  margin-left: 4px;
  vertical-align: -0.15em;
  animation: blinkCursor 0.85s infinite;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hardware Accelerated Pure-CSS Fluid Motion */
.service-card, .client-brand-card, .pricing-card, .portfolio-case-card, .blog-news-card, .blog-card-modern, .card-glass, .stat-box {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card, .client-brand-card, .pricing-card, .portfolio-case-card, .blog-news-card, .card-glass {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.service-card:hover, .client-brand-card:hover, .pricing-card:hover, .portfolio-case-card:hover, .blog-news-card:hover, .card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45), 0 0 20px rgba(236, 72, 153, 0.12);
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: scale(1) translateY(0); }
.back-to-top:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; }

@media (max-width: 1100px) {
  .nav-menu { display: none !important; }
  .mobile-nav-toggle { display: block !important; }
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .footer-nav-list { gap: 0.85rem; }
}
/* Horizontal Hero Social Media Icons */
.hero-social-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex-wrap: wrap !important;
  margin-top: 0.75rem !important;
}
@media (max-width: 980px) {
  .hero-social-list {
    justify-content: center !important;
  }
}
/* ==========================================================================
   v1.0.4 — Mobile-first polish: compact header CTA, refined hero, light default
   ========================================================================== */

/* Blinking typewriter cursor (replaces the raw "|" character look) */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 5px;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: var(--primary-gradient);
  color: transparent;
  overflow: hidden;
  animation: blinkCursor 0.85s infinite;
}

/* --- Compact mobile header: logo, toggle, CTA and hamburger fit 360px --- */
@media (max-width: 1100px) {
  .brand-logo-img { height: 38px; }
  .theme-circle-btn { width: 36px; height: 36px; flex-shrink: 0; }
  .header-right { gap: 0.55rem; }
  .mobile-nav-toggle { flex-shrink: 0; padding: 0.35rem; }
  .nav-cta {
    padding: 0.52rem 0.9rem;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-radius: 8px;
    flex-shrink: 0;
  }
}
@media (max-width: 400px) {
  .brand-logo-img { height: 34px; }
  .nav-cta { padding: 0.48rem 0.75rem; font-size: 0.7rem; }
  .header-right { gap: 0.45rem; }
}

/* --- Refined mobile hero: stacked CTAs, balanced type, breathing room --- */
@media (max-width: 640px) {
  .hero .badge-tag { font-size: 0.72rem; padding: 0.5rem 1rem; }
  .hero h1 { font-size: clamp(1.72rem, 8.2vw, 2.3rem); line-height: 1.22; }
  .hero p { font-size: 1rem !important; line-height: 1.75; }
  .hero .btn {
    flex: 1 1 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.92rem;
    border-radius: 10px;
  }
  .hero-photo-frame { max-width: 300px; border-radius: 20px; }
  .hero-social-list { gap: 0.7rem !important; }
}

/* --- Small polish: never allow horizontal scroll from wide decorations --- */
@media (max-width: 640px) {
  .section-header { margin-bottom: 2rem; }
  body { overflow-x: hidden; }
}

/* ============================================================
   v1.0.5 — Layout integrity fixes
   ============================================================ */

/* 1. Phantom grid cells: the WXR import wrapped HTML comments in <p>
   tags via wpautop, and those empty paragraphs became phantom CSS-grid
   items that pushed real cards into "dropped"/misaligned positions.
   display:contents removes them from layout entirely. */
.resume-grid-6 > p,
.pricing-grid > p,
.clients-grid-8 > p,
.client-brand-grid > p,
.testimonials-grid > p,
.portfolio-case-grid > p {
  display: contents;
}
/* Belt and braces: never let an empty paragraph occupy grid space. */
.resume-grid-6 > p:empty,
.pricing-grid > p:empty,
.clients-grid-8 > p:empty,
.client-brand-grid > p:empty,
.testimonials-grid > p:empty,
.portfolio-case-grid > p:empty {
  display: none;
}

/* 2. Testimonial footer: imported markup places a <br> between author
   name and country inside a flex row, which jams them together. */
.testimonial-footer br {
  display: none;
}
.testimonial-footer {
  gap: 0.75rem;
}

/* 3. Contact portrait: stop cropping the head. Square crop anchored to
   the top of the photo keeps the face fully visible at any card width. */
.contact-portrait-img {
  aspect-ratio: 1 / 1;
  max-height: none;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* 4. Sidebar widget titles: explicit spacing so headings never jam. */
.widget-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0;
  word-spacing: normal;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* 5. Real client logos in brand cards. */
.client-brand-logo-img {
  width: 64px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.client-brand-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-title);
  line-height: 1.1;
}

/* ============================================================
   v1.0.6 — UNIFORM TYPOGRAPHY + ARTICLE READABILITY
   One font family site-wide: Plus Jakarta Sans.
   The rules below neutralize any rogue inline font-family that
   arrives inside pasted post content, embeds, or editor markup,
   so the site always renders a single, professional typeface.
   ============================================================ */
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, a, li, span, div,
article, section, header, footer, nav, aside,
table, th, td, blockquote, figcaption, label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* Kill inline font stacks inside post/page content specifically. */
.entry-content [style*="font-family"],
.post-content [style*="font-family"],
article.card-glass [style*="font-family"] {
  font-family: inherit !important;
}

/* ============================================================
   Article reading experience — single posts only.
   Scoped to .single article.card-glass; nothing else changes.
   ============================================================ */
.single article.card-glass > p {
  font-size: 1.06rem;
  line-height: 1.85;
  margin: 0 0 1.5em;
  max-width: 72ch;
}
.single article.card-glass > p:first-of-type {
  font-size: 1.16rem;
  line-height: 1.8;
}
.single article.card-glass h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 2.4em 0 0.9em;
  max-width: 72ch;
}
.single article.card-glass h3 {
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.9em 0 0.7em;
  max-width: 72ch;
}
.single article.card-glass > h2:first-child,
.single article.card-glass > h3:first-child {
  margin-top: 0;
}
.single article.card-glass > ul,
.single article.card-glass > ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
  max-width: 72ch;
}
.single article.card-glass li {
  margin-bottom: 0.65em;
  line-height: 1.8;
  font-size: 1.03rem;
}
.single article.card-glass li::marker {
  font-weight: 700;
}
.single article.card-glass figure {
  margin: 2.4em 0;
  max-width: 100%;
}
.single article.card-glass figure img {
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}
.single article.card-glass figcaption {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.8em;
  padding: 0 1rem;
}
.single article.card-glass .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  max-width: 100%;
}
.single article.card-glass table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.6;
  min-width: 560px;
}
.single article.card-glass th,
.single article.card-glass td {
  padding: 0.85em 1.1em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}
.single article.card-glass thead th {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-title);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.single article.card-glass tbody tr:last-child th,
.single article.card-glass tbody tr:last-child td {
  border-bottom: none;
}
.single article.card-glass tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.single article.card-glass blockquote {
  margin: 2.4em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid var(--primary-color);
  font-size: 1.22rem;
  line-height: 1.65;
  font-weight: 600;
  color: var(--text-title);
  max-width: 72ch;
}
.single article.card-glass blockquote p {
  margin: 0;
}
.single article.card-glass a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.single article.card-glass a:hover {
  text-decoration-thickness: 2px;
}
@media (max-width: 640px) {
  .single article.card-glass {
    padding: 1.4rem 1.15rem !important;
    border-radius: 14px;
  }
  .single article.card-glass > p {
    font-size: 1rem;
    line-height: 1.8;
  }
  .single article.card-glass > p:first-of-type {
    font-size: 1.08rem;
  }
  .single article.card-glass h2 {
    margin: 2em 0 0.8em;
  }
  .single article.card-glass table {
    font-size: 0.88rem;
  }
  .single article.card-glass th,
  .single article.card-glass td {
    padding: 0.7em 0.85em;
  }
}

/* ============================================================
   v1.0.6b — Blog sidebar polish: recent articles, author box,
   search form, and widget titles. Previously unstyled.
   ============================================================ */
.blog-sidebar .widget-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-title);
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.sidebar-recent-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-recent-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-recent-item img,
.sidebar-recent-thumb img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.sidebar-recent-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-title);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-recent-title:hover {
  color: var(--primary-color);
}
.sidebar-recent-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.sidebar-author-box {
  text-align: center;
}
.sidebar-author-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-title);
  margin: 0 0 0.25rem;
}
.sidebar-author-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.7rem;
}
.sidebar-author-bio {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}
.sidebar-search-form {
  display: flex;
  gap: 0.5rem;
}
.sidebar-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-body);
  font-size: 0.9rem;
}
.sidebar-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.sidebar-search-btn {
  flex-shrink: 0;
  width: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   v1.0.7 — Professional polish pass
   1. WordPress core pagination (5 posts/page, numbered)
   2. Tighter heading vertical rhythm
   3. Mobile-first refinements
   4. Lightweight scroll-reveal animations
   5. CTA band
   ============================================================ */

/* --- 1. Pagination --- */
.pagination,
.posts-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
a.page-numbers:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.page-numbers.current {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(236,72,153,0.35);
}
.page-numbers.prev,
.page-numbers.next {
  padding: 0 1.1rem;
  font-size: 0.88rem;
}
.page-numbers.dots {
  background: transparent;
  border-color: transparent;
  min-width: 32px;
}

/* --- 2. Tighter, professional heading rhythm --- */
.section-header {
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.section-subtitle {
  margin-bottom: 0.65rem;
}
.section-title {
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-desc {
  margin-top: 0;
  line-height: 1.7;
}
/* Hero banner: reduce airy gaps */
.page-hero-banner h1 {
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-hero-banner p {
  line-height: 1.7;
}
/* Homepage hero tightening */
.hero h1 {
  margin-bottom: 1.1rem;
  line-height: 1.18;
}
.hero p {
  margin-bottom: 1.6rem;
}
/* Card titles: consistent rhythm */
.blog-news-title,
.portfolio-case-card h2,
.service-title {
  line-height: 1.35;
}

/* --- 3. Mobile-first refinements --- */
@media (max-width: 768px) {
  .section {
    padding: clamp(2.75rem, 8vw, 3.5rem) 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .page-hero-banner {
    padding-bottom: 2.5rem !important;
  }
  .page-hero-banner h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  /* Pagination: comfortable tap targets, wraps cleanly */
  .nav-links {
    gap: 0.4rem;
  }
  .page-numbers.prev,
  .page-numbers.next {
    padding: 0 0.9rem;
  }
  /* Blog cards: stack thumbnail above content on small screens */
  .blog-news-card {
    flex-direction: column;
  }
  .blog-news-thumb-wrap {
    width: 100%;
  }
}
/* Small phones: keep type readable, never cramped */
@media (max-width: 480px) {
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .section-title {
    letter-spacing: -0.015em;
  }
  .btn {
    min-height: 44px;
  }
}

/* --- 4. Scroll-reveal animations (GPU-cheap, respects reduced motion) --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* v1.0.8 — print: never hide animated content on paper */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- 5. CTA band --- */
.cta-band .section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.cta-band .btn {
  min-width: 200px;
}

/* ============================================================
   v1.0.9 — Vertical rhythm system.
   One measured spacing scale for all page content, desktop + mobile.
   ============================================================ */

/* 1. Phantom gap killer: wpautop leaves empty <p> tags behind (and <p>
   wrappers the HTML parser auto-closes around divs/sections). With the
   global margin reset each one still renders ~1 line of blank space via
   line-height, which reads as large random gaps. Never let them occupy space. */
#main-content p:empty {
  display: none !important;
}

/* 2. Page content rhythm. Flow elements that carry no authored inline
   margins get the site scale; elements with inline margin styles are
   left exactly as authored. */
.page #main-content h2:not([class]):not([style*="margin"]),
.single-project #main-content h2:not([class]):not([style*="margin"]) {
  margin: 2.4em 0 1em;
  line-height: 1.3;
}
.page #main-content h3:not([class]):not([style*="margin"]),
.single-project #main-content h3:not([class]):not([style*="margin"]) {
  margin: 2em 0 0.8em;
  line-height: 1.4;
}
.page #main-content p:not([class]):not([style*="margin"]) {
  margin: 0 0 1.4em;
  line-height: 1.8;
}
.page #main-content ul:not([class]):not([style*="margin"]),
.page #main-content ol:not([class]):not([style*="margin"]) {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  line-height: 1.8;
}
.page #main-content figure:not([class]):not([style*="margin"]) {
  margin: 2.2em 0;
}
/* No extra air at container edges. */
.page #main-content h2:not([class]):first-child,
.page #main-content h3:not([class]):first-child,
.page #main-content p:not([class]):first-child {
  margin-top: 0;
}
.page #main-content p:not([class]):last-child,
.page #main-content ul:not([class]):last-child,
.page #main-content ol:not([class]):last-child {
  margin-bottom: 0;
}

/* 3. Elegant Previous / Next article navigation (single posts). */
.post-prevnext-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.post-prevnext-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-prevnext-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-color);
}
.post-prevnext-card:only-child {
  grid-column: 1 / -1;
}
.post-prevnext-card.is-next {
  text-align: right;
}
.post-prevnext-card.is-next .post-prevnext-text {
  margin-left: auto;
}
.post-prevnext-thumb {
  flex: 0 0 auto;
}
.post-prevnext-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.post-prevnext-text {
  min-width: 0;
}
.post-prevnext-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}
.post-prevnext-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-title);
}
@media (max-width: 640px) {
  .post-prevnext-nav {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
  }
}

/* 4. Small phones (<=480px): same scale, tightened. */
@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }
  .page-hero-banner {
    padding-bottom: 2.25rem !important;
  }
  .page #main-content h2:not([class]):not([style*="margin"]) {
    margin: 2em 0 0.8em;
  }
  .page #main-content h3:not([class]):not([style*="margin"]) {
    margin: 1.7em 0 0.7em;
  }
  .page #main-content figure:not([class]):not([style*="margin"]) {
    margin: 1.8em 0;
  }
}
