/* ═══════════════════════════════════════════════════════════════════════
   MADENZA — hareket katmanı ("canlı plan"). Mantık: assets/js/motion.js
   Bu dosya silinirse site eski, hareketsiz haliyle çalışmaya devam eder.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Üst bölüm: kendini çizen plan ─────────────────────────────────────── */
.mx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 22%, #000 72%);
  mask-image: linear-gradient(100deg, transparent 22%, #000 72%); }
.mx-plate { position: absolute; right: var(--gutter); top: 14px; margin: 0; pointer-events: none;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--on-field-2); opacity: .55; }
.mx-sober .mx-canvas { display: none; }
@media (max-width: 760px) { .mx-plate { display: none; } .mx-canvas { opacity: .6; } }

/* ── Kaydırdıkça beliren bölümler ──────────────────────────────────────── */
.mx-on .mx { opacity: 0; transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1), background-color .2s ease;
  transition-delay: var(--mx-d, 0ms); }
.mx-on .mx.mx-in { opacity: 1; transform: none; }

/* ── Süreç: adımlar sırayla dolan bir hat ──────────────────────────────── */
.mx-on .steps__item::before { z-index: 1; }
.mx-on .steps__item::after { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--mx-d, 0ms) + 180ms); }
.mx-on .steps__item.mx-in::after { transform: scaleX(1); }
@media (max-width: 980px) {
  .mx-on .steps__item::after { left: -2px; top: 0; width: 2px; height: 100%; transform: scaleY(0); transform-origin: center top; }
  .mx-on .steps__item.mx-in::after { transform: scaleY(1); }
}

/* ── Hizmet kartları: imleci izleyen ışık ──────────────────────────────── */
.svc.mx-hot { background-image: radial-gradient(260px circle at var(--mx-x, 50%) var(--mx-y, 50%), var(--accent-soft), transparent 72%); }

/* ── Özel gün satırı ───────────────────────────────────────────────────── */
.mx-day { position: relative; padding: 7px 44px; text-align: center; font-size: .8125rem; line-height: 1.4;
  background: var(--field-deep); color: var(--on-field-2); border-bottom: 1px solid var(--on-field-line); }
.mx-day strong { font-weight: 600; color: var(--mint); }
.mx-sober .mx-day strong { color: var(--on-field); }
.mx-day__x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.mx-day__x:hover { background: var(--on-field-line); }


/* ── Diğer bölümlerde plan çizimi ──────────────────────────────────────── */
.mx-host { position: relative; overflow: hidden; }
.mx-host > .wrap { position: relative; }
.mx-canvas--sec { -webkit-mask-image: linear-gradient(250deg, #000 0%, transparent 46%); mask-image: linear-gradient(250deg, #000 0%, transparent 46%); }
.mx-canvas--l { -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 46%); mask-image: linear-gradient(110deg, #000 0%, transparent 46%); }
.mx-canvas--soft { -webkit-mask-image: linear-gradient(250deg, #000 0%, transparent 40%); mask-image: linear-gradient(250deg, #000 0%, transparent 40%); }
.mx-canvas--soft.mx-canvas--l { -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 40%); mask-image: linear-gradient(110deg, #000 0%, transparent 40%); }

/* ── Okuma ilerlemesi ──────────────────────────────────────────────────── */
.mx-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: var(--mint);
  transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* ── Bölüm numarası ve çizilen cetvel ──────────────────────────────────── */
.mx-no { margin-right: 10px; opacity: .7; }
.mx-ruled::after { content: ""; display: inline-block; vertical-align: middle; margin-left: 12px; width: 0; height: 1px;
  background: currentColor; opacity: .5; transition: width .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.mx-in .mx-ruled::after, .mx-in.mx-ruled::after { width: 56px; }

/* ── Süreç hattında ilerleyen sinyal ───────────────────────────────────── */
@media (min-width: 981px) {
  .mx-on .steps { position: relative; }
  .mx-on .steps::after { content: ""; position: absolute; z-index: 2; left: 0; top: 0; width: 110px; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: mx-signal 7s linear infinite; }
}
@keyframes mx-signal { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 110px); opacity: 0; } }

/* ── Kartlar: hafif yükselme ───────────────────────────────────────────── */
.mx-on .showcase__card { transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease; }
.mx-on .showcase__card.mx-in:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); transition-delay: 0ms; }

/* ── Alt bilgi: üst kenarda geçen ışık ─────────────────────────────────── */
.mx-on .site-footer { position: relative; }
.mx-on .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--mint), transparent) no-repeat; background-size: 36% 100%; animation: mx-sweep 10s linear infinite; }
@keyframes mx-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* ── Hakkımızda: iki pazar arasında gidip gelen işaret ─────────────────── */
.mx-on .corridor__line::after { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--accent); animation: mx-shuttle 4.5s ease-in-out infinite alternate; }
@keyframes mx-shuttle { from { left: 0; } to { left: calc(100% - 8px); } }

