/* TABA gameworks stüdyo sitesi. Siyah + beyaz, tek vurgu turuncu. Çerçeve yok. */

@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --paper: #ebe9e3;
  --hero: #f7f6f2;
  --orange: #ff8a1e;
  --muted: #a5a39e;
  --line: rgba(235, 233, 227, 0.18);
  --plum: #3b0f2e;
  --plum-light: #6a2257;
  --header: 88px;
  --shell: min(100% - 48px, 1280px);
  --space: clamp(64px, 9vw, 120px);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.shell { width: var(--shell); margin-inline: auto; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 10px 18px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* Küçük etiket yazıları */
.eyebrow, .kicker, .hero__index, .project__meta, .pillar__title span, .signal__small, .signal__tags, .contact__top p, .contact__email span, .foot__links span, .foot__bottom, .project__more {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow { display: block; margin-bottom: 20px; color: var(--orange); }

/* Kaydırma çubuğu */
.progress { position: fixed; inset: 0 0 auto; z-index: 1500; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* Üst şerit: altındaki bölüme göre açık ya da koyu olur */
.top {
  position: fixed; inset: 0 0 auto; z-index: 1200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header);
  padding-inline: max(24px, (100vw - 1280px) / 2);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.top[data-theme="dark"] { background: rgba(7, 8, 11, 0.72); color: var(--paper); }
.top[data-theme="light"] { background: rgba(247, 246, 242, 0.86); color: var(--ink); box-shadow: 0 12px 40px rgba(20, 20, 20, 0.06); }
.top.is-open[data-theme="dark"] { background: rgba(7, 8, 11, 0.97); }
.top.is-open[data-theme="light"] { background: rgba(247, 246, 242, 0.98); }

.brand { justify-self: start; }
.brand img { height: 64px; width: auto; transition: filter 0.35s; } /* tam logo: TABA, altında gameworks */
.top[data-theme="dark"] .brand img { filter: invert(1); }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a, .menu a { position: relative; padding: 8px 0; font-size: 0.92rem; font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }

.top__right { justify-self: end; display: flex; align-items: center; gap: 14px; }

.lang { display: flex; padding: 3px; border: 1.5px solid currentColor; border-radius: 999px; }
.lang button { min-width: 38px; padding: 4px 9px; border: 0; border-radius: 999px; background: transparent; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; opacity: 0.6; }
.lang button[aria-pressed="true"] { background: var(--orange); color: var(--ink); opacity: 1; }

.cta { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cta b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: "Inter", sans-serif; font-size: 1rem; transition: transform 0.3s var(--ease); }
.cta:hover b { transform: rotate(45deg); }

.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; margin: 6px auto; border-radius: 2px; background: currentColor; transition: transform 0.25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu { grid-column: 1 / -1; display: grid; gap: 4px; padding: 8px 0 20px; }
.menu a { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

/* Açılış */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(600px, 100svh, 920px); padding-top: var(--header); background: var(--hero); color: var(--ink); overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__in { position: relative; padding-block: clamp(40px, 6vw, 80px); }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 36px); }
.kicker::before { content: ""; width: 34px; height: 10px; border-radius: 999px; background: var(--orange); }

h1 { font-size: clamp(2rem, 9.2vw, 7.4rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.06em; text-transform: uppercase; }
.hero__line { display: block; }
.hero__line--outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(32px, 6vw, 72px); }
.hero__bottom p { max-width: 34em; font-size: clamp(1rem, 1.4vw, 1.15rem); }

.round-link { flex: none; display: inline-flex; align-items: center; gap: 28px; padding: 16px 20px 16px 26px; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; transition: background-color 0.3s, color 0.3s; }
.round-link b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); font-family: "Inter", sans-serif; font-size: 1rem; transition: transform 0.3s var(--ease); }
.round-link:hover { background: var(--ink); color: var(--hero); }
.round-link:hover b { color: var(--ink); transform: translateY(4px); }

.hero__index { position: absolute; right: 20px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); opacity: 0.7; }

/* Kayan şerit */
.marquee { overflow: hidden; padding-block: 20px; background: var(--orange); color: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.marquee__group i { font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Koyu bölümler */
.section { padding-block: var(--space); }
.heading { display: grid; grid-template-columns: 1.5fr 0.7fr; align-items: end; gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(36px, 6vw, 80px); }
.heading > p { max-width: 26em; color: var(--muted); }
h2 { font-size: clamp(2.2rem, 5.6vw, 4.8rem); font-weight: 600; line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; }
h2 > span { display: block; }
h2 > span + span { color: var(--muted); }

/* Oyun */
.project { display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #111; }
.project__stage { position: relative; display: grid; place-items: center; min-height: clamp(300px, 40vw, 520px); padding: clamp(28px, 5vw, 72px); background: radial-gradient(110% 90% at 50% 42%, var(--plum-light) 0%, var(--plum) 60%, #220919 100%); perspective: 1100px; overflow: hidden; }
.project__logo { position: relative; width: min(100%, 520px); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5)); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease); will-change: transform; }
.project__stage.is-live .project__logo { transition-duration: 0.08s; }
.project__glare { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 190, 120, 0.3), transparent 65%); opacity: 0; transition: opacity 0.4s; }
.project__stage.is-live .project__glare { opacity: 1; }

