/* =============================================
   CASE STUDY — SHARED STYLES
   ============================================= */

/* ---- CSS Variables (project-specific overrides) ---- */
.case-study {
  --cs-900: var(--color-900);
  --cs-800: var(--color-800);
  --cs-200: var(--color-200);
  --cs-100: var(--color-100);
  --cs-000: var(--color-000);
  --cs-600: var(--color-600);
  --cs-400: var(--color-400);
  --cs-900-05: var(--color-900-05);
}

.case-study--david {
  --cs-900: #092d2e;
  --cs-800: #114335;
  --cs-200: #f5f5f5;
  --cs-100: #f1f1f1;
  --cs-000: #ffffff;
  --cs-600: #b4c0bc;
  --cs-400: #2caa7c;
}

.case-study--copa {
  --cs-900: #0f172a;
  --cs-800: #06065c;
  --cs-500: #0f49b5;
  --cs-400: #ae89ff;
  --cs-300: #b9e2ff;
  --cs-200: #f8fafc;
  --cs-100: #f6f6f9;
  --cs-000: #ffffff;
  --copa-accent: #1177ff;
}

.case-study--peabody {
  --cs-900: var(--peabody-900);
  --cs-800: var(--peabody-800);
  --cs-500: var(--peabody-500);
  --cs-400: var(--peabody-400);
  --cs-300: var(--peabody-300);
  --cs-200: var(--peabody-200);
  --cs-100: var(--peabody-100);
  --cs-000: var(--peabody-000);
  --cs-900-05: var(--peabody-900-05);
  --cs-900-10: var(--peabody-900-10);
}

.case-study--volt {
  --cs-900: #092d2e;
  --cs-800: #114335;
  --cs-200: #f5f5f5;
  --cs-100: #f1f1f1;
  --cs-000: #ffffff;
  --cs-600: #b4c0bc;
  --cs-400: #2caa7c;
}

/* ---- Base ---- */
.case-study {
  background: var(--cs-900);
  color: var(--cs-200);
  padding-top: 0;
}

/* ---- Nav override for case study (fixed at top) ---- */
.case-study .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 24px 32px;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease;
  justify-content: space-between;
}

.case-study .nav-home {
  display: inline-flex;
}

.case-study .nav-home-mobile {
  display: none;
}

.case-study .nav.is-hidden {
  transform: translateY(-100%);
}

.case-study .nav .nav-link,
.case-study .nav .nav-hamburger {
  color: var(--cs-400);
}

.case-study .nav .nav-link:hover {
  background: var(--cs-400);
  color: var(--cs-000);
}

/* David Energy nav colors */
.case-study--david .nav .nav-link,
.case-study--david .nav .nav-hamburger {
  color: var(--david-400);
}

.case-study--david .nav .nav-link:hover {
  background: var(--david-400);
  color: var(--david-000);
}

/* =============================================
   HERO
   ============================================= */
.cs-hero {
  position: relative;
  height: 868px;
  overflow: hidden;
}

.cs-hero--david {
  background: linear-gradient(180deg, #56d690 33.7%, #c2f7ad 75.7%);
}

.cs-hero--copa {
  background: #0f172a;
}

.cs-hero--copa .cs-hero-inner {
  padding-bottom: 104px;
}

.cs-hero--peabody {
  background: var(--peabody-400);
}

.cs-hero--peabody .cs-hero-inner {
  padding-bottom: 104px;
}

.cs-hero--peabody .cs-meta-item {
  color: var(--cs-800);
}

.cs-hero--peabody .cs-meta-item a {
  color: var(--cs-800);
  text-decoration: underline;
}

.cs-hero--peabody .cs-meta-divider {
  border-top-color: var(--cs-900-10);
}

.cs-hero--copa .cs-meta-item {
  color: var(--cs-100);
}

.cs-hero--copa .cs-meta-item a {
  color: #ffffff;
  text-decoration: underline;
}

.cs-hero--copa .cs-meta-divider {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.cs-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 203px;
  align-items: flex-end;
  justify-content: center;
  padding: 0 120px 104px;
}

.cs-hero-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  max-width: 1400px;
  min-width: 0;
  z-index: 2;
}

