/* PROFESSIONAL CONSULTING FIRM CSS - New Matrix Capital */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* PREMIUM BANK-GRADE COLOR SYSTEM */
  --bg0: #f6f7fb;
  --bg1: #ffffff;
  --ink: #0b1220;
  --ink2: rgba(11,18,32,.72);
  --line: rgba(11,18,32,.10);
  
  /* PAGE & SURFACE LAYERS - PREMIUM DEPTH */
  --bg-page: #f6f7fb;
  --bg-section: #f1f4f8;
  --bg-card: #FFFFFF;
  --bg-muted: #F8FAFC;
  
  /* LEGACY COMPATIBILITY */
  --bg: var(--bg-page);
  --bg-dark: var(--bg-section);
  --card-bg: var(--bg-card);
  --card-bg-hover: var(--bg-muted);
  
  /* TEXT & TYPOGRAPHY */
  --text-heading: #0b1220;
  --text-body: rgba(11,18,32,.72);
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  /* LEGACY COMPATIBILITY */
  --text: var(--text-heading);
  --muted: var(--text-muted);
  --muted-light: #94A3B8;
  
  /* SEMANTIC RED - New Matrix Capital (ACTION/ADVOCACY) */
  --red-main: #d9101a;
  --red-soft: rgba(217, 16, 26, 0.06);
  
  /* LEGACY COMPATIBILITY */
  --red: var(--red-main);
  --red-bright: #DC2626;
  --red-dark: #b90e17;
  --red-hover: #b90e17;
  --red-light: var(--red-soft);
  
  /* SEMANTIC BLUE - Traditional Brokers (INFORMATION/WARNING) */
  --blue-main: #0f5ac8;
  --blue-soft: rgba(15, 90, 200, 0.06);
  
  /* LEGACY COMPATIBILITY */
  --blue: var(--blue-main);
  --blue-bright: #2563EB;
  --blue-dark: #0d4ca8;
  --blue-hover: #0d4ca8;
  --blue-light: var(--blue-soft);
  
  /* PREMIUM GOLD MICRO-ACCENT (ULTRA-RARE USE - MAX 6 TIMES PER PAGE) */
  --gold: #c8a24a;
  --gold-accent: rgba(200, 162, 74, 0.3);
  
  /* INSTITUTIONAL BORDERS */
  --border: rgba(11,18,32,.10);
  --border-light: rgba(11,18,32,.06);
  
  /* PREMIUM MATERIAL DEPTH SHADOWS (MULTI-LAYERED, BANK-GRADE) */
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04),
            0 4px 8px rgba(11, 18, 32, 0.06),
            0 18px 60px rgba(11, 18, 32, 0.12);
  --shadow2: 0 2px 4px rgba(11, 18, 32, 0.05),
             0 10px 28px rgba(11, 18, 32, 0.14);
  --shadow-hover: 0 4px 8px rgba(11, 18, 32, 0.06),
                  0 12px 24px rgba(11, 18, 32, 0.10),
                  0 24px 60px rgba(11, 18, 32, 0.18);
  --shadow-glow-red: 0 4px 8px rgba(11, 18, 32, 0.06),
                     0 12px 24px rgba(11, 18, 32, 0.10),
                     0 24px 60px rgba(11, 18, 32, 0.18),
                     0 0 0 1px rgba(217, 16, 26, 0.15),
                     0 0 40px rgba(217, 16, 26, 0.08);
  --shadow-glow-blue: 0 4px 8px rgba(11, 18, 32, 0.06),
                      0 12px 24px rgba(11, 18, 32, 0.10),
                      0 24px 60px rgba(11, 18, 32, 0.18),
                      0 0 0 1px rgba(15, 90, 200, 0.15),
                      0 0 40px rgba(15, 90, 200, 0.08);
  
  --container-max: 1240px;
  --containerMax: 1240px;
  --containerPad: clamp(16px, 3vw, 40px);
  --navH: 72px;
  --radius: 20px;
  
  /* Fibonacci spacing scale */
  --fib-1: 1px;
  --fib-2: 2px;
  --fib-3: 3px;
  --fib-5: 5px;
  --fib-8: 8px;
  --fib-13: 13px;
  --fib-21: 21px;
  --fib-34: 34px;
  --fib-55: 55px;
  --fib-89: 89px;
  
  /* Standardized spacing tokens */
  --s1: 8px;
  --s2: 13px;
  --s3: 21px;
  --s4: 34px;
  --s5: 55px;
  --s6: 89px;
  
  /* Typography scale */
  --body: clamp(16px, 1.05vw, 18px);
  --small: clamp(13px, 0.95vw, 14px);
  --h1: clamp(34px, 3.0vw, 54px);
  --h2: clamp(24px, 2.0vw, 34px);
  --h3: clamp(18px, 1.4vw, 22px);
}

* {
  box-sizing: border-box;
}

html {
  background: 
    /* Premium top glow */
    radial-gradient(ellipse 150% 80% at 50% 0%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 70%),
    /* Subtle vignette sides */
    radial-gradient(ellipse 40% 100% at 0% 50%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 40% 100% at 100% 50%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
    /* Bottom subtle depth */
    radial-gradient(ellipse 120% 50% at 50% 100%, rgba(15, 23, 42, 0.03) 0%, transparent 60%),
    /* Base */
    #F5F7FA;
}

body {
  background: var(--bg0);
  background-image: 
    /* Premium depth - subtle vignette */
    radial-gradient(ellipse 150% 100% at 50% 50%, transparent 40%, rgba(15, 23, 42, 0.03) 100%),
    /* Top ambient glow */
    radial-gradient(ellipse 180% 60% at 50% -10%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 40%, transparent 70%),
    /* Left side depth */
    radial-gradient(ellipse 40% 100% at 0% 50%, rgba(15, 23, 42, 0.04) 0%, transparent 60%),
    /* Right side depth */
    radial-gradient(ellipse 40% 100% at 100% 50%, rgba(15, 23, 42, 0.04) 0%, transparent 60%),
    /* Bottom subtle shadow */
    radial-gradient(ellipse 120% 40% at 50% 100%, rgba(15, 23, 42, 0.05) 0%, transparent 60%);
  color: var(--text-body);
  font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* PREMIUM GLARE ANIMATION KEYFRAMES */
@keyframes glareBottomToTop {
  0% { 
    bottom: -100%; 
    opacity: 0; 
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    bottom: 100%; 
    opacity: 0; 
  }
}

@keyframes shine {
  0% { left: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* PREMIUM CARD TOP ACCENT LINE (::before) */
.service-card::before,
.pill-card::before,
.insight-item::before,
.case-item::before,
.contact-card::before,
.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-main), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 24px 24px 0 0;
}

.service-card:hover::before,
.pill-card:hover::before,
.insight-item:hover::before,
.case-item:hover::before,
.contact-card:hover::before,
.education-card:hover::before {
  opacity: 1;
}

/* Blue-themed cards accent line */
.pill-card.blue-pill::before,
.insight-item::before,
.case-item::before,
.education-card::before {
  background: linear-gradient(90deg, transparent, var(--blue-main), transparent);
}

/* PREMIUM PILL CARD GLARE - BOTTOM TO TOP (matches gradient) */
.pill-card::after {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  width: 100%;
  height: 60%;
  border-radius: 24px;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.15) 80%,
    transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: skewY(-2deg);
}

.pill-card.red-pill:hover::after {
  animation: glareBottomToTop 2s cubic-bezier(.19, .63, .37, 1);
  opacity: 1;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(217,16,26,0.15) 5%,
    rgba(217,16,26,0.2) 15%,
    rgba(255,255,255,0.6) 40%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0.6) 60%,
    rgba(217,16,26,0.2) 85%,
    rgba(217,16,26,0.15) 95%,
    transparent 100%);
}

