/* Methodology + Testimonials — one continuous line */
.mt { position: relative; overflow-x: clip; --mt-ink: #13233A; --mt-accent: #1F5F8B; --mt-line: #C9D2DC; --mt-ease: cubic-bezier(0.2, 0, 0, 1); }
.mt__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.mt__svg path { fill: none; }
.mt__base { stroke: var(--mt-line); stroke-width: 1.5; }
.mt__fill { stroke: var(--mt-accent); stroke-width: 2; stroke-linecap: round; }
html:not(.js) .mt__svg, html:not(.js) .mt__dot, html:not(.js) .tm__leader, html:not(.js) .tm__points, html:not(.js) .tm__nav, html:not(.js) .tm__hint, html:not(.js) .tm__track { display: none; }
.mt__mline-fill { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--mt-ease); }
.mt[data-step="1"] .mt__mline-fill { stroke-dashoffset: 0.98; }
.mt[data-step="2"] .mt__mline-fill { stroke-dashoffset: 0.5; }
.mt[data-step="3"] .mt__mline-fill { stroke-dashoffset: 0; }
.mt__conn-fill { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 400ms var(--mt-ease); }
.mt.is-tm-in .mt__conn-fill, .mt[data-step="3"] .mt__conn-fill { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--mt-ease) 300ms; }
.mt__wave-fill { transition: stroke-dashoffset 600ms var(--mt-ease); }
.mt__dot { position: absolute; top: 0; left: 0; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--mt-accent); box-shadow: 0 0 0 5px rgba(31, 95, 139, 0.22); pointer-events: none; opacity: 0; offset-rotate: 0deg; offset-anchor: center; }
.mt__dot.is-ready { animation: mt-travel 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes mt-travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.mt__method { position: relative; z-index: 1; padding: var(--space-30) 0 0; }
.mt__head { display: flex; flex-direction: column; gap: var(--space-5); max-width: 1080px; }
.mt__head .h2 { font-size: var(--text-h2); line-height: 1.1; max-width: none; text-wrap: balance; }
.mt__head .intro { font-size: 18px; line-height: 1.6; color: var(--color-text-muted); max-width: none; }
.msteps { list-style: none; margin: 72px 0 0; padding: 0; max-width: 1160px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.mstep { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); }
.mstep__circle { width: 72px; height: 72px; flex: none; border-radius: 50%; border: 1.5px solid var(--mt-accent); background: var(--color-surface); color: var(--mt-accent); display: grid; place-items: center; transition: background-color 300ms var(--mt-ease), color 300ms var(--mt-ease), transform 300ms var(--mt-ease), box-shadow 300ms var(--mt-ease); }
.mstep__icon { width: 34px; height: 34px; overflow: visible; }
.mstep__icon g, .mstep__icon circle { transform-box: view-box; }
.mstep h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.15; display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: var(--space-3); }
.mstep__num { font-family: var(--font-base); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--mt-accent); }
.mstep p { font-size: 16px; line-height: 1.6; color: var(--color-text-secondary); max-width: 330px; margin: 0 auto; text-wrap: pretty; }
.mstep:hover .mstep__circle { background: var(--mt-accent); color: #fff; transform: translateY(-6px) scale(1.06); box-shadow: 0 10px 20px rgba(19, 35, 58, 0.16); }
.mstep:hover .mstep__icon--loop { animation: ic-spin 800ms var(--mt-ease); }
.mstep:hover .ic-arrow { animation: ic-slide 700ms var(--mt-ease); }
.mstep:hover .ic-c1 { animation: ic-drift-l 700ms var(--mt-ease); }
.mstep:hover .ic-c2 { animation: ic-drift-r 700ms var(--mt-ease); }
@keyframes ic-spin { from { transform: rotate(-360deg); } to { transform: none; } }
@keyframes ic-slide { from { transform: translateX(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ic-drift-l { from { transform: translateX(-12px); } to { transform: none; } }
@keyframes ic-drift-r { from { transform: translateX(12px); } to { transform: none; } }

.tm { position: relative; z-index: 1; padding: 200px 0 var(--space-20); }
.tm__header { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); padding-top: 0; }
.tm__intro { display: flex; flex-direction: column; gap: var(--space-5); }
.tm__intro .h2 { font-size: var(--text-h2); line-height: 1.1; }
.tm__hint { font-size: 16px; color: var(--color-text-muted); }
.tm__nav { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.tm__count { font-family: var(--font-display); font-size: 20px; color: var(--color-text-muted); margin-right: var(--space-2); font-variant-numeric: tabular-nums; }
.tm__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--mt-ink); background: transparent; color: var(--mt-ink); display: grid; place-items: center; cursor: pointer; transition: background-color 200ms var(--mt-ease), color 200ms var(--mt-ease); }
.tm__btn svg { width: 20px; height: 20px; }
.tm__btn:hover { background: var(--mt-ink); color: var(--color-surface); }
.tm__btn:focus-visible, .tm__point:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 3px; }

.tm__card { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-12); }
.tm__quote { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--mt-accent); box-shadow: 0 16px 32px rgba(19, 35, 58, 0.10); padding: 32px 36px 28px; }
.tm__mark { display: block; font-family: var(--font-display); font-size: 72px; line-height: 0.6; height: 36px; color: var(--mt-accent); }
.tm__quote blockquote p { font-family: var(--font-display); font-size: 21px; line-height: 1.45; color: var(--mt-ink); text-wrap: pretty; }
.tm__quote figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font-size: 14px; color: var(--color-text-muted); }
.tm__quote figcaption::before { content: ""; width: 32px; height: 1.5px; background: var(--mt-accent); }
.js .tm__card { position: relative; display: grid; margin-bottom: 0; width: 540px; max-width: 100%; margin-top: var(--space-16); touch-action: pan-y; }
.js .tm__quote { grid-area: 1 / 1; align-self: end; visibility: hidden; }
.js .tm__quote.is-active { visibility: visible; }
.tm__card.is-enter .tm__quote.is-active { animation: tm-card-in 450ms var(--mt-ease) both; }
@keyframes tm-card-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.tm__track { height: 176px; }
.tm__leader { position: absolute; z-index: 1; top: 100%; bottom: auto; left: 0; height: 0; width: 1.5px; margin-left: -0.75px; background: var(--mt-accent); transform-origin: top; pointer-events: none; }
.tm__leader.is-enter { animation: tm-leader-in 450ms var(--mt-ease) 120ms both; }
@keyframes tm-leader-in { from { transform: scaleY(0); } to { transform: none; } }
.tm__points { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tm__point { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; display: grid; place-items: center; }
.tm__point span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--mt-ink); background: var(--color-surface); transition: transform 200ms var(--mt-ease), background-color 200ms var(--mt-ease), border-color 200ms var(--mt-ease); }
.tm__point.is-passed span { border-color: var(--mt-accent); }
.tm__point:hover span { transform: scale(1.5); background: var(--mt-accent); border-color: var(--mt-accent); }
.tm__point.is-active span { width: 28px; height: 28px; border: 1.5px solid var(--mt-accent); background: radial-gradient(circle, var(--mt-accent) 0 6px, var(--color-surface) 6.5px); transform: none; animation: tm-pulse 2.4s ease-in-out infinite; }
@keyframes tm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 95, 139, 0.28); } 50% { box-shadow: 0 0 0 9px rgba(31, 95, 139, 0); } }

