:root {
  /* Monzo-inspired palette */
  --navy: #001E3A;
  --navy-light: #0a2d4d;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --green-faint: #f0faf5;
  --green-light: #e6f7ef;
  --accent-green: #007A8B;
  --accent-green-bright: #4BB78F;
  --accent-orange: #d97706;
  --accent-coral: #e03e4a;
  --accent-pink: #E8478E;
  --accent-blue: #3B82F6;
  --accent-yellow: #FACC15;
  --accent-teal: #0D9488;
  --accent-purple: #8B5CF6;
  --text-dark: #1a1a2e;
  --text-body: #3d3d56;
  --text-muted: #7c7c91;
  --text-light: #f0f0f0;
  --text-light-muted: rgba(255,255,255,0.6);
  --border-light: #e5e7eb;
  --border-navy: rgba(255,255,255,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #001e3a;            /* v15.3.0 — solid background; backdrop-filter removed
                                     to prevent containing-block on fixed descendants */
  border-bottom: 1px solid var(--border-navy);
  padding: 0 48px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-light);
}

/* ========== VIEWS ========== */
.view { display: none; }
.view.active { display: block; }

/* ========== HERO SECTION (dark navy, Monzo-inspired) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 48px 80px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--text-light);
}

.hero-inner {
  max-width: 1120px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-greeting {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-green-bright);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hero h1 .highlight {
  color: var(--accent-green-bright);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light-muted);
  max-width: 480px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.hero-subtitle-secondary {
  margin-bottom: 40px;
  opacity: 0.75;
  font-size: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.hero-tag:nth-child(1) { background: rgba(232,71,142,0.15); color: var(--accent-pink); border: 1px solid rgba(232,71,142,0.3); }
.hero-tag:nth-child(2) { background: rgba(75,183,143,0.15); color: var(--accent-green-bright); border: 1px solid rgba(75,183,143,0.3); }
.hero-tag:nth-child(3) { background: rgba(59,130,246,0.15); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.3); }
.hero-tag:nth-child(4) { background: rgba(217,119,6,0.15); color: var(--accent-orange); border: 1px solid rgba(217,119,6,0.3); }

.hero-tag-group {
  display: inline-flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.hero-tag-group .hero-tag:first-child { background: rgba(59,130,246,0.15); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.3); }
.hero-tag-group .hero-tag:last-child { background: rgba(217,119,6,0.15); color: var(--accent-orange); border: 1px solid rgba(217,119,6,0.3); }

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.word-ui-canvas {
  width: 100%;
  max-width: 400px;
  position: relative;
  height: 380px;
}

/* === PHASE 1: Floating words === */
.word-item {
  position: absolute;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  animation: wordPhase 12s ease-in-out infinite;
  opacity: 0;
}

.word-item:nth-child(1) { left: 15%; top: 12%; animation-delay: 0s; color: rgba(232,71,142,0.9); }
.word-item:nth-child(2) { left: 50%; top: 8%; animation-delay: 0.5s; color: rgba(75,183,143,0.9); }
.word-item:nth-child(3) { left: 5%; top: 45%; animation-delay: 1s; color: rgba(59,130,246,0.9); }
.word-item:nth-child(4) { left: 35%; top: 75%; animation-delay: 1.5s; color: rgba(217,119,6,0.9); }

@keyframes wordPhase {
  0%        { opacity: 0; transform: translateY(12px); }
  8%, 42%   { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100%      { opacity: 0; transform: translateY(12px); }
}

/* === PHASE 2: UI blocks that fade in as words fade out === */
.ui-block {
  position: absolute;
  border-radius: 10px;
  opacity: 0;
  animation: blockPhase 12s ease-in-out infinite;
}

@keyframes blockPhase {
  0%, 40%   { opacity: 0; transform: scale(0.92); }
  55%, 88%  { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.96); }
}

/* Header block */
.ui-block-header {
  left: 8%; top: 6%; width: 84%; height: 52px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  animation-delay: 0s;
}

