/* ============================================================
   JIC WEALTH — Global Stylesheet
   Design System v1.0 · April 2026
   Fonts: Libre Baskerville (serif) + Outfit (sans)
   Primary: #141E55 · Accent: off-white, navy tints only
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  --navy:       #141E55;
  --navy-hover: #0d1640;
  --navy-tint:  #f0f1f9;
  --navy-20:    #d0d4ed;
  --navy-40:    #8a93c9;
  --navy-60:    #4d5fa6;
  --off:        #f7f7f5;
  --border:     #e5e5e1;
  --text:       #1a1a18;
  --muted:      #6b6b65;
  --white:      #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--navy-20); }

/* ── TYPOGRAPHY ── */
.serif { font-family: 'Libre Baskerville', serif; }
h1, h2.serif-heading { font-family: 'Libre Baskerville', serif; font-weight: 400; }

/* display / hero */
.type-display {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}
/* section heading */
.type-h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}
/* sub-heading */
.type-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--navy);
}
/* card title */
.type-h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}
/* eyebrow */
.type-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-40);
}
/* body */
.type-body {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
}
/* caption */
.type-caption {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 60px 0;
}
/* Alternating backgrounds */
.bg-white  { background: var(--white); }
.bg-off    { background: var(--off); }
.bg-tint   { background: var(--navy-tint); }
.bg-navy   { background: var(--navy); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border-radius: 0; /* sharp always */
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-arrow { transition: transform 0.15s ease; display: inline-block; }

/* ── HAIRLINE DIVIDER ── */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}
.divider-navy {
  border: none;
  border-top: 2px solid var(--navy);
  width: 40px;
  margin: 0;
}

/* ── PILL TAG ── */
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--navy-tint);
  color: var(--navy);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── STAT CARD ── */
.stat-card {
  background: var(--off);
  border-radius: 8px;
  padding: 24px 28px;
  text-align: center;
}
.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-40);
  margin-top: 6px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-color: var(--navy-20);
  box-shadow: 0 4px 20px rgba(20,30,85,0.06);
}
.service-icon-wrap {
  width: 36px;
  height: 36px;
  background: var(--navy-tint);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon-inner {
  width: 14px;
  height: 14px;
  background: var(--navy);
  border-radius: 2px;
}
.service-card.featured {
  border-color: var(--navy-20);
  border-width: 1px;
}
.service-card.featured .service-icon-wrap {
  background: var(--navy);
}
.service-card.featured .service-icon-inner {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--white);
}

/* ── ACCENT CARD ── */
.accent-card {
  border-left: 3px solid var(--navy);
  border-top: 0.5px solid var(--border);
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 24px 28px;
  background: var(--white);
}

/* ── TESTIMONIAL CARD ── */
.testimonial-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  flex: 0 0 340px;
  scroll-snap-align: start;
}
.testimonial-quote {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial-author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}
.testimonial-author-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── FAQ ── */
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-item:first-child { border-top: 0.5px solid var(--border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  gap: 16px;
  user-select: none;
}
.faq-icon {
  width: 24px;
  height: 24px;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  transition: transform 0.25s ease;
  font-weight: 300;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── ARTICLE CARD ── */
.article-card {
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  border-color: var(--navy-20);
  box-shadow: 0 4px 20px rgba(20,30,85,0.06);
}
.article-img-placeholder {
  height: 168px;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0.5px solid var(--border);
}
.article-body { padding: 20px 22px 24px; }
.article-tag {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-60);
}
.article-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.4;
  margin: 8px 0 10px;
}
.article-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
  margin-top: 12px;
}

/* ── NAV ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  transition: box-shadow 0.2s ease;
}
#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo img {
  height: 72px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { font-weight: 500; color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 14px;
  border: 0.5px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
.nav-login:hover { color: var(--navy); border-color: var(--navy-20); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.2s ease;
}
/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
}
.mobile-nav a:hover { color: var(--navy-60); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.4rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

/* ── CONTACT FORM ── */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s ease;
  outline: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
}
.form-field select { background: var(--white); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
}
.footer-inner {
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img { height: 36px; mix-blend-mode: screen; }
.footer-logo img.navy { filter: none; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 240px;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--white); }
.footer-divider {
  border: none;
  border-top: 0.5px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-compliance {
  font-size: 0.69rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  max-width: 900px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
}
.footer-legal-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.15s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.6); }
.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 80px 0 72px;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
}
.page-hero-eyebrow {
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ── TIMELINE ── */
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy-40);
  text-align: right;
  padding-top: 4px;
}
.timeline-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}
.timeline-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── APPROACH STEP ── */
.approach-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}
.approach-num {
  width: 32px;
  height: 32px;
  border: 1px solid var(--navy-20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 3px;
}
.approach-title {
  font-family: 'Livre Baskerville', serif;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--navy);
  z-index: 200;
  width: 0;
  transition: width 0.1s linear;
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 48px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-year { text-align: left; }
  .approach-item { grid-template-columns: 36px 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 60px 0 48px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE ADDITIONS
   All sections made properly phone-friendly
   ══════════════════════════════════════════ */

/* Testimonials — horizontal swipe carousel on all screens */
#testimonials-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 4px;
}
#testimonials-track::-webkit-scrollbar { display: none; }
#testimonials-track:active { cursor: grabbing; }
.testimonial-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

/* Scroll hint dots for testimonials */
.testimonial-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}
.testimonial-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-20);
  cursor: pointer;
  transition: background 0.2s;
}
.testimonial-dot.active { background: var(--navy); }