@media (max-width: 1023px) {
  .js .tm__card { width: 460px; }
  .mstep h3 { font-size: 26px; }
}
@media (max-width: 767px) {
  .mt__method { padding-top: var(--space-30); }
  .msteps { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); margin-top: var(--space-12); }
  .mstep { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-5); align-items: start; text-align: left; }
  .mstep__circle { width: 56px; height: 56px; }
  .mstep__icon { width: 28px; height: 28px; }
  .mstep h3 { justify-content: flex-start; font-size: 24px; margin-top: 12px; }
  .mstep p { margin: 0; }
  .tm { padding-top: 120px; padding-bottom: var(--space-12); }
  .tm__header { flex-direction: column; align-items: flex-start; }
  .js .tm__card { width: auto; margin-top: var(--space-10); margin-right: 0; }
  .tm__quote { padding: 24px 24px 20px; }
  .tm__quote blockquote p { font-size: 19px; }
  .tm__track { height: 120px; }
  .tm > .container { display: flex; flex-direction: column; }
  .tm__header { order: 1; }
  .tm__track { order: 2; height: 104px; margin-top: var(--space-6); }
  .js .tm__card { order: 3; margin-top: var(--space-4); }
  .js .tm__quote:not(.is-active) { display: none; }
  .tm__leader { top: auto; bottom: 100%; transform-origin: bottom; }
  .js .tm__quote { align-self: start; }
  .tm__leader.is-enter { animation: tm-leader-in 360ms var(--mt-ease) both; }
  .tm__card.is-enter .tm__quote.is-active { animation: tm-card-fade 420ms ease-out 80ms both; }
  .mt.tm-reveal-ready:not(.tm-revealed) .tm__leader { opacity: 0; }
  .mt.tm-reveal-ready.tm-revealed .tm__leader { animation: tm-fade 400ms var(--mt-ease) 1000ms backwards; }
}
@keyframes tm-card-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mt__dot { display: none; }
  .mstep:hover .mstep__circle { transform: none; }
  .mstep:hover .mstep__icon--loop, .mstep:hover .ic-arrow, .mstep:hover .ic-c1, .mstep:hover .ic-c2 { animation: none; }
  .tm__point.is-active span, .tm__card.is-enter .tm__quote.is-active, .tm__leader.is-enter { animation: none; }
  .tm__point:hover span { transform: none; }
}