.ui-block-header-inner {
  position: absolute;
  top: 16px; left: 18px;
  width: 90px; height: 8px;
  border-radius: 4px;
  background: rgba(75,183,143,0.5);
}

.ui-block-header-dots {
  position: absolute;
  top: 18px; right: 18px;
  display: flex; gap: 8px;
}

.ui-block-header-dots span {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
}

/* Hero/title block */
.ui-block-hero {
  left: 8%; top: 72px; width: 52%; height: 100px;
  background: rgba(232,71,142,0.12);
  border: 1px solid rgba(232,71,142,0.2);
  animation-delay: 0.3s;
}

.ui-block-hero .ui-line {
  position: absolute; left: 16px; height: 7px; border-radius: 4px;
}
.ui-block-hero .ui-line:nth-child(1) { top: 20px; width: 70%; background: rgba(255,255,255,0.3); }
.ui-block-hero .ui-line:nth-child(2) { top: 38px; width: 50%; background: rgba(255,255,255,0.18); }
.ui-block-hero .ui-line:nth-child(3) { top: 62px; width: 35%; height: 22px; border-radius: 6px; background: rgba(232,71,142,0.35); }

/* Sidebar block */
.ui-block-sidebar {
  right: 8%; top: 72px; width: 28%; height: 200px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.18);
  animation-delay: 0.5s;
}

.ui-block-sidebar .ui-bar {
  position: absolute; left: 14px; right: 14px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.12);
}
.ui-block-sidebar .ui-bar:nth-child(1) { top: 20px; width: 60%; background: rgba(59,130,246,0.35); }
.ui-block-sidebar .ui-bar:nth-child(2) { top: 40px; }
.ui-block-sidebar .ui-bar:nth-child(3) { top: 56px; width: 80%; }
.ui-block-sidebar .ui-bar:nth-child(4) { top: 72px; width: 65%; }
.ui-block-sidebar .ui-bar:nth-child(5) { top: 100px; width: 50%; background: rgba(59,130,246,0.25); }
.ui-block-sidebar .ui-bar:nth-child(6) { top: 120px; }
.ui-block-sidebar .ui-bar:nth-child(7) { top: 136px; width: 70%; }

/* Content cards row */
.ui-block-cards {
  left: 8%; top: 190px; width: 52%; height: 82px;
  display: flex; gap: 8px; padding: 0;
  background: none; border: none;
  animation-delay: 0.7s;
}

.ui-mini-card {
  flex: 1;
  border-radius: 8px;
  position: relative;
}
.ui-mini-card:nth-child(1) { background: rgba(75,183,143,0.14); border: 1px solid rgba(75,183,143,0.22); }
.ui-mini-card:nth-child(2) { background: rgba(217,119,6,0.12); border: 1px solid rgba(217,119,6,0.2); }
.ui-mini-card:nth-child(3) { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.2); }

.ui-mini-card .ui-card-line {
  position: absolute; left: 10px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.2);
}
.ui-mini-card .ui-card-line:nth-child(1) { top: 16px; width: 55%; background: rgba(255,255,255,0.3); }
.ui-mini-card .ui-card-line:nth-child(2) { top: 30px; width: 70%; }
.ui-mini-card .ui-card-line:nth-child(3) { top: 44px; width: 40%; }

/* Bottom bar */
.ui-block-footer {
  left: 8%; bottom: 50px; width: 84%; height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  animation-delay: 1s;
}

.ui-block-footer .ui-footer-line {
  position: absolute; top: 12px; height: 5px; border-radius: 3px;
}
.ui-block-footer .ui-footer-line:nth-child(1) { left: 16px; width: 60px; background: rgba(75,183,143,0.3); }
.ui-block-footer .ui-footer-line:nth-child(2) { right: 16px; width: 40px; background: rgba(255,255,255,0.12); }