.cs-hero-logo {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 144px;
}

.cs-hero-logo .logo-icon {
  height: 41px;
  width: auto;
}

.cs-hero-logo .logo-text {
  height: 40px;
  width: auto;
}

/* Project metadata — reuses header-4 and body-3 from main styles */
.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 219px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--cs-800);
}

.cs-meta-value a {
  text-decoration: underline;
}

.cs-meta-divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid var(--color-900-10);
}

/* Hero image */
.cs-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  overflow: visible;
  z-index: 1;
}

.cs-hero-circle {
  position: absolute;
  bottom: -72px;
  right: 80px;
  width: 668px;
  height: 668px;
}

.cs-hero-phone {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: right top;
}

/* =============================================
   BODY / SECTIONS
   ============================================= */
.cs-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dark section */
.cs-section-dark {
  background: var(--cs-900);
  display: flex;
  flex-direction: column;
  gap: 104px;
  align-items: center;
  padding: 104px 0;
}

/* Light section */
.cs-section-light {
  background: var(--cs-200);
  display: flex;
  flex-direction: column;
  gap: 104px;
  align-items: center;
  padding: 104px 0;
}

/* Shared section content containers */
.cs-content {
  max-width: 1304px;
  width: 100%;
  padding: 0 120px;
}

.cs-content--narrow {
  max-width: 1304px;
  width: 100%;
  padding: 0;
}

/* =============================================
   TEXT BLOCKS
   ============================================= */

/* Heading: reuses header-3 sizing but adds uppercase + color */
.cs-heading {
  text-transform: uppercase;
  color: var(--cs-200);
}

.cs-section-light .cs-heading {
  color: var(--cs-800);
}

/* Body text: uses body-1 class in HTML */
.cs-section-light .subtitle-2 {
  color: var(--cs-900);
}

.cs-text-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
   TWO-COLUMN LAYOUT
   ============================================= */
.cs-two-col {
  display: flex;
  gap: 96px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1304px;
  width: 100%;
  padding: 0 120px;
  overflow: hidden;
}

.cs-two-col--center {
  align-items: center;
}

.cs-col-left {
  flex: 1;
  max-width: 400px;
  min-width: 272px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-col-right {
  width: 584px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Brief sub-blocks (label uses header-4, text uses body-3) */
.cs-brief-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Color overrides for brief labels/text in dark sections */
.cs-section-dark .cs-brief-block .header-4,
.cs-impact-section .cs-brief-block .header-4 {
  color: var(--cs-200);
}

.cs-section-light .cs-brief-block .header-4 {
  color: var(--cs-800);
}

.cs-section-dark .cs-brief-block .body-3,
.cs-impact-section .cs-brief-block .body-3 {
  color: var(--cs-200);
}

.cs-section-light .cs-brief-block .body-3 {
  color: var(--cs-900);
}

/* Feature label/text in light section — reuses header-4 and body-3 */
.cs-feature-content .header-4 {
  color: var(--cs-800);
}

.cs-feature-content .body-3 {
  color: var(--cs-900);
}

/* =============================================
   IMAGE CONTAINERS
   ============================================= */
.cs-images-row {
  display: flex;
  gap: 32px;
  max-width: 1304px;
  width: 100%;
  padding: 0 32px;
}

.cs-images-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: center;
}

.cs-images-row--tall {
  max-height: 640px;
}

.cs-image-box {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.cs-image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--cs-900-05);
  border-radius: 8px;
  pointer-events: none;
}

.cs-image-box--fixed {
  width: 542px;
  flex-shrink: 0;
}

.cs-image-box--flex {
  flex: 1;
  min-width: 0;
}

.cs-image-box--square {
  width: 440px;
  height: auto;
  aspect-ratio: 27 / 22;
  flex-shrink: 0;
}

.cs-image-box--full {
  width: 100%;
  height: auto;
  aspect-ratio: 3408 / 1650;
}

.cs-image-box--gallery-wide {
  width: 100%;
  height: auto;
  aspect-ratio: 4096 / 2069;
}

