/* Renkler (logodan alındı) */
:root {
  --zemin: #faf9f5;
  --lacivert: #0e1b2e;
  --altin: #c6ae7f;
  --ayrac: #dadad9;
  /* Logo + sayaç + aradaki boşlukların toplam yüksekliği.
     Arkadaki TG, ekranın geri kalanına sığacak kadar büyür. */
  --ust-alt-yuksekligi: 270px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--zemin);
  color: var(--lacivert);
  font-family: "Poppins", sans-serif;
  text-align: center;
  overflow-x: hidden;
}

/* Üstteki logo */
.ust {
  padding-top: 32px;
}

.ust__logo {
  display: block;
  width: 180px;
  height: auto;
}

/* Ortadaki TG amblemi ve slogan */
.orta {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.amblem {
  position: relative;
  height: min(calc(100svh - var(--ust-alt-yuksekligi)), 102vw);
  min-height: 300px;
  aspect-ratio: 680 / 732;
}

.amblem__resim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

/* Slogan ve altın çizgi, amblemin tam ortasında */
.amblem__yazi {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 100vw;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.slogan {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.slogan__satir1,
.slogan__satir2 {
  display: block;
}

/* "&" işareti tam ortada, T harfinin üstünde durur */
.slogan__satir1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 0.22em;
}

.slogan__sol {
  text-align: right;
}

.slogan__sag {
  text-align: left;
}

.cizgi {
  width: 48px;
  height: 0;
  border: 0;
  border-top: 1px solid var(--altin);
  margin-top: 34px;
}

/* Alttaki YAKINDA ve sayaç */
.alt {
  padding-bottom: 32px;
}

.yakinda {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.68em;
  margin-right: -0.68em; /* harf aralığı yüzünden kaymayı düzeltir */
  text-transform: uppercase;
  margin-bottom: 22px;
}

.sayac {
  display: flex;
  justify-content: center;
}

.sayac__kutu {
  width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--ayrac);
}

.sayac__kutu:first-child {
  border-left: 0;
}

.sayac__sayi {
  font-size: 22px;
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sayac__etiket {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  text-transform: uppercase;
}

/* Geniş ekranlarda biraz büyüt */
@media (min-width: 900px) {
  :root {
    --ust-alt-yuksekligi: 330px;
  }
  .ust {
    padding-top: 48px;
  }
  .ust__logo {
    width: 220px;
  }
  .slogan {
    font-size: 40px;
  }
  .sayac__kutu {
    width: 110px;
  }
  .sayac__sayi {
    font-size: 30px;
  }
  .sayac__etiket {
    font-size: 10px;
  }
  .yakinda {
    font-size: 14px;
  }
  .alt {
    padding-bottom: 48px;
  }
}

/* ---------- Açılış ekranı ---------- */
.acilis {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zemin);
  transition: background-color 0.6s ease 0.5s;
}

/* Açılış bitene kadar üstteki logo gizli; açılış logosu onun yerine oturur */
body:has(.acilis) .ust__logo {
  opacity: 0;
}

.acilis__logo {
  width: min(560px, 78vw);
  height: auto;
  transform-origin: 0 0;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 50%);
  mask-image: linear-gradient(to right, #000 45%, transparent 50%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: acilis-belir 0.8s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes acilis-belir {
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}