/* project3.css - V-Ed App case study, rebuilt on the same design system as
   the Sportscove/project0 and CX Portal Onboarding Review pages (same
   tokens, same components: light theme, red accent, Space Grotesk, side
   nav, stat boxes, outcome/impact cards, bridge table, etc.). Nothing in
   the shared system below was changed — only content-specific class names
   at the very bottom differ from the CX Portal file, and only where V-Ed's
   content genuinely needed something the CX page didn't (none, as it turns
   out — this file is the same component set, reused as-is). */

:root {
  --bg-solid: #ffffff;
  --bg: #ffffff;
  --panel-bg: #eeeeee;
  --text: #100f0e;
  --muted: #47423d;
  --accent: #D03A46;
  --card-bg: #ffffff;
  --card-border: rgba(16, 15, 14, 0.14);
  --card-hover-bg: #fbfaf8;
  --decision-bg: rgba(208, 58, 70, 0.06);
  --decision-border: rgba(208, 58, 70, 0.22);
  --success: #268C50;
  --success-border: rgba(38, 140, 80, 0.35);
  --success-bg: rgba(38, 140, 80, 0.09);
  --danger: #B23842;
  --danger-border: rgba(178, 56, 66, 0.35);
  --danger-bg: rgba(178, 56, 66, 0.09);
  --shadow-sm: 0 1px 2px rgba(16, 15, 14, 0.04), 0 4px 14px rgba(16, 15, 14, 0.07);
  --shadow-md: 0 4px 10px rgba(16, 15, 14, 0.06), 0 12px 28px rgba(16, 15, 14, 0.1);
}

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

img {
  -webkit-user-drag: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-solid);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Back Link */
.back-link {
  position: absolute;
  top: 50px;
  left: max(2rem, calc((100vw - 900px) / 2));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
}

.back-link-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.back-link-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.back-link:hover .back-link-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(-3px);
}

.back-link:hover .back-link-arrow svg {
  stroke: #ffffff;
}

/* Main Content */
.project-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.project-section {
  padding: 5.5rem 0;
}

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

/* Hero Section */
.project-hero-section {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  text-align: center;
}

.project-meta {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  margin-top: 2rem;
  font-weight: 700;
}

.project-title {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: none;
  margin-bottom: 2.5rem;
  color: var(--text);
  line-height: 1.15;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.project-subtitle {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0;
}

.hero-contribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.hero-contribution-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero-contribution-list {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-image-wrapper {
  margin-top: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  overflow: hidden;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 900px;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Typography */
h2 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.3;
  text-transform: none;
  margin-bottom: 2.75rem;
  color: var(--text);
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-transform: none;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  margin-bottom: 1.25rem;
  color: var(--text);
}

h5 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  margin-bottom: 0.8rem;
  color: var(--text);
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

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

.intro-highlight {
  color: var(--accent);
}

/* Context Section */
.context-section {
  position: relative;
  z-index: 2;
  background: transparent;
}

.context-section .section-content > p {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3.5rem;
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.detail-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

/* Constraint callout */
.constraint-callout {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  background: var(--decision-bg);
  border: 1px solid var(--decision-border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 1.5rem 1.75rem;
  margin-top: 2.5rem;
}

.constraint-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.constraint-callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .constraint-callout {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Research method strip */
.method-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2rem;
  margin-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--card-border);
}

.method-strip .detail-item {
  gap: 0.6rem;
}

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

/* Finding -> implication -> design response bridge table */
.bridge-table {
  margin-top: 3rem;
  border: 1px solid var(--card-border);
  border-radius: 0;
  overflow: hidden;
}

.bridge-header,
.bridge-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 1.5rem;
}

.bridge-header {
  padding: 1rem 1.5rem;
  background: var(--card-hover-bg);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.bridge-row {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.bridge-row span:last-child {
  color: var(--text);
}

@media (max-width: 768px) {
  .bridge-header {
    display: none;
  }

  .bridge-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .bridge-row span:first-child {
    color: var(--text);
    font-weight: 500;
  }

  .bridge-row span:nth-child(2)::before {
    content: "→ ";
    color: var(--accent);
  }

  .bridge-row span:last-child::before {
    content: "→ ";
    color: var(--accent);
  }
}

.solution-image-wrapper {
  margin: 5rem 0;
  text-align: center;
}

.solution-image {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.solution-image:hover,
.solution-image:focus-visible {
  transform: scale(1.02);
}

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

@media (prefers-reduced-motion: reduce) {
  .solution-image {
    transition: none;
  }

  .solution-image:hover,
  .solution-image:focus-visible {
    transform: none;
  }
}

.solution-video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: #100f0e;
}

.solution-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin: 3rem 0;
}

.solution-images-grid .solution-image {
  width: 100%;
}

.design-decision-block {
  margin-bottom: 5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  transition: none;
}

.design-decision-block:last-of-type {
  margin-bottom: 0;
}

.decision-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}

.decision-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--decision-bg);
  border: 1px solid var(--decision-border);
  border-radius: 0;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

.decision-title-wrapper h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-transform: none;
  margin-bottom: 1rem;
  color: var(--text);
}

