/* Ana sayfa › Çözümler › sağ taraf çizgisel animasyon (Tasarım Tur 9, 10 Kasım 2026). İşaretleme: partials/home/cozum-cizim.htm.
   Aile: başlık çizimleri (baslik-cizim.css), SSS ve Test süreci ikonları; yuvarlak uç, ekranda tek kalınlık ~1.5 px, ikincil %42,
   kırmızı yalnız LED ve panel göstergesi. --k (cozum-cizim.js) = 600 / çizim genişliği: kalınlık her genişlikte aynı görünür.
   Temel hal = son kare (JS yok / hareket azaltılmış). JS .is-pre ekler (gizli, çubuk inik), görününce .is-run: çizim (~1.8 sn) →
   9 sn'lik sakin döngü (2.2 sn gecikmeyle). Ekran dışında / sekme gizliyken .is-hold tüm animasyonları duraklatır.
   Vurgu: madde ↔ çizim aynı data-k (home.css'teki :has kuralları + aşağıdaki ek eşleşmeler). Satır içi stil yok (CSP). */

.hc-fig--cz{aspect-ratio:3/2;color:var(--ink);--k:.85}
.hc-fig--cz::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(28,28,30,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(28,28,30,.045) 1px,transparent 1px);background-size:4% 6%;
  -webkit-mask-image:radial-gradient(75% 80% at 55% 50%,#000 35%,transparent 100%);mask-image:radial-gradient(75% 80% at 55% 50%,#000 35%,transparent 100%)}
.cz-sv{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.cz-sv path{fill:none;stroke:currentColor;stroke-width:calc((1.5px + var(--hl,0) * .6px) * var(--k));stroke-linecap:round;stroke-linejoin:round;transition:stroke-width .3s var(--ease),stroke-opacity .3s}
.cz-sv .s2{stroke-opacity:calc(.42 + var(--hl,0) * .3)}
.cz-sv .f{fill:var(--soft)}
.cz-sv .d{stroke-dasharray:1 2;stroke-dashoffset:0}
.cz-led,.cz-ind{fill:var(--red)}
.cz-pl{stroke-dasharray:.1 2;stroke-dashoffset:.1;opacity:0}
.cz-puff circle{fill:currentColor;fill-opacity:.55}
.cz-puff{opacity:0}
.cz-sv .w{stroke-opacity:.7}
.cz-sv .w1{transform:translateY(-12px);opacity:.55}.cz-sv .w2{transform:translateY(-5px)}
.cz-st,.cz-sn{display:none}
[data-st="0"] .cz-st0,[data-st="1"] .cz-st1,[data-st="2"] .cz-st2{display:inline}
[data-st="0"] .cz-sn0,[data-st="1"] .cz-sn1,[data-st="2"] .cz-sn2{display:block}
.cz-ld path{stroke-opacity:calc(.5 + var(--hl,0) * .4)}
.cz-ld circle{fill:currentColor;fill-opacity:.7}
.cz-cap{--hl:0}

/* etiketler (HTML, % konum: 600×400 ızgaradaki uç noktaların karşılığı) */
.cz-tag,.cz-sn,.cz-dim{position:absolute;z-index:1;line-height:1;white-space:nowrap;cursor:default}
.cz-tag{transform:translateY(-50%);padding:3px 5px;background:var(--soft);font-size:12px;font-weight:500;letter-spacing:-.005em;
  color:color-mix(in srgb,var(--ink) calc(55% + var(--hl,0) * 45%),transparent);transition:color .3s}
.cz-tag--bas{right:50.33%;top:18%}
.cz-tag--cubuk{right:45.33%;top:81%}
.cz-tag--panel{left:32.67%;top:49%}
.cz-sn{left:71.5%;top:20.5%;transform:translateY(-50%);font-size:10px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--t3)}
.cz-dim{left:92.5%;top:51.5%;writing-mode:vertical-rl;transform:translateY(-50%) rotate(180deg);font-size:11px;font-weight:500;letter-spacing:.01em;
  color:var(--ink);opacity:calc(.68 + var(--hl,0) * .32);transition:opacity .4s var(--ease)}

/* vurgu: çizimdeki ek eşleşmeler (bas, cubuk, panel, olcu kendi kendine home.css'te) */
.hc-in:has([data-k=dalga]:is(:hover,:focus)) [data-k=dalga],
.hc-in:has([data-k=kartus]:is(:hover,:focus)) [data-k=kartus],
.hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-cap,
.hc-in:has([data-k=kartus]:is(:hover,:focus)) .cz-cap,
.hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-tag--bas,
.hc-in:has([data-k=kartus]:is(:hover,:focus)) .cz-tag--bas,
.hc-in:has([data-k=olcu]:is(:hover,:focus)) .cz-pole,
.hc-in:has([data-k=olcu]:is(:hover,:focus)) .cz-tag--cubuk{--hl:1}
.hc-in:has([data-k=olcu]:is(:hover,:focus)) .cz-cap{--hl:0}
.hc-in:has([data-k=kartus]:is(:hover,:focus)) .cz-can .s2{stroke-opacity:.95}
.hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-sv .w{stroke-opacity:1}
.hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-sn{color:var(--ink)}

/* giriş: gizli başla (JS), görününce çiz */
.is-pre .cz-sv .d{stroke-dashoffset:1;opacity:0}
.is-pre :is(.cz-led,.cz-ind,.cz-sv .w,.cz-ld,.cz-tag,.cz-dim,.cz-sn){opacity:0}
.is-pre .cz-e2{transform:translateY(56px)}
.is-pre .cz-e3{transform:translateY(46px)}
.is-run .cz-sv .d{animation:cz-draw 1s var(--ease) both}
.is-run .g1 .d{animation-delay:.2s}
.is-run .g2 .d{animation-delay:.35s}
.is-run .g3 .d{animation-delay:.5s}
.is-run .g4 .d{animation-delay:.65s}
.is-run .g5 .d{animation-delay:.8s}
.is-run :is(.cz-ld,.cz-tag){animation:cz-in .6s ease 1.5s both}
.is-run .cz-dim{animation:cz-dim .6s ease 1.6s both}
@keyframes cz-draw{0%{stroke-dashoffset:1;opacity:0}2%{opacity:1}to{stroke-dashoffset:0;opacity:1}}
@keyframes cz-in{from{opacity:0}to{opacity:1}}
@keyframes cz-dim{from{opacity:0}to{opacity:calc(.68 + var(--hl,0) * .32)}}

/* döngü (9 sn): uzan → kavra, bas → uyaran → LED → sinyal → panel göstergesi → dağıl → in */
.is-run .cz-e2{animation:cz-e2 9s cubic-bezier(.6,0,.3,1) 2.2s infinite both}
.is-run .cz-e3{animation:cz-e3 9s cubic-bezier(.6,0,.3,1) 2.2s infinite both}
.is-run .cz-can{animation:cz-can 9s ease-out 2.2s infinite both}
.is-run .cz-puff{animation:cz-puff 9s ease-out 2.2s infinite both}
.is-run .cz-sv .w{animation:cz-w 9s ease-out 2.2s infinite both}
.is-run .cz-sv .w2{animation-delay:2.75s}
.is-run .cz-sv .w3{animation-delay:3.3s}
.is-run .cz-led{animation:cz-led 9s linear 2.2s infinite both}
.is-run .cz-pl{animation:cz-pl 9s cubic-bezier(.4,0,.6,1) 2.2s infinite both}
.is-run .cz-ind{animation:cz-ind 9s linear 2.2s infinite both}
.is-run .cz-sn{animation:cz-sn 9s ease 2.2s infinite both}
@keyframes cz-e2{0%,6%{transform:translateY(56px)}20%,78%{transform:translateY(0)}90%,100%{transform:translateY(56px)}}
@keyframes cz-e3{0%,14%{transform:translateY(46px)}28%,74%{transform:translateY(0)}86%,100%{transform:translateY(46px)}}
@keyframes cz-can{0%,29%{transform:translateY(0)}32%,60%{transform:translateY(-2px)}64%,100%{transform:translateY(0)}}
@keyframes cz-puff{0%,31%{opacity:0;transform:translateY(4px)}34%{opacity:1}46%,100%{opacity:0;transform:translateY(-7px)}}
@keyframes cz-w{0%,33%{opacity:0;transform:translateY(6px)}39%{opacity:1}56%{opacity:.8}66%,100%{opacity:0;transform:translateY(-22px)}}
@keyframes cz-led{0%{opacity:0}3%,43%{opacity:.12}45%,76%{opacity:1}80%,100%{opacity:.12}}
@keyframes cz-pl{0%,47%{stroke-dashoffset:.1;opacity:0}47.5%{opacity:1}56.5%{stroke-dashoffset:-1;opacity:1}57%,100%{stroke-dashoffset:-1;opacity:0}}
@keyframes cz-ind{0%,56.5%{opacity:0}57%,61%{opacity:1}62%,65%{opacity:.12}66%,70%{opacity:1}71%,74%{opacity:.12}75%,84%{opacity:1}87%,100%{opacity:0}}
@keyframes cz-sn{0%,35%{opacity:0}40%,64%{opacity:1}69%,100%{opacity:0}}

/* madde vurgusunda kendi hareketi: dalgalar sürekli yükselir / kutudan püskürtme */
@media (prefers-reduced-motion:no-preference){
  .hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-sv .w{animation:cz-wh 2.4s ease-out infinite both}
  .hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-sv .w2{animation-delay:.8s}
  .hc-in:has([data-k=dalga]:is(:hover,:focus)) .cz-sv .w3{animation-delay:1.6s}
  .hc-in:has([data-k=kartus]:is(:hover,:focus)) .cz-puff{animation:cz-ph 1.6s ease-out infinite both}
}
@keyframes cz-wh{0%{opacity:0;transform:translateY(6px)}25%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}
@keyframes cz-ph{0%{opacity:0;transform:translateY(4px)}20%{opacity:1}70%,100%{opacity:0;transform:translateY(-7px)}}

/* durdurma ve statik son kare */
.hc-fig--cz.is-hold,.hc-fig--cz.is-hold *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){.hc-fig--cz *{animation:none!important;transition:none!important}}

@media (max-width:1100px) and (min-width:961px){.cz-tag{font-size:11px}.cz-dim{font-size:10px}.cz-sn{font-size:9px}}
/* dar ekran: etiketler numaralı yuvarlağa döner (adlar çizimin altındaki kısa listede, home.css .hc-leg) */
@media (max-width:600px){
  .cz-tag{display:inline-grid;place-items:center;width:20px;height:20px;padding:0;border-radius:50%;font-size:0;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2)}
  .cz-tag::before{content:attr(data-n);font-size:11px;font-weight:500;color:var(--ink)}
  .cz-tag--bas{right:calc(50.33% - 4px)}.cz-tag--cubuk{right:calc(45.33% - 4px)}.cz-tag--panel{left:calc(32.67% - 4px)}
  .cz-sn{font-size:9px;letter-spacing:.06em}
  .cz-dim{font-size:10px}
}