.pill-card.blue-pill:hover::after {
  animation: glareBottomToTop 2s cubic-bezier(.19, .63, .37, 1);
  opacity: 1;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(15,90,200,0.15) 5%,
    rgba(15,90,200,0.2) 15%,
    rgba(255,255,255,0.6) 40%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0.6) 60%,
    rgba(15,90,200,0.2) 85%,
    rgba(15,90,200,0.15) 95%,
    transparent 100%);
}

/* SERVICE/OTHER CARDS SHINE SWEEP (horizontal) */
/* Red-themed card shine (services, contact) */
.service-card::after,
.contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(217,16,26,0.08) 20%,
    rgba(255,255,255,0.5) 40%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.5) 60%,
    rgba(217,16,26,0.08) 80%,
    transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

/* Blue-themed card shine (insights, education, cases) */
.insight-item::after,
.case-item::after,
.education-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(15,90,200,0.08) 20%,
    rgba(255,255,255,0.5) 40%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.5) 60%,
    rgba(15,90,200,0.08) 80%,
    transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

.service-card:hover::after,
.contact-card:hover::after,
.insight-item:hover::after,
.case-item:hover::after,
.education-card:hover::after {
  animation: shine 1.2s cubic-bezier(.19, .63, .37, 1);
  opacity: 1;
}

p {
  max-width: 65ch;
  margin-bottom: var(--s2);
  margin-top: 0;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

p + p {
  margin-top: var(--fib-8);
}

p:last-child {
  margin-bottom: 0;
}

body, p, span, div, a, li, label {
  color: var(--text-body);
}

p {
  max-width: 65ch;
}

/* Exceptions for elements with their own styling */
.cta-btn, button, input, textarea, select {
  text-shadow: none;
}

.cta-btn {
  text-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 1px rgba(255,255,255,0.2);
  color: #ffffff !important;
}

p {
  margin-bottom: 1.618em;
  font-weight: 400;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2 {
  color: #0B1220;
  letter-spacing: -0.015em;
}

h3, h4, h5, h6 {
  color: var(--text-heading);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

strong, b {
  font-weight: 600;
  color: var(--text-heading);
}

em {
  font-style: italic;
  color: var(--text-body);
}

/* GRADIENT BACKGROUNDS */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    /* Subtle light rays for premium feel */
    radial-gradient(ellipse 200% 150% at 50% 0%, 
      rgba(255,255,255,0.03) 0%,
      transparent 50%),
    /* Corner highlights */
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.02) 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.02) 0%, transparent 40%);
  opacity: 0.6;
}

/* Main Page - Blue from right, Red from left with premium financial firm styling */
body.page-home::before {
  background: 
    /* Blue side - premium glow with depth */
    radial-gradient(ellipse 120% 100% at 100% 50%, 
      rgba(26, 120, 255, 0.35) 0%,
      rgba(15, 90, 200, 0.28) 15%,
      rgba(15, 90, 200, 0.18) 30%,
      rgba(15, 90, 200, 0.10) 50%,
      transparent 75%),
    /* Blue highlight/shine */
    radial-gradient(ellipse 80% 60% at 95% 45%, 
      rgba(100, 160, 255, 0.25) 0%,
      rgba(50, 130, 240, 0.15) 30%,
      transparent 60%),
    /* Red side - premium glow with depth */
    radial-gradient(ellipse 120% 100% at 0% 50%, 
      rgba(255, 40, 50, 0.35) 0%,
      rgba(217, 16, 26, 0.28) 15%,
      rgba(217, 16, 26, 0.18) 30%,
      rgba(217, 16, 26, 0.10) 50%,
      transparent 75%),
    /* Red highlight/shine */
    radial-gradient(ellipse 80% 60% at 5% 45%, 
      rgba(255, 100, 110, 0.25) 0%,
      rgba(240, 50, 60, 0.15) 30%,
      transparent 60%),
    /* Depth shadow overlay */
    linear-gradient(180deg, 
      rgba(0,0,0,0) 0%, 
      rgba(0,0,0,0.08) 50%,
      rgba(0,0,0,0.15) 100%),
    /* Subtle vignette */
    radial-gradient(ellipse 150% 120% at 50% 50%, 
      transparent 40%,
      rgba(0,0,0,0.12) 100%);
  background-size: 75% 100%, 50% 80%, 75% 100%, 50% 80%, 100% 100%, 100% 100%;
  background-position: right center, 92% 42%, left center, 8% 42%, center, center;
  background-repeat: no-repeat;
  filter: blur(0.5px);
}

/* Apply, Services, Contact - Red gradient from top with premium financial firm styling */
body.page-apply::before,
body.page-services::before,
body.page-contact::before {
  background: 
    /* Main red glow with depth */
    radial-gradient(ellipse 180% 120% at 50% 0%, 
      rgba(255, 40, 50, 0.42) 0%,
      rgba(217, 16, 26, 0.32) 12%,
      rgba(217, 16, 26, 0.22) 25%,
      rgba(217, 16, 26, 0.14) 40%,
      rgba(217, 16, 26, 0.08) 55%,
      transparent 75%),
    /* Premium highlight/shine at top */
    radial-gradient(ellipse 120% 80% at 50% -5%, 
      rgba(255, 120, 130, 0.28) 0%,
      rgba(240, 60, 70, 0.18) 25%,
      rgba(217, 16, 26, 0.10) 45%,
      transparent 65%),
    /* Depth shadow gradient */
    linear-gradient(180deg, 
      rgba(0,0,0,0) 0%, 
      rgba(0,0,0,0.06) 40%,
      rgba(0,0,0,0.12) 70%,
      rgba(0,0,0,0.18) 100%),
    /* Subtle side vignette for depth */
    radial-gradient(ellipse 140% 100% at 50% 50%, 
      transparent 30%,
      rgba(0,0,0,0.10) 100%);
  background-size: 100% 95%, 80% 60%, 100% 100%, 100% 100%;
  background-position: top center, 50% -3%, center, center;
  background-repeat: no-repeat;
  filter: blur(0.5px);
}

/* Legal, Cases, Insights - Blue gradient from top middle with premium financial firm styling */
body.page-legal::before,
body.page-cases::before,
body.page-insights::before,
body.page-education::before {
  background: 
    /* Main blue glow with depth */
    radial-gradient(ellipse 180% 120% at 50% 0%, 
      rgba(26, 120, 255, 0.42) 0%,
      rgba(15, 90, 200, 0.32) 12%,
      rgba(15, 90, 200, 0.22) 25%,
      rgba(15, 90, 200, 0.14) 40%,
      rgba(15, 90, 200, 0.08) 55%,
      transparent 75%),
    /* Premium highlight/shine at top */
    radial-gradient(ellipse 120% 80% at 50% -5%, 
      rgba(100, 160, 255, 0.28) 0%,
      rgba(50, 130, 240, 0.18) 25%,
      rgba(15, 90, 200, 0.10) 45%,
      transparent 65%),
    /* Depth shadow gradient */
    linear-gradient(180deg, 
      rgba(0,0,0,0) 0%, 
      rgba(0,0,0,0.06) 40%,
      rgba(0,0,0,0.12) 70%,
      rgba(0,0,0,0.18) 100%),
    /* Subtle side vignette for depth */
    radial-gradient(ellipse 140% 100% at 50% 50%, 
      transparent 30%,
      rgba(0,0,0,0.10) 100%);
  background-size: 100% 95%, 80% 60%, 100% 100%, 100% 100%;
  background-position: top center, 50% -3%, center, center;
  background-repeat: no-repeat;
  filter: blur(0.5px);
}

/* GLOBAL SHELL SYSTEM */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  width: 100%;
}

.container {
  width: min(var(--containerMax), 92vw);
  max-width: var(--containerMax);
  margin: 0 auto;
  padding: 0 var(--containerPad);
  position: relative;
  z-index: 1;
}

/* NAVBAR - IDENTICAL ON ALL PAGES */
nav.navbar {
  width: 100%;
  height: var(--navH);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid #E5E7EB;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

nav.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--containerMax);
  margin: 0 auto;
  padding: 0 var(--containerPad);
}

/* Remove ALL link underlines globally */
a, a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--fib-13);
  height: 64px;
}

