/* ==========================================================================
   Taşçı Ender — hareket katmanı
   Tüm efektler prefers-reduced-motion: reduce altında kapanır (en altta).
   ========================================================================== */

:root {
    --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --tile-bg: #e8e2d4;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Sayfa üstü ilerleme çubuğu
   -------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: calc(var(--z-nav) + 1); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--c-ink); transform-origin: 0 50%; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   İmleç etiketi (yalnızca hassas işaretçi)
   -------------------------------------------------------------------------- */
.cursor {
    position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
    width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
    background: var(--c-ink); color: #fff; display: grid; place-items: center;
    font-size: .8125rem; font-weight: 500; letter-spacing: .01em;
    transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0);
    transition: transform 0s, opacity 200ms ease;
    opacity: 0; will-change: transform;
}
.cursor span { transform: scale(var(--cs, 0)); transition: transform 350ms var(--ease-out); }
.cursor.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }

/* --------------------------------------------------------------------------
   Kelime kelime başlık açılışı
   -------------------------------------------------------------------------- */
.split .w {
    display: inline-block; overflow: hidden; vertical-align: top;
    padding: .06em .02em .14em; margin: -.06em -.02em -.14em;  /* ğ ş ç kuyrukları kesilmesin */
}
.split .w > span {
    display: inline-block; transform: translate3d(0, 108%, 0) rotate(4deg); transform-origin: 0 100%;
    transition: transform 1000ms var(--ease-out);
    transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0ms));
}
.split.is-split-in .w > span { transform: none; }

/* --------------------------------------------------------------------------
   Görsel açılışı (kırpma + ölçek) ve paralaks
   -------------------------------------------------------------------------- */
.img-reveal { clip-path: inset(18% 0 0 0 round var(--radius)); transition: clip-path 1200ms var(--ease-out); }
.img-reveal img { scale: 1.18; transition: scale 1600ms var(--ease-out), transform 900ms var(--ease); }
.img-reveal.is-shown { clip-path: inset(0 0 0 0 round var(--radius)); }
.img-reveal.is-shown img { scale: 1; }
[data-parallax] img { translate: 0 var(--py, 0px); }
[data-parallax].is-shown img { scale: 1.12; }

/* --------------------------------------------------------------------------
   Hero: şerit kartları yükselerek gelir
   -------------------------------------------------------------------------- */
.js .marquee__item { animation: rise 1100ms var(--ease-out) both; animation-delay: calc(350ms + var(--k, 0) * 70ms); }
@keyframes rise {
    from { opacity: 0; transform: translateY(60px) scale(.94); }
    to   { opacity: 1; transform: none; }
}
.marquee__track:hover .marquee__item img { filter: saturate(.9); }
.marquee__item img { transition: filter 400ms ease, transform 700ms var(--ease-out); }
.marquee__item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* --------------------------------------------------------------------------
   SPIRAL — doku kütüphanesi
   -------------------------------------------------------------------------- */
