/* ═══════════════════════════════════════════════════════════════════════
   HARD RESET — pure document flow, zero tricks
   ═══════════════════════════════════════════════════════════════════════ */

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

/* ── Global image rendering defaults ──────────────────────────────────────
   - max-width / height:auto preserves aspect ratio without forced scaling
   - image-rendering: auto lets the browser pick its highest-quality
     resampler (bicubic/Lanczos) for downscale; never use crisp-edges
     here as it disables filtering and harms photos/UI screenshots
   - the transform/backface pair forces images onto integer device-pixel
     boundaries when a parent uses transforms or filters, removing
     subpixel softness on retina */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  /* Above navbar (1000), sticky cards, and footer; keep last in <body> for paint order with mix-blend-mode */
  z-index: 2147483647;
  left: 0;
  top: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: transparent;
  white-space: nowrap;
  transition:
    width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    font-size 0.25s ease,
    opacity 0.2s ease;
}

.custom-cursor.active {
  opacity: 1;
}

.custom-cursor.cursor--view {
  width: 86px;
  height: 86px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  mix-blend-mode: difference;
}

.custom-cursor.cursor--view::after {
  content: 'View →';
}

.custom-cursor.cursor--coming-soon {
  width: 132px;
  height: 86px;
  border-radius: 43px;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  mix-blend-mode: difference;
}

.custom-cursor.cursor--coming-soon::after {
  content: 'Coming soon';
}

html {
  overflow-x: hidden;
  /* Page canvas: fills overscroll and the gap above the footer (footer sits outside `main`) */
  background-color: #F7F6F5;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Satoshi', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #F7F6F5;
}

/* ── Site footer (all pages) ─────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 0;
  margin-top: 100px;
  border-top: 1px solid #bdbdbd;
  padding: 50px 40px 48px;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #313131;
  background-color: transparent;
}

.site-footer__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 1.35em;
}

.site-footer__copy {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer__social {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.site-footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.site-footer__icon-visual {
  display: block;
  flex-shrink: 0;
  background-color: #626262;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.2s ease;
}

.site-footer__icon--linkedin .site-footer__icon-visual {
  width: 21px;
  height: 21px;
  -webkit-mask-image: url(l1.svg);
  mask-image: url(l1.svg);
}

.site-footer__icon--email .site-footer__icon-visual {
  width: 21px;
  height: 18px;
  -webkit-mask-image: url(g1.svg);
  mask-image: url(g1.svg);
}

.site-footer__icon:hover .site-footer__icon-visual {
  background-color: #0148f5;
}

.site-footer__icon:focus-visible {
  outline: 2px solid #313131;
  outline-offset: 4px;
}

.site-footer__top {
  flex: 1 1 auto;
  text-align: right;
  color: #313131;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__top:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__top:focus-visible {
  outline: 2px solid #313131;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
    font-size: 14px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
  }

  .site-footer__social {
    position: static;
    transform: none;
    order: -1;
  }

  .site-footer__copy,
  .site-footer__top {
    flex: none;
    text-align: center;
    white-space: normal;
  }
}

/* ── Debug labels (remove later) ─────────────────────────────────────── */

/* ── Navbar — only fixed element on the page ─────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 40px;
  transition: transform 0.35s ease, background 0.3s ease;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar--frosted {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar--dark {
  background: transparent;
}

.navbar--dark .nav-link {
  color: #ffffff;
}

.navbar--dark .nav-link:hover {
  color: #ffffff;
  font-weight: 500;
}

.navbar--hidden {
  transform: translateY(-100%);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 32px;
}

.nav-left {
  justify-self: start;
  position: relative;
  z-index: 1;
}

.nav-left > .nav-link {
  position: relative;
  z-index: 2;
}

.navbar__projects-wrap .nav-link--projects {
  position: relative;
  z-index: 2;
}

.nav-right {
  justify-self: end;
  position: relative;
  z-index: 2;
}

.navbar__center {
  justify-self: center;
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

/* Matches .nav-link typography and default color; frosted / case-study overrides below. */
.navbar__brand {
  display: block;
  position: relative;
  z-index: 1;
  padding: 40px;
  margin: -40px;
  box-sizing: border-box;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #626262;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    font-weight 0.15s ease;
}

.navbar.navbar--brand-visible .navbar__brand {
  opacity: 1;
  visibility: visible;
}

.navbar__brand:hover {
  text-decoration: none;
  font-weight: 500;
}

.nav-link {
  display: inline-block;
  position: relative;
  z-index: 1;
  /* Hover / hit area ~40px beyond visible text; negative margin keeps layout unchanged. */
  padding: 40px;
  margin: -40px;
  box-sizing: border-box;
  color: #626262;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition:
    color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    font-weight 0.15s ease;
}

.nav-link:hover {
  color: #626262;
  font-weight: 500;
}

.navbar--frosted .nav-link {
  color: #232323;
}

.navbar--frosted .nav-link:hover {
  color: #2e2e2e;
  font-weight: 500;
}

.navbar--frosted .navbar__brand {
  color: #232323;
}

/* ── Projects mega-menu (LGC ref: Figma node 2160:42319) ─────────────── */

:root {
  --navbar-mega-offset: 88px;
}

