/* ==========================================================================
   AJIT BAN — VIBRANT AESTHETICS & 3D LIVING CANVASES
   World-class visual enhancement layer: deep chromatic nebula, glowing
   glassmorphism, vibrant category badges, metallic 24K gold buttons,
   and 3D ambient celestial background integration.
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. FIXED 3D AMBIENT BACKGROUND CANVAS
   --------------------------------------------------------------------- */
.ambient-3d-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.92;
}

/* ---------------------------------------------------------------------
   2. DEEP SPACE CHROMATIC AURORA BODY
   --------------------------------------------------------------------- */
body {
  background-color: #060911 !important;
  background-image:
    radial-gradient(circle 900px at 12% 10%, rgba(37, 99, 235, 0.16) 0%, transparent 60%),
    radial-gradient(circle 800px at 88% 22%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
    radial-gradient(circle 950px at 50% 65%, rgba(16, 185, 129, 0.09) 0%, transparent 65%),
    radial-gradient(circle 700px at 85% 90%, rgba(59, 130, 246, 0.14) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
  color: #F8FAFC !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------------
   3. MOLTEN GOLD & SAPPHIRE GRADIENT HEADLINES
   --------------------------------------------------------------------- */
.hero__title em,
.page-intro__title em,
.section-head__title em,
.display-xl em,
.heading-xl em {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 30%, #F59E0B 70%, #60A5FA 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  text-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
}

/* ---------------------------------------------------------------------
   4. SLEEK HEADER & BRAND MARK
   --------------------------------------------------------------------- */
.site-header {
  background: rgba(6, 9, 17, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.brand-mark {
  border-radius: 8px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(37, 99, 235, 0.18)) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.22) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.site-header__brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.08) !important;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.45) !important;
  border-color: #60A5FA !important;
}

.site-nav__list {
  gap: var(--space-4) !important;
}

.site-nav__link {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #94A3B8 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.site-nav__link::after {
  display: none !important;
}

.site-nav__link:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-1px) !important;
}

.site-nav__link.is-active {
  color: #FBBF24 !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
}

/* ---------------------------------------------------------------------
   5. HERO CIVIC LIVE BEACON (RSP घण्टी / CHANGUNARAYAN 5)
   --------------------------------------------------------------------- */
.hero-civic-beacon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(245, 158, 11, 0.16) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: var(--space-6);
  width: fit-content;
}

.hero-civic-beacon__bell {
  font-size: 1.15rem;
  animation: bell-swing 2.4s ease infinite;
  transform-origin: top center;
  display: inline-block;
}

@keyframes bell-swing {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
  50% { transform: rotate(0); }
}

.hero-civic-beacon__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #F8FAFC;
}

/* ---------------------------------------------------------------------
   6. GLASSMORHPISM FROSTED CARDS & LUMINOUS EDGES
   --------------------------------------------------------------------- */
.work-card,
.practice-card,
.article-card,
.pillar-card,
.brief-card,
.profile-bio-box,
.contact-block,
.changunarayan-photo-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.75) 0%, rgba(9, 14, 26, 0.88) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.work-card:hover,
.practice-card:hover,
.article-card:hover,
.brief-card:hover,
.changunarayan-photo-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 20px 48px -10px rgba(37, 99, 235, 0.35), 0 0 24px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* ---------------------------------------------------------------------
   7. VIBRANT PILLAR CARDS (CHANGUNARAYAN WARD 5 5-PILLARS)
   --------------------------------------------------------------------- */
.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pillar-color, #F59E0B);
  box-shadow: 0 0 16px var(--pillar-color, #F59E0B);
}