.spiral {
    position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 560px;
    overflow: hidden; background: var(--c-bg); margin-top: clamp(3rem, 8vw, 6rem);
}
.spiral__orbit { position: absolute; inset: 0; z-index: 1; }
.spiral__tile {
    position: absolute; top: 0; left: 0;
    width: var(--ts, 70px); height: var(--ts, 70px);
    offset-path: var(--spiral-path); offset-rotate: auto; offset-distance: 0%;
    background-color: var(--tile-bg);
    background-image: url('../img/textures/stone-sheet.webp');
    background-size: 600% 600%; background-repeat: no-repeat;
    will-change: offset-distance, opacity; opacity: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.spiral__fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.88) 66%, #fff 100%);
}
.spiral__word { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.spiral__word text { font-family: var(--f-sans); font-weight: 600; letter-spacing: -.02em; fill: var(--c-ink); }
.spiral__label {
    position: absolute; z-index: 3; margin: 0; line-height: 1; white-space: nowrap; color: #6b6b63;
}
.spiral__hint {
    position: absolute; z-index: 3; top: calc(var(--nav-h) + .75rem); left: var(--gutter); right: var(--gutter);
    display: flex; justify-content: space-between; font-size: .8125rem; color: #6b6b63; pointer-events: none;
}
.js .spiral__word, .js .spiral__label, .js .spiral__hint { opacity: 0; transform: translateY(14px); }
.spiral.is-ready .spiral__word,
.spiral.is-ready .spiral__label,
.spiral.is-ready .spiral__hint { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.spiral.is-ready .spiral__word { transition-delay: .7s; }
.spiral.is-ready .spiral__label { transition-delay: .82s; }
.spiral.is-ready .spiral__hint { transition-delay: 1.1s; }

@supports not (offset-path: path("M0 0")) {
    .spiral { display: none; }
}

/* --------------------------------------------------------------------------
   Taş bandı — dokuyla doldurulmuş dev yazı
   -------------------------------------------------------------------------- */
.band { padding-block: clamp(3rem, 7vw, 6rem); overflow: hidden; border-block: 1px solid var(--c-line); }
.band__row { display: flex; width: max-content; will-change: transform; }
.band__group { display: flex; align-items: center; flex-shrink: 0; }
.band__word {
    font-size: clamp(3.5rem, 11vw, 10rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05;
    padding-inline: .2em; white-space: nowrap;
}
.band__row--fill .band__word {
    color: transparent; background-color: #8a8378;
    background-size: 420px auto; background-position: var(--bx, 0px) 50%;
    -webkit-background-clip: text; background-clip: text;
}
.band__row--stroke .band__word { color: transparent; -webkit-text-stroke: 1.5px var(--c-ink); }
.band__row--stroke { margin-top: -.15em; }
.band__dot {
    width: clamp(.75rem, 1.6vw, 1.25rem); aspect-ratio: 1; border-radius: 50%; flex-shrink: 0;
    background: url('../img/textures/terrazzo-tiles.webp') center / 200px;
}
.band__row--stroke .band__dot { background: none; border: 1.5px solid var(--c-ink); }

/* --------------------------------------------------------------------------
   Taş kartları — 3B eğim + parlama
   -------------------------------------------------------------------------- */
.stone__img {
    position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
    transform-style: preserve-3d;
}
.stone__img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.45), rgba(255,255,255,0) 55%);
    transition: opacity 300ms ease; mix-blend-mode: soft-light;
}
.stone.is-tilting .stone__img { transition: transform 120ms linear, box-shadow 500ms var(--ease-out); box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); }
.stone.is-tilting .stone__img::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Süreç: çizgi çizilir, numara büyür
   -------------------------------------------------------------------------- */
.process__list li { position: relative; }
.process__list li::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--c-ink);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 1200ms var(--ease-out); transition-delay: var(--d, 0ms);
}
.process__list li.is-in::before { transform: scaleX(1); }
.process__list li span { transition: color 400ms ease; }
.process__list li:hover span { color: var(--c-ink); }

/* --------------------------------------------------------------------------
   Kartlar: ok döner, başlık kayar
   -------------------------------------------------------------------------- */
.card__title { transition: transform 500ms var(--ease-out); }
.card:hover .card__title { transform: translateX(6px); }
.service__title { transition: transform 500ms var(--ease-out); }
.service:hover .service__title { transform: translateX(6px); }

/* Mıknatıslı butonlar */
[data-magnetic] { transition: translate 500ms var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; translate: var(--mx, 0px) var(--my, 0px); }
[data-magnetic].is-pulling { transition: translate 120ms linear, background-color var(--dur-fast) ease; }

/* Footer dev başlık */
.footer__title { will-change: transform; }

/* --------------------------------------------------------------------------
   Azaltılmış hareket
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .split .w > span { transform: none !important; }
    .img-reveal { clip-path: none !important; }
    .img-reveal img, [data-parallax] img { scale: 1 !important; translate: none !important; }
    .js .marquee__item { animation: none; }
    .js .spiral__word, .js .spiral__label, .js .spiral__hint { opacity: 1; transform: none; }
    .stone__img { transform: none !important; }
    .process__list li::before { transform: scaleX(1); }
    .cursor { display: none; }
    .has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: auto; }
    [data-magnetic] { translate: none !important; }
}
