:root {
  --case-bg: #f5f4f0;
  --case-surface: #ffffff;
  --case-text: #1a1a1a;
  --case-text-soft: #4a4a4a;
  --case-text-muted: #6b6b6b;
  --case-border: rgba(26, 26, 26, 0.1);
  --page-padding: clamp(40px, 8vw, 160px);
  --connect-pink: #c41e6a;
  --connect-pink-hover: #d42a78;
  --airbills-orange: #f0670a;
  --airbills-mint: #2d6b4f;
  --cs-more-work-green: #22c55e;
  --case-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.case-study {
  margin: 0;
  padding-top: 96px;
  background: var(--case-bg);
  color: var(--case-text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: var(--leading-body);
  overflow-x: hidden;
}

body.case-study p,
body.case-study li {
  line-height: 1.5;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Nav inherits from styles.css - light page override for logo */
body.case-study .logo {
  filter: none;
  opacity: 1;
}

/* ── Hero ── */
.case-hero {
  padding: 48px var(--page-padding) 40px;
  max-width: calc(var(--case-max) + var(--page-padding) * 2);
  margin: 0 auto;
}

.case-hero__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(240, 103, 10, 0.12);
  color: var(--airbills-orange);
  font-family: "Lexend Deca", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.case-hero h1 {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 18ch;
  color: var(--case-text);
}

.case-hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--case-text-soft);
  max-width: 58ch;
  margin: 0 0 32px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--case-border);
  border-bottom: 1px solid var(--case-border);
}

.case-meta dt {
  font-family: "Lexend Deca", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--case-text-muted);
  margin-bottom: 6px;
}

.case-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--case-text);
}

.case-hero__cta {
  margin: 0 0 28px;
}

body.case-study .case-hero .case-hero__connect {
  display: inline-block;
  text-decoration: none;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--connect-pink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.12);
  transition: background 0.2s ease;
}

body.case-study .case-hero .case-hero__connect:hover {
  background: var(--connect-pink-hover);
}

/* ── Sections ── */
.case-section {
  padding: 56px var(--page-padding);
  max-width: calc(var(--case-max) + var(--page-padding) * 2);
  margin: 0 auto;
}

.case-section--alt {
  background: var(--case-surface);
  max-width: 100%;
  border-top: 1px solid var(--case-border);
  border-bottom: 1px solid var(--case-border);
}

.case-section--full {
  max-width: 100%;
}

.case-section__inner {
  max-width: var(--case-max);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.case-section h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--case-text);
}

.case-section h3 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--case-text);
}

.case-section p,
.case-section li {
  color: var(--case-text-soft);
  font-size: 15px;
}

.case-kicker {
  font-family: "Lexend Deca", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--airbills-orange);
  margin-bottom: 8px;
}

