/* ==========================================================================
   SECTION 01 — GLASS SPECIALIZATION & FABRICATION MATRIX (mc-project-glass)
   Fully isolated under .mc-project-glass. Mobile-first: the base rules below
   are the natural, always-correct stacked layout. The desktop pinned/
   crossfaded presentation is added only inside the min-width: 992px query,
   so a JS failure or a narrow viewport can never produce a broken layout.
   ========================================================================== */

   .mc-project-glass {
    --mcg-deep: #07171D;
    --mcg-ocean: #16343B;
    --mcg-white: #FFFFFF;
    --mcg-arch-white: #F3F4F1;
    --mcg-mist: #DCE5E5;
    --mcg-slate: #7C8B8D;
    /*--mcg-gold: #28a745;*/
        --mcg-gold: #275d2b !important;
  
    --mcg-font: "Rubik", Arial, sans-serif;
    --mcg-gutter: clamp(20px, 5vw, 72px);
  
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background: var(--mcg-arch-white);
    color: var(--mcg-deep);
    font-family: var(--mcg-font);
  }
  
  .mc-project-glass * {
    box-sizing: border-box;
  }
  
  .mc-project-glass__inner {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px var(--mcg-gutter) 56px;
  }
  
  /* ============ LEFT / TECHNICAL CONTENT ============ */
  
  .mc-project-glass__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mcg-ocean);
  }
  
  .mc-project-glass__eyebrow-index {
    color: var(--mcg-gold);
    font-weight: 700;
  }
  
  .mc-project-glass__eyebrow-divider {
    width: 28px;
    height: 1px;
    background: var(--mcg-slate);
  }
  
  .mc-project-glass__heading {
    margin: 18px 0 16px;
    font-weight: 500;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.01em;
  }
  
  .mc-project-glass__heading-line {
    display: block;
    overflow: hidden;
  }
  
  .mc-project-glass__heading-line--accent {
    color: var(--mcg-ocean);
  }
  
  .mc-project-glass__intro {
    max-width: 46ch;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--mcg-ocean);
  }
  
  .mc-project-glass__progress {
    display: none; /* desktop-only, enabled below */
  }
  
  .mc-project-glass__active-readout {
    display: none; /* desktop-only, enabled below */
  }
  
  /* ============ STAGE (visuals + stories) ============ */
  
  .mc-project-glass__stage {
    position: relative;
    margin-top: 40px;
  }
  
  .mc-project-glass__gl-canvas {
    display: none; /* desktop-only */
  }
  
  .mc-project-glass__scroll-hint {
    display: none; /* desktop-only */
  }
  
  .mc-project-glass__stories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  
  .mc-project-glass__story {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Visible by default, always. Only .mcg-pre-reveal (added briefly and
       only by JS, only on mobile) hides it — see below. If JS never runs
       at all, this element is never touched and stays fully visible. */
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  /* Mobile-only, JS-applied pre-reveal state. Deliberately implemented as
     a plain CSS transition, not a GSAP tween — see section1.js for why. */
  @media (max-width: 991.98px) {
    .mc-project-glass__story.mcg-pre-reveal {
      opacity: 0;
      transform: translateY(24px);
    }
  }
  
  .mc-project-glass__story-text {
    max-width: 60ch;
  }
  
  .mc-project-glass__story-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--mcg-gold);
    margin-bottom: 8px;
  }
  
  .mc-project-glass__story-title {
    margin: 0 0 14px;
    font-size: clamp(19px, 4.5vw, 23px);
    font-weight: 500;
    color: var(--mcg-deep);
  }
  
  .mc-project-glass__story-block {
    padding-top: 12px;
    border-top: 1px solid var(--mcg-mist);
    margin-top: 12px;
  }
  
  .mc-project-glass__story-block:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }
  
  .mc-project-glass__story-label {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mcg-gold);
    margin-bottom: 6px;
  }
  
  .mc-project-glass__story-block p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--mcg-ocean);
  }
  
  .mc-project-glass__story-visual {
    margin: 0;
    width: 100%;
    height: 46vh;
    min-height: 260px;
    max-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(184, 146, 74, 0.05), transparent 65%);
  }
  
  .mc-project-glass__story-visual svg {
    width: 100%;
    height: 100%;
    max-width: 420px;
  }
  
  .mcg-frame {
    stroke: var(--mcg-ocean);
    opacity: 0.55;
  }
  
  .mcg-panel-fill rect {
    fill: var(--mcg-ocean);
    fill-opacity: 0.08;
    stroke: var(--mcg-mist);
    stroke-width: 1;
  }
  
  .mcg-fittings circle {
    fill: var(--mcg-gold);
  }
  
  .mcg-hardware circle,
  .mcg-hardware rect {
    fill: none;
    stroke: var(--mcg-gold);
    stroke-width: 1.25;
  }
  
  .mcg-waves path {
    stroke: var(--mcg-gold);
    opacity: 0.7;
  }
  
  .mcg-rays line {
    stroke: var(--mcg-gold);
    opacity: 0.55;
  }
  
  .mcg-base-channel {
    fill: var(--mcg-ocean);
    opacity: 0.4;
  }
  
  .mcg-stained path {
    stroke: none;
  }
  .mcg-stained path:nth-child(1) { fill: var(--mcg-ocean); fill-opacity: 0.18; }
  .mcg-stained path:nth-child(2) { fill: var(--mcg-gold); fill-opacity: 0.16; }
  .mcg-stained path:nth-child(3) { fill: var(--mcg-slate); fill-opacity: 0.2; }
  .mcg-stained path:nth-child(4) { fill: var(--mcg-ocean); fill-opacity: 0.1; }
  
  .mcg-leadlines line {
    stroke: var(--mcg-deep);
    opacity: 0.4;
  }
  
  /* ==========================================================================
     DESKTOP — pinned, crossfaded capability story (>= 992px)
     ========================================================================== */
  
  @media (min-width: 992px) {
    .mc-project-glass {
      min-height: 100vh;
      min-height: 100svh;
      min-height: 100dvh;
      display: flex;
      align-items: center;
    }
  
    .mc-project-glass__inner {
      display: grid;
      grid-template-columns: minmax(360px, 440px) 1fr;
      align-items: center;
      gap: clamp(32px, 5vw, 88px);
      padding-top: 0;
      padding-bottom: 0;
    }
  
    .mc-project-glass__intro {
      max-width: 38ch;
    }
  
    .mc-project-glass__progress {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 40px;
    }
  
    .mc-project-glass__progress-index {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 1.5px;
      color: var(--mcg-slate);
    }
  
    .mc-project-glass__progress-index span {
      color: var(--mcg-gold);
      font-weight: 700;
    }
  
    .mc-project-glass__progress-track {
      position: relative;
      width: 120px;
      height: 2px;
      background: var(--mcg-mist);
    }
  
    .mc-project-glass__progress-fill {
      position: absolute;
      inset: 0;
      width: 16.66%;
      background: var(--mcg-gold);
    }
  
    .mc-project-glass__stage {
      position: relative;
      height: min(72vh, 660px);
      margin-top: 0;
    }
  
    .mc-project-glass__gl-canvas {
      display: block;
      position: absolute;
      inset: -10%;
      width: 120%;
      height: 120%;
      pointer-events: none;
      opacity: 0;
      mix-blend-mode: soft-light;
    }
  
    .mc-project-glass__stories {
      position: relative;
      height: 100%;
      gap: 0;
    }
  
    .mc-project-glass__story {
      position: absolute;
      inset: 0;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 0;
      opacity: 0;
      pointer-events: none;
    }
  
    .mc-project-glass__story.is-active {
      opacity: 1;
      pointer-events: auto;
    }
  
    .mc-project-glass__story-text {
      display: none;
    }
  
    .mc-project-glass__story-visual {
      height: 100%;
      max-height: none;
      width: 100%;
    }
  
    .mc-project-glass__story-visual svg {
      max-width: 520px;
    }
  
    .mc-project-glass__scroll-hint {
      display: flex;
      align-items: center;
      gap: 8px;
      position: absolute;
      left: 50%;
      bottom: -40px;
      transform: translateX(-50%);
      font-size: 10.5px;
      font-weight: 500;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--mcg-slate);
      transition: opacity 0.4s ease;
    }
  
    .mc-project-glass__scroll-hint-icon {
      width: 14px;
      height: 14px;
      color: var(--mcg-gold);
    }
  
    .mc-project-glass__scroll-hint-icon svg {
      width: 100%;
      height: 100%;
    }
  
    .mc-project-glass__scroll-hint.is-hidden {
      opacity: 0;
    }
  
    .mc-project-glass__active-readout {
      display: block;
      margin-top: 28px;
      max-width: 40ch;
    }
  }
  
  .mc-project-glass,
  .mc-project-glass__inner {
    max-width: 100vw;
  }
  
  /* ==========================================================================
     REDUCED MOTION / NO-GSAP — force the safe, static, mobile-style stacked
     layout at any viewport width, no pin, no WebGL.
     ========================================================================== */
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__stage {
    height: auto !important;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__stories {
    position: static;
    height: auto;
    gap: 48px;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__story {
    position: static;
    flex-direction: column;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__story-text {
    display: block;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__active-readout {
    display: none !important;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__story-visual {
    height: 46vh;
    min-height: 260px;
    max-height: 380px;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__gl-canvas,
  .mc-project-glass.mc-project-glass--static .mc-project-glass__scroll-hint,
  .mc-project-glass.mc-project-glass--static .mc-project-glass__progress {
    display: none !important;
  }
  
  .mc-project-glass.mc-project-glass--static {
    min-height: auto !important;
    display: block !important;
  }
  
  .mc-project-glass.mc-project-glass--static .mc-project-glass__inner {
    display: block !important;
    padding-top: 72px;
    padding-bottom: 56px;
  }
  
  @media (prefers-reduced-motion: reduce) {
    .mc-project-glass__heading-line {
      overflow: visible;
    }
    .mc-project-glass__story {
      transition: none;
    }
  }