/* ════════════════════════════════════════════════════
   HANGLY — Case Study Styles
   Headlines: Enriqueta · Body: Noto Sans
   Palette: red #FF5656 · cyan #9DF3FD · purple #C7A7FE
   Body bg: #D8FBFF (light cyan tint)
══════════════════════════════════════════════════════ */

:root {
  /* Reds */
  --h-red-90: #550A0A;
  --h-red-80: #771313;
  --h-red-70: #991F1F;
  --h-red-60: #BB2F2F;
  --h-red-55: #DD4141;
  --h-red-50: #FF5656;          /* primary */
  --h-red-40: #FF7C7C;
  --h-red-30: #FFA2A2;
  --h-red-20: #FFC8C8;
  --h-red-10: #FFEEEE;

  /* Cyans */
  --h-cyan-90: #264A4E;
  --h-cyan-80: #36666B;
  --h-cyan-70: #488288;
  --h-cyan-60: #5B9EA6;
  --h-cyan-55: #70BAC3;
  --h-cyan-50: #9DF3FD;          /* primary cyan */
  --h-cyan-45: #86D6E0;
  --h-cyan-40: #BBF8FF;
  --h-cyan-30: #D8FBFF;          /* page bg */
  --h-cyan-20: #EFFDFF;
  --h-cyan-10: #F5FEFF;

  /* Purples */
  --h-purple-90: #35274C;
  --h-purple-80: #483665;
  --h-purple-70: #5B477F;
  --h-purple-60: #6F5898;
  --h-purple-50: #846AB2;
  --h-purple-45: #9A7DCB;
  --h-purple-40: #B092E5;
  --h-purple-35: #C7A7FE;         /* primary purple */
  --h-purple-30: #E0CFFF;
  --h-purple-10: #F9F6FF;

  /* Neutrals */
  --h-ink: #211C1C;
  --h-ink-soft: #4E4545;
  --h-ink-mid: #655B5B;
  --h-ink-mute: #928989;
  --h-line: #D6D4D4;
  --h-cream: #FFEEEE;            /* warm cream */
  --h-paper: #EFFDFF;            /* cool paper */
  --h-bg: #D8FBFF;               /* page bg */

  /* Typography */
  --ff-head: 'Enriqueta', 'Georgia', serif;
  --ff-body: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ──────────── BASE ──────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--h-bg);
  color: var(--h-ink);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--h-red-50); transition: color 150ms; }
a:hover { color: var(--h-red-60); }

p { margin: 0 0 1rem; }

/* ──────────── PORTFOLIO NAV (matches home page) ──────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: rgba(226,146,58,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 300ms ease;
}
#nav.scrolled { background: rgba(226,146,58,0.92); }

.nav-wordmark { display: flex; align-items: center; height: 100%; }
.nav-wordmark svg {
  height: 26px;
  width: auto;
  display: block;
  transition: fill 350ms;
  fill: #3b1e05;
}
.nav-wordmark svg .st0 { fill: currentColor; }
.nav-wordmark { color: #3b1e05; transition: color 350ms; }
#nav.scrolled .nav-wordmark { color: #3b1e05; }

.site-nav-links {
  font-family: var(--ff-body);
  font-size: 16px; font-weight: 700; letter-spacing: 0.05em;
  color: #3b1e05;
  display: flex; align-items: center;
}
.site-nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
  white-space: nowrap;
}
.site-nav-links a:hover { color: #fff; }
.site-nav-sep { margin: 0 7px; opacity: 0.35; }

.site-nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.site-nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #3b1e05;
}
.site-nav-mobile {
  display: none; flex-direction: column;
  position: fixed; top: 52px; left: 0; right: 0;
  background: rgba(13,11,9,0.97);
  padding: 24px 32px 36px;
  z-index: 499;
  transform: translateY(-100%); opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}
.site-nav-mobile.open { transform: translateY(0); opacity: 1; }
.site-nav-mobile a {
  font-family: var(--ff-head);
  font-size: 30px; font-weight: 700;
  text-transform: uppercase;
  color: #fff; text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: block;
  transition: color 150ms;
}
.site-nav-mobile a:hover { color: #e2923a; }
.site-nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .site-nav-links { display: none; }
  .site-nav-hamburger { display: flex; }
  .site-nav-mobile { display: flex; }
}

/* ──────────── HERO ──────────── */
.cs-hero {
  position: relative;
  margin-top: 52px;
  padding: clamp(3rem, 8vw, 6rem) 2rem clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 18% 22%, rgba(199, 167, 254, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255, 162, 162, 0.4) 0%, transparent 50%),
    linear-gradient(160deg, #BBF8FF 0%, #D8FBFF 60%, #FFEEEE 100%);
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/dot_pattern.webp');
  background-size: 1200px auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.cs-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cs-hero-text { padding-left: 0.5rem; }
.cs-hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-red-60);
  margin-bottom: 1rem;
}
.cs-hero-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--h-ink);
  margin: 0 0 1rem;
}
.cs-hero-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--h-red-50);
}
.cs-hero-sub {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--h-ink-soft);
  max-width: 560px;
  margin: 0 0 1.75rem;
}