/* Methodology — scroll-in */
@keyframes mstep-pop { from { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes mstep-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .msteps:not(.is-in) .mstep__circle, .js .msteps:not(.is-in) .mstep__text { opacity: 0; }
.js .msteps.is-in .mstep__circle { animation: mstep-pop 700ms var(--ease-standard) backwards; animation-delay: calc(var(--i) * 180ms); }
.js .msteps.is-in .mstep__text { animation: mstep-rise 640ms var(--ease-standard) backwards; animation-delay: calc(var(--i) * 180ms + 160ms); }
.js .msteps.is-in .mstep__icon--loop { animation: ic-spin 900ms var(--ease-standard) backwards; animation-delay: calc(var(--i) * 180ms + 250ms); }
.js .msteps.is-in .ic-arrow { animation: ic-slide 700ms var(--ease-standard) backwards; animation-delay: calc(var(--i) * 180ms + 300ms); }
.js .msteps.is-in .ic-c1 { animation: ic-drift-l 700ms var(--ease-standard) backwards; animation-delay: calc(var(--i) * 180ms + 300ms); }
.js .msteps.is-in .ic-c2 { animation: ic-drift-r 700ms var(--ease-standard) backwards; animation-delay: calc(var(--i) * 180ms + 300ms); }
.mstep:nth-child(1) { --i: 0; } .mstep:nth-child(2) { --i: 1; } .mstep:nth-child(3) { --i: 2; } .mstep:nth-child(4) { --i: 3; } .mstep:nth-child(5) { --i: 4; } .mstep:nth-child(6) { --i: 5; }
@media (prefers-reduced-motion: reduce) { .js .msteps .mstep__circle, .js .msteps .mstep__text { opacity: 1 !important; animation: none !important; } }

/* Testimonials — scroll-in */
@keyframes tm-rise { from { opacity: 0; transform: translateY(56px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes tm-slide-l { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes tm-point-pop { from { opacity: 0; transform: scale(0.2); } 70% { opacity: 1; transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes tm-wave-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tm-fade { from { opacity: 0; } to { opacity: 1; } }
.mt.tm-reveal-ready:not(.tm-revealed) .tm__nav,
.mt.tm-reveal-ready:not(.tm-revealed) .tm__card,
.mt.tm-reveal-ready:not(.tm-revealed) .tm__point,
.mt.tm-reveal-ready:not(.tm-revealed) .mt__wave-fill { opacity: 0; }
.mt.tm-reveal-ready:not(.tm-revealed) .mt__base[data-r="wave"] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mt.tm-reveal-ready.tm-revealed .mt__base[data-r="wave"] { stroke-dasharray: 1; animation: tm-wave-draw 1600ms cubic-bezier(0.45, 0, 0.25, 1) 500ms backwards; }
.mt.tm-reveal-ready.tm-revealed .tm__nav { animation: tm-slide-l 600ms var(--mt-ease) 150ms backwards; }
.mt.tm-reveal-ready.tm-revealed .tm__card { animation: tm-rise 900ms var(--mt-ease) 100ms backwards; }
.mt.tm-reveal-ready.tm-revealed .tm__point { animation: tm-point-pop 480ms var(--mt-ease) backwards; animation-delay: calc(560ms + var(--i, 0) * 210ms); }
.mt.tm-reveal-ready.tm-revealed .mt__wave-fill { animation: tm-fade 500ms var(--mt-ease) 900ms backwards; }

.block__placeholder { color: var(--color-text-muted); font-style: italic; }
