/* yazı fontları her sayfada olacak şeyler. */

/* ---------- Tokens ---------- */
:root {
  --g-50: #f5f5f7;
  --g-100: #e8e8ed;
  --g-200: #d2d2d7;
  --g-300: #a1a1a6;
  --g-400: #86868b;
  --g-500: #6e6e73;
  --g-600: #48484a;
  --g-700: #3a3a3c;
  --g-800: #2c2c2e;
  --g-900: #1d1d1f;
  --g-950: #141415;

  /* fotoğrafın stüdyo grisi */
  --photo: #6d6e70;
  --photo-edge: #4f5052;

  --accent: #ff7a1a;
  --accent-rgb: 255, 122, 26;
  --accent-soft: rgba(var(--accent-rgb), .14);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(20px, 2.4vw, 32px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--g-900);
  color: var(--g-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--g-950); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ---------- Ortak tipografi ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g-300);
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.accent { color: var(--accent); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 100; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%;
  z-index: 80;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(29, 29, 31, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transform: translate(-50%, -140%);
  transition: transform 1s var(--ease) .9s;
}
.is-ready .nav { transform: translate(-50%, 0); }
.nav.is-hidden { transform: translate(-50%, -140%); transition-delay: 0s; }

.nav__logo {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  margin-right: 4px;
}
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--g-200);
  border-radius: 999px;
  transition: color .3s, background .3s;
}
.nav__link:hover { color: var(--g-50); background: rgba(255, 255, 255, .06); }
.nav__cta {
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  border-radius: 999px;
  color: var(--g-950);
  background: var(--g-50);
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--accent); }

@media (max-width: 640px) {
  .nav__link:not(.nav__link--keep) { display: none; }
}

/* ---------- Dil seçici ---------- */
.lang {
  position: fixed; right: 16px; top: 50%;
  z-index: 80;
  display: grid; gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(29, 29, 31, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transform: translate(160%, -50%);
  transition: transform 1s var(--ease) 1.1s;
}
.is-ready .lang { transform: translate(0, -50%); }
.lang__btn {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  color: var(--g-300);
  transition: color .4s var(--ease);
}
.lang__btn:hover { color: var(--g-50); }
.lang__btn[aria-pressed="true"] { color: var(--accent); }
.lang__pill {
  position: absolute; left: 4px; top: 4px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  transition: transform .6s var(--ease);
}
.lang[data-active="tr"] .lang__pill { transform: translateY(38px); }

/* dil değişirken içerik kısa bir an söner */
main { transition: opacity .28s ease, filter .28s ease; }
.is-switching main { opacity: 0; filter: blur(6px); }

@media (max-width: 640px) {
  .lang { right: 10px; }
  .lang__btn, .lang__pill { width: 32px; height: 32px; }
  .lang[data-active="tr"] .lang__pill { transform: translateY(34px); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--g-900);
  transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner {
  width: min(420px, calc(100vw - 32px));
  display: grid; gap: 14px;
}
.loader__row { display: flex; justify-content: space-between; align-items: baseline; }
.loader__name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.loader__count { font-family: var(--mono); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; background: var(--g-700); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

html.is-loading, html.is-loading body { overflow: hidden; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 150;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
}
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  transition: opacity .3s, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s;
}
.cursor span {
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--g-950);
  opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease);
  white-space: nowrap;
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--accent-soft); }
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); }
.cursor.has-label span { opacity: 1; transform: none; }
.cursor.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* split text */
.char, .word { display: inline-block; }
.line-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .grain { animation: none; }
}