.logo-pills-wrapper {
  position: relative;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.logo-pills {
  height: 50px;
  width: 50px;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: brightness(1.1) contrast(1.16) saturate(1.18);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--fib-5);
  line-height: 1;
  min-width: 0;
  flex: 1;
}

.logo-main-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.2s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  display: block;
}

.logo-slogan {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
  white-space: nowrap;
  text-transform: none;
  font-style: normal;
  display: block;
  margin: 0;
  padding: 0;
}

.slogan-black {
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s ease;
}

.slogan-red {
  color: var(--red);
  font-weight: 700;
  transition: color 0.2s ease;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-logo:hover .logo-pills-wrapper {
  transform: scale(1.03);
}

.navbar-logo:hover .logo-pills {
  filter: brightness(1.12) contrast(1.25) saturate(1.3);
}

.navbar-logo:hover .logo-main-text {
  color: var(--text);
}

.navbar-logo:hover .slogan-red {
  color: var(--red-hover);
}

ul.navbar-nav {
  display: flex;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--body);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-link:hover {
  color: var(--blue);
  text-decoration: none;
}

.navbar-link:active {
  color: var(--blue-hover);
}

.navbar-link:visited {
  color: var(--text);
  text-decoration: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: var(--h1);
  letter-spacing: -0.015em;
  margin-bottom: var(--s2);
  margin-top: 0;
  text-transform: none;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.2;
}

h1 + p,
h1 + .hero-subhead {
  margin-top: 0;
}

h2 {
  font-size: var(--h2);
  letter-spacing: -0.015em;
  margin-bottom: var(--s2);
  margin-top: 0;
  text-transform: none;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.2;
}

h2 + p {
  margin-top: 0;
}

h3 {
  font-size: var(--h3);
  letter-spacing: -0.01em;
  margin-bottom: var(--s1);
  margin-top: 0;
  text-transform: none;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

h3 + p {
  margin-top: 0;
}

/* GLOBAL SECTION PADDING */
/* SECTION SYSTEM - Consolidated */
.section {
  padding-block: clamp(var(--s5), 6vw, var(--s6));
  width: 100%;
  position: relative;
  text-align: center;
  background: 
    /* Subtle gold from both sides */
    linear-gradient(90deg, 
      rgba(201, 162, 77, 0.06) 0%,
      rgba(201, 162, 77, 0.03) 10%,
      transparent 25%,
      transparent 75%,
      rgba(201, 162, 77, 0.03) 90%,
      rgba(201, 162, 77, 0.06) 100%);
}

/* Education Section - Blue Gradients from Both Sides */
.education-section {
  position: relative;
  overflow: hidden;
  background: #FFFFFF !important;
}

.education-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 35% !important;
  height: 100% !important;
  background: linear-gradient(90deg, 
    rgba(15, 90, 200, 0.22) 0%,
    rgba(15, 90, 200, 0.16) 25%,
    rgba(15, 90, 200, 0.10) 50%,
    rgba(15, 90, 200, 0.04) 75%,
    transparent 100%) !important;
  pointer-events: none;
  z-index: 1;
  opacity: 1 !important;
}

.education-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(270deg, 
    rgba(15, 90, 200, 0.22) 0%,
    rgba(15, 90, 200, 0.16) 25%,
    rgba(15, 90, 200, 0.10) 50%,
    rgba(15, 90, 200, 0.04) 75%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.education-section .container {
  position: relative;
  z-index: 2;
}

/* HERO SECTION */
.hero-section {
  padding-block: clamp(55px, 5vw, 75px);
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Premium ambient glow behind hero */
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, 
    rgba(217, 16, 26, 0.08) 0%,
    rgba(217, 16, 26, 0.05) 30%,
    rgba(217, 16, 26, 0.02) 50%,
    transparent 70%);
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite;
  filter: blur(60px);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, 
    rgba(15, 90, 200, 0.06) 0%,
    rgba(15, 90, 200, 0.04) 30%,
    rgba(15, 90, 200, 0.02) 50%,
    transparent 70%);
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite 4s;
  filter: blur(60px);
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(34px, 4vw, 55px);
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--fib-13);
  max-width: 520px;
  width: 100%;
  align-self: center;
  justify-self: center;
  text-align: center;
  padding-top: 0;
}

.hero-right {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.hero-left h1 {
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.2;
  text-align: center;
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1.2s cubic-bezier(.19, .63, .37, 1) 0.2s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left h1 {
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.2;
  text-align: center;
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1.2s cubic-bezier(.19, .63, .37, 1) 0.2s forwards;
}

.hero-subhead {
  font-size: clamp(20px, 1.8vw, 28px);
  color: var(--text-heading);
  margin-bottom: var(--fib-13);
  margin-top: 0;
  line-height: 1.65;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.01em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Make all pipe symbols gold sitewide */
.pipe-separator,
.hero-subhead .pipe-separator {
  color: var(--gold-accent) !important;
  margin: 0 var(--fib-8);
  font-weight: 300;
}

.hero-left h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold-accent);
  opacity: 0.6;
  border-radius: 999px;
  margin: var(--fib-8) auto 0;
}

.hero-subhead strong {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--fib-34) 0;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--fib-13);
  margin-bottom: var(--fib-13);
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-ctas {
  display: flex;
  gap: var(--fib-13);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.hero-ctas .cta-btn {
  height: 60px;
  font-size: 18px;
  padding: var(--fib-13) var(--fib-34);
  min-width: 180px;
  width: auto;
  flex: 0 0 auto;
}

/* PILL CARDS */
.pill-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fib-21);
  width: 100%;
  min-width: 0;
  overflow: visible;
  align-items: start;
}


.pill-card {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 15%,
    rgba(250, 251, 252, 0.95) 50%,
    rgba(248, 249, 250, 0.92) 85%,
    rgba(246, 247, 251, 0.9) 100%);
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: var(--fib-21);
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(.19, .63, .37, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  align-items: stretch;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08),
              0 8px 24px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(226, 232, 240, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  width: 100%;
  min-width: 0;
  gap: 0;
}

.pill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 24px 24px 0 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pill-card:nth-child(2) {
  animation-delay: 0.2s;
}

/* Unified Card Hover - Lift + Shadow Only (NO sibling effects) */
.pill-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
  z-index: 10;
}

.pill-card.red-pill:hover {
  border-color: var(--red-main);
}

.pill-card.blue-pill:hover {
  border-color: var(--blue-main);
}

/* Pill neighbor dimming */
[data-card-group="pills"].has-hover .pill-card:not(.is-hovered) {
  opacity: 0.75;
  transform: scale(0.98);
  filter: brightness(0.97);
}

.pill-card.red-pill {
  border-color: rgba(217, 16, 26, 0.2);
  border-width: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 20%,
    rgba(255, 250, 250, 0.95) 40%,
    rgba(255, 245, 245, 0.92) 60%,
    rgba(255, 240, 240, 0.88) 80%,
    rgba(255, 235, 235, 0.85) 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
              0 2px 4px rgba(15, 23, 42, 0.04),
              0 8px 16px rgba(217, 16, 26, 0.08),
              0 16px 32px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(217, 16, 26, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
              inset 0 -1px 0 rgba(217, 16, 26, 0.05);
}

.pill-card.red-pill::before {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(255, 250, 250, 0.2) 50%,
    transparent 100%);
}

.pill-card.blue-pill {
  border-color: rgba(15, 90, 200, 0.2);
  border-width: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 20%,
    rgba(245, 250, 255, 0.95) 40%,
    rgba(240, 248, 255, 0.92) 60%,
    rgba(235, 245, 255, 0.88) 80%,
    rgba(230, 242, 255, 0.85) 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
              0 2px 4px rgba(15, 23, 42, 0.04),
              0 8px 16px rgba(15, 90, 200, 0.08),
              0 16px 32px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(15, 90, 200, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
              inset 0 -1px 0 rgba(15, 90, 200, 0.05);
}

.pill-card.blue-pill::before {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(245, 250, 255, 0.2) 50%,
    transparent 100%);
}

