@layer sections {
  /* ==========================================================================
     SECTION 6: INSIDE THE LAB (lb-)
     Clean asymmetrical photo collage with editorial typography
     ========================================================================== */

  .lb {
    background-color: var(--c-white);
    color: var(--c-navy-900);
    position: relative;
    padding-block: var(--section-pad);
    overflow: hidden;
  }

  .lb__container {
    max-inline-size: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 56px);
  }

  /* Section Header */
  .lb__header {
    max-inline-size: 68ch;
  }

  .lb__kicker {
    display: block;
    font-size: var(--fs-label);
    color: var(--c-green-700);
    font-weight: 700;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    margin-block-end: var(--s-2);
  }

  .lb__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-head);
    font-weight: 700;
    color: var(--c-navy-900);
    margin: 0 0 var(--s-3);
    text-wrap: balance;
  }

  html[lang='fa'] .lb__title {
    font-weight: 800;
    padding-block-end: 4px;
  }

  .lb__story {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--c-ink-700);
    margin: 0;
    text-wrap: pretty;
  }

  /* ==========================================================================
     Asymmetrical Photo Collage (12 Columns Grid)
     ========================================================================== */

  .lb__collage {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(16px, 1.8vw, 24px);
    align-items: stretch;
  }

  /* Shared Card Styles */
  .lb__card {
    margin: 0;
    position: relative;
    border-radius: var(--r-m, 16px);
    overflow: hidden;
    background-color: #F0F4F8;
    box-shadow: 0 10px 30px -8px rgba(6, 10, 31, 0.08);
    border: 1px solid rgba(21, 32, 78, 0.08);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
  }

  .lb__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -10px rgba(6, 10, 31, 0.14);
  }

  /* Clip reveal wrapper (bottom-to-top) */
  .lb__clip {
    position: relative;
    inline-size: 100%;
    block-size: 100%;
    flex: 1;
    overflow: hidden;
    will-change: clip-path;
  }

  /* Parallax frame */
  .lb__frame {
    position: relative;
    inline-size: 100%;
    block-size: 100%;
    overflow: hidden;
    will-change: transform;
    transform-origin: center center;
  }

  /* Inner image scaled for parallax / hover */
  .lb__img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    transform: scale(1.12);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }

  .lb__card:hover .lb__img {
    transform: scale(1.18);
  }

  /* Editorial Floating Caption Pill */
  .lb__caption {
    position: absolute;
    inset-block-end: 14px;
    inset-inline-end: 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: var(--fs-label);
    font-weight: 600;
    color: var(--c-navy-900);
    box-shadow: 0 4px 14px rgba(6, 10, 31, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
  }

  .lb__caption-dot {
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background-color: var(--c-green-500);
    flex-shrink: 0;
  }

  /* ==========================================================================
     Asymmetrical Grid Placements (5/4/3 and 4/5/3)
     ========================================================================== */

  /* Row 1 */
  .lb__card--cad {
    grid-column: span 5;
    block-size: 400px;
  }

  .lb__card--ceramic {
    grid-column: span 4;
    block-size: 400px;
  }

  .lb__card--shade {
    grid-column: span 3;
    block-size: 400px;
  }

  /* Row 2 */
  .lb__card--quote {
    grid-column: span 4;
    block-size: 360px;
    background: linear-gradient(135deg, #0A1232 0%, #15204E 100%);
    color: var(--c-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px -10px rgba(10, 18, 50, 0.3);
  }

  .lb__quote-inner {
    padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    block-size: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }

  .lb__quote-icon {
    font-size: 5rem;
    font-family: Georgia, serif;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.12);
    margin-block-end: var(--s-2);
    user-select: none;
  }

  .lb__quote {
    margin: 0;
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
    line-height: 1.45;
    font-weight: 700;
    color: var(--c-white);
    text-wrap: balance;
  }

  html[lang='fa'] .lb__quote {
    font-weight: 800;
  }

  .lb__quote-tag {
    font-size: 0.8125rem;
    color: var(--c-green-400);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block-start: var(--s-4);
  }

  .lb__quote-dot {
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background-color: var(--c-green-400);
  }

  .lb__card--milling {
    grid-column: span 5;
    block-size: 360px;
  }

  .lb__card--quality {
    grid-column: span 3;
    block-size: 360px;
  }

  /* ==========================================================================
     Facts Row (Bottom of Section)
     ========================================================================== */

  .lb__facts-container {
    display: flex;
    flex-direction: column;
    margin-block-start: var(--s-2);
    padding-block-start: var(--s-8);
    border-block-start: 1px solid var(--c-line);
  }

  .lb__facts {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-block-end: var(--s-6);
    border-block-end: 1px solid var(--c-line);
  }

  .lb__fact {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: var(--s-4);
  }

  .lb__fact-num {
    font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
    font-weight: 800;
    color: var(--c-navy-900);
    line-height: 1.1;
    margin-block-end: var(--s-2);
    font-feature-settings: 'tnum';
    min-inline-size: 1.5ch;
  }

  .lb__fact-label {
    font-size: var(--fs-body);
    color: var(--c-ink-700);
    line-height: 1.35;
    max-inline-size: 260px;
  }

  .lb__fact-divider {
    inline-size: 1px;
    block-size: 64px;
    background-color: var(--c-line);
    flex-shrink: 0;
  }

  .lb__demo-note {
    font-size: var(--fs-label);
    color: var(--c-ink-400);
    text-align: center;
    margin: var(--s-3) 0 0;
  }

  /* ==========================================================================
     Tablet & Mobile Layout (< 1024px & < 768px)
     ========================================================================== */

  @media (max-width: 1023px) {
    .lb__collage {
      grid-template-columns: repeat(6, 1fr);
    }

    .lb__card--cad {
      grid-column: span 6;
      block-size: 380px;
    }

    .lb__card--ceramic {
      grid-column: span 3;
      block-size: 320px;
    }

    .lb__card--shade {
      grid-column: span 3;
      block-size: 320px;
    }

    .lb__card--quote {
      grid-column: span 6;
      block-size: auto;
      min-block-size: 220px;
    }

    .lb__card--milling {
      grid-column: span 3;
      block-size: 300px;
    }

    .lb__card--quality {
      grid-column: span 3;
      block-size: 300px;
    }
  }

  @media (max-width: 767px) {
    .lb__collage {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .lb__card--cad,
    .lb__card--ceramic,
    .lb__card--shade,
    .lb__card--milling,
    .lb__card--quality {
      grid-column: auto;
      block-size: 260px;
    }

    .lb__card--quote {
      grid-column: auto;
      block-size: auto;
      min-block-size: 180px;
    }

    .lb__facts {
      flex-direction: column;
      gap: var(--s-6);
      align-items: center;
    }

    .lb__fact {
      padding-inline: 0;
    }

    .lb__fact-divider {
      inline-size: 100%;
      block-size: 1px;
    }
  }

  /* ==========================================================================
     Reduced Motion
     ========================================================================== */

  @media (prefers-reduced-motion: reduce) {
    .lb__clip {
      clip-path: none !important;
    }

    .lb__frame {
      transform: none !important;
    }

    .lb__img {
      transform: scale(1) !important;
    }
  }
}