/* Multi-screen showcase */
.cs-hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  perspective: 1400px;
  padding: 2rem 0.5rem;
}
.cs-hero-screen {
  flex: 0 0 auto;
  width: clamp(120px, 17vw, 180px);
  border-radius: 26px;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(85, 10, 10, 0.18),
    0 4px 12px rgba(85, 10, 10, 0.12);
  border: 6px solid #fff;
  overflow: hidden;
  transition: transform 400ms ease;
}
.cs-hero-screen img { width: 100%; height: auto; display: block; }
/* Bento dashboard screenshot is taller than the others—crop it to match, keeping the top visible */
.cs-hero-screen:nth-child(2) { aspect-ratio: 402 / 874; }
.cs-hero-screen:nth-child(2) img { height: 100%; object-fit: cover; object-position: top; }
.cs-hero-screen:nth-child(1) { transform: rotate(-7deg) translateY(28px); }
.cs-hero-screen:nth-child(2) { transform: rotate(-2deg) translateY(8px); z-index: 2; }
.cs-hero-screen:nth-child(3) { transform: rotate(2deg) translateY(8px); z-index: 2; }
.cs-hero-screen:nth-child(4) { transform: rotate(7deg) translateY(28px); }
.cs-hero-screen:hover { transform: rotate(0) translateY(0) scale(1.04); z-index: 5; }

.cs-hero-meta-bar {
  background: var(--h-ink);
  color: var(--h-cyan-30);
  padding: 1.75rem 2rem;
  position: relative;
  z-index: 3;
}
.cs-hero-meta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.cs-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
.cs-meta-label {
  font-family: var(--ff-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-red-30);
}
.cs-meta-value {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--h-cyan-30);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .cs-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cs-hero-meta-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cs-hero-screen { width: clamp(110px, 22vw, 150px); }
}
@media (max-width: 560px) {
  .cs-hero-meta-inner { grid-template-columns: 1fr; }
  .cs-hero-showcase { gap: 0.4rem; }
  .cs-hero-screen { border-width: 4px; border-radius: 20px; }
}

/* ──────────── SECTIONS ──────────── */
.cs-section, .cs-hero-meta-bar, .cs-closing, .cs-next {
  scroll-margin-top: 70px;
}
.cs-section {
  padding: clamp(3.5rem, 7vw, 6rem) 2rem;
  position: relative;
}
.cs-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cs-section--paper { background: var(--h-paper); }
.cs-section--cream { background: var(--h-cream); }
.cs-section--cyan { background: linear-gradient(160deg, #BBF8FF 0%, #D8FBFF 100%); }
.cs-section--ink { background: var(--h-ink); color: var(--h-cyan-30); }
.cs-section--ink .section-title,
.cs-section--ink h3,
.cs-section--ink h4 { color: var(--h-paper); }
.cs-section--ink p { color: rgba(239, 253, 255, 0.8); }
.cs-section--ink .section-label { color: var(--h-red-40); }

@media (min-width: 1025px) {
  .cs-section { padding-left: calc(190px + 2rem); }
}

/* Section header */
.cs-section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.cs-section-header--left { text-align: left; margin-left: 0; }

.section-label {
  font-family: var(--ff-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-red-50);
  display: block;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--h-ink);
  margin: 0 0 0.85rem;
}
.section-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--h-red-50);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--h-ink-soft);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}
.section-sub--left { margin-left: 0; }

/* H3 */
.cs-h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  color: var(--h-ink);
  margin: 0 0 0.85rem;
}
.cs-h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--h-ink);
  margin: 0 0 0.5rem;
}