.slide-img {
  border-radius: 12px;
  border: 1px solid var(--case-border);
  margin-top: 24px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Presentation uploads - contained, centered */
.slide-img--fit {
  display: block;
  width: 100%;
  max-width: min(800px, 100%);
  height: auto;
  margin-inline: auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.four-ws__card .four-ws__label,
.four-ws__card .four-ws__text {
  color: #fff;
}

/* ── 4 W's - bold 2×2 ── */
.four-ws {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.four-ws__card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  overflow: hidden;
  min-height: 180px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s;
}

.four-ws__card:hover {
  transform: translateY(-4px);
}

.four-ws__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.four-ws__shape--1 {
  width: 120px;
  height: 120px;
  top: -40px;
  right: -20px;
  background: #fff;
}

.four-ws__shape--2 {
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 40px;
  background: #fff;
  border-radius: 12px;
  transform: rotate(15deg);
}

.four-ws__label {
  font-family: "Lexend Deca", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  opacity: 0.9;
  position: relative;
}

.four-ws__text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}

.four-ws__card--who {
  background: linear-gradient(135deg, #f0670a 0%, #ff8c33 100%);
}

.four-ws__card--what {
  background: linear-gradient(135deg, #1a5c40 0%, #2d8b63 100%);
}

.four-ws__card--when {
  background: linear-gradient(135deg, #c41e6a 0%, #e0408a 100%);
}

.four-ws__card--why {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

/* ── Stats - 3 per row, bigger ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.stat-card {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--case-surface);
  border: 1px solid var(--case-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(240, 103, 10, 0.12);
}

.stat-card__num {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--airbills-orange);
  margin-bottom: 12px;
}

.stat-card__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--case-text);
  margin: 0 0 16px;
  line-height: 1.5;
}

.stat-bar {
  height: 8px;
  background: rgba(240, 103, 10, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--airbills-orange), #ff9a4d);
  border-radius: 99px;
}

.stat-card__note {
  font-size: 12px;
  color: var(--case-text-muted);
  margin-top: 10px;
}

/* ── Survey ── */
.survey-wrap {
  margin-top: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dadce0;
  background: #fff;
  color: #202124;
  font-family: Roboto, Arial, sans-serif;
  max-width: 640px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.survey-header {
  padding: 24px 24px 16px;
  border-top: 8px solid var(--airbills-orange);
  border-bottom: 1px solid #dadce0;
}

.survey-header h3 {
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #202124;
}

.survey-header p {
  margin: 0;
  font-size: 13px;
  color: #5f6368;
}

.survey-question {
  padding: 20px 24px;
  border-bottom: 1px solid #dadce0;
}

.survey-question label {
  display: block;
  font-size: 14px;
  color: #202124;
  margin-bottom: 12px;
}

.survey-question .required {
  color: #d93025;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #3c4043;
}

.survey-option input {
  accent-color: var(--airbills-orange);
}

.survey-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.survey-scale span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dadce0;
  border-radius: 50%;
  font-size: 13px;
  color: #5f6368;
}

.survey-scale span.active {
  background: var(--airbills-orange);
  border-color: var(--airbills-orange);
  color: #fff;
}

.survey-footer {
  padding: 16px 24px;
  font-size: 12px;
  color: #5f6368;
  background: #f8f9fa;
}

/* ── Wireframes & AI research uploads - full width, centered, no crop ── */
.wireframe-gallery,
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.wireframe-gallery__item,
.ai-grid__item {
  border-radius: 12px;
  overflow: visible;
  border: 1px solid var(--case-border);
  background: var(--case-surface);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.wireframe-gallery__item img,
.ai-grid__item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.wireframe-gallery__caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--case-text-muted);
  border-top: 1px solid var(--case-border);
}

.ai-callout {
  padding: 20px 22px;
  margin-top: 24px;
  border-radius: 12px;
  background: rgba(240, 103, 10, 0.08);
  border: 1px solid rgba(240, 103, 10, 0.2);
}

.ai-callout strong {
  color: var(--airbills-orange);
  font-family: "Lexend Deca", sans-serif;
}

.ai-grid__caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--case-text-muted);
  background: var(--case-surface);
  border-top: 1px solid var(--case-border);
}

/* ── Interviews ── */
.interview-block {
  margin-top: 32px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--case-border);
  background: var(--case-surface);
}

.interview-block h3 {
  margin-top: 0;
}

.interview-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--airbills-orange);
  margin: 20px 0 6px;
  font-family: "Lexend Deca", sans-serif;
}

.interview-a {
  font-style: italic;
  color: var(--case-text-soft);
  margin: 0;
  font-size: 14px;
  padding-left: 12px;
  border-left: 3px solid rgba(240, 103, 10, 0.35);
}