/* Subtle connection lines */
.ui-connector {
  position: absolute;
  border-left: 1px dashed rgba(255,255,255,0.08);
  height: 16px;
  animation: blockPhase 12s ease-in-out infinite;
}
.ui-connector:nth-child(1) { left: 25%; top: 170px; animation-delay: 0.6s; }
.ui-connector:nth-child(2) { left: 45%; top: 170px; animation-delay: 0.6s; }

/* ========== SPACER BAND ========== */
.section-spacer {
  height: 70px;
  background: #f0f1f3;
}

/* ========== CASE STUDIES SECTION ========== */
.case-studies-section {
  position: relative;
  background: var(--white);
}

.section-header {
  padding: 64px 48px 0;
  margin-bottom: 16px;
}

.section-intro {
  padding: 0 48px;
  margin-bottom: 40px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  font-weight: 400;
}

.case-studies-grid {
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent-pink);
  position: relative;
}

.case-card:nth-child(2) { border-top-color: var(--accent-blue); }
.case-card:nth-child(3) { border-top-color: var(--accent-orange); }

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 30, 58, 0.12);
}

.case-card-image-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  padding: 40px;
}

.case-card-image-wrap img {
  max-height: 50px;
  max-width: 60%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.case-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.case-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card-meta {
  margin-top: auto;
}

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

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.tag-green { background: rgba(0, 122, 139, 0.08); color: var(--accent-green); }
.tag-orange { background: rgba(217, 119, 6, 0.08); color: var(--accent-orange); }
.tag-coral { background: rgba(224, 62, 74, 0.08); color: var(--accent-coral); }

.case-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 400;
}

.case-card-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
}

.case-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.case-card-company {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card-read {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-card-read::after {
  content: '\2192';
  font-size: 16px;
  transition: transform 0.2s;
}

.case-card:hover .case-card-read::after {
  transform: translateX(3px);
}

/* ========== COMING SOON CARD ========== */
.case-card.coming-soon {
  cursor: default;
  opacity: 0.4;
}
.case-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ========== CASE STUDY DETAIL VIEW ========== */
.case-detail { padding-top: 64px; }

.case-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px 24px;
  text-align: left;
}

.case-hero-intro {
  max-width: 640px;
  margin-top: 0;
}

.case-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.case-hero-back:hover { color: var(--text-dark); }

.case-hero-back::before {
  content: '\2190';
  font-size: 16px;
}

.case-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.22;
  color: var(--text-dark);
  margin-bottom: 32px;
  letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: balance;
  max-width: 800px;
}

.case-hero h1 .highlight { color: var(--accent-green); }

.case-meta-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.case-meta-item { text-align: center; }

.case-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.case-meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-green);
}

.case-intro {
  font-size: 17px;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== AUDIT SLIDES (white → faint green) ========== */
.audit-slides {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 48px 40px;
}

.audit-slide {
  margin-bottom: 96px;
}

.audit-slide:last-child {
  margin-bottom: 24px;
}

.audit-slide-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.audit-slide-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  text-wrap: balance;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.audit-screenshot {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 32px;
  display: block;
  object-fit: contain;
}

.audit-findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.finding-card {
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--off-white);
}

.finding-card.problem {
  border-left: 3px solid var(--accent-pink);
}

.finding-card.solution {
  border-left: 3px solid var(--accent-green-bright);
}

.finding-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.finding-card.problem .finding-label { color: var(--accent-pink); }
.finding-card.solution .finding-label { color: var(--accent-green-bright); }

.finding-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.finding-text strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ========== WHY THIS WORKS ========== */
.why-works {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--off-white);
  border-left: 3px solid var(--accent-orange);
}

.why-works-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.why-works-list {
  list-style: none;
  padding: 0;
}

.why-works-list li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  padding: 4px 0 4px 20px;
  position: relative;
}

.why-works-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 14px;
}

/* ========== EXPECTED IMPACT ========== */
.expected-impact {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--off-white);
  border-left: 3px solid var(--accent-purple);
}

.expected-impact-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.expected-impact-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.rewrite-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-teal);
  border-radius: 8px;
}