/* Duplicate removed - see above */


.pill-card h3 {
  font-size: var(--h2);
  font-weight: 700;
  margin-bottom: var(--s2);
  margin-top: 0;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.015em;
  color: #0B1220;
  width: 100%;
}

.pill-card .pill-cta {
  text-align: center;
  margin-top: var(--fib-13);
}

.pill-bullets {
  list-style: none;
  padding: 0;
  margin: var(--s2) 0 var(--s2) 0;
  flex-grow: 0;
  width: 100%;
  text-align: left;
}

.pill-bullets li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--s2);
  margin-bottom: var(--fib-8);
  padding-bottom: 0;
  font-size: var(--body);
  line-height: 1.5;
  color: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: auto;
  text-align: left;
  width: 100%;
}

.pill-bullets li:last-child {
  margin-bottom: 0;
}

.pill-bullets li svg {
  flex-shrink: 0;
  margin-top: 0;
  width: 18px;
  height: 18px;
  display: block;
  align-self: flex-start;
  margin-top: 2px;
}

.pill-bullets li strong {
  font-weight: 600;
  color: var(--text-heading);
  text-align: left;
  flex: 1;
}

/* Red pill checkmarks should be red */
.pill-card.red-pill .pill-bullets li svg,
.pill-card.red-pill .pill-bullets li svg path {
  stroke: var(--red-main) !important;
}

/* Blue pill X marks should be blue */
.pill-card.blue-pill .pill-bullets li svg,
.pill-card.blue-pill .pill-bullets li svg path {
  stroke: var(--blue-main) !important;
}

.pill-cta {
  width: 100%;
  height: 55px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 600;
  padding: var(--fib-13) var(--fib-21);
  border-radius: 999px;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* BUTTONS */
.cta-btn {
  height: 60px;
  min-width: 160px;
  padding: var(--fib-13) var(--fib-34);
  background: var(--red-main);
  color: #FFFFFF !important;
  border: 1px solid rgba(185, 28, 28, 0.15);
  border-radius: 999px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.2);
  transition: background 450ms ease, transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%);
  transition: left 600ms cubic-bezier(.19, .63, .37, 1);
  pointer-events: none;
  z-index: 1;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  background: var(--red-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(217, 16, 26, 0.35),
              0 0 0 1px rgba(217, 16, 26, 0.2);
  border-color: rgba(217, 16, 26, 0.4);
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.2);
}

.cta-btn:focus-visible {
  outline: 2px solid rgba(185, 28, 28, 0.5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .cta-btn,
  .cta-btn:hover {
    transition: none;
    transform: none;
  }
  
  .pill-card,
  .service-card,
  .insight-card,
  .case-card,
  .contact-card,
  .insight-item,
  .case-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .pill-card:hover,
  .service-card:hover,
  .insight-card:hover,
  .case-card:hover,
  .contact-card:hover,
  .insight-item:hover,
  .case-item:hover {
    transform: none !important;
    scale: 1 !important;
  }
  
  .scroll-reveal,
  .scroll-reveal-fade,
  .scroll-reveal-slide-left,
  .scroll-reveal-slide-right,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.cta-btn.blue {
  background: var(--blue-main);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
  border-color: rgba(29, 78, 216, 0.15);
}

.cta-btn.blue::before {
  background: linear-gradient(135deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%);
  animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
  0%, 100% { opacity: 0.3; transform: translateX(-100%); }
  50% { opacity: 0.6; transform: translateX(100%); }
}

.cta-btn.blue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.25);
  border-color: rgba(29, 78, 216, 0.25);
}

.cta-btn.blue:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.2);
}

.cta-btn.blue:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.5);
  outline-offset: 2px;
}

.cta-btn.outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue) !important;
  box-shadow: none;
}

.cta-btn.outline::before {
  background: linear-gradient(135deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 70%,
    transparent 100%);
}

.cta-btn.outline:hover {
  background: var(--blue-main);
  color: #FFFFFF !important;
  border-color: var(--blue-main);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.25);
}

.cta-btn.outline:hover::before {
  background: linear-gradient(135deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%);
}

.cta-btn.outline:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.2);
}

.cta-btn.outline:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.5);
  outline-offset: 2px;
}

/* SECTIONS - EDITORIAL SPACING SYSTEM */
/* Removed duplicate .section definition - using consolidated one above */

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(201, 162, 77, 0.15) 20%,
    rgba(201, 162, 77, 0.25) 50%,
    rgba(201, 162, 77, 0.15) 80%,
    transparent 100%);
  opacity: 0.3;
}

/* Override for education section - uses custom gradient styling */
.section.education-section::before {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  height: auto;
  opacity: 1;
}

.section:first-of-type::before {
  display: none;
}

.section:nth-child(even) {
  background: 
    /* Subtle gold from both sides */
    linear-gradient(90deg, 
      rgba(201, 162, 77, 0.06) 0%,
      rgba(201, 162, 77, 0.03) 10%,
      transparent 25%,
      transparent 75%,
      rgba(201, 162, 77, 0.03) 90%,
      rgba(201, 162, 77, 0.06) 100%),
    /* Premium top glow */
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    /* Base gradient */
    linear-gradient(180deg, 
      rgba(238, 242, 246, 1) 0%,
      rgba(242, 245, 248, 1) 50%,
      rgba(238, 242, 246, 1) 100%);
}

.section:first-of-type {
  padding-top: clamp(55px, 7vw, 100px);
}

.section > h2 {
  margin-bottom: var(--fib-55);
}

.page-home .section {
  padding-top: clamp(var(--fib-55), 7vw, 100px);
  padding-bottom: clamp(var(--fib-55), 7vw, 100px);
}

.page-home .section + .section {
  margin-top: 0;
}

/* CTA Section - Redesigned for proper visual balance */
.cta-section {
  padding-top: clamp(var(--fib-55), 7vw, 100px);
  padding-bottom: clamp(var(--fib-55), 7vw, 100px);
  width: 100%;
  background: transparent;
  position: relative;
  text-align: center;
}

.cta-section::before {
  display: none;
}

.cta-container {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  padding: var(--fib-55) var(--fib-55);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  display: block;
  text-align: center;
  margin: 0 auto;
  max-width: 860px;
  width: auto;
  max-width: 90%;
  box-shadow: 
    0 8px 32px rgba(217, 16, 26, 0.12),
    0 16px 48px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.cta-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, 
    rgba(217, 16, 26, 0.22) 0%,
    rgba(217, 16, 26, 0.16) 25%,
    rgba(217, 16, 26, 0.10) 50%,
    rgba(217, 16, 26, 0.04) 75%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: 24px 0 0 24px;
}

.cta-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 35%;
  background: linear-gradient(270deg, 
    rgba(217, 16, 26, 0.22) 0%,
    rgba(217, 16, 26, 0.16) 25%,
    rgba(217, 16, 26, 0.10) 50%,
    rgba(217, 16, 26, 0.04) 75%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: 0 24px 24px 0;
}

.cta-container h2 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.cta-container h2 + .hero-subhead {
  margin-top: 0;
}

.cta-container .hero-subhead,
.cta-container p,
.cta-container .muted {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 65ch;
  margin-bottom: var(--fib-21);
  position: relative;
  z-index: 2;
}

.cta-container .hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--fib-21);
  position: relative;
  z-index: 2;
}

/* Page hero sections */
/* TITLE BLOCK SYSTEM */
.title-block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.title-block h1,
.title-block h2 {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  width: 100%;
  padding: 0;
}

.title-block p,
.title-block .hero-subhead {
  margin-bottom: var(--fib-21);
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  width: 100%;
  padding: 0;
}

.title-block + .section {
  margin-top: 0;
}

.page-hero {
  padding: var(--fib-55) 0 var(--fib-34) 0;
  width: 100%;
  text-align: center;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 auto var(--fib-13) auto;
  text-align: center;
  width: 100%;
  padding: 0;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #0B1220;
}

