.cs-frame{ max-width:1320px; margin-inline:auto; padding-inline:24px; }
@media (max-width:640px){ .cs-frame{ padding-inline:14px; } }
#lego-case-study{ position:relative; overflow:hidden; border-radius:28px; box-shadow:0 30px 90px rgba(0,0,0,.5); }
#lego-case-study{
      --lego-red: #E3000B;
      --lego-yellow: #FFD500;
      --lego-blue: #006CB7;
      --lego-green: #00852B;
      --lego-white: #FFFFFF;
      --lego-charcoal: #121214;
      --lego-dark-surface: #1E1E24;
      --lego-dark-card: #262630;
      --lego-soft-grey: #F4F5F7;
      --lego-border: rgba(255, 255, 255, 0.08);
      --lego-border-light: rgba(0, 0, 0, 0.08);
      --lego-text-muted: #8E8E9A;
      --lego-text-body: #C5C5D0;
      
      --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
      --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
      
      --radius-sm: 8px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --radius-full: 9999px;
      
      --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
      --shadow-3d: 0 8px 0 rgba(0,0,0,0.25);
      --shadow-stud: inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 3px 0 rgba(255,255,255,0.3);
      
      --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    }
#lego-case-study *, #lego-case-study *::before, #lego-case-study *::after{
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
#lego-case-study{
      scroll-behavior: smooth;
      font-size: 16px;
      background-color: var(--lego-charcoal);
      color: var(--lego-white);
    }
#lego-case-study{
      font-family: var(--font-body);
      line-height: 1.65;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }
#lego-case-study h1, #lego-case-study h2, #lego-case-study h3, #lego-case-study h4, #lego-case-study .font-display{
      font-family: var(--font-display);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.02em;
    }
#lego-case-study p{
      color: var(--lego-text-body);
      font-size: 1.05rem;
    }
#lego-case-study a{
      color: inherit;
      text-decoration: none;
      transition: all 0.25s ease;
    }
#lego-case-study img{
      max-width: 100%;
      height: auto;
      display: block;
    }
#lego-case-study .container{
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
    }
#lego-case-study .section-padding{
      padding: 120px 0;
    }
#lego-case-study .pill-badge{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--lego-border);
      padding: 6px 16px;
      border-radius: var(--radius-full);
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--lego-yellow);
      margin-bottom: 24px;
    }
#lego-case-study .section-header{
      text-align: center;
      max-width: 780px;
      margin: 0 auto 72px auto;
    }
#lego-case-study .section-header h2{
      font-size: clamp(2.2rem, 4vw, 3.2rem);
      margin-bottom: 20px;
    }
#lego-case-study .section-header p{
      font-size: 1.15rem;
    }
#lego-case-study .bg-stud-pattern{
      background-image: radial-gradient(rgba(255, 255, 255, 0.05) 15%, transparent 16%), radial-gradient(rgba(255, 255, 255, 0.05) 15%, transparent 16%);
      background-size: 32px 32px;
      background-position: 0 0, 16px 16px;
    }
#lego-case-study .btn{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1rem;
      padding: 16px 32px;
      border-radius: var(--radius-md);
      cursor: pointer;
      border: none;
      transition: all 0.25s var(--transition-smooth);
      position: relative;
    }
#lego-case-study .btn-primary{
      background-color: var(--lego-red);
      color: var(--lego-white);
      box-shadow: 0 6px 0 #9E0007, 0 12px 20px rgba(227, 0, 11, 0.35);
    }
#lego-case-study .btn-primary:hover{
      transform: translateY(-2px);
      box-shadow: 0 8px 0 #9E0007, 0 16px 28px rgba(227, 0, 11, 0.45);
    }
#lego-case-study .btn-primary:active{
      transform: translateY(4px);
      box-shadow: 0 2px 0 #9E0007;
    }
#lego-case-study .btn-secondary{
      background-color: rgba(255, 255, 255, 0.1);
      color: var(--lego-white);
      border: 1px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
    }
#lego-case-study .btn-secondary:hover{
      background-color: rgba(255, 255, 255, 0.18);
      transform: translateY(-2px);
    }