/* ──────────── TOC SIDEBAR ──────────── */
.cs-toc-sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 52px;
  width: 200px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 2rem 0.75rem 2rem 1.5rem;
  background: transparent;
  z-index: 450;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,86,86,0.2) transparent;
}
@media (min-width: 1025px) {
  .cs-toc-sidebar { display: block; }
  .cs-toc-sidebar.toc-visible { opacity: 1; pointer-events: auto; }
}
.cs-toc-sidebar-label {
  font-family: var(--ff-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-ink-mute);
  margin: 0 0 1rem 0.6rem;
}
.cs-toc-sidebar > ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.05rem;
}
.cs-toc-sidebar > ul li a {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--h-ink-mid);
  text-decoration: none;
  padding: 0.45rem 0.65rem 0.45rem 0.8rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color 150ms, border-left-color 150ms, background 150ms;
  line-height: 1.3;
}
.cs-toc-sidebar > ul li a:hover {
  color: var(--h-ink);
  background: rgba(255, 86, 86, 0.08);
}
.cs-toc-sidebar > ul li a.toc-active {
  color: var(--h-red-60);
  border-left-color: var(--h-red-50);
  font-weight: 700;
  background: rgba(255, 86, 86, 0.12);
}

/* Mobile horizontal TOC */
.cs-toc-mobile { display: none; }
@media (max-width: 1024px) {
  .cs-toc-mobile {
    display: block;
    position: sticky;
    top: 52px;
    z-index: 450;
    background: rgba(33,28,28,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,86,86,0.25);
  }
  .cs-toc-mobile-inner {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 0.15rem;
    padding: 0.35rem 0.6rem;
    justify-content: flex-start;
  }
  .cs-toc-mobile-inner a {
    font-family: var(--ff-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-bottom: 2px solid transparent;
    transition: color 150ms, border-color 150ms;
    white-space: nowrap;
  }
  .cs-toc-mobile-inner a:hover { color: rgba(255,255,255,0.9); }
  .cs-toc-mobile-inner a.toc-active {
    color: var(--h-red-30);
    border-bottom-color: var(--h-red-50);
  }
}

/* ──────────── PROBLEM SECTION ──────────── */
.cs-problem-quote {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  color: var(--h-red-60);
  text-align: center;
  max-width: 880px;
  margin: 0 auto 2.5rem;
  position: relative;
  padding: 0 1.5rem;
}
.cs-problem-quote::before,
.cs-problem-quote::after {
  content: '"';
  font-family: var(--ff-head);
  font-size: 1.4em;
  color: var(--h-red-30);
  position: absolute;
  font-style: normal;
}
.cs-problem-quote::before { left: -0.2rem; top: -0.5rem; }
.cs-problem-quote::after { right: -0.2rem; bottom: -0.6rem; }

.cs-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}
.cs-problem-grid p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--h-ink-soft);
}
@media (max-width: 800px) {
  .cs-problem-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.cs-hmw-card {
  background: var(--h-red-50);
  color: #fff;
  padding: 2.2rem 2.5rem;
  border-radius: 18px;
  margin-top: 2rem;
  box-shadow: 0 14px 30px rgba(85,10,10,0.15);
  position: relative;
  overflow: hidden;
}
.cs-hmw-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/dot_pattern.webp');
  background-size: 600px auto;
  opacity: 0.10;
  pointer-events: none;
}
.cs-hmw-label {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-red-20);
  display: block;
  margin-bottom: 0.6rem;
  position: relative;
}
.cs-hmw-text {
  font-family: var(--ff-head);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: #fff;
  margin: 0;
  position: relative;
}

/* ──────────── PERSONA ──────────── */
.cs-persona-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(85, 10, 10, 0.10);
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 0;
  border: 1px solid rgba(255,86,86,0.12);
}
.cs-persona-photo {
  background: linear-gradient(160deg, var(--h-red-30), var(--h-purple-30));
  position: relative;
  overflow: hidden;
}
.cs-persona-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-persona-body {
  padding: 2rem 2.25rem;
}
.cs-persona-name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--h-ink);
  margin: 0 0 0.4rem;
}
.cs-persona-tag {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-red-50);
  margin-bottom: 1rem;
  display: block;
}
.cs-persona-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}
.cs-persona-meta li {
  font-size: 0.92rem;
  color: var(--h-ink-soft);
  line-height: 1.45;
  padding-left: 1.1rem;
  position: relative;
}
.cs-persona-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--h-red-50);
}
.cs-persona-quote {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--h-red-60);
  background: var(--h-red-10);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border-left: 4px solid var(--h-red-50);
  margin: 0;
}

