/* Pall kendini tanıtır — ilk ziyaret tanıtımı (28 Eyl). intro.js ile birlikte. */

/* Tanıtım kurulana kadar siteyi gösterme (ilk karede sayfa görünüp kaybolmasın) */
html.intro-on:not(.intro-ready)::before { content: ""; position: fixed; inset: 0; background: var(--paper, #fff); z-index: 9999; }
html.intro-on, html.intro-on body { overflow: hidden; }

.intro { position: fixed; inset: 0; z-index: 9998; background: var(--paper, #fff); color: var(--ink, #1d1d1f);
  display: flex; flex-direction: column; transition: opacity .8s ease, transform .8s cubic-bezier(.45,0,.2,1); }
.intro:focus { outline: none; }
.intro.is-leaving { opacity: 0; transform: translateY(-24px); pointer-events: none; }

.intro__bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, var(--gutter, 16px)) 12px;
  background: linear-gradient(var(--paper, #fff) 70%, rgba(255,255,255,0)); }
.intro__who { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted, #6e6e73); }
.intro__who img { border-radius: 7px; }
.intro__skip { min-height: 44px; min-width: 88px; padding: 0 22px; border-radius: var(--r-pill, 980px); border: 1px solid var(--line, #d2d2d7);
  background: var(--paper, #fff); color: var(--ink, #1d1d1f); font: 600 15px/1 var(--font-sans, system-ui); cursor: pointer;
  transition: background .18s ease, transform .12s ease; }
.intro__skip:hover { background: #f5f5f7; }
.intro__skip:active { transform: scale(.97); background: #ececf0; }
.intro__prog { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; background: var(--line-2, #e8e8ed); }
.intro__prog i { display: block; height: 100%; background: var(--ink, #1d1d1f); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s ease; }

.intro__view { position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(transparent 0, #000 12%, #000 88%, transparent 100%); }
.intro__track { position: relative; max-width: 1120px; margin: 0 auto; padding: 38vh var(--gutter, 16px) 50vh; will-change: transform; }
.intro__road { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.intro__road path { fill: none; stroke: var(--line, #d2d2d7); stroke-width: 2; stroke-linecap: round; }
.intro__road path.is-on { stroke: var(--ink, #1d1d1f); }

/* ---- Durak ---- */
.istop { position: relative; width: min(560px, 100%); margin-bottom: 30vh; opacity: .16; transition: opacity 1.2s cubic-bezier(.22,.61,.36,1); }
.istop:last-child { margin-bottom: 0; }
.istop--left { margin-right: auto; }
.istop--right { margin-left: auto; text-align: right; }
.istop--left, .istop--right { width: min(560px, 58%); }
.istop--right .istop__node { margin-left: auto; margin-right: 30px; }
.istop--right .istop__think { flex-direction: row-reverse; }
.istop--right .istop__art { align-items: flex-end; }
.istop--right .iart-row { justify-content: flex-end; }

.istop--center { margin-inline: auto; width: min(820px, 100%); text-align: center; }
.istop.is-now { opacity: 1; }
.istop.is-past { opacity: .32; }
.istop__node { display: block; width: 14px; height: 14px; margin: 0 0 22px 30px; border-radius: 50%; border: 2px solid var(--line, #d2d2d7); background: var(--paper, #fff); transition: background .5s ease, border-color .5s ease; }
.istop--center .istop__node { margin-inline: auto; }
.istop.is-now .istop__node, .istop.is-past .istop__node { border-color: var(--ink, #1d1d1f); background: var(--ink, #1d1d1f); }

.istop__think { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); }
.istop--center .istop__think { justify-content: center; }
.istop__mark { flex: none; display: grid; width: clamp(38px, 4vw, 58px); height: clamp(38px, 4vw, 58px); }
.istop__mark > * { grid-area: 1 / 1; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.istop--big .istop__mark { display: none; }
.istop__sk { width: 100%; height: 100%; filter: brightness(0); }
.istop__sk svg { display: block; width: 100%; height: 100%; }
.istop__ok { place-self: center; stroke-width: 2; opacity: 0; transform: scale(.6); }
.istop.is-done .istop__sk { opacity: 0; transform: scale(.8); }
.istop.is-done .istop__ok { opacity: 1; transform: none; }

/* Cümle katmanları: hepsi aynı hücrede; alan en uzun cümleye göre, o yüzden hiçbir şey kaymaz */
.istop__say { display: grid; flex: 0 1 auto; min-width: 0; }
.isay { grid-area: 1 / 1; display: block; font-style: normal; font-weight: 700; letter-spacing: -0.026em; line-height: 1.12;
  font-size: clamp(1.4rem, 0.8rem + 1.7vw, 2.3rem); text-align: left; align-self: center;
  background-image: linear-gradient(100deg, #c2c2c9 18%, var(--ink, #1d1d1f) 42%, var(--ink, #1d1d1f) 52%, #c2c2c9 78%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: introShim 2.4s linear infinite;
  opacity: 0; transform: translateY(12px); filter: blur(8px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1), filter .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter; }
.isay.is-on { opacity: 1; transform: none; filter: blur(0); transition-delay: .18s; }
.isay.was { opacity: 0; transform: translateY(-12px); filter: blur(8px);
  transition-duration: .6s, .8s, .6s; transition-delay: 0s; }
.isay--done { animation: none; background: none; color: var(--ink, #1d1d1f); -webkit-text-fill-color: currentColor; }
.istop--right .isay { text-align: right; }
.istop--big .isay { font-family: var(--font-serif, serif); font-weight: 600; letter-spacing: -0.028em;
  font-size: clamp(2.1rem, 1rem + 4.2vw, 4.6rem); line-height: 1.04; text-align: center; max-width: 16ch; justify-self: center; }
/* Tam bir desen boyu kayar (260% → 162.5%): son kare ilk kareyle aynı, döngü dikişi görünmez */
@keyframes introShim { 0% { background-position: 162.5% 0; } 100% { background-position: 0% 0; } }
.istop:not(.is-now) .isay { animation-play-state: paused; }

/* ---- Resim parçaları: cümleyle birlikte gelir ---- */
.istop__art { margin-top: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.istop--center .istop__art { align-items: center; }
[data-k] { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(6px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1), filter .8s cubic-bezier(.22,.61,.36,1); }
[data-k].is-in { filter: blur(0); }
[data-k].is-in { opacity: 1; transform: none; }
.iart-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.istop--center .iart-row { justify-content: center; }
.iart-app { width: 64px; height: 64px; border-radius: 15px; }
.iart-ill { width: 180px; height: auto; }

.iart-hello { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.iart-hello img { position: relative; border-radius: 26px; }
.iart-hello__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--line, #d2d2d7); animation: introRing 2.6s ease-out infinite; }
@keyframes introRing { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

.iart-bubbles { display: flex; flex-direction: column; gap: 7px; }
.iart-bubbles i { display: block; height: 14px; width: 150px; border-radius: 8px; background: var(--line-2, #e8e8ed); }
.iart-bubbles i:nth-child(2) { width: 110px; }
.iart-bubbles i.is-hit { width: 170px; background: var(--ink, #1d1d1f); }

.ichip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: var(--r-pill, 980px); border: 1px solid var(--line, #d2d2d7); background: var(--paper, #fff); font-size: 15px; }
.ichip img { width: 28px; height: 28px; border-radius: 50%; background: #f5f5f7; padding: 2px; }
.ichip span { color: var(--muted, #6e6e73); }
.ipill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill, 980px); border: 1px solid var(--line, #d2d2d7); font-size: 15px; font-weight: 600; background: var(--paper, #fff); }
.ipill svg { stroke: currentColor; }
.ipill img { border-radius: 4px; }
.ipill.is-sel { background: var(--ink, #1d1d1f); color: #fff; border-color: var(--ink, #1d1d1f); }
.ipill.is-sel img { filter: invert(1); }
.ipill--off { color: var(--muted, #6e6e73); }
.inote { display: flex; gap: 12px; align-items: flex-start; max-width: 380px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line, #d2d2d7); background: #fbfbfd; text-align: left; }
.inote img { border-radius: 7px; flex: none; }
.inote b { display: block; font-size: 14px; }
.inote span { font-size: 15px; line-height: 1.35; }

.ibars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.ibars i { display: block; width: 26px; height: 100%; border-radius: 6px 6px 3px 3px; background: var(--ink, #1d1d1f); transform-origin: 50% 100%; transform: scaleY(.05); transition: transform 1s cubic-bezier(.2,.8,.2,1), background .5s ease; }
.ibars.is-in i { transform: scaleY(var(--h)); }
.istop.k-b .ibars i.is-low { background: var(--accent, #0071e3); }
.ibig { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line, #d2d2d7); font-size: 15px; font-weight: 600; }
.ibig b { font-size: 22px; letter-spacing: -0.02em; }

.itodo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.itodo li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.itodo li span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink, #1d1d1f); position: relative; }
.itodo li { opacity: 1; transform: none; } /* satırlar liste ile gelir; "c" yalnız tik atar */
.itodo li.is-in span { background: var(--ink, #1d1d1f); }
.itodo li.is-in span::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.icount { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.icount__n { display: flex; flex-direction: column; align-items: center; }
.icount__n span { font-family: var(--font-serif, serif); font-weight: 600; font-size: clamp(4rem, 2rem + 8vw, 8.5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.icount__n small { font-size: 17px; color: var(--muted, #6e6e73); margin-top: 4px; }
.icount__clock { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted, #6e6e73); }
.icount__goal { width: min(340px, 80vw); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted, #6e6e73); }
.icount__goal i { display: block; height: 8px; border-radius: 4px; background: var(--line-2, #e8e8ed); position: relative; overflow: hidden; }
.icount__goal i::after { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 100%); background: var(--accent, #0071e3); border-radius: 4px; }

.icam { position: relative; width: min(460px, 100%); aspect-ratio: 100 / 56; border-radius: 14px; overflow: hidden; background: #222; }
.icam__img { position: absolute; inset: 0; background: url(assets/art/floor-painting.jpg) center / cover no-repeat; filter: saturate(.75); }
.icam__tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.icam__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #0071e3); animation: introBlink 1.2s steps(2) infinite; }
@keyframes introBlink { 50% { opacity: 0; } }
.icam__box { position: absolute; inset: 0; width: 100%; height: 100%; }
.icam__box rect { fill: rgba(0,113,227,.14); stroke: var(--accent, #0071e3); stroke-width: .7; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s ease .2s; }
.icam__box.is-in rect { stroke-dashoffset: 0; }
.icam__box rect { stroke-width: 2.5; }
.icam__label { position: absolute; left: 40%; top: calc(70% - 34px); display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: var(--accent, #0071e3); color: #fff; font-size: 13px; font-weight: 700; }
.icam__label img { filter: invert(1); }
.icam__pallet { position: absolute; left: 43%; top: 76%; width: 16%; height: auto; }

.iphotos { position: relative; display: flex; gap: 10px; }
.iphotos span { position: relative; width: clamp(92px, 12vw, 128px); aspect-ratio: 1; border-radius: 12px; background: url(assets/art/floor-painting.jpg) no-repeat; background-size: 900% auto; background-position: var(--x) var(--y); }
.iphotos span em { position: absolute; left: 30%; top: 26%; width: 46%; height: 46%; border-radius: 50%; border: 2.5px solid var(--accent, #0071e3); }
.istop.is-done 
.irev { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.irev div { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line, #d2d2d7); }
.irev b { flex: none; color: var(--accent, #0071e3); font-size: 15px; }
.irev span { font-size: 15px; line-height: 1.35; }


/* Kalite fotoğrafları incelenirken: her fotoğrafın içinde sol üstten sağ alta yumuşak parlama, sürekli döner */
.iphotos span { overflow: hidden; }
.iphotos span::after { content: ""; position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.22) 46%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.22) 54%, rgba(255,255,255,0) 58%);
  transform: translate3d(-25%, -25%, 0); will-change: transform; backface-visibility: hidden; transition: opacity 1s ease; }
.istop.k-b .iphotos span::after { opacity: 1; animation: introPhotoShim 3.6s cubic-bezier(.45,.05,.55,.95) infinite; }
.istop.k-b .iphotos span:nth-child(2)::after { animation-delay: .35s; }
.istop.k-b .iphotos span:nth-child(3)::after { animation-delay: .7s; }
.istop.is-past .iphotos span::after { opacity: 0; animation-play-state: paused; }
/* Bant sol üstte görünmezken başlar, sağ altta görünmezken biter; bekleme payı da görünmez yerde → dikiş yok */
@keyframes introPhotoShim { 0% { transform: translate3d(-25%, -25%, 0); } 72%, 100% { transform: translate3d(25%, 25%, 0); } }

/* ---- Telefon: yol ortadan iner, duraklar tam genişlik ---- */
@media (max-width: 720px) {
  .istop, .istop--left, .istop--right { margin-inline: 0; width: 100%; }
  .istop--right { text-align: left; }
  .istop--right .istop__node { margin-left: 18px; margin-right: 0; }
  .istop--right .istop__think { flex-direction: row; }
  .istop--right .isay { text-align: left; }
  .istop--right .istop__art { align-items: flex-start; }
  .istop--right .iart-row { justify-content: flex-start; }
  .istop { margin-bottom: 24vh; }
  .istop__node { margin-left: 18px; }
  .istop--center .istop__node { margin-inline: auto; }
  .isay { font-size: clamp(1.3rem, 1rem + 2vw, 1.6rem); }
  .istop--big .isay { font-size: clamp(2rem, 1.2rem + 5vw, 2.8rem); }
  .ibars { height: 84px; gap: 8px; }
  .intro__who { font-size: 14px; }
}

/* ---- Hareketi azalt ---- */
@media (prefers-reduced-motion: reduce) {
  .intro, .intro__track, [data-k], .istop, .isay, .istop__mark > *, .ibars i { transition: none !important; filter: none !important; }
  .isay { animation: none; background: none; color: var(--ink, #1d1d1f); -webkit-text-fill-color: currentColor; transform: none !important; }
  .iart-hello__ring, .icam__tag i { animation: none; }
  .iphotos span::after { animation: none !important; }
}

/* Pall el logosu dik bir resim (533x762): kareye zorlama, oranını koru */
.intro img[src$="pal-appicon.png"] { width: auto; object-fit: contain; border-radius: 0; }
