/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sidebar-width: 360px;
  --nav-height: 48px;
  --border: 1px solid #F6F6F6;
  --placeholder-bg: #F6F6F6;
  --text-muted: rgba(18,18,18,0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.22s ease;
}

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

body {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: #121212;
  background: #fff;
  line-height: 18px;
  /* vertical trim — removes cap/baseline whitespace */
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}


/* ── Top Nav ───────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: var(--border);
  z-index: 200;
}

/* Left brand block — same width as sidebar */
.nav-brand {
  flex-shrink: 0;
  width: var(--sidebar-width);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: var(--border);
  transition: width var(--transition), padding var(--transition);
  overflow: hidden;
}

.nav-brand.is-collapsed {
  width: 0;
  padding: 0;
  border-right: none;
}

.nav-logo-img,
.nav-brand-name {
  transition: opacity var(--transition), width var(--transition);
  white-space: nowrap;
}

.nav-brand.is-collapsed .nav-logo-img,
.nav-brand.is-collapsed .nav-brand-name {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

.nav-logo-img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

.nav-brand-name {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
}

/* ── Icon buttons (sidebar toggle, testimonial arrows) ─────────── */
.icon-btn {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 0;
  color: rgba(18,18,18,0.6);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}

.icon-btn:hover {
  background: #F6F6F6;
}

.icon-svg {
  width: 10px;
  height: 10px;
  display: block;
  flex-shrink: 0;
}

/* Right portion of nav — fills remaining width after sidebar */
.nav-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-meta {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

/* Nav-meta toggle: hidden when sidebar is open, shown when collapsed */
.nav-meta-toggle {
  display: none;
}

.nav-brand.is-collapsed + .nav-right .nav-meta-toggle {
  display: flex;
}

.nav-time {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.nav-section-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}

#navSectionText {
  width: 200px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-nav-btn {
  display: none;
}

.cs-nav-btn.is-visible {
  display: flex;
}

.nav-links {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 14px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  color: rgba(18,18,18,0.6);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-link:hover {
  color: #121212;
  background: #FAF9F7;
}

.nav-link.active {
  background: #FAF9F7;
  color: #121212;
  border-color: #F6F6F6;
}


/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100dvh - var(--nav-height));
  background: #fff;
  border-right: var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(0);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* When sidebar is hidden — slides left off screen */
.sidebar.is-hidden {
  transform: translateX(calc(-1 * var(--sidebar-width)));
  box-shadow: none;
}

/* ── Sidebar: Hero ─────────────────────────────────────────────── */
.sidebar-hero {
  padding: 12px;
  border-bottom: var(--border);
}

.hero-frame {
  height: 100px;
  background: #F6F6F6;
  border-radius: 6px;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cta-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.cta-row .btn--primary {
  width: 103px;
  flex-shrink: 0;
  padding: 12px;
}

.cta-row .btn--secondary {
  flex: 1;
  padding: 12px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.8;
}

.btn--primary {
  background: #121212;
  color: #fff;
}

.btn--secondary {
  background: #F6F6F6;
  color: #121212;
}

.btn--outline {
  background: #F6F6F6;
  color: #121212;
  border: none;
}


/* ── Sidebar: Rows ─────────────────────────────────────────────── */
.sidebar-rows {
  flex: 1;
}

.sidebar-row {
  display: grid;
  grid-template-columns: 103px 1fr;
  gap: 6px;
  padding: 16px 12px;
  border-bottom: var(--border);
}

.sidebar-row--cta {
  display: block;
  padding: 12px;
}

.row-label {
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 1px;
  line-height: 18px;
}

.row-content {
  font-size: 12px;
  line-height: 18px;
  color: #121212;
}

/* ── Experience ────────────────────────────────────────────────── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-company {
  font-weight: 500;
  color: #121212;
}

.exp-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-muted);
}

.exp-role {
  flex: 1;
}


/* ── Testimonial ───────────────────────────────────────────────── */
.testimonial-quote,
.testimonial-name,
.testimonial-avatar {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.testimonial-quote.t-out,
.testimonial-name.t-out,
.testimonial-avatar.t-out {
  opacity: 0;
  transform: translateY(-4px);
}

@keyframes testimonialIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-quote.t-in,
.testimonial-name.t-in,
.testimonial-avatar.t-in {
  animation: testimonialIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.testimonial-quote {
  font-size: 12px;
  line-height: 18px;
  min-height: 72px;
  overflow: hidden;
  margin-bottom: 12px;
  color: #121212;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.testimonial-avatar {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 12px;
  color: #121212;
}

.testimonial-nav {
  display: flex;
  gap: 0;
}



/* ── Services ──────────────────────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  line-height: 18px;
  padding: 8px 0;
}

.service-item + .service-item {
  border-top: var(--border);
}

.service-item:first-child { padding-top: 0; }
.service-item:last-child  { padding-bottom: 0; }

.service-price {
  color: var(--text-muted);
  font-size: 12px;
}


/* ── Social links ──────────────────────────────────────────────── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 4px;
  row-gap: 2px;
}

.client-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.social-links a {
  color: #121212;
}

.social-links a:hover {
  text-decoration: underline;
}

.client-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.client-tile {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.sep {
  color: var(--text-muted);
  margin-right: 2px;
}


/* ── Sidebar Footer ────────────────────────────────────────────── */
.sidebar-footer {
  margin-top: auto;
}

.sidebar-row--footer {
  border-bottom: none;
  border-top: var(--border);
}

.visits-count {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}


/* ── Main Content ──────────────────────────────────────────────── */
.main-content {
  position: fixed;
  top: var(--nav-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  overflow-y: auto;
  transition: left var(--transition);
  scrollbar-width: none; /* Firefox */
}

.main-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* When sidebar is hidden, main fills full width */
.main-content.sidebar-hidden {
  left: 0;
}


/* ── Project Grid ──────────────────────────────────────────────── */
.project-grid {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.project-grid--case-studies {
  grid-template-columns: 1fr 1fr;
}

.project-grid--explorations {
  grid-template-columns: 1fr 1fr 1fr;
}

.main-content.sidebar-hidden .project-grid--explorations {
  grid-template-columns: repeat(4, 1fr);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes csIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cs-enter {
  animation: csIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 20ms);
}

.project-card {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.project-card.card-enter {
  animation: cardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.project-card.is-hidden {
  display: none;
}

.project-thumb-link {
  display: block;
}

/* Case studies: 16:9 (1920×1080) */
.project-grid--case-studies .project-thumb {
  aspect-ratio: 16 / 9;
}

/* Explorations: 4:3 (1600×1200) */
.project-grid--explorations .project-thumb {
  aspect-ratio: 4 / 3;
}

.project-thumb {
  width: 100%;
  background: var(--placeholder-bg);
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.project-thumb lottie-player,
.project-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0 10px;
}

.project-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: #121212;
}

.project-desc {
  font-size: 12px;
  color: var(--text-muted);
}


/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,18,18,0.35);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
  overflow: hidden;
  transform: translateY(8px);
  transition: transform 0.18s;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
}

.modal-title {
  font-size: 12px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-close:hover {
  color: #121212;
}

/* ── Form ──────────────────────────────────────────────────────── */
.modal-form {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: var(--border);
}

.form-row--group {
  align-items: start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.form-row--textarea {
  align-items: start;
}

.form-label {
  font-size: 12px;
  color: #121212;
  font-weight: 500;
  padding-top: 2px;
}

.form-input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: #121212;
  background: transparent;
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  border: var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: #121212;
  resize: none;
  outline: none;
  width: 100%;
  background: #F6F6F6;
  line-height: 18px;
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

/* Toggle buttons (Budget / Start Date) */
.toggle-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #F6F6F6;
  color: #121212;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.12s;
}

.toggle-btn:hover {
  background: #EBEBEB;
}

.toggle-btn--active {
  background: #121212;
  color: #fff;
}

.toggle-btn--active:hover {
  background: #1c1c1c;
}

/* Modal footer */
.modal-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding-top: 16px;
  border-top: var(--border);
  margin-top: 8px;
}

/* Modal success state */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 12px;
  text-align: center;
}

.modal-success.is-visible {
  display: flex;
}

.modal-success-sub {
  color: var(--text-muted);
}


/* ── Lightbox ──────────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(18,18,18,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.lb-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lb-frame {
  width: min(90vw, 800px);
  max-height: 90vh;
  aspect-ratio: 4 / 3;
  background: var(--placeholder-bg);
  border-radius: 6px;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.lb-overlay.is-open .lb-frame {
  transform: translateY(0);
  opacity: 1;
}

.lb-frame img,
.lb-frame video,
.lb-frame lottie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-card[data-type="explorations"] {
  cursor: pointer;
}



/* ── Case Study: Return link ───────────────────────────────────── */
.cs-return {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}

.cs-return:hover {
  color: #121212;
}


/* Keep nav-links 300px slot while hiding content (preserves title centering) */
.nav-links.cs-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ── Case Study: View ──────────────────────────────────────────── */
.project-grid {
  transition: opacity 0.2s ease;
}

.cs-view {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 12px;
}

.cs-view.is-visible {
  opacity: 1;
}

.cs-bio {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 48px;
}

.cs-bio p {
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 16px;
}

.cs-bio p:last-of-type {
  margin-bottom: 0;
}

.cs-callouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 24px;
}

.cs-callout {
  padding: 0;
}

.cs-callout-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 18px;
  margin-bottom: 6px;
}

.cs-callout-value {
  font-size: 12px;
  color: #121212;
  line-height: 18px;
}

.cs-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 72px 72px;
}

.cs-image-full {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--placeholder-bg);
  border-radius: 6px;
  display: block;
}

.cs-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cs-image-pair .cs-image-full {
  aspect-ratio: 4 / 3;
}

.cs-image-full video,
.cs-image-full lottie-player,
.mob-cs-img-full video,
.mob-cs-img-full lottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* ── Ultrawide cap (2560px max) ────────────────────────────────── */
@media (min-width: 2561px) {
  :root {
    --side-offset: calc((100vw - 2560px) / 2);
  }

  .top-nav {
    left: var(--side-offset);
    right: var(--side-offset);
  }

  .sidebar {
    left: var(--side-offset);
  }

  .main-content {
    left: calc(var(--side-offset) + var(--sidebar-width));
    right: var(--side-offset);
  }

  .main-content.sidebar-hidden {
    left: var(--side-offset);
  }
}


/* ── Responsive: Tablet + Mobile (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  /* Sidebar overlays — never pushes main content */
  .sidebar {
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  }

  .sidebar.is-hidden {
    box-shadow: none;
  }

  /* Main always fills full width */
  .main-content {
    left: 0 !important;
  }

  /* Nav-meta shrinks to just the toggle button */
  .nav-meta {
    width: auto;
    min-width: 0;
  }

  .nav-time {
    display: none;
  }

  /* Tighter image padding on tablet */
  .cs-images {
    padding: 0 36px 72px;
  }
}


