/* ============================================
   Michelle DaSilva Portfolio — Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg:          #f5f5f5;
  --surface:     #ffffff;
  --surface-2:   #f0f0f0;
  --border:      #e0e0e0;
  --text:        #333333;
  --text-muted:  #666666;
  --accent:      #007acc;
  --accent-hover: #3B82F6;
  --accent-subtle: #1d3461;
  --accent-glow: rgba(0, 122, 204, 0.1);
  --accent-dim:  rgba(0, 122, 204, 0.5);
  --accent-2:    #64ffda;
  --accent-2-glow: rgba(100, 255, 218, 0.1);
  --contribution-bg: #1a1e2e;

  --max-width:   1100px;
  --nav-height:  64px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --transition:  150ms ease;
  --transition-slow: 300ms ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-headline: 'Playfair Display', Georgia, serif;

  /* --- Phase palette (process diagrams, sequential steps) --- */
  --phase-teal:        #14b8a6;
  --phase-teal-glow:   rgba(20, 184, 166, 0.07);
  --phase-teal-bg:     rgba(20, 184, 166, 0.1);
  --phase-teal-dim:    rgba(20, 184, 166, 0.4);
  --phase-amber:       #f59e0b;
  --phase-amber-glow:  rgba(245, 158, 11, 0.07);
  --phase-amber-bg:    rgba(245, 158, 11, 0.1);
  --phase-amber-dim:   rgba(245, 158, 11, 0.4);
  --phase-purple:      #8b5cf6;
  --phase-purple-glow: rgba(139, 92, 246, 0.07);
  --phase-purple-bg:   rgba(139, 92, 246, 0.1);
  --phase-purple-dim:  rgba(139, 92, 246, 0.4);
  --phase-pink:        #ec4899;
  --phase-cyan:        #06b6d4;
  --phase-orange:      #f97316;
  --phase-orange-bg:   rgba(249, 115, 22, 0.1);
  --phase-orange-dim:  rgba(249, 115, 22, 0.3);
  --phase-green:       #22c55e;

  /* --- Semantic states --- */
  --error:             #ef4444;
  --error-glow:        rgba(239, 68, 68, 0.1);
  --success:           #10b981;
  --success-glow:      rgba(16, 185, 129, 0.1);
  --success-dim:       rgba(16, 185, 129, 0.3);

  /* --- Accent variants --- */
  --accent-hover:      #006bb3;
  --accent-border:     rgba(0, 122, 204, 0.2);
  --accent-shadow:     rgba(0, 122, 204, 0.35);
  --accent-fade:       rgba(0, 122, 204, 0.3);
}

[data-theme="dark"] {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-2:   #1c1c1c;
  --border:      #2a2a2a;
  --text:        #f8f8f8;
  --text-muted:  #909090;
  --accent:      #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.1);
  --accent-dim:  rgba(14, 165, 233, 0.5);
  --accent-2:    #14b8a6;
  --accent-2-glow: rgba(20, 184, 166, 0.1);

  --accent-hover:  #0284c7;
  --accent-border: rgba(14, 165, 233, 0.2);
  --accent-shadow: rgba(14, 165, 233, 0.35);
  --accent-fade:   rgba(14, 165, 233, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-weight: 600;
  z-index: 200;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2 {
  font-family: var(--font-headline);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

p, button, a, li, label, input, textarea, .nav-link, .hero-sub, .hero-eyebrow {
  font-family: var(--font);
}

img {
  max-width: 100%;
  display: block;
  filter: sepia(0.05) saturate(0.95) hue-rotate(5deg);
  transition: filter var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-slow);
}

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

.nav-logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background-color: var(--surface);
}

.nav-link--cta {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.nav-link--cta:hover {
  background-color: var(--accent-glow);
  color: var(--accent);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.nav-toggle:hover {
  background-color: var(--surface);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-slow), opacity var(--transition);
}

.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  background-color: var(--surface-2);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.theme-icon--dark {
  display: none;
}

[data-theme="dark"] .theme-icon--light {
  display: none;
}

[data-theme="dark"] .theme-icon--dark {
  display: block;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), opacity var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-shadow);
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Section Shared
   ============================================ */

.section {
  padding: 96px 0;
}

.section--alt {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero-centered {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-centered .hero-headline {
  max-width: 20ch;
}

.hero-centered .hero-sub {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-centered .hero-actions {
  justify-content: center;
}

.hero-content {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero-eyebrow,
.nav-link,
.nav-logo,
.btn,
.hero-sub,
.hero-stat-label,
.hero-stat-value {
  font-family: var(--font);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
}

.hero-stat {
  flex: 1;
  padding: 0 24px;
  text-align: center;
}

.hero-stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Decorative orbs */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-orb--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: 60px;
  left: -60px;
  opacity: 0.2;
}

.hero-orb--3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  top: 35%;
  left: 45%;
  opacity: 0.12;
}

.hero-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: fadeIn 2s ease-out;
}

.hero-svg {
  width: 400px;
  height: 300px;
  opacity: 0.7;
}

.hero-svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 3s ease-in-out forwards;
}

.hero-svg circle, .hero-svg rect {
  animation: fadeInElements 2s ease-out 1s forwards;
  opacity: 0;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInElements {
  to {
    opacity: 0.5;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
}

/* Hero photo */
.hero-photo-col {
  flex-shrink: 0;
}

.hero-photo-frame {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), transparent 60%, var(--accent));
  opacity: 0.7;
  z-index: 0;
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: 0;
}

.hero-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg);
}