.navbar__projects-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar__mega {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.navbar__projects-wrap:hover .navbar__mega,
.navbar__projects-wrap:focus-within .navbar__mega {
  opacity: 1;
  visibility: visible;
  /* Children handle hits so the strip above the panel does not block navbar links */
  pointer-events: none;
}

.navbar__projects-wrap:hover .navbar__mega-backdrop,
.navbar__projects-wrap:hover .navbar__mega-panel,
.navbar__projects-wrap:focus-within .navbar__mega-backdrop,
.navbar__projects-wrap:focus-within .navbar__mega-panel {
  pointer-events: auto;
}

.navbar.navbar--hidden .navbar__mega {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.navbar__mega-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--navbar-mega-offset, 88px);
  bottom: 0;
  background: rgba(247, 247, 242, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Panel aligns under the nav row; nav row uses same fill while open (see :has rule below). */
.navbar__mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--navbar-mega-offset, 88px);
  padding: 36px 40px 44px;
  background: #f7f7f2;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

/* One continuous mega surface: bar + dropdown share #f7f7f2 (mega sits under nav in z-order). */
.navbar:has(.navbar__projects-wrap:hover),
.navbar:has(.navbar__projects-wrap:focus-within) {
  background: #f7f7f2 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Case-study hero nav is white on transparent; cream mega bar needs dark links. */
body.case-study-page .navbar:has(.navbar__projects-wrap:hover) .nav-link,
body.case-study-page .navbar:has(.navbar__projects-wrap:hover) .nav-link:hover,
body.case-study-page .navbar:has(.navbar__projects-wrap:focus-within) .nav-link,
body.case-study-page .navbar:has(.navbar__projects-wrap:focus-within) .nav-link:hover {
  color: #060606;
}

body.case-study-page .navbar:has(.navbar__projects-wrap:hover) .navbar__brand,
body.case-study-page .navbar:has(.navbar__projects-wrap:focus-within) .navbar__brand {
  color: #060606;
}

.navbar__mega-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1328px;
  margin: 0 auto;
}

.navbar__mega-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  outline: none;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.navbar__mega-card:hover {
  transform: translateY(-2px);
}

.navbar__mega-card:focus-visible {
  outline: 2px solid #2d7ff9;
  outline-offset: 6px;
}

.navbar__mega-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__mega-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.navbar__mega-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4a4a;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
}

.navbar__projects-wrap:hover .nav-link--projects,
.navbar__projects-wrap:focus-within .nav-link--projects {
  color: #060606;
  font-weight: 500;
}

.navbar__projects-wrap:hover .nav-link--projects::after,
.navbar__projects-wrap:focus-within .nav-link--projects::after {
  content: '';
  position: absolute;
  left: 50%;
  /* With 40px bottom padding, sit ~8px below the text line (was bottom: -8px with no padding). */
  bottom: 32px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #060606;
}

