/* İz Teras — Proje Turu
   Kavram: ziyaretçi fotoğrafların içine "uçarak" projeyi gezer; son durak bir teras.
   Tek görünüm (gece sineması): koyu zemin, sıcak bakır ışık vurgusu. */
:root {
  --ink: #f4efe8;
  --mute: rgba(244, 239, 232, .66);
  --line: rgba(244, 239, 232, .22);
  --bg: #07090d;
  --glass: rgba(14, 16, 22, .46);
  --copper: #e9a46a;
  --copper-hi: #ffd29e;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 3.4vw, 48px);
  color-scheme: dark;
}
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; }

#tour { position: fixed; inset: 0; overflow: clip; background: var(--bg); touch-action: manipulation; }

/* ---------- sahneler ---------- */
.t-scene { position: absolute; inset: 0; visibility: hidden; opacity: 0; overflow: hidden; }
.t-scene.is-on { visibility: visible; opacity: 1; }
.t-move { position: absolute; inset: 0; will-change: transform; }
.t-fly { position: absolute; will-change: transform, filter; }
.t-kb { position: absolute; inset: 0; will-change: transform; }
.t-plate { position: absolute; inset: 0; }
.t-plate img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.t-plate.is-night { clip-path: inset(0 0 100% 0); }
.t-hots { position: absolute; inset: 0; z-index: 3; }
/* ışık huzmesi: gün batımı ışığı sahnenin üstünden yavaşça süzülür */
.t-kb::after {
  content: ""; position: absolute; inset: -20% -30%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 214, 160, .15) 42%, rgba(255, 200, 140, .05) 50%, transparent 62%);
  transition: opacity 1.2s ease; animation: t-ray 15s ease-in-out infinite alternate;
}
.t-scene.is-on .t-kb::after { opacity: 1; }
.t-scene.is-night-on .t-kb::after, .t-scene.no-ray .t-kb::after { opacity: 0; }
@keyframes t-ray { from { transform: translateX(-14%); } to { transform: translateX(14%); } }
.t-ambient { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; transition: opacity 1s ease; }
.t-scene::after { /* alt ve üst karartma: yazılar okunsun */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, 0) 18%),
    linear-gradient(0deg, rgba(7, 9, 13, .82) 0%, rgba(7, 9, 13, .28) 30%, rgba(7, 9, 13, 0) 52%);
}
.t-nightline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #ffd59a 18%, #fff3dc 50%, #ffd59a 82%, transparent);
  box-shadow: 0 0 26px 8px rgba(255, 186, 110, .55), 0 0 90px 30px rgba(255, 150, 80, .2);
}

/* ışık katmanı (iz-light.js) */
.iz-lights-canvas { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; mix-blend-mode: screen; max-width: none; }
.iz-lights-bloom { filter: blur(9px) saturate(1.5); opacity: .95; }

/* ---------- mini harita (vaziyet planı) ---------- */
.t-mini { position: absolute; z-index: 20; left: var(--pad); top: calc(env(safe-area-inset-top, 0px) + 92px); width: 184px; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.t-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; filter: saturate(.85) brightness(.9); }
.t-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t-mini polyline { fill: none; stroke: var(--copper-hi); stroke-width: 1.6; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .85; }
.t-mini small { position: absolute; left: 8px; bottom: 6px; font: 400 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-hi); text-shadow: 0 1px 6px #000; pointer-events: none; }
.t-mdot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .35); cursor: pointer; transition: transform .4s var(--ease), background-color .4s; }
.t-mdot:hover { transform: scale(1.5); background: var(--copper-hi); }
.t-mdot.is-seen { background: var(--copper); border-color: var(--copper); }
.t-mdot.is-now { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--copper-hi); border-color: #fff; z-index: 2; animation: t-mnow 1.8s ease-out infinite; }
@keyframes t-mnow { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 158, .75); } 100% { box-shadow: 0 0 0 14px rgba(255, 210, 158, 0); } }
@media (max-width: 760px) { .t-mini { display: none; } }