.pillar-card:nth-child(1) { --pillar-color: #3B82F6; }
.pillar-card:nth-child(2) { --pillar-color: #F59E0B; }
.pillar-card:nth-child(3) { --pillar-color: #F43F5E; }
.pillar-card:nth-child(4) { --pillar-color: #A855F7; }
.pillar-card:nth-child(5) { --pillar-color: #10B981; }

.pillar-card:nth-child(1):hover {
  border-color: rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 20px 48px -10px rgba(59, 130, 246, 0.45), 0 0 25px rgba(59, 130, 246, 0.25) !important;
}
.pillar-card:nth-child(2):hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 20px 48px -10px rgba(245, 158, 11, 0.45), 0 0 25px rgba(245, 158, 11, 0.25) !important;
}
.pillar-card:nth-child(3):hover {
  border-color: rgba(244, 63, 94, 0.6) !important;
  box-shadow: 0 20px 48px -10px rgba(244, 63, 94, 0.45), 0 0 25px rgba(244, 63, 94, 0.25) !important;
}
.pillar-card:nth-child(4):hover {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 20px 48px -10px rgba(168, 85, 247, 0.45), 0 0 25px rgba(168, 85, 247, 0.25) !important;
}
.pillar-card:nth-child(5):hover {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 20px 48px -10px rgba(16, 185, 129, 0.45), 0 0 25px rgba(16, 185, 129, 0.25) !important;
}

/* ---------------------------------------------------------------------
   8. METALLIC GOLD BUTTONS WITH RADIANT DROP-SHADOW
   --------------------------------------------------------------------- */
.btn--primary {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #B45309 100%) !important;
  color: #07090E !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 36px rgba(245, 158, 11, 0.65), 0 0 24px rgba(59, 130, 246, 0.35) !important;
  color: #000000 !important;
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.75) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
}

.btn--secondary:hover {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* ---------------------------------------------------------------------
   9. VIBRANT CATEGORY PILLS
   --------------------------------------------------------------------- */
.work-card__meta,
.article-card__meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.meta-pill-civic {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.meta-pill-legal {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.meta-pill-const {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* ---------------------------------------------------------------------
   10. FOOTER ELEVATION & GLOW
   --------------------------------------------------------------------- */
.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: radial-gradient(circle 800px at 50% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
              #050810 !important;
}

.footer-brand__seal {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(37, 99, 235, 0.2)) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3) !important;
}

.site-footer__links a {
  color: #94A3B8 !important;
  transition: all 0.2s ease !important;
}

.site-footer__links a:hover {
  color: #FBBF24 !important;
  transform: translateX(4px) !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

/* ---------------------------------------------------------------------
   11. FULL-WIDTH CINEMATIC HERO (EDGE-TO-EDGE BACKDROP + TEXT ON IT)
   --------------------------------------------------------------------- */
.hero--cinematic {
  position: relative !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  width: 100% !important;
  padding: calc(var(--header-height) + 10px) var(--container-pad) var(--space-3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  background-color: #060911 !important;
}

/* Full-bleed background layer */
.hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__backdrop-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 74% center !important;
  filter: brightness(1.0) contrast(1.05) saturate(1.05) !important;
  transform: scale(1.02);
  transition: transform 8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

body.is-loaded .hero__backdrop-img {
  transform: scale(1);
}

/* High-contrast directional scrim: crystal clear over portrait on right */
.hero__backdrop-scrim {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, 
      rgba(4, 7, 14, 0.96) 0%, 
      rgba(4, 7, 14, 0.92) 42%, 
      rgba(4, 7, 14, 0.65) 56%, 
      rgba(4, 7, 14, 0.12) 72%, 
      rgba(4, 7, 14, 0.20) 100%),
    linear-gradient(180deg, 
      rgba(4, 7, 14, 0.75) 0%, 
      transparent 18%, 
      transparent 76%, 
      rgba(4, 7, 14, 0.95) 100%) !important;
  opacity: 1 !important;
}

.hero__backdrop-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 700px at 18% 35%, rgba(37, 99, 235, 0.18), transparent 70%),
              radial-gradient(circle 500px at 80% 65%, rgba(245, 158, 11, 0.12), transparent 70%);
  mix-blend-mode: screen;
}

/* Ensure absolute immediate visibility & zero animation clipping across all hero text */
.hero--cinematic .hero__topline,
.hero--cinematic [data-hero-line],
.hero--cinematic .hero__line,
.hero--cinematic .hero__line > span,
.hero--cinematic .hero__tagline,
.hero--cinematic .hero-civic-beacon,
.hero--cinematic .hero__role-badges,
.hero--cinematic .hero__cta,
.hero--cinematic .hero-credentials-grid {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hero--cinematic .hero__line {
  overflow: visible !important;
}

/* Top bar — Frosted pill container with gradient border blending into background image */
.hero--cinematic .hero__topline {
  position: relative;
  z-index: 3;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: var(--space-4);
  padding: 10px 20px !important;
  background: 
    linear-gradient(90deg, rgba(6, 10, 18, 0.90) 0%, rgba(6, 10, 18, 0.80) 50%, rgba(6, 10, 18, 0.60) 100%) padding-box,
    linear-gradient(90deg, rgba(245, 158, 11, 0.70) 0%, rgba(59, 130, 246, 0.60) 40%, rgba(74, 222, 128, 0.45) 75%, transparent 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  margin-bottom: var(--space-3) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.1) !important;
}

.hero__topline-left,
.hero__topline-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hero-topline-accent {
  color: #FBBF24 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.hero-topline-blue {
  color: #93C5FD !important;
  font-weight: 700 !important;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.hero-topline-tag {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 700 !important;
}

.hero-topline-green {
  font-size: 0.75rem !important;
  color: #4ADE80 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

/* Main Hero Stage - Pinned strictly to left on desktop */
.hero--cinematic .hero__main {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 600px) 1fr !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: var(--space-8) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero Content Stage — Protected Glass Plinth with Seamless Gradient Border Blending into Image */
.hero--cinematic .hero__content {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 600px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: clamp(1.4rem, 2.2vw, 2.1rem) !important;
  background: 
    linear-gradient(135deg, rgba(6, 11, 22, 0.84) 0%, rgba(6, 11, 22, 0.70) 55%, rgba(6, 11, 22, 0.42) 100%) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, 0.75) 0%, rgba(59, 130, 246, 0.65) 35%, rgba(255, 255, 255, 0.15) 65%, transparent 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 24px !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  box-shadow: 
    0 24px 60px -8px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(59, 130, 246, 0.12) !important;
}

.hero-civic-beacon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  background: 
    linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.08) 100%) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, 0.75) 0%, rgba(251, 191, 36, 0.45) 50%, rgba(59, 130, 246, 0.30) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.22) !important;
  animation: beacon-glow 3s ease-in-out infinite alternate;
}

.hero-civic-beacon__bell {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  animation: bell-ring 4s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  transform-origin: top center;
}

.hero-civic-beacon__text {
  font-family: var(--font-mono) !important;
  font-size: 0.78125rem !important;
  font-weight: 700 !important;
  color: #FEF08A !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.hero__role-badges {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

.badge-role {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: 
    linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.10) 100%) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, 0.75) 0%, rgba(251, 191, 36, 0.35) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  color: #FDE68A !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2) !important;
}

.badge-ward {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: 
    linear-gradient(135deg, rgba(37, 99, 235, 0.26) 0%, rgba(37, 99, 235, 0.12) 100%) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(147, 197, 253, 0.35) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  color: #BAE6FD !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25) !important;
}

