*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --background: #ffffff;
  --foreground: #2a2f3a;
  --primary: #2563EB;
  --muted-foreground: #5c6170;
  --border: #e4e6ea;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'League Spartan', sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 80rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.nav-logo {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--foreground); text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted-foreground);
  text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.mobile-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--foreground); transition: all 0.3s; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  display: none; max-height: 0; overflow: hidden; transition: max-height 0.5s ease;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
}
.mobile-menu.open { max-height: 400px; border-bottom: 1px solid var(--border); }
.mobile-menu ul { list-style: none; padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted-foreground); text-decoration: none;
}

/* Nav Light Variant (case study pages) */
.nav-light .nav-logo { color: #ffffff; }
.nav-light .nav-logo span { color: rgba(255,255,255,0.6); }
.nav-light .nav-links a { color: rgba(255,255,255,0.7); }
.nav-light .nav-links a:hover { color: #ffffff; }
.nav-light .mobile-toggle span { background: #ffffff; }
.nav-light.scrolled { background: rgba(30,79,188,0.95); border-bottom: 1px solid rgba(255,255,255,0.15); }
.nav-light.scrolled .nav-logo { color: #ffffff; }
.nav-light.scrolled .nav-links a { color: rgba(255,255,255,0.7); }
.nav-light.scrolled .nav-links a:hover { color: #ffffff; }
.nav-light .mobile-menu { background: rgba(30,79,188,0.95); }
.nav-light .mobile-menu.open { border-bottom: 1px solid rgba(255,255,255,0.15); }
.nav-light .mobile-menu a { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* ========== HERO ========== */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 100vh; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;top:-20%;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.85);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0.7), transparent);
}
.hero-content {
  position: relative; z-index: 10; max-width: 80rem; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 8rem 1.5rem 5rem;
}
.hero-label {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; letter-spacing: -0.025em; color: var(--foreground);
  line-height: 0.85;
}
.hero-role-container { height: 3rem; margin-top: 1.5rem; }
.hero-role {
  font-size: 1.25rem; font-weight: 300; color: var(--muted-foreground);
  transition: all 0.4s ease;
}
.hero-role.hidden { opacity: 0; transform: translateY(8px); }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: #ffffff; border: none;
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: opacity 0.3s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--foreground);
  border: 1px solid var(--border); padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.hero-stats { display: flex; gap: 2rem; margin-top: 1rem; }
.hero-stat { text-align: center; }
.hero-stat-number {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; color: var(--primary);
}
.hero-stat-label {
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted-foreground); margin-top: 0.25rem;
}
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-indicator span {
  font-size: 10px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.scroll-indicator .line { width: 1px; height: 40px; background: rgba(92,97,112,0.3); }

@media (min-width: 1024px) {
  .hero-content { flex-direction: row; align-items: center; gap: 4rem; padding: 8rem 2rem 5rem; }
  .hero-left { flex: 1; }
  .hero-stats { flex-direction: column; gap: 2.5rem; }
  .hero-stat { text-align: right; }
  .hero-role { font-size: 1.5rem; }
}

/* ========== SKILLS MARQUEE ========== */
.marquee-container {
  overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 1rem 0;
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  margin: 0 1.5rem; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground);
}
.marquee-item .dot { margin-left: 1.5rem; color: var(--primary); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========== SECTION COMMON ========== */
.section { padding: 6rem 0; }
.section-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.section-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 4rem; }
.section-label-text {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
}
.section-label-line { height: 1px; flex: 1; }
.section-label-line.default { background: var(--border); }
.section-label-line.white { background: rgba(255,255,255,0.25); }
.section-heading {
  font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.025em;
  text-wrap: balance; margin-bottom: 4rem;
}
.section-heading.lg { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.15; }

@media (min-width: 1024px) { .section { padding: 8rem 0; } .section-inner { padding: 0 2rem; } }