.rewrite-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rewrite-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

.rewrite-text .rw-label {
  color: var(--accent-teal);
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* ========== KEY TAKEAWAYS (faint green section) ========== */
.takeaways {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 48px 120px;
}

.takeaways-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 32px;
  font-weight: 400;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.takeaway-item {
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
}

.takeaway-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--accent-green);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.takeaway-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ========== GREEN FADE BACKGROUND ========== */
.takeaways {
  background: linear-gradient(180deg, var(--white) 0%, var(--green-faint) 50%, var(--green-light) 100%);
  /* Override max-width for full bleed, then re-constrain inner content */
  max-width: none;
  padding-left: calc((100% - 840px) / 2 + 48px);
  padding-right: calc((100% - 840px) / 2 + 48px);
}

/* ========== VERSUS COMPARISON LAYOUT ========== */
.vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.vs-col {
  display: flex;
  flex-direction: column;
}

.vs-label {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid;
}

.vs-label.tidal { color: #000000; border-bottom-color: #000000; }
.vs-label.spotify { color: #1DB954; border-bottom-color: #1DB954; }

.vs-screenshot {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.vs-screenshot img {
  width: 100%;
  display: block;
}

.vs-analysis {
  padding: 20px;
  background: var(--off-white);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  flex: 1;
}

.vs-analysis.problem { border-left: 3px solid var(--accent-pink); }
.vs-analysis.solution { border-left: 3px solid var(--accent-green-bright); }

.vs-analysis-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vs-analysis.problem .vs-analysis-title { color: var(--accent-pink); }
.vs-analysis.solution .vs-analysis-title { color: var(--accent-green-bright); }

.vs-analysis p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

.vs-analysis ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vs-analysis ul li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.vs-analysis ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--text-muted);
}

.vs-result {
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.vs-result.negative {
  background: rgba(232,71,142,0.06);
  border-left: 3px solid var(--accent-pink);
  color: var(--text-body);
}

.vs-result.positive {
  background: rgba(75,183,143,0.06);
  border-left: 3px solid var(--accent-green-bright);
  color: var(--text-body);
}

.vs-insight {
  padding: 28px 32px;
  background: var(--off-white);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-orange);
  margin-top: 8px;
}

.vs-insight-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 10px;
}

.vs-insight p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ========== WRITING & GUIDES ========== */
.writing-section {
  background: var(--white);
  padding-bottom: 80px;
}

.writing-grid {
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.writing-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.writing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 30, 58, 0.1);
}

.writing-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.writing-card-thumb.pdf-thumb {
  object-fit: contain;
  background: #f0f1f3;
  padding: 12px;
  height: 180px;
}

.writing-card:nth-child(3n+2) { border-left-color: var(--accent-teal); }
.writing-card:nth-child(3n+3) { border-left-color: var(--accent-blue); }

.writing-card-content {
  flex: 1;
  min-width: 0;
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.writing-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.writing-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.content-type-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
}

.content-type-pill.article {
  background: rgba(13,148,136,0.1);
  color: var(--accent-teal);
}

.content-type-pill.pdf {
  background: rgba(232,71,142,0.1);
  color: var(--accent-pink);
}

.content-type-pill.guide {
  background: rgba(139,92,246,0.1);
  color: var(--accent-purple);
}

.writing-card-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 2px;
  transition: transform 0.2s;
}

.writing-card:hover .writing-card-arrow {
  transform: translateX(3px);
  color: var(--accent-green);
}

/* ========== PROJECTS ========== */
.projects-section {
  background: var(--off-white);
  padding-bottom: 80px;
}

.projects-section .section-header {
  padding-top: 80px;
}

.projects-grid {
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 30, 58, 0.12);
}

.project-card-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.project-card-body {
  padding: 24px;
}

.project-card-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.02em;
}

.project-card:hover .project-card-link {
  text-decoration: underline;
}

/* ========== MEDIA ========== */
.media-section {
  background: var(--white);
  padding-bottom: 80px;
}

