* {
  box-sizing: border-box;
}

:root {
  --bg-primary: #fff;
  --bg-secondary: #fafafa;
  --text-primary: #111;
  --text-secondary: #333;
  --text-muted: #666;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent-color: #1a1a1a;
  --border-opacity: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0a0a0a;
  --text-primary: #f5f5f5;
  --text-secondary: #d4d4d4;
  --text-muted: #888;
  --border-color: #151515;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a, button, .project-card, .problem-section, .feature-section {
  transition: all 0.3s ease;
}

/* NAVIGATION */
.navbar {
  width: 100%;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.navbar-nav a:hover {
  text-decoration: underline;
}

/* THEME SWITCHER */
.theme-switcher {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.theme-option {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-option:hover {
  color: var(--text-secondary);
}

.theme-option.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 1px 3px var(--shadow-color);
}

.theme-option svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 800px) {
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }
}

/* MAIN LAYOUT */
.content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER SECTION */
header {
  margin: 4rem auto 2rem;
  text-align: left;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.locations {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Intro section */
.intro-text {
  flex: 1;
}

.role-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.25rem 0 1rem 0;
}

.intro-text .intro {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  max-width: none;
}

[data-theme="dark"] .intro-text .intro {
  color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 600px) {
  .intro-text .intro {
    font-size: 1.15rem;
  }
}

/* PROJECT CARDS */
.projects {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.project-info p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.project-info .tags {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ABOUT PAGE IMAGE */
.about-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2rem;
  object-fit: cover;
}

/* FOOTER */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  height: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

/* Page Load Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Initial hidden state for animated elements */
.case-study h1,
.case-study .subtitle,
.project-meta-block,
.hero-image,
.case-study h2,
.case-study h3,
.problem-section,
.case-study blockquote,
.feature-section,
.feature-media img,
.feature-media video {
  opacity: 0;
}

/* Animation classes */
.fade-in-up {
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in {
    animation: none;
    opacity: 1 !important;
  }

  .case-study h1,
  .case-study .subtitle,
  .project-meta-block,
  .hero-image,
  .case-study h2,
  .case-study h3,
  .problem-section,
  .case-study blockquote,
  .feature-section,
  .feature-media img,
  .feature-media video {
    opacity: 1;
  }
}

/* Email copy button */
.email-item {
  position: relative;
}

.email-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  cursor: pointer;
}

.email-link:hover {
  color: var(--text-primary);
}

.email-item:hover .email-tooltip {
  display: flex;
}

.email-tooltip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 10;
}

/* Invisible bridge to allow hovering from link to tooltip */
.email-tooltip::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.tooltip-email {
  color: #333;
}

.tooltip-copy-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.tooltip-copy-btn:hover {
  background-color: #f0f0f0;
}

.tooltip-copy-btn .copy-icon {
  color: #666;
}

.tooltip-copy-btn .check-icon {
  display: none;
  color: #22c55e;
}

.email-tooltip.copied .copy-icon {
  display: none;
}

.email-tooltip.copied .check-icon {
  display: block;
  color: #22c55e;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.footer-bottom-left {
  text-align: left;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.visitor-location {
  margin-top: 0.25rem !important;
  color: var(--text-muted) !important;
  opacity: 0.7;
}

/* Legacy footer support */
footer:not(.site-footer) {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  padding: 4rem 2rem;
  margin: 3rem 0 2rem;
}

footer:not(.site-footer) a {
  color: #aaa;
  margin-left: 0.5rem;
}

footer:not(.site-footer) a:hover {
  color: #0077b5;
}

footer:not(.site-footer) i {
  font-size: 1.1rem;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav {
    gap: 2rem;
  }

  .footer-status {
    order: -1;
  }
}

.about-inner {
  max-width: 70%; /* matches .project-info */
  margin: 0 auto;
  padding-top: 4rem;
}

.project-impact {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.case-study {
  padding-bottom: 6rem;
  padding-top: 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.case-study p {
  max-width: 65ch;
}

.case-study h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.case-study .subtitle {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: #777;
  margin-bottom: 2rem;
}

.case-study h2 {
  margin-top: 5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-study h2:first-of-type {
  margin-top: 0;
}

.case-study h3 {
  font-size: 1.1rem;
  margin-top: 3.5rem;
  color: #333;
}

.case-study p {
  line-height: 1.75;
}

.case-study ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  line-height: 1.75;
}

.case-study blockquote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  background: none;
  border: none;
  border-left: 3px solid var(--text-muted);
  border-radius: 0;
  box-shadow: none;
}

.case-study blockquote em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.case-study blockquote p {
  margin: 0 0 0.75rem 0;
}

.case-study blockquote cite {
  display: block;
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 4rem;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.01);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.1);
}

.hero-image.no-card,
.feature-media img.no-card {
  border-radius: 0;
  box-shadow: none;
}

.hero-image.no-card:hover,
.feature-media img.no-card:hover {
  transform: none;
  box-shadow: none;
}