#lego-case-study #progress-container{
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: transparent;
      z-index: 1000;
    }
#lego-case-study #progress-bar{
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--lego-red), var(--lego-yellow), var(--lego-green), var(--lego-blue));
      transition: width 0.1s ease-out;
    }
#lego-case-study .nav-header{
      position: fixed;
      top: 4px;
      left: 0;
      width: 100%;
      z-index: 999;
      background: rgba(18, 18, 20, 0.92);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--lego-border);
    }
#lego-case-study .nav-container{
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
      max-width: 1540px;
      margin: 0 auto;
      padding: 0 20px;
      gap: 16px;
    }
#lego-case-study .nav-logo{
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1rem;
      letter-spacing: -0.01em;
      white-space: nowrap;
      flex-shrink: 0;
    }
#lego-case-study .nav-logo-stud{
      width: 22px;
      height: 22px;
      background: var(--lego-red);
      border-radius: var(--radius-sm);
      display: grid;
      place-items: center;
      box-shadow: var(--shadow-stud);
    }
#lego-case-study .nav-logo-stud::after{
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #ff4d54;
    }
#lego-case-study nav{
      flex: 1;
      min-width: 0;
    }
#lego-case-study .nav-menu{
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 16px;
      list-style: none;
      flex-wrap: nowrap;
      margin: 0;
      padding: 0;
    }
#lego-case-study .nav-menu li{
      white-space: nowrap;
      flex-shrink: 0;
    }
#lego-case-study .nav-link{
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--lego-text-muted);
      position: relative;
      white-space: nowrap;
      padding: 4px 2px;
      display: inline-block;
    }
#lego-case-study .nav-link:hover, #lego-case-study .nav-link.active{
      color: var(--lego-white);
    }
#lego-case-study .nav-link.active::after{
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--lego-yellow);
    }
#lego-case-study .hamburger{
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      flex-shrink: 0;
    }
#lego-case-study .hamburger span{
      display: block;
      width: 24px;
      height: 2px;
      background: var(--lego-white);
      margin: 5px 0;
      transition: 0.3s;
    }
#lego-case-study .hero-section{
      min-height: 100vh;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 100px;
      padding-bottom: 80px;
      overflow: hidden;
      background: radial-gradient(circle at 50% 30%, #2a2a38 0%, var(--lego-charcoal) 70%);
    }
#lego-case-study .hero-bg-media{
      position: absolute;
      inset: 0;
      opacity: 0.28;
      background-image: url("https://images.unsplash.com/photo-1585366119957-e9730b6d0f60?auto=format&fit=crop&w=1920&q=80");
      background-size: cover;
      background-position: center;
      filter: saturate(1.2);
    }
#lego-case-study .hero-grid{
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 48px;
      align-items: center;
      position: relative;
      z-index: 2;
    }
#lego-case-study .hero-content h1{
      font-size: clamp(2.8rem, 5.5vw, 4.6rem);
      font-weight: 800;
      line-height: 1.05;
      margin-bottom: 24px;
      letter-spacing: -0.03em;
    }
#lego-case-study .hero-content h1 span{
      background: linear-gradient(135deg, #FFF 30%, var(--lego-yellow) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
#lego-case-study .hero-content p.hero-lead{
      font-size: clamp(1.1rem, 1.8vw, 1.35rem);
      margin-bottom: 36px;
      color: #D6D6E2;
      max-width: 600px;
    }
#lego-case-study .hero-ctas{
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 36px;
    }
#lego-case-study .hero-disclaimer{
      font-size: 0.8rem;
      color: var(--lego-text-muted);
      border-left: 2px solid var(--lego-red);
      padding-left: 12px;
    }
#lego-case-study .hero-interactive-build{
      position: relative;
      background: rgba(30, 30, 36, 0.75);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 32px;
      backdrop-filter: blur(12px);
      box-shadow: var(--shadow-md);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
#lego-case-study .hero-brick-stack{
      width: 100%;
      max-width: 320px;
      height: 320px;
      position: relative;
    }
#lego-case-study .brick-step-pipeline{
      display: flex;
      justify-content: space-between;
      width: 100%;
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid var(--lego-border);
    }
