@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Oswald:wght@500;600;700&family=Mulish:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --surface-s1: #fefefe;
  --surface-grey: #f9f9f9;
  --surface-white: #ffffff;

  --text-high: #000000;
  --text-med: #5b616d;
  --text-primary-high: #111111;

  --lime: #eeffb6;
  --lime-soft: rgba(238, 255, 182, 0.7);
  --lime-accent: #aeea00;

  --crimson: #d3193b;
  --crimson-accent: #e60d35;

  --dark: rgba(0, 0, 0, 0.88);
  --charcoal: #333333;

  --divider: rgba(0, 0, 0, 0.1);
  --image-placeholder: #e3e3e3;
  --image-placeholder-text: #a6a6a6;

  --radius-sm: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  --space-xs: 4px;
  --space-sm: 6px;
  --space-md: 8px;
  --space-xl: 12px;
  --space-2xl: 14px;

  --shadow-e2: 0px 3px 3px -1.5px rgba(0, 0, 0, 0.03), 0px 1px 1px -0.5px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Mulish', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-s1);
  color: var(--text-high);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1684px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 32px;
  width: 100%;
}

.site-nav.on-dark {
  background: var(--dark);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.site-nav.on-dark .logo {
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-med);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-item.active {
  color: var(--text-high);
  border-bottom: 2px solid var(--text-high);
}

.site-nav.on-dark .nav-item {
  color: rgba(255, 255, 255, 0.72);
}

.site-nav.on-dark .nav-item.active {
  color: white;
  border-bottom: 2px solid white;
}

.nav-item svg {
  width: 14px;
  height: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-high);
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav.on-dark .nav-toggle {
  color: white;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-xl);
  background: var(--text-high);
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: #222222;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.site-nav.on-dark .nav-cta {
  background: white;
  color: var(--text-high);
}

.site-nav.on-dark .nav-cta:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-med);
  white-space: nowrap;
}

.explore-link span {
  border-bottom: 1px solid transparent;
  position: relative;
  top: 1px;
}

.explore-link:hover span {
  border-bottom-color: currentColor;
}

.explore-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--text-high);
  color: white;
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  height: 56px;
  font-size: 16px;
  box-shadow: var(--shadow-e2), inset 0px 3px 3px 0px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: #222222;
}

.btn-secondary {
  background: white;
  color: var(--text-high);
  border: 2px solid var(--text-high);
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  height: 56px;
  font-size: 16px;
}

.btn-secondary:hover {
  background: var(--lime);
  border-color: var(--text-high);
}

.cta-banner {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

/* ---------- Tags ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--lime);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-high);
  white-space: nowrap;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 64px 0 48px;
  flex-wrap: wrap;
}

.hero-title-row {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-name {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1033px;
}

.hero-body {
  font-size: 20px;
  line-height: 32px;
  margin: 0;
}

.hero-cta {
  flex-shrink: 0;
}

/* ---------- Project list ---------- */
.project-menu {
  padding: 48px 0 64px;
}

.project-row {
  display: block;
  padding: 24px 16px;
  margin: 0 -16px;
  border-top: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  transition: background 0.15s ease;
}

.project-menu .project-row:last-child {
  border-bottom: 1px solid var(--divider);
}

.project-row:hover {
  background: var(--lime);
}

/* ---------- Stats section (homepage) ---------- */
.stats-section {
  padding: 32px 0 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

.stat-item-card {
  background: var(--surface-grey);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.stat-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-item-icon svg {
  width: 20px;
  height: 20px;
}

.stat-item-value {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.stat-item-label {
  font-size: 15px;
  color: var(--text-med);
  margin: 0;
}

/* ---------- Experience breadth section (homepage) ---------- */
.experience-section {
  padding: 0 0 48px;
}

.section-intro {
  font-size: 18px;
  color: var(--text-med);
  margin: 0 0 20px;
  max-width: 640px;
}

.experience-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.experience-row:last-child {
  margin-bottom: 0;
}

.experience-label {
  flex: 0 0 120px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-med);
}

/* ---------- Client logo strip ---------- */
.logo-strip {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 36s linear infinite;
}

.logo-item {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-med);
  white-space: nowrap;
  padding: 0 40px;
  display: inline-block;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo-item-dup {
    display: none;
  }
}

.project-row-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.project-name {
  flex: 1 1 auto;
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 400;
  margin: 0;
}

.project-desc {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 0 0 auto;
  margin-left: auto;
}

.project-desc p {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  max-width: 370px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.project-row:hover .project-desc p {
  opacity: 1;
}

.project-desc svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- Contact section ---------- */
.contact-section {
  background: var(--lime-soft);
  border-radius: 32px;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 0 48px;
}

.contact-section h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  margin: 0;
}

.contact-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-cols p {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 4px;
}

.contact-cols strong {
  font-weight: 600;
}

.contact-cols a {
  text-decoration: underline;
}

/* ---------- Project pagination ---------- */
.project-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 64px;
  flex-wrap: wrap;
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--surface-grey);
  flex: 1 1 260px;
  transition: background 0.15s ease;
}