.page-hero .hero-subhead {
  max-width: 720px;
  margin: 0 auto var(--fib-34) auto;
  text-align: center;
  width: 100%;
  padding: 0;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: 0.01em;
}

.page-hero .hero-subhead strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* SECTION TITLES */

.section h2 {
  text-align: center;
  margin-bottom: var(--fib-34);
  margin-top: 0;
  font-weight: 700;
  font-size: clamp(34px, 3vw, 55px);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #0B1220;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section h2 + * {
  margin-top: 0;
}

.section p,
.section .muted {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 65ch;
}

.section .hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--fib-21);
}

.section h2::after {
  content: '';
  display: block;
  width: var(--fib-55);
  height: 1px;
  background: var(--gold-accent);
  opacity: 0.5;
  border-radius: 999px;
  margin: var(--fib-8) auto 0;
}

.section h2 span.subtle {
  color: #64748B;
  font-weight: 500;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--fib-34);
  margin-top: 0;
  align-items: stretch;
  overflow: visible;
  width: 100%;
  justify-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}


.service-card {
  background: var(--bg1);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: var(--fib-34);
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(.19, .63, .37, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  color: inherit;
  text-align: center;
  align-items: center;
  box-shadow: var(--shadow);
  gap: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.3) 25%,
    transparent 50%,
    rgba(217, 16, 26, 0.08) 75%,
    rgba(217, 16, 26, 0.12) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.19, .63, .37, 1);
  border-radius: 24px;
  z-index: 1;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card h3 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(21px, 1.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.service-card h3 + p {
  margin-top: 0;
}

.service-card p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: center;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-card ul {
  padding: 0;
  margin: var(--s2) auto var(--s3) auto;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.service-card ul li {
  color: var(--text-body);
  font-size: var(--body);
  line-height: 1.6;
  margin-bottom: var(--s2);
  margin-left: 20px;
  padding-left: 0;
  padding-bottom: var(--s1);
  position: relative;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
  list-style: disc;
  list-style-position: outside;
}

.service-card ul li:last-child {
  margin-bottom: 0;
}

.service-card ul li::marker {
  color: var(--red-main);
  font-size: 1.2em;
}

.service-card ul li strong {
  color: var(--text-heading);
  font-weight: 600;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-main);
  z-index: 10;
}

/* Premium neighbor dimming */
[data-card-group].has-hover .service-card:not(.is-hovered) {
  opacity: 0.7;
  transform: scale(0.97);
  filter: brightness(0.96);
}

.service-card.is-hovered {
  transform: perspective(1000px) translateY(-13px) scale(1.05) rotateX(-2deg) rotateY(1deg) translateZ(20px);
  box-shadow: var(--shadow-glow-red), var(--shadow-hover);
  z-index: 20;
}

.service-card.expanded {
  cursor: pointer;
  /* No grid-column span to prevent reorganization */
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12),
              0 16px 48px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(185, 28, 28, 0.12);
}

.service-card.expanded:hover {
  cursor: pointer;
  transform: scale(1.02);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover p,
.service-card:hover ul {
  opacity: 0.85;
}

.service-card p strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* "Apply Now" link - simple styling */
.service-card .apply-link {
  margin-top: var(--fib-13);
  color: var(--red-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: none;
  cursor: pointer;
}

.service-card.expanded .apply-link {
  display: inline-block;
}

.service-card .apply-link:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

/* Expandable details section */
.service-card .service-details {
  margin-top: 0;
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
}

.service-card.expanded .service-details {
  display: block;
  opacity: 1;
  max-height: 1000px;
  margin-top: var(--fib-21);
  padding-top: var(--fib-13);
}

/* Read-more-link (More Detail) - simple styling */
.service-card .read-more-link {
  margin-top: auto;
  color: var(--red-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.service-card:hover .read-more-link {
  opacity: 1;
}

.service-card.expanded .read-more-link {
  display: none;
}

.service-card .read-more-link:hover {
  text-decoration: underline;
}

/* Add text to empty read-more-link elements */
.service-card .read-more-link:empty::before {
  content: 'Learn More';
}

/* INSIGHTS GRID */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--fib-34);
  margin-top: 0;
  align-items: stretch;
  overflow: visible;
}


.insight-card {
  background: var(--bg1);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: var(--fib-34);
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(.19, .63, .37, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  cursor: pointer;
  text-align: center;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  gap: 0;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.3) 25%,
    transparent 50%,
    rgba(15, 90, 200, 0.08) 75%,
    rgba(15, 90, 200, 0.12) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.19, .63, .37, 1);
  border-radius: 24px;
  z-index: 1;
}

.insight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(15,90,200,0.08) 20%,
    rgba(255,255,255,0.5) 40%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.5) 60%,
    rgba(15,90,200,0.08) 80%,
    transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

.insight-card:hover::after {
  animation: shine 1.2s cubic-bezier(.19, .63, .37, 1);
  opacity: 1;
}

.insight-card h3 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(21px, 1.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.insight-card h3 + p {
  margin-top: 0;
}

.insight-card p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
  flex-grow: 1;
}

.insight-card p:last-child {
  margin-bottom: 0;
}

.insight-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-main);
  z-index: 10;
}

.insight-card:hover::before {
  opacity: 1;
}



.insight-card p strong {
  color: var(--text-heading);
  font-weight: 600;
}

.insight-card .cta-btn {
  margin-top: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.insight-card .read-more-link {
  display: inline-block;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  pointer-events: none;
  letter-spacing: 0.2px;
  margin-top: var(--fib-21);
  margin-bottom: 0;
  text-transform: none;
  text-align: center;
  width: 100%;
}

/* Add text to empty read-more-link elements */
.page-home .insight-card .read-more-link:empty::before {
  content: 'Read More';
}

body:not(.page-home) .insight-card .read-more-link:empty::before {
  content: 'Apply Now';
}

.insight-card:hover .read-more-link {
  opacity: 0.85;
  transform: translateY(0);
  pointer-events: auto;
}

.insight-card .read-more-link:hover {
  color: var(--blue-hover);
  opacity: 1;
  text-decoration: underline;
}


/* CASES GRID */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--fib-34);
  margin-top: 0;
  align-items: stretch;
  overflow: visible;
}


.case-card {
  background: var(--bg1);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: var(--fib-34);
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(.19, .63, .37, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  cursor: pointer;
  text-align: center;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  gap: 0;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.3) 25%,
    transparent 50%,
    rgba(15, 90, 200, 0.08) 75%,
    rgba(15, 90, 200, 0.12) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.19, .63, .37, 1);
  border-radius: 24px;
  z-index: 1;
}

.case-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(15,90,200,0.08) 20%,
    rgba(255,255,255,0.5) 40%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.5) 60%,
    rgba(15,90,200,0.08) 80%,
    transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

.case-card:hover::after {
  animation: shine 1.2s cubic-bezier(.19, .63, .37, 1);
  opacity: 1;
}

.case-card h3 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(21px, 1.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.case-card p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
  flex-grow: 1;
}

.case-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-main);
  z-index: 10;
}

.case-card:hover::before {
  opacity: 1;
}


.case-card p strong {
  color: var(--text-heading);
  font-weight: 600;
}