#lego-case-study .pipeline-node{
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--lego-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
#lego-case-study .pipeline-node.active{
      color: var(--lego-yellow);
    }
#lego-case-study .pipeline-node span.dot{
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--lego-text-muted);
      margin-bottom: 6px;
      transition: 0.3s;
    }
#lego-case-study .pipeline-node.active span.dot{
      background: var(--lego-yellow);
      box-shadow: 0 0 10px var(--lego-yellow);
    }
#lego-case-study .brick-animated{
      transform-origin: center bottom;
      animation: lego-dropBrick 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      opacity: 0;
    }
#lego-case-study .brick-1{ animation-delay: 0.2s; }
#lego-case-study .brick-2{ animation-delay: 0.6s; }
#lego-case-study .brick-3{ animation-delay: 1.0s; }
#lego-case-study .brick-4{ animation-delay: 1.4s; }
#lego-case-study .brick-5{ animation-delay: 1.8s; }
@keyframes lego-dropBrick{
0%{ transform: translateY(-80px) scale(0.9); opacity: 0; }
100%{ transform: translateY(0) scale(1); opacity: 1; }
}
#lego-case-study .stats-grid{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 24px;
      margin-bottom: 64px;
    }
#lego-case-study .stat-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 32px 24px;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s var(--transition-smooth), border-color 0.3s;
    }
#lego-case-study .stat-card:hover{
      transform: translateY(-6px);
      border-color: rgba(255,255,255,0.2);
    }
#lego-case-study .stat-stud-accents{
      position: absolute;
      top: 16px;
      right: 16px;
      display: flex;
      gap: 6px;
    }
#lego-case-study .stat-stud-accents span{
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
    }
#lego-case-study .stat-icon{
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      display: grid;
      place-items: center;
      margin-bottom: 20px;
    }
#lego-case-study .stat-icon.red{ background: rgba(227, 0, 11, 0.15); color: var(--lego-red); }
#lego-case-study .stat-icon.yellow{ background: rgba(255, 213, 0, 0.15); color: var(--lego-yellow); }
#lego-case-study .stat-icon.blue{ background: rgba(0, 108, 183, 0.15); color: #2997ff; }
#lego-case-study .stat-icon.green{ background: rgba(0, 133, 43, 0.15); color: #30d158; }
#lego-case-study .stat-number{
      font-size: clamp(2.4rem, 3.5vw, 3rem);
      font-family: var(--font-display);
      font-weight: 800;
      color: var(--lego-white);
      line-height: 1;
      margin-bottom: 12px;
    }
#lego-case-study .stat-label{
      font-size: 0.95rem;
      font-weight: 600;
      color: #E2E2EA;
      margin-bottom: 12px;
    }
#lego-case-study .stat-meta{
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--lego-border);
      padding-top: 12px;
      font-size: 0.75rem;
      color: var(--lego-text-muted);
    }
#lego-case-study .executive-narrative{
      background: linear-gradient(135deg, rgba(227, 0, 11, 0.08) 0%, rgba(0, 108, 183, 0.05) 100%);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 48px;
    }
#lego-case-study .narrative-grid{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }
#lego-case-study .narrative-grid h3{
      font-size: 2rem;
      margin-bottom: 16px;
    }
#lego-case-study .timeline-wrapper{
      position: relative;
      max-width: 1000px;
      margin: 0 auto;
    }
#lego-case-study .timeline-wrapper::before{
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(180deg, var(--lego-red), var(--lego-yellow), var(--lego-blue), var(--lego-green));
      transform: translateX(-50%);
      border-radius: 4px;
    }
#lego-case-study .timeline-item{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      margin-bottom: 80px;
      position: relative;
    }
#lego-case-study .timeline-item:nth-child(even) .timeline-content{
      grid-column: 2;
    }
#lego-case-study .timeline-item:nth-child(even) .timeline-media{
      grid-column: 1;
      grid-row: 1;
      text-align: right;
    }
#lego-case-study .timeline-marker{
      position: absolute;
      left: 50%;
      top: 24px;
      transform: translate(-50%, -50%);
      width: 32px;
      height: 32px;
      background: var(--lego-charcoal);
      border: 4px solid var(--lego-yellow);
      border-radius: 50%;
      z-index: 5;
      display: grid;
      place-items: center;
      box-shadow: 0 0 0 6px rgba(0,0,0,0.5);
    }