/* ---------- tıklama noktaları ---------- */
.t-hot {
  --r: 23px; /* halkanın yarıçapı: halka tam hedefin üstüne gelsin */
  position: absolute; z-index: 5; transform: translate(calc(-1 * var(--r)), -50%);
  display: flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  opacity: 0;
}
.t-hot .ring { position: relative; width: 46px; height: 46px; flex: none; }
.t-hot .ring i {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 222, 180, .95);
  animation: tPulse 2.4s var(--ease) infinite;
}
.t-hot .ring i + i { animation-delay: 1.2s; }
.t-hot .ring b {
  position: absolute; inset: 13px; border-radius: 50%;
  background: radial-gradient(circle, #fff6e6 0 30%, #ffc98a 60%, rgba(255, 180, 110, 0) 72%);
  box-shadow: 0 0 22px 6px rgba(255, 190, 120, .65);
  transition: transform .5s var(--ease);
}
@keyframes tPulse { 0% { transform: scale(.45); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.t-hot .lbl {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 16px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.t-hot .lbl::after { content: "→"; font-family: var(--sans); letter-spacing: 0; transition: transform .5s var(--ease); }
/* önizleme kartı: noktanın üstüne gelince gidilecek yer görünür */
.t-hot .pv {
  position: absolute; left: var(--r); bottom: calc(100% + 12px); width: 188px; padding: 6px 6px 9px; border-radius: 12px;
  background: rgba(14, 16, 22, .82); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none; opacity: 0; transform: translate(-50%, 8px) scale(.96); transition: opacity .35s var(--ease), transform .5s var(--ease);
  display: none; text-align: left; box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.t-hot .pv img { display: block; width: 100%; height: 106px; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, .06); margin-bottom: 8px; }
.t-hot .pv b { display: block; font: 500 13px/1.2 var(--sans); color: var(--ink); padding: 0 4px; letter-spacing: .01em; }
.t-hot .pv small { display: block; font: 400 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 2px 4px 0; }
.t-hot .pv em { display: none; font-style: normal; color: var(--copper-hi); }
.t-hot.is-seen .pv em { display: inline; }
@media (hover: hover) {
  .t-hot .pv { display: block; }
  .t-hot:hover .pv, .t-hot:focus-visible .pv { opacity: 1; transform: translate(-50%, 0) scale(1); }
  .t-hot.is-left:hover .pv, .t-hot.is-left:focus-visible .pv { transform: translate(50%, 0) scale(1); }
}
.t-hot.is-left .pv { left: auto; right: var(--r); transform: translate(50%, 8px) scale(.96); }
.t-hot:hover .ring b, .t-hot:focus-visible .ring b { transform: scale(1.35); }
.t-hot:hover .lbl, .t-hot:focus-visible .lbl { background: rgba(233, 164, 106, .88); border-color: transparent; color: #140e09; }
.t-hot:hover .lbl::after { transform: translateX(4px); }
.t-hot.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + var(--r)), -50%); }

/* ---------- ışınlanma efektleri ---------- */
.t-flash { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 246, 228, .95) 0%, rgba(255, 214, 160, .55) 18%, rgba(255, 190, 120, 0) 55%); }
.t-warp { position: absolute; z-index: 29; pointer-events: none; opacity: 0; width: 260vmax; height: 260vmax; left: 0; top: 0; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 180, 0) 0deg 2.6deg, rgba(255, 226, 190, .5) 2.8deg 3.1deg, rgba(255, 220, 180, 0) 3.3deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 7%, #000 22%, #000 40%, transparent 62%);
  mask: radial-gradient(circle, transparent 0 7%, #000 22%, #000 40%, transparent 62%); }

/* ---------- arayüz ---------- */
.t-top {
  position: absolute; z-index: 20; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--pad) 18px;
}
.t-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.t-logo b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.t-logo b em { font-style: italic; }
.t-logo span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.t-actions { display: flex; align-items: center; gap: 10px; }
.t-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(244, 239, 232, .4); background: rgba(7, 9, 13, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.t-btn:hover { background: var(--ink); color: #0b0d12; border-color: var(--ink); }
.t-btn.is-solid { background: var(--copper); border-color: var(--copper); color: #160e08; }
.t-btn.is-solid:hover { background: var(--copper-hi); border-color: var(--copper-hi); }
.t-btn[hidden] { display: none; }

.t-cap { position: absolute; z-index: 20; left: var(--pad); bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); max-width: min(620px, calc(100% - 2 * var(--pad))); pointer-events: none; }
.t-cap.is-top { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.t-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.t-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper-hi); box-shadow: 0 0 0 4px rgba(255, 210, 158, .2), 0 0 18px 4px rgba(255, 190, 120, .6); }
.t-title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6vw, 92px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 12px; text-wrap: balance; }
.t-title em { font-style: italic; color: var(--copper-hi); }
.t-line { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: rgba(244, 239, 232, .84); margin: 0; max-width: 44ch; }
.t-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .45em .06em .14em 0; margin: -.45em -.06em -.14em 0; }
.t-w > span { display: inline-block; }

