@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --accent: #2a9d8f;
  --accent-dark: #21867a;
  --yellow: #F9DD17;
  --yellow-dark: #d4bc00;
  --yellow-soft: #fffbe6;
  --navy: #1a1a1a;
  --navy-mid: #2e2e2e;
  --bg: #ffffff;
  --text: #1a1a1a;
  --warm-white: #ffffff;
  --warm-mid: #f2f2f2;
  --stone: #767676;
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #fffbe6 0%, #fffff8 30%, #ffffff 70%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Navigation */
nav {
  background-color: #F7F7F7;
  padding: 0 2rem;
  position: sticky;
  border-bottom: 2px solid #F9DD17;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s, background-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #1a1a1a;
  background-color: #fffbe6;
}

/* Page header */
.page-header {
  background: #faf8f2;
  color: #1a1a1a;
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #a8d4cf;
}

/* Hero */
.hero {
  background: #faf8f2;
  color: #1a1a1a;
  padding: 5rem 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text { flex: 1; }

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #555555;
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-photo img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* Shared surface (white card) */
.card,
.about-block,
.org-card,
.contact-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Shared body text */
.card p,
.about-block p,
.org-card p,
.contact-info p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* Shared button base */
.btn,
form button,
.project-list .card-button button,
.project-list .card-button a {
  background-color: #F9DD17;
  color: #1a1a1a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover,
form button:hover,
.project-list .card-button button:hover,
.project-list .card-button a:hover {
  background-color: #d4bc00;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Main content */
main {
  max-width: 980px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Cards */
.card {
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.project-list a.card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-left-color 0.2s;
}

.project-list a.card:hover {
  border-left-color: #1a1a1a;
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.card .tag {
  display: inline-block;
  background-color: #fffbe6;
  color: #1a1a1a;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-top: 0.75rem;
  margin-right: 0.3rem;
}

/* Section headings */
.section-heading {
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 3rem;
}

/* Vertical project list */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-list .card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-left: 4px solid #F9DD17;
}

.project-list .card-image {
  width: 180px;
  min-width: 180px;
  height: 150px;
  background-color: #fffbe6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  font-size: 0.8rem;
}

.project-list .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-list .card-body { flex: 1; }

.project-list .card h4 {
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.project-list .card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.project-list .card-button button,
.project-list .card-button a {
  width: 180px;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  display: block;
}

/* About section */
.about-block {
  padding: 2.5rem;
  margin-top: 2rem;
}

.about-block h2 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.about-block p { margin-bottom: 1rem; }

/* Skills list */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.skill-badge {
  background-color: #1a1a1a;
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Organizations */
.org-card {
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.org-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.org-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.org-card h3 {
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.org-card .role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.org-card img {
  max-height: 100px;
  max-width: 160px;
}

/* Contact */
.contact-wrapper {
  padding: 2.5rem;
  margin-top: 2rem;
}

.contact-info { margin-bottom: 2rem; }

.contact-info p { margin-bottom: 0.6rem; }

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.2rem;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form textarea {
  height: 140px;
  resize: vertical;
}

form button {
  align-self: flex-start;
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Case study pages */

/* 1. Metadata grid — each dt/dd pair is wrapped in a <div> inside the <dl>
      so auto-fit operates on pairs, not individual terms and definitions. */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 2rem;
  margin-top: 1rem;
}

.meta-grid dt {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.meta-grid dd {
  margin: 0;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
}

/* 2. Section headings — Playfair Display and var(--navy) are already
      applied globally via h1,h2,h3 and .about-block h2. No new rule needed. */

/* 3. Body text — color and line-height already inherit from body and
      .about-block p. No new rule needed. */

/* 4. Artifacts / figures — flexible grid that handles 1 to 6+ figures. */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.figure-grid figure {
  margin: 0;
}

.figure-grid img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.figure-grid figcaption {
  font-size: 0.82rem;
  color: #718096;
  margin-top: 0.4rem;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #1a1a1a;
  color: #767676;
  font-size: 0.85rem;
  margin-top: 4rem;
}

/* Side-by-side subtype comparison */
.subtype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.subtype-card {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.5rem;
}

.subtype-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.subtype-card .subtype-count {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.subtype-card h4 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.subtype-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.subtype-card li {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 0.3rem;
}
/* ===================================================================
   Case study page — Doomscrolling
   Scoped styles for projects/*.html detail pages
   =================================================================== */

/* Extended palette — supplements the existing :root vars */
.cs-hero,
.cs-shell {
  --warm: #e76f51;
  --warm-dark: #c75a3e;
  --warm-soft: #fbe7df;
  --navy-deep: #1a1a1a;
  --rule: #e8e8e8;
  --bg-warm: #fffbe6;
  --text-soft: #4a5568;
  --text-muted: #718096;
}

/* ============ Case study hero ============ */
.cs-hero {
  background: #faf8f2;
  color: #1a1a1a;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.cs-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cs-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #b8900a;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.cs-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.cs-hero h1 .accent {
  color: #b8900a;
  font-style: italic;
}

.cs-hero .lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3a3a3a;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* Hero stat strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

.hero-stat {
  padding-right: 1.5rem;
  border-right: 1px solid #ddd;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #b8900a;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat .num .small {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ============ Case study layout shell ============ */
.cs-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #F7F7F7;
}

.cs-shell main {
  max-width: none;
  margin: 0;
  padding: 4rem 0;
}

/* ============ Meta strip (overlaps hero) ============ */
.meta-strip {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: -3.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 5;
}

.meta-strip dt {
  font-size: 0.72rem;
  color: #b8900a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.meta-strip dd {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

/* ============ Section header pattern ============ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #F9DD17;
}

.section-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #b8900a;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-head h2 {
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

section.cs-section {
  margin-bottom: 4.5rem;
}

section.cs-section p {
  color: #4a5568;
  font-size: 1.02rem;
  margin-bottom: 1rem;
  max-width: 720px;
}

section.cs-section > ul {
  padding-left: 1.25rem;
  color: #4a5568;
  margin-bottom: 1rem;
  max-width: 720px;
}

section.cs-section > ul li {
  margin-bottom: 0.5rem;
}

/* ============ Research questions list ============ */
.rq-list {
  list-style: none;
  padding: 0 !important;
  max-width: 720px;
}

.rq-list li {
  background: #fafafa;
  border-left: 4px solid #F9DD17;
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rq-list li .rq-tag {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.rq-list li .rq-text {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.5;
}

/* ============ Methods tool chips ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 720px;
}

.tool-chip {
  background: #fafafa;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  font-size: 0.88rem;
}

.tool-chip .tool-label {
  font-size: 0.7rem;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.tool-chip .tool-value {
  color: var(--navy);
  font-weight: 500;
}

/* ============ Pull quote ============ */
blockquote.pull {
  border-left: 4px solid #F9DD17;
  padding: 1rem 0 1rem 1.75rem;
  margin: 2rem 0;
  max-width: 720px;
}

blockquote.pull p {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 0.5rem;
  max-width: none;
}

blockquote.pull cite {
  font-style: normal;
  font-size: 0.82rem;
  color: #718096;
  letter-spacing: 0.04em;
}

/* ============ Findings: headline stat + subtype cards ============ */
.headline-stat {
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.headline-stat .h-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: #e76f51;
  flex-shrink: 0;
}

.headline-stat .h-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  min-width: 240px;
}

.headline-stat .h-text strong {
  color: #fff;
  font-weight: 600;
}

/* Subtype side-by-side (replaces the old .subtype-grid/.subtype-card) */
.subtype-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.subtype-card-v2 {
  background: var(--warm-white);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  border-top: 5px solid #F9DD17;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.subtype-card-v2.passive {
  border-top-color: #e76f51;
}

.subtype-card-v2 .subtype-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #b8900a;
  margin-bottom: 0.5rem;
}

.subtype-card-v2.passive .subtype-label {
  color: #e76f51;
}

.subtype-card-v2 h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.subtype-card-v2 .count-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #F9DD17;
}

.subtype-card-v2 .count-line .big {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.subtype-card-v2.passive .count-line .big {
  color: #c75a3e;
}

.subtype-card-v2 .count-line .of {
  color: #718096;
  font-size: 0.95rem;
}

.subtype-card-v2 h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

.subtype-card-v2 ul {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

.subtype-card-v2 ul li {
  font-size: 0.92rem;
  color: #4a5568;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.subtype-card-v2 ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F9DD17;
}

.subtype-card-v2.passive ul li::before {
  background: #e76f51;
}

/* ============ Quitting outcomes block ============ */
.quitting-section {
  margin: 2rem 0;
  max-width: 760px;
}

.quitting-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quitting-intro {
  font-size: 0.97rem;
  color: #4a5568;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

/* ── Outcome cards ── */
.outcome-grid {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.outcome-card {
  flex: 1;
  min-width: 100px;
  background: #fff;
  border-radius: 8px;
  padding: 1rem 0.75rem 0.85rem;
  text-align: center;
  border-top: 3px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.outcome-card.success   { border-top-color: #2a9d8f; }
.outcome-card.partial   { border-top-color: #f4a261; }
.outcome-card.regressed { border-top-color: #e76f51; }
.outcome-card.struggling { border-top-color: #c0c8cc; }
.outcome-card.never     { border-top-color: #7b8fa6; }

.outcome-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.outcome-card.success   .outcome-n { color: #2a9d8f; }
.outcome-card.partial   .outcome-n { color: #f4a261; }
.outcome-card.regressed .outcome-n { color: #e76f51; }
.outcome-card.struggling .outcome-n { color: #8fa4ae; }
.outcome-card.never     .outcome-n { color: #7b8fa6; }

.outcome-label {
  font-size: 0.78rem;
  color: #718096;
  line-height: 1.35;
}

/* ── Funnel ── */
.quit-funnel {
  margin: 1.5rem 0 2rem;
}

.funnel-source {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  margin-bottom: 0.5rem;
}

.funnel-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2a9d8f;
  line-height: 1;
}

.funnel-label {
  font-size: 0.9rem;
  color: #a8c4d6;
}

.funnel-arrow {
  font-size: 1.4rem;
  color: #9db5bf;
  margin: 0.1rem 0 0.5rem 1.4rem;
  line-height: 1;
}

.funnel-outcomes {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.funnel-card {
  flex: 1;
  min-width: 100px;
  background: #fff;
  border-radius: 8px;
  padding: 0 0 0.85rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.funnel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Animated fill bar at top of each card */
.fc-bar {
  width: 100%;
  height: 6px;
  margin-bottom: 0.75rem;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-reveal.is-visible .fc-bar {
  transform: scaleX(1);
}

.fc-success  .fc-bar { background: #2a9d8f; }
.fc-partial  .fc-bar { background: #f4a261; }
.fc-regressed .fc-bar { background: #e76f51; }
.fc-struggling .fc-bar { background: #c0c8cc; }
.fc-never    .fc-bar { background: #7b8fa6; }

.fc-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.fc-success  .fc-n { color: #2a9d8f; }
.fc-partial  .fc-n { color: #f4a261; }
.fc-regressed .fc-n { color: #e76f51; }
.fc-struggling .fc-n { color: #9db5bf; }
.fc-never    .fc-n { color: #7b8fa6; }

.fc-pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9db5bf;
}

.fc-label {
  font-size: 0.75rem;
  color: #718096;
  text-align: center;
  line-height: 1.3;
  padding: 0 0.5rem;
}

/* ── Strategy comparison bars ── */
.strategy-compare {
  margin: 0 0 1.5rem;
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #d4e3df;
}

.strategy-compare-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.strategy-rows {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.strategy-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 1rem;
}

.sr-name {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
  text-align: right;
  line-height: 1.3;
}

.sr-bars {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sr-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sr-bar {
  height: 18px;
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  position: relative;
  min-width: 2px;
}

.cs-reveal.is-visible .sr-bar {
  width: calc(var(--w) * 0.85); /* scale to fit container */
}

.sr-success   { background: #2a9d8f; }
.sr-regressed { background: #e76f51; }
.sr-struggling { background: #c0c8cc; }

.sr-pct {
  position: absolute;
  right: -2.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy);
}

.sr-group-label {
  font-size: 0.72rem;
  color: #9db5bf;
  white-space: nowrap;
  margin-left: 2.5rem;
}

.quitting-paradox {
  background: #fffbe6;
  border-left: 4px solid #F9DD17;
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.paradox-tag {
  display: inline-block;
  background: #e76f51;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.quitting-paradox p {
  margin: 0;
  font-size: 0.93rem;
  color: #4a5568;
  line-height: 1.55;
}

/* ============ Inline chart figure ============ */
.fig-chart .chart-wrap {
  padding: 0.75rem 0.5rem 0.25rem;
}

.fig-chart .chart-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.fig-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #718096;
}

.leg-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============ Finding callout ============ */
.finding-callout {
  background: #fffbe6;
  border-left: 4px solid #F9DD17;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  max-width: 720px;
}

.finding-callout p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
}

.finding-callout strong {
  color: #c75a3e;
}

/* ============ Implications: design directive cards ============ */
.implication {
  background: #fafafa;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  border-left: 3px solid #F9DD17;
  max-width: 760px;
}

.implication h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.implication h3 .imp-num {
  font-family: 'Playfair Display', serif;
  color: #b8900a;
  font-size: 0.9rem;
  font-weight: 700;
}

.implication p {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0;
  max-width: none;
}

/* ============ Artifacts: figure grid v2 + CTAs ============ */
.figure-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.figure-grid-v2 figure {
  background: #fafafa;
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid #e8e8e8;
  margin: 0;
}

.figure-grid-v2 figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.figure-grid-v2 .placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fffbe6, #fafafa);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.figure-grid-v2 figcaption {
  padding: 0.75rem 0.5rem 0.4rem;
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.45;
}

.figure-grid-v2 figcaption strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.cta.primary {
  background: #F9DD17;
  color: #1a1a1a;
}

.cta.primary:hover {
  background: #d4bc00;
  color: #1a1a1a;
  transform: translateY(-1px);
}

.cta.secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.cta.secondary:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ============ Back link ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2rem;
}

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

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .cs-hero { padding: 3rem 1.25rem 3rem; }
  .cs-shell { padding: 0 1.25rem; }
  .meta-strip { margin-top: -2rem; padding: 1.5rem; }
  .section-head {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .section-head h2 { font-size: 1.6rem; }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 1rem;
  }
  .hero-stat:last-child { border-bottom: none; }
}
/* ===================================================================
   Case study interactions — hover effects and entrance animations
   =================================================================== */

/* ============ Base transition defaults ============ */
.subtype-card-v2,
.implication,
.tool-chip,
.rq-list li,
.figure-grid-v2 figure,
.figure-grid-v2 .placeholder {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

/* ============ Subtype cards — BOLD hover ============ */
.subtype-card-v2:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(28, 24, 20, 0.15);
  border-top-width: 6px;
}

.subtype-card-v2.passive:hover {
  box-shadow: 0 18px 40px rgba(199, 90, 62, 0.18);
}

/* ============ Implication cards — NOTICEABLE hover ============ */
.implication {
  cursor: default;
}

.implication:hover {
  transform: translateY(-3px);
  border-left-color: #8a6b00;
  border-left-width: 4px;
  padding-left: calc(1.75rem - 1px);
  box-shadow: 0 8px 24px rgba(28, 24, 20, 0.08);
}

.implication:hover h3 .imp-num {
  color: #8a6b00;
}

/* ============ Tool chips — SUBTLE hover ============ */
.tool-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.08);
}

/* ============ Research questions — SUBTLE hover ============ */
.rq-list li {
  transition: transform 0.2s ease, border-left-width 0.2s ease,
              padding-left 0.2s ease;
}

.rq-list li:hover {
  transform: translateX(4px);
  border-left-width: 6px;
  padding-left: calc(1.4rem - 2px);
}

/* ============ Figures — NOTICEABLE hover ============ */
.figure-grid-v2 figure:hover {
  transform: translateY(-4px);
  border-color: #b8900a;
  box-shadow: 0 12px 28px rgba(28, 24, 20, 0.1);
}

.figure-grid-v2 figure:hover .placeholder {
  background: linear-gradient(135deg, #f5e68a, #fffbe6);
}

/* ============ CTA hover refinements (extends existing) ============ */
.cta.primary:hover {
  box-shadow: 0 8px 20px rgba(249, 221, 23, 0.4);
}

.cta.secondary:hover {
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.2);
}

/* ===================================================================
   Entrance animations — fade up + stagger
   =================================================================== */

/* Hero stats — stagger left-to-right on page load */
.hero-stat {
  opacity: 0;
  transform: translateY(12px);
  animation: cs-fade-up 0.6s ease-out forwards;
}
.hero-stat:nth-child(1) { animation-delay: 0.15s; }
.hero-stat:nth-child(2) { animation-delay: 0.30s; }
.hero-stat:nth-child(3) { animation-delay: 0.45s; }
.hero-stat:nth-child(4) { animation-delay: 0.60s; }

/* Hero hgroup — fade in first */
.cs-hero .cs-eyebrow,
.cs-hero h1,
.cs-hero .lede {
  opacity: 0;
  transform: translateY(8px);
  animation: cs-fade-up 0.7s ease-out forwards;
}
.cs-hero .cs-eyebrow { animation-delay: 0s; }
.cs-hero h1 { animation-delay: 0.1s; }
.cs-hero .lede { animation-delay: 0.25s; }

/* Meta strip — slide up into hero overlap */
.meta-strip {
  opacity: 0;
  transform: translateY(20px);
  animation: cs-fade-up 0.7s ease-out 0.5s forwards;
}

/* ============ Scroll-triggered reveals ============ */
/* Elements below the fold get .cs-reveal — JS adds .is-visible when they
   enter the viewport. Children with .cs-stagger-child cascade in. */

.cs-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — each one delayed slightly more than the last */
.cs-reveal.is-visible .cs-stagger-child {
  animation: cs-fade-up 0.55s ease-out backwards;
}
.cs-reveal.is-visible .cs-stagger-child:nth-child(1) { animation-delay: 0.05s; }
.cs-reveal.is-visible .cs-stagger-child:nth-child(2) { animation-delay: 0.12s; }
.cs-reveal.is-visible .cs-stagger-child:nth-child(3) { animation-delay: 0.19s; }
.cs-reveal.is-visible .cs-stagger-child:nth-child(4) { animation-delay: 0.26s; }
.cs-reveal.is-visible .cs-stagger-child:nth-child(5) { animation-delay: 0.33s; }
.cs-reveal.is-visible .cs-stagger-child:nth-child(6) { animation-delay: 0.40s; }

/* ============ Keyframe ============ */
@keyframes cs-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Reduced motion ============ */
/* Honor users who've enabled reduced motion in their OS.
   Entrance animations are disabled. Hover effects stay but become instant. */
@media (prefers-reduced-motion: reduce) {
  .hero-stat,
  .cs-hero .cs-eyebrow,
  .cs-hero h1,
  .cs-hero .lede,
  .meta-strip,
  .cs-reveal,
  .cs-reveal.is-visible .cs-stagger-child {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .subtype-card-v2,
  .implication,
  .tool-chip,
  .rq-list li,
  .figure-grid-v2 figure,
  .figure-grid-v2 .placeholder,
  .cta {
    transition: none;
  }
}