/* ========== BLUE SECTIONS ========== */
.blue-section { background: linear-gradient(85deg, #2563EB, #1E4FBC); }
.blue-section .section-label-text { color: #ffffff; }
.blue-section .section-heading { color: #ffffff; }

/* ========== ABOUT ========== */
.about-grid { display: grid; gap: 3rem; }
.about-body { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.8); }
.about-body p + p { margin-top: 1.25rem; }
.about-details { display: flex; flex-direction: column; gap: 2rem; }
.about-detail { padding-top: 1.5rem; }
.about-detail + .about-detail { border-top: 1px solid rgba(255,255,255,0.25); }
.about-detail-label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem;
}
.about-detail-value { font-size: 1rem; font-weight: 500; color: #ffffff; }
.about-detail-sub { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

@media (min-width: 1024px) { .about-grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }

/* ========== LIGHT SECTIONS ========== */
.light-section { background: #F8FAFC; }
.light-section .section-label-text { color: var(--primary); }
.light-section .section-heading { color: var(--foreground); }

/* ========== EXPERTISE ========== */
.expertise-grid { display: grid; gap: 1.5rem; }
.expertise-card {
  background: #ffffff; border: 1px solid var(--border);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem;
  transition: border-color 0.3s;
}
.expertise-card:hover { border-color: var(--primary); }
.expertise-card-header { display: flex; align-items: flex-start; gap: 1rem; }
.expertise-card-icon {
  width: 40px; height: 40px; flex-shrink: 0; color: var(--primary);
}
.expertise-card-titles { display: flex; flex-direction: column; gap: 0.125rem; }
.expertise-card-title {
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--foreground);
}
.expertise-card-subtitle {
  font-size: 0.8125rem; color: var(--muted-foreground);
}
.expertise-card-desc {
  font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground);
}
.expertise-card-caps {
  list-style: none; display: flex; flex-direction: column; gap: 0.625rem;
  padding-top: 0.5rem; border-top: 1px solid var(--border);
}
.expertise-card-caps li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8125rem; color: var(--foreground);
}
.expertise-card-caps .dot {
  width: 5px; height: 5px; flex-shrink: 0; background: var(--primary);
}
.expertise-card-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto; padding-top: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  text-decoration: none; transition: gap 0.3s;
}
.expertise-card-cta:hover { gap: 0.75rem; }
.expertise-card-cta svg { width: 16px; height: 16px; }

@media (min-width: 768px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .expertise-card { padding: 2.5rem; } }

/* ========== EXPERIENCE ========== */
.experience-item {
  display: grid; gap: 1rem; padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.experience-item:first-child {
  border-top:none !important;
}
.exp-period {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.6);
}
.exp-title {
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; color: #ffffff;
}
.exp-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-top: 0.25rem; }
.exp-company { font-size: 0.875rem; font-weight: 600; color: #ffffff; margin-top: 0.5rem; }
.exp-company-detail { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.exp-highlights { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.exp-highlights li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.8);
}
.exp-highlights .dot {
  width: 4px; height: 4px; flex-shrink: 0; background: #ffffff;
  margin-top: 0.5rem;
}
.earlier-career {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.875rem; color: rgba(255,255,255,0.8);
}
.earlier-career strong { font-weight: 500; color: #ffffff; }

@media (min-width: 1024px) {
  .experience-item { grid-template-columns: 3fr 9fr; gap: 2rem; padding: 2.5rem 0; }
  .exp-title { font-size: 1.25rem; }
}

/* ========== TESTIMONIALS ========== */
.testimonials-inner { max-width: 56rem; margin: 0 auto; }
.quote-icon { width: 48px; height: 48px; color: var(--primary); margin-bottom: 2rem; }
.quote-text {
  font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.6; color: var(--foreground);
}
.quote-footer {
  display: flex; align-items: center; gap: 1rem; margin-top: 2rem;
}
.quote-footer .line { width: 2rem; height: 1px; background: var(--primary); }
.quote-author { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.quote-context { font-size: 0.75rem; color: var(--muted-foreground); }
.quote-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 3rem;
}
.quote-dots { display: flex; align-items: center; gap: 0.75rem; }
.quote-dot {
  height: 8px; background: rgba(92,97,112,0.3); border: none;
  cursor: pointer; transition: all 0.3s; width: 8px;
}
.quote-dot.active { width: 2rem; background: var(--primary); }
.quote-dot:hover { background: rgba(92,97,112,0.5); }
.quote-dot.active:hover { background: var(--primary); }
.quote-arrows { display: flex; gap: 0.5rem; }
.quote-arrow {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #ffffff; cursor: pointer;
  color: var(--foreground); transition: all 0.3s;
}
.quote-arrow:hover { border-color: var(--primary); color: var(--primary); }
.quote-arrow svg { width: 18px; height: 18px; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; gap: 4rem; }
.contact-heading { color: #ffffff; }
.contact-body { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.8); margin-top: 1.5rem; }
.contact-links { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
}
.contact-link-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.3);
}
.contact-link-icon svg { color: #ffffff; }
.contact-link-name { font-size: 0.875rem; font-weight: 600; color: #ffffff; }
.contact-link-url { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #ffffff;
}
.form-input, .form-textarea {
  padding: 0.75rem; font-size: 0.875rem; font-family: var(--font-sans);
  color: #ffffff; background: rgba(255,255,255,0.07);
  border: none; outline: none;
}
.form-textarea { resize: none; min-height: 120px; }
.btn-submit {
  align-self: flex-start; margin-top: 1rem;
  padding: 0.75rem 2rem; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff; background: transparent;
  border: 1px solid #ffffff; cursor: pointer; transition: all 0.3s;
}
.btn-submit:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ========== FOOTER ========== */
.footer {
  background: #2563EB; border-top: 1px solid rgba(255,255,255,0.25);
  padding: 2rem 0;
}
.footer-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-serif); font-size: 1.125rem;
  font-weight: 700; letter-spacing: -0.025em; color: #ffffff;
}
.footer-logo span { color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-links a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: #ffffff; }

@media (min-width: 768px) { .footer-inner { flex-direction: row; } .section-inner { padding: 0 2rem; } }

/* ========== CASE STUDY ========== */
.cs-hero {
  position: relative; padding: 10rem 0 6rem;
  background: linear-gradient(85deg, #2563EB, #1E4FBC);
}
.cs-hero-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
}
.cs-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 3rem;
}
.cs-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.cs-breadcrumb a:hover { color: #ffffff; }
.cs-breadcrumb .sep { color: rgba(255,255,255,0.3); }
.cs-breadcrumb .current { color: #ffffff; }
.cs-hero-grid { display: grid; gap: 3rem; align-items: end; }
.cs-hero-label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem;
}
.cs-hero h1 {
  font-family: var(--font-serif); font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700; letter-spacing: -0.025em; color: #ffffff;
  line-height: 1.1; text-wrap: balance;
}
.cs-hero-body {
  font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,0.8);
  margin-top: 1.5rem; max-width: 40rem;
}
.cs-meta { display: flex; flex-direction: column; gap: 1.5rem; }
.cs-meta-item {}
.cs-meta-label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.25rem;
}
.cs-meta-value { font-size: 0.9375rem; font-weight: 500; color: #ffffff; }

@media (min-width: 1024px) {
  .cs-hero-inner { padding: 0 2rem; }
  .cs-hero-grid { grid-template-columns: 3fr 1fr; }
  .cs-meta { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 2rem; }
}

/* Case Study Content */
.cs-section { padding: 4rem 0; }
.cs-section + .cs-section { border-top: 1px solid var(--border); }
.cs-section-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.cs-section-label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1.5rem;
}
.cs-section h2 {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.025em; color: var(--foreground);
  line-height: 1.2; text-wrap: balance; margin-bottom: 1.5rem;
}
.cs-prose { font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); max-width: 48rem; }
.cs-prose p + p { margin-top: 1.25rem; }
.cs-two-col { display: grid; gap: 3rem; }

