/*
 * Doppia tanıtım sayfası. Dil: Mürekkep çerçeve (docs/design/MARKA-SPEC.md).
 * Jetonlar MARKA-SPEC §2'nin kopyasıdır; sarı yalnız dolgudur, metin olmaz.
 *
 * ANLATI: tek yapışkan kare (1440 px tasarım, --k ile ölçeklenir), dokuz nesne baştan sona sahnede.
 * Dört durak: toplu durur → dağılır (dokuz iş, dokuz yer) → rafa dizilir (bir araya gelir) → tablonun
 * satırlarına yerleşir. Konumları sahne.js yazar; burada yalnız görünüş vardır.
 * Yalnız transform ve opacity değişir; animation-timeline kullanılmaz.
 */
@font-face {
  font-family: 'Mona Sans';
  src: url('varlik/MonaSansVF.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --ink: #14171f;
  --ink-2: #1e222c;
  --sahne: #0e1118;
  --ink-metin: #f2f3f6;
  --ink-ikincil: #a3a9b6;
  --ink-ucuncul: #8e95a3;
  --ink-ray: #e6e8ed;
  --ink-cizgi: #262a33;
  --imza: #ffd60a;
  --imza-ustune: #f2c900;
  --sayfa: #ffffff;
  --metin: #14171f;
  --ray: 232px; /* uygulamadaki sol ray */
  --ust: 180px; /* üst çubuk + sahne bandı: beyaz sayfanın başladığı yer */
  --k: 1; /* 1440 px'lik karenin görüş alanına ölçeği */
  --h: 900px; /* karenin yüksekliği (görüş alanı / k) */
  --birim: 95vh; /* bir sahnenin kaydırma boyu (sahne.js ile aynı) */
}

* {
  box-sizing: border-box;
}
html {
  background: var(--sahne);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    'Mona Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-metin);
  background: var(--sahne);
  -webkit-font-smoothing: antialiased;
  font-feature-settings:
    'lnum' 1,
    'pnum' 1;
}
[hidden] {
  display: none !important;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
p,
ul {
  margin: 0;
}
.atla {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--sayfa);
  color: var(--metin);
}
.atla:focus {
  top: 16px;
}
:focus-visible {
  outline: 2px solid var(--ink-metin);
  outline-offset: 3px;
}

/* ── Tuşlar (MARKA-SPEC "Tuş biçimi") ─────────────────────────────── */
.tus {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.tus-asil {
  background: var(--imza);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.2);
}
.tus-asil:hover {
  background: var(--imza-ustune);
}
.tus-ikincil {
  background: var(--ink-2);
  color: var(--ink-ray);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.35);
}
.tus-ikincil:hover {
  background: #262b37;
}
.tus-duz {
  padding: 0 6px;
  color: var(--ink-ray);
  text-decoration: underline;
  text-decoration-color: rgb(230 232 237 / 0.35);
  text-underline-offset: 5px;
}
.tus-duz:hover {
  text-decoration-color: currentColor;
}
.tus:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ── Film karesi ──────────────────────────────────────────────────── */
.film {
  display: block;
  position: relative;
  height: calc(3.5 * var(--birim) + 100vh);
}
.yapiskan {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--sahne);
}
.kare {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1440px;
  height: var(--h);
  transform: scale(var(--k));
  transform-origin: 0 0;
}
.zemin {
  position: absolute;
  inset: 0;
}
.zemin-gorsel {
  position: absolute;
  left: 0;
  top: calc((var(--h) - 617px) / 2 + 56px);
  width: 1440px;
  height: 617px;
  max-width: none;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  animation: belir 1600ms ease-out 200ms both;
}