.pagination-link:hover {
  background: var(--lime);
}

.pagination-link.next {
  justify-content: flex-end;
  text-align: right;
}

.pagination-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pagination-link small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-med);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pagination-link strong {
  font-size: 18px;
  font-weight: 600;
}

.feedback-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  text-align: center;
  flex: 0 0 auto;
}

.feedback-question {
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
}

.feedback-buttons {
  display: flex;
  gap: 12px;
}

.feedback-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--surface-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.feedback-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-high);
}

.feedback-btn:hover {
  border-color: var(--text-high);
}

.feedback-btn.selected {
  background: var(--text-high);
  border-color: var(--text-high);
}

.feedback-btn.selected svg {
  stroke: white;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.feedback-form textarea {
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: var(--text-high);
}

.feedback-submit {
  align-self: center;
  height: 40px;
  font-size: 16px;
  padding: 8px 16px;
}

.feedback-thanks {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-med);
  margin: 0;
}

.feedback-buttons[hidden],
.feedback-form[hidden],
.feedback-thanks[hidden] {
  display: none;
}

/* ---------- Contact section v2 (project page) ---------- */
.contact-section-v2 {
  background: #efefef;
  color: var(--text-high);
  padding: 96px 32px;
}

.contact-v2-inner {
  max-width: 1684px;
  margin: 0 auto;
  display: flex;
  gap: 96px;
  flex-wrap: wrap;
  position: relative;
}

.contact-v2-inner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--divider);
}

.contact-v2-intro {
  flex: 1 1 400px;
}

.contact-v2-cv {
  flex: 1 1 400px;
}

.contact-v2-cv h2,
.contact-v2-intro h2 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 24px;
}

@media (max-width: 900px) {
  .contact-section-v2 {
    padding: 48px 24px;
  }
  .contact-v2-inner {
    gap: 0;
  }
  .contact-v2-inner::before {
    display: none;
  }
  .contact-v2-cv h2,
  .contact-v2-intro h2 {
    text-align: center;
  }
  .contact-v2-cv {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--divider);
  }
  .contact-v2-cv .btn {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }
}

.contact-v2-eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lime-accent);
  margin: 0 0 16px;
}

.contact-v2-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-med);
  margin: 0 0 40px;
  max-width: 480px;
}

.contact-v2-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 3px solid var(--lime-accent);
  padding-left: 20px;
}

.contact-v2-details strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.contact-v2-details span {
  display: block;
  color: var(--text-med);
  font-size: 15px;
}

.contact-v2-details a {
  display: block;
  color: var(--text-high);
  text-decoration: underline;
  margin-bottom: 8px;
}

/* ---------- Footer divider ---------- */
.footer-divider {
  border-top: 1px solid var(--divider);
  padding-top: 32px;
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 32px;
  margin-top: 16px;
}

.footer-inner {
  max-width: 1684px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-med);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text-high);
  text-decoration: underline;
}

/* ---------- Project page ---------- */
.project-subnav {
  background: var(--dark);
}

.project-subnav-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.14);
}

.back-link-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  padding: 20px 32px;
}

.back-link-dark:hover {
  color: white;
}

.back-link-dark svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.project-hero {
  background: var(--dark);
  color: white;
  padding: 136px 32px 220px;
  display: flex;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.project-hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-hero h1 {
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 400;
  margin: 0;
  line-height: 1.05;
}

.project-hero p {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  max-width: 640px;
}

.project-hero-image {
  flex: 1 1 320px;
  max-width: 480px;
  min-height: 260px;
  border-radius: 8px;
  background: var(--surface-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.meta-bar {
  background: var(--surface-grey);
  border-radius: 8px;
  display: flex;
  gap: 32px;
  padding: 40px 32px;
  margin: -64px 32px 64px;
  flex-wrap: wrap;
  position: relative;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.18);
}

.meta-item {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--divider);
}

.meta-item .label {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.meta-item .value {
  font-size: 16px;
  white-space: nowrap;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 0 32px;
}

.case-study-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 1748px;
  margin: 0 auto;
  padding: 0 32px;
}

.case-study-content {
  flex: 1 1 auto;
  min-width: 0;
}

.toc-rail {
  display: none;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 150px;
  position: sticky;
  top: 48px;
  padding-top: 64px;
}

.toc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-med);
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--divider);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc-link.active {
  color: var(--text-high);
  border-left-color: var(--text-high);
}