.decision-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin: 0;
  font-weight: 500;
}

.decision-content {
  display: block;
}

.method-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.method-bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.method-bullets li strong {
  color: var(--text);
  font-weight: 600;
}

.method-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Method detail (used for design-system reference subsections) */
.method-detail {
  margin-top: 6.5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--card-border);
}

.method-detail:first-of-type {
  margin-top: 6.5rem;
}

.method-detail h3 {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
}

.method-detail p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  color: var(--muted);
}

/* Outcomes */
.outcome-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 2rem;
}

.outcome-card {
  padding: 18px 20px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-left: 3px solid var(--danger);
  border-radius: 0;
  transition: all 0.3s ease;
}

.outcome-card:hover {
  background: rgba(178, 56, 66, 0.14);
  border-color: var(--danger);
  transform: translateY(-3px);
}

.outcome-card h4 {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.outcome-card p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: var(--muted);
}

.outcome-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--decision-bg);
  border: 1px solid var(--decision-border);
  border-radius: 0;
  padding: 4px 10px;
  margin-top: 10px;
}

.outcome-card-tag i {
  font-size: 12px;
}

.learning-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.learning-item {
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0;
}

.learning-item p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

.learning-item strong {
  color: var(--accent);
  font-weight: 500;
}

.learning-item-image {
  margin-top: 1.5rem;
  text-align: center;
}

.learning-item-image img {
  width: auto;
  height: 320px;
  max-width: 100%;
  border-radius: 8px;
  display: inline-block;
}

@media (max-width: 600px) {
  .learning-item-image img {
    height: 260px;
  }
}

/* Bottom Link Wrapper */
.bottom-link-wrapper {
  position: relative;
  margin-bottom: 40px;
  padding-top: 2.5rem;
  min-height: 60px;
  text-align: center;
}

.footer-back-link {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
}

.footer-back-link .back-link-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-back-link .back-link-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  transition: stroke 0.3s ease;
}

.footer-back-link:hover .back-link-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(-3px);
}

.footer-back-link:hover .back-link-arrow svg {
  stroke: #ffffff;
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 45px 20px;
  font-size: 0.9rem;
  color: #8a8682;
  border-top: 1px solid #e8e5e1;
  background: rgba(250, 249, 247, 0.6);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 48px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 0;
  cursor: zoom-out;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay,
  .lightbox-overlay img {
    transition: none;
  }
}

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

@media (max-width: 768px) {
  .project-content {
    padding: 0 1.5rem;
  }

  .back-link {
    top: 20px;
    left: 1.5rem;
  }

  .back-link-arrow {
    width: 34px;
    height: 34px;
  }

  .back-link-arrow svg {
    width: 14px;
    height: 14px;
  }

  .project-section {
    padding: 4rem 0;
  }

  .project-hero-section {
    padding: 4.5rem 0 3.5rem;
  }

  .project-title {
    font-size: 2.1rem;
  }

  .project-subtitle {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  .project-details {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .solution-images-grid {
    grid-template-columns: 1fr;
  }

  .outcome-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .design-decision-block {
    padding: 0;
    margin-bottom: 3rem;
  }

  .decision-header {
    flex-direction: column;
    gap: 1.25rem;
  }

  .decision-title-wrapper h3 {
    font-size: 1.25rem;
  }

  .bottom-link-wrapper {
    text-align: center;
    margin-bottom: 50px;
  }

  .footer-back-link {
    margin: 20px auto;
  }

  .site-footer {
    padding: 30px 20px;
  }

  .method-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .project-section {
    padding: 3rem 0;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .design-decision-block {
    padding: 0;
    margin-bottom: 2.5rem;
  }

  .decision-title-wrapper h3 {
    font-size: 1.1rem;
  }
}


/* =====================================================================
   Additions shared with the CX Portal page — same component set,
   reused here so this page stays visually consistent with it.
   ===================================================================== */

/* In-session / interview quote — a line pulled from a usability test or
   interview, set apart from surrounding prose. */
.session-quote {
  display: block;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.25rem;
  margin: 1.75rem 0;
}

/* Small quote inside a compact insight card — tighter spacing than the
   standalone .session-quote so it reads as a pull-quote within the
   card, not a separate block. */
.other-work-card .session-quote {
  font-size: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
}

/* Also-worked-on / insight mini grid — small boxes summarizing adjacent
   findings, deliberately light on text: a heading and one blurb each. */
.other-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.25rem 0 3rem;
}

.other-work-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
}

.other-work-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.other-work-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
}