@media (max-width: 720px) {
  .cs-persona-card { grid-template-columns: 1fr; }
  .cs-persona-photo { aspect-ratio: 1.4 / 1; }
  .cs-persona-meta { grid-template-columns: 1fr; }
}

.cs-persona-pain-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cs-persona-pain-list li {
  background: #fff;
  border: 1px solid rgba(255,86,86,0.16);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.1rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--h-ink);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.pain-icon {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .cs-persona-pain-list { grid-template-columns: repeat(2, 1fr); }
}

/* ──────────── USER JOURNEY ──────────── */
.cs-journey-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
.cs-journey-stage {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  border-top: 5px solid var(--h-red-50);
  box-shadow: 0 8px 22px rgba(85,10,10,0.06);
  position: relative;
}
.cs-journey-stage:nth-child(2) { border-top-color: var(--h-purple-35); }
.cs-journey-stage:nth-child(3) { border-top-color: var(--h-cyan-55); }
.cs-journey-stage:nth-child(4) { border-top-color: var(--h-ink); }
.cs-journey-stage h4 {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-red-60);
  margin: 0 0 0.6rem;
}
.cs-journey-stage:nth-child(2) h4 { color: var(--h-purple-60); }
.cs-journey-stage:nth-child(3) h4 { color: var(--h-cyan-70); }
.cs-journey-stage:nth-child(4) h4 { color: var(--h-ink); }
.cs-journey-stage p {
  font-size: 0.95rem;
  color: var(--h-ink-soft);
  margin: 0;
  line-height: 1.55;
}
.cs-journey-stage .cs-journey-quote {
  font-family: var(--ff-head);
  font-style: italic;
  color: var(--h-ink);
  font-size: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255,86,86,0.3);
}
@media (max-width: 800px) {
  .cs-journey-stage-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cs-journey-stage-grid { grid-template-columns: 1fr; }
}

.cs-storyboard-figure {
  margin: 2.5rem 0 1rem;
  text-align: center;
}
.cs-storyboard-figure img {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(85,10,10,0.12);
  margin: 0 auto;
  cursor: zoom-in;
}
.cs-figure-cap {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--h-ink-mute);
  margin-top: 0.85rem;
  font-style: italic;
}

/* ──────────── COMPETITION ──────────── */
.cs-competition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.cs-comp-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid rgba(255,86,86,0.12);
  box-shadow: 0 6px 18px rgba(85,10,10,0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cs-comp-thumb {
  height: 130px;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  background: #f7f7f7;
  overflow: hidden;
}
.cs-comp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; cursor: zoom-in; }
.cs-comp-card h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--h-ink);
  margin: 0 0 0.3rem;
}
.cs-comp-tag {
  font-family: var(--ff-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-red-50);
  margin-bottom: 0.65rem;
  display: block;
}
.cs-comp-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--h-ink-soft);
  line-height: 1.5;
}
.cs-comp-card li {
  padding: 0.18rem 0 0.18rem 1rem;
  position: relative;
}
.cs-comp-card li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--h-red-50);
  font-weight: 700;
}
@media (max-width: 560px) {
  .cs-competition-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cs-comp-thumb { height: 160px; }
}

.cs-gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.cs-gap-card {
  background: var(--h-paper);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--h-cyan-55);
}
.cs-gap-card--missing { border-left-color: var(--h-red-50); }
.cs-gap-card h4 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--h-cyan-80);
  margin: 0 0 0.85rem;
}
.cs-gap-card--missing h4 { color: var(--h-red-60); }
.cs-gap-card ul { list-style: none; padding: 0; margin: 0; }
.cs-gap-card li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--h-ink-soft);
  line-height: 1.55;
}
.cs-gap-card li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--h-cyan-70);
}
.cs-gap-card--missing li::before { color: var(--h-red-50); }
@media (max-width: 720px) {
  .cs-gap-grid { grid-template-columns: 1fr; }
}

/* ──────────── DESIGN PRINCIPLES ──────────── */
.cs-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cs-principle {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,86,86,0.1);
}
.cs-principle::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--h-red-10);
  z-index: 0;
}
.cs-principle:nth-child(2)::before { background: var(--h-cyan-40); }
.cs-principle:nth-child(3)::before { background: var(--h-purple-30); }
.cs-principle-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1rem;
  color: var(--h-red-50);
  margin-bottom: 0.4rem;
  display: block;
  position: relative;
  z-index: 1;
}
.cs-principle h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--h-ink);
  margin: 0 0 0.85rem;
  position: relative;
  z-index: 1;
}
.cs-principle p {
  color: var(--h-ink-soft);
  font-size: 0.96rem;
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .cs-principles-grid { grid-template-columns: 1fr; }
}