@media (min-width: 1024px) {
  .cs-section { padding: 5rem 0; }
  .cs-section-inner { padding: 0 2rem; }
  .cs-two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Outcome Cards */
.cs-outcomes { display: grid; gap: 1.5rem; margin-top: 2rem; }
.cs-outcome {
  padding: 2rem; background: #F8FAFC; border-left: 3px solid var(--primary);
}
.cs-outcome-stat {
  font-family: var(--font-serif); font-size: 2rem;
  font-weight: 700; color: var(--primary); line-height: 1;
}
.cs-outcome-desc {
  font-size: 0.875rem; line-height: 1.5; color: var(--muted-foreground); margin-top: 0.5rem;
}

@media (min-width: 768px) { .cs-outcomes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cs-outcomes { grid-template-columns: repeat(3, 1fr); } }

/* Process Steps */
.cs-steps { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; counter-reset: step; }
.cs-step {
  display: grid; gap: 1rem; padding: 2rem 0;
  border-top: 1px solid var(--border); counter-increment: step;
}
.cs-step-number {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--primary); letter-spacing: 0.1em;
}
.cs-step-number::before { content: "0" counter(step); }
.cs-step h3 {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 600; color: var(--foreground); letter-spacing: -0.025em;
}
.cs-step p {
  font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .cs-step { grid-template-columns: 4rem 1fr 2fr; gap: 2rem; align-items: start; }
}