#lego-case-study .timeline-marker::after{
      content: "";
      width: 10px;
      height: 10px;
      background: var(--lego-yellow);
      border-radius: 50%;
    }
#lego-case-study .timeline-content{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 32px;
      box-shadow: var(--shadow-md);
      transition: transform 0.3s ease;
    }
#lego-case-study .timeline-content:hover{
      transform: translateY(-4px);
    }
#lego-case-study .timeline-year{
      display: inline-block;
      font-family: var(--font-display);
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--lego-yellow);
      margin-bottom: 8px;
    }
#lego-case-study .timeline-content h3{
      font-size: 1.35rem;
      margin-bottom: 12px;
    }
#lego-case-study .timeline-content p{
      font-size: 0.95rem;
      margin-bottom: 16px;
    }
#lego-case-study .timeline-source{
      font-size: 0.75rem;
      color: var(--lego-text-muted);
      border-top: 1px solid var(--lego-border);
      padding-top: 8px;
    }
#lego-case-study .timeline-media{
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
#lego-case-study .timeline-img-card{
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--lego-border);
      background: var(--lego-dark-card);
      position: relative;
    }
#lego-case-study .timeline-img-card img{
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
#lego-case-study .timeline-img-card:hover img{
      transform: scale(1.05);
    }
#lego-case-study .timeline-img-caption{
      padding: 10px 14px;
      font-size: 0.75rem;
      color: var(--lego-text-muted);
      background: rgba(0,0,0,0.5);
    }
#lego-case-study .transformation-container{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      padding: 48px;
      position: relative;
    }
#lego-case-study .slider-comparison{
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 32px;
      align-items: stretch;
      margin-top: 40px;
    }
#lego-case-study .compare-card{
      padding: 36px;
      border-radius: var(--radius-md);
      border: 1px solid var(--lego-border);
      position: relative;
    }
#lego-case-study .compare-card.before{
      background: rgba(255, 255, 255, 0.02);
      border-left: 4px solid var(--lego-text-muted);
    }
#lego-case-study .compare-card.after{
      background: linear-gradient(180deg, rgba(227, 0, 11, 0.08) 0%, rgba(255, 213, 0, 0.04) 100%);
      border-left: 4px solid var(--lego-red);
    }
#lego-case-study .compare-tag{
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 20px;
      display: inline-block;
    }
#lego-case-study .compare-list{
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
#lego-case-study .compare-list li{
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.95rem;
      color: #E2E2EA;
    }
#lego-case-study .compare-list li svg{
      flex-shrink: 0;
    }
#lego-case-study .slider-divider{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
    }
#lego-case-study .slider-divider-line{
      flex: 1;
      width: 2px;
      background: var(--lego-border);
    }
#lego-case-study .slider-badge{
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--lego-yellow);
      color: var(--lego-charcoal);
      display: grid;
      place-items: center;
      font-weight: 800;
      box-shadow: 0 0 20px rgba(255, 213, 0, 0.4);
    }
#lego-case-study .transformation-lead-quote{
      text-align: center;
      max-width: 820px;
      margin: 48px auto 0 auto;
      font-size: clamp(1.2rem, 2vw, 1.45rem);
      font-weight: 600;
      color: var(--lego-white);
      padding-top: 32px;
      border-top: 1px solid var(--lego-border);
    }
#lego-case-study .flywheel-section{
      background: var(--lego-charcoal);
      position: relative;
    }
#lego-case-study .flywheel-grid{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: center;
    }
#lego-case-study .flywheel-svg-wrap{
      width: 100%;
      max-width: 520px;
      margin: 0 auto;
    }
#lego-case-study .flywheel-spin{
      animation: lego-rotateFlywheel 36s linear infinite;
      transform-origin: 250px 250px;
    }
#lego-case-study .counter-spin{
      animation: lego-counterRotateFlywheel 36s linear infinite;
      transform-box: fill-box;
      transform-origin: center center;
    }