.hero--cinematic .hero__name {
  font-family: var(--font-display) !important;
  font-size: clamp(2.8rem, 6.2vw, 5.2rem) !important;
  line-height: 0.9 !important;
  color: #FFFFFF !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  margin-block: 4px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.hero--cinematic .hero__name span {
  color: #FFFFFF !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.hero__tagline {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem) !important;
  line-height: 1.55 !important;
  color: #F8FAFC !important;
  max-width: 54ch !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9) !important;
  margin-block: 2px !important;
  font-weight: 500 !important;
}

.hero--cinematic .hero__cta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-block: 4px !important;
}

.hero--cinematic .hero__cta .btn {
  padding: 10px 18px !important;
  font-size: 0.8125rem !important;
}

/* 4-Pillar Frosted Glass Credentials Grid */
.hero-credentials-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 540px !important;
  margin-top: 4px !important;
}

.hero-cred-card {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.80) 0%, rgba(11, 17, 32, 0.62) 100%) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(59, 130, 246, 0.35) 50%, rgba(255, 255, 255, 0.06) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.hero-cred-card:hover {
  background: 
    linear-gradient(135deg, rgba(20, 30, 55, 0.92) 0%, rgba(15, 23, 42, 0.82) 100%) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, 0.80) 0%, rgba(59, 130, 246, 0.70) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1px solid transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.2) !important;
}

.hero-cred-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
  padding: 5px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
}

.hero-cred-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

.hero-cred-title {
  font-family: var(--font-display) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  line-height: 1.2 !important;
}

.hero-cred-desc {
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  color: #94A3B8 !important;
  line-height: 1.25 !important;
}

/* Right Side Portrait Viewing Stage */
.hero__portrait-stage {
  grid-column: 2 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  pointer-events: none !important;
}

/* Floating Corner Verification Capsule — Soft Gradient Border Blending with Portrait */
.hero-corner-capsule {
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 12px 16px !important;
  background: 
    linear-gradient(135deg, rgba(11, 17, 32, 0.82) 0%, rgba(11, 17, 32, 0.58) 100%) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.65) 0%, rgba(245, 158, 11, 0.50) 45%, rgba(255, 255, 255, 0.10) 75%, transparent 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 14px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 
              0 0 24px rgba(37, 99, 235, 0.18) !important;
  max-width: 280px !important;
  margin-left: auto !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hero-corner-capsule:hover {
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 17, 32, 0.75) 100%) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, 0.80) 0%, rgba(59, 130, 246, 0.70) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.25) !important;
}

.hero-capsule-badge {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.6875rem !important;
  color: #4ADE80 !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
}

.hero-capsule-title {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

.hero-capsule-meta {
  font-size: 0.72rem !important;
  color: #94A3B8 !important;
  line-height: 1.35 !important;
}

.hero-capsule-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 0.72rem !important;
}

.hero-capsule-link {
  color: #FBBF24 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.hero-capsule-link:hover {
  color: #FFFFFF !important;
}

/* Bottom Key Metrics Strip with Gradient Divider Blending Across Image */
.hero__metrics-strip {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--space-4) !important;
  padding-top: var(--space-3) !important;
  border-top: 1.5px solid transparent !important;
  border-image: linear-gradient(90deg, 
    rgba(245, 158, 11, 0.60) 0%, 
    rgba(59, 130, 246, 0.50) 30%, 
    rgba(255, 255, 255, 0.15) 65%, 
    transparent 100%) 1 !important;
  margin-top: var(--space-2) !important;
  flex-wrap: wrap !important;
}

.hero-metric-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

.hero-metric-num {
  font-family: var(--font-display) !important;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem) !important;
  font-weight: 700 !important;
  color: #FBBF24 !important;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}

.hero-metric-label {
  font-family: var(--font-mono) !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #CBD5E1 !important;
}