.case-card .cta-btn {
  margin-top: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.case-card .read-more-link {
  display: inline-block;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  pointer-events: none;
  letter-spacing: 0.2px;
  margin-top: var(--fib-21);
  margin-bottom: 0;
  text-transform: none;
  text-align: center;
  width: 100%;
}

/* Add text to empty read-more-link elements */
.page-home .case-card .read-more-link:empty::before {
  content: 'Read More';
}

body:not(.page-home) .case-card .read-more-link:empty::before {
  content: 'Apply Now';
}

.case-card:hover .read-more-link {
  opacity: 0.85;
  transform: translateY(0);
  pointer-events: auto;
}

.case-card .read-more-link:hover {
  color: var(--blue-hover);
  opacity: 1;
  text-decoration: underline;
}

.case-card:hover .cta-btn {
  opacity: 0.85;
  transform: translateY(0);
  pointer-events: auto;
}

/* FOOTER */
.bank-footer {
  background: var(--bg-section);
  border-top: 1px solid rgba(201, 162, 77, 0.3);
  padding: var(--fib-55) 0 var(--fib-34) 0;
  margin-top: var(--fib-55);
  position: relative;
  overflow: visible;
  width: 100%;
}

.footer-inner {
  max-width: var(--containerMax);
  width: 92vw;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: var(--fib-34);
  flex-wrap: wrap;
  margin-bottom: var(--fib-21);
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer-links > div {
  display: inline-block;
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-heading);
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 0;
  border-top: 1px solid rgba(201, 162, 77, 0.2);
  padding-top: var(--fib-21);
  margin-top: var(--fib-13);
}

/* UTILITY */
.muted {
  color: var(--muted);
}

/* RESPONSIVE */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 clamp(21px, 3vw, 34px);
  }
  nav.navbar .container {
    padding: 0 clamp(21px, 3vw, 34px);
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--fib-34);
  }
  .hero-left {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .hero-left {
    align-items: center;
  }
  .hero-left h1 {
    text-align: center;
  }
  .hero-left h1::after {
    margin: var(--fib-8) auto 0;
  }
  .hero-subhead {
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .pill-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
  }
  .services-grid,
  .insights-grid,
  .cases-grid,
  .insights-list,
  .cases-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .apply-form-container {
    grid-template-columns: 1fr;
    gap: var(--fib-34);
  }
  .apply-intro {
    position: static;
  }
  .wizard-steps {
    padding: 0 13px;
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .step-label {
    font-size: 12px;
  }
  .step-line {
    margin: 0 8px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--fib-21);
  }
  nav.navbar {
    height: 60px;
  }
  nav.navbar .container {
    padding: 0 var(--fib-21);
  }
  .navbar-logo img {
    height: 40px;
  }
  ul.navbar-nav {
    gap: var(--s2);
  }
  .navbar-link {
    font-size: var(--small);
  }
  .hero-section {
    padding: 34px 0;
  }
  .pill-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pill-card {
    min-height: auto;
    padding: var(--fib-21);
  }
  .pill-card h3 {
    font-size: 22px;
  }
  .pill-bullets li {
    font-size: 14px;
  }
  .section {
    padding-top: clamp(55px, 7vw, 100px);
    padding-bottom: clamp(48px, 6vw, 90px);
  }
  .services-grid,
  .insights-grid,
  .cases-grid,
  .insights-list,
  .cases-list {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .service-card,
  .insight-card,
  .case-card,
  .insight-item,
  .case-item {
    padding: var(--fib-21);
    min-height: auto;
  }
  .wizard-steps {
    flex-wrap: wrap;
    gap: var(--fib-8);
  }
  .step-line {
    display: none;
  }
  .step-indicator {
    flex: 0 0 calc(25% - 8px);
  }
  .wizard-nav {
    flex-direction: column;
  }
  .wizard-nav button {
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: var(--fib-21);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  nav.navbar {
    height: 55px;
  }
  nav.navbar .container {
    padding: 0 16px;
  }
  .navbar-logo img {
    height: 34px;
  }
  ul.navbar-nav {
    gap: var(--s1);
  }
  .navbar-link {
    font-size: clamp(11px, 2vw, var(--small));
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 18px;
  }
  .hero-section {
    padding: 21px 0;
  }
  .hero-left h1 {
    font-size: 28px;
  }
  .hero-subhead {
    font-size: 15px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .cta-btn {
    width: 100%;
    min-width: unset;
  }
  .pill-card {
    padding: var(--fib-13);
  }
  .pill-card h3 {
    font-size: 20px;
  }
  .pill-bullets {
    margin-bottom: var(--fib-21);
  }
  .pill-bullets li {
    font-size: 13px;
    gap: var(--fib-8);
  }
  .pill-cta {
    height: 44px;
    font-size: 14px;
  }
  .section {
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(40px, 5vw, 70px);
  }
  .section h2 {
    margin-bottom: var(--fib-34);
  }
  .cta-btn {
    height: 48px;
    font-size: 14px;
    padding: 0 var(--fib-21);
  }
  .service-card,
  .insight-card,
  .case-card,
  .contact-card {
    padding: var(--fib-21);
  }
  .service-card.expanded {
    grid-column: span 1;
    transform: scale(1);
  }
  .case-item.open {
    grid-column: span 1;
    transform: scale(1);
  }
  .bank-footer {
    padding: var(--fib-34) 0 var(--fib-21) 0;
    margin-top: var(--fib-34);
  }
  .footer-links {
    flex-direction: column;
    gap: var(--fib-13);
    text-align: center;
  }
  .footer-disclaimer {
    font-size: 12px;
    padding-top: var(--fib-13);
    max-width: 90%;
  }
  .page-hero {
    padding: 34px 0 21px 0;
  }
  .page-hero h1 {
    font-size: 26px;
    margin-bottom: var(--fib-21);
  }
  .page-hero .hero-subhead {
    font-size: 15px;
    margin-bottom: var(--fib-34);
  }
  .wizard-steps {
    gap: var(--fib-5);
    padding: 0;
  }
  .step-number {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .step-label {
    font-size: 10px;
  }
  .step-indicator {
    flex: 0 0 calc(25% - 5px);
  }
}

/* PAGE HERO (for other pages) - REMOVED DUPLICATE, styles merged above */

/* Additional page styles */


.insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--fib-34);
  margin-top: 0;
  align-items: stretch;
  overflow: visible;
  justify-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


.insight-item {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(185, 28, 28, 0.02) 50%,
    rgba(185, 28, 28, 0.01) 70%,
    #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid rgba(185, 28, 28, 0.2);
  padding: var(--fib-34);
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  text-align: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08),
              0 8px 24px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(185, 28, 28, 0.08);
  overflow: hidden;
  gap: 0;
}

.insight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9) 20%,
    rgba(201, 162, 77, 0.3) 50%,
    rgba(255, 255, 255, 0.9) 80%,
    transparent);
  border-radius: 24px 24px 0 0;
  opacity: 0.8;
}

.insight-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(29, 78, 216, 0.02) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.insight-item h3 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.insight-item h3 + p {
  margin-top: 0;
}

.insight-item p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: center;
  flex-grow: 1;
}

.insight-item p:last-of-type {
  margin-bottom: 0;
}

.insight-item:hover {
  transform: perspective(1000px) translateY(-16px) scale(1.08) rotateX(-3deg) rotateY(2deg) translateZ(30px);
  box-shadow: 0 8px 32px rgba(217,16,26,0.25),
              0 16px 48px rgba(217,16,26,0.15),
              0 24px 64px rgba(15, 23, 42, 0.2),
              0 0 0 2px rgba(217, 16, 26, 0.3);
  border-color: rgba(217, 16, 26, 0.5);
  z-index: 10;
  position: relative;
}

/* Education/Insight neighbor dimming */
[data-card-group].has-hover .insight-item:not(.is-hovered) {
  opacity: 0.7;
  transform: scale(0.97);
  filter: brightness(0.96);
}

.insight-item:hover::after {
  opacity: 1;
}


/* Removed duplicate .insight-item h3 - using the one above */

/* Removed duplicate .insight-item p - using the one above */

.insight-item p strong {
  color: var(--text-heading);
  font-weight: 600;
}

.insight-item .cta-btn {
  margin-top: auto;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-item .read-more-link {
  margin-top: var(--fib-13);
  color: var(--red-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  align-self: center;
}

.insight-item:hover .read-more-link {
  opacity: 1;
}

.insight-item .read-more-link:hover {
  text-decoration: underline;
}



.insight-date {
  color: var(--text-body);
  font-size: 13px;
  margin-bottom: var(--fib-8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--fib-34);
  margin-top: 0;
  align-items: stretch;
  overflow: visible;
  justify-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


.case-item {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(185, 28, 28, 0.02) 50%,
    rgba(185, 28, 28, 0.01) 70%,
    #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid rgba(185, 28, 28, 0.2);
  padding: var(--fib-34);
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08),
              0 8px 24px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(185, 28, 28, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  align-items: center;
}

.case-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9) 20%,
    rgba(15, 90, 200, 0.3) 50%,
    rgba(255, 255, 255, 0.9) 80%,
    transparent);
  border-radius: 24px 24px 0 0;
  opacity: 0.8;
}