/* ── Flows ── */
.flow-diagram {
  margin: 28px 0;
  padding: 28px;
  background: var(--case-surface);
  border: 1px solid var(--case-border);
  border-radius: 16px;
  overflow-x: auto;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.flow-step {
  padding: 10px 16px;
  background: rgba(240, 103, 10, 0.1);
  border: 1px solid rgba(240, 103, 10, 0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--case-text);
  text-align: center;
  min-width: 100px;
}

.flow-arrow {
  color: var(--airbills-orange);
  font-size: 18px;
}

.flow-branch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-branch__col h4 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--airbills-orange);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Screen gallery - full, uncropped, large ── */
.screen-group-title {
  font-family: "Lexend Deca", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--airbills-orange);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(240, 103, 10, 0.2);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.screen-card {
  border-radius: 16px;
  overflow: visible;
  border: 1px solid var(--case-border);
  background: var(--case-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.screen-card__img-wrap {
  padding: 12px;
  background: #eceae6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.screen-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.screen-card__label {
  padding: 12px 16px;
  font-family: "Lexend Deca", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--case-text);
  text-align: center;
  border-top: 1px solid var(--case-border);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  :root {
    --page-padding: clamp(16px, 4.5vw, 32px);
  }

  body.case-study {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 56px));
  }

  body.case-study .top-nav {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .case-hero {
    padding-top: 28px;
  }

  .case-hero h1 {
    max-width: none;
  }

  .case-hero__cta .case-hero__connect {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
  }

  .case-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .case-section__inner {
    width: 100%;
  }

  .four-ws,
  .flow-branch,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .screen-gallery,
  .screen-gallery--auth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .screen-card__img-wrap {
    padding: 8px;
  }

  .slide-img--fit {
    max-width: min(680px, 100%);
  }

  .stat-card__num {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .survey-wrap {
    max-width: 100%;
    width: 100%;
  }

  .video-player--hero {
    max-width: 100%;
    width: 100%;
  }

  .more-projects__header {
    padding: 0 var(--page-padding);
  }

  .projects-carousel-wrap {
    padding: 0 var(--page-padding);
  }

  .carousel-nav button {
    width: 40px;
    height: 40px;
  }

  .four-ws__card {
    min-height: auto;
    padding: 24px 20px;
  }

  .flow-diagram {
    padding: 20px 16px;
  }

  .project-slide {
    flex: 0 0 min(280px, calc(100vw - var(--page-padding) * 2 - 24px));
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .screen-gallery,
  .screen-gallery--auth {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .case-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-card {
    padding: 24px 20px;
  }

  .interview-block {
    padding: 20px;
  }

  .chalkboard {
    padding: 28px 22px;
  }

  .prototype-section {
    padding: 56px var(--page-padding);
  }

  .screen-card__label {
    font-size: 14px;
    padding: 14px 12px;
  }

  .video-overlay-btn {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .ds-type-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ds-section--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Video - very large, centered overlay play ── */
.prototype-section {
  text-align: center;
  padding: 80px var(--page-padding);
  background: var(--case-surface);
  border-top: 1px solid var(--case-border);
  border-bottom: 1px solid var(--case-border);
}

.prototype-section h2,
.prototype-section p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.video-player--hero {
  position: relative;
  margin: 40px auto 0;
  width: 100%;
  max-width: min(880px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.video-player--hero video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f0f0f;
  vertical-align: top;
  outline: none;
}

.video-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(240, 103, 10, 0.92);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
  z-index: 2;
}

.video-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--airbills-orange);
}

.video-player--hero.is-playing .video-overlay-btn {
  opacity: 0;
  pointer-events: none;
}

.video-player--hero.is-playing:hover .video-overlay-btn,
.video-player--hero.is-paused-mid .video-overlay-btn {
  opacity: 1;
  pointer-events: auto;
}

.video-player--hero.is-paused-mid .video-overlay-btn {
  opacity: 0.85;
}

/* ── Chalkboard reflection ── */
.chalkboard-wrap {
  margin-top: 32px;
  padding: 8px;
  background: #3d3d3d;
  border-radius: 6px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.chalkboard {
  position: relative;
  padding: 40px 36px;
  background: #f2f2ee url("../assets/chalk-bg.png") center / cover no-repeat;
  border-radius: 2px;
  min-height: 280px;
}

.chalkboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 242, 238, 0.88);
  border-radius: 2px;
}

.chalkboard__inner {
  position: relative;
  z-index: 1;
}

.chalkboard h2 {
  font-family: "Kiwi Maru", serif;
  color: var(--case-text);
  margin-bottom: 28px;
}

.chalkboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.chalkboard-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: "Kiwi Maru", serif;
  font-size: 15px;
  color: var(--case-text);
  line-height: 1.5;
}

.chalkboard-list__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.chalkboard-list__dot--orange { background: var(--airbills-orange); }
.chalkboard-list__dot--pink { background: var(--connect-pink); }
.chalkboard-list__dot--green { background: var(--airbills-mint); }
.chalkboard-list__dot--blue { background: #3b82f6; }

.chalkboard-list strong {
  font-weight: 500;
}

/* ── Design system - standard with shapes ── */
.ds-section {
  margin-top: 28px;
}

.ds-section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ds-block {
  margin-bottom: 0;
}

.ds-block h3 {
  margin-top: 0;
  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--case-text-muted);
  margin-bottom: 20px;
}

.ds-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.ds-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ds-color-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--case-surface);
  outline: 1px solid var(--case-border);
}