.t-tools { position: absolute; z-index: 21; right: var(--pad); bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.t-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.t-toggle button { border: 0; background: none; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); transition: background-color .4s var(--ease), color .4s var(--ease); }
.t-toggle button[aria-pressed="true"] { background: var(--ink); color: #0b0d12; }
.t-toggle[hidden] { display: none; }
.t-look { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.t-look[hidden] { display: none; }
.t-look i { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.t-look i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: tDrag 1.8s var(--ease) infinite; }
@keyframes tDrag { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* rota */
.t-route {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad) calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: flex; align-items: flex-end; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.t-route::-webkit-scrollbar { display: none; }
.t-stop {
  position: relative; flex: 1 1 0; min-width: 104px; border: 0; background: none; cursor: pointer; text-align: left;
  padding: 18px 12px 0 0; color: var(--mute);
}
.t-stop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.t-stop::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #2a2d33; border: 1px solid rgba(244, 239, 232, .4); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.t-stop.is-seen::after { background: rgba(244, 239, 232, .7); }
.t-stop.is-now { color: var(--ink); }
.t-stop.is-now::after { background: var(--copper-hi); border-color: var(--copper-hi); box-shadow: 0 0 0 4px rgba(255, 210, 158, .22), 0 0 16px 4px rgba(255, 190, 120, .65); }
.t-stop small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.t-stop span { display: block; margin-top: 4px; font-size: 14px; white-space: nowrap; }
.t-progress { position: absolute; left: var(--pad); top: 0; height: 1px; background: var(--copper-hi); box-shadow: 0 0 10px 1px rgba(255, 200, 140, .7); width: 0; transition: width 1.2s var(--ease); }

.t-hint {
  position: absolute; z-index: 22; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 86px); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none;
}

/* ---------- teras sahnesi ---------- */
.t-scene.is-look .t-move { cursor: grab; touch-action: none; }
.t-scene.is-look .t-move:active { cursor: grabbing; }
.t-scene.is-look::after { background: linear-gradient(0deg, rgba(7, 9, 13, .7) 0%, rgba(7, 9, 13, 0) 40%); }
.t-terrace { position: absolute; inset: 0; z-index: 6; pointer-events: none; will-change: transform; }
.t-terrace svg { position: absolute; left: -4%; width: 108%; height: 100%; top: 0; }
.t-blur .t-plate img { filter: blur(1.2px) saturate(1.05); transform: scale(1.01); }

/* ---------- giriş ve son ekranı ---------- */
.t-intro { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; text-align: center; padding: var(--pad); overflow: hidden; }
.t-intro-bg { position: absolute; inset: -4%; background: center / cover no-repeat; filter: blur(6px) brightness(.48) saturate(1.1); transform: scale(1.08); }
.t-intro-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 780px; }
.t-intro h1 { font-family: var(--display); font-weight: 400; font-size: clamp(50px, 8.6vw, 132px); line-height: 1.04; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.t-intro h1 em { font-style: italic; color: var(--copper-hi); }
.t-intro p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: rgba(244, 239, 232, .84); max-width: 46ch; }
.t-start {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer; border: 0; margin-top: 8px;
  padding: 20px 30px; border-radius: 999px; background: var(--copper); color: #160e08;
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(233, 164, 106, .5); animation: tGlow 2.6s ease-in-out infinite;
}
.t-start:hover { background: var(--copper-hi); }
@keyframes tGlow { 50% { box-shadow: 0 0 0 14px rgba(233, 164, 106, 0), 0 0 60px 10px rgba(255, 190, 120, .35); } }
.t-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

.t-end { position: absolute; z-index: 25; inset: 0; display: grid; place-items: center; padding: var(--pad); pointer-events: none; opacity: 0; visibility: hidden; }
.t-end.is-on { pointer-events: auto; }
.t-end-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 640px; padding: 40px clamp(20px, 4vw, 48px); border-radius: 4px; background: rgba(7, 9, 13, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12); }
.t-end h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.t-end h2 em { font-style: italic; color: var(--copper-hi); }
.t-end p { margin: 0; color: rgba(244, 239, 232, .84); }
.t-end .t-phone { font-family: var(--mono); font-size: 18px; letter-spacing: .08em; user-select: all; }
.t-end-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 760px) {
  .t-cap, .t-cap.is-top { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 74px); right: var(--pad); }
  .t-title { font-size: 30px; margin: 8px 0 0; }
  .t-line { display: none; }
  .t-tools { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
  .t-scene::after { background: linear-gradient(180deg, rgba(7, 9, 13, .72) 0%, rgba(7, 9, 13, 0) 30%), linear-gradient(0deg, rgba(7, 9, 13, .7) 0%, rgba(7, 9, 13, 0) 22%); }
  .t-actions .t-btn:not(.is-solid) { display: none; }
  .t-hot { --r: 20px; }
  .t-hot .ring { width: 40px; height: 40px; }
  .t-hot .ring b { inset: 11px; }
  .t-hot .lbl { padding: 9px 13px; font-size: 11px; }
  .t-stop { min-width: 96px; }
  .t-hint { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 160px); }
}
@media (prefers-reduced-motion: reduce) {
  .t-hot .ring i, .t-start, .t-look i::after, .t-kb::after, .t-mdot.is-now { animation: none; }
}
