/* Safari saat ve adres çubuklarının arkasını sayfanın arka plan rengiyle düz boyar; görselin üst
   kenarının rengi olsun ki şeritler sahneyle birleşsin. Sahnenin altındaki footer da bu yüzden hep koyu. */
html, body { background: #040922; }
.footer { --muted: #9aa6bf; --border: rgba(148, 163, 184, .16); }

/* Hero: 1440×810 çerçeve ekranı kaplar; tüm sahne konumları çerçeve birimi (--u) cinsinden.
   Yükseklik 100lvh: kaydırınca adres çubuğu küçülüp ekran uzadığında altta boşluk kalmaz. */
.hero {
  --u: max(calc(100vw / 1440), calc(100lvh / 810));
  --muted-hero: #cdd2e6;
  position: relative;
  height: 100lvh;
  min-height: 520px;
  overflow: hidden;
  background: #040922;
  color: #fff;
  font-family: "Urbanist", var(--font);
  isolation: isolate;
}

.hero__frame {
  position: absolute;
  width: calc(1440 * var(--u));
  height: calc(810 * var(--u));
  left: calc(50% - 720 * var(--u));
  top: calc(50% - 405 * var(--u));
}

.hero__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}

.hero__head {
  position: absolute;
  left: calc(532.5 * var(--u));
  top: calc(180 * var(--u));
  width: calc(375 * var(--u));
  height: calc(390 * var(--u));
  -webkit-mask-image: radial-gradient(ellipse 52% 58% at 50% 46%, #000 74%, transparent 98%);
  mask-image: radial-gradient(ellipse 52% 58% at 50% 46%, #000 74%, transparent 98%);
  pointer-events: none;
}
.hero__row {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
}
.hero__camera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0; pointer-events: none; }
.hero__row--mid { transition: opacity .6s ease; }
.hero__row--mid.is-ready { opacity: 1; }

/* Başlık bloğu: kafanın üstündeki karanlık boşlukta */
.hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 405 * var(--u) + 92 * var(--u));
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.hero__eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: min(calc(16 * var(--u)), 1.9vw);
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--muted-hero);
  padding-left: .46em;
}
.hero__title {
  margin: calc(6 * var(--u)) 0 0;
  font-family: "Archivo", var(--font);
  font-style: italic;
  font-weight: 900;
  font-stretch: 94%;
  font-variation-settings: "wdth" 94;
  font-size: min(calc(92 * var(--u)), 10.5vw);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 0 calc(14 * var(--u)) rgba(255, 255, 255, .55),
    0 0 calc(34 * var(--u)) rgba(170, 200, 255, .55),
    0 0 calc(70 * var(--u)) rgba(80, 120, 255, .6);
}

/* Üst bar: hero'nun içinde, sayfayla birlikte kayar */
.hero .header {
  position: absolute;
  z-index: 5;
  transition: visibility 0s;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(18px, calc(36 * var(--u))) max(16px, calc(55 * var(--u)));
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero__actions { display: flex; align-items: center; gap: 10px; }
/* Dil ve menü: kutusuz, sahnenin üstünde yalnız yazı ve iki çizgi */
.hero .lang-toggle { background: none; border: 0; padding: 8px 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .8); }
.hero .lang-toggle:hover { color: #fff; }
.hero .menu-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  gap: 6px;
  background: transparent;
  border: 0;
}
.hero .menu-toggle span { width: 22px; height: 1.5px; background: #fff; }
.hero .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hero .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.hero .nav {
  position: absolute;
  top: calc(100% - 8px);
  right: max(16px, calc(55 * var(--u)));
  left: auto;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 14, 32, .92);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero .nav.is-open { display: flex; }
.hero .nav a { color: #e6ebf5; font-size: 17px; padding: 10px 14px; }
.hero .nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* Özel imleç (yalnız ince işaretçide) */
.cursor { display: none; }
.hero.has-cursor { cursor: none; }
.hero.has-cursor a, .hero.has-cursor button { cursor: none; }
.hero.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
}
.cursor__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff; }
.cursor__ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid #fff; }

/* Yükleme: kareler inene kadar sahnenin altında ince çizgi ve yüzde, kaydırma kilitli.
   Gövdedeki overflow-x kilit sırasında görünür olmalı; yoksa gövde kendi kaydırıcısı olur ve
   yapışkan sahne bozulur. Kaydırma çubuğunun yeri ayrılır ki kilit kalkınca sayfa kaymasın. */
html.is-loading { overflow: hidden; scrollbar-gutter: stable; }
html.is-loading body { overflow: visible; }
.hero__loader {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.hero__loader[hidden] { display: none; }
.hero__loader.is-visible { opacity: 1; }
.hero__loader-bar { position: relative; width: 120px; height: 2px; overflow: hidden; border-radius: 1px; background: rgba(255, 255, 255, .2); }
.hero__loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform .2s linear;
}
.hero__loader-num { min-width: 4ch; }

#intro .intro__lead {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30em;
  margin: 0;
}
#intro .stats { margin-top: 48px; }

/* Dar/dikey pencerelerde başlık üst barın altına iner */
@media (max-aspect-ratio: 7/5) {
  .hero__copy { top: max(calc(50% - 405 * var(--u) + 44 * var(--u)), 84px); }
}

/* Telefonlar */
@media (max-width: 820px) {
  .hero__copy { top: 92px; }
  .hero__eyebrow { font-size: 13px; }
  .hero__title { font-size: clamp(40px, 12vw, 64px); margin-top: 8px; }
}

