
    :root {
      --bg-body: #f7f8fa;
      --bg-card: #ffffff;
      --bg-card-subtle: #f1f3f6;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --text-light: #94a3b8;
      --accent-dark: #18181b;
      --accent-blue: #2563eb;
      --border-color: #e2e8f0;
      --border-radius-lg: 24px;
      --border-radius-md: 16px;
      --border-radius-sm: 8px;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
      --shadow-md: 0 12px 32px -8px rgba(0,0,0,0.06);
      --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-body);
      color: var(--text-main);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    /* Top Navigation Bar */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(247, 248, 250, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      padding: 18px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand-logo {
      font-weight: 800;
      font-size: 1.25rem;
      letter-spacing: -0.02em;
      color: var(--text-main);
      cursor: pointer;
    }

    .nav-controls {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      list-style: none;
      font-weight: 600;
      font-size: 0.95rem;
    }

    .nav-link {
      color: var(--text-muted);
      cursor: pointer;
      transition: var(--transition);
    }

    .nav-link:hover, .nav-link.active {
      color: var(--text-main);
    }

    .view-switcher {
      display: flex;
      background: #e2e8f0;
      padding: 3px;
      border-radius: 999px;
      gap: 2px;
    }

    .view-btn {
      border: none;
      background: transparent;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      transition: var(--transition);
    }

    .view-btn.active {
      background: #ffffff;
      color: var(--text-main);
      box-shadow: var(--shadow-sm);
    }

    /* Layout Wrapper */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 40px 32px 80px 32px;
    }

    /* PAGE 1: SHOWCASE LIST VIEW */
    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 28px;
    }

    .page-title {
      font-size: 2.25rem;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .page-subtitle {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Filter Pills */
    .filters-wrapper {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 12px;
      margin-bottom: 36px;
      scrollbar-width: none;
    }
    .filters-wrapper::-webkit-scrollbar {
      display: none;
    }

    .filter-pill {
      border: none;
      background: #ffffff;
      border: 1px solid var(--border-color);
      padding: 8px 18px;
      border-radius: 999px;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      white-space: nowrap;
      transition: var(--transition);
    }

    .filter-pill:hover {
      border-color: var(--text-muted);
      color: var(--text-main);
    }

    .filter-pill.active {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
      color: #ffffff;
    }

    /* Case Studies Grid */
    .case-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 32px;
    }

    .case-card {
      background: var(--bg-card);
      border-radius: var(--border-radius-lg);
      border: 1px solid rgba(226, 232, 240, 0.8);
      overflow: hidden;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-sm);
    }

    .case-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-md);
      border-color: rgba(203, 213, 225, 0.9);
    }

    .card-media {
      width: 100%;
      height: 360px;
      background-color: #eef2f6;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Mockups visually recreated inside cards */
    .mockup-preview-box {
      width: 90%;
      height: 85%;
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #94a3b8;
      background-size: cover;
      background-position: center;
      transition: var(--transition);
    }

    .case-card:hover .mockup-preview-box {
      transform: scale(1.02);
    }

    .card-body {
      padding: 24px 28px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .client-tag {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .case-card-title {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-main);
    }

    .case-tags {
      display: flex;
      gap: 8px;
      margin-top: 6px;
    }

    .tag {
      font-size: 0.8rem;
      color: var(--text-muted);
      background: var(--bg-card-subtle);
      padding: 4px 10px;
      border-radius: 6px;
      font-weight: 500;
    }

    /* PAGE 2: CASE STUDY DETAILS VIEW */
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-bottom: 24px;
      cursor: pointer;
      transition: var(--transition);
    }

    .back-btn:hover {
      color: var(--text-main);
      transform: translateX(-4px);
    }

    /* Detail Hero */
    .detail-hero {
      margin-bottom: 40px;
    }

    .detail-breadcrumb {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .detail-title {
      font-size: 2.75rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 24px;
    }

    /* Metadata Bar Grid */
    .meta-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      background: #ffffff;
      padding: 20px 24px;
      border-radius: var(--border-radius-md);
      border: 1px solid var(--border-color);
      margin-bottom: 48px;
    }

    .meta-item {
      display: flex;
      flex-direction: column;
    }

    .meta-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    .meta-value {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-main);
    }

    /* Detail Narrative Content Blocks */
    .detail-section {
      background: var(--bg-card);
      border-radius: var(--border-radius-lg);
      border: 1px solid var(--border-color);
      padding: 40px;
      margin-bottom: 32px;
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 40px;
      align-items: center;
    }

    .section-text-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .section-num-title {
      font-size: 1.85rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .text-block h4 {
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--text-main);
    }

    .text-block p {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* Impact Metrics Highlights */
    .metrics-card {
      background: #f8fafc;
      border: 1px dashed #cbd5e1;
      padding: 24px;
      border-radius: var(--border-radius-md);
      margin-top: 8px;
    }

    .metric-big {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1;
      color: var(--text-main);
      letter-spacing: -0.03em;
    }

    .metric-label {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-main);
      margin-top: 6px;
    }

    .metric-sub {
      font-size: 0.8rem;
      color: var(--text-light);
      margin-top: 2px;
    }

    .section-media-container {
      background: #eef2f6;
      border-radius: var(--border-radius-md);
      height: 480px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 24px;
      box-shadow: inset 0 0 12px rgba(0,0,0,0.02);
    }

    .phone-mockups-group {
      display: flex;
      gap: 12px;
      transform: rotate(-3deg) scale(0.95);
      transition: var(--transition);
    }

    .detail-section:hover .phone-mockups-group {
      transform: rotate(0deg) scale(1);
    }

    .phone-screen {
      width: 150px;
      height: 310px;
      background: #ffffff;
      border-radius: 20px;
      border: 4px solid #18181b;
      box-shadow: 0 20px 30px rgba(0,0,0,0.12);
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .phone-header-bar {
      height: 10px;
      width: 40%;
      background: #e2e8f0;
      border-radius: 4px;
      align-self: center;
      margin-bottom: 6px;
    }

    .phone-block {
      background: #f1f5f9;
      border-radius: 6px;
    }

    /* Page Visibility Controls */
    .page-view {
      display: none;
    }
    .page-view.active {
      display: block;
    }

    /* Responsive adjustments */
    @media (max-width: 900px) {
      .case-grid {
        grid-template-columns: 1fr;
      }
      .detail-section {
        grid-template-columns: 1fr;
        padding: 28px;
      }
      .meta-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .section-media-container {
        height: 340px;
      }
      .navbar {
        padding: 16px 20px;
      }
      .container {
        padding: 24px 16px;
      }
    }
  