.project__info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project__meta span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.project__meta .is-hot { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.project h3 { margin-top: 8px; font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-transform: uppercase; }
.project__info > p { color: var(--muted); }
.project__more { margin-top: auto; padding-top: 12px; color: var(--paper) !important; }
.project__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.project__links a { display: flex; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.project__links a:hover { border-color: var(--orange); color: var(--orange); }

/* Stüdyo ilkeleri */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.pillar__art { display: flex; align-items: flex-end; justify-content: center; gap: 6%; height: clamp(180px, 20vw, 260px); padding: 28px 12% 0; border-radius: 24px; background: #141414; overflow: hidden; }
.pillar__art i { flex: 1; border-radius: 999px 999px 0 0; background: var(--paper); transition: height 0.6s var(--ease), background-color 0.4s; }
.pillar__art--a i:nth-child(1) { height: 46%; } .pillar__art--a i:nth-child(2) { height: 88%; background: var(--orange); } .pillar__art--a i:nth-child(3) { height: 64%; } .pillar__art--a i:nth-child(4) { height: 34%; }
.pillar__art--b i:nth-child(1) { height: 72%; } .pillar__art--b i:nth-child(2) { height: 40%; } .pillar__art--b i:nth-child(3) { height: 92%; background: var(--orange); } .pillar__art--b i:nth-child(4) { height: 56%; }
.pillar__art--c i:nth-child(1) { height: 36%; background: var(--orange); } .pillar__art--c i:nth-child(2) { height: 60%; } .pillar__art--c i:nth-child(3) { height: 78%; } .pillar__art--c i:nth-child(4) { height: 94%; }
.pillar:hover .pillar__art i:nth-child(odd) { height: 92%; }
.pillar:hover .pillar__art i:nth-child(even) { height: 48%; }
.pillar__title { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.pillar__title span { color: var(--orange); }
.pillar h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; text-transform: uppercase; }
.pillar p { color: var(--muted); }

/* Büyük söz */
.signal { border-top: 1px solid var(--line); }
.signal__in { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: clamp(32px, 6vw, 96px); padding-block: var(--space); }
.signal__small { margin-bottom: 14px; color: var(--muted); }
.signal__large { font-size: clamp(2.4rem, 7.4vw, 6.4rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.055em; text-transform: uppercase; }
.signal__large > span { display: block; }
.signal__large > span + span { color: var(--orange); }
.signal__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.signal__tags span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; }
.signal__logo { justify-self: end; width: min(100%, 380px); filter: invert(1); }

/* İletişim */
.contact { padding-block: var(--space); background: var(--orange); color: var(--ink); }
.contact .eyebrow { margin: 0; color: var(--ink); }
.contact__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 20px; border-bottom: 1.5px solid var(--ink); }
.contact__link { display: block; padding-block: clamp(28px, 5vw, 64px); font-size: clamp(3rem, 14vw, 11.5rem); font-weight: 600; line-height: 0.86; letter-spacing: -0.065em; text-transform: uppercase; }
.contact__link > span { display: block; }
.contact__link b { display: inline-block; font-weight: 500; transition: transform 0.4s var(--ease); }
.contact__link:hover b { transform: translate(0.08em, -0.08em); }
.contact__email { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.contact__email a { font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }

/* Alt bilgi */
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot__brand img { width: 120px; filter: invert(1); }
.foot__brand p { margin-top: 20px; max-width: 18em; color: var(--muted); }
.foot__links { display: flex; gap: 64px; justify-content: flex-end; }
.foot__links div { display: grid; gap: 10px; align-content: start; }
.foot__links span { margin-bottom: 6px; color: var(--muted); }
.foot__links a:hover, .foot__bottom a:hover { color: var(--orange); }
.foot__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

/* Kaydırınca belirme (yalnız betik çalışıyorsa gizlenir) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__line:nth-child(2) { transition-delay: 0.08s; }
.js .hero__line:nth-child(3) { transition-delay: 0.16s; }
.js .hero__bottom { transition-delay: 0.26s; }
.js .pillar:nth-child(2) { transition-delay: 0.08s; }
.js .pillar:nth-child(3) { transition-delay: 0.16s; }

@media (min-width: 900px) {
  .hero__line--shift { margin-left: clamp(0px, 7vw, 120px); }
}

@media (max-width: 899px) {
  :root { --header: 72px; }
  .brand img { height: 56px; }
  .nav, .cta { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .heading, .project, .signal__in, .foot { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar__art { height: 170px; }
  .signal__logo { justify-self: start; width: min(60%, 260px); }
  .foot__links { justify-content: flex-start; }
  .hero__index { display: none; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .top { padding-inline: 16px; }
  .brand img { height: 52px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__line--outline { -webkit-text-stroke-width: 1.5px; }
  .project__links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .project__logo, .pillar__art i, .cta b, .round-link b, .contact__link b { transition: none; }
}