@media (max-width: 900px) {
  /* Hero asymmetric grid → stacked */
  .hero-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 0 !important;
  }
  .hero-split > div:last-child {
    height: 320px !important;
  }

  /* Founders about section → stacked */
  .founders-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Why JIC comparison → stacked */
  .why-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact CTA info grid → stacked */
  .contact-cta-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* FAQ grid → stacked */
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* Featured article on thoughtcenter → stacked */
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Asset allocation grid on invest → stacked */
  .asset-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact form grid → stacked */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
}

@media (max-width: 768px) {
  /* Testimonial cards — nearly full width so you clearly see one at a time */
  .testimonial-card {
    flex: 0 0 82vw;
  }

  /* Stats — 2 cols on mobile */
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Services grid → single col */
  .grid-3 { grid-template-columns: 1fr; }

  /* Form row → single col */
  .form-row { grid-template-columns: 1fr; }

  /* Footer grid → single col */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Page hero */
  .page-hero { padding: 48px 0 40px; }
  .page-hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* Approach items */
  .approach-item { grid-template-columns: 36px 1fr; gap: 16px; }

  /* Timeline */
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-year { text-align: left; }

  /* Subscribe row → stacked */
  .subscribe-row {
    flex-direction: column !important;
  }
  .subscribe-row input {
    width: 100% !important;
  }

  /* Nav */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal-links { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-card { text-align: center; }
  .section { padding: 56px 0; }
}

/* ══════════════════════════════════════
   MOBILE FIXES — Pre-deployment pass
   ══════════════════════════════════════ */

/* 4-col pillar grid → 2-col on tablet, 1-col on mobile */
@media (max-width: 900px) {
  .inv-pillar:nth-child(1),
  .inv-pillar:nth-child(2),
  .inv-pillar:nth-child(3),
  .inv-pillar:nth-child(4) {
    border-right: none !important;
  }
}

/* Generic responsive helper — any inline grid */
@media (max-width: 768px) {

  /* 4-col pillar → stack to 1 col */
  [style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Conviction stats bar (3-col navy) → stack */
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Selection framework flow → stack vertically */
  [style*="grid-template-columns:1fr auto 1fr auto 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Hide arrows between steps on mobile */
  [style*="grid-template-columns:1fr auto 1fr auto 1fr auto 1fr"] > [style*="padding:0 8px"] {
    display: none !important;
  }

  /* Built for sophisticated capital inner 2x2 */
  [style*="grid-template-columns:1fr 1fr;gap:0"] {
    grid-template-columns: 1fr !important;
  }

  /* About page — Anilkumar and Krithik sections */
  [style*="grid-template-columns: 1fr 1fr; gap: 80px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns:1fr 1fr;gap:80px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Services page — Wealth Planning and Family Office 2-col sections */
  [style*="grid-template-columns:1fr 1fr;gap:80px;align-items:start"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Investment approach — Built for Sophisticated Capital */
  [style*="grid-template-columns:1fr 2fr;gap:48px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Thought Center — featured article */
  [style*="grid-template-columns:1fr 1fr;gap:48px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Where We Create Access — 3-col → 2-col → 1-col */
  [style*="grid-template-columns:repeat(3,1fr);gap:12px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Pillar section borders cleanup */
  .inv-pillar {
    border-right: 0.5px solid var(--border) !important;
  }

  /* Conviction stat blocks stacked */
  [style*="border-radius:12px 0 0 12px"] {
    border-radius: 12px 12px 0 0 !important;
  }
  [style*="border-radius:0 12px 12px 0"] {
    border-radius: 0 0 12px 12px !important;
  }

  /* Stat cards text align centre on mobile */
  .stat-card {
    text-align: center !important;
  }

  /* Hero image height on mobile */
  .hero-split > div:last-child {
    height: 280px !important;
  }

  /* Container padding tighter */
  .container {
    padding: 0 20px !important;
  }

  /* Why JIC comparison — slightly less padding */
  [style*="padding:28px 24px"] {
    padding: 20px 16px !important;
  }
}

@media (max-width: 480px) {
  /* 4-col pillar → single column on small phones */
  [style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* 3-col access grid → single col */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Where we create access cards */
  [style*="grid-template-columns:repeat(3,1fr);gap:12px"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat blocks */
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
