/* Bağ Tower — homepage opener: The Royal rises floor by floor while scrolling */
.bti { --gold: #c9a227; position: relative; height: 520vh; background: #07080c; color: #fff; }
.bti-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.bti-still, .bti-gl, .bti-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bti-still { object-fit: cover; object-position: 52% 50%; }
.bti.is-live .bti-still { visibility: hidden; }
.bti-fx { pointer-events: none; }
.bti-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,8,12,.7) 0%, rgba(7,8,12,.3) 26%, rgba(7,8,12,0) 42%),
              linear-gradient(0deg, rgba(7,8,12,.6) 0%, rgba(7,8,12,0) 16%),
              linear-gradient(180deg, rgba(7,8,12,.45) 0%, rgba(7,8,12,0) 14%); }

/* text blocks fade in / out by scroll progress (set in insaat.js) */
[data-from] { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.bti-intro, .bti-final { position: absolute; left: clamp(22px, 6vw, 110px); top: 50%; transform: translateY(-50%); max-width: min(520px, 44vw); }
.bti-intro.is-off, .bti-final.is-off { opacity: 0; transform: translateY(calc(-50% + 24px)); pointer-events: none; }
.bti-kicker { display: inline-block; color: var(--gold); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.bti-intro h1, .bti-final h2 { color: #fff; font-family: var(--title-font, inherit); font-size: clamp(40px, 5.6vw, 84px); line-height: 1; margin: 0 0 18px; }
.bti-intro h1 span { color: var(--gold); }
.bti-final h2 { font-size: clamp(34px, 4.4vw, 64px); }
.bti-intro p, .bti-final p { color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; margin: 0 0 26px; }
.bti-mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; position: relative; }
.bti-mouse i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: btiWheel 1.6s ease-in-out infinite; }
@keyframes btiWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.bti-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bti-btn { display: inline-flex; gap: 10px; align-items: center; color: #07080c; background: var(--gold); padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.bti-btn:hover { background: #fff; color: #07080c; }
.bti-btn.is-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.bti-btn.is-ghost:hover { background: #fff; color: #07080c; }

/* construction stages (bottom left) + progress meter (bottom right) */
.bti-steps { position: absolute; left: clamp(22px, 6vw, 110px); bottom: 38px; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.bti-steps li { color: rgba(255,255,255,.38); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: color .4s; }
.bti-steps li b { display: block; font-size: 11px; color: rgba(255,255,255,.3); margin-bottom: 4px; transition: color .4s; }
.bti-steps li:not(.is-off) { color: #fff; }
.bti-steps li:not(.is-off) b { color: var(--gold); }
.bti-meter { position: absolute; right: clamp(22px, 5vw, 80px); bottom: 38px; display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.bti-pct { color: #fff; font-size: 22px; letter-spacing: 0; font-weight: 600; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.bti-meter i { width: 160px; height: 2px; background: rgba(255,255,255,.18); position: relative; }
.bti-meter i b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* project switching: arrows on the sides, counter + name + dots above the meter */
.bti-gl { transition: opacity .26s ease; }
.bti-gl.is-fading { opacity: 0; }
.bti-final.is-other { display: none; }
.bti-arrow { position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(13,14,18,.32);
  border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s, color .25s, border-color .25s, transform .25s; }
.bti-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bti-arrow:hover { background: var(--gold); border-color: var(--gold); color: #07080c; }
.bti-arrow.is-prev { left: clamp(10px, 1.6vw, 28px); }
.bti-arrow.is-next { right: clamp(10px, 1.6vw, 28px); }
.bti-arrow.is-prev:hover { transform: translateX(-3px); }
.bti-arrow.is-next:hover { transform: translateX(3px); }
.bti-pager { position: absolute; right: clamp(22px, 5vw, 80px); bottom: 86px; z-index: 3; display: flex; align-items: center; gap: 14px;
  color: #fff; font-size: 14px; letter-spacing: .04em; }
.bti-pager-count { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.bti-pager-count b { color: var(--gold); font-weight: 600; }
.bti-pager-name { font-weight: 600; min-width: 110px; }
.bti-dots { display: flex; gap: 6px; }
.bti-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.bti-dots i.is-on { width: 20px; background: var(--gold); }

@media (max-width: 991px) {
  .bti { height: 420vh; }
  .bti-arrow { width: 44px; height: 44px; margin-top: -22px; top: 40%; }
  .bti-arrow svg { width: 18px; height: 18px; }
  .bti-pager { right: auto; left: 50%; transform: translateX(-50%); bottom: auto; top: 86px; white-space: nowrap; font-size: 13px; }
  .bti-pager-name { min-width: 0; }
  .bti-shade { background: linear-gradient(0deg, rgba(7,8,12,.92) 0%, rgba(7,8,12,.6) 38%, rgba(7,8,12,0) 62%),
                           linear-gradient(180deg, rgba(7,8,12,.6) 0%, rgba(7,8,12,0) 20%); }
  .bti-intro, .bti-final { top: auto; bottom: 96px; transform: none; max-width: none; right: 22px; }
  .bti-intro.is-off, .bti-final.is-off { transform: translateY(24px); }
  .bti-intro p, .bti-final p { font-size: 15px; margin-bottom: 18px; }
  .bti-final p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bti-steps { bottom: 30px; gap: 14px; }
  .bti-steps li { font-size: 10px; letter-spacing: .08em; }
  .bti-steps li:not(.is-off) ~ li.is-off { display: none; }
  .bti-meter { bottom: 30px; gap: 8px; }
  .bti-meter > span:last-child, .bti-meter i { display: none; }
  .bti-pct { font-size: 18px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bti { height: auto; }
  .bti-sticky { position: relative; }
  .bti-intro, .bti-steps, .bti-meter { display: none; }
  .bti-final.is-off { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
}