.media-row {
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--navy);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 30, 58, 0.3);
}

.media-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.media-item-icon.video {
  background: rgba(232,71,142,0.2);
  color: var(--accent-pink);
}

.media-item-icon.podcast {
  background: rgba(139,92,246,0.2);
  color: var(--accent-purple);
}

.media-item-content {
  flex: 1;
  min-width: 0;
}

.media-item-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 2px;
}

.media-item-platform {
  font-size: 12px;
  color: var(--text-light-muted);
}

/* ========== FOOTER ========== */
footer {
  padding: 48px;
  background: var(--navy);
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: var(--text-light-muted);
}

.footer-text a {
  color: var(--accent-green-bright);
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ========== COMPARISON CASE STUDY ========== */
.comparison-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.comparison-image-col {
  text-align: center;
}

.comparison-image-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.comparison-image-label.lloyds { color: #006B45; }
.comparison-image-label.barclays { color: #00AEEF; }

.comparison-images img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.comparison-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.comparison-side {
  padding: 24px;
  background: var(--off-white);
}

.comparison-side:first-child {
  border-right: 1px solid var(--border-light);
}

.comparison-side-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.comparison-side-label.lloyds { color: #006B45; }
.comparison-side-label.barclays { color: #00AEEF; }

.comparison-side ul {
  list-style: none;
  padding: 0;
}

.comparison-side ul li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  padding: 4px 0 4px 20px;
  position: relative;
}

.comparison-side ul li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  font-size: 14px;
}

.comparison-side:first-child ul li::before { color: #006B45; }
.comparison-side:last-child ul li::before { color: #00AEEF; }

.observation-box {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--off-white);
  border-left: 3px solid var(--accent-green-bright);
}

.observation-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.observation-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  font-style: italic;
}

.improvements-list {
  list-style: none;
  padding: 0;
  counter-reset: improvement;
}

.improvements-list li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  padding: 8px 0 8px 36px;
  position: relative;
  counter-increment: improvement;
}

.improvements-list li::before {
  content: counter(improvement);
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  background: var(--accent-teal);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.improvements-examples {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(13,148,136,0.06);
  border-radius: 8px;
}

.improvements-examples p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 4px 0;
}

.improvements-examples .rw-label {
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 13px;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}

.comparison-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th:first-child {
  background: var(--off-white);
  color: var(--text-muted);
}

.comparison-table th:nth-child(2) {
  background: rgba(0,107,69,0.06);
  color: #006B45;
}

.comparison-table th:nth-child(3) {
  background: rgba(0,174,239,0.06);
  color: #00AEEF;
}

.comparison-table td {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--off-white);
}

.comparison-table td:nth-child(2) { background: rgba(0,107,69,0.02); }
.comparison-table td:nth-child(3) { background: rgba(0,174,239,0.02); }

.case-insight {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.65;
  text-align: left;
  margin: 0 0 14px;
}
.case-insight:last-child { margin-bottom: 0; }

/* ========== ANNOTATED SCREENSHOT ========== */
.section-context {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 36px;
}

.annotated-screenshot {
  position: relative;
  margin-bottom: 24px;
}

.annotated-screenshot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: block;
}

.annotated-screenshot.enlarged {
  margin-left: -80px;
  margin-right: -80px;
  width: calc(100% + 160px);
}

.annotation-markers {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.annotation-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-pink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(232,71,142,0.4);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.annotation-marker::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(2.2); opacity: 0; }
}

.annotation-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.annotation-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  border-left: 3px solid var(--accent-pink);
}

.annotation-card-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-pink);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.annotation-card-content {}

.annotation-card-element {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  padding: 4px 10px;
  background: rgba(232,71,142,0.08);
  border-radius: 4px;
  display: inline-block;
}

.annotation-card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.annotation-card-text + .annotation-card-text,
.annotation-card-list + .annotation-card-text {
  margin-top: 10px;
}

.annotation-card-example {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-teal);
  font-weight: 500;
}