@media print { .mx-progress { display: none !important; } }


/* ── İş kartları: sitenin içinde gezinen önizleme ──────────────────────── */
.showcase__shot { position: relative; }
.showcase__shot img.showcase__long { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; object-fit: fill; will-change: transform; }

/* ── Başlıklar soldan sağa yazılır ─────────────────────────────────────── */
.mx-on .mx .section__title { clip-path: inset(-12% 100% -12% 0); transition: clip-path 1s cubic-bezier(.2, .7, .2, 1) .12s; }
.mx-on .mx.mx-in .section__title { clip-path: inset(-12% -2% -12% 0); }
.mx-on .doc__title::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 16px; background: var(--accent);
  transform-origin: left center; animation: mx-bar .9s cubic-bezier(.2, .7, .2, 1) .3s both; }
@keyframes mx-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mx-caret { margin-left: 2px; animation: mx-blink 1s steps(1) infinite; }
@keyframes mx-blink { 50% { opacity: 0; } }

/* ── Bölüm başlıklarında konuya göre küçük işaretler ───────────────────── */
.mx-g { display: inline-block; vertical-align: middle; margin-left: 10px; width: 16px; height: 16px; }
svg.mx-g { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mx-g--code, .mx-g--steps, .mx-g--q { width: auto; height: auto; letter-spacing: 0; text-transform: none; }
.mx-g--code i { font-style: normal; animation: mx-blink 1s steps(1) infinite; }
.mx-g--steps i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; background: currentColor; opacity: .25; animation: mx-fill 2.4s infinite; }
.mx-g--steps i:nth-child(2) { animation-delay: .4s; }
.mx-g--steps i:nth-child(3) { animation-delay: .8s; }
@keyframes mx-fill { 0%, 100% { opacity: .25; } 30%, 70% { opacity: 1; } }
.mx-g--check path { stroke-dasharray: 20; animation: mx-draw20 3s ease infinite; }
@keyframes mx-draw20 { 0% { stroke-dashoffset: 20; } 40%, 100% { stroke-dashoffset: 0; } }
.mx-g--win .mx-g__l { stroke-dasharray: 9; animation: mx-draw9 2.4s ease infinite; }
@keyframes mx-draw9 { 0% { stroke-dashoffset: 9; } 50%, 100% { stroke-dashoffset: 0; } }
.mx-g--doc path { stroke-dasharray: 10; stroke-dashoffset: 10; animation: mx-draw10 3s ease infinite; }
.mx-g--doc path:nth-child(2) { animation-delay: .35s; }
.mx-g--doc path:nth-child(3) { animation-delay: .7s; }
@keyframes mx-draw10 { 0% { stroke-dashoffset: 10; } 30%, 100% { stroke-dashoffset: 0; } }
.mx-g--link { position: relative; width: 28px; height: 8px; }
.mx-g--link::before, .mx-g--link::after { content: ""; position: absolute; top: 1px; width: 6px; height: 6px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; }
.mx-g--link::before { left: 0; }
.mx-g--link::after { right: 0; }
.mx-g--link i { position: absolute; left: 7px; top: 3px; width: 3px; height: 2px; background: currentColor; animation: mx-hop 1.8s ease-in-out infinite alternate; }
@keyframes mx-hop { from { left: 7px; } to { left: 18px; } }
.mx-g--q { animation: mx-bob 1.6s ease-in-out infinite alternate; }
@keyframes mx-bob { from { transform: translateY(1px); } to { transform: translateY(-2px); } }
.mx-g--sig circle { fill: currentColor; stroke: none; }
.mx-g--sig path { opacity: .25; animation: mx-fill 2.1s infinite; }
.mx-g--sig path:nth-of-type(1) { animation-delay: .3s; }
.mx-g--sig path:nth-of-type(2) { animation-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  .mx-on .mx { opacity: 1; transform: none; }
  .mx-on .steps__item::after { transform: none; }
}
@media print {
  .mx-canvas, .mx-plate, .mx-day { display: none !important; }
  .mx-on .mx { opacity: 1 !important; transform: none !important; }
}