/* ============================================
   Projects Grid
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  cursor: default;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-dim);
  outline: none;
}

/* Project cover areas */
.project-cover {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-cover--1 {
  background: linear-gradient(135deg, #020c1c 0%, #082040 50%, #0f3870 100%);
}

.project-cover--2 {
  background: linear-gradient(135deg, #021512 0%, #063326 50%, #0d5840 100%);
}

.project-cover--3 {
  background: linear-gradient(135deg, #0e0322 0%, #1c0848 50%, #2d1070 100%);
}

.project-cover--pss {
  background: linear-gradient(135deg, #021512 0%, #063326 50%, #0d5840 100%);
}

.project-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 14, 26, 0.7) 0%, transparent 60%);
}

.project-cover-inner {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.project-cover-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-body {
  padding: 28px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: 100px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.project-stats {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-process {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.process-step {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.process-step--current {
  color: var(--phase-teal);
  background-color: var(--phase-teal-bg);
  border-color: var(--phase-teal-dim);
}

.process-arrow {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.6;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition), letter-spacing var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-link:hover {
  letter-spacing: 0.01em;
}

/* ============================================
   About
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 72px;
  align-items: start;
}

.about-right-col {
  padding-top: 8px;
}

.about-single {
  max-width: 780px;
}

.about-bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
}

.about-bio-photo {
  padding-top: 8px;
}

.about-photo-wrap {
  margin-bottom: 36px;
}

.about-photo-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2) 50%, var(--accent));
  box-shadow: 0 0 40px var(--accent-border);
  flex-shrink: 0;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg);
  display: block;
}

/* Background grid (career + skills) */
.background-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

.background-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.background-grid .skills-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}

/* Timeline */
.about-timeline-col .section-eyebrow {
  text-align: left;
  margin-bottom: 28px;
}

.about-timeline-col {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 80%);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--border);
  border: 2px solid var(--surface);
  transition: background-color var(--transition);
}

.timeline-item--current .timeline-marker {
  background-color: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-2-glow);
}

.timeline-years {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  opacity: 0.8;
}

.about-text-col .section-eyebrow,
.about-bio-content .section-eyebrow {
  text-align: left;
}

.about-text-col .section-title,
.about-bio-content .section-title {
  text-align: left;
  margin-bottom: 8px;
}

.about-subtitle {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.about-text-col p,
.about-bio-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-text-col p:last-of-type,
.about-bio-content p:last-of-type {
  margin-bottom: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 4px;
  margin-bottom: 36px;
}

.about-stat {
  padding: 20px 16px;
  text-align: center;
}

.about-stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.about-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-industries {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-industry-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

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

.about-industry-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 150px;
  flex-shrink: 0;
}

.about-industry-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Skills
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skills-category {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.skills-category-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.skill-item:hover {
  color: var(--text);
}

.skill-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
}

/* ============================================
   Resume
   ============================================ */

.resume-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.resume-text .section-eyebrow,
.resume-text .section-title {
  text-align: left;
}

.resume-text .section-title {
  margin-bottom: 12px;
}

.resume-text p {
  color: var(--text-muted);
  max-width: 40ch;
}

.resume-action {
  flex-shrink: 0;
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-intro .section-eyebrow,
.contact-intro .section-title {
  text-align: left;
}

.contact-intro p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  width: fit-content;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  background-color: var(--accent-glow);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.form-label span {
  color: var(--accent);
}

.form-input {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 1em;
}

.form-success {
  padding: 16px;
  background-color: var(--success-glow);
  border: 1px solid var(--success-dim);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social .social-link {
  border: none;
  padding: 8px;
  background: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.footer-social .social-link:hover {
  color: var(--text);
  background-color: var(--surface);
  border-color: transparent;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.back-to-top:hover {
  color: var(--accent);
}

/* ============================================
   Responsive — Tablet (≥640px)
   ============================================ */

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 48px;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-bio {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo-frame {
    width: 120px;
    height: 120px;
  }

  .hero-stats {
    max-width: 100%;
  }

  .hero-stat {
    padding: 0 12px;
  }

  .hero-stat-value {
    font-size: 1.4rem;
  }

  .background-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .background-grid .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 36px;
  }

  .resume-action {
    width: 100%;
  }

  .resume-action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Responsive — Mobile (<640px)
   ============================================ */

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background-color: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }

  .nav-link--cta {
    margin-top: 8px;
    text-align: center;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo-col {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-photo-frame {
    width: 200px;
    height: 200px;
  }

  .hero-headline {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-timeline-col {
    position: static;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .background-grid .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* Resume */
  .resume-block {
    padding: 28px 20px;
  }
}

/* ============================================
   Focus styles (keyboard nav)
   ============================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================
   Case Study Pages
   ============================================ */

.cs-hero {
  padding: calc(var(--nav-height) + 64px) 0 80px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.cs-back:hover {
  color: var(--accent);
}

.cs-back svg {
  flex-shrink: 0;
}

.cs-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.cs-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  flex: 1;
  transition: border-color 0.2s, background 0.2s;
}

.cs-nav-link:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.cs-nav-link--next {
  text-align: right;
}

.cs-nav-dir {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cs-hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.cs-hero-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 18ch;
}

.cs-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 40px;
}

/* project-tags inside cs-hero should not have bottom margin (meta bar follows directly) */
.cs-hero .project-tags {
  margin-bottom: 0;
}

/* standalone cs-outcome cards used outside .cs-outcomes grid (e.g. in two-col overview) */
.cs-two-col .cs-outcome {
  margin-bottom: 20px;
}
.cs-two-col .cs-outcome:last-child {
  margin-bottom: 0;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Case study cover strip */
.cs-cover {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.cs-cover--1 {
  background: linear-gradient(135deg, #020c1c 0%, #082040 50%, #0f3870 100%);
}

.cs-cover--2 {
  background: linear-gradient(135deg, #021512 0%, #063326 50%, #0d5840 100%);
}

.cs-cover--3 {
  background: linear-gradient(135deg, #0e0322 0%, #1c0848 50%, #2d1070 100%);
}

.cs-cover-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1px;
  opacity: 0.08;
}

.cs-cover-grid span {
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

/* Case study body sections */
.cs-body {
  padding: 80px 0;
}

.cs-body + .cs-body {
  padding-top: 0;
}

.cs-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.cs-section:last-child {
  border-bottom: none;
}

.cs-section--alt {
  background-color: var(--surface);
}

.cs-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cs-section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.cs-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 70ch;
}

.cs-text + .cs-text {
  margin-top: 16px;
}

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cs-two-col--wide {
  grid-template-columns: 3fr 2fr;
}

/* Process steps */
.cs-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.cs-process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.cs-process-step:last-child {
  border-bottom: 1px solid var(--border);
}

.cs-process-step:nth-child(2) .cs-process-num { color: var(--phase-teal); }
.cs-process-step:nth-child(3) .cs-process-num { color: var(--phase-amber); }
.cs-process-step:nth-child(4) .cs-process-num { color: var(--phase-purple); }

.cs-process-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 48px;
  padding-top: 4px;
}

.cs-process-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cs-process-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Outcomes / stats */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.cs-outcome {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.cs-outcome:nth-child(2) { border-top-color: var(--phase-teal); }
.cs-outcome:nth-child(2) .cs-outcome-value { color: var(--phase-teal); }
.cs-outcome:nth-child(3) { border-top-color: var(--phase-purple); }
.cs-outcome:nth-child(3) .cs-outcome-value { color: var(--phase-purple); }

.cs-outcome-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-outcome-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.cs-outcome-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Insight / callout block */
.cs-callout {
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}

.cs-callout p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
}

/* Method tags */
.cs-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ── Visual placeholder slots (shared across case studies) ── */
.cs-visual-slot { border: 1.5px dashed var(--border); border-radius: var(--radius-md); background: var(--surface); margin-top: 28px; overflow: hidden; }
.cs-visual-slot-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 24px; min-height: 220px; }
.cs-visual-slot-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.cs-visual-slot-label { font-size: 0.85rem; font-weight: 700; color: var(--text); text-align: center; }
.cs-visual-slot-hint { font-size: 0.75rem; color: var(--text-muted); text-align: center; max-width: 480px; line-height: 1.6; }
.cs-visual-slot-caption { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.cs-visual-slot-caption p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cs-visual-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 560px) { .cs-visual-2up { grid-template-columns: 1fr; } }

/* Navigation footer on case study pages */
.cs-nav-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cs-nav-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.cs-nav-footer a:hover {
  color: var(--accent);
}

/* Education & Certifications */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.edu-col {
  padding: 36px 32px;
}

.edu-col:not(:last-child) {
  border-right: 1px solid var(--border);
}

.edu-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.edu-col-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.edu-degree {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.edu-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.edu-item--cert .edu-degree::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .edu-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .edu-col {
    padding: 28px 24px;
  }
}

/* Persona cards */
.cs-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.cs-persona-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.cs-persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.6;
}

.cs-persona-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.cs-persona-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cs-persona-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.cs-persona-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cs-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.cs-persona-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Discovery journey timeline */
.cs-journey {
  position: relative;
  margin-top: 48px;
  padding-top: 12px;
}

.cs-journey-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.cs-journey-track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-fade) 100%);
}

.cs-journey-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  position: relative;
}

.cs-journey-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.cs-journey-phase--active .cs-journey-dot {
  background-color: var(--accent-2);
  color: #fff;
}

.cs-journey-body {
  text-align: center;
}

.cs-journey-period {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.cs-journey-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cs-journey-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* OKR cards */
.cs-okr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.cs-okr-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.cs-okr-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cs-okr-icon svg {
  color: var(--accent);
}

.cs-okr-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cs-okr-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Benchmark stats */
.cs-benchmark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.cs-benchmark-stat {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.cs-benchmark-stat:nth-child(2) { border-top-color: var(--phase-teal); }
.cs-benchmark-stat:nth-child(3) { border-top-color: var(--phase-amber); }

.cs-benchmark-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-benchmark-value span {
  color: var(--accent);
}

.cs-benchmark-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Concept cards */
.cs-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cs-concept-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cs-concept-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}

.cs-concept-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cs-concept-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Customer themes */
.cs-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.cs-theme-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cs-theme-bar {
  width: 3px;
  min-height: 40px;
  background-color: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.7;
}

.cs-theme-text h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.cs-theme-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive adjustments for case study pages */
@media (max-width: 768px) {
  .cs-two-col,
  .cs-two-col--wide {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs-outcomes {
    grid-template-columns: 1fr;
  }

  .cs-cover {
    height: 240px;
  }

  .cs-meta {
    gap: 20px;
  }

  .cs-persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-okr-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-benchmark {
    grid-template-columns: 1fr;
  }

  .cs-concept-grid {
    grid-template-columns: 1fr;
  }

  .cs-theme-grid {
    grid-template-columns: 1fr;
  }

  .cs-journey-track {
    flex-direction: column;
    gap: 0;
  }

  .cs-journey-track::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .cs-journey-phase {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0 0 24px;
  }

  .cs-journey-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .cs-journey-body {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .cs-persona-grid {
    grid-template-columns: 1fr;
  }

  .cs-okr-grid {
    grid-template-columns: 1fr;
  }
}
