/* Zerotone — coming soon
   Tüm logo ölçüleri "u" birimindedir: amblem ızgarasının genişliği = 1116u.
   Değerler orijinal logo dosyalarından (1200 px kare lockup) ölçüldü. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --grid: #d0d0d0;
  --muted: #5e5e5e;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #ffffff;
    --grid: #3a3a3a;
    --muted: #a3a3a3;
  }
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  overflow: clip;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Sahne: tek ekran, kaydırma yok ---------- */

.stage {
  --gutter: clamp(20px, 5vw, 64px);
  --pad-y: clamp(24px, 7vh, 88px);
  --note-gap: clamp(1.75rem, 7vh, 3.75rem);
  --note-h: calc(var(--note-gap) + 1.6rem);
  --avail-h: calc(100vh - 2 * var(--pad-y) - var(--note-h));
  --avail-w: calc(100vw - 2 * var(--gutter));

  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: var(--pad-y);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

@supports (height: 100dvh) {
  .stage {
    --avail-h: calc(100dvh - 2 * var(--pad-y) - var(--note-h));
  }
}

/* ---------- Kare lockup (varsayılan) ----------
   amblem 506u + 48 + yazı 99 + 91 + çizgi 9 + 90 + slogan 32 = 875u */

.lockup {
  --w: min(var(--avail-w), 42rem, calc(var(--avail-h) * 1116 / 875));
  --u: calc(var(--w) / 1116);
  width: var(--w);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}

.emblem {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1116 / 506;
  overflow: visible;
}

.gx {
  stroke: var(--grid);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.digits path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* line-height .7 = Montserrat büyük harf yüksekliği; kutu = harf kutusu */
.wordmark {
  margin-top: calc(48 * var(--u));
  margin-right: -0.195em; /* son harften sonraki boşluğu dengele */
  font-size: calc(141.4 * var(--u));
  font-weight: 300;
  line-height: 0.7;
  letter-spacing: 0.195em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule {
  display: block;
  width: calc(116 * var(--u));
  height: calc(9 * var(--u));
  margin-top: calc(91 * var(--u));
  background: var(--ink);
}

.tagline {
  display: flex;
  align-items: center;
  margin-top: calc(90 * var(--u));
  font-size: calc(45.7 * var(--u));
  font-weight: 300;
  line-height: 0.7;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Logodaki kelime genişlikleri birebir tutsun diye aralık kelime başına */
.tagline span {
  --ls: 0.225em;
  letter-spacing: var(--ls);
  margin-right: calc(-1 * var(--ls));
}

.tagline span:nth-of-type(1) { --ls: 0.192em; }
.tagline span:nth-of-type(2) { --ls: 0.219em; }

.tagline i {
  flex: none;
  width: 0.23em;
  height: 0.23em;
  margin-inline: 1.485em 1.44em;
  border-radius: 50%;
  background: currentColor;
}

/* Küçük ekranda 300 ağırlık fazla incelir */
@media (max-width: 480px), (orientation: landscape) and (max-height: 540px) {
  .tagline {
    font-weight: 400;
  }
}

.note {
  margin-top: var(--note-gap);
  color: var(--muted);
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------- Yatay lockup: alçak yatay ekranlar (telefon yatay) ----------
   amblem 1116u + 99 + yazı ~1505u = 2720u, yükseklik 506u */

@media (orientation: landscape) and (max-height: 540px) {
  .stage {
    --pad-y: clamp(16px, 6vh, 40px);
    --note-gap: clamp(1rem, 6vh, 2rem);
  }

  .lockup {
    --w: min(var(--avail-w), 60rem, calc(var(--avail-h) * 2720 / 506));
    --u: calc(var(--w) / 2720);
    flex-direction: row;
  }

  .emblem {
    flex: none;
    width: calc(1116 * var(--u));
  }

  .ext-r {
    display: none;
  }

  .type {
    align-items: flex-start;
    margin-left: calc(99 * var(--u));
  }

  .wordmark {
    margin-top: 0;
    font-size: calc(213 * var(--u));
  }

  .rule {
    display: none;
  }

  .tagline {
    margin-top: calc(100.5 * var(--u));
    font-size: calc(63.4 * var(--u));
  }
}

/* ---------- Açılış: ızgara kurulur, 0 → 2 → 1 çizilir, yazı belirir ---------- */

@media (prefers-reduced-motion: no-preference) {
  .gx {
    transform-box: fill-box;
    animation: grow-x 0.7s var(--ease) both;
  }

  .gx.h { transform-origin: 50% 50%; }
  .gx.v { transform-origin: 50% 0; animation-name: grow-y; }
  .gx.ext-l { transform-origin: 100% 50%; animation-duration: 1.1s; }
  .gx.ext-r { transform-origin: 0 50%; animation-duration: 1.1s; }

  .gx:nth-child(4n + 2) { animation-delay: 0.06s; }
  .gx:nth-child(4n + 3) { animation-delay: 0.12s; }
  .gx:nth-child(4n + 4) { animation-delay: 0.18s; }
  .gx.ext-l,
  .gx.ext-r { animation-delay: 0.45s; }

  .digits path {
    stroke-dasharray: 1 2;
    animation: draw 0.8s var(--ease) both;
  }

  .digits .d0 { animation-delay: 0.4s; }
  .digits .d2 { animation-delay: 0.85s; }
  .digits .d1 { animation-delay: 1.3s; animation-duration: 0.55s; }

  .type,
  .note {
    animation: appear 0.7s ease-out 1.7s both;
  }

  .note { animation-delay: 1.95s; }
}

@keyframes grow-x {
  from { transform: scaleX(0); }
}

@keyframes grow-y {
  from { transform: scaleY(0); }
}

@keyframes draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  6% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes appear {
  from { opacity: 0; }
}