#lego-case-study .flywheel-svg-wrap:hover .flywheel-spin, #lego-case-study .flywheel-svg-wrap:hover .counter-spin{
      animation-play-state: paused;
    }
@keyframes lego-rotateFlywheel{
from{ transform: rotate(0deg); }
to{ transform: rotate(360deg); }
}
@keyframes lego-counterRotateFlywheel{
from{ transform: rotate(0deg); }
to{ transform: rotate(-360deg); }
}
#lego-case-study .charts-grid{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 32px;
    }
#lego-case-study .chart-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 32px;
      display: flex;
      flex-direction: column;
      position: relative;
    }
#lego-case-study .chart-card.full-width{
      grid-column: span 2;
    }
#lego-case-study .chart-header{
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 24px;
    }
#lego-case-study .chart-header h3{
      font-size: 1.25rem;
      margin-bottom: 4px;
    }
#lego-case-study .chart-header p{
      font-size: 0.85rem;
    }
#lego-case-study .chart-svg-container{
      width: 100%;
      height: 300px;
      position: relative;
    }
#lego-case-study .chart-svg-container.tall{
      height: 380px;
    }
#lego-case-study .chart-tooltip{
      position: absolute;
      background: rgba(18, 18, 20, 0.95);
      border: 1px solid var(--lego-yellow);
      padding: 8px 12px;
      border-radius: var(--radius-sm);
      font-size: 0.75rem;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease, transform 0.2s ease;
      z-index: 10;
      white-space: nowrap;
    }
#lego-case-study .chart-footer{
      margin-top: 20px;
      padding-top: 12px;
      border-top: 1px solid var(--lego-border);
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--lego-text-muted);
    }
#lego-case-study .chart-grid-line{
      stroke: rgba(255, 255, 255, 0.08);
      stroke-dasharray: 4 4;
    }
#lego-case-study .chart-axis-text{
      fill: var(--lego-text-muted);
      font-size: 11px;
      font-family: var(--font-body);
    }
#lego-case-study .chart-line-lego{
      fill: none;
      stroke: var(--lego-red);
      stroke-width: 3.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
#lego-case-study .chart-dot{
      fill: var(--lego-yellow);
      stroke: var(--lego-charcoal);
      stroke-width: 2;
      cursor: pointer;
      transition: r 0.2s ease;
    }
#lego-case-study .chart-dot:hover{
      r: 7;
      fill: var(--lego-white);
    }
#lego-case-study .chart-bar{
      fill: var(--lego-blue);
      rx: 4;
      transition: fill 0.2s ease;
      cursor: pointer;
    }
#lego-case-study .chart-bar:hover{
      fill: var(--lego-yellow);
    }
#lego-case-study .node-pulse{
      animation: lego-nodePulse 3s ease-in-out infinite alternate;
    }
@keyframes lego-nodePulse{
0%{ r: 18; opacity: 0.6; }
100%{ r: 24; opacity: 0.9; }
}
#lego-case-study .content-pipeline-hero{
      background: linear-gradient(90deg, var(--lego-red), var(--lego-yellow), var(--lego-blue));
      padding: 2px;
      border-radius: var(--radius-lg);
      margin-bottom: 64px;
    }
#lego-case-study .pipeline-hero-inner{
      background: var(--lego-dark-surface);
      padding: 32px;
      border-radius: calc(var(--radius-lg) - 2px);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
#lego-case-study .pipe-step{
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.05em;
    }
#lego-case-study .pipe-step span.num{
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      display: grid;
      place-items: center;
      font-size: 0.8rem;
    }
#lego-case-study .strategy-cards-grid{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 28px;
      margin-bottom: 80px;
    }
#lego-case-study .strat-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 32px;
      transition: transform 0.3s ease, border-color 0.3s ease;
    }
#lego-case-study .strat-card:hover{
      transform: translateY(-4px);
      border-color: rgba(255, 213, 0, 0.4);
    }
#lego-case-study .strat-card-header{
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }
#lego-case-study .strat-num{
      font-family: var(--font-display);
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--lego-yellow);
    }
#lego-case-study .strat-card h3{
      font-size: 1.25rem;
    }