.other-work-card .solution-image-wrapper {
  margin: 1rem 0 1.25rem;
}

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

/* Spaced-list — a looser-gap variant of .method-bullets */
.method-bullets.spaced-list {
  gap: 1.1rem;
}

/* Centered quote — a single line set apart and centered */
.centered-quote {
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  max-width: 560px;
  margin: 1.5rem auto 3.5rem;
  line-height: 1.6;
}

/* Old vs New / side-by-side image comparison */
.onboarding-flow-images {
  display: flex;
  gap: clamp(2rem, 8vw, 12rem);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.flow-image-item {
  flex: 0 1 340px;
  min-width: 0;
}

.flow-image-item.is-compact {
  flex-basis: 280px;
}

.flow-image-item .solution-image-wrapper {
  margin: 0;
  max-width: 340px;
}

@media (max-width: 768px) {
  .onboarding-flow-images {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .flow-image-item {
    flex: none;
    width: 100%;
    max-width: 340px;
  }
}

/* Stacked variant — same component, images one below the other instead
   of side by side (used where two images belong to one continuous
   comparison rather than a left/right pairing). */
.onboarding-flow-images.is-stacked {
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.onboarding-flow-images.is-stacked .flow-image-item {
  flex: none;
  width: 100%;
  max-width: 520px;
}

.onboarding-flow-images.is-stacked .flow-image-item .solution-image-wrapper {
  max-width: 520px;
}

/* Plain numbered issue list — a circle marker + text, no red/danger
   tint. Used for a straightforward numbered list within the narrative,
   not a diagnostic "problem card." */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.issue-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--card-border);
}

.issue-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.issue-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.issue-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 600px) {
  .issue-item {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
  }
}

/* Caption under a single image or paired image */
.media-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  letter-spacing: 0.02em;
}

/* Flat image modifiers — diagrams / non-screenshot images */
.solution-image.no-shadow {
  box-shadow: none;
}

.size-compact {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.solution-image-wrapper:has(.size-compact) {
  margin: 2rem 0;
}

/* Sub-headings under a main Issue/Fix heading */
.section-subhead {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text);
  margin-top: 2.75rem;
  margin-bottom: 0.6rem;
}

.section-subhead-note {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* Compare grid — two labeled columns side by side */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 2.25rem 0;
}

.compare-grid.is-boxed {
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  gap: 2rem;
}

.compare-col-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
}

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

  .compare-grid.is-boxed {
    padding: 1.5rem;
  }
}

/* Impact cards — the wins/positives counterpart to .outcome-card */
.impact-subheading {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--success);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--card-border);
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.impact-card {
  padding: 1.25rem 1.5rem;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-left: 3px solid var(--success);
  border-radius: 0;
  transition: all 0.3s ease;
}

.impact-card:hover {
  background: rgba(38, 140, 80, 0.14);
  border-color: var(--success);
  transform: translateY(-3px);
}

