/* ---------- BİNA HERO ---------- */

.bina {
  height: 300vh; /* scroll uzunluğu: arttırırsan animasyon yavaşlar */
  color: var(--text); /* sayfa açık, bu bölüm koyu: yazılar beyaz */
}

/* Koyu bina bölümünden açık sayfaya yumuşak geçiş (scrim'in dibindeki tondan başlar) */
.bina-to-light {
  height: 24vh; /* hero sonrası boşluk kısaltıldı (45vh çok fazlaydı); geçiş yine yumuşak */
  margin-bottom: -8vh; /* alttaki açık bölümün üst boşluğuna hafifçe taşar */
  background: linear-gradient(to bottom, #17181b 0%, #3b3e45 30%, #a9b0bd 70%, rgba(238, 241, 245, 0) 100%);
  pointer-events: none;
}

.bina .seq-sticky {
  /* Videonun kenar tonları: dikey ekranda görüntünün dışında kalan alan */
  background: linear-gradient(to bottom, #56585c 0%, #6e6f72 50%, #8a8886 100%);
}

/* Tüm ekranı örtmez: sadece üstte menü, altta yazılar için hafif koyulaşma */
.bina-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12, 13, 16, 0.45) 0%, rgba(12, 13, 16, 0) 18%),
    linear-gradient(to top, rgba(12, 13, 16, 0.94) 0%, rgba(12, 13, 16, 0.72) 24%, rgba(12, 13, 16, 0.3) 46%, rgba(12, 13, 16, 0) 62%),
    /* Başlığın arkası: bina tamamlanınca pencerelerin beyaz buzlu şeritleri buraya denk gelir */
    radial-gradient(ellipse 50% 42% at 20% 62%, rgba(12, 13, 16, 0.55), rgba(12, 13, 16, 0) 100%);
}

/* ---------- Kalıcı giriş alanı: başlık + butonlar + inşa şeridi ---------- */

.bina-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(4.5vh + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  pointer-events: none;
}

.bina-eyebrow {
  display: block;
  margin-bottom: 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 0.75rem rgba(0, 0, 0, 0.6);
}

/* İki başlık aynı hücrede üst üste: biri dağılırken diğeri aynı yerde toplanır */
.bina-titles { display: grid; }
.bina-titles > .bina-title { grid-area: 1 / 1; }

.bina-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, min(5.2vw, 7.5vh), 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
  text-shadow: 0 0.125rem 1.5rem rgba(0, 0, 0, 0.45);
}

.bina-title .w {
  display: inline-block; /* kelime tek başına dönebilsin / kayabilsin */
  will-change: transform, opacity, filter;
}

.bina-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  pointer-events: auto;
}

/* ---------- İnşa şeridi ----------
   Çizgi --seq-p ile dolar: %12'de başlar, %90'da biter. Noktalar sütun başlarında (0, 1/3, 2/3)
   olduğu için çizgi onlara sırasıyla %12, %38, %64'te ulaşır — HTML'deki data-at değerleri. */

.build {
  position: relative;
  width: 100%;
  margin-top: clamp(1.75rem, 4.5vh, 3rem);
}

.build-track {
  position: absolute;
  top: 0.3125rem; /* nokta merkezinin hizası */
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.build-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffd59a);
  box-shadow: 0 0 0.75rem rgba(var(--accent-rgb), 0.6);
  transform-origin: 0 50%;
  transform: scaleX(clamp(0, (var(--seq-p, 0) - 0.12) / 0.78, 1));
}

.build-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-step {
  position: relative;
  padding-top: 1.5rem;
  opacity: 0.42;
  transition: opacity 0.5s ease;
}
.build-step.is-reached { opacity: 1; }

.build-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #2a2c31;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.6s ease;
}
.build-step.is-reached .build-dot {
  background: var(--accent);
  border-color: #ffd59a;
  box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.18), 0 0 1rem rgba(var(--accent-rgb), 0.75);
}

.build-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.4s ease;
}
.build-step.is-reached .build-num { color: var(--accent); }

.build-step h3 {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.build-step p {
  margin: 0.375rem 0 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .build-step,
  .build-dot,
  .build-num { transition: none; }
}

/* ---------- Telefon ----------
   Üç adım yan yana sadece nokta + kısa ad; altında yalnızca o anki adımın açıklaması. */

@media (max-width: 767px) {
  .bina { height: 190vh; } /* mobilde kısa: momentum kuyruğunda kareler daha hızlı geçer (fps hissi) */

  .bina-ui { padding: 0 1.25rem; bottom: calc(3vh + env(safe-area-inset-bottom)); }
  .bina-eyebrow { font-size: 0.7rem; margin-bottom: 0.625rem; }
  .bina-title { font-size: clamp(2.1rem, 9.5vw, 2.75rem); }

  .bina-buttons { width: 100%; margin-top: 1.25rem; }
  .bina-buttons a { flex: 1 1 auto; padding: 0.8125rem 1.125rem; }

  .build { margin-top: 1.5rem; }
  .build-steps {
    position: relative;
    gap: 0.75rem;
    margin-bottom: 3.5rem; /* o anki adımın açıklamasına yer */
  }
  .build-step { position: static; padding-top: 0; }
  .build-dot { position: relative; display: block; margin-bottom: 0.5rem; }
  .build-num { font-size: 0.68rem; letter-spacing: 0.12em; }
  .build-step h3 { display: none; }

  .build-step p {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-width: none;
    margin-top: 0.625rem;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .build-step.is-current p { opacity: 1; }
}