.cs-image-box--gallery-half {
  flex: 1;
  height: auto;
  aspect-ratio: 17 / 16;
  min-width: 0;
}

.cs-image-box--gallery-bottom {
  width: 100%;
  height: auto;
  aspect-ratio: 4096 / 2069;
}

.cs-image-box--solution {
  width: 100%;
  height: auto;
  aspect-ratio: 4096 / 2066;
}

.cs-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.cs-images-row--tall .cs-image-box {
  aspect-ratio: 17 / 16;
  height: auto;
}

.cs-images-row--devices .cs-image-box--fixed {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  aspect-ratio: 17 / 16;
}

.cs-images-row--devices .cs-image-box--flex {
  flex: 1;
  min-width: 0;
  aspect-ratio: 17 / 16;
}

.cs-images-row--devices {
  height: clamp(220px, 26vw, 508px);
}

.cs-images-row--devices .cs-image-box {
  height: 100%;
}

/* =============================================
   FULL-WIDTH IMAGE SECTION (no border-radius)
   ============================================= */
.cs-fullbleed {
  width: 100%;
  aspect-ratio: 1200 / 590;
  overflow: hidden;
  position: relative;
}

.cs-fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--cs-900-05);
  pointer-events: none;
}

.cs-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* =============================================
   FEATURE ROWS (image + text alternating)
   ============================================= */
.cs-feature-row {
  display: flex;
  gap: 96px;
  align-items: center;
  justify-content: center;
  max-width: 1304px;
  width: 100%;
  padding: 0 120px;
  min-width: 584px;
}