.hero-metric-divider {
  width: 1px !important;
  height: 1.8rem !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Responsive Breakpoints for Tablet & Mobile */
@media (max-width: 1024px) {
  .hero__backdrop-img {
    object-position: center 25% !important;
  }

  .hero--cinematic .hero__main {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  .hero__portrait-stage {
    min-height: auto !important;
    justify-content: flex-start !important;
  }

  .hero-corner-capsule {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-metric-divider {
    display: none !important;
  }

  .hero__metrics-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }
}

@media (max-width: 768px) {
  .hero--cinematic {
    padding-inline: var(--space-4) !important;
    padding-top: calc(var(--header-height) + 6px) !important;
    min-height: 100svh !important;
    padding-bottom: var(--space-8) !important;
  }

  /* On phone, shift image up so his entire face sits cleanly above text */
  .hero__backdrop-img {
    object-position: center top !important;
    transform: translateY(-135px) scale(1.24) !important;
    filter: brightness(1.02) contrast(1.06) saturate(1.06) !important;
  }

  /* Mobile Scrim: crystal clear face window (10% to 42%), deep contrast over suit & chest (48% to 100%) */
  .hero__backdrop-scrim {
    background: 
      linear-gradient(180deg, 
        rgba(6, 9, 17, 0.70) 0%, 
        rgba(6, 9, 17, 0.08) 12%, 
        rgba(6, 9, 17, 0.02) 22%, 
        rgba(6, 9, 17, 0.04) 40%, 
        rgba(6, 9, 17, 0.90) 48%, 
        rgba(6, 9, 17, 0.98) 68%, 
        rgba(6, 9, 17, 1) 100%) !important;
  }

  .hero--cinematic .hero__topline {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    margin-bottom: 4px !important;
  }

  /* Text block starts cleanly below chin at 48svh */
  .hero--cinematic .hero__main {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 48svh !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .hero--cinematic .hero__content {
    max-width: 100% !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .hero-civic-beacon {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 5px 10px !important;
  }

  .hero__role-badges {
    width: 100% !important;
    gap: 6px !important;
  }

  .badge-role,
  .badge-ward {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
  }

  .hero--cinematic .hero__name {
    font-size: clamp(2.4rem, 12vw, 3.4rem) !important;
    line-height: 0.9 !important;
    margin-block: 2px !important;
  }

  .hero__tagline {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-block: 2px !important;
  }

  .hero--cinematic .hero__cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    margin-block: 4px !important;
  }

  .hero--cinematic .hero__cta .btn {
    width: 100% !important;
    justify-content: center !important;
    padding-block: 10px !important;
    font-size: 0.8125rem !important;
  }

  .hero-credentials-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    max-width: 100% !important;
    margin-top: 4px !important;
  }

  .hero__portrait-stage {
    display: none !important;
  }

  .hero__metrics-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: var(--space-3) !important;
    padding-top: var(--space-3) !important;
  }

  .hero-metric-item {
    background: rgba(255, 255, 255, 0.04) !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
}

/* =====================================================================
   PUBLIC WORK CARDS & BALANCED EDITORIAL GRID
   Fixes empty boxes, provides balanced 2-column layout on desktop,
   and fluid single-column layout on mobile.
   ===================================================================== */
[data-render="public-work"] .grid--editorial {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--space-8) !important;
  width: 100% !important;
}

[data-render="public-work"] .grid--editorial > * {
  grid-column: span 1 !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  [data-render="public-work"] .grid--editorial {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }
}

.work-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.work-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.25) !important;
}

.work-card__media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: #0B0F19 !important;
}

.work-card__media .image-reveal {
  width: 100% !important;
  height: 100% !important;
  clip-path: none !important;
  opacity: 1 !important;
}

.work-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.work-card:hover .work-card__media img {
  transform: scale(1.06) !important;
}

.work-card__badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: rgba(6, 9, 17, 0.85) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 999px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #FBBF24 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.work-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 1.5rem !important;
  gap: 0.875rem !important;
}

.work-card__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

.work-card__meta span {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.work-card__title {
  font-family: var(--font-display) !important;
  font-size: 1.35rem !important;
  line-height: 1.3 !important;
  color: #F8FAFC !important;
  margin: 0 !important;
}

.work-card .caption {
  font-size: 0.925rem !important;
  line-height: 1.6 !important;
  color: #CBD5E1 !important;
  margin: 0 !important;
  flex-grow: 1 !important;
}

.work-card__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  width: fit-content !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #F8FAFC !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: all 0.25s ease !important;
  margin-top: 0.5rem !important;
}

.work-card__link:hover {
  background: linear-gradient(135deg, #2563EB 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
}

/* =====================================================================
   PHOTOGRAPHY 04 FRAMES MULTI-COLUMN GRID (FIXES VERTICAL STACK ON DESKTOP)
   ===================================================================== */
[data-render="media-photos"] .grid,
.media-grid--photos,
.grid.grid--4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--space-6) !important;
  width: 100% !important;
  margin-top: var(--space-4) !important;
}

@media (max-width: 1100px) and (min-width: 641px) {
  [data-render="media-photos"] .grid,
  .grid.grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--space-5) !important;
  }
}

@media (max-width: 640px) {
  [data-render="media-photos"] .grid,
  .grid.grid--4 {
    grid-template-columns: 1fr !important;
    gap: var(--space-5) !important;
  }
}

.media-card--photo {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.media-card--photo:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.25) !important;
}

.media-card--photo .media-card__media {
  position: relative !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #0F172A !important;
}

.media-card--photo .media-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.5s ease !important;
}

.media-card--photo:hover .media-card__media img {
  transform: scale(1.08) !important;
}