@media (min-width: 1320px) {
  .toc-rail {
    display: flex;
  }
}

.content-section {
  background: var(--surface-grey);
  border-radius: 16px;
  padding: 64px 48px;
  margin-bottom: 32px;
  font-family: 'Mulish', 'Inter', sans-serif;
}

.case-study-content > .content-section:last-child {
  margin-bottom: 0;
}

.case-study-page .case-study-content > section {
  margin-bottom: 192px;
}

.case-study-page .case-study-content > section:last-of-type {
  margin-bottom: 0;
}

.content-section h2.eyebrow {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 64px;
}

/* ---------- Eyebrow outside the grey blurb ---------- */
.eyebrow-outside {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 24px;
}

.split {
  display: flex;
  gap: 96px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.split.gap-lg {
  gap: 140px;
}

.split-lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--lime-accent);
}

.split > .split-lead {
  flex: 1 1 400px;
}

/* ---------- Big dramatic split-lead ---------- */
.split-lead-dramatic {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.stat-callout {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 0 32px;
  padding-left: 20px;
  border-left: 3px solid var(--lime-accent);
}

.split-body {
  flex: 1 1 400px;
  font-size: 18px;
  line-height: 1.7;
}

.split-body p {
  margin: 0 0 32px;
}

.split-body ul, .split-body ol {
  margin: 0 0 32px;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.split-body li {
  margin-bottom: 12px;
}

.split-body strong {
  font-weight: 600;
}

.callout {
  background: var(--lime-soft);
  border-radius: 16px;
  padding: 32px;
}

.callout p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
}

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

.callout strong {
  font-weight: 600;
}

.img-placeholder {
  background: var(--image-placeholder);
  border-radius: 8px;
  min-height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--image-placeholder-text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.real-image {
  border-radius: 8px;
  width: 100%;
  display: block;
}

.feature-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-e2), inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-high);
}

.feature-heading h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-high);
  margin: 0;
}

.strategy-card .feature-heading h3 {
  font-size: 15px;
}

.strategy-card {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 28px;
  gap: 24px;
}

.strategy-card .feature-heading {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 40px;
}

.feature-card > p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.feature-card > p:last-child {
  margin-bottom: 0;
}

.feature-card strong {
  font-weight: 600;
}

.overview-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 96px;
}

/* ---------- Card grid sitting outside the grey blurb ---------- */
.overview-card-grid-outside {
  margin-top: 32px;
  margin-bottom: 48px;
}

.insights-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .overview-card-grid,
  .insights-card-row {
    grid-template-columns: 1fr;
  }
}

.feature-card .split-body {
  font-size: 16px;
  line-height: 1.6;
}

.feature-card .split-body p {
  margin: 0 0 16px;
}

.feature-card .split-body ul,
.feature-card .split-body ol {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.feature-card .split-body li {
  margin-bottom: 8px;
}

.strategy-card ol,
.strategy-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
  color: var(--text-high);
}

.strategy-card p {
  padding-left: 0;
}

.strategy-card li {
  margin-bottom: 8px;
}

.strategy-card li:last-child {
  margin-bottom: 0;
}

.aside-note {
  font-size: 15px;
  font-style: italic;
  color: var(--text-med);
  line-height: 1.6;
  margin: 0 0 96px;
  max-width: 900px;
}

.subhead {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
}

.tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tool-chip {
  background: var(--surface-white);
  border-radius: 12px;
  padding: 16px 20px;
  flex: 1 1 220px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tool-chip-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-chip-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tool-chip-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-high);
}

.tool-chip strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.tool-chip span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-med);
}

.accent {
  color: var(--text-high);
  font-weight: 600;
}

/* ---------- Stat circles ---------- */
.stat-circle-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.stat-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 16px;
}

.stat-circle-value {
  font-family: 'Mulish', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-high);
}

.stat-circle-value small {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.6;
}

.stat-circle-label {
  font-family: 'Mulish', 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-high);
  opacity: 0.7;
  max-width: 120px;
}

/* ---------- Research flow cards ---------- */
.research-flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (min-width: 1200px) {
  .research-flow-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .research-flow-row {
    grid-template-columns: 1fr;
  }
}

.research-flow-step {
  background: var(--surface-grey);
  border-radius: 16px;
  padding: 32px 28px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  font-family: 'Mulish', 'Inter', sans-serif;
}

.research-flow-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.research-flow-number {
  font-weight: 700;
  font-size: 24px;
  color: var(--text-high);
}

.research-flow-step h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text-high);
}

.research-flow-step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-med);
  margin: 0;
}