/* Highlight Image */
.cs-image {
  width: 100%; margin: 3rem 0; overflow: hidden;
  background: #F8FAFC; display: flex; align-items: center; justify-content: center;
  min-height: 20rem; color: var(--muted-foreground); font-size: 0.875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.cs-image img { width: 100%; height: auto; display: block; }

/* Gallery */
.cs-gallery { padding: 3rem 0; }
.cs-gallery-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.cs-gallery-grid { display: grid; gap: 1rem; }
.cs-gallery-item {
  overflow: hidden; background: #F8FAFC;
  display: flex; align-items: center; justify-content: center;
  min-height: 16rem; color: var(--muted-foreground); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;position:relative;padding-top:1.5rem;
}
.cs-gallery-item img { width: 100%; height: 100%; display: block; position: relative; height: auto;top: 0px;left: 0px;width: 100%; }
.cs-gallery-item span {padding:8px; background:#2a2f3a;color:#fff;z-index:500;opacity:90%;position:absolute;right:0px;top:0px;}
.cs-gallery-grid.cols-1 { grid-template-columns: 1fr; }
.cs-gallery-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.cs-gallery-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 768px) {
  .cs-gallery-grid.cols-2, .cs-gallery-grid.cols-3 { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) { .cs-gallery-inner { padding: 0 2rem; } }

/* Key Takeaway */
.cs-takeaway {
  background: linear-gradient(85deg, #2563EB, #1E4FBC);
  padding: 4rem 0;
}
.cs-takeaway-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.cs-takeaway blockquote {
  font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600; line-height: 1.5; color: #ffffff; max-width: 48rem;
  text-wrap: balance;
}
.cs-takeaway cite {
  display: block; font-style: normal; font-family: var(--font-sans);
  font-size: 0.875rem; font-weight: 400; color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
}

@media (min-width: 1024px) { .cs-takeaway-inner { padding: 0 2rem; } .cs-takeaway { padding: 5rem 0; } }

/* Case Study Nav */
.cs-nav {
  padding: 3rem 0; border-top: 1px solid var(--border);
}
.cs-nav-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.cs-nav-link {
  display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none;
}
.cs-nav-link-label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.cs-nav-link-title {
  font-family: var(--font-serif); font-size: 1.125rem;
  font-weight: 600; color: var(--foreground); transition: color 0.3s;
}
.cs-nav-link:hover .cs-nav-link-title { color: var(--primary); }
.cs-nav-link.next { text-align: right; }

@media (min-width: 1024px) { .cs-nav-inner { padding: 0 2rem; } }

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
