@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700;800;900&family=Source+Sans+Pro:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #0a0a0a;
  font-family: 'Source Sans Pro', sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
/* Landing dark mode: flip dark text to white, keep purple accents */
body, .topbar, .topbar *:not(.status-online),
.hero-statement, .hero-statement em,
.hero-intro-text, .hero-intro-text strong,
.hero-meta, .hero-meta strong,
.preview-title, .preview-sub, .preview-meta,
.nav a, .nav-item, .nav-section-title,
.footer, .footer * { color: #ffffff; }
.hero-statement em, .preview-tag, .accent { color: #D1ADFE; }

/* ===== Top bar ===== */
.topbar {
  position: fixed;
  top: 24px; left: 32px; right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  z-index: 50;
}
.status-online { color: #1f9d55; }

/* ===== Layout ===== */
.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100vh;
  padding: 72px 32px 24px;
  gap: 0;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dcd6c8;
  padding-right: 0;
}

.brand {
  padding: 8px 16px 20px;
  border-bottom: 1px solid #dcd6c8;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: url("images/landing/logo.svg") center / contain no-repeat;
}
.brand-name {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.cards {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-wrap {
  flex: 1;
  position: relative;
  border-bottom: 1px solid #dcd6c8;
  display: flex;
}

.card {
  flex: 1;
  padding: 24px 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
  transform-origin: left center;
}
.card-wrap:hover .card {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px) rotate(-10deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.card .card-logo {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.card .card-logo svg { width: 100%; height: 100%; }

.card .card-meta {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b6558;
  line-height: 1.6;
}
.card .card-meta .tags {
  color: #ffffff;
  display: block;
  margin-bottom: 6px;
}

.view-projects {
  position: absolute;
  bottom: 0;
  right: 16px;
  transform: translateY(calc(50% - 18px));
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  background: #0a0a0a;
  padding: 0 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  pointer-events: none;
  z-index: 3;
}
.card-wrap:hover .view-projects {
  opacity: 1;
}

.bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid #dcd6c8;
}
.bottom-nav a {
  padding: 20px 0;
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  border-right: 1px solid #dcd6c8;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bottom-nav a:last-child { border-right: none; }
.bottom-nav a:hover { background: #ffffff; }

/* ===== Main panel ===== */
.main {
  position: relative;
  padding: 12px 0 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Default hero */
.hero {
  position: absolute;
  inset: 12px 0 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.hero.hidden { opacity: 0; pointer-events: none; }

.hero-statement {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 7.5vw, 120px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #ffffff;
  max-width: 1200px;
}
.hero-statement em {
  font-style: italic;
  font-weight: 400;
  color: #6b3fd4;
}
.hero-statement .line {
  display: block;
  overflow: hidden;
}
.hero-statement .line > span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: heroLineUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-statement .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero-statement .line:nth-child(2) > span { animation-delay: 0.22s; }
.hero-statement .line:nth-child(3) > span { animation-delay: 0.39s; }
@keyframes heroLineUp {
  to { transform: translateY(0); opacity: 1; }
}
.hero-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
}
.hero-avatar {
  width: 64px; height: 64px;
  flex-shrink: 0;
  background: url("images/landing/logo.svg") center / contain no-repeat;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-intro-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #ffffff;
  padding-top: 4px;
}
.hero-intro-text strong { font-weight: 700; }
.hero-meta {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6558;
}
.hero-meta strong { color: #ffffff; font-weight: 700; }

/* Preview (shown on hover) */
.preview {
  position: absolute;
  inset: 12px 0 80px 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
  border-radius: 14px;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.preview.active { opacity: 1; }

/* Ambient wash, keyed per project via the inline gradient on .preview-bg.
   Kept far back so the panel reads as a dark card, not a photo. */
.preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.20;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}
.preview.active .preview-bg { transform: scale(1); }

.preview-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #0f1117 34%, rgba(15, 17, 23, 0.72) 100%);
}

/* Two columns: the argument on the left, the evidence on the right. */
.preview-content {
  position: relative;
  height: 100%;
  padding: 52px 52px 52px 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

.preview-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 20px;
}

.preview-desc {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}
.preview-desc strong { color: #ffffff; font-weight: 600; }

.preview-rule {
  height: 1px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  margin: 28px 0 24px;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
}
.preview-meta dt {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 7px;
}
.preview-meta dd {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

/* Right column: media card over a label. */
.preview-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.preview-media {
  width: 100%;
  /* Matches report-video-01.mp4 (1800x1080) so nothing is cropped. */
  aspect-ratio: 5 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s, opacity 0.5s ease 0.06s;
}
.preview.active .preview-media { transform: translateY(0); opacity: 1; }
.preview-media img,
.preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Projects without a real asset get their own colour field instead of a
   broken frame; the gradient is set inline per project. */
.preview-media--swatch { position: relative; }

.preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.preview-cta .arrow { font-size: 16px; line-height: 1; }

@media (max-width: 1080px) {
  .preview-content {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    padding: 36px;
  }
  .preview-aside { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .preview-bg,
  .preview-media {
    transition: none;
    transform: none;
  }
  .preview-media { opacity: 1; }
}

/* ===== Footer ===== */
.footer {
  position: fixed;
  left: 32px; right: 32px; bottom: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  color: #4a4637;
  z-index: 40;
}
.footer .socials {
  display: flex;
  gap: 18px;
  color: #ffffff;
}
.footer .socials a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer .socials svg { width: 18px; height: 18px; }

/* ===== Case Study Overlay ===== */
.case-study {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  color: #ffffff;
  z-index: 100;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.case-study.open {
  opacity: 1;
  pointer-events: auto;
}
.case-study-inner {
  padding: 64px 144px;
  max-width: none;
}
/* Dark mode override for case study */
.case-study .cs-title,
.case-study .cs-subtitle,
.case-study .cs-facts h4,
.case-study .cs-facts li,
.case-study .cs-facts p,
.case-study .cs-impact-heading,
.case-study .cs-headline,
.case-study .cs-body,
.case-study .cs-section-body,
.case-study .cs-section-title,
.case-study .cs-callout-heading,
.case-study .cs-callout-body,
.case-study .cs-goal-title,
.case-study .cs-goal-item,
.case-study .cs-tab,
.case-study .cs-tab.active,
.case-study .cs-feature-title,
.case-study .cs-feature-body,
.case-study .cs-synth-quote,
.case-study .cs-insight-title,
.case-study .cs-insight-body,
.case-study .cs-insight-text { color: #ffffff !important; }
.case-study .cs-impact-sub,
.case-study .cs-section-sub,
.case-study .cs-meta,
.case-study [style*="#8a8372"],
.case-study [style*="#6b6558"],
.case-study [style*="#6b6b85"] { color: rgba(255,255,255,0.85) !important; }
.case-study .cs-tab { color: rgba(255,255,255,0.85); }
.case-study .cs-impact-sub,
.case-study .cs-section-sub,
.case-study .cs-stat-num { color: #EFD6FF !important; }
.case-study .cs-stat-desc { color: #ffffff !important; }
.case-study .cs-contribution-body { color: #ffffff !important; }
.case-study .cs-callout,
.case-study .cs-callout .cs-callout-tag,
.case-study .cs-callout .cs-callout-body,
.case-study .cs-callout .cs-callout-heading { color: #17202a !important; }
.case-study .cs-tab:hover { color: #ffffff; }
.case-study .cs-tab.active { background: rgba(107, 63, 212, 0.18); color: #ffffff; }
.case-study .cs-synth-quote { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.case-study .cs-image-contain { background: rgba(255,255,255,0.04); }
/* Climber Insight Report — centered header, slightly smaller title */
#case-imagegen .cs-header { text-align: center; }
#case-imagegen .cs-title { font-size: clamp(32px, 4.4vw, 64px); }
#case-imagegen .cs-facts { margin-left: auto; margin-right: auto; }
/* Cover compare: legacy vs Figma Make */
.cs-hero-compare {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.cs-hero-compare-item { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-hero-compare-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.cs-hero-compare-frame {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex: 1;
}
.cs-hero-compare-frame img,
.cs-hero-compare-frame video {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.case-study hr,
.case-study .cs-divider { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.12); }

.case-close {
  position: fixed;
  top: 64px;
  right: 144px;
  z-index: 110;
  background: #17202a;
  color: #f4f1ea;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.case-close:hover { transform: rotate(90deg); background: #000; }

/* Header section */
.cs-header {
  padding: 80px 0 0;
}
.cs-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 12px;
}
.cs-subtitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 64px;
}
.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
  max-width: 1400px;
}
.cs-facts h4 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}
.cs-facts ul {
  list-style: none;
}
.cs-facts li,
.cs-facts p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
}

/* Hero image placeholder */
.cs-hero-image {
  margin-top: 80px;
  width: 100%;
  height: 1200px;
  background: #d5cfc0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #8a8372;
  text-transform: uppercase;
}

/* Impact section */
.cs-impact {
  margin-top: 80px;
  padding: 0;
}
.cs-impact-sub {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6b3fd4;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cs-impact-heading {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 1000px;
}
.cs-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 96px;
}
.cs-stat-num {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #6b3fd4;
  margin-bottom: 12px;
}
.cs-stat-desc {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
  max-width: 520px;
}

/* Contribution section (reuses impact layout) */
.cs-contribution {
  margin-top: 80px;
}
.cs-contribution-body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  width: 100%;
}

/* Detailed / narrative sections */
.cs-detail {
  margin-top: 80px;
  padding: 0;
  max-width: 1400px;
}
.cs-section {
  margin-top: 104px;
}
.cs-section:last-child {
  padding-bottom: 96px;
}
.cs-section-body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  width: 100%;
}
.cs-section-body p + p { margin-top: 16px; }
.cs-section-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-top: 12px;
}
.cs-section-body ul li { margin-bottom: 8px; }

/* Image blocks */
.cs-images {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}
.cs-images.layout-single   { grid-template-columns: 1fr; }
.cs-images.layout-2-col    { grid-template-columns: repeat(2, 1fr); }
.cs-images.layout-3-col    { grid-template-columns: repeat(3, 1fr); }
.cs-images.layout-4-col    { grid-template-columns: repeat(4, 1fr); }
.cs-images.layout-2x2      { grid-template-columns: repeat(2, 1fr); }
.cs-images.layout-stacked  { grid-template-columns: 1fr; }
.cs-images.layout-asymmetric {
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: auto;
}
.cs-images.layout-asymmetric .cs-image:first-child { grid-row: span 2; }

.cs-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-image .cs-image-box {
  width: 100%;
  background: #d5cfc0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #8a8372;
  text-transform: uppercase;
}
.cs-image .cs-image-caption {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6b6558;
  line-height: 1.4;
}
.cs-lead {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
}
.cs-headline {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 40px;
}
.cs-body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  max-width: 1100px;
}
/* Overview callouts */
.cs-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.cs-callout { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.cs-callout--purple { background: #e6dbf7; }
.cs-callout--cream { background: #f4e8d0; }
.cs-callout-tag {
  display: inline-block; align-self: flex-start; padding: 8px 16px; border-radius: 10px;
  font-family: 'Source Sans Pro', sans-serif; font-size: 18px; font-weight: 700; color: #ffffff;
}
.cs-callout--purple .cs-callout-tag { background: #c9b5ea; }
.cs-callout--cream .cs-callout-tag { background: #e8d5a5; }
.cs-callout-body {
  font-family: 'Source Sans Pro', sans-serif; font-size: 22px; font-weight: 400;
  line-height: 1.5; color: #ffffff; margin: 0;
}
.cs-callout-icon { font-size: 40px; margin-top: auto; }
.cs-goal {
  margin-top: 24px; background: #faf9fb; border-radius: 20px;
  padding: 48px 56px; text-align: center;
}
.cs-goal-icon { font-size: 48px; margin-bottom: 16px; }
.cs-goal-heading {
  font-family: 'Source Sans Pro', sans-serif; font-size: 32px; font-weight: 700;
  color: #ffffff; margin: 0 0 24px 0;
}
.cs-goal-list {
  list-style: none; padding: 0; margin: 0 auto; display: flex; flex-direction: column;
  gap: 16px; max-width: 760px; text-align: left;
}
.cs-goal-list li {
  display: flex; align-items: flex-start; gap: 16px;
  font-family: 'Source Sans Pro', sans-serif; font-size: 22px; line-height: 1.5; color: #ffffff;
}
.cs-goal-check {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: #8b5cf6; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin-top: 2px;
}
/* Split layout (Solution) */
.cs-split {
  display: grid; grid-template-columns: 308px 1fr; gap: 80px; align-items: start; margin-top: 24px;
}
.cs-split-left {
  position: sticky; top: 80px; opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cs-split-left.is-visible { opacity: 1; transform: translateX(0); }
.cs-split-right { display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 900px) {
  .cs-split { grid-template-columns: 1fr; gap: 32px; }
  .cs-split-left { position: static; }
}
.cs-tabs { display: flex; flex-direction: column; gap: 8px; }
.cs-tabs { --tab-accent: #D1ADFE; }
.cs-tab {
  text-align: left; background: transparent; border: none;
  border-left: 3px solid rgba(255, 255, 255, 0.14);
  padding: 14px 20px; cursor: pointer; font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px; font-weight: 500; line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  transition: all 0.25s ease;
}
.cs-tab:hover { color: #ffffff; border-left-color: rgba(255, 255, 255, 0.35); }
.cs-tab:focus-visible { outline: 2px solid var(--tab-accent); outline-offset: 2px; }
/* The panel is dark, so the active tab lifts with a tinted fill rather than
   the light lavender this rule used to carry. */
.cs-tab.is-active {
  border-left-color: var(--tab-accent);
  color: #ffffff;
  font-weight: 700;
  background: rgba(107, 63, 212, 0.26);
}
.cs-tab-num {
  display: block; font-family: 'Space Mono', monospace; font-size: 12px;
  color: var(--tab-accent); letter-spacing: 0.08em; margin-bottom: 4px;
}
.cs-tab-panel { display: none; }
.cs-tab-panel.is-active { display: block; }
.cs-image-box.cs-image-contain {
  background: #f5f0ff; display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box; height: auto !important;
}
.cs-image-contain img { width: 100%; height: auto; display: block; }
/* Research synthesis graph */
.cs-synth { margin-top: 40px; position: relative; }
.cs-synth-quotes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; }
.cs-synth-col { display: flex; flex-direction: column; gap: 24px; }
.cs-synth-quote {
  background: #f5f2fa; border-radius: 16px; padding: 28px 28px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.cs-synth-mark {
  font-family: 'Source Sans Pro', sans-serif; font-size: 40px; line-height: 1;
  font-weight: 700; color: #D1ADFE; margin-bottom: 12px;
}
.cs-synth-text {
  font-family: 'Source Sans Pro', sans-serif; font-size: 18px; font-weight: 600;
  line-height: 1.45; color: #D1ADFE; margin: 0 0 20px 0;
}
.cs-synth-role {
  font-family: 'Source Sans Pro', sans-serif; font-size: 14px; color: #6b6b85;
}
.cs-synth-arrows { height: 80px; position: relative; margin: 8px 0; }
.cs-synth-arrows svg { width: 100%; height: 100%; display: block; }
.cs-synth-challenges { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.cs-synth-challenge {
  background: #4a3f8a; color: #fff; border-radius: 16px; padding: 28px; min-height: 180px;
}
.cs-synth-challenge-label {
  font-family: 'Source Sans Pro', sans-serif; font-size: 14px; font-weight: 400;
  color: #c9c2e8; margin-bottom: 12px;
}
.cs-synth-challenge-title {
  font-family: 'Source Sans Pro', sans-serif; font-size: 20px; font-weight: 700;
  line-height: 1.35; margin: 0;
}
/* Insights 4-card row */
.cs-insight-grid {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.cs-insight-card { display: flex; flex-direction: column; gap: 20px; }
.cs-insight-icon { font-size: 48px; line-height: 1; }
.cs-insight-text {
  font-family: 'Source Sans Pro', sans-serif; font-size: 20px; font-weight: 400;
  line-height: 1.5; color: #ffffff; margin: 0;
}
/* Case study top nav */
.cs-topnav {
  position: sticky; top: 16px; z-index: 5;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center;
  height: 96px; padding: 0 28px; margin: 16px 24px 0;
  background: rgba(20, 22, 28, 0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  font-family: 'Source Sans Pro', sans-serif; font-size: 16px; color: #d8dde5;
}
.cs-topnav-left { text-align: left; display: flex; align-items: center; gap: 10px; }
.cs-topnav-center { text-align: center; color: #fff; font-weight: 500; }
.cs-topnav-right {
  text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  font-family: 'Source Sans Pro', sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: 2px; color: #6b3fd4; text-transform: uppercase;
}
.cs-topnav-right::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #6b3fd4; box-shadow: 0 0 10px #6b3fd4;
}
.cs-topnav-back {
  cursor: pointer; background: none; border: none; color: #d8dde5; font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px; padding: 0; font-family: inherit;
}
.cs-topnav-back:hover { color: #fff; }

/* ===== Standalone case-study pages =====
   On index.html the case studies are overlays (fixed, hidden until .open).
   When a case study is its own page, <html class="case-page"> makes it a
   normal scrolling document instead. */
html.case-page,
html.case-page body {
  height: auto;
  overflow: visible;
}
html.case-page .case-study {
  position: static;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

/* Marks copy that still needs real content before this page is shared. */
.tk {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  background: rgba(232, 182, 74, 0.18);
  border: 1px dashed rgba(232, 182, 74, 0.55);
  color: #e8b64a;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Real screenshot in a case-study header, in place of the .cs-hero-image placeholder. */
.cs-hero-shot {
  margin: 80px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cs-hero-shot img {
  width: 100%;
  height: auto;
  display: block;
}