.annotation-card-list {
  margin: 6px 0 0 22px;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.annotation-card-list li {
  margin-bottom: 4px;
}

.annotated-bank-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.annotated-bank-label.lloyds { color: #006B45; border-color: #006B45; }
.annotated-bank-label.barclays { color: #00AEEF; border-color: #00AEEF; }

.annotation-card.barclays-card {
  border-left-color: #00AEEF;
}

.annotation-card.barclays-card .annotation-card-num {
  background: #00AEEF;
}

.annotation-card.barclays-card .annotation-card-element {
  background: rgba(0,174,239,0.08);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-tags { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .word-ui-canvas { max-width: 320px; height: 320px; }
  .word-item { font-size: 18px; }
  .section-header { padding: 60px 24px 0; }
  .section-intro { padding: 0 24px; }
  .case-studies-grid { padding: 0 24px 80px; grid-template-columns: 1fr; }
  .audit-slides { padding: 24px 24px 80px; }
  .audit-findings { grid-template-columns: 1fr; }
  .case-hero { padding: 48px 24px; }
  .takeaway-grid { grid-template-columns: 1fr; }
  .takeaways { padding: 60px 24px 80px; }
  .case-meta-bar { gap: 24px; }
  .comparison-images { grid-template-columns: 1fr; }
  .comparison-card { grid-template-columns: 1fr; }
  .comparison-side:first-child { border-right: none; border-bottom: 1px solid var(--border-light); }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .annotation-card { grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; }
  .annotation-marker { width: 22px; height: 22px; font-size: 10px; }
  .annotated-screenshot.enlarged { margin-left: 0; margin-right: 0; width: 100%; }
  .vs-row { grid-template-columns: 1fr; }
  .writing-grid { padding: 0 24px; grid-template-columns: 1fr; }
  .projects-grid { padding: 0 24px; grid-template-columns: 1fr; }
  .media-row { padding: 0 24px; grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .portal-screenshot { width: 100%; max-width: 280px; }
}

/* Healthcare portal — small mobile-style screenshot */
.portal-screenshot-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
.portal-screenshot {
  position: relative;
  width: 320px;
  max-width: 100%;
}
.portal-screenshot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: block;
}

/* Healthcare portal — wider landscape screenshot (e.g. dashboard banners) */
.portal-screenshot-wide {
  position: relative;
  width: 100%;
  max-width: 760px;
}
.portal-screenshot-wide img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: block;
}
.portal-screenshot-medium {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.portal-screenshot-medium img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: block;
}

/* Multi-page additions */
.case-detail-container .back-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.case-detail-container .back-link:hover { color: var(--text-dark); }

/* Published-work landing pages */
.work-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 48px;
}
.work-detail .back-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.work-detail .back-link:hover { color: var(--text-dark); }
.work-detail .work-eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.work-detail h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.22;
  color: var(--text-dark);
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: balance;
}
.work-detail .work-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 32px;
  max-width: 640px;
}
.work-detail .work-thumb {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  margin: 0 0 32px;
  background: #f0f1f3;
  padding: 12px;
}
.work-detail .work-cta {
  display: inline-block;
  background: var(--text-dark);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}
.work-detail .work-cta:hover { background: #000; }
.work-detail .work-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8e9ec;
  font-size: 14px;
  color: var(--text-muted);
}
.work-detail .work-meta strong { color: var(--text-dark); font-weight: 500; }

/* ---------------------------------------------------------------------------
   v15.1 — Multi-page card anchors
   Because case-cards and writing-cards are now <a> elements (whole card is
   clickable), strip the default anchor blue/underline so the original card
   styling shows through. Descendants with their own colour declarations
   (h3, .case-card-title, etc.) are unaffected.
--------------------------------------------------------------------------- */
a.case-card,
a.case-card:visited,
a.case-card:hover,
a.case-card:focus,
a.writing-card,
a.writing-card:visited,
a.writing-card:hover,
a.writing-card:focus {
  text-decoration: none;
  color: inherit;
}

