@layer sections {
  /* ==========================================================================
     SECTION 3.1: RIBBON TRANSITION (tr-)
     Seamless handover from dark navy Section 2 to light services Section 3
     ========================================================================== */

  .tr {
    position: relative;
    block-size: 90svh;
    background-color: var(--c-navy-900);
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
  }

  @media (max-width: 599px) {
    .tr {
      block-size: 70svh;
    }
  }

  .tr__svg {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    display: block;
    pointer-events: none;
    transform-origin: center center;
  }

  /* flip-rtl is handled via html[dir='rtl'] .flip-rtl { transform: scaleX(-1); } in 01-base.css */

  .tr__ribbon {
    fill: none;
    stroke: var(--c-green-500);
    stroke-width: 14;
    stroke-linecap: round;
    will-change: stroke-dashoffset;
  }

  .tr__wave {
    fill: var(--c-white);
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .tr__ribbon {
      stroke-dashoffset: 0 !important;
    }
  }
}