#lego-case-study .pillars-grid{
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
#lego-case-study .pillar-card{
      background: var(--lego-dark-card);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-md);
      padding: 28px;
      border-top: 4px solid var(--lego-yellow);
      transition: all 0.3s ease;
    }
#lego-case-study .pillar-card:nth-child(2){ border-top-color: var(--lego-red); }
#lego-case-study .pillar-card:nth-child(3){ border-top-color: var(--lego-blue); }
#lego-case-study .pillar-card:nth-child(4){ border-top-color: var(--lego-green); }
#lego-case-study .pillar-card:nth-child(5){ border-top-color: #FF7300; }
#lego-case-study .pillar-card:nth-child(6){ border-top-color: #9D00FF; }
#lego-case-study .pillar-header{
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }
#lego-case-study .pillar-header h4{
      font-size: 1.2rem;
    }
#lego-case-study .pillar-detail-list{
      list-style: none;
      font-size: 0.88rem;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--lego-border);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
#lego-case-study .pillar-detail-list li strong{
      color: var(--lego-white);
    }
#lego-case-study .journey-funnel-steps{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin-top: 48px;
    }
#lego-case-study .journey-step-pill{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      padding: 16px 20px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.9rem;
      position: relative;
    }
#lego-case-study .journey-step-pill .step-circle{
      width: 24px;
      height: 24px;
      background: var(--lego-red);
      color: white;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 0.75rem;
    }
#lego-case-study .journey-arrow{
      color: var(--lego-yellow);
      font-size: 1.2rem;
    }
#lego-case-study .assets-grid{
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 24px;
    }
#lego-case-study .asset-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: transform 0.3s ease;
    }
#lego-case-study .asset-card:hover{
      transform: translateY(-4px);
    }
#lego-case-study .asset-card-media{
      height: 180px;
      background: var(--lego-dark-card);
      display: grid;
      place-items: center;
      position: relative;
      padding: 24px;
    }
#lego-case-study .asset-card-body{
      padding: 20px;
    }
#lego-case-study .asset-card-body h4{
      font-size: 1.1rem;
      margin-bottom: 8px;
      color: var(--lego-white);
    }
#lego-case-study .asset-card-body p{
      font-size: 0.85rem;
    }
#lego-case-study .campaigns-container{
      display: flex;
      flex-direction: column;
      gap: 48px;
    }
#lego-case-study .campaign-spotlight-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
#lego-case-study .campaign-spotlight-card:nth-child(even){
      direction: rtl;
    }
#lego-case-study .campaign-spotlight-card:nth-child(even) .campaign-content{
      direction: ltr;
    }
#lego-case-study .campaign-media{
      position: relative;
      background: #000;
    }
#lego-case-study .campaign-media img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 380px;
    }
#lego-case-study .campaign-content{
      padding: 48px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
#lego-case-study .campaign-year-tag{
      font-family: var(--font-display);
      font-weight: 700;
      color: var(--lego-yellow);
      margin-bottom: 8px;
      font-size: 0.9rem;
    }
#lego-case-study .campaign-content h3{
      font-size: 1.8rem;
      margin-bottom: 16px;
    }
#lego-case-study .campaign-specs-grid{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--lego-border);
      font-size: 0.85rem;
    }
#lego-case-study .spec-item strong{
      display: block;
      color: var(--lego-white);
      margin-bottom: 2px;
    }
#lego-case-study .spec-item span{
      color: var(--lego-text-muted);
    }
#lego-case-study .ugc-loop-container{
      background: radial-gradient(circle at center, #262638 0%, var(--lego-dark-surface) 100%);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 56px 32px;
      text-align: center;
      margin-top: 40px;
    }
#lego-case-study .ugc-steps-carousel{
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      margin: 40px 0;
    }
#lego-case-study .ugc-circle-step{
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: var(--lego-dark-card);
      border: 2px dashed var(--lego-yellow);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 12px;
      font-size: 0.85rem;
      font-weight: 700;
    }
#lego-case-study .ugc-circle-step span.label{
      margin-top: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