/* Söz katmanları: saydamlık ve kaymayı sahne.js yazar. */
.perde {
  position: absolute;
  left: 96px;
  will-change: opacity, transform;
}
.afis {
  top: calc(var(--h) / 2 - 196px);
  width: 620px;
}
.afis-ust {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-ikincil);
}
.afis-baslik {
  font-size: 70px;
  line-height: 1;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.028em;
}
.afis-metin {
  margin-top: 28px;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-ikincil);
}
.afis-eylem {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.afis-eylem .tus {
  min-height: 52px;
  font-size: 16.5px;
}
.afis-eylem .tus-asil {
  padding: 0 28px;
}
.mobil-gorsel {
  display: none;
}
.soz-perde {
  top: calc(var(--h) / 2 - 340px);
  width: 1000px;
  opacity: 0;
}
.perde-baslik {
  font-size: 76px;
  line-height: 1;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.03em;
}
.perde-metin {
  margin-top: 22px;
  font-size: 21px;
  color: var(--ink-ikincil);
}

/* Oyuncular: dokuz nesne. Konum, ölçek ve dönüşü sahne.js yazar (dört durak arasında). */
.oyuncular {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.oyuncu {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.oyuncu img {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: 200px;
  max-width: none;
  filter: drop-shadow(0 22px 22px rgb(0 0 0 / 0.42));
  will-change: transform;
}
.etiket {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-ray);
  white-space: nowrap;
  opacity: 0;
}

/* Yaprak: önce nesnelerin durduğu raf, sonra tablonun sayfası. Yukarı kaymayı sahne.js yazar. */
.yaprak {
  position: absolute;
  left: 96px;
  top: 0;
  width: 1248px;
  height: var(--h);
  background: var(--sayfa);
  color: var(--metin);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -30px 90px rgb(0 0 0 / 0.5);
  transform: translateY(calc(var(--h) + 40px));
  will-change: transform;
}
.yaprak-ic {
  padding: 30px 40px 0 32px;
  opacity: 0;
}
.yaprak-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-bottom: 18px;
}
.yaprak-baslik {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 760;
  font-stretch: 118%;
  letter-spacing: -0.022em;
}
.tablo-baslik {
  display: grid;
  grid-template-columns: 388px 1fr;
  height: 34px;
  align-items: center;
  border-bottom: 1.5px solid var(--metin);
  font-size: 13px;
  color: #5c6271;
}
.tablo-baslik span:first-child {
  padding-left: 88px;
}
.tablo {
  padding: 0;
  list-style: none;
}
.tablo li {
  display: grid;
  grid-template-columns: 88px 300px 1fr;
  align-items: center;
  height: 58px;
  border-bottom: 1px solid #e3e5ea;
}
.yaprak-not {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 15.5px;
  color: #4a5060;
}
.yaprak-not::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--metin);
  transform: rotate(45deg);
}
.satir-nesne {
  display: none;
}
.satir-ad {
  grid-column: 2;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.012em;
}
.satir-metin {
  font-size: 17px;
  color: #4a5060;
}

.ust {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 64px;
}
.ust-marka {
  position: absolute;
  left: 96px;
  top: 28px;
}
.ust-marka img {
  width: 104px;
  height: 24px;
}
.ust-giris {
  position: absolute;
  right: 96px;
  top: 20px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.ipucu {
  position: absolute;
  left: 96px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-ucuncul);
}
.ipucu span {
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* Sinema şeritleri: sayfa açılırken çekilir. */
.serit {
  position: absolute;
  left: 0;
  right: 0;
  height: 14vh;
  background: #000;
  transform-origin: 50% 0;
  animation: serit-cek 1100ms cubic-bezier(0.2, 0.7, 0.1, 1) 180ms both;
  pointer-events: none;
}
.serit-ust {
  top: 0;
}
.serit-alt {
  bottom: 0;
  transform-origin: 50% 100%;
}
@keyframes serit-cek {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}
.afis > * {
  animation: yuksel 900ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.afis > :nth-child(1) {
  animation-delay: 420ms;
}
.afis > :nth-child(2) {
  animation-delay: 520ms;
}
.afis > :nth-child(3) {
  animation-delay: 640ms;
}
.afis > :nth-child(4) {
  animation-delay: 760ms;
}
@keyframes yuksel {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes belir {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Anlatının devamı: düz bölümler ───────────────────────────────── */
.bolum {
  padding: clamp(88px, 13vw, 190px) clamp(24px, 6.6vw, 96px);
  background: var(--ink);
}
.bolum-ust {
  margin-bottom: 14px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-ikincil);
}
.bolum-baslik {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.03em;
}
.bolum-metin {
  margin-top: 30px;
  max-width: 640px;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-ikincil);
}
.bolum-iki {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(48px, 7vw, 120px);
  padding-top: 0;
}
.bolum-baslik-k {
  max-width: 460px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  font-weight: 740;
  font-stretch: 118%;
  letter-spacing: -0.022em;
}
.liste {
  margin-top: 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-cizgi);
}
.liste li {
  padding: 15px 0;
  border-bottom: 1px solid var(--ink-cizgi);
  font-size: 16.5px;
  color: var(--ink-ray);
}
.soz {
  padding: clamp(88px, 13vw, 190px) clamp(24px, 6.6vw, 96px);
  background: var(--sahne);
}
.soz-ust {
  margin-bottom: 14px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-ikincil);
}
.soz-baslik {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.03em;
}
.soz-metin {
  margin: 28px 0 36px;
  max-width: 620px;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-ikincil);
}
.soz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.soz-metin {
  margin-bottom: 0;
}