/* ── Mobile layout (hidden on desktop/tablet) ──────────────────── */
#mobileLayout,
#mobCsView {
  display: none;
}


/* ── Responsive: Mobile (≤720px) ───────────────────────────────── */
@media (max-width: 720px) {
  html {
    overflow: visible;
    height: auto;
  }
  body {
    overflow-y: auto;
    height: auto;
  }

  .top-nav,
  .sidebar,
  .main-content {
    display: none !important;
  }

  #mobileLayout {
    display: block;
    min-height: 100dvh;
  }

  /* ── Nav */
  .mob-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: var(--border);
    font-size: 12px;
    font-weight: 500;
  }

  /* ── Hero */
  .mob-hero {
    padding: 12px 16px;
    border-bottom: var(--border);
  }

  .mob-hero .hero-frame {
    height: 100px;
  }

  .mob-cta-row {
    display: flex;
    gap: 12px;
    width: 100%;
  }

  .mob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
  }

  .mob-btn:hover { opacity: 0.8; }
  .mob-btn--primary { background: #121212; color: #fff; width: 120px; flex-shrink: 0; font-size: 12px; padding: 14px 12px; }
  .mob-btn--secondary { background: #F6F6F6; color: #121212; flex: 1; }

  /* ── Info rows */
  .mob-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: var(--border);
    align-items: start;
  }

  .mob-row--cta {
    display: block;
    padding: 12px 16px;
  }

  .mob-row--stacked {
    grid-template-columns: 1fr;
  }


  .mob-row-label {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 1px;
    line-height: 18px;
  }

  .mob-row-content {
    font-size: 12px;
    line-height: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;
  }

  .mob-row-content a { color: #121212; }
  .mob-row-content a:hover { text-decoration: underline; }

  .mob-services {
    list-style: none;
    display: flex;
    flex-direction: column;
  }

  .mob-services li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    line-height: 18px;
    padding: 8px 0;
  }

  .mob-services li + li { border-top: var(--border); }
  .mob-services li:first-child { padding-top: 0; }
  .mob-services li:last-child  { padding-bottom: 0; }

  .mob-price { color: #121212; }
  .mob-price--muted { color: var(--text-muted); }

  /* ── Work section */
  .mob-work-header {
    position: sticky;
    top: 43px;
    z-index: 9;
    background: #fff;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: var(--border);
  }

  .mob-work-title {
    font-size: 12px;
    font-weight: 500;
  }

  .mob-filter-tabs {
    display: flex;
    gap: 4px;
  }

  .mob-filter-btn {
    flex: 1;
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: background 0.12s, color 0.12s;
  }

  .mob-filter-btn.active {
    background: #FAF9F7;
    color: #121212;
    border-color: #F6F6F6;
  }

  /* ── Vertical card grid */
  .mob-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 16px 48px;
  }

  .mob-card {
    cursor: pointer;
  }

  .mob-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--placeholder-bg);
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
  }

  .mob-card--exp .mob-card-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .mob-card-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .mob-card-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
  }

  .mob-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 18px;
  }

  /* ── Mobile Testimonials */
  .mob-testimonial {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mob-testimonial-quote {
    font-size: 12px;
    line-height: 18px;
  }

  .mob-testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mob-testimonial-author {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .mob-testimonial-avatar {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    display: block;
  }

  .mob-testimonial-name {
    font-size: 12px;
  }

  .mob-testimonial-nav {
    display: flex;
    gap: 0;
  }

  /* ── Mobile Case Study View */
  #mobCsView {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 300;
  }

  #mobCsView.is-visible { display: block; }

  .mob-cs-header {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 48px;
    border-bottom: var(--border);
    z-index: 10;
  }

  .mob-cs-return {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color var(--transition);
  }

  .mob-cs-return:hover { color: #121212; }

  .mob-cs-title {
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mob-cs-bio {
    padding: 24px 16px;
    border-bottom: var(--border);
  }

  .mob-cs-bio p {
    font-size: 13px;
    line-height: 19px;
    margin-bottom: 12px;
  }

  .mob-cs-bio p:last-of-type { margin-bottom: 0; }

  .mob-cs-callouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .mob-cs-callout-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 18px;
  }

  .mob-cs-callout-value {
    font-size: 12px;
    line-height: 18px;
  }

  .mob-cs-images {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 48px;
  }

  .mob-cs-img-full {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--placeholder-bg);
    background-size: cover;
    background-position: center;
  }

  .mob-cs-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .mob-cs-img-pair .mob-cs-img-full { aspect-ratio: 4 / 3; }
}