.case-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(29, 78, 216, 0.02) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.case-item h2 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(21px, 1.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.case-item h2 + p,
.case-item h2 + .case-summary {
  margin-top: 0;
}

.case-item p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: center;
}

.case-item p:last-child {
  margin-bottom: 0;
}

.case-item:hover {
  transform: perspective(1000px) translateY(-16px) scale(1.08) rotateX(-3deg) rotateY(2deg) translateZ(30px);
  box-shadow: 0 8px 32px rgba(15, 90, 200, 0.25),
              0 16px 48px rgba(15, 90, 200, 0.15),
              0 24px 64px rgba(15, 23, 42, 0.2),
              0 0 0 2px rgba(15, 90, 200, 0.3);
  border-color: rgba(15, 90, 200, 0.5);
  z-index: 10;
  position: relative;
}

/* Case neighbor dimming */
[data-card-group].has-hover .case-item:not(.is-hovered) {
  opacity: 0.7;
  transform: scale(0.97);
  filter: brightness(0.96);
}

.case-item:hover::after {
  opacity: 1;
}

.case-item .case-summary {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: var(--fib-8);
  margin-top: 0;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.case-item .case-summary strong {
  color: var(--text-heading);
  font-weight: 600;
}

.case-item .case-details p {
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: var(--fib-13);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.case-item .case-details p strong {
  color: var(--text-heading);
  font-weight: 600;
}

.case-item .case-details ul {
  color: var(--text-body);
  line-height: 1.65;
  margin: var(--fib-8) auto var(--fib-13) auto;
  padding-left: 0;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.case-item .case-details ul li {
  margin-bottom: var(--fib-5);
  margin-left: 20px;
  padding-left: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
  list-style: disc;
  list-style-position: outside;
}

.case-item .case-details ul li::marker {
  color: var(--red-main);
  font-size: 1.2em;
}

.case-item .case-details ul li:last-child {
  margin-bottom: 0;
}

.case-item .case-details ul li strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* Case-item read-more-link (Apply Now) - simple styling */
.case-item .read-more-link {
  margin-top: var(--fib-13);
  color: var(--blue-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: none;
  cursor: pointer;
}

.case-item.open .read-more-link {
  display: inline-block;
}

.case-item .read-more-link:hover {
  text-decoration: underline;
}

.case-details {
  margin-top: var(--fib-21);
  display: none;
}

.case-item.open .case-details {
  display: block;
}

.case-item.open {
  grid-column: span 2;
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12),
              0 16px 48px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(29, 78, 216, 0.12);
}

.case-details h3 {
  margin-top: var(--fib-13);
  margin-bottom: var(--fib-8);
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.case-details h3:first-child {
  margin-top: 0;
}

.case-details h3 + p {
  margin-top: 0;
}

.case-toggle {
  margin-top: auto;
  color: var(--blue-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.case-item:hover .case-toggle {
  opacity: 1;
}

.case-item.open .case-toggle {
  display: none;
}

.case-toggle:hover {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--fib-34);
  margin-top: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}


.contact-card {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(185, 28, 28, 0.02) 50%,
    rgba(185, 28, 28, 0.01) 70%,
    #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid rgba(185, 28, 28, 0.2);
  padding: var(--fib-34);
  min-height: 300px;
  width: 100%;
  max-width: 380px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08),
              0 8px 24px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(185, 28, 28, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  gap: 0;
  text-align: center;
  align-items: center;
}

/* Contact card uses unified ::before and ::after from premium card system */

.contact-card h2 {
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(21px, 1.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.contact-card h2 + p {
  margin-top: 0;
}

.contact-card p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  flex-grow: 1;
  text-align: center;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card:hover {
  transform: perspective(1000px) translateY(-13px) scale(1.05) rotateX(-2deg) rotateY(1deg) translateZ(20px);
  box-shadow: var(--shadow-glow-red), var(--shadow-hover);
  border-color: rgba(217, 16, 26, 0.4);
  z-index: 10;
  position: relative;
}

/* Contact neighbor dimming */
[data-card-group].has-hover .contact-card:not(.is-hovered) {
  opacity: 0.7;
  transform: scale(0.97);
  filter: brightness(0.96);
}

.contact-card:hover::after {
  opacity: 1;
}

.contact-card p strong {
  color: var(--text-heading);
  font-weight: 600;
}

.contact-info {
  margin-top: var(--fib-21);
}

.contact-line {
  margin-bottom: var(--fib-8);
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.contact-line:last-child {
  margin-bottom: 0;
}

.contact-line strong {
  font-weight: 600;
  color: var(--text-heading);
}

.contact-line a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-line a:hover {
  color: var(--red);
  text-decoration: underline;
}

.apply-form-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fib-55);
  align-items: start;
  overflow: visible;
}

.apply-intro {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(185, 28, 28, 0.02) 50%,
    rgba(185, 28, 28, 0.01) 70%,
    #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: var(--fib-34);
  position: sticky;
  top: var(--fib-89);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
              0 2px 4px rgba(15, 23, 42, 0.04),
              0 8px 16px rgba(15, 23, 42, 0.06),
              0 16px 32px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(185, 28, 28, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 300ms cubic-bezier(.22,.61,.36,1),
              box-shadow 300ms cubic-bezier(.22,.61,.36,1),
              border-color 300ms cubic-bezier(.22,.61,.36,1);
  position: relative;
  overflow: visible;
}

.apply-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9) 20%,
    rgba(201, 162, 77, 0.3) 50%,
    rgba(255, 255, 255, 0.9) 80%,
    transparent);
  border-radius: 24px 24px 0 0;
  opacity: 0.8;
}

.apply-intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(185, 28, 28, 0.02) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.apply-intro:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04),
              0 4px 8px rgba(15, 23, 42, 0.06),
              0 16px 32px rgba(15, 23, 42, 0.10),
              0 32px 64px rgba(15, 23, 42, 0.16),
              0 0 0 1px rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.25);
}

.apply-intro:hover::after {
  opacity: 1;
}

.apply-intro h2 {
  text-align: center;
  margin-bottom: var(--fib-8);
  margin-top: 0;
  font-size: clamp(21px, 1.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  line-height: 1.3;
  width: 100%;
}

.apply-intro h2 + p {
  margin-top: 0;
}

.apply-intro p {
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.apply-intro p:last-child {
  margin-bottom: 0;
}

.apply-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--fib-13);
  margin-bottom: var(--fib-13);
  line-height: 1.65;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.apply-disclaimer {
  margin-top: var(--fib-21);
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.apply-intro ul {
  color: var(--text-body);
  line-height: 1.65;
  margin: 0 auto var(--fib-13) auto;
  padding-left: 0;
  font-size: 15px;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.apply-intro ul li {
  margin-bottom: var(--fib-5);
  margin-left: 20px;
  padding-left: 0;
  letter-spacing: 0.01em;
  text-align: left;
  list-style: disc;
  list-style-position: outside;
}

.apply-intro ul li::marker {
  color: var(--red-main);
  font-size: 1.2em;
}

.apply-intro ul li:last-child {
  margin-bottom: 0;
}

.apply-form {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(185, 28, 28, 0.02) 50%,
    rgba(185, 28, 28, 0.01) 70%,
    #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: var(--fib-34);
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
  text-align: left;
}

.apply-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9) 20%,
    rgba(201, 162, 77, 0.3) 50%,
    rgba(255, 255, 255, 0.9) 80%,
    transparent);
  border-radius: 24px 24px 0 0;
  opacity: 0.8;
}

.apply-form::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(185, 28, 28, 0.02) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.apply-form:hover::after {
  opacity: 1;
}

/* Wizard Steps */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--fib-55);
  padding: 0 var(--fib-21);
  gap: var(--fib-8);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.step-number {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transform: scale(1);
}