.nav-link--projects {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .navbar__mega {
    transition: none;
  }

  .navbar__mega-card {
    transition: none;
  }

  .navbar__mega-card:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .navbar__mega-inner {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .navbar__mega-card {
    scroll-snap-align: start;
    min-width: 120px;
  }
}

@media (max-width: 900px) {
  .navbar__mega-panel {
    padding: 28px 24px 36px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   #hero — exactly 100vh
   position: relative ONLY so the canvas can be absolute inside it.
   overflow: hidden ONLY to clip the canvas to this box.
   ═══════════════════════════════════════════════════════════════════════ */

#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #F7F6F5;
  will-change: transform;
}

#blob-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 2;
}

.hero-grid {
  display: none;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #BFD1FC 1px, transparent 1px),
    linear-gradient(to bottom, #BFD1FC 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(
    32px circle at var(--hero-mx, -9999px) var(--hero-my, -9999px),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.9) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    32px circle at var(--hero-mx, -9999px) var(--hero-my, -9999px),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.9) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-subtitle,
.hero-name {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin: 0;
  white-space: nowrap;
}

.hero-subtitle {
  top: 37%;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.01em;
  color: #060606;
}

.hero-name {
  top: 52%;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 150px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #060606;
}

.hero-bottom-right {
  position: absolute;
  bottom: 48px;
  right: 40px;
  text-align: right;
  z-index: 4;
}

.hero-tagline {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #060606;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

/* Homepage — nav + brand (#060606); case studies keep their own nav colors */
body:not(.case-study-page) .nav-link,
body:not(.case-study-page) .nav-link:hover {
  color: #060606;
}

body:not(.case-study-page) .navbar__brand {
  color: #060606;
}

body:not(.case-study-page) .navbar--frosted .nav-link,
body:not(.case-study-page) .navbar--frosted .nav-link:hover {
  color: #060606;
}

body:not(.case-study-page) .navbar--frosted .navbar__brand {
  color: #060606;
}

body:not(.case-study-page) .nav-link.nav-link--current,
body:not(.case-study-page) .nav-link.nav-link--current:hover {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   #intro — ~75vh, normal flow, no position tricks
   ═══════════════════════════════════════════════════════════════════════ */

#intro {
  position: relative;         /* only for debug-label */
  height: 100vh;
  background: #F7F6F5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  will-change: transform;
}

.statement-text {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.5;
  text-align: center;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.statement-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.statement-text .highlight {
  background: linear-gradient(
    100deg,
    #1d4ed8 0%,
    #3b82f6 20%,
    #60a5fa 35%,
    #93c5fd 50%,
    #60a5fa 65%,
    #3b82f6 80%,
    #1d4ed8 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: clarityFlow 6s ease-in-out infinite;
}

@keyframes clarityFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .statement-text .highlight {
    animation: none;
    background-position: 50% 50%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   #projects-stack — editorial cards + sticky stacking (desktop)
   ═══════════════════════════════════════════════════════════════════════ */

.projects-stack {
  position: relative;
  background: #F7F6F5;
  padding: 96px 0 0;
  overflow: visible;
}

.projects-stack__container {
  max-width: none;
  margin: 0;
  padding: 0 40px 40px;
}

/* Sticky stack — all cards share the same top so each new card scrolls
   up and lands directly on top of the previous one. Z-index ascends so
   the newer card always paints over the older one. */
.project-card {
  position: sticky;
  top: 96px;
  margin-bottom: 20px;
}

.project-card--last {
  margin-bottom: 0;
}

.project-card:nth-child(1) { z-index: 1; }
.project-card:nth-child(2) { z-index: 2; }
.project-card:nth-child(3) { z-index: 3; }
.project-card:nth-child(4) { z-index: 4; }
.project-card:nth-child(5) { z-index: 5; }

.project-card__surface {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  padding: 40px clamp(36px, 4.5vw, 64px);
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-height: min(560px, 70vh);
  display: flex;
  align-items: center;
}

.project-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
}

.project-card__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.project-card__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #6f6f6f;
  margin-bottom: 22px;
  line-height: 1.5;
}

.project-card__title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  color: #131313;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.project-card__desc {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 400;
  color: #4d4d4d;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 40ch;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-card__tag {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3b6bd6;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(65, 118, 247, 0.1);
  letter-spacing: 0.01em;
  line-height: 1;
}

.project-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.project-card__visual img {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
}

.project-card__text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.project-card__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .projects-stack {
    padding: 72px 0 100px;
    background: #f2f1ef;
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5) {
    position: relative;
    top: auto;
    z-index: auto;
    margin-bottom: 20px;
  }

  .project-card--last {
    margin-bottom: 0;
  }

  .project-card__surface {
    min-height: 0;
  }

  .project-card__surface {
    padding: 28px 22px;
  }

  .project-card__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card__desc {
    max-width: none;
  }

  .project-card__visual img {
    max-width: none;
  }

  .navbar,
  body.case-study-page .navbar {
    padding: 20px 24px;
  }
  .nav-left, .nav-right { gap: 20px; }
  .nav-link { font-size: 13px; }
  .navbar__brand {
    font-size: 13px;
    max-width: 36vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 600px) {
  .statement-text { font-size: 22px; }
  .project-card__title { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   #about — About / Credibility section
   ═══════════════════════════════════════════════════════════════════════ */

.about-credibility {
  background: #F7F6F5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(64px, 9vh, 120px) 40px;
  font-family: 'Satoshi', 'Inter', sans-serif;
}

.about-credibility__container {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: 40px;
  align-items: center;
}

/* ── Left: framed portrait ────────────────────────────────────────── */
.about-credibility__photo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.about-credibility__photo-frame {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.about-credibility__photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border: 0;
  outline: 0;
  border-radius: 8px;
}

/* ── Right: content ───────────────────────────────────────────────── */
.about-credibility__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-credibility__heading {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #131313;
  margin: 0 0 18px;
  max-width: 36ch;
}

.about-credibility__paragraph {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  color: #4d4d4d;
  margin: 0 0 14px;
  max-width: 60ch;
}

.about-credibility__experience {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  color: #4d4d4d;
  margin: 0 0 28px;
  max-width: 60ch;
}

/* ── Logo grid ────────────────────────────────────────────────────── */
.about-credibility__logos {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 820px;
}

.about-credibility__logo-tile {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6% 8%;
  overflow: hidden;
}

.about-credibility__logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── CTA buttons ──────────────────────────────────────────────────── */
.about-credibility__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: none;
}

.about-btn--primary {
  background: #1f4dff;
  color: #ffffff;
  border: 1px solid #1f4dff;
}

.about-btn--primary:hover {
  background: #1a43e0;
  border-color: #1a43e0;
}

.about-btn--secondary {
  background: transparent;
  color: #1f4dff;
  border: 1px solid #1f4dff;
}

.about-btn--secondary:hover {
  background: rgba(31, 77, 255, 0.06);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-credibility {
    min-height: auto;
    padding: 80px 32px;
  }

  .about-credibility__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-credibility__photo-frame img {
    max-height: none;
  }

  .about-credibility__logos {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .about-credibility {
    padding: 64px 20px;
  }

  .about-credibility__heading {
    font-size: 22px;
  }

  .about-credibility__logos {
    gap: 12px;
  }

  .about-credibility__cta {
    width: 100%;
  }

  .about-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Case study page — Zenda (and reusable for future case studies)
   ═══════════════════════════════════════════════════════════════════════ */

body.case-study-page {
  background: #F7F6F5;
  font-family: 'Satoshi', 'Inter', sans-serif;
  /*
   * Viewport gutters (LGC / Figma): up to 200px each side. Previously the gutter
   * was derived from (100vw − 1328px) / 2, which collapsed margins on laptop widths
   * (e.g. ~56px at 1440px). Use half of (viewport − minimum readable column) instead,
   * capped at 200px and floored at 24px, so 200px gutters apply whenever space allows.
   */
  --cs-content-max: 1328px;
  --cs-min-content: 320px;
  --cs-side: max(24px, min(200px, calc((100vw - var(--cs-min-content)) / 2)));
  --cs-section-gap: 80px;
  --cs-page-bottom: 120px;
}

body.case-study-page main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--cs-side);
  padding-right: var(--cs-side);
}

body.case-study-page--dark {
  background: #202020;
}

/* Case-study nav: white over hero; after scroll (`navbar--frosted`) light opaque bar + gray links. */
body.case-study-page .nav-link,
body.case-study-page .nav-link:hover {
  color: #ffffff;
}

body.case-study-page .navbar--frosted {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.case-study-page .navbar--frosted .nav-link {
  color: #4a4a4a;
}

body.case-study-page .navbar--frosted .nav-link:hover {
  color: #4a4a4a;
  font-weight: 500;
}

body.case-study-page .navbar__brand {
  color: #ffffff;
}

body.case-study-page .navbar--frosted .navbar__brand {
  color: #4a4a4a;
}

/* American Express — navbar links + brand #060606 (over hero and when frosted). */
body.case-study-page.case-study--amex .nav-link,
body.case-study-page.case-study--amex .nav-link:hover {
  color: #060606;
}

body.case-study-page.case-study--amex .navbar__brand {
  color: #060606;
}

body.case-study-page.case-study--amex .navbar--frosted .nav-link,
body.case-study-page.case-study--amex .navbar--frosted .nav-link:hover {
  color: #060606;
}

body.case-study-page.case-study--amex .navbar--frosted .navbar__brand {
  color: #060606;
}

body.case-study-page .navbar {
  box-sizing: border-box;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Same horizontal padding as homepage `.navbar` (40px desktop, 24px ≤900px) — not `--cs-side`. */
  padding: 28px 40px;
}

.case-hero {
  background: #F7F6F5;
  height: 100vh;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* Full-viewport hero strip (break out of `main` horizontal padding on case study). */
body.case-study-page .case-hero {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  max-width: none;
}

.case-hero__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

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

/* ═══════════════════════════════════════════════════════════════════════
   Case study — long-form content sections (Zenda)
   Horizontal inset lives on `main` (`--cs-side`); sections are full width of main’s content box.
   ═══════════════════════════════════════════════════════════════════════ */

.cs-section {
  width: 100%;
  padding: 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
  color: #1A1A1A;
}

.cs-container {
  width: 100%;
  max-width: var(--cs-content-max, 1328px);
  margin: 0 auto;
}

/* Case study: align the 1328px column to the viewport gutter (not centered in the band). */
body.case-study-page .cs-container {
  margin-left: 0;
  margin-right: auto;
}

/* Space between consecutive case-study sections (Figma: 80px). */
.cs-section + .cs-section {
  margin-top: var(--cs-section-gap, clamp(48px, 6vw, 80px));
}

.cs-section--last {
  padding-bottom: var(--cs-page-bottom, clamp(80px, 9vw, 120px));
}

/* ── Title block ───────────────────────────────────────────────── */
.cs-title {
  margin-top: 64px;
}

.cs-eyebrow {
  font-family: 'IBM Plex Mono', 'Satoshi', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #6B6B6B;
  text-transform: none;
}

.cs-title__heading {
  margin-top: 32px;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #181818;
}

.cs-title__lede {
  margin-top: 40px;
  max-width: 1100px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #4F4F4F;
  font-weight: 400;
}

/* Zenda case study — scroll-in reveal (same motion as home #intro .statement-text) */
body.case-study-page .cs-scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

body.case-study-page .cs-scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.case-study-page .cs-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Stats row ─────────────────────────────────────────────────── */
.cs-stats-section {
  /* Spacing from title comes from .cs-section + .cs-section only. */
  margin-top: 0;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid #E5E2DD;
}

.cs-stat__label {
  font-family: 'IBM Plex Mono', 'Satoshi', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #6B6B6B;
  text-transform: uppercase;
}

.cs-stat__value {
  margin-top: 16px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  line-height: 1.65;
  color: #1A1A1A;
}

/* ── Standard section heading + body ───────────────────────────── */
.cs-h2 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  color: #181818;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
}

.cs-h3 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: #181818;
  margin-bottom: 16px;
}

.cs-body {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #4F4F4F;
  font-weight: 400;
}

.cs-body--top-gap {
  margin-top: 24px;
}

.cs-caption {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.65;
  color: #8A8A8A;
  font-style: italic;
  text-align: center;
}

.cs-caption--top {
  margin-top: 40px;
  text-align: left;
}

.cs-final-video {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #191f27;
  text-align: center;
}

.cs-final-video video {
  display: block;
  width: min(100%, calc(min(82vh, 960px) * (2638 / 1478)));
  max-width: 100%;
  height: auto;
  aspect-ratio: 2638 / 1478;
  margin-inline: auto;
  object-fit: contain;
}

/* ── Process list (Design Process & Scope) ─────────────────────── */
.cs-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 920px;
}

.cs-process__item {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: flex-start;
  gap: 24px;
}

.cs-process__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E5EBFE;
  color: #4271FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Scope (and similar): external SVGs already include the circular background. */
.cs-process__icon--asset {
  background: transparent;
  color: inherit;
  padding: 0;
}

.cs-process__icon--asset img {
  display: block;
  width: 50px;
  height: 50px;
}

.cs-process__title {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  color: #181818;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.cs-process__sub {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.65;
  color: #5A5A5A;
}

.cs-process--compact { gap: 22px; }

/* ── Quote callout ─────────────────────────────────────────────── */
.cs-quote {
  margin-top: 40px;
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 28px);
  background: #EAF0FF;
  border-radius: 12px;
}

.cs-quote p {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #2F46A8;
  font-style: italic;
  font-weight: 400;
}

/* ── User cards (2-up grid) ────────────────────────────────────── */
.cs-users {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cs-user-card {
  border: 1px solid #E5E2DD;
  border-radius: 14px;
  padding: 32px;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.cs-user-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.cs-user-card__num {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #181818;
  line-height: 1;
  letter-spacing: -0.01em;
}

.cs-user-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F4F4F;
  transition: background 0.2s ease, color 0.2s ease;
}

.cs-user-card__arrow:hover {
  background: #F1EFEC;
  color: #181818;
}

.cs-user-card__title {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  color: #181818;
  margin-bottom: 28px;
  line-height: 1.4;
}

.cs-user-card__lede {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #4F4F4F;
}

.cs-user-card__lede + .cs-user-card__lede {
  margin-top: 8px;
}

.cs-user-card__sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-user-card__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-user-card__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 600;
  color: #181818;
  margin: 0;
}

.cs-user-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E5EBFE;
  border: 2px solid #4271FF;
  flex-shrink: 0;
}