/* ──────────── JTBD ──────────── */
.cs-jtbd-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.cs-jtbd-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(255,86,86,0.1);
}
.cs-jtbd-num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-style: italic;
  color: var(--h-red-50);
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.cs-jtbd-item p {
  font-size: 0.98rem;
  color: var(--h-ink);
  margin: 0;
  line-height: 1.5;
}
.cs-jtbd-item p strong {
  font-weight: 700;
  color: var(--h-red-60);
  font-style: italic;
}
@media (max-width: 720px) {
  .cs-jtbd-list { grid-template-columns: 1fr; }
}

/* ──────────── SKETCHES / PROTOTYPES ──────────── */
.cs-sketch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.cs-sketch-cell {
  border-radius: 0;
  background: transparent;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}
.cs-sketch-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
  filter:
    drop-shadow(0 2px 3px rgba(33, 28, 28, 0.15))
    drop-shadow(0 6px 14px rgba(33, 28, 28, 0.10));
}
@media (max-width: 760px) {
  .cs-sketch-grid { grid-template-columns: 1fr 1fr; }
}

.cs-step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.cs-step {
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255,86,86,0.1);
  position: relative;
}
.cs-step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--h-red-50);
  color: #fff;
  border-radius: 50%;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 0.65rem;
}
.cs-step h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--h-ink);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}
.cs-step p {
  font-size: 0.85rem;
  color: var(--h-ink-soft);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 1000px) {
  .cs-step-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 600px) {
  .cs-step-grid { grid-template-columns: 1fr 1fr; }
}

/* ──────────── DESIGN SOLUTIONS / SCREENS ──────────── */
.cs-screens-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2.5rem 0;
}
.cs-screens-feature--reverse { grid-template-columns: 1fr 1.1fr; }
.cs-screens-feature--reverse .cs-screens-feature-text { order: 2; }
.cs-screens-feature--reverse .cs-screens-feature-img { order: 1; }

.cs-screens-feature-text h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--h-ink);
  margin: 0 0 1rem;
}
.cs-screens-feature-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cs-screens-feature-text li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 1rem;
  color: var(--h-ink-soft);
  line-height: 1.6;
}
.cs-screens-feature-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--h-red-50);
}

.cs-screens-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
}
.cs-phone {
  flex: 0 0 auto;
  width: clamp(140px, 20vw, 200px);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 18px 38px rgba(85,10,10,0.16),
    0 4px 10px rgba(85,10,10,0.10);
  border: 6px solid #fff;
  overflow: hidden;
  transition: transform 300ms ease;
}
.cs-phone img { width: 100%; display: block; }
.cs-phone:hover { transform: translateY(-6px); }

@media (max-width: 800px) {
  .cs-screens-feature, .cs-screens-feature--reverse {
    grid-template-columns: 1fr; gap: 2rem;
  }
  .cs-screens-feature--reverse .cs-screens-feature-text { order: 1; }
  .cs-screens-feature--reverse .cs-screens-feature-img { order: 2; }
}

/* ──────────── TESTING REVEALED ──────────── */
.cs-revealed-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: var(--h-ink);
  color: #fff;
  padding: 1.75rem 2rem;
  border-radius: 14px;
  max-width: 460px;
  margin: 0 auto;
}
.cs-revealed-item {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--h-cyan-30);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cs-revealed-item .cs-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--h-red-40);
  width: 1.6rem;
  display: inline-block;
}
.cs-revealed-item .cs-arrow--up { color: var(--h-cyan-50); }

/* ──────────── OUTCOMES ──────────── */
.cs-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.cs-outcome {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255,86,86,0.12);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cs-outcome-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--h-red-10);
  color: var(--h-red-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.cs-outcome:nth-child(2) .cs-outcome-icon { background: var(--h-cyan-40); color: var(--h-cyan-80); }
.cs-outcome:nth-child(3) .cs-outcome-icon { background: var(--h-purple-30); color: var(--h-purple-70); }
.cs-outcome:nth-child(4) .cs-outcome-icon { background: var(--h-cyan-40); color: var(--h-cyan-80); }
.cs-outcome:nth-child(5) .cs-outcome-icon { background: var(--h-purple-30); color: var(--h-purple-70); }
.cs-outcome:nth-child(6) .cs-outcome-icon { background: var(--h-red-10); color: var(--h-red-50); }
.cs-outcome p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--h-ink);
  line-height: 1.5;
}
@media (max-width: 800px) { .cs-outcomes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .cs-outcomes-grid { grid-template-columns: 1fr; } }

