@charset "UTF-8";

/* Giriş: şube seçimi (index.html) */

html, body { height: 100%; }

body { overflow: hidden; --cerez-gecikme: 2.4s; }

/* Tam ekran ikiye bölünmüş giriş: mobilde alt alta, geniş ekranda yan yana */
.split {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Açılış perdesi: kıvrımlı kumaş iki kanat, ortadan ayrılıp yanlara toplanır */
.split::before,
.split::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(90deg,
      #0b1416 0,
      #172a2e 18px,
      #22383d 27px,
      #1a2e32 38px,
      #0b1416 56px);
  animation: 2.1s cubic-bezier(0.65, 0, 0.25, 1) 0.35s both;
}

.split::before {
  left: 0;
  transform-origin: left center;
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.5);
  animation-name: curtain-left;
}

.split::after {
  right: 0;
  transform-origin: right center;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.5);
  animation-name: curtain-right;
}

@keyframes curtain-left {
  0% { transform: translateX(0) scaleX(1); }
  80% { opacity: 1; }
  100% { transform: translateX(-4%) scaleX(0.06); opacity: 0; }
}

@keyframes curtain-right {
  0% { transform: translateX(0) scaleX(1); }
  80% { opacity: 1; }
  100% { transform: translateX(4%) scaleX(0.06); opacity: 0; }
}

/* Ekranda görünmez, arama motorları ve ekran okuyucular için sayfa başlığı */
.gizli-baslik {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.split__half {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.split__half--light { background: var(--light); color: var(--dark); }
.split__half--dark { background: var(--dark); color: var(--light); }

.split__half:focus-visible { outline: 2px solid currentColor; outline-offset: -10px; }

.split__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.7s var(--ease);
}

.split__logo {
  display: block;
  width: clamp(220px, 30vw, 440px);
  max-width: 72vw;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  animation: rise 1.4s var(--ease) 1.25s backwards;
}

.split__label {
  margin-top: clamp(16px, 2vw, 28px);
  padding-left: 0.42em; /* harf aralığının sağ boşluğunu dengeler */
  font-size: clamp(14px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  animation: rise 1.4s var(--ease) 1.45s backwards;
}

.split__half--dark .split__logo { animation-delay: 1.35s; }
.split__half--dark .split__label { animation-delay: 1.55s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

.split__cta {
  position: absolute;
  bottom: clamp(28px, 8vh, 120px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.split__cta-arrow { display: inline-block; transition: transform 0.4s ease; }

/* Fareli cihazlarda: telefonda dokunuştan sonra "üzerinde" hâli takılı kalıp yazıyı büyütülmüş (bulanık) bırakıyordu */
@media (hover: hover) {
  .split__half:hover .split__brand { transform: scale(1.04); }
  .split__half:hover .split__cta { opacity: 1; transform: translateY(0); }
}
.split__half:focus-visible .split__brand { transform: scale(1.04); }
.split__half:focus-visible .split__cta { opacity: 1; transform: translateY(0); }

.split__half:hover .split__cta-arrow { transform: translateX(4px); }

/* Dokunmatik ekranlarda üzerine gelme yok: yönlendirme hep görünsün */
@media (hover: none) {
  .split__cta { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
  .split { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .split::before, .split::after { display: none; }
  .split__logo, .split__label { animation: none; }
}