.step-indicator.active .step-number {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 21px rgba(217,16,26,0.5), 0 10px 24px rgba(217,16,26,0.3);
  transform: scale(1.1);
  animation: pulseStep 2s ease-in-out infinite;
}

.step-indicator.completed .step-number {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 100%);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 21px rgba(15,90,200,0.4), 0 10px 24px rgba(15,90,200,0.25);
  transform: scale(1.05);
}

@keyframes pulseStep {
  0%, 100% {
    box-shadow: 0 0 21px rgba(217,16,26,0.5), 0 10px 24px rgba(217,16,26,0.3);
  }
  50% {
    box-shadow: 0 0 34px rgba(217,16,26,0.7), 0 13px 34px rgba(217,16,26,0.5);
  }
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.step-indicator.active .step-label {
  color: var(--text);
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 13px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-indicator.completed + .step-line,
.step-line.completed {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease;
  text-align: left;
}

.wizard-step.active {
  display: block;
  text-align: left;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wizard-nav {
  display: flex;
  gap: var(--fib-13);
  justify-content: space-between;
  margin-top: var(--fib-34);
  padding-top: var(--fib-34);
  border-top: 1px solid var(--border);
}

.wizard-nav button {
  min-width: 144px;
}

.review-summary {
  background: var(--card-bg);
  border-radius: 13px;
  padding: var(--fib-21);
  border: 1px solid var(--border);
  margin-bottom: var(--fib-21);
  box-shadow: var(--shadow);
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: var(--fib-13) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.65;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item strong {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.review-item span {
  color: var(--muted);
  font-size: 15px;
  text-align: right;
  letter-spacing: 0.01em;
}

.apply-form h3,
.wizard-step h3 {
  margin-top: var(--fib-34);
  margin-bottom: var(--fib-8);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: left;
  color: var(--text-heading);
}

.apply-form h3:first-child,
.wizard-step h3:first-child {
  margin-top: 0;
}

.apply-form h3 + *,
.wizard-step h3 + * {
  margin-top: 0;
}

.step-description {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: var(--fib-21);
  margin-top: var(--fib-5);
  text-align: left;
}

.file-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: var(--fib-8);
  margin-bottom: 0;
  text-align: left;
}

.disclaimer-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--fib-8);
  margin-top: var(--fib-34);
  margin-bottom: 0;
}

.disclaimer-checkbox input[type="checkbox"] {
  margin-top: 5px;
  margin-bottom: 0;
  margin-right: 0;
  flex-shrink: 0;
  width: auto;
  padding: 0;
}

.disclaimer-checkbox span {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  flex: 1;
}

.apply-form label {
  display: block;
  margin-bottom: var(--fib-8);
  margin-top: var(--fib-13);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.65;
}

.apply-form label:first-child {
  margin-top: 0;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="file"],
.apply-form textarea,
.apply-form select {
  width: 100%;
  padding: var(--fib-13) var(--fib-21);
  margin-top: var(--fib-5);
  margin-bottom: var(--fib-13);
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.65;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.apply-form input:hover,
.apply-form textarea:hover,
.apply-form select:hover {
  border-color: rgba(15,90,200,0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.apply-form input:focus,
.apply-form textarea:focus,
.apply-form select:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15,90,200,0.15), 0 8px 21px rgba(15,90,200,0.2);
  transform: translateY(-2px) scale(1.01);
}

.legal-content {
  max-width: 850px;
  margin: 0 auto;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(15, 23, 42, 0.01) 50%,
    rgba(15, 23, 42, 0.005) 70%,
    #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  padding: var(--fib-55);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
              0 2px 4px rgba(15, 23, 42, 0.04),
              0 8px 16px rgba(15, 23, 42, 0.06),
              0 16px 32px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: visible;
}

.legal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9) 20%,
    rgba(201, 162, 77, 0.3) 50%,
    rgba(255, 255, 255, 0.9) 80%,
    transparent);
  border-radius: 24px 24px 0 0;
  opacity: 0.8;
}

.legal-content h2 {
  margin-top: var(--fib-34);
  margin-bottom: var(--fib-8);
  font-size: clamp(21px, 1.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-align: center;
  width: 100%;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h2 + p {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: var(--fib-8) auto var(--fib-34) auto;
  padding-left: 0;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.legal-content ul li {
  margin-bottom: var(--fib-5);
  margin-left: 20px;
  padding-left: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: 0.01em;
  text-align: left;
  list-style: disc;
  list-style-position: outside;
}

.legal-content ul li::marker {
  color: var(--red-main);
  font-size: 1.2em;
}

.legal-content ul li:last-child {
  margin-bottom: 0;
}

.legal-content > h2 {
  text-align: center;
  margin-top: var(--fib-21);
  margin-bottom: var(--fib-8);
  padding-bottom: var(--fib-13);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  color: #0B1220;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(28px, 2.5vw, 42px);
  line-height: 1.3;
  width: 100%;
}

.legal-content > h2:first-child {
  margin-top: 0;
}

.legal-content > h2 + p {
  margin-top: 0;
}

.legal-content > p {
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: var(--fib-13);
  margin-top: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.legal-content > p:last-child {
  margin-bottom: 0;
}

.legal-content > ul {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border-radius: 13px;
  border: 1px solid var(--border);
  padding: var(--fib-21) var(--fib-21) var(--fib-21) var(--fib-34);
  margin-bottom: var(--fib-34);
  margin-top: var(--fib-8);
  color: var(--text-body);
  line-height: 1.65;
  text-align: center;
}

.legal-content > ul li {
  margin-bottom: var(--fib-8);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
}

.legal-content > ul li:last-child {
  margin-bottom: 0;
}

.legal-content > ul li strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* SCROLL ANIMATIONS */
/* Elements are visible by default, only animate when JS adds classes */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), 
              transform 1200ms cubic-bezier(.19, .63, .37, 1),
              filter 1200ms cubic-bezier(.19, .63, .37, 1);
  will-change: opacity, transform, filter;
}

body.js-ready .scroll-reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(80px) scale(0.88);
  filter: blur(8px);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), 
              transform 1200ms cubic-bezier(.19, .63, .37, 1),
              filter 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), 
              transform 1200ms cubic-bezier(.19, .63, .37, 1),
              filter 1200ms cubic-bezier(.19, .63, .37, 1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-fade,
  .scroll-reveal-slide-left,
  .scroll-reveal-slide-right,
  .scroll-reveal-scale {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.scroll-reveal-fade {
  opacity: 1;
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
  transform: translateY(0);
  will-change: opacity, transform;
}

body.js-ready .scroll-reveal-fade:not(.revealed) {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-slide-left {
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
  will-change: opacity, transform;
}

body.js-ready .scroll-reveal-slide-left:not(.revealed) {
  opacity: 0;
  transform: translateX(-90px) translateY(20px);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-slide-left.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-slide-right {
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
  will-change: opacity, transform;
}

body.js-ready .scroll-reveal-slide-right:not(.revealed) {
  opacity: 0;
  transform: translateX(90px) translateY(20px);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-slide-right.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), transform 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-scale {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), 
              transform 1200ms cubic-bezier(.19, .63, .37, 1),
              filter 1200ms cubic-bezier(.19, .63, .37, 1);
  will-change: opacity, transform, filter;
}

body.js-ready .scroll-reveal-scale:not(.revealed) {
  opacity: 0;
  transform: scale(0.85) translateY(70px);
  filter: blur(8px);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), 
              transform 1200ms cubic-bezier(.19, .63, .37, 1),
              filter 1200ms cubic-bezier(.19, .63, .37, 1);
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  transition: opacity 1200ms cubic-bezier(.19, .63, .37, 1), 
              transform 1200ms cubic-bezier(.19, .63, .37, 1),
              filter 1200ms cubic-bezier(.19, .63, .37, 1);
}