/* ──────────── IMPACT / LESSONS ──────────── */
.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cs-impact-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,86,86,0.18);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
}
.cs-impact-col h4 {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-red-30);
  margin: 0 0 1rem;
}
.cs-impact-col ul { list-style: none; padding: 0; margin: 0; }
.cs-impact-col li {
  padding: 0.45rem 0 0.45rem 1.2rem;
  position: relative;
  color: rgba(239,253,255,0.85);
  font-size: 0.96rem;
  line-height: 1.55;
}
.cs-impact-col li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--h-red-40);
  font-weight: 700;
}
@media (max-width: 800px) {
  .cs-impact-grid { grid-template-columns: 1fr; }
}

/* Closing statement */
.cs-closing {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(160deg, var(--h-purple-30) 0%, var(--h-red-20) 60%, var(--h-cyan-40) 100%);
  position: relative;
  overflow: hidden;
}
.cs-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/dot_pattern.webp');
  background-size: 1100px auto;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: multiply;
}
.cs-closing-text {
  font-family: var(--ff-head);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.4;
  color: var(--h-ink);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cs-closing-text strong {
  font-style: normal;
  font-weight: 700;
  color: var(--h-red-60);
}

/* Prototype CTA */
.cs-proto-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--h-red-50);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 200ms, transform 200ms;
}
.cs-proto-cta:hover { background: var(--h-red-60); transform: translateY(-2px); color: #fff; }
.cs-proto-cta-arrow { width: 16px; height: 16px; }

/* Prototype CTA + embed block (full-width, beneath the screens) */
.cs-prototype-block {
  margin: 3rem auto 0;
  text-align: center;
}
.cs-figma-embed {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(85, 10, 10, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.cs-figma-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 600px) {
  .cs-figma-embed { aspect-ratio: 4 / 3; }
}

/* ──────────── NEXT PROJECT ──────────── */
.cs-next {
  background: linear-gradient(160deg, var(--h-ink) 0%, #0e2526 100%);
  padding: 7rem 3rem;
  text-align: center;
}
.cs-next-inner { max-width: 600px; margin: 0 auto; }
.cs-next-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-red-30);
  margin-bottom: 0.8rem;
}
.cs-next-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.01em;
  color: var(--h-cyan-30);
  line-height: 0.95;
  margin-bottom: 0.5rem;
}
.cs-next-sub {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
  font-weight: 300;
}
.cs-next-link {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--h-red-40);
  text-decoration: none;
  border-bottom: 1px solid var(--h-red-40);
  padding-bottom: 2px;
  transition: color 200ms, border-color 200ms;
}
.cs-next-link:hover { color: #fff; border-color: #fff; }

/* ──────────── FOOTER ──────────── */
.footer-bar {
  background: #050403;
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.footer-bar span {
  font-family: var(--ff-body);
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
}

/* ──────────── LIGHTBOX ──────────── */
.cs-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(33,28,28,0.92);
  z-index: 9000;
  overflow: auto;
  cursor: zoom-out;
  padding: 4.5rem 2rem 2.5rem;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.cs-lightbox.open { display: flex; }
.cs-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: default;
  margin: auto;
  width: max-content;
  min-width: min(100%, 320px);
}
.cs-lightbox-inner img {
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  display: block;
  background: #fff;
}
/* Zoomed states: explicit pixel sizes, allow scroll within lightbox */
.cs-lightbox-inner.zoomed img {
  max-width: none;
  max-height: none;
}

.cs-lightbox-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 9001;
}
.cs-lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* Zoom controls */
.cs-lightbox-zoom-bar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
  z-index: 9001;
}
.cs-lightbox-zoom-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms;
  line-height: 1;
  flex-shrink: 0;
}
.cs-lightbox-zoom-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.16);
}
.cs-lightbox-zoom-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.cs-lightbox-zoom-label {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  min-width: 3.2rem;
  text-align: center;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
}

/* ──────────── REVEAL ANIMATION ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