@media (max-width: 640px) {
  .research-flow-step {
    min-height: 0;
    padding: 24px;
  }
}

/* ---------- Transcript / dialogue component ---------- */
.transcript-card {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transcript-bubble {
  max-width: 80%;
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.6;
}

.transcript-bubble .speaker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.transcript-bubble.me {
  align-self: flex-start;
  background: var(--surface-grey);
  border-bottom-left-radius: 4px;
}

.transcript-bubble.me .speaker {
  color: var(--text-med);
}

.transcript-bubble.founder {
  align-self: flex-end;
  background: var(--lime-soft);
  border-bottom-right-radius: 4px;
  text-align: right;
}

.transcript-bubble.founder .speaker {
  color: var(--text-high);
  opacity: 0.6;
}

/* ---------- Offset lime shadow card ---------- */
.feature-card-offset {
  border: 2px solid var(--text-high);
  box-shadow: 12px 12px 0 0 var(--lime);
}

/* ---------- Stacked strategy cards with offset shadow ---------- */
.strategy-card-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 400px;
}

.strategy-card-offset {
  border: 2px solid var(--text-high);
  transition: transform 0.2s ease;
}

.strategy-card-offset:hover {
  transform: scale(1.03);
}

.strategy-card-stack .feature-heading {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
}

.strategy-card-stack .feature-heading h3 {
  font-weight: 800;
}

/* ---------- Methodology flow (white cards, arrows) ---------- */
.method-flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}

.method-flow-step {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.method-flow-number {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-high);
}

.method-flow-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.method-flow-step p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-med);
  margin: 0;
}

@media (min-width: 1200px) {
  .method-flow-row {
    grid-template-columns: repeat(5, 1fr);
  }
  .method-flow-step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: var(--text-med);
  }
}

@media (max-width: 640px) {
  .method-flow-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Engaging quote card ---------- */
.quote-card-engaging {
  background: var(--lime-soft);
  border-radius: 16px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 160px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-high);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  left: 24px;
  pointer-events: none;
}

.quote-text {
  font-size: 22px;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-high);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-avatar svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.quote-attribution span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-med);
}

@media (max-width: 720px) {
  .quote-card-engaging {
    padding: 40px 32px;
  }
  .quote-mark {
    font-size: 100px;
  }
}

.coming-soon-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 96px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.coming-soon-page h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0;
}

.coming-soon-page p {
  font-size: 20px;
  line-height: 32px;
  margin: 0;
  max-width: 640px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary-high);
}

.back-link svg {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

/* ---------- Deep dive CTA ---------- */
.divein-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 0;
}

.divein-link {
  font-family: 'Mulish', 'Inter', sans-serif;
  font-size: 18px;
}

.case-study-page .case-study-content > section#overview {
  margin-bottom: 0;
}

/* ---------- Let's dive in wave banner ---------- */
.divein-banner {
  overflow: hidden;
  padding: 40px 0;
  margin: 48px 0;
}

.divein-track {
  display: flex;
  width: max-content;
  animation: divein-scroll 16s linear infinite;
}

.divein-item {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  white-space: nowrap;
  padding: 0 40px;
  display: inline-block;
  animation: divein-wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes divein-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes divein-wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .divein-track {
    animation: none;
  }
  .divein-item {
    animation: none;
  }
}

/* ---------- Scroll fade-in ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .project-hero {
    padding: 48px 24px 64px;
  }
  .site-nav {
    position: relative;
    padding: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface-white);
    padding: 12px 16px 24px;
    border-top: 1px solid var(--divider);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    z-index: 30;
  }
  .site-nav.on-dark .nav-menu {
    background: var(--dark);
    border-top-color: rgba(255, 255, 255, 0.14);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-item {
    height: auto;
    padding: 12px 4px;
    font-size: 20px;
  }
  .nav-item.active {
    border-bottom: none;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .nav-cta {
    justify-content: center;
    width: 100%;
    font-size: 18px;
    margin-top: 8px;
  }
  .wrap {
    padding: 0 16px;
  }
  .project-row-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-name,
  .project-desc {
    flex-basis: auto;
    width: 100%;
    margin-left: 0;
  }
  .project-desc {
    justify-content: space-between;
  }
  .project-desc p {
    opacity: 1;
    text-align: left;
  }
  .contact-section {
    padding: 40px 24px;
  }
  .meta-item::before {
    display: none;
  }
  .meta-bar {
    margin: 40px 16px 32px;
  }
  .content-section {
    padding: 40px 24px;
    margin-bottom: 20px;
  }
  .case-study-layout {
    padding: 0 16px;
  }
  .transcript-bubble {
    max-width: 92%;
  }
}