.cs-feature-content {
  flex: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* =============================================
   IMPACT SECTION
   ============================================= */
.cs-impact-section {
  background: var(--cs-900);
  border-top: 1px dashed var(--cs-800);
  border-bottom: 1px dashed var(--cs-800);
  display: flex;
  flex-direction: column;
  gap: 120px;
  align-items: center;
  padding: 104px 0 32px;
}

/* Impact divider - hidden on desktop, visible on tablet/mobile */
.cs-impact-divider {
  display: none;
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid var(--cs-600);
  margin-top: 8px;
  opacity: 0.4;
}

.cs-stat-row {
  display: flex;
  gap: 32px;
  align-items: center;
  color: var(--cs-100);
  width: 100%;
}

/* Stat description - header-4 styling */
.cs-stat-description {
  flex: 1;
  color: var(--cs-100);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Impact body text — reuses body-3 class in HTML */
.cs-impact-section .body-3 {
  color: var(--cs-200);
}

/* Thanks divider */
.cs-thanks {
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 1304px;
  width: 100%;
  padding: 0 64px;
}

.cs-thanks-line {
  flex: 1;
  height: 0;
  border: none;
  border-top: 1px solid var(--cs-600);
  opacity: 0.4;
}

/* Thanks text — reuses header-4 in HTML */
.cs-thanks .header-4 {
  color: var(--cs-000);
  white-space: nowrap;
}

/* Gallery grid */
.cs-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}

/* =============================================
   MORE PROJECTS NAVIGATION
   ============================================= */
.cs-more-projects {
  background: var(--color-50);
  display: flex;
  justify-content: space-between;
  padding: 56px 32px;
  gap: 80px;
}

/* Match more-projects background to last section */
.case-study--david .cs-more-projects {
  background: var(--cs-900);
}

/* Remove dashed border before more-projects for David Energy */
.case-study--david .cs-impact-section {
  border-bottom: none;
}

.case-study--volt .cs-more-projects {
  background: var(--cs-100);
}

.case-study--copa .cs-more-projects {
  background: var(--cs-100);
}

.case-study--peabody .cs-more-projects {
  background: var(--cs-100);
}

.cs-more-btn {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--color-100);
  border: 1px solid var(--color-900-05);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 320px;
  max-width: 640px;
  flex: 1;
  position: relative;
  overflow: visible;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cs-more-btn--prev {
  justify-content: flex-start;
}

.cs-more-btn--next {
  justify-content: flex-end;
}

/* Peek image that appears on hover */
.cs-more-btn-peek {
  position: absolute;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.cs-more-btn-peek img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 0;
}

/* Position peek on the RIGHT for prev buttons, LEFT for next buttons */
.cs-more-btn--prev .cs-more-btn-peek {
  right: -40px;
  top: 50%;
}

.cs-more-btn--next .cs-more-btn-peek {
  left: -40px;
  top: 50%;
}

/* Project-specific peek styles - heights and rotations */
/* Prev buttons: image on RIGHT, Next buttons: image on LEFT */
/* Vibe.eushi: 80px, -8deg on left side / 8deg on right side */
.cs-more-btn--vibe .cs-more-btn-peek {
  height: 80px;
  margin-top: -40px;
}
.cs-more-btn--prev.cs-more-btn--vibe .cs-more-btn-peek {
  transform: scale(0.9) rotate(8deg);
}
.cs-more-btn--next.cs-more-btn--vibe .cs-more-btn-peek {
  transform: scale(0.9) rotate(-8deg);
}
.cs-more-btn--prev.cs-more-btn--vibe:hover .cs-more-btn-peek {
  transform: scale(1) rotate(8deg);
}
.cs-more-btn--next.cs-more-btn--vibe:hover .cs-more-btn-peek {
  transform: scale(1) rotate(-8deg);
}

/* Peabody: 164px, -12deg on left / 12deg on right */
.cs-more-btn--peabody .cs-more-btn-peek {
  height: 164px;
  margin-top: -82px;
}
.cs-more-btn--prev.cs-more-btn--peabody .cs-more-btn-peek {
  transform: scale(0.9) rotate(12deg);
}
.cs-more-btn--next.cs-more-btn--peabody .cs-more-btn-peek {
  transform: scale(0.9) rotate(-12deg);
}
.cs-more-btn--prev.cs-more-btn--peabody:hover .cs-more-btn-peek {
  transform: scale(1) rotate(12deg);
}
.cs-more-btn--next.cs-more-btn--peabody:hover .cs-more-btn-peek {
  transform: scale(1) rotate(-12deg);
}

/* David Energy App: 240px, 4deg on left / -4deg on right */
.cs-more-btn--david .cs-more-btn-peek {
  height: 260px;
  margin-top: -120px;
}
.cs-more-btn--prev.cs-more-btn--david .cs-more-btn-peek {
  right: -80px;
}
.cs-more-btn--next.cs-more-btn--david .cs-more-btn-peek {
  left: -100px;
}
.cs-more-btn--prev.cs-more-btn--david .cs-more-btn-peek {
  transform: scale(0.9) rotate(-4deg);
}
.cs-more-btn--next.cs-more-btn--david .cs-more-btn-peek {
  transform: scale(0.9) rotate(4deg);
}
.cs-more-btn--prev.cs-more-btn--david:hover .cs-more-btn-peek {
  transform: scale(1) rotate(-4deg);
}
.cs-more-btn--next.cs-more-btn--david:hover .cs-more-btn-peek {
  transform: scale(1) rotate(4deg);
}

/* Volt: 72px, 0deg */
.cs-more-btn--volt .cs-more-btn-peek {
  height: 72px;
  margin-top: -36px;
}
.cs-more-btn--prev.cs-more-btn--volt .cs-more-btn-peek,
.cs-more-btn--next.cs-more-btn--volt .cs-more-btn-peek {
  transform: scale(0.9) rotate(0deg);
}
.cs-more-btn--prev.cs-more-btn--volt:hover .cs-more-btn-peek,
.cs-more-btn--next.cs-more-btn--volt:hover .cs-more-btn-peek {
  transform: scale(1) rotate(0deg);
}

/* Copa America: 126px, -9deg on left / 9deg on right */
.cs-more-btn--copa .cs-more-btn-peek {
  height: 126px;
  margin-top: -63px;
}
.cs-more-btn--prev.cs-more-btn--copa .cs-more-btn-peek {
  transform: scale(0.9) rotate(9deg);
}
.cs-more-btn--next.cs-more-btn--copa .cs-more-btn-peek {
  transform: scale(0.9) rotate(-9deg);
}
.cs-more-btn--prev.cs-more-btn--copa:hover .cs-more-btn-peek {
  transform: scale(1) rotate(9deg);
}
.cs-more-btn--next.cs-more-btn--copa:hover .cs-more-btn-peek {
  transform: scale(1) rotate(-9deg);
}

/* Button content */
.cs-more-btn-content {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.cs-more-btn--next .cs-more-btn-content {
  flex-direction: row-reverse;
}

.cs-more-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: var(--color-500);
  line-height: 0;
}

.cs-more-btn-icon .icon-regular {
  display: block;
}

.cs-more-btn-icon .icon-fill {
  display: none;
}

.cs-more-btn-title {
  color: var(--color-900);
  text-transform: capitalize;
  line-height: 1;
  margin-top: -2px;
}

.cs-more-btn--external .cs-more-btn-title {
  text-transform: none;
}

/* Hover states */
.cs-more-btn:hover {
  background: var(--color-50);
  border-color: var(--color-900-05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cs-more-btn:hover .cs-more-btn-peek {
  opacity: 1;
}

.cs-more-btn:hover .cs-more-btn-icon {
  color: var(--color-primary);
}

.cs-more-btn:hover .cs-more-btn-icon .icon-regular {
  display: none;
}

.cs-more-btn:hover .cs-more-btn-icon .icon-fill {
  display: block;
}

.cs-more-btn--prev:hover .cs-more-btn-icon {
  transform: translateX(-8px);
}

.cs-more-btn--next:hover .cs-more-btn-icon {
  transform: translateX(8px);
}

/* External link button (vibe.eushi) - icon stays regular, only color changes, no movement */
.cs-more-btn--external:hover .cs-more-btn-icon {
  transform: none;
}

/* =============================================
   RESPONSIVE — OVERRIDE XL TYPOGRAPHY (keep desktop sizes)
   ============================================= */
@media (min-width: 1600px) {
  .case-study .header-1 {
    font-size: 104px;
  }

  .case-study .header-2 {
    font-size: 48px;
  }

  .case-study .header-3 {
    font-size: 28px;
  }

  .case-study .header-4 {
    font-size: 18px;
  }

  .case-study .subtitle-1 {
    font-size: 24px;
  }
}

/* =============================================
   RESPONSIVE — TABLET (768px – 1239px)
   ============================================= */
@media (max-width: 1239px) {
  /* Hero */
  .cs-hero {
    height: 868px;
  }

  .cs-hero-inner {
    gap: 40px;
    padding: 48px 64px 80px;
  }

  .cs-hero-info {
    gap: 24px;
  }

  .cs-hero-logo {
    height: 144px;
  }

  .cs-hero-image {
    top: 0;
    bottom: 0;
    width: 60%;
    height: auto;
    right: -80px;
  }

  .cs-hero-phone {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    object-fit: cover;
    object-position: left center;
  }

  /* Sections */
  .cs-section-dark,
  .cs-section-light {
    gap: 80px;
    padding: 80px 0;
  }

  .cs-content {
    padding: 0 64px;
  }

  /* Text gaps - 8px between heading and body on tablet */
  .cs-text-block {
    gap: 8px;
  }

  .cs-brief-block {
    gap: 8px;
  }

  .cs-images-row {
    padding: 0 32px;
    gap: 24px;
  }

  .cs-images-stack {
    gap: 24px;
  }

  /* Images row - side-by-side, 312px height */
  .cs-images-row--devices {
    height: 312px;
  }

  .cs-images-row--devices .cs-image-box {
    height: 100%;
    aspect-ratio: auto;
  }

  .cs-image-box--full {
    height: 550px;
    aspect-ratio: auto;
  }

  /* Project Brief - stacked on tablet */
  .cs-two-col {
    flex-direction: column;
    gap: 48px;
    padding: 0 64px;
  }

  .cs-col-left,
  .cs-col-right {
    width: 100%;
    max-width: 800px;
    min-width: 0;
    flex-shrink: 1;
  }

  /* Feature rows - side-by-side on tablet */
  .cs-feature-row {
    gap: 32px;
    padding: 0 56px;
    min-width: 0;
  }

  .cs-feature-row .cs-image-box--square {
    width: 376px;
    height: 400px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .cs-feature-content {
    max-width: 416px;
  }

  /* Impact Section */
  .cs-impact-section {
    gap: 64px;
    padding: 80px 0 32px;
  }

  .cs-impact-divider {
    display: block;
  }

  /* Stat row - side by side on tablet */
  .cs-stat-row {
    gap: 24px;
  }

  .cs-thanks {
    padding: 0 64px;
  }

  /* Gallery */
  .cs-gallery .cs-images-row {
    gap: 32px;
  }

  .cs-image-box--gallery-half {
    aspect-ratio: 360 / 338;
    height: auto;
  }

  .cs-image-box--gallery-bottom {
    aspect-ratio: 4096 / 2069;
    height: auto;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================= */
@media (max-width: 767px) {
  /* Nav adjustments for mobile */
  .case-study .nav {
    padding: 16px 20px;
    height: auto;
  }

  .case-study .nav-home {
    display: none;
  }

  .case-study .nav-home-mobile {
    display: block;
  }

  .case-study .nav .nav-link {
    padding: 8px 16px;
  }

  /* Hero - side by side layout on mobile */
  .cs-hero {
    height: auto;
    min-height: 520px;
    overflow: hidden;
  }

  .cs-hero-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 144px 20px 32px;
    gap: 0;
  }

  .cs-hero-info {
    flex: 0 0 90%;
    max-width: 90%;
    gap: 20px;
    z-index: 2;
  }

  .cs-hero-logo {
    height: auto;
    margin-bottom: 16px;
  }

  .cs-hero-logo .logo-text {
    height: 32px;
  }

  .cs-meta {
    width: 180px;
    gap: 10px;
  }

  .cs-meta-item {
    gap: 0;
  }

  .cs-meta-divider {
    margin: 2px 0;
  }

  /* Hero phone - positioned to the right, extending off-screen */
  .cs-hero-image {
    position: absolute;
    top: 70px;
    right: -60%;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    overflow: visible;
  }

  .cs-hero-phone {
    position: relative;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: left center;
  }

  /* Sections */
  .cs-section-dark,
  .cs-section-light {
    gap: 40px;
    padding: 80px 0;
  }

  /* Content padding */
  .cs-content {
    padding: 0 20px;
  }

  .cs-content--narrow {
    padding: 0;
  }

  .cs-text-block {
    gap: 8px;
  }

  /* Images - match text padding (20px) on mobile */
  .cs-images-row {
    padding: 0 20px;
    gap: 16px;
  }

  .cs-gallery .cs-images-row {
    padding: 0 20px;
  }

  .cs-images-stack {
    padding: 0 20px;
    box-sizing: border-box;
  }

  .cs-images-stack .cs-images-row {
    padding: 0;
  }

  .cs-images-row--devices {
    flex-direction: row;
    height: auto;
  }

  .cs-images-row--devices .cs-image-box--fixed,
  .cs-images-row--devices .cs-image-box--flex {
    flex: 1;
    height: auto;
    width: auto;
    aspect-ratio: 1 / 1;
  }

  .cs-images-row--tall {
    height: auto;
    max-height: none;
  }

  .cs-images-row--tall .cs-image-box {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  /* Full width image */
  .cs-images-row:not(.cs-images-row--devices):not(.cs-gallery .cs-images-row) {
    flex-direction: column;
  }

  .cs-image-box--full {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .cs-image-box--full img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Two column layout - stacked on mobile */
  .cs-two-col {
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
  }

  .cs-col-left,
  .cs-col-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cs-col-left {
    gap: 8px;
  }

  .cs-col-right {
    gap: 24px;
  }

  .cs-brief-block {
    gap: 4px;
  }

  /* Feature rows - stacked on mobile */
  .cs-feature-row {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
    min-width: 0;
  }

  .cs-feature-content {
    max-width: 100%;
    order: 1;
  }

  /* First feature row (Seamless Setup) - left aligned text */
  .cs-section-light .cs-feature-row:first-of-type .cs-feature-content {
    text-align: left;
  }

  /* Second feature row (Smart Charging) - centered text */
  .cs-section-light .cs-feature-row:nth-of-type(2) .cs-feature-content {
    text-align: center;
  }

  .cs-feature-row .cs-image-box--square {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    order: 2;
    margin: 0 auto;
  }

  .cs-feature-row .cs-image-box--square img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Solution image */
  .cs-image-box--solution {
    aspect-ratio: auto;
    height: auto;
  }

  .cs-image-box--solution img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Impact Section */
  .cs-impact-section {
    gap: 40px;
    padding: 64px 0 24px;
  }

  .cs-impact-divider {
    display: block;
  }

  .cs-stat-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .cs-stat-row .header-1 {
    font-size: 104px;
    line-height: 1;
  }

  .cs-stat-description {
    line-height: 1.3;
  }

  /* Thanks section - line left, text right on mobile too */
  .cs-thanks {
    flex-direction: row;
    gap: 16px;
    padding: 0 20px;
    align-items: center;
  }

  .cs-thanks-line {
    flex: 1;
  }

  .cs-thanks .header-4 {
    white-space: nowrap;
  }

  /* Gallery - keep two images side by side */
  .cs-gallery {
    gap: 16px;
  }

  .cs-gallery .cs-images-row {
    flex-direction: row;
    gap: 16px;
  }

  .cs-gallery .cs-images-row:first-child,
  .cs-gallery .cs-images-row:last-child {
    flex-direction: column;
  }

  .cs-image-box--gallery-wide,
  .cs-image-box--gallery-bottom {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .cs-image-box--gallery-wide img,
  .cs-image-box--gallery-bottom img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .cs-image-box--gallery-half {
    flex: 1;
    aspect-ratio: 1 / 1;
    height: auto;
    min-width: 0;
  }

  /* More projects section */
  .cs-more-projects {
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
  }

  .cs-more-btn {
    min-width: 100%;
    max-width: 100%;
  }

  /* Hide arrow icons on mobile */
  .cs-more-btn-icon {
    display: none;
  }

  /* Show peek images by default on mobile */
  .cs-more-btn-peek {
    opacity: 1;
  }

  /* Mobile peek transforms - show at full scale with correct rotation */
  .cs-more-btn--prev.cs-more-btn--vibe .cs-more-btn-peek { transform: scale(1) rotate(8deg); }
  .cs-more-btn--next.cs-more-btn--vibe .cs-more-btn-peek { transform: scale(1) rotate(-8deg); }
  .cs-more-btn--prev.cs-more-btn--peabody .cs-more-btn-peek { transform: scale(1) rotate(12deg); }
  .cs-more-btn--next.cs-more-btn--peabody .cs-more-btn-peek { transform: scale(1) rotate(-12deg); }
  .cs-more-btn--prev.cs-more-btn--david .cs-more-btn-peek { transform: scale(1) rotate(-4deg); right: -40px; }
  .cs-more-btn--next.cs-more-btn--david .cs-more-btn-peek { transform: scale(1) rotate(4deg); left: -40px; }
  .cs-more-btn--prev.cs-more-btn--volt .cs-more-btn-peek,
  .cs-more-btn--next.cs-more-btn--volt .cs-more-btn-peek { transform: scale(1) rotate(0deg); }
  .cs-more-btn--prev.cs-more-btn--copa .cs-more-btn-peek { transform: scale(1) rotate(9deg); }
  .cs-more-btn--next.cs-more-btn--copa .cs-more-btn-peek { transform: scale(1) rotate(-9deg); }

  /* Reduce large peek sizes for mobile */
  .cs-more-btn--david .cs-more-btn-peek {
    height: 160px;
    margin-top: -80px;
  }
  .cs-more-btn--peabody .cs-more-btn-peek {
    height: 130px;
    margin-top: -65px;
  }
  .cs-more-btn--copa .cs-more-btn-peek {
    height: 100px;
    margin-top: -50px;
  }

  /* Fullbleed image */
  .cs-fullbleed {
    aspect-ratio: auto;
  }

  .cs-fullbleed img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