.cs-user-card__icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  display: block;
}

.cs-user-card__list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-user-card__list li {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #5A5A5A;
}

/* ── Decision-row (System / Human signals) ─────────────────────── */
.cs-decision-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  align-items: center;
}

.cs-decision-row__node {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cs-decision-row__points {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-decision-row__points li {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #5A5A5A;
}

/* ── Principles list (Design Decisions) ────────────────────────── */
.cs-principles {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.cs-principle__title {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  color: #181818;
  margin-bottom: 6px;
}

.cs-principle__sub {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.65;
  color: #5A5A5A;
  max-width: 1100px;
}

/* ── Sub-block within a section (e.g. Various Zoom Heights) ────── */
.cs-subblock {
  margin-top: 64px;
}

/* ── Image grids ───────────────────────────────────────────────── */
.cs-image-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.cs-image-grid--two {
  grid-template-columns: 1fr 1fr;
}

.cs-image-grid--asym {
  grid-template-columns: 1.6fr 1fr;
  align-items: stretch;
}

.cs-image-grid--asym .cs-image-grid__item {
  background: #F2EEE8;
  aspect-ratio: unset;
  min-height: 0;
  align-self: stretch;
}

.cs-image-grid--asym .cs-image-grid__item--wide {
  aspect-ratio: unset;
}

.cs-image-grid--asym .cs-image-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cs-image-grid__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #EAE6E0;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-image-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-image-grid--two .cs-image-grid__item {
  aspect-ratio: 660 / 476;
  background: #F2EEE8;
}

.cs-image-grid--two .cs-image-grid__item img {
  object-fit: contain;
}

.cs-image-grid--zoom .cs-image-grid__item {
  aspect-ratio: 650 / 577;
  background: #F2EEE8;
}

.cs-image-grid--zoom .cs-image-grid__item img {
  object-fit: contain;
}

.cs-image-grid__item--placeholder {
  background: linear-gradient(135deg, #EFEAE2 0%, #E5DFD4 100%);
  color: #8B8170;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}

.cs-image-grid__item--placeholder span {
  font-style: italic;
  font-family: 'IBM Plex Mono', monospace;
  opacity: 0.85;
}

.cs-image-grid__item--dark {
  background: linear-gradient(160deg, #181a22 0%, #0f1117 100%);
  color: #6E7283;
  aspect-ratio: 4 / 3;
}

.cs-image-grid__item--wide {
  aspect-ratio: 16 / 9.5;
}

/* ── Side panel preview row inside Smart Signals card ──────────── */
.cs-users--decisions {
  margin-top: 40px;
}

.cs-users--panels {
  margin-top: 32px;
}

.cs-panel-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 32px;
  align-items: flex-start;
}

.cs-panel-row__image {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.cs-panel-row__image img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-panel-row__text {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #5A5A5A;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  body.case-study-page {
    --cs-section-gap: 56px;
    --cs-page-bottom: 88px;
  }

  .cs-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cs-users {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cs-image-grid--two,
  .cs-image-grid--asym {
    grid-template-columns: 1fr;
  }
  .cs-panel-row {
    grid-template-columns: 1fr;
  }
  .cs-decision-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .cs-decision-row__node {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 600px) {
  .cs-process__item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .cs-process__icon {
    width: 40px;
    height: 40px;
  }
  .cs-user-card {
    padding: 22px;
  }
}

/* ── American Express + Zenda — primary body / lede text (#060606) ── */
body.case-study-page.case-study--amex .cs-body,
body.case-study-page.case-study--zenda .cs-body,
body.case-study-page.case-study--amex .cs-title__lede,
body.case-study-page.case-study--zenda .cs-title__lede,
body.case-study-page.case-study--byjus-lq .cs-body,
body.case-study-page.case-study--byjus-lq .cs-title__lede {
  color: #060606;
}

body.case-study-page.case-study--zenda .cs-user-card__lede {
  color: #060606;
}

/* ── American Express + Zenda — page canvas (same as `body.case-study-page`) ── */
body.case-study-page.case-study--amex,
body.case-study-page.case-study--zenda,
body.case-study-page.case-study--byjus-lq {
  background: #f7f6f5;
}

/* ── American Express case study — Figma node 2115:40582 (layout + accents) ── */
body.case-study-page.case-study--amex {
  --cs-section-gap: 60px;
}

/* Exact 60px between Existing Platform and Research: inter-section margin only (no extra padding-top on Research surface). */
body.case-study-page.case-study--amex .cs-amex-existing + .cs-amex-research {
  margin-top: 60px;
}

body.case-study-page.case-study--amex .cs-amex-callout {
  margin-top: 32px;
  padding: 28px 32px 28px 28px;
  background: #e8efff;
  border-left: 4px solid #2d7ff9;
  border-radius: 10px;
}

body.case-study-page.case-study--amex .cs-amex-callout p {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  font-style: italic;
  color: #2f46a8;
}

body.case-study-page.case-study--amex .cs-amex-approach-figure {
  margin: 36px 0 0;
  padding: 0;
  max-width: 100%;
}

body.case-study-page.case-study--amex .cs-amex-approach-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Existing Platform & Journeys — muted panel (#F5F5F5); horizontal inset comes from `main` + `.cs-container` only (no extra side padding on the surface). */
body.case-study-page.case-study--amex .cs-amex-existing .cs-amex-existing__surface {
  background: #f5f5f5;
  border-radius: 12px;
  padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 44px);
}

body.case-study-page.case-study--amex .cs-amex-existing .cs-h2 {
  color: #333333;
  margin-bottom: clamp(28px, 3vw, 40px);
}

body.case-study-page.case-study--amex .cs-amex-existing .cs-body {
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-existing .cs-amex-journey-figure {
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding: 0;
  max-width: 100%;
}

body.case-study-page.case-study--amex .cs-amex-journey-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Research — panel (#F8F8F8); `padding-top: 0` so the 60px gap is only `.cs-section` margin, not stacked. Inner offset lives on `.cs-container`. */
body.case-study-page.case-study--amex .cs-amex-research .cs-amex-research__surface {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 0 0 clamp(44px, 6vw, 72px);
}

body.case-study-page.case-study--amex .cs-amex-research .cs-container {
  padding-top: clamp(32px, 4vw, 44px);
}

body.case-study-page.case-study--amex .cs-amex-research .cs-h2 {
  color: #333333;
  margin-bottom: clamp(28px, 3vw, 40px);
}

body.case-study-page.case-study--amex .cs-amex-research .cs-body {
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-research .cs-amex-research-figure {
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding: 0;
  max-width: 100%;
}

body.case-study-page.case-study--amex .cs-amex-research-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* User Flows — old vs new diagrams (#F9F9F9) */
body.case-study-page.case-study--amex .cs-amex-flows .cs-amex-flows__surface {
  background: #f9f9f9;
  border-radius: 12px;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

body.case-study-page.case-study--amex .cs-amex-flows .cs-h2 {
  color: #333333;
  margin-bottom: clamp(28px, 3vw, 40px);
}

body.case-study-page.case-study--amex .cs-amex-flows .cs-body {
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-flows .cs-amex-flows__intro + .cs-amex-flows__intro {
  margin-top: clamp(40px, 5vw, 56px);
}

body.case-study-page.case-study--amex .cs-amex-flows .cs-amex-flow-figure {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  max-width: 100%;
}

body.case-study-page.case-study--amex .cs-amex-flows .cs-amex-flow-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

/* flow1: cap height so the diagram fits in the viewport without excessive scroll */
body.case-study-page.case-study--amex .cs-amex-flows .cs-amex-flow-figure--flow1 {
  display: flex;
  justify-content: center;
}

body.case-study-page.case-study--amex .cs-amex-flows .cs-amex-flow-figure--flow1 img {
  width: auto;
  max-width: min(100%, 936px);
  max-height: min(70vh, 929px);
}

/* Final Design — dashboard before/after (a1 / a2) */
body.case-study-page.case-study--amex .cs-amex-final .cs-h2 {
  color: #333333;
}

body.case-study-page.case-study--amex .cs-amex-final .cs-body {
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-final-figure {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  max-width: 100%;
}

body.case-study-page.case-study--amex .cs-amex-final__list + .cs-amex-final-figure {
  margin-top: clamp(36px, 5vw, 52px);
}

body.case-study-page.case-study--amex .cs-amex-final-figure img {
  display: block;
  width: 100%;
  height: auto;
}

body.case-study-page.case-study--amex .cs-caption--amex-final {
  margin-top: 16px;
  margin-bottom: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  color: #060606;
  text-align: center;
}

body.case-study-page.case-study--amex .cs-amex-final__list {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding-left: 1.35em;
  max-width: 52em;
  font-family: Satoshi, system-ui, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-final__list li + li {
  margin-top: 10px;
}

body.case-study-page.case-study--amex .cs-amex-final-journey {
  margin-top: clamp(48px, 6vw, 72px);
}

body.case-study-page.case-study--amex .cs-amex-final-journey + .cs-amex-final-journey {
  margin-top: clamp(40px, 5vw, 56px);
}

body.case-study-page.case-study--amex .cs-amex-final-journey .cs-h3 {
  color: #333333;
  margin-bottom: clamp(16px, 2vw, 20px);
}

body.case-study-page.case-study--amex .cs-amex-final__journey-list {
  margin: 0;
  padding-left: 1.35em;
  max-width: 52em;
  font-family: Satoshi, system-ui, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-final__journey-list li + li {
  margin-top: 10px;
}

body.case-study-page.case-study--amex .cs-amex-final-journey__video {
  margin-top: clamp(24px, 3vw, 32px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  background: #0f1419;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(72vh, 920px);
}

body.case-study-page.case-study--amex .cs-amex-final-journey__video video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 920px);
  object-fit: contain;
}

/* Impact — outcomes list on muted panel */
body.case-study-page.case-study--amex .cs-amex-impact .cs-amex-impact__surface {
  background: #f5f5f5;
  border-radius: 12px;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

body.case-study-page.case-study--amex .cs-amex-impact .cs-h2 {
  color: #333333;
  margin-bottom: clamp(28px, 3vw, 40px);
}

body.case-study-page.case-study--amex .cs-amex-impact__list {
  margin: 0;
  padding-left: 1.35em;
  max-width: 52em;
  font-family: Satoshi, system-ui, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #060606;
}

body.case-study-page.case-study--amex .cs-amex-impact__list li + li {
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   About Me page (standalone; LGC-aligned typography with case studies)
   ═══════════════════════════════════════════════════════════════════════ */

/* About Me — full content width between 200px gutters (min 24px on narrow viewports) */
body.about-page {
  --cs-min-content: 320px;
  --cs-side: max(24px, min(200px, calc((100vw - var(--cs-min-content)) / 2)));
  background-color: #f5f5f5;
}

html:has(body.about-page) {
  background-color: #f5f5f5;
}

body.about-page main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--cs-side);
  padding-right: var(--cs-side);
  padding-bottom: clamp(80px, 9vw, 120px);
}

body.about-page .about-page__container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.about-page .about-page__header {
  padding-top: clamp(104px, 12vw, 140px);
  padding-bottom: 0;
}

body.about-page .about-page__role {
  margin: 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  color: #6b6b6b;
}

body.about-page .about-page__title {
  margin-top: clamp(10px, 1.5vw, 16px);
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #181818;
}

body.about-page .about-page__lede {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: none;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  font-weight: 400;
  color: #181818;
}

body.about-page .about-page__accordions-wrap {
  margin-top: 60px;
}

body.about-page .about-accordion {
  width: 100%;
}

body.about-page .about-accordion__item {
  border-bottom: 1px solid #d1d1d1;
}

body.about-page .about-accordion__item:first-child {
  border-top: 1px solid #d1d1d1;
}

body.about-page .about-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(22px, 2.5vw, 28px) 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: #181818;
  position: relative;
  z-index: 2;
}

body.about-page .about-accordion__trigger:focus-visible {
  outline: 2px solid #181818;
  outline-offset: 3px;
}

body.about-page .about-accordion__label {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

body.about-page .about-accordion__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #181818;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.about-page .about-accordion__item.is-open .about-accordion__icon {
  transform: rotate(45deg);
}

body.about-page .about-accordion__panel-inner {
  padding-bottom: clamp(24px, 3vw, 36px);
  padding-right: 4px;
}

body.about-page .about-accordion__text {
  max-width: 52em;
  margin: 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  font-weight: 400;
  color: #4f4f4f;
}

body.about-page .about-accordion__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(24px, 3vw, 36px);
}

body.about-page .about-accordion__figure {
  margin: 0;
  padding: 0;
}

body.about-page .about-accordion__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e0ddd8;
  background: #fff;
}

@media (max-width: 900px) {
  body.about-page .about-accordion__figures {
    grid-template-columns: 1fr;
  }
}

body.about-page .about-accordion__panel-inner.about-accordion__panel-inner--split {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 4vw, 40px) 0 clamp(32px, 4vw, 44px);
  background-color: #f5f5f5;
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body.about-page .about-accordion__panel {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.about-page .about-accordion__split-layout {
  --about-split-gap: clamp(28px, 4vw, 56px);
  --about-media-w: max(260px, 38%);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-right: calc(var(--about-media-w) + var(--about-split-gap));
}

body.about-page .about-accordion__split-col--text {
  min-width: 0;
  width: 100%;
}

body.about-page .about-accordion__split-col--media {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--about-media-w);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

body.about-page .about-accordion__text--split {
  max-width: none;
  margin: 0;
  line-height: 1.5;
  color: #1a1a1a;
}

body.about-page .about-accordion__figure--solo {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

body.about-page .about-accordion__figure--solo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  background: #fff;
}

/* Desktop: all accordion rows use flex (middle item no longer uses absolute media, which overlapped the next header and stole clicks). */
@media (min-width: 769px) {
  body.about-page .about-accordion__item .about-accordion__split-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--about-split-gap);
    padding-right: 0;
  }

  body.about-page .about-accordion__item .about-accordion__split-col--text {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  body.about-page .about-accordion__item .about-accordion__split-col--media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
    height: auto;
  }

  body.about-page .about-accordion__item:first-child .about-accordion__figure--solo {
    flex: none;
    width: 250px;
    height: 185px;
  }

  body.about-page .about-accordion__item:first-child .about-accordion__figure--solo img {
    width: 250px;
    height: 185px;
    object-fit: cover;
    object-position: center;
  }

  /* Design Philosophy — u2.svg natural 250×252 */
  body.about-page .about-accordion__item:nth-child(2) .about-accordion__figure--solo {
    flex: none;
    width: 250px;
    height: 252px;
  }

  body.about-page .about-accordion__item:nth-child(2) .about-accordion__figure--solo img {
    width: 250px;
    height: 252px;
    object-fit: cover;
    object-position: center;
  }

  body.about-page .about-accordion__item:last-child .about-accordion__figure--solo {
    flex: none;
    width: 250px;
    height: 230px;
  }

  body.about-page .about-accordion__item:last-child .about-accordion__figure--solo img {
    width: 250px;
    height: 230px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 768px) {
  body.about-page .about-accordion__split-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 32px);
    padding-right: 0;
  }

  body.about-page .about-accordion__split-col--media {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    max-width: 360px;
  }

  body.about-page .about-accordion__figure--solo {
    display: block;
    height: auto;
    flex: none;
  }

  body.about-page .about-accordion__figure--solo img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  body.about-page .about-accordion__item:first-child .about-accordion__split-col--media {
    width: 100%;
    max-width: 250px;
  }

  body.about-page .about-accordion__item:first-child .about-accordion__figure--solo,
  body.about-page .about-accordion__item:first-child .about-accordion__figure--solo img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 250 / 185;
    object-fit: cover;
  }

  body.about-page .about-accordion__item:nth-child(2) .about-accordion__split-col--media {
    width: 100%;
    max-width: 250px;
  }

  body.about-page .about-accordion__item:nth-child(2) .about-accordion__figure--solo,
  body.about-page .about-accordion__item:nth-child(2) .about-accordion__figure--solo img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 250 / 252;
    object-fit: cover;
  }

  body.about-page .about-accordion__item:last-child .about-accordion__split-col--media {
    width: 100%;
    max-width: 250px;
  }

  body.about-page .about-accordion__item:last-child .about-accordion__figure--solo,
  body.about-page .about-accordion__item:last-child .about-accordion__figure--solo img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 250 / 230;
    object-fit: cover;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Byju's Live Quiz — Figma node 2183:27174 (LGC case study)
   Light hero (#F7F6F5); nav matches Amex (dark links on light hero).
   ═══════════════════════════════════════════════════════════════════════ */

body.case-study-page.case-study--byjus-lq {
  --case-study-nav-h: 76px;
}

@media (max-width: 900px) {
  body.case-study-page.case-study--byjus-lq {
    --case-study-nav-h: 62px;
  }
}

/* Hero art clears fixed navbar (Zenda / Amex stay full-bleed). */
body.case-study-page.case-study--byjus-lq .case-hero__visual {
  inset: var(--case-study-nav-h) 0 0 0;
  width: 100%;
  height: auto;
}

body.case-study-page.case-study--byjus-lq .nav-link,
body.case-study-page.case-study--byjus-lq .nav-link:hover {
  color: #060606;
}

body.case-study-page.case-study--byjus-lq .navbar__brand {
  color: #060606;
}

body.case-study-page.case-study--byjus-lq .navbar--frosted .nav-link,
body.case-study-page.case-study--byjus-lq .navbar--frosted .nav-link:hover {
  color: #060606;
}

body.case-study-page.case-study--byjus-lq .navbar--frosted .navbar__brand {
  color: #060606;
}

body.case-study-page.case-study--byjus-lq .cs-user-card__list li,
body.case-study-page.case-study--byjus-lq .cs-byjus-principle__body {
  color: #4f4f4f;
}

/* Title block — Figma: Azeret Mono eyebrow 20px #4A4A4A; Satoshi 48/60 #313131 */
.cs-byjus-title {
  margin-top: 64px;
}

.cs-byjus-eyebrow {
  font-family: 'Azeret Mono', 'IBM Plex Mono', monospace;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #4a4a4a;
  margin: 0;
}

body.case-study-page.case-study--byjus-lq .cs-byjus-title .cs-title__heading {
  margin-top: 24px;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #313131;
  max-width: 1200px;
}

.cs-byjus-title__rule {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e5e2dd;
}

.cs-byjus-title-lede {
  margin: 0;
  max-width: 1100px;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.8;
  color: #313131;
}

.cs-byjus-title-lede strong {
  font-weight: 600;
}

/* Problem / competitive callouts — Figma #E6EDFE, left border #3F80E1 */
.cs-byjus-callout {
  margin-top: 32px;
  padding: 28px 32px 28px 28px;
  background: #e6edfe;
  border-left: 4px solid #3f80e1;
  border-radius: 10px;
}

.cs-byjus-callout p {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #1a2f5c;
  font-style: italic;
  font-weight: 400;
}

.cs-byjus-callout--compete {
  margin-top: 48px;
}

/* In-depth table */
.cs-byjus-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e2dd;
  background: #ffffff;
}

.cs-byjus-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
}

.cs-byjus-table th,
.cs-byjus-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #efece8;
}

.cs-byjus-table thead th {
  font-family: 'Azeret Mono', 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a4a;
  background: #f7f6f5;
}

.cs-byjus-table tbody tr:last-child td {
  border-bottom: none;
}

.cs-byjus-table__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-byjus-table__pill--learn {
  background: rgba(184, 22, 1, 0.12);
  color: #b81601;
}

.cs-byjus-table__pill--assessment {
  background: rgba(47, 141, 63, 0.15);
  color: #2f8d3f;
}

/* Numbered insights */
.cs-byjus-insights {
  margin: 32px 0 0 0;
  padding: 0;
  list-style: none;
  counter-reset: byjus-insight;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-byjus-insights li {
  counter-increment: byjus-insight;
  position: relative;
  padding-left: 52px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #060606;
}

.cs-byjus-insights li::before {
  content: counter(byjus-insight);
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5ebfe;
  color: #4271ff;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Competitive grid: reuse card chrome */
.cs-byjus-compete-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.cs-byjus-compete-card {
  border: 1px solid #e5e2dd;
  border-radius: 14px;
  padding: 32px;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.cs-byjus-compete-card__visual {
  margin: 0 0 24px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f2eee8;
}

.cs-byjus-compete-card__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Metrics */
.cs-byjus-metrics {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 8px;
}

.cs-byjus-metric .cs-h3 {
  margin-bottom: 12px;
}

/* Principles accordion rows */
.cs-byjus-principles {
  margin-top: 32px;
  border-top: 1px solid #e5e2dd;
}

.cs-byjus-principle {
  border-bottom: 1px solid #e5e2dd;
}

.cs-byjus-principle__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.35;
  color: #181818;
}

.cs-byjus-principle__summary::-webkit-details-marker {
  display: none;
}

.cs-byjus-principle__summary::marker {
  content: '';
}

.cs-byjus-principle__plus {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cs-byjus-principle[open] .cs-byjus-principle__plus {
  transform: rotate(45deg);
}

.cs-byjus-principle__body {
  margin: 0;
  padding: 0 0 24px 0;
  max-width: 960px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
}

/* Octalysis figure */
.cs-byjus-octalysis {
  margin: 48px auto 0 auto;
  max-width: min(720px, 100%);
}

.cs-byjus-octalysis img {
  display: block;
  width: 100%;
  height: auto;
}

/* Final design — Figma-style panels (light card, 01 + arrow, mockup | copy) */
.cs-byjus-final-panels {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  margin-top: 8px;
}

.cs-byjus-final-panel {
  box-sizing: border-box;
  background: #f5f5f5;
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px) clamp(28px, 3.5vw, 48px);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.cs-byjus-final-panel__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.cs-byjus-final-panel__num {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #313131;
}

.cs-byjus-final-panel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #4f4f4f;
  flex-shrink: 0;
}

.cs-byjus-final-panel__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.cs-byjus-final-panel__media {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
  width: fit-content;
  max-width: clamp(200px, 22vw, 280px);
}

.cs-byjus-final-panel__media--pair {
  max-width: clamp(320px, 46vw, 520px);
}

.cs-byjus-final-panel__pair {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(10px, 1.5vw, 18px);
  min-width: 0;
  width: 100%;
}

.cs-byjus-final-panel__pair .cs-byjus-final-panel__device {
  flex: 1 1 0;
  min-width: 0;
}

.cs-byjus-final-panel__device {
  border-radius: 28px;
  overflow: hidden;
  background: #ebe8e4;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cs-byjus-final-panel__device img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-byjus-final-panel__copy {
  min-width: 0;
  padding-top: clamp(0px, 1vw, 8px);
}

/* Post Quiz — text first, full-width horizontal mockup strip below */
.cs-byjus-final-panel--stack .cs-byjus-final-panel__bar {
  margin-bottom: clamp(12px, 2vw, 20px);
}

.cs-byjus-final-panel__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
  min-width: 0;
}

.cs-byjus-final-panel--stack .cs-byjus-final-panel__copy {
  padding-top: 0;
  max-width: min(720px, 100%);
}

.cs-byjus-final-panel__strip {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  line-height: 0;
}

.cs-byjus-final-panel__strip img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-byjus-final-panel__title {
  margin: 0 0 clamp(16px, 2vw, 22px) 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  color: #2a2a2a;
  letter-spacing: -0.02em;
}

.cs-byjus-final-panel__body {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
  color: #5a5a5a;
}

.cs-byjus-final-panel__body p {
  margin: 0;
}

.cs-byjus-final-panel__body p + p {
  margin-top: 1.1em;
}

.cs-byjus-final-panel__body strong {
  font-weight: 600;
  color: #3a3a3a;
}

/* Byju's Live Quiz — Impact (two columns + retention card) */

body.case-study-page.case-study--byjus-lq .cs-byjus-impact .cs-byjus-impact__heading {
  margin-top: 0;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.cs-byjus-impact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.cs-byjus-impact__lede {
  margin: 0;
  max-width: 42em;
}

.cs-byjus-impact__list {
  margin: clamp(20px, 2.5vw, 28px) 0 0 0;
  padding-left: 1.25em;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: #060606;
}

.cs-byjus-impact__list li + li {
  margin-top: 0.85em;
}

.cs-byjus-impact__card {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: clamp(28px, 3.5vw, 40px);
  box-sizing: border-box;
}

.cs-byjus-impact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  color: #181818;
}

.cs-byjus-impact-table__corner {
  width: 40%;
}

.cs-byjus-impact-table thead th {
  padding: 4px 16px 20px 16px;
  font-weight: 600;
  text-align: right;
  vertical-align: bottom;
}

.cs-byjus-impact-table thead th:first-child {
  padding-left: 0;
  text-align: left;
  font-weight: 400;
}

.cs-byjus-impact-table thead th:last-child {
  padding-right: 0;
}

.cs-byjus-impact-table tbody th,
.cs-byjus-impact-table tbody td {
  padding: 14px 16px;
  border: 0;
  vertical-align: middle;
}

.cs-byjus-impact-table tbody th {
  padding-left: 0;
  text-align: left;
  font-weight: 500;
}

.cs-byjus-impact-table tbody td {
  text-align: right;
}

.cs-byjus-impact-table tbody td:last-child {
  padding-right: 0;
}

@media (max-width: 960px) {
  .cs-byjus-compete-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-byjus-final-panel__grid {
    grid-template-columns: 1fr;
  }

  .cs-byjus-final-panel__media {
    max-width: min(280px, 88vw);
    width: 100%;
    margin: 0 auto;
  }

  .cs-byjus-final-panel__media--pair {
    max-width: min(520px, 100%);
  }

  .cs-byjus-impact__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-byjus-principle__plus {
    transition: none;
  }
}