#lego-case-study .table-responsive-wrapper{
      width: 100%;
      overflow-x: auto;
      border-radius: var(--radius-lg);
      border: 1px solid var(--lego-border);
      background: var(--lego-dark-surface);
      box-shadow: var(--shadow-md);
      -webkit-overflow-scrolling: touch;
    }
#lego-case-study .matrix-table{
      width: 100%;
      min-width: 900px;
      border-collapse: collapse;
      text-align: left;
    }
#lego-case-study .matrix-table th, #lego-case-study .matrix-table td{
      padding: 20px 24px;
      border-bottom: 1px solid var(--lego-border);
      font-size: 0.9rem;
    }
#lego-case-study .matrix-table th{
      background: var(--lego-dark-card);
      font-family: var(--font-display);
      font-weight: 700;
      color: var(--lego-white);
      text-transform: uppercase;
      font-size: 0.8rem;
      letter-spacing: 0.08em;
    }
#lego-case-study .matrix-table tr:last-child td{
      border-bottom: none;
    }
#lego-case-study .matrix-table th.lego-col, #lego-case-study .matrix-table td.lego-col{
      background: rgba(227, 0, 11, 0.08);
      border-left: 2px solid var(--lego-red);
      border-right: 2px solid var(--lego-red);
    }
#lego-case-study .matrix-table th.lego-col{
      color: var(--lego-yellow);
      font-size: 0.95rem;
    }
#lego-case-study .rating-pill{
      display: inline-block;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 0.75rem;
      font-weight: 700;
    }
#lego-case-study .rating-high{ background: rgba(0, 133, 43, 0.2); color: #4ade80; }
#lego-case-study .rating-med{ background: rgba(255, 213, 0, 0.2); color: #facc15; }
#lego-case-study .rating-low{ background: rgba(255, 255, 255, 0.1); color: var(--lego-text-muted); }
#lego-case-study .funnel-container{
      max-width: 860px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
#lego-case-study .funnel-stage{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-md);
      padding: 20px 28px;
      display: grid;
      grid-template-columns: 200px 1fr;
      align-items: center;
      gap: 24px;
      position: relative;
    }
#lego-case-study .funnel-stage-name{
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }
#lego-case-study .funnel-stage-name span.stud-indicator{
      width: 14px;
      height: 14px;
      border-radius: 50%;
    }
#lego-case-study .challenges-grid{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 24px;
    }
#lego-case-study .challenge-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 32px;
    }
#lego-case-study .challenge-step{
      margin-bottom: 16px;
    }
#lego-case-study .challenge-step-title{
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 4px;
    }
#lego-case-study .challenge-step-title.red{ color: var(--lego-red); }
#lego-case-study .challenge-step-title.green{ color: #4ade80; }
#lego-case-study .challenge-step-title.yellow{ color: var(--lego-yellow); }
#lego-case-study .lessons-grid{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 28px;
    }
#lego-case-study .lesson-card{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-lg);
      padding: 36px 28px;
      position: relative;
      transition: all 0.3s ease;
    }
#lego-case-study .lesson-card:hover{
      transform: translateY(-6px);
      border-color: var(--lego-yellow);
    }
#lego-case-study .lesson-number{
      font-family: var(--font-display);
      font-size: 3rem;
      font-weight: 800;
      line-height: 1;
      color: rgba(255, 255, 255, 0.08);
      position: absolute;
      top: 24px;
      right: 24px;
    }
#lego-case-study .lesson-card h3{
      font-size: 1.3rem;
      margin-bottom: 12px;
      padding-right: 48px;
    }
#lego-case-study .lesson-card p{
      font-size: 0.95rem;
    }
#lego-case-study .agency-section{
      background: linear-gradient(180deg, var(--lego-dark-surface) 0%, #0d0d10 100%);
      border-top: 1px solid var(--lego-border);
      border-bottom: 1px solid var(--lego-border);
      position: relative;
    }
#lego-case-study .services-grid{
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin: 56px 0;
    }
#lego-case-study .service-card{
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-md);
      padding: 28px;
      transition: all 0.3s ease;
    }
#lego-case-study .service-card:hover{
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--lego-red);
      transform: translateY(-4px);
    }
#lego-case-study .service-card h4{
      font-size: 1.15rem;
      margin-bottom: 10px;
      color: var(--lego-white);
    }