.project-meta-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin: 3rem 0;
  padding: 2.5rem;
  background: rgba(250, 250, 250, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.meta-column {
  flex: 1;
  min-width: 200px;
}

.meta-column h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.meta-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-column li {
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.meta-column p {
  font-weight: normal;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .project-meta-block {
    flex-direction: column;
    gap: 2rem;
  }

  /* Mobile typography adjustments */
  .case-study h1 {
    font-size: 2.5rem;
  }

  .case-study .subtitle {
    font-size: 1.2rem;
  }

  .case-study h2 {
    font-size: 1.5rem;
    margin-top: 4rem;
  }

  .case-study h3 {
    font-size: 1rem;
    margin-top: 2.5rem;
  }

  .case-study p,
  .case-study ul {
    line-height: 1.7;
  }

  /* Mobile spacing adjustments */
  .case-study {
    padding-top: 4rem;
  }

  .hero-image {
    margin-bottom: 3rem;
  }

  .feature-section {
    margin: 3rem 0;
    padding-top: 3rem;
  }

  .problem-section {
    padding: 2rem;
    margin: 2rem 0;
  }

  .project-meta-block {
    padding: 2rem;
  }
}

.meta-column h4 i {
  margin-right: 0.5rem;
  color: #777;
  font-size: 0.95rem;
}

.goals-list i {
  margin-right: 0.5rem;
  color: #555;
  min-width: 1.25rem;
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.goals-list i {
  margin-right: 0.5rem;
  color: #555;
  min-width: 1.25rem;
}

.key-insights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.key-insights li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.key-insights li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 0;
}
.insight-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin: 4rem 0;
}

.insight-text {
  flex: 1;
  min-width: 300px;
}

.insight-image {
  flex: 1;
  min-width: 300px;
}

.insight-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.1);
}

.hero-video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 2rem 0;
  object-fit: cover;
}

.insight-image-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.image-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.image-caption {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: #555;
  margin-top: 0.5rem;
  text-align: left;
  width: 100%;
}

.design-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 150px;
}

.flow-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.flow-arrow {
  font-size: 2rem;
  color: #999;
}

.goals-card {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0 3rem; /* <-- smaller margin on top, larger margin on bottom */
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 4rem 0;
  width: 100%;
}

.highlight-card {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2.5rem 2rem; /* More top/bottom padding than sides */
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* nice breathing room between title and list */
}

.highlight-card h2 {
  margin-top: 0;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.before-after-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.before-after-item {
  display: flex;
  flex-direction: column;
}

.before-after-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 1rem;
}

.before-after-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.audit-screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.audit-screenshots img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 800px) {
  .before-after-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .audit-screenshots {
    grid-template-columns: 1fr;
  }
}

.feature-section {
  margin: 5rem 0;
}

.feature-section:first-of-type {
  margin-top: 0;
}

.feature-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-number {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.5rem;
}

.feature-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.feature-media {
  margin-top: 2rem;
}

.feature-media img,
.feature-media video {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-media img:hover,
.feature-media video:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.1);
}

.problem-section {
  margin: 3rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(250,250,250,0.8) 0%, rgba(255,255,255,0.9) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.problem-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #111;
}

.problem-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.problem-section blockquote {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ==========================================
   CASE STUDY SIDE RAIL NAVIGATION
   ========================================== */

.case-study-layout {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.case-study-content {
  flex: 1;
  max-width: 900px;
}

.case-study-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: relative;
}

.side-rail {
  position: sticky;
  top: 6rem;
  padding-top: 2rem;
}

.side-rail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.side-rail-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-rail-nav li {
  margin-bottom: 0.5rem;
}

.side-rail-nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.side-rail-nav a:hover {
  color: var(--text-primary);
}

.side-rail-nav a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hide sidebar on smaller screens */
@media (max-width: 1100px) {
  .case-study-layout {
    display: block;
  }

  .case-study-sidebar {
    display: none;
  }

  .case-study-content {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* Project Context Block */
.project-context-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 3rem;
  border-radius: 16px;
  margin: 2rem 0 3rem 0;
  border: 1px solid var(--border-color);
}

.context-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.context-right {
  display: flex;
  flex-direction: column;
}

.context-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.context-section p {
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.context-section p strong {
  color: var(--text-primary);
}

.context-section .role-title {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.context-right .context-section p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .project-context-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

/* Outcomes Section - Bold Typography */
.outcomes-section {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 4rem 3rem;
  border-radius: 16px;
  margin: 3rem 0;
}

.outcomes-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--bg-primary);
}

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

.outcome-item {
  text-align: center;
}

.outcome-number {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.outcome-label {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .outcomes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .outcomes-section {
    padding: 3rem 2rem;
  }
  .outcome-number {
    font-size: 3.5rem;
  }
}

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

/* Dark mode: light border on cards */
[data-theme="dark"] .project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

/* ==========================================
   DARK MODE - CASE STUDY SUPPORT
   ========================================== */

[data-theme="dark"] .case-study {
  color: var(--text-primary);
}

[data-theme="dark"] .case-study h1,
[data-theme="dark"] .case-study h2,
[data-theme="dark"] .case-study h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .case-study p,
[data-theme="dark"] .case-study li {
  color: var(--text-secondary);
}

[data-theme="dark"] .case-study .subtitle {
  color: var(--text-muted);
}

[data-theme="dark"] .problem-section {
  background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(20,20,20,0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .problem-section h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-section p {
  color: var(--text-secondary);
}

[data-theme="dark"] .feature-number {
  color: var(--text-primary);
}

[data-theme="dark"] .goals-card,
[data-theme="dark"] .highlight-card {
  background-color: #141414;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .section-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .case-study blockquote {
  border-left-color: var(--text-muted);
  color: var(--text-secondary);
}

[data-theme="dark"] .case-study blockquote cite {
  color: var(--text-muted);
}

[data-theme="dark"] .project-context-block {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .outcomes-section {
  background: var(--text-primary);
  color: var(--bg-primary);
}

[data-theme="dark"] .outcomes-section h2 {
  color: var(--bg-primary);
}

[data-theme="dark"] .side-rail-nav a {
  color: var(--text-muted);
}

[data-theme="dark"] .side-rail-nav a:hover,
[data-theme="dark"] .side-rail-nav a.active {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-media img,
[data-theme="dark"] .feature-media video,
[data-theme="dark"] .hero-image {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}
