/* ============================================================
   MG-TIMELINE-3D — coded SVG line-art history, organically drawn
   For about-3.html. Reuses mg-timeline.js. Isolated layer.
   ============================================================ */
:root{
  --mgt-ink:#161616;
  --mgt-text:#1c1c1c;
  --mgt-muted:#7a7a7a;
  --mgt-accent:#c8a45c;
  --mgt-ease:cubic-bezier(.16,.65,.2,1);
}

.mg-tl-wrap{background:#fff;color:var(--mgt-text);font-family:var(--td-ff-manrope,'Manrope',sans-serif);}

/* intro / closing panels */
.mg-tl-panel{max-width:880px;margin:0 auto;padding:120px 24px;text-align:center;}
.mg-tl-eyebrow{display:inline-block;letter-spacing:.22em;text-transform:uppercase;font-size:12px;color:var(--mgt-accent);margin-bottom:22px;}
.mg-tl-panel h2{font-weight:700;font-size:clamp(28px,4vw,46px);line-height:1.15;letter-spacing:-.01em;margin:0 0 26px;}
.mg-tl-panel p{font-size:clamp(16px,1.5vw,19px);line-height:1.85;color:var(--mgt-muted);margin:0 auto;max-width:720px;}
.mg-reveal{opacity:0;transform:translateY(26px);transition:opacity 1.1s var(--mgt-ease),transform 1.1s var(--mgt-ease);}
.mg-reveal.in{opacity:1;transform:none;}

/* timeline scroller */
.mg-tl-inner{display:flex;align-items:flex-start;max-width:1280px;margin:0 auto;padding:0 24px;}
.mg-tl-stage{position:-webkit-sticky;position:sticky;top:0;height:100vh;width:46%;display:flex;align-items:center;justify-content:center;}
.mg-illu-box{position:relative;width:420px;height:420px;max-width:80%;}

/* traced line-art illustrations: smooth crossfade + living float */
/* clean pure-opacity crossfade — no transform, so no repaint flicker */
.mg-illu{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .8s var(--mgt-ease);will-change:opacity;backface-visibility:hidden;}
.mg-illu.is-active{opacity:1;}
.mg-illu svg{width:100%;height:100%;}
.mg-illu svg path{fill:var(--mgt-ink);}

.mg-tl-steps{width:54%;}
.mg-step{min-height:96vh;display:flex;align-items:center;padding:40px 0 40px 40px;}
.mg-step-in{opacity:.22;transform:translateY(22px);transition:opacity .8s var(--mgt-ease),transform .8s var(--mgt-ease);}
.mg-step.is-active .mg-step-in{opacity:1;transform:none;}
.mg-year{display:block;font-weight:300;font-size:clamp(54px,7vw,96px);line-height:1;letter-spacing:-.02em;color:var(--mgt-ink);}
.mg-year::after{content:"";display:block;width:48px;height:2px;background:var(--mgt-accent);margin:26px 0 28px;}
.mg-sub{font-weight:700;font-size:clamp(20px,2.4vw,30px);line-height:1.25;margin:0 0 22px;letter-spacing:-.01em;}
.mg-desc{font-size:clamp(15px,1.4vw,18px);line-height:1.85;color:var(--mgt-muted);max-width:560px;margin:0;}

/* mobile: pinned illustration on top, text scrolls beneath */
@media (max-width:991px){
  .mg-tl-inner{display:block;padding:0 20px;}
  .mg-tl-stage{position:-webkit-sticky;position:sticky;top:0;height:42vh;width:100%;
    display:flex;align-items:center;justify-content:center;
    background:#fff;z-index:5;border-bottom:1px solid #f0f0f0;}
  .mg-illu-box{width:250px;height:250px;}
  .mg-tl-steps{width:100%;}
  .mg-step{min-height:78vh;padding:6vh 0;}
  .mg-tl-panel{padding:80px 20px;}
}

@media (prefers-reduced-motion: reduce){
  .mg-reveal{opacity:1;transform:none;transition:none;}
  .mg-illu{transition:opacity .3s;clip-path:none;}
  .mg-illu.is-active{clip-path:none;}
  .mg-illu svg{animation:none;}
  .mg-step-in{opacity:1;transform:none;}
}

/* ===== v3 history-divider on the right column ===== */
.mg-tl-steps .td-history-wrapper{position:relative;padding-left:90px;margin-left:26px;border-left:1px solid #e7e7e3;}
.mg-tl-steps .td-history-item{background:#f6f6f4;padding:38px 44px 30px;margin-bottom:58px;}
.mg-tl-wrap .td-history-year{font-size:78px;font-weight:300;line-height:1;letter-spacing:-.02em;color:var(--mgt-ink);}
.mg-tl-wrap .td-history-title{font-weight:700;font-size:25px;line-height:1.25;color:var(--mgt-text);text-transform:none;}
.mg-tl-wrap .td-history-item p{color:var(--mgt-muted);line-height:1.8;}
#section-time{display:flex;flex-direction:column;justify-content:space-around;height:100%;}
#section-time li{height:11.111%;}
.td-history-navebar ul li.current a{background:var(--mgt-ink);border-color:var(--mgt-ink);color:#fff;}
.td-history-navebar ul li.current span{background:var(--mgt-accent);}
.td-history-navebar ul li a{color:var(--mgt-ink);transition:background .35s ease,color .35s ease;}
@media (max-width:991px){
  .mg-tl-steps .td-history-wrapper{padding-left:0;margin-left:0;border-left:none;}
  .td-history-navebar{display:none;}
  .mg-tl-steps .td-history-item{padding:24px 22px 18px;margin-bottom:30px;}
  .mg-tl-wrap .td-history-year{font-size:60px;}
}