.impact-card h4 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.impact-tick {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.impact-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .impact-cards {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .impact-card {
    padding: 1.1rem 1.25rem;
  }

  .impact-card h4 {
    font-size: 0.9rem;
  }

  .impact-card p {
    font-size: 0.82rem;
  }
}

/* Boxed section kickers — colored badge for Issues (red) / Solutions
   (green) so the two halves of the case study announce themselves. */
.section-kicker.is-issue,
.section-kicker.is-solution {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.75rem;
}

.section-kicker.is-issue {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.section-kicker.is-solution {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* Stat box — a single number/stat standing alone with a short line
   underneath. Used wherever a figure needs to be read on its own. */
.stat-box {
  border: 1px solid var(--card-border);
  background: transparent;
  padding: 2.25rem 2rem;
  margin: 1.75rem auto;
  max-width: 520px;
  text-align: center;
}

.stat-box-number {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.stat-box-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto;
}

.stat-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.stat-box-grid .stat-box {
  margin: 0;
  max-width: 100%;
}

@media (max-width: 768px) {
  .stat-box {
    padding: 1.75rem 1.5rem;
    margin: 1.5rem auto;
  }

  .stat-box-number {
    font-size: 2.1rem;
  }

  .stat-box-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stat-box-number {
    font-size: 1.9rem;
  }

  .stat-box-text {
    font-size: 0.82rem;
  }
}

/* Process track — numbered horizontal pipeline (Design Process stages) */
.process-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  row-gap: 2.5rem;
  column-gap: 1rem;
  margin: 3rem 0 1rem;
  padding-top: 10px;
}

.process-track-step {
  position: relative;
  z-index: 1;
  flex: 0 0 18%;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.process-track-marker {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--panel-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 0.9rem;
}

.process-track-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.process-track-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 768px) {
  .process-track-step {
    flex: 0 0 100%;
  }
}

/* Side navigation — numbered main items pinned to the left margin, with
   a nested sub-list under Issues and Solutions. */
.side-nav {
  position: fixed;
  top: 50%;
  left: 2.5rem;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.side-nav-item {
  display: flex;
  flex-direction: column;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: color 0.25s ease;
}

.side-nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.side-nav-link:hover,
.side-nav-link.is-active {
  color: var(--accent);
}

.side-nav-link:hover .side-nav-num,
.side-nav-link.is-active .side-nav-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.side-nav-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0 0 12px;
  padding-left: 0.9rem;
  border-left: 1.5px solid var(--card-border);
}

.side-nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.side-nav-sublink-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.side-nav-sublink:hover,
.side-nav-sublink.is-active {
  color: var(--accent);
}

.side-nav-sublink:hover .side-nav-sublink-num,
.side-nav-sublink.is-active .side-nav-sublink-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (max-width: 1200px) {
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: var(--bg-solid);
    border-bottom: 1px solid var(--card-border);
    padding: 0.65rem 1rem;
    z-index: 95;
    overflow-x: auto;
  }

  .side-nav-item {
    flex-shrink: 0;
  }

  .side-nav-label {
    display: none;
  }

  .side-nav-num {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }

  .side-nav-sublist {
    display: none;
  }

  .back-link {
    top: 64px;
  }
}

@media (max-width: 480px) {
  .side-nav {
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
  }

  .side-nav-num {
    width: 23px;
    height: 23px;
    font-size: 0.62rem;
  }

  .side-nav-link {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
  }
}

/* =====================================================================
   Original per-section image spacing — ported over exactly as it was
   in the previous V-Ed project3.css, so these images keep their own
   original margins/sizing instead of the generic .solution-image-
   wrapper system used elsewhere on this page.
   ===================================================================== */

.statement-wrapper {
  margin: 4rem 0;
}

.statement-wrapper h4 {
  margin-bottom: 2rem;
}

.statement-image {
  width: 100%;
  text-align: center;
}

.statement-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  opacity: 0.95;
}

.writing-image-wrapper {
  width: 100%;
  text-align: center;
  margin: 2rem 0;
}

.writing-image-wrapper img {
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
}

/* Diagram assets — the real journey/flow/wireframe images, shown at
   full readable width (unlike the small decorative writing.png icon
   above, which has its own dedicated class). */
.diagram-image-wrapper {
  width: 100%;
  text-align: center;
  margin: 3rem 0;
}

.diagram-image-wrapper img {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
}

.benefits-image-wrapper {
  width: 100%;
  text-align: center;
  margin: 3rem 0;
}

.benefits-image-wrapper img {
  width: 100%;
  max-width: 600px;
  border-radius: 4px;
  opacity: 0.95;
}

.user-study-image {
  width: 100%;
  text-align: center;
  margin: 3rem 0;
}

.user-study-image img {
  width: 100%;
  max-width: 620px;
  border-radius: 4px;
  opacity: 0.95;
}

.screen {
  margin: 4rem 0;
  text-align: center;
}

.screen img {
  width: auto;
  height: 560px;
  max-width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  display: block;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .screen img {
    height: 460px;
  }
}

.screen img:hover {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .screen img {
    transition: none;
  }

  .screen img:hover {
    transform: none;
  }
}