a.case-card *,
a.writing-card * {
  text-decoration: none;
}

a.case-hero-back,
a.case-hero-back:visited,
a.case-hero-back:hover,
a.case-hero-back:focus,
a.work-cta,
a.work-cta:visited,
a.work-cta:hover,
a.work-cta:focus {
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   v15.2 — Mobile navigation (right-side hamburger + slide-in drawer)
--------------------------------------------------------------------------- */

/* Hamburger button — hidden on desktop, shown at <=768px */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin: 0 -10px 0 0;        /* visually tighten flush to right edge */
  cursor: pointer;
  width: 44px;                 /* touch target */
  height: 44px;
  position: relative;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px auto;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
body.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop behind the open drawer (mobile only) — lives on <body>, not <nav>,
   so it isn't trapped by any future containing-block on the nav. */
body::after {
  content: '';
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(0, 20, 40, 0);
  pointer-events: none;
  transition: background .25s ease;
  z-index: 90;
}
body.menu-open::after {
  background: rgba(0, 20, 40, 0.5);
  pointer-events: auto;
}

/* Desktop default: backdrop hidden */
@media (min-width: 769px) {
  body::after { display: none; }
}

/* --- Mobile breakpoint (<=768px) -------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  /* Mobile drawer — block layout (no flex), high-specificity selector,
     plain width values, webkit-prefixed transforms. This combination
     avoids the iOS Safari rendering issues we hit with the flex/min/
     backdrop-filter version. */
  nav .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: auto;
    width: 82vw;
    max-width: 320px;
    margin: 0;
    padding: 0;
    background: #001e3a;
    background-color: #001e3a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    -webkit-transition: -webkit-transform .32s cubic-bezier(.2, .7, .2, 1);
            transition:         transform .32s cubic-bezier(.2, .7, .2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 110;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.25);
    list-style: none;
  }
  body.menu-open nav .nav-links {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }

  nav .nav-links li {
    display: block;
    width: 100%;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
  nav .nav-links li:last-child { border-bottom: 0; }
  nav .nav-links a {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
  }
  nav .nav-links a:hover,
  nav .nav-links a:active,
  nav .nav-links a:focus { color: #ffffff; }
}

/* ---------------------------------------------------------------------------
   v15.2 — Wider mobile polish (typography, spacing, image safety)
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Prevent any oversized image from causing horizontal scroll */
  img { max-width: 100%; height: auto; }

  /* Hero typography — softer scale on small screens */
  .hero h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.05; }
  .hero-subtitle { font-size: 16px; }
  .hero-subtitle-secondary { font-size: 15px; }

  /* Case-study hero */
  .case-hero h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; }
  .case-hero-intro p.case-insight { font-size: 15px; }

  /* Section headings */
  .audit-slide-title { font-size: 22px; }
  .audit-slide-number { font-size: 12px; }
  .audit-slide { padding-top: 48px; }

  /* Body copy a touch larger for readability on phones */
  .section-context, .annotation-card-text { font-size: 15px; line-height: 1.65; }

  /* Takeaways: ensure clean spacing when stacked */
  .takeaways { padding: 56px 24px 80px; }
  .takeaway-item { padding: 22px; }
  .takeaway-text { font-size: 14.5px; }

  /* Published-work pages */
  .work-detail { padding: 96px 24px 64px; }
  .work-detail h1 { font-size: clamp(26px, 7vw, 34px); }
  .work-detail .work-lede { font-size: 16px; }
}

/* Very small phones */
@media (max-width: 420px) {
  nav { padding: 0 16px; }
  .nav-logo { font-size: 18px; }
  .hero { padding: 96px 20px 56px; }
  .case-hero { padding: 40px 20px; }
  .audit-slides { padding: 20px 20px 64px; }
  .case-studies-grid { padding: 0 20px 64px; }
  .takeaways { padding: 48px 20px 64px; padding-left: 20px; padding-right: 20px; }
  .work-detail { padding: 88px 20px 56px; }
}