.media-card--photo .media-card__body {
  padding: 1.15rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

.media-card--photo .media-card__title {
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  color: #F8FAFC !important;
  margin: 0 !important;
}

/* =====================================================================
   LIGHT MODE — HOPE, HAPPINESS, LUMINOSITY & GORGEOUS TEXT BOXES
   Representing the dawn of reform, RSP Bell Sky-Blue, Golden Himalayan
   Sun, Verdant Agricultural Valley, and pristine readable typography.
   ===================================================================== */
html[data-theme="light"] body {
  background-color: #F8FAFC !important;
  background-image:
    radial-gradient(circle 900px at 12% 8%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
    radial-gradient(circle 850px at 88% 18%, rgba(245, 158, 11, 0.09) 0%, transparent 55%),
    radial-gradient(circle 950px at 50% 55%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    radial-gradient(circle 800px at 82% 92%, rgba(59, 130, 246, 0.08) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
  color: #0F172A !important;
}

/* Light mode ambient 3D canvas */
html[data-theme="light"] .ambient-3d-bg {
  opacity: 0.35 !important;
  filter: contrast(1.2) brightness(0.9) !important;
}

/* Light mode header */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(2, 132, 199, 0.15) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .site-nav__link {
  color: #475569 !important;
}

html[data-theme="light"] .site-nav__link:hover {
  color: #0284C7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .site-nav__link.is-active {
  color: #B45309 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
}

/* Light mode headlines & vibrant gradient text */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .heading-xl,
html[data-theme="light"] .heading-lg,
html[data-theme="light"] .display-xl {
  color: #0F172A !important;
}

html[data-theme="light"] .hero__title em,
html[data-theme="light"] .page-intro__title em,
html[data-theme="light"] .section-head__title em,
html[data-theme="light"] .display-xl em,
html[data-theme="light"] .heading-xl em {
  background: linear-gradient(135deg, #1E3A8A 0%, #0284C7 45%, #D97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

/* Light mode body copy & text readability */
html[data-theme="light"] p,
html[data-theme="light"] .body,
html[data-theme="light"] .body-lg {
  color: #334155 !important;
}

html[data-theme="light"] .caption {
  color: #475569 !important;
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .label,
html[data-theme="light"] .mono {
  color: #0284C7 !important;
  font-weight: 600 !important;
}

/* Light mode cards & boxes: pure frosted white with colorful joyful borders */
html[data-theme="light"] .brief-card,
html[data-theme="light"] .work-card,
html[data-theme="light"] .media-card,
html[data-theme="light"] .article-card,
html[data-theme="light"] .practice-card,
html[data-theme="light"] .stat-block,
html[data-theme="light"] .identity-row,
html[data-theme="light"] .changunarayan-banner,
html[data-theme="light"] .judicial-3d-wrap,
html[data-theme="light"] .footer-nav-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
  box-shadow:
    0 4px 20px -2px rgba(15, 23, 42, 0.05),
    0 1px 3px 0 rgba(2, 132, 199, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

html[data-theme="light"] .brief-card:hover,
html[data-theme="light"] .work-card:hover,
html[data-theme="light"] .media-card:hover,
html[data-theme="light"] .article-card:hover,
html[data-theme="light"] .practice-card:hover,
html[data-theme="light"] .stat-block:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow:
    0 16px 36px -6px rgba(2, 132, 199, 0.12),
    0 0 20px rgba(245, 158, 11, 0.14) !important;
}

/* Light mode text inside cards */
html[data-theme="light"] .work-card__title,
html[data-theme="light"] .brief-card__title,
html[data-theme="light"] .article-card__title,
html[data-theme="light"] .media-card__title,
html[data-theme="light"] .practice-card__title {
  color: #0F172A !important;
}

html[data-theme="light"] .work-card .caption,
html[data-theme="light"] .brief-card__summary,
html[data-theme="light"] .article-card__excerpt {
  color: #334155 !important;
}

html[data-theme="light"] .media-card--photo .media-card__body {
  background: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .work-card__meta span,
html[data-theme="light"] .article-card__meta span,
html[data-theme="light"] .media-card__meta span {
  color: #0284C7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
}

/* Light mode category & civic badges */
html[data-theme="light"] .work-card__badge {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #B45309 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

html[data-theme="light"] .frame-tag {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.28) !important;
  color: #0284C7 !important;
}

html[data-theme="light"] .hero-civic-beacon {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(245, 158, 11, 0.14) 100%) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.14) !important;
}

html[data-theme="light"] .hero-civic-beacon__text {
  color: #0F172A !important;
}

html[data-theme="light"] .badge-role {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  color: #0369A1 !important;
}

html[data-theme="light"] .badge-ward {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #047857 !important;
}

html[data-theme="light"] .changunarayan-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(245, 158, 11, 0.1) 100%) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="light"] .changunarayan-banner__text {
  color: #0F172A !important;
}

/* Light mode primary button: azure-to-amber joyful gradient */
html[data-theme="light"] .btn--primary,
html[data-theme="light"] .hero__action-primary,
html[data-theme="light"] .work-card__link {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.28) !important;
}

html[data-theme="light"] .btn--secondary {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 2px solid #0284C7 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .btn--secondary:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284C7 !important;
  border-color: #D97706 !important;
}

html[data-theme="light"] .btn--ghost,
html[data-theme="light"] .hero__action-ghost {
  background: #FFFFFF !important;
  color: #0284C7 !important;
  border: 2px solid rgba(2, 132, 199, 0.4) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .btn--ghost:hover,
html[data-theme="light"] .hero__action-ghost:hover {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: #0284C7 !important;
  color: #0369A1 !important;
}

/* Light mode footer */
html[data-theme="light"] .site-footer {
  background: #F1F5F9 !important;
  border-top: 1px solid rgba(2, 132, 199, 0.16) !important;
}

html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer .caption {
  color: #475569 !important;
}

/* Light mode hero content plinth, typography, credentials & floating widgets */
html[data-theme="light"] .hero--cinematic {
  background-color: transparent !important;
}

html[data-theme="light"] .hero--cinematic .hero__topline {
  background: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.70) 100%) padding-box,
    linear-gradient(90deg, rgba(217, 119, 6, 0.65) 0%, rgba(2, 132, 199, 0.55) 40%, rgba(21, 128, 61, 0.45) 75%, transparent 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .hero-topline-accent {
  color: #92400E !important; /* Deep rich amber: > 7:1 contrast */
  font-weight: 800 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero-topline-blue {
  color: #0369A1 !important; /* Deep sky blue: > 7:1 contrast */
  font-weight: 800 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero-topline-tag {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1.5px solid #CBD5E1 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .hero-topline-green {
  color: #15803D !important; /* Deep emerald: > 7:1 contrast */
  font-weight: 800 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero--cinematic .hero__content {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.48) 100%) padding-box,
    linear-gradient(135deg, rgba(217, 119, 6, 0.70) 0%, rgba(2, 132, 199, 0.60) 35%, rgba(2, 132, 199, 0.18) 65%, transparent 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 24px !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  box-shadow: 
    0 24px 60px -8px rgba(15, 23, 42, 0.12),
    0 4px 20px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .hero-civic-beacon {
  background: 
    linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(254, 243, 199, 0.80) 100%) padding-box,
    linear-gradient(135deg, rgba(217, 119, 6, 0.80) 0%, rgba(245, 158, 11, 0.50) 50%, rgba(2, 132, 199, 0.30) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.2) !important;
}

html[data-theme="light"] .hero-civic-beacon__text {
  color: #78350F !important; /* Ultra-readable dark amber */
  font-weight: 800 !important;
}

html[data-theme="light"] .badge-role {
  background: 
    linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(254, 243, 199, 0.80) 100%) padding-box,
    linear-gradient(135deg, rgba(217, 119, 6, 0.85) 0%, rgba(245, 158, 11, 0.45) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  color: #78350F !important;
  border: 1.5px solid transparent !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .badge-ward {
  background: 
    linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(224, 242, 254, 0.80) 100%) padding-box,
    linear-gradient(135deg, rgba(2, 132, 199, 0.85) 0%, rgba(56, 189, 248, 0.45) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  color: #0369A1 !important;
  border: 1.5px solid transparent !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .hero--cinematic .hero__name,
html[data-theme="light"] .hero--cinematic .hero__name span {
  color: #0F172A !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero__tagline {
  color: #1E293B !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero-cred-card {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.78) 100%) padding-box,
    linear-gradient(135deg, rgba(217, 119, 6, 0.45) 0%, rgba(2, 132, 199, 0.35) 50%, rgba(2, 132, 199, 0.08) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1px solid transparent !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(2, 132, 199, 0.06) !important;
}

html[data-theme="light"] .hero-cred-card:hover {
  background: 
    linear-gradient(135deg, #FFFFFF 0%, rgba(241, 245, 249, 0.94) 100%) padding-box,
    linear-gradient(135deg, rgba(217, 119, 6, 0.80) 0%, rgba(2, 132, 199, 0.70) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1px solid transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.14), 0 0 15px rgba(245, 158, 11, 0.15) !important;
}

html[data-theme="light"] .hero-corner-capsule {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.70) 100%) padding-box,
    linear-gradient(135deg, rgba(2, 132, 199, 0.60) 0%, rgba(217, 119, 6, 0.45) 45%, rgba(2, 132, 199, 0.12) 75%, transparent 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 14px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 0 20px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .hero-corner-capsule:hover {
  background: 
    linear-gradient(135deg, #FFFFFF 0%, rgba(248, 250, 252, 0.90) 100%) padding-box,
    linear-gradient(135deg, rgba(217, 119, 6, 0.80) 0%, rgba(2, 132, 199, 0.70) 100%) border-box !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  border: 1.5px solid transparent !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16), 0 0 25px rgba(217, 119, 6, 0.18) !important;
}

html[data-theme="light"] .hero-metric-item,
html[data-theme="light"] .pillar-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .hero-metric-item:hover,
html[data-theme="light"] .pillar-card:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12), 0 0 15px rgba(245, 158, 11, 0.15) !important;
}

html[data-theme="light"] .hero__metrics-strip {
  border-top: 1.5px solid transparent !important;
  border-image: linear-gradient(90deg, 
    rgba(217, 119, 6, 0.60) 0%, 
    rgba(2, 132, 199, 0.50) 30%, 
    rgba(2, 132, 199, 0.15) 65%, 
    transparent 100%) 1 !important;
}

html[data-theme="light"] .hero-cred-title,
html[data-theme="light"] .hero-capsule-title,
html[data-theme="light"] .pillar-card__title {
  color: #0F172A !important;
}

html[data-theme="light"] .hero-cred-desc,
html[data-theme="light"] .hero-capsule-meta,
html[data-theme="light"] .pillar-card__desc {
  color: #475569 !important;
}

html[data-theme="light"] .hero-cred-icon {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284C7 !important;
}

html[data-theme="light"] .hero-metric-num {
  color: #D97706 !important;
}

html[data-theme="light"] .hero-metric-label {
  color: #334155 !important;
}

html[data-theme="light"] .hero-metric-divider {
  background: rgba(2, 132, 199, 0.18) !important;
}

html[data-theme="light"] .work-card__media {
  background: #F1F5F9 !important;
}

/* Header Action Utilities: Prominent Theme Toggle Button */
.site-header__util--theme {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 2.375rem !important;
  padding: 0 12px !important;
  min-width: fit-content !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  color: #FEF08A !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 16px rgba(245, 158, 11, 0.22) !important;
}

.site-header__util-label {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

@media (max-width: 580px) {
  .site-header__util-label {
    display: none !important;
  }
  .site-header__util--theme {
    width: 2.375rem !important;
    padding: 0 !important;
  }
}

.site-header__util--theme:hover {
  transform: translateY(-1px) scale(1.04) !important;
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #F59E0B !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
}

html[data-theme="light"] .site-header__util--theme {
  background: #FFFFFF !important;
  color: #0369A1 !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.2), 0 0 14px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .site-header__util--theme:hover {
  background: #F0F9FF !important;
  border-color: #0369A1 !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35) !important;
  transform: translateY(-1px) scale(1.04) !important;
}

html[data-theme="light"] .site-header__util {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284C7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .site-header__util:hover {
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: #0284C7 !important;
}

/* Light mode backdrop scrim for hero — directional left contrast, crystal-clear portrait on right */
html[data-theme="light"] .hero__backdrop-scrim {
  background: 
    linear-gradient(90deg, 
      rgba(248, 250, 252, 0.88) 0%, 
      rgba(248, 250, 252, 0.75) 42%, 
      rgba(248, 250, 252, 0.35) 58%, 
      rgba(248, 250, 252, 0.04) 74%, 
      rgba(248, 250, 252, 0.08) 100%),
    linear-gradient(180deg, 
      rgba(248, 250, 252, 0.50) 0%, 
      transparent 22%, 
      transparent 75%, 
      rgba(248, 250, 252, 0.65) 100%) !important;
  opacity: 1 !important;
}

/* ---------------------------------------------------------------------
   CONTACT CARDS (DARK & LIGHT MODE) — CRISP, LUMINOUS & HIGH-CONTRAST
   --------------------------------------------------------------------- */
.contact-block {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-2) !important;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(9, 14, 26, 0.92) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.25rem !important;
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.contact-block:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.35), 0 0 20px rgba(245, 158, 11, 0.2) !important;
}

.contact-block__label .label {
  color: #F59E0B !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.contact-block__value {
  color: #F8FAFC !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem) !important;
  font-weight: 700 !important;
  line-height: var(--leading-snug) !important;
  margin-top: 0.25rem !important;
}

.contact-block__value a {
  color: #38BDF8 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(56, 189, 248, 0.4) !important;
  text-underline-offset: 4px !important;
  transition: color 0.2s ease !important;
}

.contact-block__value a:hover {
  color: #FBBF24 !important;
  text-decoration-color: #FBBF24 !important;
}

.contact-block .caption {
  color: #94A3B8 !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  margin-top: 0.35rem !important;
}

/* LIGHT MODE: Crisp, radiant white card surface with high-contrast text */
html[data-theme="light"] .contact-block {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(2, 132, 199, 0.24) !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.25rem !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(2, 132, 199, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

html[data-theme="light"] .contact-block:hover {
  border-color: rgba(217, 119, 6, 0.5) !important;
  box-shadow: 0 16px 36px -6px rgba(2, 132, 199, 0.15), 0 0 20px rgba(245, 158, 11, 0.15) !important;
}

html[data-theme="light"] .contact-block__label .label {
  color: #0284C7 !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
}

html[data-theme="light"] .contact-block__value {
  color: #0F172A !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .contact-block__value a {
  color: #0284C7 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(2, 132, 199, 0.35) !important;
}

html[data-theme="light"] .contact-block__value a:hover {
  color: #D97706 !important;
  text-decoration-color: #D97706 !important;
}

html[data-theme="light"] .contact-block .caption {
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}

/* ---------------------------------------------------------------------
   SMART, PROFESSIONAL APPOINTMENT BOOKING MODAL
   --------------------------------------------------------------------- */
.book-panel {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.book-panel[hidden] {
  display: none !important;
}

.book-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease;
}

.book-panel__dialog {
  position: relative;
  width: min(40rem, 100%);
  max-height: min(92vh, 48rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.75rem;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.75), 0 0 32px rgba(2, 132, 199, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: bookModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  color: var(--color-text);
}

@keyframes bookModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.book-panel__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.book-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.book-panel__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284C7 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.book-panel__brand-info {
  display: flex;
  flex-direction: column;
}

.book-panel__chambers {
  font-size: 0.6875rem;
  color: #38BDF8;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.book-panel__active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 500;
}

.book-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-panel__close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #EF4444;
  transform: rotate(90deg);
}

.book-panel__header {
  margin-bottom: 1.5rem;
}

.book-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.book-panel__title em {
  font-style: italic;
  color: #38BDF8;
}

.book-panel__subtitle {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.book-section {
  margin-bottom: 1.35rem;
}

.book-section__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F59E0B;
  margin-bottom: 0.75rem;
}

.book-section__label .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  font-size: 0.625rem;
}

/* Step 1: Matter Chips */
.book-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.book-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-chip:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
}

.book-chip.is-active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(217, 119, 6, 0.14) 100%);
  border-color: #38BDF8;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25), inset 0 0 0 1px #38BDF8;
}

.book-chip .chip-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.book-chip .chip-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.book-chip .chip-text small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Step 2: Mode Toggle */
.book-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.book-mode {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.book-mode:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.4);
}

.book-mode.is-active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
  border-color: #38BDF8;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25), inset 0 0 0 1px #38BDF8;
}

.book-mode .mode-icon {
  font-size: 1.25rem;
}

.book-mode .mode-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.book-mode .mode-details strong {
  font-size: 0.8125rem;
  font-weight: 600;
}

.book-mode .mode-details span {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

/* Step 3: Schedule */
.book-schedule-row {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.book-field--date input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.book-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.book-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-slot:hover {
  border-color: rgba(2, 132, 199, 0.4);
}

.book-slot.is-active {
  background: rgba(2, 132, 199, 0.18);
  border-color: #38BDF8;
  box-shadow: inset 0 0 0 1px #38BDF8;
}

.book-slot span {
  font-size: 0.75rem;
  font-weight: 600;
}

.book-slot small {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

/* Step 4: Fields Grid */
.book-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.book-field__sublabel {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  display: block;
}

.book-field input,
.book-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-field input:focus,
.book-field textarea:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.book-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #D97706 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding-block: 0.95rem !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.35) !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.book-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(2, 132, 199, 0.45) !important;
}

.book-footer-note {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--color-text-faint);
  font-size: 0.75rem;
}

.book-form__error {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.book-form__success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.3s ease;
}

/* LIGHT MODE MODAL ADAPTATION */
html[data-theme="light"] .book-panel__dialog {
  background: #FFFFFF !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 32px 80px -16px rgba(15, 23, 42, 0.25), 0 0 24px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .book-panel__topbar {
  border-bottom-color: rgba(2, 132, 199, 0.14) !important;
}

html[data-theme="light"] .book-panel__title {
  color: #0F172A !important;
}

html[data-theme="light"] .book-panel__title em {
  color: #0284C7 !important;
}

html[data-theme="light"] .book-panel__subtitle {
  color: #475569 !important;
}

html[data-theme="light"] .book-section__label {
  color: #D97706 !important;
}

html[data-theme="light"] .book-chip {
  background: #F8FAFC !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .book-chip:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: #0284C7 !important;
}

html[data-theme="light"] .book-chip.is-active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%) !important;
  border-color: #0284C7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15), inset 0 0 0 1px #0284C7 !important;
}

html[data-theme="light"] .book-chip .chip-text small {
  color: #475569 !important;
}

html[data-theme="light"] .book-mode {
  background: #F8FAFC !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .book-mode.is-active {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: #0284C7 !important;
  box-shadow: inset 0 0 0 1px #0284C7 !important;
}

html[data-theme="light"] .book-slot {
  background: #F8FAFC !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .book-slot.is-active {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: #0284C7 !important;
  box-shadow: inset 0 0 0 1px #0284C7 !important;
}

html[data-theme="light"] .book-field input,
html[data-theme="light"] .book-field textarea,
html[data-theme="light"] .book-field--date input {
  background: #F8FAFC !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .book-field input:focus,
html[data-theme="light"] .book-field textarea:focus {
  background: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

@media (max-width: 580px) {
  .book-chips {
    grid-template-columns: 1fr !important;
  }
  .book-modes {
    grid-template-columns: 1fr !important;
  }
  .book-fields-grid {
    grid-template-columns: 1fr !important;
  }
  .book-slots {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================================
   COMPACT PHONE SCREEN FLEXIBILITY (< 480px)
   ===================================================================== */
@media (max-width: 480px) {
  :root {
    --container-pad: 1rem !important;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .container {
    padding-inline: var(--container-pad) !important;
  }

  .work-card__body,
  .brief-card,
  .article-card,
  .practice-card {
    padding: 1.15rem !important;
  }

  .work-card__title {
    font-size: 1.15rem !important;
  }

  .hero--cinematic .hero__name {
    font-size: clamp(2.1rem, 10.5vw, 2.75rem) !important;
  }

  .hero__credentials-grid {
    grid-template-columns: 1fr !important;
  }

  .hero__cta {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero__cta .btn {
    width: 100% !important;
  }

  .section-head__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
  }

  .display-xl {
    font-size: clamp(2rem, 9vw, 2.6rem) !important;
  }

  .page-intro {
    padding-top: calc(var(--header-height) + 1rem) !important;
    padding-bottom: 2rem !important;
  }
}

/* =====================================================================
   INTERACTIVE UPGRADES: SEARCH TRIGGER, ARCHIVE FILTERS, LIGHTBOX NAV
   ===================================================================== */
.site-header__util--search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  min-height: 2.35rem;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.site-header__util--search:hover,
.site-header__util--search:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.site-header__util-kbd {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.5rem;
  }
  .site-header__brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.5rem;
  }
  .brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.1em;
  }
  .brand-text__role {
    display: none;
  }
  .site-header__actions {
    gap: 0.375rem;
  }
  .site-header__actions > a.btn {
    display: none;
  }
  .site-header__util--search {
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    justify-content: center;
  }
  .site-header__util-kbd {
    display: none;
  }
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.archive-toolbar .practice-filter {
  margin-bottom: 0;
}

.archive-search {
  flex: 1 1 240px;
  max-width: 340px;
}

.archive-search__input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.archive-search__input::placeholder {
  color: var(--color-text-faint);
}

.archive-search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.archive-empty {
  padding: var(--space-8) 0;
  color: var(--color-text-muted);
  text-align: center;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 11, 16, 0.72);
  color: #F7F5EE;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  border-color: var(--color-accent);
  background: rgba(9, 11, 16, 0.92);
}

.lightbox__nav--prev { left: var(--space-5); }
.lightbox__nav--next { right: var(--space-5); }

@media (max-width: 640px) {
  .lightbox__nav {
    top: auto;
    bottom: var(--space-4);
    transform: none;
  }
}

.video-panel__actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Footer accent link (adapts cleanly to dark & light modes) */
.footer-link-accent {
  color: #63B3ED !important;
}

html[data-theme="light"] .footer-link-accent {
  color: #0369A1 !important;
}

/* Light theme polish for image captions & practice court banner */
html[data-theme="light"] .changunarayan-photo-card__caption {
  color: #F7F5EE;
}

html[data-theme="light"] .changunarayan-banner__text {
  color: #0369A1;
}

html[data-theme="light"] .page-intro--court .page-intro__backdrop {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.86) 0%, rgba(248, 250, 252, 0.97) 100%), url('../assets/images/real/court-01.jpg') !important;
}

html[data-theme="light"] .hero--cinematic .hero__backdrop-scrim {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.78) 54%, rgba(248, 250, 252, 0.42) 100%) !important;
}

html[data-theme="light"] .hero--cinematic .hero__name,
html[data-theme="light"] .hero--cinematic .hero__tagline {
  color: var(--color-text);
  text-shadow: none;
}