/* Teklif formu: beyaz yaprak (sayfa içinde durur; pencere açılmaz). */
.form {
  padding: 32px;
  border-radius: 24px;
  background: var(--sayfa);
  color: var(--metin);
}
.form-govde {
  display: grid;
  gap: 18px;
}
.form-iki {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.alan {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.alan i {
  font-style: normal;
  font-weight: 400;
  color: #5c6271;
}
.alan input,
.alan textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6d9df;
  border-radius: 10px;
  background: var(--sayfa);
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--metin);
}
.alan textarea {
  resize: vertical;
}
.alan input:focus-visible,
.alan textarea:focus-visible,
.form input:focus-visible {
  outline: 2px solid var(--metin);
  outline-offset: 1px;
}
.bal {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-secim {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-secim legend {
  width: 100%;
  padding: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.form-secim label {
  position: relative;
}
.form-secim input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.form-secim span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d6d9df;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}
.form-secim input:checked + span {
  border-color: var(--metin);
  background: var(--metin);
  color: var(--sayfa);
}
.form-secim input:focus-visible + span {
  outline: 2px solid var(--metin);
  outline-offset: 2px;
}
.form-onay {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 14px;
  color: #4a5060;
}
.form-onay input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--metin);
}
.form-hata {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecea;
  font-size: 14.5px;
  color: #8a1c12;
}
.form .tus {
  justify-self: start;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 16.5px;
  cursor: pointer;
}
.form .tus[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.form-tamam h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 740;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
.form-tamam p {
  font-size: 17px;
  color: #4a5060;
}
.alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 6.6vw, 96px);
  background: var(--sahne);
  border-top: 1px solid var(--ink-cizgi);
  font-size: 14px;
  color: var(--ink-ikincil);
}

/* ── Dar ekran: film yok; aynı anlatı alt alta, durağan ───────────── */
@media (max-width: 899px) {
  .film {
    height: auto;
  }
  .yapiskan {
    position: static;
    height: auto;
    overflow: visible;
  }
  .kare {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
  }
  .zemin,
  .oyuncular,
  .ipucu,
  .serit,
  .tablo-baslik {
    display: none;
  }
  .ust {
    position: static;
    order: -1;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
  }
  .ust-marka,
  .ust-giris {
    position: static;
  }
  .perde {
    position: static;
    width: auto;
    padding: 28px 20px 0;
    opacity: 1 !important;
    transform: none !important;
  }
  .soz-perde {
    padding-top: 72px;
  }
  .afis-baslik {
    font-size: clamp(38px, 11vw, 60px);
  }
  .afis-metin {
    font-size: 17px;
  }
  .afis-eylem {
    flex-wrap: wrap;
  }
  .mobil-gorsel {
    display: block;
    width: 170%;
    max-width: none;
    margin: 20px 0 0 -70%;
  }
  .perde-baslik {
    font-size: clamp(34px, 9.6vw, 52px);
  }
  .perde-metin {
    font-size: 17px;
  }
  .yaprak {
    position: static;
    width: auto;
    height: auto;
    margin-top: 64px;
    transform: none !important;
    box-shadow: none;
  }
  .yaprak-ic {
    padding: 26px 20px 28px;
    opacity: 1 !important;
  }
  .yaprak-bas {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    height: auto;
    padding-bottom: 22px;
    border-bottom: 1.5px solid var(--metin);
  }
  .yaprak-baslik {
    font-size: 28px;
  }
  .tablo li {
    grid-template-columns: 52px 1fr;
    row-gap: 2px;
    height: auto;
    padding: 13px 0;
  }
  .satir-nesne {
    display: block;
    grid-row: span 2;
    width: auto;
    height: 38px;
  }
  .satir-ad {
    font-size: 18px;
  }
  .satir-metin {
    grid-column: 2;
    font-size: 15px;
  }
}

@media (max-width: 899px) {
  .soz {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 24px 20px;
  }
  .form-iki {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serit {
    display: none;
  }
  .afis > *,
  .zemin-gorsel {
    animation: none;
  }
}