.ds-color-rect {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ds-color-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--case-text);
  text-align: center;
}

.ds-color-hex {
  font-size: 11px;
  color: var(--case-text-muted);
  font-family: monospace;
}

.ds-type-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--case-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--case-surface);
}

.ds-type-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--case-border);
  gap: 10px;
}

.ds-type-row:last-child {
  border-bottom: none;
}

.ds-type-meta {
  font-size: 10px;
  color: var(--case-text-muted);
  line-height: 1.5;
}

.ds-type-meta strong {
  display: block;
  font-family: "Lexend Deca", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--case-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.ds-type-sample--display { font-family: "Lexend Deca", sans-serif; font-size: 22px; font-weight: 700; margin: 0; color: #1a1a1a; line-height: 1.2; }
.ds-type-sample--h1 { font-family: "Lexend Deca", sans-serif; font-size: 18px; font-weight: 700; margin: 0; color: #1a1a1a; line-height: 1.2; }
.ds-type-sample--h2 { font-family: "Lexend Deca", sans-serif; font-size: 15px; font-weight: 600; margin: 0; color: #1a1a1a; line-height: 1.2; }
.ds-type-sample--body { font-family: "DM Sans", sans-serif; font-size: 13px; margin: 0; color: #4a4a4a; line-height: 1.5; }
.ds-type-sample--caption { font-family: "DM Sans", sans-serif; font-size: 11px; margin: 0; color: #6b7280; line-height: 1.3; }
.ds-type-sample--button { font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 600; margin: 0; color: #f0670a; line-height: 1.3; }

.font-lexend { font-family: "Lexend Deca", sans-serif; }
.font-dmsans { font-family: "DM Sans", sans-serif; }

/* ── More projects carousel ── */
.more-projects {
  padding: 64px 0 48px;
  border-top: 1px solid var(--case-border);
  overflow: hidden;
}

.more-projects__header,
.cs-carousel-bar {
  max-width: none;
  width: 100%;
  margin: 0 0 20px;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.more-projects__header h2,
.cs-carousel-bar__title {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  margin: 0;
  color: var(--case-text);
}

.carousel-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--case-border);
  background: var(--case-surface);
  color: var(--case-text);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-nav button:hover {
  background: var(--airbills-orange);
  border-color: var(--airbills-orange);
  color: #fff;
}

.projects-carousel-wrap {
  padding: 0 var(--page-padding);
}

.projects-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.project-slide {
  flex: 0 0 min(300px, calc(100vw - var(--page-padding) * 2 - 48px));
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--case-border);
  background: var(--case-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.project-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.project-slide--current {
  opacity: 0.65;
}

.project-slide__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-slide__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slide__body {
  padding: 18px 20px 22px;
}

.project-slide__tag {
  font-family: "Lexend Deca", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.project-slide__tag--fintech { color: var(--airbills-orange); }
.project-slide__tag--marketplace { color: var(--airbills-mint); }
.project-slide__tag--web3 { color: #f97316; }
.project-slide__tag--web3-blue { color: #1d8fe8; }
.project-slide__tag--experience { color: #e11d74; }
.project-slide__tag--web3-media { color: #7c3aed; }

.project-slide h3 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--case-text);
}

.project-slide p {
  font-size: 13px;
  color: var(--case-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.project-slide__btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Lexend Deca", sans-serif;
  border: 1px solid var(--case-border);
  color: var(--case-text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.project-slide__btn:hover {
  background: var(--airbills-orange);
  border-color: var(--airbills-orange);
  color: #fff;
}

.project-slide__btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Unified thank you headline (all case studies) ── */
.cs-thank-you__headline,
.jg-more-work__headline,
.sp-more-work__headline,
.af-more-work__headline {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.cs-thank-you__line,
.jg-more-work__line,
.sp-more-work__line,
.sp-more-work__line--top,
.af-more-work__headline .cs-thank-you__line {
  display: block;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.cs-thank-you__line--bottom,
.jg-more-work__line--bottom,
.sp-more-work__line--bottom,
.af-more-work__headline .cs-thank-you__line--bottom {
  margin-top: 8px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Unified explore more projects (all case studies) ── */
body.case-study .more-projects {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(80px, 12vw, 120px) 0 clamp(48px, 6vw, 72px);
}

body.case-study .more-projects__header h2,
body.case-study .more-projects .cs-carousel-bar__title,
body.case-study .jg-more-work .cs-carousel-bar__title,
body.case-study .af-more-work .cs-carousel-bar__title,
body.case-study .sp-more-work .cs-carousel-bar__title {
  color: #fff;
}

body.case-study .jg-more-work .project-slide,
body.case-study .af-more-work .project-slide,
body.case-study .sp-more-work .project-slide,
body.case-study .more-projects .project-slide {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.case-study .jg-more-work .project-slide:hover,
body.case-study .af-more-work .project-slide:hover,
body.case-study .sp-more-work .project-slide:hover,
body.case-study .more-projects .project-slide:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.case-study .jg-more-work .project-slide h3,
body.case-study .af-more-work .project-slide h3,
body.case-study .sp-more-work .project-slide h3,
body.case-study .sp-more-work .project-slide__body h3,
body.case-study .more-projects .project-slide h3 {
  color: #fff;
}

body.case-study .jg-more-work .project-slide p,
body.case-study .af-more-work .project-slide p,
body.case-study .sp-more-work .project-slide p,
body.case-study .sp-more-work .project-slide__body p,
body.case-study .more-projects .project-slide p {
  color: rgba(255, 255, 255, 0.72);
}

body.case-study .jg-more-work .project-slide__btn,
body.case-study .af-more-work .project-slide__btn,
body.case-study .sp-more-work .project-slide__btn,
body.case-study .more-projects .project-slide__btn {
  color: var(--cs-more-work-green);
  background: #fff;
  border-color: #fff;
}

body.case-study .jg-more-work .project-slide__btn:hover,
body.case-study .af-more-work .project-slide__btn:hover,
body.case-study .sp-more-work .project-slide__btn:hover,
body.case-study .more-projects .project-slide__btn:hover {
  background: var(--cs-more-work-green);
  border-color: var(--cs-more-work-green);
  color: #fff;
}

body.case-study .jg-more-work .project-slide__btn--disabled,
body.case-study .af-more-work .project-slide__btn--disabled,
body.case-study .sp-more-work .project-slide__btn--disabled,
body.case-study .more-projects .project-slide__btn--disabled {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

body.case-study .jg-more-work .carousel-nav button:hover,
body.case-study .af-more-work .carousel-nav button:hover,
body.case-study .sp-more-work .carousel-nav button:hover,
body.case-study .more-projects .carousel-nav button:hover {
  background: var(--cs-more-work-green);
  border-color: var(--cs-more-work-green);
  color: #fff;
}

/* ── Footer ── */
.case-footer {
  padding: 32px var(--page-padding) 56px;
  text-align: center;
}

.back-to-top {
  display: inline;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  color: var(--case-text-muted);
  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.back-to-top:hover {
  color: var(--airbills-orange);
}

/* Nav connect stays pink — case-study page themes must not affect the menu */
body.case-study .top-nav__links > .connect-btn {
  background: var(--connect-pink);
  color: var(--chalk);
  border: none;
  box-shadow: 2px 2px 0 var(--chalk);
}

body.case-study .top-nav__links > .connect-btn:hover {
  background: var(--connect-pink-hover);
  color: var(--chalk);
}