#lego-case-study .service-card p{
      font-size: 0.88rem;
    }
#lego-case-study .agency-cta-banner{
      background: linear-gradient(135deg, var(--lego-red) 0%, #8b0007 100%);
      border-radius: var(--radius-lg);
      padding: 48px;
      text-align: center;
      box-shadow: var(--shadow-md);
      margin-top: 48px;
    }
#lego-case-study .agency-cta-banner h3{
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      margin-bottom: 16px;
    }
#lego-case-study .agency-cta-banner p{
      color: rgba(255,255,255,0.9);
      max-width: 600px;
      margin: 0 auto 32px auto;
    }
#lego-case-study .agency-cta-group{
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }
#lego-case-study .takeaway-box{
      text-align: center;
      padding: 72px 24px;
      background: radial-gradient(circle at center, rgba(255, 213, 0, 0.08) 0%, transparent 70%);
    }
#lego-case-study .takeaway-quote{
      font-family: var(--font-display);
      font-size: clamp(2rem, 3.5vw, 3.2rem);
      font-weight: 800;
      line-height: 1.2;
      max-width: 960px;
      margin: 0 auto 32px auto;
      letter-spacing: -0.02em;
    }
#lego-case-study .takeaway-flow{
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      padding: 16px 32px;
      border-radius: var(--radius-full);
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.08em;
    }
#lego-case-study .sources-list{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 20px;
      font-size: 0.8rem;
    }
#lego-case-study .source-entry{
      background: var(--lego-dark-surface);
      border: 1px solid var(--lego-border);
      border-radius: var(--radius-sm);
      padding: 16px;
    }
#lego-case-study .source-entry strong{
      display: block;
      color: var(--lego-white);
      margin-bottom: 4px;
    }
#lego-case-study .source-entry a{
      color: var(--lego-yellow);
      word-break: break-all;
    }
@media (max-width: 1280px){
#lego-case-study .nav-menu{ gap: 12px; }
#lego-case-study .nav-link{ font-size: 0.8rem; }
}
@media (max-width: 1024px){
#lego-case-study .hero-grid{ grid-template-columns: 1fr; }
#lego-case-study .narrative-grid{ grid-template-columns: 1fr; }
#lego-case-study .flywheel-grid{ grid-template-columns: 1fr; }
#lego-case-study .charts-grid{ grid-template-columns: 1fr; }
#lego-case-study .chart-card.full-width{ grid-column: span 1; }
#lego-case-study .pillars-grid{ grid-template-columns: repeat(2, 1fr); }
#lego-case-study .services-grid{ grid-template-columns: repeat(2, 1fr); }
#lego-case-study .campaign-spotlight-card{ grid-template-columns: 1fr; }
#lego-case-study .campaign-spotlight-card:nth-child(even){ direction: ltr; }
#lego-case-study .slider-comparison{ grid-template-columns: 1fr; }
#lego-case-study .slider-divider{ flex-direction: row; }
#lego-case-study .slider-divider-line{ height: 2px; width: 100%; }
#lego-case-study .nav-menu{
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--lego-charcoal);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--lego-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
      }
#lego-case-study .nav-menu.open{
        transform: translateY(0);
      }
#lego-case-study .hamburger{ display: block; }
}
@media (max-width: 768px){
#lego-case-study .timeline-wrapper::before{ left: 20px; }
#lego-case-study .timeline-item{ grid-template-columns: 1fr; gap: 24px; padding-left: 48px; }
#lego-case-study .timeline-item:nth-child(even) .timeline-content{ grid-column: 1; }
#lego-case-study .timeline-item:nth-child(even) .timeline-media{ grid-column: 1; text-align: left; }
#lego-case-study .timeline-marker{ left: 20px; }
#lego-case-study .pillars-grid{ grid-template-columns: 1fr; }
#lego-case-study .services-grid{ grid-template-columns: 1fr; }
#lego-case-study .funnel-stage{ grid-template-columns: 1fr; }
#lego-case-study .footer-grid{ grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce){
#lego-case-study *, #lego-case-study *::before, #lego-case-study *::after{
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
}